:root {
    --bg: #08101f;
    --bg-soft: rgba(16, 24, 44, 0.84);
    --text: #eef4ff;
    --muted: #9faccd;
    --line: rgba(255,255,255,.08);
    --primary: #7b72ff;
    --secondary: #ff67bb;
    --success: #21c787;
    --danger: #ff6b6b;
    --shadow: 0 24px 80px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: linear-gradient(180deg, #070d19 0%, #0a1325 100%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.admin-bg { position: fixed; inset: 0; background: radial-gradient(circle at 10% 10%, rgba(123,114,255,.22), transparent 25%), radial-gradient(circle at 90% 20%, rgba(255,103,187,.16), transparent 20%), linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: auto, auto, 32px 32px, 32px 32px; z-index: -1; }
.admin-shell { width: min(1480px, calc(100% - 2rem)); margin: 0 auto; }
.admin-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); background: rgba(7, 13, 25, .78); border-bottom: 1px solid var(--line); }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-brand { font-weight: 900; letter-spacing: -.02em; font-size: 1.2rem; }
.admin-brand span { color: var(--secondary); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.admin-nav a { color: var(--muted); font-weight: 700; padding: .65rem .9rem; border-radius: 12px; }
.admin-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.main-wrap { padding: 2rem 0 3rem; }
.card, .stats-card, .form-card, .login-card, .table-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-head h1, .card h2, .form-card h2, .login-card h1 { margin: 0 0 .5rem; letter-spacing: -.03em; }
.page-head p, .muted, label small, .help, .table-note, .login-card p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stats-card, .card, .form-card, .table-card, .login-card { padding: 1.35rem; }
.stats-card { min-width: 0; overflow: hidden; }
.stats-card strong { display: block; max-width: 100%; font-size: 1.9rem; line-height: 1.12; margin-bottom: .25rem; overflow-wrap: anywhere; }
.stats-card-value-compact strong { font-size: clamp(1.16rem, 1.7vw, 1.45rem); letter-spacing: -.015em; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .75rem 1rem; border-radius: 14px; border: 1px solid transparent; cursor: pointer; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-danger { background: rgba(255,107,107,.14); border-color: rgba(255,107,107,.3); color: #ffd1d1; }
.flash { padding: 1rem 1.1rem; border-radius: 16px; margin-bottom: 1rem; border: 1px solid var(--line); }
.flash-success { background: rgba(33,199,135,.14); }
.flash-error { background: rgba(255,107,107,.14); }
.flash-warning { background: rgba(255,190,85,.14); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: .45rem; font-weight: 700; }
input, select { width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); padding: .8rem .9rem; }
select option,
select optgroup {
  background: #f4f7ff;
  color: #101828;
}
select optgroup {
  font-style: normal;
  font-weight: 800;
}
input::placeholder { color: #90a0c7; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: .9rem .75rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .92rem; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: .35rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 800; border: 1px solid var(--line); }
.role-admin { background: rgba(123,114,255,.16); }
.role-reader { background: rgba(255,103,187,.14); }
.status-active { background: rgba(33,199,135,.14); }
.status-inactive { background: rgba(255,107,107,.14); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.login-wrap { min-height: calc(100vh - 79px); display: grid; place-items: center; }
.login-card { width: min(520px, 100%); }
.kicker { color: var(--secondary); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; }
.install-note { margin-top: 1rem; padding: .95rem 1rem; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px dashed var(--line); }
@media (max-width: 900px) { .grid-3, .form-grid { grid-template-columns: 1fr; } }

textarea { width: 100%; min-height: 160px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); padding: .8rem .9rem; resize: vertical; }


.content-group { border: 1px solid var(--line); border-radius: 20px; padding: 1rem; background: rgba(255,255,255,.03); }
.group-head { margin-bottom: .9rem; }
.group-head h2 { margin: 0; }
.inner-grid { gap: .9rem; }

.admin-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .admin-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .admin-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .admin-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-grid-5, .admin-grid-6 { grid-template-columns: 1fr; } }

.upload-builder { display: grid; gap: 1rem; }
.upload-empty { padding: 1rem 1.1rem; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); background: rgba(255,255,255,.03); }
.upload-list { display: grid; gap: .85rem; }
.upload-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.5fr) minmax(140px, .65fr) minmax(160px, .7fr) minmax(220px, 1fr); gap: .85rem; align-items: end; padding: 1rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .2s ease, background .2s ease; }
.upload-file { display: grid; gap: .3rem; min-height: 46px; padding: .8rem .95rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.upload-file strong { word-break: break-word; }
.upload-file span { color: var(--muted); font-size: .92rem; }
.upload-duration-wrap { display: grid; gap: .45rem; }
.upload-duration-label { font-weight: 700; }
.duration-pill, .readonly-field { min-height: 46px; display: inline-flex; align-items: center; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); }
.duration-pill-warning { color: #ffd08a; border-color: rgba(255,190,85,.3); background: rgba(255,190,85,.12); }
.readonly-field { font-weight: 700; }

.upload-progress-block { display: grid; gap: .45rem; }
.upload-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .92rem; color: var(--muted); }
.upload-progress-meta strong { color: var(--text); font-size: .95rem; }
.upload-progress-bar { position: relative; overflow: hidden; height: 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.upload-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .2s ease; }
.upload-row.is-uploading { border-color: rgba(108, 124, 255, .45); background: rgba(108,124,255,.06); }
.upload-row.is-complete { border-color: rgba(43, 201, 160, .35); background: rgba(43,201,160,.08); }
.upload-row.is-complete .upload-progress-bar span { background: linear-gradient(90deg, #2bc9a0, #7cf6dc); }
.upload-row.is-error { border-color: rgba(255, 111, 145, .35); background: rgba(255,111,145,.08); }
.upload-row.is-error .upload-progress-bar span { background: linear-gradient(90deg, #ff6f91, #ff9eb4); }
.upload-summary[hidden] { display: none !important; }

@media (max-width: 900px) {
    .upload-row { grid-template-columns: 1fr; }
}


.admin-media-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-media-preview-card {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(9, 18, 38, .7);
}
.admin-artist-thumbnail-preview {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
}
.admin-artist-banner-preview {
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 6;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
}
.admin-preview-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.18);
  color: rgba(220,230,255,.78);
  background: rgba(9, 18, 38, .45);
}
@media (max-width: 900px) {
  .admin-media-previews {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  display: block;
  margin-top: .45rem;
  color: rgba(214, 221, 255, .72);
  font-size: .85rem;
  line-height: 1.45;
}


.project-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-screenshot-card {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.project-screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.project-screenshot-card h3 {
  margin: 0;
  font-size: 1rem;
}
.project-screenshot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .88rem;
}
.project-screenshot-tools {
  display: grid;
  gap: .7rem;
}
.project-screenshot-tools .button-row {
  align-items: center;
}
@media (max-width: 1000px) { .project-screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .project-screenshot-grid { grid-template-columns: 1fr; } }

/* Fix44: Kommentar-Moderation */
.admin-comments-panel {
  display: grid;
  gap: 1rem;
}
.admin-comments-headline {
  margin-bottom: 0;
}
.admin-comment-list {
  display: grid;
  gap: 1rem;
}
.admin-comment-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  padding: 1rem;
  display: grid;
  gap: .85rem;
}
.admin-comment-card.is-new {
  border-color: rgba(168, 111, 255, .55);
  box-shadow: 0 16px 45px rgba(168, 111, 255, .12);
}
.admin-comment-card.is-reply {
  margin-left: clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.025);
}
.admin-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.admin-comment-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.admin-comment-meta {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .88rem;
}
.admin-comment-meta a {
  color: var(--muted);
}
.admin-comment-body {
  color: #dbe6ff;
  line-height: 1.65;
  white-space: normal;
}
.admin-comment-actions {
  flex-shrink: 0;
  justify-content: flex-end;
}
.admin-comment-actions form {
  display: inline-flex;
}
.admin-comment-children {
  display: grid;
  gap: 1rem;
  margin-top: .25rem;
}
@media (max-width: 800px) {
  .admin-comment-head {
    display: grid;
  }
  .admin-comment-card.is-reply {
    margin-left: .65rem;
  }
  .admin-comment-actions {
    justify-content: flex-start;
  }
}

/* Fix45: Dashboard-Kommentarübersicht */
.admin-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stats-card-comments {
  position: relative;
  overflow: hidden;
}
.stats-card-comments.has-new-comments {
  border-color: rgba(33,199,135,.38);
  box-shadow: 0 18px 48px rgba(33,199,135,.1);
}
.stats-card-comments.has-new-comments::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  top: -45px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33,199,135,.22), transparent 68%);
}
.stats-card-subline {
  margin-top: .65rem;
}
.dashboard-comments-card {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.dashboard-comments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-comments-head h2 {
  margin: 0 0 .4rem;
}
.dashboard-comment-list {
  display: grid;
  gap: .8rem;
}
.dashboard-comment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.dashboard-comment-row strong,
.dashboard-comment-row span {
  display: block;
}
.dashboard-comment-row span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .9rem;
}
.dashboard-comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .65rem;
}
@media (max-width: 800px) {
  .dashboard-comments-head,
  .dashboard-comment-row {
    display: grid;
  }
  .dashboard-comment-actions {
    justify-content: flex-start;
  }
}

/* Fix46: Shop-Administration */
.shop-warning,
.shop-security-note {
  border-color: rgba(92, 182, 255, .24);
  background: rgba(92, 182, 255, .055);
}
.shop-warning {
  padding: 1rem;
  border: 1px solid rgba(92, 182, 255, .24);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.shop-warning code,
.form-card code {
  overflow-wrap: anywhere;
  color: var(--text);
}
.shop-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.2rem;
}
.shop-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .8rem;
}
.shop-detail-grid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.shop-detail-grid span,
.shop-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
}
.shop-detail-grid span {
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .82rem;
}
.shop-status-paid {
  border-color: rgba(33,199,135,.35);
  background: rgba(33,199,135,.13);
  color: #b8f5dc;
}
.shop-status-approved,
.shop-status-pending {
  border-color: rgba(92,182,255,.35);
  background: rgba(92,182,255,.12);
  color: #c8e8ff;
}
.shop-status-failed,
.shop-status-cancelled,
.shop-status-refunded {
  border-color: rgba(255,121,121,.3);
  background: rgba(255,121,121,.1);
  color: #ffd0d0;
}

/* Fix54 security controls */
.nav-inline-form { display: inline-flex; margin: 0; }
.nav-link-button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: .65rem .25rem; }
.nav-link-button:hover { color: var(--pink); }
.checkbox-row { display: flex !important; align-items: center; gap: .7rem; }
.checkbox-row input { width: auto; }
.security-secret { display: grid; gap: .5rem; margin: 1rem 0; padding: 1rem; border: 1px solid rgba(158,130,255,.35); border-radius: 14px; background: rgba(158,130,255,.08); }
.security-secret code, .security-code-list { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 1rem; }
.security-steps { line-height: 1.7; }
.break-all { overflow-wrap: anywhere; word-break: break-all; }
.hash-short { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.inline-form { display: inline-flex; margin: 0; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}


/* Fix56: Nachweis der getrennten Checkout-Erklärungen */
.consent-proof { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(124,92,255,.06); }
.consent-proof h3 { margin-top: 0; }
.consent-proof p:last-child { margin-bottom: 0; }

/* Fix58: order support danger zones */
.danger-zone {
    border-color: rgba(255, 107, 107, .36);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .06);
}
.danger-zone h2 {
    color: #ffd1d1;
}

/* Fix59: gebündelte Einstellungen und lokale TOTP-QR-Einrichtung */
.admin-nav a.is-active {
    color: var(--text);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 0 0 1px var(--line);
}
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0 0 1.35rem;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.settings-tabs a {
    padding: .7rem .95rem;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 800;
}
.settings-tabs a:hover,
.settings-tabs a.is-active {
    color: var(--text);
    background: rgba(255,255,255,.07);
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.settings-card {
    display: grid;
    align-content: start;
    gap: .8rem;
    min-height: 240px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}
.settings-card h2,
.settings-card p { margin: 0; }
.settings-card p { color: var(--muted); line-height: 1.65; }
.settings-card .button-row { margin-top: auto; padding-top: .45rem; }
.settings-kicker {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .78rem;
    font-weight: 900;
}
.mfa-setup-layout {
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin: 1rem 0 1.25rem;
}
.mfa-qr-card,
.mfa-setup-copy {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.mfa-qr-card h3 { margin: 0 0 .45rem; }
.totp-qr {
    width: min(100%, 310px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 1rem auto 0;
    padding: .75rem;
    border-radius: 18px;
    background: #fff;
    color: #182033;
    text-align: center;
    overflow: hidden;
}
.totp-qr svg { display: block; width: 100%; height: 100%; }
.totp-qr.has-error { background: rgba(255,107,107,.12); color: #ffd1d1; }
.mfa-manual-setup { margin-top: 1rem; }
.mfa-manual-setup > summary { cursor: pointer; color: var(--muted); font-weight: 800; }
@media (max-width: 820px) {
    .mfa-setup-layout { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; padding: .8rem 0; }
}


/* Fix65: kontextbezogene Hilfe im gesamten Backend */
.admin-field-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-width: 0;
}
.admin-help-trigger {
    font: inherit;
}
.admin-help-icon {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(145, 128, 255, .55);
    border-radius: 999px;
    background: rgba(124, 92, 255, .14);
    color: #ded8ff;
    font-size: .86rem;
    font-weight: 900;
    line-height: 0;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.admin-help-icon:hover,
.admin-help-icon:focus-visible {
    transform: translateY(-1px);
    background: rgba(124, 92, 255, .28);
    border-color: rgba(255, 103, 187, .7);
    outline: none;
}
.admin-help-page-button {
    gap: .48rem;
}
.admin-help-page-button > .admin-help-svg {
    width: 21px;
    height: 21px;
    padding: 2px;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.admin-help-svg {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.admin-field-status {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}
.admin-help-dialog {
    width: min(860px, calc(100vw - 2rem));
    max-height: min(88vh, 920px);
    padding: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: #10182b;
    color: var(--text);
    box-shadow: 0 34px 90px rgba(0,0,0,.58);
    overflow: hidden;
}
.admin-help-dialog::backdrop {
    background: rgba(3, 7, 18, .78);
    backdrop-filter: blur(5px);
}
.admin-help-dialog-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(88vh, 920px);
}
.admin-help-dialog-head,
.admin-help-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}
.admin-help-dialog-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}
.admin-help-dialog-head h2 {
    margin: .18rem 0 0;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}
.admin-help-kicker {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 900;
}
.admin-help-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 0;
    cursor: pointer;
}

.admin-help-close-svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.admin-help-auto-row {
    margin-left: auto;
}
.admin-help-auth-row {
    margin: -.15rem 0 .9rem;
}
.admin-field-title-auto {
    width: 100%;
}
.admin-checkbox-help-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.admin-checkbox-help-label > .admin-help-icon {
    margin-left: auto;
}

.admin-help-close:hover,
.admin-help-close:focus-visible {
    background: rgba(255,107,107,.13);
    border-color: rgba(255,107,107,.4);
    outline: none;
}
.admin-help-dialog-body {
    overflow: auto;
    padding: 1.35rem;
    line-height: 1.68;
}
.admin-help-dialog-body > :first-child { margin-top: 0; }
.admin-help-dialog-body > :last-child { margin-bottom: 0; }
.admin-help-dialog-body h3 {
    margin: 1.55rem 0 .65rem;
    color: #f1efff;
}
.admin-help-dialog-body code {
    overflow-wrap: anywhere;
    padding: .12rem .32rem;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: #ddd8ff;
}
.admin-help-list {
    display: grid;
    grid-template-columns: minmax(145px, .45fr) minmax(0, 1fr);
    gap: .6rem 1rem;
    margin: .8rem 0 1.2rem;
}
.admin-help-list dt {
    font-weight: 900;
    color: #f1efff;
}
.admin-help-list dd {
    margin: 0;
    color: #c5cce0;
}
.admin-help-steps,
.admin-help-dialog-body ul {
    padding-left: 1.35rem;
}
.admin-help-steps li,
.admin-help-dialog-body li {
    margin: .38rem 0;
}
.admin-help-code-list {
    list-style: none;
    padding-left: 0 !important;
}
.admin-help-code-list li {
    padding: .35rem .55rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
}
.admin-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.admin-help-links a {
    display: inline-flex;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(124,92,255,.09);
    font-weight: 800;
}
@media (max-width: 620px) {
    .admin-help-dialog { width: calc(100vw - 1rem); max-height: 94vh; border-radius: 18px; }
    .admin-help-dialog-panel { max-height: 94vh; }
    .admin-help-list { grid-template-columns: 1fr; gap: .2rem; }
    .admin-help-list dd { margin-bottom: .65rem; }
}


/* Fix71: auswählbare Website-Bereiche */
.feature-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.feature-mode-card{display:flex;align-items:flex-start;gap:12px;min-height:145px;padding:18px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .2s ease,transform .2s ease,background .2s ease}
.feature-mode-card:hover{transform:translateY(-1px);border-color:rgba(199,123,255,.55)}
.feature-mode-card:has(input:checked){border-color:#c77bff;background:rgba(199,123,255,.11);box-shadow:0 0 0 1px rgba(199,123,255,.18) inset}
.feature-mode-card input{width:20px;height:20px;margin:2px 0 0;accent-color:#c77bff;flex:0 0 auto}
.feature-mode-card span{display:flex;flex-direction:column;gap:8px}
.feature-mode-card strong{font-size:1.04rem;color:var(--text)}
.feature-mode-card small{line-height:1.55;color:var(--muted)}
@media (max-width:900px){.feature-mode-grid{grid-template-columns:1fr}}

/* Fix73: Produktlizenzen und Zusatzprodukte */
.product-addon-fieldset{border:1px solid var(--line);border-radius:16px;padding:1rem}.product-addon-fieldset legend{padding:0 .45rem;font-weight:800}.field-hint{color:var(--muted);margin:.2rem 0 .8rem}.product-addon-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.7rem}.product-addon-options label{display:flex;gap:.7rem;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:.8rem;background:rgba(255,255,255,.025);cursor:pointer}.product-addon-options input{width:auto;margin-top:.25rem;accent-color:var(--accent)}.product-addon-options span{display:grid;gap:.2rem}.product-addon-options small{color:var(--muted)}.admin-license-snapshot{border:1px solid var(--line);border-radius:12px;margin:.75rem 0;background:rgba(255,255,255,.025)}.admin-license-snapshot summary{cursor:pointer;padding:.9rem 1rem}.admin-license-snapshot>div{border-top:1px solid var(--line);padding:1rem;white-space:normal;line-height:1.65;max-height:28rem;overflow:auto}.admin-license-snapshot code{font-size:.72rem;word-break:break-all}
.license-template-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.7rem}.license-template-actions .btn{width:auto}

/* Fix74: automatische Datenbankaktualisierung */
.database-update-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-width:1px}.database-update-card.is-current{border-color:rgba(66,211,146,.35);background:linear-gradient(135deg,rgba(66,211,146,.08),rgba(255,255,255,.02))}.database-update-card.needs-update{border-color:rgba(255,190,92,.42);background:linear-gradient(135deg,rgba(255,190,92,.09),rgba(255,255,255,.02))}.database-update-copy{display:flex;align-items:flex-start;gap:1rem;min-width:0}.database-update-copy h2{margin:0 0 .35rem}.database-update-copy p{margin:0;color:var(--muted);line-height:1.55}.database-update-icon,.database-current-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.65rem;height:2.65rem;border:1px solid currentColor;border-radius:50%;font-size:1.2rem;font-weight:900;line-height:1}.database-update-card.is-current .database-update-icon,.database-current-icon{color:#42d392}.database-update-card.needs-update .database-update-icon{color:#ffbe5c}.database-update-versions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}.database-update-actions{flex:0 0 auto}.update-version-grid{margin-bottom:1.2rem}.update-list{display:grid;gap:.7rem;margin:1.2rem 0}.update-list h2{margin:0 0 .2rem}.update-list-row{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025)}.update-run-actions{margin-top:1rem}.update-note{margin:.8rem 0 0}.database-current-box{display:flex;align-items:flex-start;gap:1rem;margin:1rem 0 1.2rem;padding:1rem;border:1px solid rgba(66,211,146,.35);border-radius:16px;background:rgba(66,211,146,.07)}.database-current-box h2{margin:0 0 .3rem}.database-current-box p{margin:0;color:var(--muted)}
@media (max-width:820px){.database-update-card{align-items:stretch;flex-direction:column}.database-update-actions{width:100%}.database-update-actions .btn{flex:1}.update-list-row{align-items:flex-start;flex-direction:column}}


/* Fix75: kompakte Projektaktionen und Datenbankstatus im Dashboard */
.btn-compact{min-height:38px;padding:.55rem .8rem;border-radius:11px;font-size:.86rem}
.project-action-form{display:flex;align-items:center;gap:.5rem;min-width:300px;width:100%}
.project-action-form select{flex:1 1 auto;min-width:190px;min-height:40px;padding:.55rem .75rem;border-radius:11px}
.project-action-form .btn{flex:0 0 auto;min-width:108px;white-space:nowrap}
.projects-table-card .table-wrap{overflow-x:auto}
.projects-table{min-width:1320px;table-layout:auto}
.projects-table th,.projects-table td{vertical-align:top}
.projects-table th:nth-child(1),.projects-table td:nth-child(1),
.projects-table th:nth-child(4),.projects-table td:nth-child(4),
.projects-table th:nth-child(5),.projects-table td:nth-child(5),
.projects-table th:nth-child(6),.projects-table td:nth-child(6),
.projects-table th:nth-child(7),.projects-table td:nth-child(7),
.projects-table th:nth-child(8),.projects-table td:nth-child(8),
.projects-table th:nth-child(9),.projects-table td:nth-child(9){white-space:nowrap}
.projects-table th:nth-child(2),.projects-table td:nth-child(2){min-width:220px}
.projects-table th:nth-child(3),.projects-table td:nth-child(3){min-width:240px;overflow-wrap:anywhere}
.projects-table th:nth-child(10),.projects-table td:nth-child(10){min-width:320px}
.dashboard-page-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:flex-start}
.dashboard-page-head>div:first-child{min-width:0}
.dashboard-head-actions{width:100%;max-width:none;justify-content:flex-start}
.dashboard-head-actions .btn{flex:0 0 auto;white-space:nowrap}
.dashboard-database-status{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.72rem}
.database-status-chip{display:inline-flex;align-items:center;gap:.55rem;min-height:38px;padding:.35rem .7rem .35rem .42rem;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);font-size:.78rem;line-height:1.15}
.database-status-chip>span:last-child{display:grid;gap:.08rem}
.database-status-chip strong{font-size:.8rem;white-space:nowrap}
.database-status-chip small{color:var(--muted);font-size:.7rem;white-space:nowrap}
.database-status-icon{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;flex:0 0 27px}
.database-status-icon svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.database-status-chip.status-current{color:#75e4ad;border-color:rgba(66,211,146,.34);background:rgba(66,211,146,.08)}
.database-status-chip.status-current small{color:#a7d8c0}
.database-status-chip.status-current .database-status-icon{background:rgba(66,211,146,.13)}
.database-status-chip.status-update,.database-status-chip.status-error{color:#ff8b8b;border-color:rgba(255,107,107,.4);background:rgba(255,107,107,.1)}
.database-status-chip.status-update small,.database-status-chip.status-error small{color:#ffc0c0}
.database-status-chip.status-update .database-status-icon,.database-status-chip.status-error .database-status-icon{background:rgba(255,107,107,.14)}
.database-status-form{display:inline-flex;margin:0}
@media (max-width:760px){.project-action-form{min-width:260px}.project-action-form select{min-width:150px}.dashboard-head-actions{justify-content:flex-start;max-width:none}.dashboard-head-actions .btn{white-space:normal}.database-status-chip strong,.database-status-chip small{white-space:normal}}


/* Fix77: Betriebssysteme und Systemanforderungen für Produkte */
.product-platform-fieldset{border:1px solid var(--line);border-radius:16px;padding:1rem}
.product-platform-fieldset legend{padding:0 .45rem;font-weight:800}
.product-platform-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem}
.product-platform-options label{display:flex;align-items:center;gap:.65rem;min-height:48px;padding:.7rem .8rem;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);cursor:pointer}
.product-platform-options label:has(input:checked){border-color:rgba(123,114,255,.65);background:rgba(123,114,255,.12)}
.product-platform-options input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--primary);flex:0 0 auto}
.product-platform-options span{font-weight:750}

/* Fix80: geprüfter und gestaffelter Versand von Update-E-Mails */
.update-campaign-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;margin-bottom:1.4rem}
.update-campaign-summary h2{margin:.35rem 0 .45rem}
.update-campaign-rules{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.65rem;max-width:470px}
.update-campaign-rules span,.update-campaign-rules a{display:inline-flex;align-items:center;gap:.35rem;min-height:38px;padding:.55rem .8rem;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);font-size:.82rem}
.update-campaign-rules a{color:#d7b8ff}
.update-campaign-stats{margin-bottom:1.4rem}
.update-recipient-table{min-width:1100px}
.update-recipient-table th:first-child,.update-recipient-table td:first-child{min-width:170px}
.update-recipient-table th:nth-child(2),.update-recipient-table td:nth-child(2){min-width:180px}
.update-recipient-table th:nth-child(3),.update-recipient-table td:nth-child(3){min-width:250px}
.update-recipient-table th:last-child,.update-recipient-table td:last-child{min-width:235px}
.update-recipient-check{display:flex;align-items:center;grid-template-columns:none;gap:.55rem;font-weight:700;white-space:nowrap}
.update-recipient-check input{width:20px;min-height:20px;height:20px;margin:0;accent-color:var(--primary)}
.update-recipient-check input:disabled{opacity:.6}
.update-recipient-error{display:block;max-width:360px;margin-top:.45rem;color:#ffc0c0;line-height:1.45;overflow-wrap:anywhere}
.update-selection-actions{align-items:center;margin-top:1rem}
.update-send-card{margin-top:1.4rem}
.update-send-progress{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035);color:var(--muted);line-height:1.55}
.update-send-progress[data-state="sending"]{border-color:rgba(123,114,255,.42);color:#dcd8ff}
.update-send-progress[data-state="waiting"]{border-color:rgba(255,190,85,.38);color:#ffe0a3}
.update-send-progress[data-state="success"]{border-color:rgba(33,199,135,.38);color:#9ff0cb}
.update-send-progress[data-state="warning"],.update-send-progress[data-state="error"]{border-color:rgba(255,107,107,.42);color:#ffc0c0}
.update-status-draft{background:rgba(255,255,255,.06)}
.update-status-approved{background:rgba(123,114,255,.18);color:#dedbff}
.update-status-sending{background:rgba(255,190,85,.16);color:#ffe0a3}
.update-status-sent{background:rgba(33,199,135,.14);color:#a9f2d0}
.update-status-failed{background:rgba(255,107,107,.14);color:#ffd0d0}
.update-status-excluded{background:rgba(255,255,255,.04);color:var(--muted)}
@media (max-width:820px){.update-campaign-summary{flex-direction:column}.update-campaign-rules{justify-content:flex-start;max-width:none}}


/* Fix81: lange Plattform- und Dateibezeichnungen innerhalb der Produktfelder halten */
.form-grid > label,
.form-grid > fieldset,
.product-file-field,
.product-platform-options,
.product-platform-options label,
.product-platform-options span {
    min-width: 0;
}
.product-file-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-file-current {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    margin-top: .15rem;
    line-height: 1.45;
}
.product-file-current strong {
    flex: 0 0 auto;
    color: var(--text);
}
.product-file-current span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-platform-options {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.product-platform-options label {
    align-items: flex-start;
    min-height: 58px;
}
.product-platform-options span {
    display: block;
    max-width: 100%;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: normal;
}
@media (max-width: 620px) {
    .product-file-current {
        display: grid;
        gap: .15rem;
    }
}

/* Fix82: Projekt und Shop-Produkt ohne doppelte Inhaltspflege */
.project-shop-option,
.project-content-sync-option {
    display: grid !important;
    gap: .55rem;
    padding: 1rem;
    border: 1px solid rgba(92, 182, 255, .28);
    border-radius: 16px;
    background: rgba(92, 182, 255, .065);
}
.project-shop-option small,
.project-content-sync-option small {
    color: var(--muted);
    line-height: 1.55;
}
.project-content-sync-option.is-active {
    border-color: rgba(33, 199, 135, .38);
    background: rgba(33, 199, 135, .08);
}
.project-shop-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
}
.project-shop-link-card > div {
    display: grid;
    gap: .25rem;
    min-width: 0;
}
.project-shop-link-card strong,
.project-shop-link-card small {
    overflow-wrap: anywhere;
}
.project-shop-link-card small,
.project-shop-eyebrow {
    color: var(--muted);
}
.project-shop-eyebrow {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
[data-project-sync-field][readonly] {
    background: rgba(33, 199, 135, .045);
    border-color: rgba(33, 199, 135, .25);
    cursor: not-allowed;
}
@media (max-width: 720px) {
    .project-shop-link-card {
        align-items: stretch;
        display: grid;
    }
}

/* Fix83: Projektübersicht wieder über die gesamte verfügbare Seitenbreite */
.projects-overview-main {
    width: calc(100% - 2rem);
}

/* Fix 98: Support-Ticketsystem */
.admin-nav a { position: relative; }
.nav-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: .35rem;
  padding: 0 .32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9c72ff, #ec65bd);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}
.support-admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  gap: .8rem;
  margin: 1rem 0 1.2rem;
}
.support-admin-stats .stats-card { text-decoration: none; color: inherit; min-height: 112px; }
.support-admin-stats .stats-card.is-selected { border-color: rgba(222, 102, 196, .7); box-shadow: inset 0 0 0 1px rgba(222, 102, 196, .35); }
.support-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(190px, .8fr) minmax(170px, .7fr) auto;
  gap: 1rem;
  align-items: end;
}
.support-filter-form label,
.support-ticket-meta-form label { display: grid; gap: .42rem; font-weight: 800; }
.support-row-unread { box-shadow: inset 4px 0 0 #df5ec1; }
.support-priority-high,
.support-priority-urgent { background: rgba(228, 75, 123, .2); border-color: rgba(228, 75, 123, .45); }
.support-priority-low { opacity: .75; }
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 1.2rem;
  align-items: start;
}
.support-ticket-meta-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto;
  gap: .8rem;
  align-items: end;
}
.support-ticket-meta-form select { width: 100%; }
.support-thread-admin { display: grid; gap: 1rem; margin: 1.2rem 0; }
.support-message {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(13, 20, 39, .86);
}
.support-message-customer { border-left: 4px solid #e75cc7; }
.support-message-staff { border-left: 4px solid #8670ff; }
.support-message.is-internal { border-left-color: #e5a74a; background: rgba(67, 48, 20, .35); }
.support-message header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.support-message header strong,
.support-message header span { display: block; }
.support-message header span { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.support-message-body { line-height: 1.65; overflow-wrap: anywhere; }
.support-attachments { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }
.support-attachments a { text-decoration: none; padding: .48rem .65rem; border: 1px solid var(--border); border-radius: 9px; color: var(--text); }
.support-customer-card dl { display: grid; grid-template-columns: 105px 1fr; gap: .65rem .8rem; margin: 0; }
.support-customer-card dt { color: var(--muted); }
.support-customer-card dd { margin: 0; overflow-wrap: anywhere; }
.support-email-log { display: grid; gap: .65rem; }
.support-email-log > div { display: grid; gap: .25rem; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; }
.support-email-log span { overflow-wrap: anywhere; }
.support-email-log small { color: #f0a3ad; }
.eyebrow { color: #ab8cff; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
@media (max-width: 1200px) {
  .support-admin-stats { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .support-ticket-meta-form { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .support-filter-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .support-admin-layout { grid-template-columns: 1fr; }
  .support-admin-stats { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 560px) {
  .support-admin-stats,
  .support-ticket-meta-form,
  .support-filter-form { grid-template-columns: 1fr; }
}
.support-status-new,
.support-status-customer_replied { background: rgba(226,72,154,.2); border-color: rgba(226,72,154,.45); }
.support-status-open { background: rgba(78,139,255,.2); border-color: rgba(78,139,255,.45); }
.support-status-waiting_customer { background: rgba(245,176,65,.18); border-color: rgba(245,176,65,.4); }
.support-status-resolved { background: rgba(58,196,133,.18); border-color: rgba(58,196,133,.4); }
.support-status-closed { opacity: .75; }

/* Fix106: Security-Log-Anzeige und zentrale Update-Verwaltung */
.compact-page-head {
    margin-bottom: 1rem;
}
.compact-page-head h2,
.compact-page-head h3,
.compact-page-head p {
    margin-top: 0;
}
.update-patch-card {
    margin-bottom: 1.25rem;
}
.update-safety-notice {
    padding: 1rem;
    border: 1px solid rgba(123,114,255,.32);
    border-radius: 16px;
    background: rgba(123,114,255,.07);
}
.update-safety-notice strong {
    display: block;
    margin-bottom: .45rem;
}
.update-safety-notice ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}
.security-log-summary {
    margin-bottom: 1.25rem;
}
.security-log-select-form {
    align-items: end;
}
.security-log-table {
    min-width: 1180px;
    table-layout: fixed;
}
.security-log-table th:nth-child(1),
.security-log-table td:nth-child(1) {
    width: 190px;
}
.security-log-table th:nth-child(2),
.security-log-table td:nth-child(2) {
    width: 230px;
}
.security-log-table th:nth-child(3),
.security-log-table td:nth-child(3) {
    width: 280px;
}
.security-log-time {
    white-space: nowrap;
}
.security-log-event,
.security-log-hash {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.security-log-hash {
    margin: .18rem 0 .6rem;
    color: #dfe7ff;
}
.security-log-context {
    max-width: 100%;
    max-height: 18rem;
    margin: 0;
    padding: .75rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0,0,0,.2);
    color: #dfe7ff;
    font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.security-log-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
    .security-log-pagination {
        flex-wrap: wrap;
    }
}

/* Fix108: Anwendungstools – Suno Link Player und MP3-Download */
.application-tool-card {
    display: grid;
    gap: 1.1rem;
}
.application-tool-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.application-tool-head h2 {
    margin: .35rem 0 .45rem;
}
.application-tool-head p {
    margin: 0;
    max-width: 850px;
}
.application-tool-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .8rem;
}
.application-tool-message {
    margin: 0;
}
.application-tool-result {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.03);
}
.application-tool-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.application-tool-result-meta > div {
    min-width: 0;
    display: grid;
    gap: .35rem;
}
.application-tool-result-meta code {
    overflow-wrap: anywhere;
    color: #dfe7ff;
}
.application-tool-result-label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.application-tool-player {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
}
.application-tool-player audio {
    display: block;
    width: 100%;
}
.application-tool-actions {
    justify-content: flex-start;
}
@media (max-width: 760px) {
    .application-tool-form {
        grid-template-columns: 1fr;
    }
    .application-tool-head,
    .application-tool-result-meta {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Fix219: lesbare Aufnahmeoptionen mit eigenem, konsistentem Haken */
.application-tool-capture-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  width: 100%;
  margin-top: .8rem;
}
.application-tool-capture-option {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: .72rem;
  min-width: 0;
  min-height: 74px;
  padding: .82rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.application-tool-capture-option:hover {
  border-color: rgba(196,129,255,.55);
  background: rgba(255,255,255,.055);
}
.application-tool-capture-option:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(181,112,255,.14);
}
.application-tool-capture-option > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.application-tool-capture-option-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  background: rgba(4,10,24,.72);
  color: #fff;
  box-sizing: border-box;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.application-tool-capture-option-check::after {
  content: "✓";
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .12s ease, transform .12s ease;
}
.application-tool-capture-option > input[type="checkbox"]:checked + .application-tool-capture-option-check {
  border-color: var(--primary);
  background: linear-gradient(135deg, #8f64ff, #ec5cb9);
}
.application-tool-capture-option > input[type="checkbox"]:checked + .application-tool-capture-option-check::after {
  opacity: 1;
  transform: scale(1);
}
.application-tool-capture-option-copy {
  display: grid;
  gap: .22rem;
  min-width: 0;
}
.application-tool-capture-option-copy strong {
  display: block;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.application-tool-capture-option-copy small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.application-tool-capture-options-inline {
  margin: .78rem 0 0;
}
@media (max-width: 920px) {
  .application-tool-capture-options { grid-template-columns: 1fr; }
}
