:root {
  --accent: #4f8eff;
  --accent-hover: #6ea2ff;
  --accent-soft: rgba(79, 142, 255, .13);
  --accent-text: #7fb0ff;
  --twitch: #9146ff;
  --income: #34d399;
  --expense: #f87171;
  --bg: #000000;
  --sidebar: #05060a;
  --card: #0a0c11;
  --card-hover: #11151d;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f7f7f7;
  --muted: rgba(255, 255, 255, .58);
  --faint: rgba(255, 255, 255, .32);
  --input: rgba(255, 255, 255, .03);
  --info-bg: rgba(59, 130, 246, .15);
  --info: #60a5fa;
  --warn-bg: rgba(234, 179, 8, .12);
  --warn: #facc15;
  --danger-bg: rgba(239, 68, 68, .12);
  --ok-bg: rgba(34, 197, 94, .13);
  --radius: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent: #2f6fe8;
  --accent-hover: #4a84f0;
  --accent-soft: rgba(47, 111, 232, .1);
  --accent-text: #2f6fe8;
  --bg: #f4f6fa;
  --sidebar: #fbfbfa;
  --card: #ffffff;
  --card-hover: #f1f4f9;
  --border: #e3e7ef;
  --border-strong: #cfd6e2;
  --text: #171717;
  --muted: #5d6676;
  --faint: #9aa3b2;
  --input: #ffffff;
  --info: #2563eb;
  --warn: #a16207;
  --income: #16a34a;
  --expense: #dc2626;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 13.5px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 12px; }
.small { font-size: 11.5px; }
.pos { color: var(--income); } .neg { color: var(--expense); }
.tnum { font-variant-numeric: tabular-nums; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Layout ============ */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--border); padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.main { flex: 1; min-width: 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 28px 56px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.brand-logo svg { width: 18px; height: 18px; }
.brand-name { font-weight: 700; font-size: 13.5px; }
.brand-sub { color: var(--muted); font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick { display: flex; flex-direction: column; gap: 2px; }
.link-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 7px; text-align: left; }
.link-btn:hover { color: var(--text); background: var(--card-hover); }
.link-btn svg { width: 14px; height: 14px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 12px 10px 4px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 13.5px; }
.nav a:hover { color: var(--text); background: var(--card-hover); }
.nav a.active { color: var(--text); background: var(--accent-soft); }
.nav a.active svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 11px; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 6px; min-width: 18px; text-align: center; }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.anon-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; background: #f5f5f5; color: #171717; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
:root[data-theme="light"] .anon-toggle { background: #171717; color: #f5f5f5; }
.anon-toggle .lbl { flex: 1; }
.anon-toggle input { display: none; }
.switch { width: 28px; height: 16px; border-radius: 99px; background: #3f3f3f; position: relative; transition: .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .2s; }
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { left: 14px; }

.user-box { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--twitch)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.user-box .who { flex: 1; min-width: 0; }
.user-box .who div { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-box .who span { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.theme-switch { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.theme-switch button { background: none; border: 0; color: var(--muted); padding: 4px 6px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.theme-switch button svg { width: 14px; height: 14px; }
.theme-switch button.active { background: var(--card-hover); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.legal-links { display: flex; gap: 10px; font-size: 11px; color: var(--faint); }
.legal-links a:hover { color: var(--text); }

.mobile-top { display: none; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--expense); }
.btn-danger:hover { background: var(--danger-bg); border-color: rgba(239,68,68,.4); }
.btn-ghost { background: none; border-color: transparent; }
.btn-block { width: 100%; }
.btn-lg { height: 40px; font-size: 14px; padding: 0 18px; }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; }
.sidebar .btn-primary { justify-content: flex-start; height: 36px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 5px; display: inline-grid; place-items: center; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--card-hover); }
.icon-btn.on { color: var(--accent); }

/* ============ Page head ============ */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.page-head p.lead { color: var(--muted); font-size: 13px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============ Cards ============ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.pad { padding: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head.bordered { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.card-head .muted { margin-top: 2px; }
.all-link { color: var(--accent-text); font-size: 12px; font-weight: 500; }
.all-link:hover { text-decoration: underline; }
.empty { color: var(--muted); font-size: 12.5px; padding: 22px 16px; text-align: center; }
.empty-big { padding: 48px 16px; text-align: center; }
.empty-big .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; margin-bottom: 12px; }
.empty-big .ico svg { width: 22px; height: 22px; }
.empty-big h3 { font-size: 15px; margin-bottom: 4px; }
.empty-big p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stat { padding: 14px 16px 16px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat-top svg { width: 15px; height: 15px; }
.stat-value { font-size: 24px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-sub { color: var(--muted); font-size: 11.5px; }
.stat.danger .stat-value { color: var(--expense); }
.stat.good .stat-value { color: var(--income); }

.grid-main { display: grid; grid-template-columns: 1fr 310px; gap: 12px; margin-bottom: 12px; }
.side-col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 12px; font-size: 13px; }
.banner svg { width: 18px; height: 18px; }
.banner .grow { flex: 1; }
.banner.warn { background: var(--warn-bg); border-color: rgba(234,179,8,.35); color: var(--warn); }
.banner.info { background: var(--info-bg); border-color: rgba(59,130,246,.35); color: var(--info); }
.banner.danger { background: var(--danger-bg); border-color: rgba(239,68,68,.35); color: var(--expense); }
.banner .btn { color: var(--text); }

/* Chart */
.chart-card { padding: 16px; }
.legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11.5px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chart { height: 260px; margin-top: 12px; position: relative; }
.chart svg { width: 100%; height: 100%; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 10.5px; font-family: inherit; }
.chart .month-current { fill: var(--text); font-weight: 600; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: var(--card-hover); }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 11.5px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s; z-index: 2; }
.chart-tip.show { opacity: 1; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { color: var(--muted); font-weight: 500; }
.data-table tfoot td { font-weight: 700; border-bottom: 0; }

.bars { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .name { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; background: var(--card-hover); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 600; }

.ku-value { margin: 10px 0; font-size: 13px; }
.ku-value strong { font-size: 14px; }
.progress { height: 6px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 99px; min-width: 6px; transition: width .4s; }
.progress.over .progress-bar { background: var(--expense); }
.ku-block + .ku-block { margin-top: 14px; }
.ku-block .muted { margin-top: 6px; }

/* Rows */
.row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.row + .row { border-top: 1px solid var(--border); }
a.row:hover, .row.click:hover { background: var(--card-hover); cursor: pointer; }
.row-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--card-hover); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.row-icon svg { width: 14px; height: 14px; }
.row-icon.in { color: var(--income); background: var(--ok-bg); border-color: transparent; }
.row-icon.out { color: var(--expense); background: var(--danger-bg); border-color: transparent; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row-amount { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-due { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.row-due.late { color: var(--expense); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 5px; border: 1px solid transparent; white-space: nowrap; }
.badge-offen { background: var(--info-bg); color: var(--info); border-color: rgba(59,130,246,.35); }
.badge-entwurf { background: var(--card-hover); color: var(--muted); border-color: var(--border); }
.badge-bezahlt, .badge-angenommen { background: var(--ok-bg); color: var(--income); border-color: rgba(34,197,94,.35); }
.badge-storniert, .badge-abgelehnt, .badge-ueberfaellig { background: var(--danger-bg); color: var(--expense); border-color: rgba(239,68,68,.35); }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.src i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ============ Tables ============ */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar .grow { flex: 1; }
.toolbar input[type=search] { width: 220px; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 9px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.list td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr.click { cursor: pointer; }
table.list tbody tr.click:hover { background: var(--card-hover); }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list .actions { text-align: right; white-space: nowrap; width: 1%; }
table.list .desc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.list tfoot td { font-weight: 700; border-top: 1px solid var(--border); border-bottom: 0; }
.receipt-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-size: 12px; }
.receipt-link svg { width: 13px; height: 13px; }
.no-receipt { color: var(--warn); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.no-receipt svg { width: 13px; height: 13px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 9px 12px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs button svg { width: 14px; height: 14px; }

.seg { display: inline-flex; background: var(--input); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.seg button.active { background: var(--card-hover); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12px; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.grid-4 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  height: 34px; border-radius: 7px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; font-size: 13px; padding: 0 10px; width: 100%; min-width: 0;
}
textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { color: var(--accent-text); text-decoration: underline; }
.form-error { color: var(--expense); font-size: 12.5px; min-height: 18px; margin: 0 0 6px; }
.form-section { padding: 18px; }
.form-section + .form-section { border-top: 1px solid var(--border); }
.form-section h2 { margin-bottom: 4px; }
.form-section > .muted { margin-bottom: 14px; display: block; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.save-state { font-size: 12px; color: var(--muted); margin-right: auto; align-self: center; }

.dropzone { display: block; border: 1.5px dashed var(--border-strong); border-radius: 9px; padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.dropzone svg { width: 20px; height: 20px; margin-bottom: 4px; }
.file-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.file-chip .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; }

/* Positionen-Editor */
.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 11.5px; color: var(--muted); font-weight: 500; text-align: left; padding: 0 6px 6px; }
.items td { padding: 4px 6px; vertical-align: top; }
.items td.num, .items th.num { text-align: right; }
.items .line-total { font-variant-numeric: tabular-nums; font-weight: 600; padding-top: 12px; white-space: nowrap; }
.items textarea { min-height: 34px; height: 34px; margin-top: 4px; font-size: 12px; }
.items .w-qty { width: 76px; } .items .w-unit { width: 104px; } .items .w-price { width: 120px; } .items .w-total { width: 110px; } .items .w-del { width: 36px; }
.items tr + tr td { border-top: 1px solid var(--border); padding-top: 10px; }
.totals { margin-left: auto; width: 280px; margin-top: 14px; font-size: 13px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 15px; }

.doc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: start; }
.doc-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.timeline { padding: 4px 16px 14px; font-size: 12.5px; }
.timeline div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.timeline div:last-child { border-bottom: 0; }
.timeline span:first-child { color: var(--muted); }

.hint-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.hint { display: flex; gap: 10px; font-size: 12.5px; padding: 10px 12px; border-radius: 8px; line-height: 1.5; }
.hint svg { width: 16px; height: 16px; margin-top: 1px; }
.hint.info { background: var(--info-bg); color: var(--text); } .hint.info svg { color: var(--info); }
.hint.warn { background: var(--warn-bg); color: var(--text); } .hint.warn svg { color: var(--warn); }
.hint.danger { background: var(--danger-bg); color: var(--text); } .hint.danger svg { color: var(--expense); }

.eur-sheet { font-size: 13px; }
.eur-sheet .line { display: flex; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.eur-sheet .line.sub { padding-left: 32px; color: var(--muted); font-size: 12.5px; }
.eur-sheet .line.head { font-weight: 600; background: var(--card-hover); }
.eur-sheet .line.result { font-weight: 800; font-size: 15px; border-bottom: 0; padding: 14px 16px; }

/* ============ Modal ============ */
dialog { border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); width: min(520px, calc(100vw - 24px)); padding: 0; max-height: calc(100vh - 32px); }
dialog.wide { width: min(760px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.modal-head { padding: 18px 20px 4px; }
.modal-head h2 { font-size: 16px; }
.modal-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.modal-body { padding: 14px 20px 6px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.modal-actions .left { margin-right: auto; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: .2s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--expense); color: #fff; }

/* ============ Auth ============ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(1200px 600px at 0% 0%, rgba(145,70,255,.35), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(194,65,12,.45), transparent 55%), #0b0b0d; color: #f5f5f5; }
.auth-hero .brand-name { font-size: 15px; }
.auth-hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 520px; }
.auth-hero h1 span { background: linear-gradient(90deg, #c4a5ff, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: #b5b5b5; font-size: 15px; max-width: 460px; margin-top: 14px; line-height: 1.55; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; max-width: 540px; }
.feature { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px; font-size: 12.5px; color: #cfcfcf; }
.feature strong { display: flex; gap: 7px; align-items: center; color: #fff; font-size: 13px; margin-bottom: 3px; }
.feature svg { width: 15px; height: 15px; color: #fb923c; }
.auth-hero .fine { font-size: 11.5px; color: #8a8a8a; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: min(380px, 100%); }
.auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-card > p { color: var(--muted); margin-bottom: 22px; font-size: 13.5px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--accent-text); font-weight: 500; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; line-height: 1.65; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 14px; }
.legal p + p { margin-top: 10px; }
.legal .placeholder { background: var(--warn-bg); border: 1px dashed var(--warn); color: var(--warn); padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 13px; }
.legal a { color: var(--accent-text); text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .doc-grid { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 22px; }
  .auth-hero h1 { font-size: 28px; }
  .feature-list { display: none; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .sidebar.open { transform: none; }
  .mobile-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--sidebar); position: sticky; top: 0; z-index: 40; }
  .container { padding: 18px 14px 48px; }
  .grid-two, .stats, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-value { font-size: 21px; }
  .toolbar input[type=search] { width: 100%; }
  .items .w-unit, .items td:nth-child(3) { display: none; }
  .totals { width: 100%; }
}
@media print { .sidebar, .mobile-top, .head-actions, .toolbar { display: none !important; } .container { max-width: none; } }


/* =====================================================================
   Arcade-Look: schwarz, Pixel-Headlines, blauer Glow, Pill-Buttons
   ===================================================================== */
:root { --pixel: "Pixelify Sans", "Outfit", monospace; --glow: 0 8px 22px -10px rgba(79,142,255,.75); --sidebar-w: 248px; }
:root[data-theme="light"] { --glow: 0 8px 22px -12px rgba(47,111,232,.55); }

body { font-weight: 300; letter-spacing: .005em; }
strong, b, .row-title, h2, h3, th, .btn, label { font-weight: 500; }
h1, .stat-value, .brand-name, .auth-card h2, .empty-big h3, .legal h1, .eur-sheet .line.result, .totals .grand {
  font-family: var(--pixel); font-weight: 500; letter-spacing: -.01em;
}
h1 { font-size: 30px; line-height: 1.15; }
h1 .accent, .auth-hero h1 span { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; text-shadow: 0 0 24px rgba(79,142,255,.35); }
:root[data-theme="light"] h1 .accent { text-shadow: none; }
.stat-value { font-size: 27px; font-weight: 500; }
.brand-name { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
::selection { background: rgba(79,142,255,.35); }

/* Hintergrund-Glow hinter dem Inhalt */
.main { position: relative; isolation: isolate; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 340px at 50% -80px, rgba(79,142,255,.16), transparent 70%); }
:root[data-theme="light"] .main::before { background: radial-gradient(800px 340px at 50% -80px, rgba(47,111,232,.10), transparent 70%); }

/* Sidebar wie Launcher */
.sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, rgba(79,142,255,.05), transparent 240px), var(--sidebar); border-right: 1px solid var(--border); }
.brand-logo { border-radius: 10px; background: linear-gradient(180deg, #6ea2ff, #3b7bf0); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
.nav a { border-radius: 10px; font-weight: 400; position: relative; }
.nav a.active { background: linear-gradient(90deg, rgba(79,142,255,.16), rgba(79,142,255,.04)); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-label { font-family: var(--pixel); font-weight: 400; letter-spacing: .1em; font-size: 11px; }
.link-btn { border-radius: 10px; }
.anon-toggle { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--border); border-radius: 999px; }
:root[data-theme="light"] .anon-toggle { background: #fff; color: var(--text); }
.switch { background: rgba(255,255,255,.18); }
:root[data-theme="light"] .switch { background: #cfd6e2; }
.theme-switch { border-radius: 999px; }
.theme-switch button { border-radius: 999px; }
.avatar { background: linear-gradient(135deg, #6ea2ff, #3b7bf0); box-shadow: var(--glow); }
.mobile-top { background: rgba(7,8,11,.72); backdrop-filter: blur(14px); }
:root[data-theme="light"] .mobile-top { background: rgba(255,255,255,.8); }

/* Buttons: Pills mit Glanzkante */
.btn { border-radius: 999px; height: 34px; padding: 0 15px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); font-weight: 400; letter-spacing: .01em; }
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
:root[data-theme="light"] .btn { background: #fff; border-color: var(--border); }
:root[data-theme="light"] .btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.btn-primary, :root[data-theme="light"] .btn-primary { background: var(--accent); border: 1px solid #9ec1ff; color: #08121f; font-weight: 500;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover, :root[data-theme="light"] .btn-primary:hover { background: var(--accent-hover); border-color: #b9d2ff; box-shadow: 0 10px 28px -10px rgba(79,142,255,.95), inset 0 1px 0 rgba(255,255,255,.4); }
:root[data-theme="light"] .btn-primary { color: #fff; border-color: #2f6fe8; }
.btn-lg { height: 42px; }
.btn-sm { height: 28px; padding: 0 11px; }
.sidebar .btn-primary { height: 40px; border-radius: 12px; }
.btn-danger { color: var(--expense); }
.icon-btn { border-radius: 8px; }

/* Karten: dunkles Glas mit feinem Rand, Hover-Glow */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--card); border-color: var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
:root[data-theme="light"] .card { background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stat { transition: border-color .2s, box-shadow .2s; }
.stat:hover { border-color: rgba(79,142,255,.35); box-shadow: 0 0 0 1px rgba(79,142,255,.12), 0 12px 30px -18px rgba(79,142,255,.6); }
.stat-top { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.stat-top svg { color: var(--accent); }
.stat.good .stat-value { color: var(--income); text-shadow: 0 0 22px rgba(52,211,153,.25); }
.stat.danger .stat-value { text-shadow: 0 0 22px rgba(248,113,113,.25); }
:root[data-theme="light"] .stat-value { text-shadow: none !important; }
.card-head.bordered, .toolbar, .form-actions, table.list th, table.list td, .row + .row, .eur-sheet .line { border-color: var(--border); }
a.row:hover, .row.click:hover, table.list tbody tr.click:hover { background: rgba(79,142,255,.06); }
.row-icon { border-radius: 10px; background: rgba(79,142,255,.08); border-color: rgba(79,142,255,.22); color: var(--accent); }
.row-icon.in { background: rgba(52,211,153,.1); color: var(--income); }
.row-icon.out { background: rgba(248,113,113,.1); color: var(--expense); }

.progress, .bar-track { background: rgba(255,255,255,.06); }
:root[data-theme="light"] .progress, :root[data-theme="light"] .bar-track { background: #e8ecf3; }
.progress-bar { background: linear-gradient(90deg, #3b7bf0, #7fb0ff); box-shadow: 0 0 12px rgba(79,142,255,.6); }
.bar-fill { box-shadow: 0 0 10px currentColor; }

.badge { border-radius: 999px; padding: 1px 8px; }
.badge-offen { background: rgba(79,142,255,.14); color: #8fb8ff; border-color: rgba(79,142,255,.4); }
:root[data-theme="light"] .badge-offen { color: #2f6fe8; }
.banner { border-radius: 14px; }
.banner.info { background: rgba(79,142,255,.08); border-color: rgba(79,142,255,.35); color: #a9c8ff; }
:root[data-theme="light"] .banner.info { color: #2f6fe8; }

/* Tabs & Segmente wie auf norisk: Text-Tabs mit leuchtender Unterstreichung */
.tabs button { font-size: 14px; font-weight: 400; }
.tabs button.active { border-bottom-color: var(--accent); box-shadow: 0 8px 16px -12px var(--accent); }
.seg, .seg button { border-radius: 999px; }
.seg button.active { background: rgba(79,142,255,.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(79,142,255,.4); }

/* Formulare */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { border-radius: 10px; height: 36px; font-weight: 300; }
textarea { height: auto; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(79,142,255,.18); border-color: rgba(79,142,255,.7); }
select option { background: #0a0c11; color: #f7f7f7; }
:root[data-theme="light"] select option { background: #fff; color: #171717; }
.dropzone { border-radius: 14px; border-color: rgba(79,142,255,.35); }
.dropzone:hover, .dropzone.over { box-shadow: inset 0 0 30px rgba(79,142,255,.12); }

dialog { border-radius: 18px; background: linear-gradient(180deg, rgba(79,142,255,.06), transparent 160px), var(--card); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(79,142,255,.12); }
.modal-head h2 { font-family: var(--pixel); font-weight: 500; font-size: 19px; }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.toast { border-radius: 999px; background: #0d1422; color: #f7f7f7; border: 1px solid rgba(79,142,255,.4); box-shadow: var(--glow); }
.toast.error { background: #2a0f12; border-color: rgba(248,113,113,.5); }

/* Login: Pixel-Headline, blauer Hero mit Pixel-Raster */
.auth-hero { background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(900px 500px at 15% 0%, rgba(79,142,255,.32), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(79,142,255,.18), transparent 60%), #000; }
.auth-hero h1 { font-family: var(--pixel); font-weight: 500; font-size: 46px; letter-spacing: -.02em; line-height: 1.1; }
.auth-hero p { font-weight: 300; color: rgba(255,255,255,.8); }
.feature { background: rgba(10,12,17,.75); border-color: rgba(79,142,255,.18); border-radius: 14px; backdrop-filter: blur(6px); }
.feature strong { font-weight: 500; }
.feature svg { color: #7fb0ff; }
.auth-card h2 { font-size: 26px; }

.legal h1 { font-size: 34px; }
.empty-big .ico { border-radius: 14px; box-shadow: var(--glow); }

@media (max-width: 760px) { h1 { font-size: 24px; } .auth-hero h1 { font-size: 30px; } }

/* =====================================================================
   2FA-Einrichtung & Auth-Schritte
   ===================================================================== */
.mfa-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(79,142,255,.12); color: var(--accent); border: 1px solid rgba(79,142,255,.35); box-shadow: var(--glow); }
.mfa-icon svg { width: 22px; height: 22px; }
.mfa-icon.ok { background: rgba(52,211,153,.12); color: var(--income); border-color: rgba(52,211,153,.4); box-shadow: 0 8px 22px -10px rgba(52,211,153,.7); }
.mfa-icon.danger { background: rgba(248,113,113,.12); color: var(--expense); border-color: rgba(248,113,113,.4); box-shadow: none; }
.code-input { font-family: var(--pixel) !important; font-size: 26px !important; letter-spacing: .35em; text-align: center; height: 54px !important; font-weight: 500 !important; }
.auth-card code, .lead code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.auth-card > p, .auth-card form > p:not(.form-error) { color: var(--muted); margin-bottom: 22px; font-size: 13.5px; line-height: 1.55; }

.setup-page { min-height: 100vh; padding: 28px 20px 60px;
  background: radial-gradient(900px 420px at 50% -120px, rgba(79,142,255,.22), transparent 70%), var(--bg); }
.setup-top { max-width: 760px; margin: 0 auto 26px; display: flex; justify-content: space-between; align-items: center; }
.setup-top .brand { padding: 0; }
.setup-card { max-width: 760px; margin: 0 auto; padding: 30px; }
.setup-card h1, dialog .modal-body h1 { margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.lead strong { color: var(--text); }
.setup-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 18px; }
.setup-steps > li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.015); }
.setup-steps h3 { font-size: 15px; margin-bottom: 4px; }
.step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-family: var(--pixel); font-weight: 600;
  background: rgba(79,142,255,.14); color: var(--accent); border: 1px solid rgba(79,142,255,.4); }
.pill { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; margin: 3px 2px 0 0; font-size: 12px; color: var(--text); }
.qr-wrap { display: flex; gap: 18px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.qr { width: 196px; height: 196px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(79,142,255,.4), 0 12px 40px -14px rgba(79,142,255,.8); flex-shrink: 0; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-alt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.secret { font-family: var(--pixel); font-size: 15px; letter-spacing: .08em; background: rgba(79,142,255,.08); border: 1px dashed rgba(79,142,255,.4); padding: 8px 12px; border-radius: 10px; word-break: break-all; }
.code-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.code-row .code-input { max-width: 220px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 420px; }
.rc-grid code { font-family: var(--pixel); font-size: 17px; letter-spacing: .06em; text-align: center; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.mfa-facts { display: flex; gap: 28px; margin: 14px 0; flex-wrap: wrap; }
.mfa-facts > div { display: flex; flex-direction: column; gap: 2px; }
.mfa-facts strong { font-family: var(--pixel); font-size: 18px; font-weight: 500; }
@media (max-width: 760px) { .setup-card { padding: 20px 16px; } .qr { width: 170px; height: 170px; } .setup-steps > li { padding: 14px; } }


/* =====================================================================
   Schrift: Inter überall (wie im alten Rechnungstool)
   ===================================================================== */
:root { --pixel: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400; letter-spacing: 0; }
strong, b, .row-title, h2, h3, th, label { font-weight: 600; }
.btn { font-weight: 500; letter-spacing: 0; }
.btn-primary { font-weight: 600; }
h1, .auth-card h2, .empty-big h3, .legal h1, .modal-head h2, .setup-card h1 { font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 26px; }
.stat-value, .mfa-facts strong, .totals .grand, .eur-sheet .line.result { font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-value { font-size: 26px; }
.brand-name { font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 14px; }
.nav-label { font-weight: 600; letter-spacing: .08em; font-size: 10.5px; }
.stat-top { text-transform: none; letter-spacing: 0; font-size: 12px; }
.auth-hero h1 { font-weight: 800; letter-spacing: -.035em; font-size: 42px; }
.code-input { font-weight: 600 !important; font-variant-numeric: tabular-nums; letter-spacing: .3em; }
.secret, .rc-grid code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 500; }
.step-num { font-weight: 700; }
@media (max-width: 760px) { h1 { font-size: 22px; } .auth-hero h1 { font-size: 28px; } }

/* =====================================================================
   Creator-Funktionen: Deal-Board, Preisrechner, Rücklage, Monatsziel
   ===================================================================== */
.container-wide { max-width: 1400px; }

/* Deal-Board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.board-rejected { grid-template-columns: 1fr; margin-top: 12px; }
.col { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 14px; min-height: 220px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
:root[data-theme="light"] .col { background: #eef1f6; }
.col.drop { border-color: rgba(79,142,255,.6); box-shadow: inset 0 0 0 1px rgba(79,142,255,.3), 0 0 30px -12px rgba(79,142,255,.7); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-size: 13px; flex-wrap: wrap; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-name { font-weight: 600; }
.col-count { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 999px; padding: 0 7px; }
.col-sum { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-body { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col-row { flex-direction: row; flex-wrap: wrap; } .col-row .deal { width: 240px; }
.col-empty { border: 1.5px dashed var(--border); border-radius: 10px; color: var(--faint); font-size: 12px; text-align: center; padding: 18px 8px; }
.col-add { margin: 0 8px 10px; background: none; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font: inherit; font-size: 12.5px; padding: 8px; cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; }
.col-add:hover { color: var(--text); border-color: rgba(79,142,255,.5); }
.deal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; cursor: grab; transition: transform .12s, border-color .12s, box-shadow .12s; user-select: none; }
.deal:hover { border-color: rgba(79,142,255,.45); box-shadow: 0 10px 26px -16px rgba(79,142,255,.8); transform: translateY(-1px); }
.deal.dragging { opacity: .45; }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.deal-value { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.deal-brand { font-weight: 600; font-size: 14px; }
.deal-title { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.deal-progress { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; color: var(--muted); }
.deal-progress .bar-track { flex: 1; height: 5px; }
.deal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 11.5px; color: var(--muted); gap: 6px; }
.deal-foot span, .deal-doc { display: inline-flex; align-items: center; gap: 4px; }
.deal-foot svg { width: 12px; height: 12px; }
.deal-doc { color: var(--accent-text); }
.deliv-list { display: flex; flex-direction: column; gap: 4px; }
.deliv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 9px; }
.deliv .done { text-decoration: line-through; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: rgba(79,142,255,.08); border: 1px solid rgba(79,142,255,.25); color: var(--text); border-radius: 999px; font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.chip:hover { background: rgba(79,142,255,.18); }

/* Dashboard-Creator-Zeile */
.creator-row { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 12px; margin-bottom: 12px; }
.card-head h2 { display: flex; align-items: center; gap: 7px; }
.card-head h2 svg { color: var(--accent); }
.reserve-body { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.reserve-full .reserve-body { grid-template-columns: 1.2fr 1fr; }
.reserve-amount { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 2px; font-variant-numeric: tabular-nums; }
.reserve-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.55; display: flex; gap: 7px; align-items: flex-start; }
.reserve-hint svg { margin-top: 2px; color: var(--accent); }
.reserve-hint strong { color: var(--text); }
.reserve-split { border-left: 1px solid var(--border); padding-left: 18px; font-size: 13px; }
.reserve-split > div:not(.muted) { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.reserve-split .total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px !important; font-weight: 700; }
.reserve-note { padding: 0 16px 14px; display: flex; gap: 6px; line-height: 1.55; }
.reserve-full { margin-bottom: 12px; }
.goal-card { display: flex; flex-direction: column; }
.goal-ring { position: relative; width: 150px; height: 150px; margin: 12px auto 8px; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 9; }
:root[data-theme="light"] .ring-bg { stroke: #e3e7ef; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(79,142,255,.7)); transition: stroke-dashoffset .8s ease; }
.goal-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.goal-center strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.goal-center span { font-size: 12px; color: var(--muted); }

/* Preisrechner */
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.format { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; padding: 12px; cursor: pointer; text-align: left; }
.format:hover { border-color: rgba(79,142,255,.4); }
.format.active { border-color: var(--accent); background: rgba(79,142,255,.12); box-shadow: 0 0 0 1px rgba(79,142,255,.3), 0 10px 26px -16px rgba(79,142,255,.9); }
.extras { display: flex; flex-direction: column; gap: 8px; }
.price-card { background: radial-gradient(400px 200px at 50% 0%, rgba(79,142,255,.18), transparent 70%), var(--card); }
.price-main { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; text-shadow: 0 0 30px rgba(79,142,255,.35); font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .price-main { text-shadow: none; }
.price-range { color: var(--muted); font-size: 13px; }
.price-range strong { color: var(--text); }
.price-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); margin: 12px 0; overflow: hidden; }
.price-fill { height: 100%; background: linear-gradient(90deg, #3b7bf0, #7fb0ff); border-radius: 99px; transition: width .3s; }
.price-breakdown { font-size: 12.5px; }
.price-breakdown div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.price-breakdown div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.tips { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tips strong { color: var(--text); }
.tips li + li { margin-top: 6px; }

@media (max-width: 1100px) { .creator-row { grid-template-columns: 1fr 1fr; } .creator-row > :first-child { grid-column: 1 / -1; } .reserve-full .reserve-body { grid-template-columns: 1fr; } .reserve-split { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; } }
@media (max-width: 760px) { .creator-row { grid-template-columns: 1fr; } .board { grid-template-columns: repeat(5, 78vw); } .price-main { font-size: 32px; } }

.sidebar > * { flex-shrink: 0; }
.board { grid-template-columns: repeat(5, minmax(190px, 1fr)); }
.col-sum { flex-basis: 100%; margin-left: 16px; font-size: 11.5px; }

/* Fremdwährung */
.amount-row { display: flex; gap: 6px; }
.amount-row input { flex: 1; }
.cur-select { width: 92px !important; flex-shrink: 0; font-weight: 600; }
.fx-box { border: 1px solid rgba(79,142,255,.3); background: rgba(79,142,255,.06); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
#impFx { flex-direction: row; align-items: flex-start; gap: 8px; }
#impFx svg { color: var(--accent); margin-top: 2px; }
.fx-head { display: flex; align-items: center; gap: 7px; } .fx-head svg { color: var(--accent); }
.fx-modes { align-self: flex-start; flex-wrap: wrap; }
.fx-extra .field { margin-bottom: 0; }
.fx-result { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.fx-eur { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--income); font-variant-numeric: tabular-nums; }
.fx-note { line-height: 1.5; margin: 0; } .fx-note strong { color: var(--text); }
.fx-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px; white-space: nowrap; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; }
.chip-check input { accent-color: var(--accent); margin: 0; }
.chip-check:has(input:checked) { background: rgba(79,142,255,.22); border-color: var(--accent); }
.nodate-box .tip { display: flex; gap: 8px; margin: 2px 0 0; line-height: 1.5; color: var(--muted); }
.nodate-box .tip strong { color: var(--text); }
.nodate-box .tip svg { color: var(--accent); margin-top: 2px; }
.gen-date { color: var(--accent-text); border-bottom: 1px dotted currentColor; }

/* Mehrfachauswahl */
table.list th.sel, table.list td.sel { width: 1%; padding-right: 0; }
td.sel input, th.sel input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
td.sel input:disabled { cursor: not-allowed; opacity: .35; }
table.list tbody tr.selected td { background: rgba(79,142,255,.09); }
table.list tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.sel-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #0d1422; color: #f7f7f7; border: 1px solid rgba(79,142,255,.45); border-radius: 999px; padding: 7px 8px 7px 18px;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.8), 0 0 0 1px rgba(79,142,255,.15), 0 10px 30px -14px rgba(79,142,255,.8); animation: barIn .18s ease-out; max-width: calc(100vw - 24px); flex-wrap: wrap; }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.sel-count { font-size: 13px; white-space: nowrap; } .sel-count strong { font-size: 14px; }
.sel-bar .btn-ghost { color: #cfd6e2; }
.btn-danger-solid { background: #dc2626; border-color: #ef4444; color: #fff; font-weight: 600; }
.btn-danger-solid:hover { background: #ef4444; border-color: #f87171; }
.toast { bottom: 84px; }

/* Import-Vorschau: Datum pro Zeile bearbeitbar */
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.preview-head .muted { display: inline-flex; align-items: center; gap: 6px; }
.preview-head strong { color: var(--text); }
.preview-card { overflow: auto; max-height: 340px; }
.preview-card table.list td { padding-top: 6px; padding-bottom: 6px; }
.date-td { white-space: nowrap; }
input.date-cell { height: 30px; width: 140px; font-size: 12.5px; padding: 0 8px; background: transparent; border-color: transparent; color: var(--accent-text); font-variant-numeric: tabular-nums; cursor: pointer; }
input.date-cell:hover { border-color: var(--border-strong); background: var(--input); }
input.date-cell:focus { background: var(--input); color: var(--text); }
input.date-cell.edited { color: var(--text); background: rgba(79,142,255,.12); border-color: rgba(79,142,255,.45); font-weight: 600; }
.date-reset { vertical-align: middle; padding: 3px; } .date-reset svg { width: 13px; height: 13px; }
tr.row-edited td { background: rgba(79,142,255,.04); }

/* Sicherheits-Center */
.sec-hero { display: flex; align-items: center; gap: 18px; padding: 20px; background: radial-gradient(500px 160px at 0% 50%, rgba(52,211,153,.12), transparent 70%), var(--card); }
.sec-shield { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.sec-shield svg { width: 28px; height: 28px; }
.sec-shield.ok { background: rgba(52,211,153,.12); color: var(--income); border: 1px solid rgba(52,211,153,.4); box-shadow: 0 10px 30px -12px rgba(52,211,153,.7); }
.sec-shield.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(234,179,8,.4); }
.sec-hero h2 { font-size: 17px; font-weight: 700; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sec-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.sec-item p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sec-item strong { font-size: 13.5px; }
.sec-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.sec-dot svg { width: 13px; height: 13px; }
.sec-item.ok .sec-dot { background: rgba(52,211,153,.15); color: var(--income); }
.sec-item.warn .sec-dot { background: var(--warn-bg); color: var(--warn); }
.ev { display: inline-flex; align-items: center; gap: 7px; } .ev svg { width: 13px; height: 13px; color: var(--income); }
.ev.warn svg { color: var(--warn); }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }

/* Steuerfristen */
.deadline .dl-date { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(79,142,255,.08); border: 1px solid rgba(79,142,255,.25); line-height: 1.05; }
.deadline .dl-date strong { font-size: 16px; } .deadline .dl-date span { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.deadline.soon .dl-date { background: var(--danger-bg); border-color: rgba(248,113,113,.4); }

/* Media-Kit-Editor */
.kit-share { display: flex; flex-direction: column; gap: 12px; }
.kit-toggle { align-items: center; gap: 12px; }
.kit-toggle input { display: none; }
.kit-link { display: flex; gap: 8px; } .kit-link input { flex: 1; font-family: ui-monospace, monospace; font-size: 12.5px; }
.kit-link.off input { opacity: .5; }
.kit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kit-row { display: grid; gap: 6px; align-items: center; }
.kit-pf { grid-template-columns: 116px 1fr auto 30px; }
.pf-item { border: 1px solid var(--border); border-left: 3px solid var(--pc); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.015); }
.kit-pf-nums { grid-template-columns: 1fr 1fr; }
.kit-pf-nums label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.kit-pf-nums input:disabled { opacity: 1; color: var(--text); background: rgba(46,229,157,.06); border-color: rgba(46,229,157,.25); cursor: default; }
.auto-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.auto-chip input { display: none; } .auto-chip .i { width: 13px; height: 13px; }
.auto-chip.on { color: #7ee2a8; border-color: rgba(46,229,157,.4); background: rgba(46,229,157,.08); }
.pf-status { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; }
.pf-status .i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.pf-status.ok { color: #a9e9c4; } .pf-status.ok b { color: #fff; } .pf-status.ok .i { color: #2ee59d; }
.pf-status.err, .pf-status .err { color: #ff8a8a; } .pf-status.warn { color: #f5c76b; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff2e4d; margin-right: 4px; box-shadow: 0 0 0 3px rgba(255,46,77,.2); }
#autoHint:empty { display: none; } #autoHint .i { width: 13px; height: 13px; vertical-align: -2px; }
.btn.spin .i { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* Media-Kit: Design-Karte */
.kit-design { display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; }
.kd-visual { position: relative; padding: 0 0 18px; border-right: 1px solid var(--border); }
.kd-banner { position: relative; height: 190px; background: linear-gradient(120deg, color-mix(in srgb, var(--kit-ac) 85%, transparent), #9146ff 65%, #0b0d14); overflow: hidden; }
.kd-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kd-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(255,255,255,.9); cursor: pointer; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 16px 16px; }
.kd-empty .i { width: 26px; height: 26px; margin-bottom: 4px; } .kd-empty span { font-size: 12px; opacity: .75; }
.kd-bar { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kd-bar .btn { background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.kd-avatar-row { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; margin-top: -48px; position: relative; pointer-events: none; }
.kd-avatar-row > * { pointer-events: auto; }
.kd-avatar { width: 104px; height: 104px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--kit-ac), #9146ff); flex: none; cursor: pointer; box-shadow: 0 14px 40px -14px var(--kit-ac); }
.kd-avatar img, .kd-avatar > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #0d0f15; border: 4px solid var(--card); font-weight: 800; font-size: 32px; }
.kd-av-actions { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.kd-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.kd-banner.loading, .kd-avatar.loading, .kg-add.loading { opacity: .5; pointer-events: none; }
.kd-side { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kd-side h2 { display: flex; align-items: center; gap: 8px; margin: 0; } .kd-side h2 .i { width: 18px; height: 18px; color: var(--kit-ac); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); transition: transform .12s; padding: 0; }
.sw:hover { transform: scale(1.1); } .sw.on { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.sw-custom { background: conic-gradient(#ff4f4f, #f5d90a, #2ee59d, #25d6f4, #4f8eff, #9146ff, #ff4fa3, #ff4f4f); position: relative; overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.style-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp { text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: transparent; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.sp i { height: 38px; border-radius: 8px; margin-bottom: 4px; display: block; }
.sp-glow i { background: radial-gradient(60px 30px at 20% 0%, var(--kit-ac), transparent 70%), #000; }
.sp-gradient i { background: linear-gradient(120deg, var(--kit-ac), #9146ff); }
.sp-minimal i { background: #141417; border: 1px solid #26262b; }
.sp strong { font-size: 13px; } .sp span { font-size: 11px; color: var(--muted); }
.sp.on { border-color: var(--kit-ac); box-shadow: 0 0 0 1px var(--kit-ac); }
.kd-toggles { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.kit-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.kg-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kg-img { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #111; border: 1px solid var(--border); }
.kg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-img .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .15s; }
.kg-item:hover .icon-btn, .kg-img .icon-btn:focus { opacity: 1; }
.kg-item input { font-size: 12px; padding: 6px 8px; }
.kg-add { aspect-ratio: 4/3; border: 1.5px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: 12px; }
.kg-add:hover, .kg-add.over { border-color: var(--accent); color: var(--text); background: rgba(79,142,255,.06); }
@media (max-width: 900px) { .kit-design { grid-template-columns: 1fr; } .kd-visual { border-right: 0; border-bottom: 1px solid var(--border); } }
@media (hover: none) { .kg-img .icon-btn { opacity: 1; } }
.kit-rate { grid-template-columns: 1fr 130px 30px; }
.kit-hl { grid-template-columns: 1fr 30px; }
@media (max-width: 760px) { .kit-pf { grid-template-columns: 1fr auto 30px; } .kit-pf select { grid-column: 1 / -1; } .kit-link { flex-wrap: wrap; } .kit-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kd-avatar-row { flex-wrap: wrap; } }
.deadline .row-title, .deadline .row-sub { white-space: normal; }
.deadline .row-due { white-space: nowrap; }

/* Gewerbe-Assistent */
.g-wrap { max-width: 920px; }
.g-hero { display: flex; gap: 22px; align-items: center; padding: 22px; margin-bottom: 12px; background: radial-gradient(500px 180px at 0% 50%, rgba(79,142,255,.16), transparent 70%), var(--card); }
.g-hero h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.g-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.g-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-ring strong { font-size: 22px; font-weight: 800; } .g-ring span { font-size: 11px; color: var(--muted); }
.g-deadlines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.g-dl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.g-dl svg { color: var(--accent); } .g-dl.soon svg, .g-dl.late svg, .g-dl.late strong { color: var(--expense); }
.g-quiz { margin-bottom: 18px; }
.g-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.g-q { display: flex; flex-direction: column; gap: 6px; } .g-q .lbl { font-size: 12.5px; color: var(--muted); }
.g-q .seg { align-self: flex-start; flex-wrap: wrap; }
.g-phase { margin-bottom: 18px; }
.g-phase-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; }
.g-phase-head h2 { font-size: 15px; flex: 1; }
.g-num { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(79,142,255,.14); color: var(--accent); border: 1px solid rgba(79,142,255,.35); }
.g-step + .g-step { border-top: 1px solid var(--border); }
.g-step-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.g-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; padding: 0; transition: .15s; }
.g-check:hover:not(:disabled) { border-color: var(--accent); }
.g-check svg { width: 13px; height: 13px; stroke-width: 3; }
.g-step.done .g-check { background: var(--income); border-color: var(--income); box-shadow: 0 0 12px rgba(52,211,153,.5); }
.g-check:disabled { cursor: default; }
.g-title { flex: 1; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 0; min-width: 0; }
.g-title strong { font-size: 14px; font-weight: 600; }
.g-step.done .g-title strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.g-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.g-step.open { background: rgba(79,142,255,.04); }
.g-body { padding: 0 14px 16px 50px; }
.g-text { font-size: 13.5px; line-height: 1.65; color: var(--text); }
.g-text ul { margin: 8px 0 0; padding-left: 18px; } .g-text li + li { margin-top: 6px; }
.g-warn { color: var(--warn); display: inline-block; margin-top: 6px; } .g-ok { color: var(--income); }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.g-acts { margin-top: 12px; }
.g-copy { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(79,142,255,.45); background: rgba(79,142,255,.06); }
.g-copy-text { flex: 1; font-size: 13.5px; line-height: 1.55; }
.g-note { display: flex; gap: 12px; align-items: flex-start; } .g-note svg { color: var(--accent); margin-top: 2px; }
.g-note p { font-size: 12.5px; line-height: 1.6; margin: 0; }
@media (max-width: 760px) { .g-q-grid { grid-template-columns: 1fr; } .g-hero { flex-direction: column; align-items: flex-start; } .g-body { padding-left: 14px; } }

/* Media-Kit: Partner */
.pt-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 7px; background: rgba(255,255,255,.015); }
.pt-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 8px; align-items: center; }
.pt-logo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--kit-ac, #4f8eff), #9146ff); border: 2px solid var(--border); font-weight: 800; font-size: 14px; }
.pt-logo img { width: 100%; height: 100%; object-fit: cover; } .pt-logo:hover { outline: 2px solid var(--kit-ac, #4f8eff); }
.pt-tools { display: flex; gap: 2px; } .pt-tools .icon-btn .i { width: 15px; height: 15px; }
.pt-tools [data-pt-up] .i { transform: rotate(90deg); }
.pt-code { display: grid; grid-template-columns: 1fr 1.3fr; gap: 7px; }
.pt-code input:first-child { font-family: ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.pt-rmlogo { align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 760px) { .pt-code { grid-template-columns: 1fr; } }
.pt-code input:first-child::placeholder { text-transform: none; letter-spacing: 0; font-family: Inter, system-ui, sans-serif; }

/* ===== Verbindungen ===== */
.cx-glyph { flex: none; display: grid; place-items: center; border-radius: 14px; font-weight: 900; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); box-shadow: 0 10px 28px -12px var(--c); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cx-hero { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 28px; align-items: center; padding: 20px 24px; margin-bottom: 14px; }
.cx-hero-stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.cx-hero-stat span { color: var(--muted); font-size: 12.5px; }
.cx-promise { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.cx-promise li { display: flex; gap: 8px; align-items: center; } .cx-promise .i { width: 15px; height: 15px; color: var(--accent); flex: none; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cx-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.cx-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); opacity: .85; }
.cx-card.off { opacity: .72; } .cx-card.off::before { opacity: .3; }
.cx-head { display: flex; gap: 12px; align-items: center; } .cx-head h3 { margin: 0; font-size: 16px; } .grow { flex: 1; min-width: 0; }
.pill-soft { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.cx-acct { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.02); }
.cx-acct.bad { border-color: rgba(248,113,113,.35); }
.cx-acct-top { display: flex; align-items: center; gap: 4px; } .cx-acct-top .pill-soft { margin-left: 6px; color: #c4a5ff; border-color: rgba(145,70,255,.4); }
.cx-nums { display: flex; gap: 22px; } .cx-nums b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; } .cx-nums b.on { color: #2ee59d; } .cx-nums span { font-size: 12px; color: var(--muted); }
.cx-foot { font-size: 12px; color: #7ee2a8; display: flex; gap: 6px; align-items: center; } .cx-foot.err { color: #ff8a8a; } .cx-foot .i { width: 14px; height: 14px; }
.cx-discord { display: grid; grid-template-columns: 1fr; gap: 8px; } .cx-discord label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.cx-setup { font-size: 13px; } .cx-setup summary { cursor: pointer; color: var(--muted); } .cx-setup ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.cx-copy { display: flex; gap: 6px; align-items: center; margin-top: 4px; } .cx-copy code { flex: 1; font-size: 11.5px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.05); overflow-wrap: anywhere; }
.icon-btn.spin .i { animation: spin 1s linear infinite; }
.pf-item.is-conn { background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 9%, transparent), transparent 60%); }
.conn-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #7ee2a8; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(46,229,157,.4); background: rgba(46,229,157,.08); white-space: nowrap; }
.conn-badge .i { width: 13px; height: 13px; }
.pf-handle { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-status a { color: var(--accent); }
.pf-status .up { color: #2ee59d; font-weight: 700; } .pf-status .down { color: #ff8a8a; font-weight: 700; }
@media (max-width: 900px) { .cx-hero { grid-template-columns: repeat(3, 1fr); } .cx-promise { grid-column: 1 / -1; border-left: 0; padding: 12px 0 0; border-top: 1px solid var(--border); } .cx-discord { grid-template-columns: 1fr; } }

/* ===== Befehlspalette & Hilfe ===== */
.cmdk { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.cmdk:hover { border-color: var(--border-strong); color: var(--text); } .cmdk .i { width: 15px; height: 15px; } .cmdk span { flex: 1; text-align: left; }
kbd { font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); color: var(--muted); white-space: nowrap; }
.help-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(79,142,255,.12); color: var(--accent); font-weight: 800; cursor: pointer; flex: none; }
.help-btn:hover { background: rgba(79,142,255,.22); }
.help-menu { position: fixed; z-index: 90; min-width: 250px; padding: 6px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--card); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); display: flex; flex-direction: column; animation: pop .14s ease-out; }
.help-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; border-radius: 8px; cursor: pointer; text-align: left; }
.help-menu button:hover { background: rgba(255,255,255,.06); } .help-menu .i { width: 16px; height: 16px; color: var(--accent); } .help-menu kbd { margin-left: auto; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff4f6d; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,79,109,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,79,109,.05); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.pal-box { width: min(620px, 100%); border-radius: 16px; border: 1px solid var(--border-strong); background: var(--card); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(79,142,255,.15); overflow: hidden; animation: pop .15s ease-out; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); } .pal-in .i { width: 18px; height: 18px; color: var(--accent); }
.pal-in input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 16px; padding: 0; box-shadow: none; }
.pal-list { max-height: min(56vh, 440px); overflow-y: auto; padding: 6px; }
.pal-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 10px 10px 4px; font-weight: 700; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.pal-item .i { width: 17px; height: 17px; color: var(--muted); } .pal-item em { font-style: normal; font-size: 12px; color: var(--muted); }
.pal-item.on { background: rgba(79,142,255,.14); } .pal-item.on .i { color: var(--accent); }
.pal-empty { padding: 26px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); } .pal-foot kbd { margin-right: 3px; }
@media (max-width: 640px) { .pal-foot { display: none; } .pal { padding-top: 8vh; } }

/* ===== Tour ===== */
.tour { position: fixed; inset: 0; z-index: 120; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(0,0,0,.72), 0 0 0 2px var(--accent), 0 0 30px 4px rgba(79,142,255,.6); transition: all .28s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-pop { position: fixed; z-index: 121; padding: 18px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--card); box-shadow: 0 30px 80px -10px rgba(0,0,0,.8); transition: left .28s, top .28s; outline: none; animation: pop .2s ease-out; }
.tour-pop h3 { margin: 4px 0 6px; font-size: 18px; } .tour-pop p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tour-step { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.tour-dots { display: flex; gap: 5px; margin: 14px 0 12px; } .tour-dots i { width: 6px; height: 6px; border-radius: 9px; background: var(--border-strong); transition: width .2s; } .tour-dots i.done { background: rgba(79,142,255,.5); } .tour-dots i.on { width: 20px; background: var(--accent); }
.tour-actions { display: flex; gap: 6px; align-items: center; }
.sidebar.touring { z-index: 119; }

/* ===== Willkommens-Assistent ===== */
.welcome { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: radial-gradient(800px 500px at 30% 10%, rgba(79,142,255,.25), transparent 60%), radial-gradient(700px 500px at 80% 90%, rgba(145,70,255,.25), transparent 60%), rgba(0,0,0,.78); backdrop-filter: blur(6px); animation: fade .25s; }
.welcome.out { opacity: 0; transition: opacity .2s; }
.wl-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 22px; border: 1px solid var(--border-strong); background: var(--card); box-shadow: 0 50px 120px -20px rgba(0,0,0,.9); animation: pop .25s ease-out; }
.wl-progress { display: flex; gap: 6px; padding: 18px 24px 0; } .wl-progress i { flex: 1; height: 4px; border-radius: 9px; background: var(--border); transition: background .3s; } .wl-progress i.on { background: linear-gradient(90deg, var(--accent), #9146ff); }
.wl-body { padding: 22px 28px 8px; } .wl-body h2 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 8px; } .wl-body > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.wl-emoji { font-size: 44px; line-height: 1; animation: bounce 1.2s ease-in-out infinite alternate; } @keyframes bounce { to { transform: translateY(-5px) rotate(-4deg); } }
.wl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.wl-tiles div { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,.02); }
.wl-tiles b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(79,142,255,.14); margin-bottom: 6px; } .wl-tiles b .i { width: 18px; height: 18px; color: var(--accent); }
.wl-tiles span { color: var(--muted); font-size: 12.5px; }
.wl-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wl-choice > * { text-align: left; border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.02); color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-decoration: none; transition: border-color .15s, background .15s; }
.wl-choice > *:hover, .wl-choice .on { border-color: var(--accent); background: rgba(79,142,255,.1); } .wl-choice span { color: var(--muted); font-size: 12.5px; }
.wl-conn { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wl-prov { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 9px; border-radius: 999px; border: 1px solid var(--border-strong); text-decoration: none; color: var(--text); font-weight: 700; transition: border-color .15s, transform .15s; }
.wl-prov:hover { border-color: var(--c); transform: translateY(-1px); } .wl-prov i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: var(--c); color: #fff; }
.wl-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 13.5px; } .wl-note .i { flex: none; width: 18px; height: 18px; }
.wl-tips { display: grid; gap: 8px; } .wl-tips div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; } .wl-tips span { color: var(--muted); font-size: 13.5px; } .wl-tips b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(79,142,255,.14); color: var(--accent); }
.wl-actions { display: flex; gap: 8px; align-items: center; padding: 14px 24px 22px; }
@media (max-width: 640px) { .wl-tiles, .wl-choice { grid-template-columns: 1fr; } .wl-body { padding: 18px 18px 6px; } .wl-body h2 { font-size: 21px; } .wl-actions { padding: 12px 18px 18px; } }

/* ===== Übersicht: Erste Schritte, Anfragen, Reichweite ===== */
.ck-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.inq-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: var(--text); border: 1px solid rgba(255,79,109,.4); background: linear-gradient(90deg, rgba(255,79,109,.16), rgba(145,70,255,.1)); animation: pop .3s ease-out; }
.inq-banner .ib-icon { font-size: 26px; } .inq-banner div { flex: 1; display: flex; flex-direction: column; } .inq-banner span { color: var(--muted); font-size: 13px; }
.ck { padding: 18px 20px; } .ck-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .ck-head > div:first-child { flex: 1; } .ck-head h2 { margin: 0; font-size: 16px; }
.ck-ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0); position: relative; }
.ck-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); } .ck-ring span { position: relative; font-size: 11px; font-weight: 800; }
.ck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ck-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.ck-item:hover { border-color: var(--accent); background: rgba(79,142,255,.06); } .ck-item div { flex: 1; display: flex; flex-direction: column; } .ck-item span { color: var(--muted); font-size: 12px; } .ck-item > .i { width: 15px; height: 15px; color: var(--muted); }
.ck-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; } .ck-box .i { width: 14px; height: 14px; }
.ck-item.done { opacity: .55; } .ck-item.done strong { text-decoration: line-through; } .ck-item.done .ck-box { background: #2ee59d; border-color: #2ee59d; color: #04130b; }
.reach-strip { display: flex; align-items: center; gap: 20px; padding: 14px 18px; text-decoration: none; color: var(--text); margin-bottom: 14px; transition: border-color .15s; }
.reach-strip:hover { border-color: var(--border-strong); } .reach-strip > div:first-child { display: flex; flex-direction: column; } .reach-strip strong { font-size: 24px; letter-spacing: -.02em; }
.reach-strip em { font-style: normal; font-size: 12px; font-weight: 700; } .reach-strip em.up { color: #2ee59d; } .reach-strip em.down { color: #ff8a8a; }
.rs-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; } .rs-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); } .rs-chips i { width: 8px; height: 8px; border-radius: 50%; } .rs-chips b { color: var(--text); }
.deal-src { margin-left: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); vertical-align: 2px; } .deal-src.new { background: #ff4f6d; border-color: #ff4f6d; color: #fff; }

/* ===== Wachstum ===== */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; } .seg button.on { background: var(--accent); color: #07101c; }
.g-total { padding: 20px; margin-bottom: 12px; } .g-total-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.g-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.g-deltas { display: flex; gap: 8px; flex-wrap: wrap; }
.gd { display: inline-flex; flex-direction: column; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--border); font-weight: 800; font-size: 14px; } .gd em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); }
.gd.up { color: #2ee59d; border-color: rgba(46,229,157,.3); background: rgba(46,229,157,.06); } .gd.down { color: #ff8a8a; border-color: rgba(255,92,92,.3); background: rgba(255,92,92,.06); } .gd.none { color: var(--faint); }
.g-deltas.small .gd { font-size: 12.5px; padding: 5px 10px; }
.g-chart { position: relative; } .g-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.gc-empty { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 34px 16px; color: var(--muted); font-size: 13px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; } .gc-empty .i { width: 18px; height: 18px; flex: none; } .gc-empty.small { padding: 18px 12px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.g-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; } .g-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.g-card-head { display: flex; align-items: center; gap: 10px; } .g-card-head .grow { display: flex; flex-direction: column; } .g-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.g-now { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.g-ms { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; } .g-ms-top { display: flex; justify-content: space-between; font-size: 13px; } .g-ms p { margin: 0; }
.g-sub { border-top: 1px solid var(--border); padding-top: 12px; } .g-sub strong { font-size: 13px; display: block; margin-bottom: 8px; }
.vb { display: flex; align-items: flex-end; gap: 3px; height: 90px; } .vb-col { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; } .vb-col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; } .vb-col i.pk, .vb-legend i.pk { background: rgba(255,255,255,.12); }
.vb-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); } .vb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 640px) { .g-grid { grid-template-columns: 1fr; } .g-big { font-size: 32px; } }

/* ===== Jahresrückblick ===== */
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.w-card { border-radius: 22px; padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--a) 70%, transparent), transparent 60%), radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--b) 60%, transparent), transparent 60%), #0a0b12;
  border: 1px solid rgba(255,255,255,.1); animation: rise .5s both cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.w-card.w-intro, .w-card.w-income { grid-column: span 2; } @media (max-width: 640px) { .w-card.w-intro, .w-card.w-income { grid-column: auto; } }
.w-big { font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.w-title { font-size: 17px; font-weight: 700; margin-top: 8px; } .w-sub { font-size: 13.5px; opacity: .75; margin-top: 6px; line-height: 1.45; }
.story { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; color: #fff; outline: none; user-select: none;
  background: radial-gradient(90% 70% at 10% 10%, var(--a), transparent 60%), radial-gradient(90% 70% at 90% 90%, var(--b), transparent 60%), #06070c; transition: background .6s; }
.story-bars { position: absolute; top: 14px; left: 14px; right: 60px; display: flex; gap: 5px; } .story-bars i { flex: 1; height: 3px; border-radius: 9px; background: rgba(255,255,255,.3); overflow: hidden; } .story-bars b { display: block; height: 100%; background: #fff; width: 0; }
.story-x { position: absolute; top: 6px; right: 10px; width: 42px; height: 42px; border: 0; background: none; color: #fff; cursor: pointer; z-index: 2; } .story-x .i { width: 24px; height: 24px; }
.story-slide { width: min(560px, 90vw); text-align: center; } .story-in { animation: storyIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes storyIn { from { opacity: 0; transform: scale(.9) translateY(20px); filter: blur(6px); } }
.story .w-big { font-size: clamp(54px, 13vw, 120px); text-shadow: 0 10px 40px rgba(0,0,0,.35); } .story .w-title { font-size: clamp(20px, 4vw, 28px); } .story .w-sub { font-size: 16px; }
.story-nav { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; background: none; cursor: pointer; } .story-nav.prev { left: 0; width: 30%; } .story-nav.next { right: 0; }

.cx-what { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.g-chart .axis-label { font-size: 11px; fill: var(--muted); }
#wYear { width: auto; min-width: 96px; }
