:root {
    --bg:       #f4f6fb;
    --surface:  #ffffff;
    --surface2: #f0f3f9;
    --fg:       #111827;
    --muted:    #6b7280;
    --border:   rgba(0,0,0,0.08);
    --border2:  rgba(0,0,0,0.14);
    --brand:    #4f6ef7;
    --brand-soft: rgba(79,110,247,0.10);
    --ok:       #10b981;
    --ok-soft:  rgba(16,185,129,0.10);
    --err:      #ef4444;
    --err-soft: rgba(239,68,68,0.10);
    --warn:     #f59e0b;
    --warn-soft: rgba(245,158,11,0.10);
    --radius:   10px;
    --radius-sm: 6px;
    --shadow:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: var(--bg);
    color: var(--fg);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────── */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--fg);
    text-decoration: none;
    margin-right: 8px;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tabs {
    display: flex;
    gap: 2px;
    flex: 1;
}

.tabs a {
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.tabs a:hover { color: var(--fg); background: var(--surface2); }
.tabs a.active { background: var(--brand-soft); color: var(--brand); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-user form { margin: 0; }

.org-badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Upgrade-Banner ───────────────────────────────────── */
.upgrade-banner {
    background: var(--warn-soft);
    border-bottom: 1px solid rgba(245,158,11,0.2);
    padding: 7px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--warn);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.upgrade-banner-link { color: var(--warn); font-weight: 600; }

/* Trial-Banner (blau) */
.upgrade-banner-trial {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.upgrade-banner-trial .upgrade-banner-link { color: #1d4ed8; }

/* ── KI-Analyse Highlight-Banner ─────────────────────── */
.ai-highlight-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.ai-highlight-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.ai-highlight-icon {
    color: #0284c7;
    flex-shrink: 0;
}
.ai-highlight-text {
    flex: 1;
    font-size: 13.5px;
    color: #0c4a6e;
}
.ai-highlight-text strong { color: #0284c7; }

/* ── Layout ───────────────────────────────────────────── */
.container { display: block; max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.container-wide { max-width: 1400px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 20px 0;
    background: var(--surface);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-copy {
    font-size: 12px;
    color: var(--muted);
}

.site-footer-nav {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.site-footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer-nav a:hover { color: var(--fg); }

/* ── Cookie-Banner ────────────────────────────────────── */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.cookie-banner-text {
    color: var(--muted);
    margin: 0;
}

.cookie-banner-text a { color: var(--brand); }

/* ── Seiten-Header ────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header h1 { font-size: 22px; font-weight: 500; }
.page-header p   { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ── Stats-Karten ─────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 500; color: var(--fg); }
.stat-value-sm { font-size: 18px; font-weight: 500; color: var(--fg); margin-top: 4px; }
.stat-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-sub-link { font-size: 11px; margin-top: 3px; }
.stat-sub-link a { color: var(--brand); text-decoration: none; }
.stat-ok    { color: var(--ok); }
.stat-warn  { color: var(--warn); }
.stat-muted { color: var(--muted); }

/* ── Home Quick-Nav ───────────────────────────────────── */
.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.home-nav-link {
    text-decoration: none;
}

.home-nav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.home-nav-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.home-nav-icon {
    margin-bottom: 10px;
    display: flex;
}

.home-nav-icon svg {
    color: var(--brand);
}

.home-nav-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--fg);
}

.home-nav-desc {
    font-size: 12px;
    color: var(--muted);
}

/* ── Cards ────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title { font-weight: 500; font-size: 14px; }
.card-body  { padding: 18px; }

/* ── Buttons ──────────────────────────────────────────── */
button, .btn { cursor: pointer; font: inherit; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.btn-primary  { background: var(--brand);  color: white; border-color: var(--brand); }
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
    background: var(--surface);
    color: var(--fg);
    border-color: var(--border2);
}
.btn-secondary:hover { background: var(--surface2); }

.btn-ghost {
    background: var(--surface2);
    color: var(--muted);
    border-color: var(--border);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--border2); }

.btn-danger {
    background: var(--err-soft);
    color: var(--err);
    border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.18); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }
.btn-full { width: 100%; justify-content: center; }
.btn-full-lg { width: 100%; justify-content: center; padding: 10px; }

/* Alte danger-Klasse für Kompatibilität */
button.danger, .danger {
    background: var(--err-soft);
    color: var(--err);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
button.danger:hover { background: rgba(239,68,68,0.18); }

/* ── Formulare ────────────────────────────────────────── */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.field       { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field-hint  { font-size: 11px; color: var(--muted); }
.field-error { color: var(--err); font-size: 11px; margin-top: 3px; }

input, select, textarea {
    padding: 8px 11px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 13px;
    background: var(--surface);
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }

.search-row {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.search-input { flex: 1; min-width: 180px; }
.search-select { min-width: 160px; }

.actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.actions-row-end { justify-content: flex-end; }
.actions-row-span { grid-column: 1 / -1; }
.actions-row-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.actions-row-pad { padding: 14px 18px; border-top: 1px solid var(--border); }

/* ── Auth-Seiten ──────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--fg);
    margin-bottom: 4px;
    text-decoration: none;
}

.auth-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-subtitle { color: var(--muted); font-size: 13px; margin: 0 0 28px 0; }
.auth-card h1  { font-size: 20px; font-weight: 500; margin: 0 0 20px 0; }
.auth-card h1.auth-h1-sm { margin: 0 0 16px 0; }

.section-sep {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 16px 0 10px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--brand); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.agb-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
}

.agb-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agb-label a { color: var(--brand); }

/* ── Tabellen ─────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }

thead tr { border-bottom: 1px solid var(--border); }

th {
    padding: 10px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }

.table-actions { white-space: nowrap; }
.table-actions form { display: inline; margin: 0; }

.inline-forms form { display: inline; margin-right: 6px; }

.td-muted { color: var(--muted); }
.td-right { text-align: right; }
.td-right-bold { text-align: right; font-weight: 500; }
.td-center { text-align: center; }

/* ── Badges ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-blue   { background: var(--brand-soft); color: var(--brand); }
.badge-green  { background: var(--ok-soft);    color: var(--ok); }
.badge-gray   { background: var(--surface2);   color: var(--muted); border: 1px solid var(--border); }
.badge-warn   { background: var(--warn-soft);  color: var(--warn); }
.badge-err    { background: var(--err-soft);   color: var(--err); }

/* ── Alerts ───────────────────────────────────────────── */
.alert {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.alert.success { background: var(--ok-soft);  color: var(--ok);  border: 1px solid rgba(16,185,129,0.2); }
.alert.error   { background: var(--err-soft); color: var(--err); border: 1px solid rgba(239,68,68,0.2); }
.alert-center  { justify-content: center; text-align: center; margin-bottom: 32px; }

/* ── Item-Metadaten (Piece-Zeile) ─────────────────────── */
.item-title { font-weight: 500; color: var(--fg); }
.item-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Typo-Hilfsklassen ────────────────────────────────── */
.muted { color: var(--muted); }
h1 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
h2 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }

/* ── Trenner ──────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Part-Edit-Reihe (Stimmen bearbeiten) ─────────────── */
.part-edit-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(140px, 1.2fr) minmax(180px, 1.6fr) 110px 44px;
    gap: 10px;
    align-items: end;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.part-edit-row:last-of-type { border-bottom: none; }

@media (max-width: 980px) {
    .part-edit-row { grid-template-columns: 1fr; }
}

/* ── Groups Match-Row ─────────────────────────────────── */
.match-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.match-type { width: 170px; flex: 0 0 auto; }
.match-value { flex: 1 1 auto; min-width: 0; }

.rules-table { table-layout: fixed; width: 100%; }

/* ── Druck: Markierungen ──────────────────────────────── */
.needs-manual { border-color: var(--err) !important; background: var(--err-soft) !important; }
.row-needs-manual td { background: rgba(239,68,68,0.03); }

.badge-warn-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.25);
    background: var(--warn-soft);
    color: var(--warn);
    font-size: 11px;
}

/* ── Empty State ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}
.empty-state p { font-size: 13px; margin-top: 6px; }
.empty-icon { font-size: 28px; margin-bottom: 8px; }

/* ── Pfeile & Icons ───────────────────────────────────── */
.toggle-icon {
    font-size: 20px;
    color: var(--muted);
    line-height: 1;
    flex-shrink: 0;
}

.back-link {
    font-size: 15px !important;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.back-link:hover { color: var(--fg); }

/* ── Detail-Page H1 ───────────────────────────────────── */
.detail-h1 { margin-top: 4px; }

/* ── Org/Settings ─────────────────────────────────────── */
.settings-wrap { max-width: 560px; }

.slug-info {
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.account-row + .account-row {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.account-label { color: var(--muted); }

/* ── Legal-Seiten ─────────────────────────────────────── */
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal-card { padding: 28px; line-height: 1.8; }
.legal-card section { margin-bottom: 24px; }
.legal-card section:last-child { margin-bottom: 0; }
.legal-meta {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.legal-card ul {
    margin-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.legal-card p + p { margin-top: 8px; }

/* ── Pricing-Seite ────────────────────────────────────── */
.pricing-wrap { max-width: 860px; margin: 0 auto; }

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 { font-size: 28px; font-weight: 500; margin-bottom: 8px; }

.pricing-header-badge { margin-top: 12px; }

/* 2-Plan Pricing Grid */
.pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.pricing-card {
    padding: 28px 24px;
}

.pricing-card.featured {
    border: 2px solid var(--brand);
    position: relative;
    overflow: visible;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(79,110,247,0.4);
}

.plan-name {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
}

.plan-price { font-size: 32px; font-weight: 500; margin-bottom: 2px; }
.plan-period { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li { display: flex; gap: 8px; }
.plan-feature-ok { color: var(--ok); }
.plan-feature-no { color: var(--muted); }

.plan-current {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.plan-current-pro {
    text-align: center;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
}

.plan-downgrade {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 8px;
}

.pricing-faq { display: grid; gap: 20px; font-size: 13px; }
.pricing-faq-q { font-weight: 500; margin-bottom: 4px; }

/* Billing toggle */
.pricing-toggle-wrap { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 16px 0 24px; }
.pricing-toggle-label { font-size: 14px; color: var(--text-muted); }
.pricing-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.pricing-toggle-switch input { opacity: 0; width: 0; height: 0; }
.pricing-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 24px; transition: .2s; }
.pricing-toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .2s; }
.pricing-toggle-switch input:checked + .pricing-toggle-slider { background: var(--brand); }
.pricing-toggle-switch input:checked + .pricing-toggle-slider:before { transform: translateX(20px); }

/* ── Print-History ────────────────────────────────────── */
.history-job-title { font-weight: 500; }
.history-job-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Archive ──────────────────────────────────────────── */
.archive-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.archive-summary-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

/* ── Stimmen-Upload-Grid ──────────────────────────────── */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.file-list {
    list-style: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-list li { color: var(--muted); }

.stimmen-header { cursor: pointer; user-select: none; }

/* ── Landing Page ─────────────────────────────────────── */
.lp-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lp-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--fg);
    text-decoration: none;
}

.lp-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-nav-links { display: flex; align-items: center; gap: 8px; }

.lp-hero {
    background: linear-gradient(160deg, #f0f4ff 0%, var(--bg) 60%);
    padding: 72px 24px 64px;
    text-align: center;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.lp-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--fg);
    margin-bottom: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.lp-hero h1 span { color: var(--brand); }

.lp-hero-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.lp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-hero-note    { margin-top: 14px; font-size: 12px; color: var(--muted); }

.lp-section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.lp-section-alt { background: var(--surface); padding: 64px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section-alt-inner { max-width: 1100px; margin: 0 auto; }

.lp-section-title { text-align: center; font-size: 28px; font-weight: 600; margin-bottom: 8px; color: var(--fg); }
.lp-section-sub   { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 44px; }

.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.lp-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.lp-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}

.lp-feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lp-feature-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lp-step { text-align: center; padding: 24px 16px; }

.lp-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 14px;
}

.lp-step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lp-step p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

.lp-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.lp-plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.lp-plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }

.lp-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.lp-plan-name   { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.lp-plan-price  { font-size: 34px; font-weight: 700; margin-bottom: 2px; }
.lp-plan-period { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.lp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.lp-plan-features li { display: flex; gap: 8px; }
.lp-ok { color: var(--ok); }
.lp-no { color: var(--muted); }

.lp-cta {
    background: var(--brand);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-cta h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.lp-cta p  { color: rgba(255,255,255,0.80); font-size: 15px; margin-bottom: 24px; }

.lp-cta-wrap { padding: 0 0 64px; }

.lp-footer {
    border-top: 1px solid var(--border);
    margin-top: 64px;
    padding: 24px;
    background: var(--surface);
}

.lp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.lp-footer-copy { color: var(--muted); }

.lp-footer nav { display: flex; gap: 20px; }
.lp-footer a { color: var(--muted); text-decoration: none; }
.lp-footer a:hover { color: var(--fg); }

/* ── Landing Buttons ──────────────────────────────────── */
.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-lg-sm { padding: 7px 16px; font-size: 13px; }

.btn-brand       { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: #3d5ce0; }

.btn-outline       { background: transparent; color: var(--fg); border: 1px solid var(--border2); }
.btn-outline:hover { background: var(--surface2); }

.btn-white       { background: #fff; color: var(--brand); border: none; }
.btn-white:hover { background: #f0f4ff; }

.btn-plan-full { width: 100%; justify-content: center; padding: 9px; }

/* ── Onboarding ───────────────────────────────────────── */
.onb-card { max-width: 480px; }

.onb-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0 28px;
}

.onb-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.onb-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.onb-done {
    background: var(--ok-soft);
    border-color: var(--ok);
    color: var(--ok);
}

.onb-line {
    flex: 1;
    height: 2px;
    background: var(--border2);
    transition: background 0.2s;
}

.onb-line-done { background: var(--ok); }

.onb-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--fg);
}

.onb-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.onb-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--surface2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.onb-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.onb-check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.onb-check-done {
    background: var(--ok-soft);
    color: var(--ok);
}

.onb-check-todo {
    background: var(--surface);
    border: 2px solid var(--border2);
    color: var(--muted);
}

.onb-check-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
}

.onb-check-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.onb-info-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.onb-info-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 4px;
}

.onb-info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
}

.onb-hint {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}

.onb-hint a { color: var(--brand); text-decoration: none; }
.onb-hint a:hover { text-decoration: underline; }

.onb-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--brand-soft);
    border: 1px solid rgba(79,110,247,0.2);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--fg);
    margin-bottom: 24px;
    line-height: 1.5;
}

.onb-tip-icon {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 1px;
}

.onb-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   LANDING PAGE – Erweiterungen
   ═══════════════════════════════════════════════════════ */

/* ── Problem / Vorher-Nachher ── */
.lp-problem {
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 24px;
}
.lp-problem-inner {
    max-width: 900px;
    margin: 0 auto;
}
.lp-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}
@media (max-width: 600px) {
    .lp-compare { grid-template-columns: 1fr; }
}
.lp-compare-col {
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}
.lp-compare-col.bad  { background: #fff5f5; border-color: #fecaca; }
.lp-compare-col.good { background: #f0fdf4; border-color: #86efac; }
.lp-compare-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lp-compare-col.bad  h4 { color: #dc2626; }
.lp-compare-col.good h4 { color: #16a34a; }
.lp-compare-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--fg);
}
.lp-compare-col li { display: flex; gap: 8px; align-items: flex-start; }
.lp-compare-col li span { flex-shrink: 0; margin-top: 1px; }

/* ── KI Highlight Block ── */
.lp-ki-block {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
    padding: 64px 24px;
}
.lp-ki-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.lp-ki-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}
.lp-ki-inner h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 12px;
}
.lp-ki-inner p {
    font-size: 16px;
    color: #0369a1;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.65;
}
.lp-ki-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.lp-ki-stat { text-align: center; }
.lp-ki-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #0284c7;
    line-height: 1;
    margin-bottom: 4px;
}
.lp-ki-stat-label {
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
}

/* ── Testimonials ── */
.lp-testimonials {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 24px;
}
.lp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.lp-testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.lp-testimonial-quote {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 16px;
    font-style: italic;
}
.lp-testimonial-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.lp-testimonial-coming {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    padding: 32px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.lp-testimonial-coming a {
    color: var(--brand);
    text-decoration: none;
}

/* ── FAQ ── */
.lp-faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px;
}
.lp-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.lp-faq-item:first-of-type { border-top: 1px solid var(--border); }
.lp-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 8px;
}
.lp-faq-a {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
}
.lp-faq-a a { color: var(--brand); text-decoration: none; }

/* ── Pricing 2-col ── */
.lp-pricing-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}
@media (max-width: 560px) {
    .lp-pricing-2 { grid-template-columns: 1fr; }
}

/* ── Plan full-width button ── */
.btn-plan-full {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Footer Support-Link ── */
.lp-footer-copy a {
    color: var(--muted);
    text-decoration: none;
}
.lp-footer-copy a:hover { color: var(--fg); }

/* Rules Table Spaltenbreiten */
.rules-table td:nth-child(1) { width: 55%; }
.rules-table td:nth-child(2) { width: 15%; }
.rules-table td:nth-child(3) { width: 15%; }
.rules-table td:nth-child(4) { width: 15%; }
.rules-table input { width: 100%; box-sizing: border-box; }

/* Alert-Limit im card-header Bereich */
.alert-limit {
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
.form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.form-inline .field {
    flex: 1;
}
/* ═══════════════════════════════════════════════════════
   HILFE-SYSTEM (Tooltips, Empty States, Hilfeseite)
   ═══════════════════════════════════════════════════════ */

/* ── Tooltips ── */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    margin-left: 5px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    line-height: 1;
}
.tooltip-icon:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    width: 220px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
}
.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}
.tooltip-wrap:hover .tooltip-box { display: block; }

/* ── Empty States (erweitert) ── */
.empty-state-rich {
    padding: 40px 24px;
    text-align: center;
}
.empty-state-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--brand);
}
.empty-state-rich h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 8px;
}
.empty-state-rich p {
    font-size: 13px;
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.empty-state-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto 24px;
    text-align: left;
}
.empty-state-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--fg);
}
.empty-state-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Hilfeseite ── */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.help-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.help-card-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    margin-bottom: 12px;
}
.help-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--fg);
}
.help-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.help-card ol, .help-card ul {
    padding-left: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}
.help-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg);
    margin: 32px 0 16px;
}
.help-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.help-faq-item:first-of-type { border-top: 1px solid var(--border); }
.help-faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 6px;
}
.help-faq-a {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}
.help-tip {
    background: var(--brand-soft);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--brand);
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.help-tip strong { color: var(--brand); }

/* ═══════════════════════════════════════════════════════
   DASHBOARD – Erweiterungen
   ═══════════════════════════════════════════════════════ */

.home-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 28px 0 12px;
}

/* Nächster Schritt Karte */
.home-next-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    margin-bottom: 8px;
}
.home-next-icon {
    color: #0284c7;
    flex-shrink: 0;
}
.home-next-content { flex: 1; }
.home-next-title {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 2px;
}
.home-next-desc {
    font-size: 13px;
    color: #0369a1;
}

/* Zuletzt bearbeitete Stücke */
.home-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.home-recent-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    display: block;
}
.home-recent-card:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.home-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-recent-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}
.home-recent-badge { margin-top: 6px; }


/* Tooltip nach unten zeigen (für card-header Bereich) */
.tooltip-box-down {
    bottom: auto;
    top: calc(100% + 8px);
}
.tooltip-box-down::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}

/* Druckhistorie Toggle */
.history-toggle-icon {
    font-size: 18px;
    color: var(--muted);
    margin-left: 8px;
    flex-shrink: 0;
}
.history-job-header:hover {
    background: var(--surface2);
}

/* Tooltip linksbündig ausrichten (für Elemente am rechten Rand) */
.tooltip-box-left {
    left: auto;
    right: 0;
    transform: none;
}
.tooltip-box-left::after {
    left: auto;
    right: 12px;
    transform: none;
}
/* ═══════════════════════════════════════════════════════
   FEHLERSEITEN
   ═══════════════════════════════════════════════════════ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 24px;
}
.error-page-inner { text-align: center; max-width: 480px; }
.error-code {
    font-size: 80px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.15;
}
.error-code-500 { color: var(--err); }
.error-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--fg);
}
.error-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════
   DANGER CARD & MODAL
   ═══════════════════════════════════════════════════════ */
.card-danger {
    border-color: rgba(239,68,68,0.2);
}
.card-danger .card-header {
    background: var(--err-soft);
    color: var(--err);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--err);
    margin-bottom: 12px;
}
.modal-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}
