/* SETO Flow E6: original legacy CSS in original order; do not manually edit. */

/* From: analyse/style.css */
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b1d24;background:#f4f5f8;line-height:1.5}*{box-sizing:border-box}body{margin:0}.shell{max-width:1380px;margin:auto;padding:28px 18px 56px}.topbar{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:22px}.topbar h1{margin:6px 0 4px;font-size:clamp(1.9rem,3vw,2.6rem)}.topbar p,.card p,.sub{margin:4px 0;color:#667085}.back{color:#17365d;text-decoration:none;font-weight:700}.header-actions,.source-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.status,.pill{background:#e9f1fa;color:#17365d;border-radius:999px;padding:8px 12px;font-size:.9rem;white-space:nowrap}.card{background:#fff;border:1px solid #d9dee7;border-radius:16px;padding:22px;margin:16px 0;box-shadow:0 8px 28px rgba(27,29,36,.05)}.card h2{margin:0 0 8px}.source-card,.section-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.btn{border:0;border-radius:12px;padding:11px 15px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:#2f75b5;color:#fff}.secondary{background:#fafbfc;color:#1b1d24;border:1px solid #d9dee7}.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:16px 0}.kpi{background:#fff;border:1px solid #d9dee7;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(27,29,36,.04)}.kpi span,.mini-kpi span{display:block;color:#667085;font-size:.82rem}.kpi strong{display:block;margin-top:5px;font-size:1.18rem}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:520px}th,td{text-align:left;padding:10px;border-bottom:1px solid #e7e9ee}th{font-size:.78rem;color:#667085;text-transform:uppercase;letter-spacing:.03em}select{border:1px solid #d9dee7;border-radius:12px;padding:9px 11px;background:#fff;color:#1b1d24;font:inherit}.tariff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.tariff-item{background:#fafbfc;border:1px solid #e3e6eb;border-radius:14px;padding:15px}.tariff-item strong{display:block;font-size:1.05rem}.tariff-item span{display:block;color:#667085;font-size:.82rem;margin-top:4px}.chart-box{position:relative;min-height:360px;margin-top:16px}.chart-box.compact{min-height:280px}.chart-box canvas{width:100%!important;height:100%!important}.chart-fallback{display:none}.legend-notes{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.legend-note{font-size:.8rem;border-radius:999px;padding:5px 9px;background:#edf4fb;color:#17365d}.compare-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}.compare-row{display:grid;grid-template-columns:70px 1fr 1fr;gap:10px;padding:11px 12px;background:#fafbfc;border-radius:10px}.rank-list{display:flex;flex-direction:column;gap:12px;margin-top:16px}.rank-row{display:grid;grid-template-columns:minmax(150px,1.5fr) 1fr 105px;gap:12px;align-items:center}.rank-row>div:first-child{display:flex;flex-direction:column}.rank-row span{font-size:.8rem;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row b{text-align:right;font-size:.85rem}.rank-meter{height:10px;background:#eceef2;border-radius:999px;overflow:hidden}.rank-meter i{display:block;height:100%;background:#5b9bd5;border-radius:999px}.waterfall{display:flex;align-items:flex-end;gap:10px;min-height:310px;padding:28px 8px 42px;margin-top:8px;border-bottom:1px solid #e7e9ee;overflow:auto}.wf-col{min-width:86px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;height:245px;position:relative}.wf-bar{border-radius:9px 9px 4px 4px;min-height:3px;background:#2f75b5;position:absolute;left:12%;right:12%}.wf-bar.positive{background:#15803d}.wf-bar.negative{background:#b91c1c}.wf-bar.total{background:#2f75b5}.wf-value{position:absolute;left:0;right:0;text-align:center;font-size:.74rem;font-weight:700}.wf-label{position:absolute;top:255px;left:0;right:0;text-align:center;font-size:.74rem;color:#667085;line-height:1.15}.heatmap{display:grid;grid-template-columns:130px repeat(12,minmax(48px,1fr));gap:6px;margin-top:18px;overflow:auto}.heat-head,.heat-label,.heat-cell{min-width:48px;padding:8px 6px;border-radius:8px;text-align:center;font-size:.76rem}.heat-head{color:#667085;font-weight:700}.heat-label{text-align:left;font-weight:700;min-width:130px}.heat-cell{border:1px solid rgba(109,40,217,.08);background:rgba(109,40,217,var(--heat));color:color-mix(in srgb,#1b1d24 82%,white);font-variant-numeric:tabular-nums}.wage-picker{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.wage-chip{border:1px solid #d9dee7;background:#fff;color:#344054;border-radius:999px;padding:7px 10px;font:inherit;font-size:.8rem;cursor:pointer}.wage-chip.active{background:#2f75b5;color:#fff;border-color:#2f75b5}.mini-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.mini-kpi{background:#fafbfc;border:1px solid #e3e6eb;border-radius:12px;padding:12px}.mini-kpi strong{display:block;margin-top:4px}.empty,.empty-state{color:#667085}.muted{background:#fafbfc}.empty-state{text-align:center;padding:34px}.empty-state .btn{margin-top:12px}.bav-card{border-top:4px solid #2f75b5}.lzk-card{border-top:4px solid #0f766e}
html[data-theme="dark"] :root{color-scheme:dark}html[data-theme="dark"] body{background:#0f1117;color:#f3f4f8}html[data-theme="dark"] .card,html[data-theme="dark"] .kpi{background:#191d27;border-color:#343b49;box-shadow:none}html[data-theme="dark"] .card p,html[data-theme="dark"] .sub,html[data-theme="dark"] .kpi span,html[data-theme="dark"] .mini-kpi span,html[data-theme="dark"] .rank-row span,html[data-theme="dark"] .wf-label{color:#a7afc0}html[data-theme="dark"] .tariff-item,html[data-theme="dark"] .mini-kpi,html[data-theme="dark"] .compare-row,html[data-theme="dark"] .muted{background:#222836;border-color:#343b49}html[data-theme="dark"] select,html[data-theme="dark"] .wage-chip{background:#222836;color:#f3f4f8;border-color:#343b49}html[data-theme="dark"] th,html[data-theme="dark"] td,html[data-theme="dark"] .waterfall{border-color:#343b49}html[data-theme="dark"] .secondary{background:#222836;color:#f3f4f8;border-color:#343b49}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,1fr)}.tariff-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.grid-2{grid-template-columns:1fr}.heatmap{grid-template-columns:110px repeat(12,55px)}}@media(max-width:680px){.topbar,.source-card,.section-head{flex-direction:column;align-items:stretch}.header-actions{align-items:stretch}.kpis{grid-template-columns:repeat(2,1fr)}.tariff-grid{grid-template-columns:1fr}.mini-kpis{grid-template-columns:1fr}.compare-row{grid-template-columns:55px 1fr}.compare-row span:last-child{grid-column:2}.rank-row{grid-template-columns:1fr 90px}.rank-meter{grid-column:1}.rank-row b{grid-column:2;grid-row:1/3}.status{align-self:flex-start}.chart-box{min-height:300px}}

.analysis-subnav{position:sticky;top:calc(var(--seto-global-h) + 8px);z-index:30;display:flex;gap:6px;overflow:auto;padding:8px;margin:0 0 16px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--card) 94%,transparent);backdrop-filter:blur(12px)}
.analysis-subnav a{white-space:nowrap;text-decoration:none;color:var(--muted);font-size:13px;font-weight:800;padding:8px 11px;border-radius:10px}
.analysis-subnav a:hover{background:var(--surface-2);color:var(--primary)}
.source-select{display:flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:700}.source-select select{min-width:170px}.source-actions input[type="file"]{max-width:100%;padding:.55rem;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text)}

/* SETO 1.0.52 – H-02 Mobile/Responsive */
.table-wrap,.waterfall,.heatmap{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
@media(max-width:620px){
  .shell{padding:18px 10px 42px}
  .topbar{gap:12px;margin-bottom:14px}
  .topbar h1{font-size:clamp(1.55rem,8vw,2rem)}
  .header-actions,.source-actions{display:grid;grid-template-columns:1fr;width:100%}
  .header-actions .btn,.source-actions .btn,.header-actions .status{width:100%;white-space:normal;text-align:center}
  .analysis-subnav{padding:6px;scrollbar-width:none}
  .analysis-subnav::-webkit-scrollbar{display:none}
  .analysis-subnav a{min-height:40px;display:flex;align-items:center}
  .kpis{grid-template-columns:1fr}
  .card{padding:16px}
  .table-wrap{margin-left:-4px;margin-right:-4px;padding-bottom:4px}
  .table-wrap table{min-width:560px}
  .table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 0 #e7e9ee}
  .table-wrap th:first-child{z-index:2;background:#fafbfc}
  .heatmap{margin-left:-4px;margin-right:-4px;padding-bottom:6px}
  .compare-row{grid-template-columns:1fr;gap:5px}
  .compare-row span:last-child{grid-column:auto}
  .rank-row{grid-template-columns:1fr}
  .rank-meter,.rank-row b{grid-column:auto;grid-row:auto}
  .rank-row b{text-align:left}
  .chart-box{min-height:260px}
}
@media(max-width:620px) and (orientation:landscape){
  .shell{padding-top:10px}
  .topbar h1{font-size:1.45rem}
  .topbar p{display:none}
  .header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-actions .status{grid-column:1/-1}
}
html[data-theme="dark"] .table-wrap th:first-child{background:#222836;box-shadow:1px 0 0 #343b49}
html[data-theme="dark"] .table-wrap td:first-child{background:#191d27;box-shadow:1px 0 0 #343b49}

/* SETO 1.1.00 – Gehaltsanalyse Mehrjahres-Cockpit */
.comparison-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center}
.compare-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.compare-controls label{display:flex;flex-direction:column;gap:5px;font-size:.78rem;color:#667085;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.compare-arrow{padding:9px 2px;color:#245f96;font-size:1.3rem;font-weight:900}
.salary-kpis .kpi{position:relative;overflow:hidden}
.salary-kpis .kpi::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:#5b9bd5;opacity:.55}
.kpi small{display:block;margin-top:7px;font-size:.76rem;color:#667085;line-height:1.25}.positive{color:#15803d!important}.negative{color:#b42318!important}.neutral{color:#667085!important}
.insight-card{border-top:4px solid #5b9bd5}.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.insight-item{background:#fafbfc;border:1px solid #e4e7ec;border-radius:14px;padding:15px}.insight-item span{display:block;color:#667085;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.insight-item strong{display:block;margin:5px 0;font-size:1.18rem}.insight-item p{font-size:.82rem;margin:0}.insight-item.positive{border-color:#b7e4c7}.insight-item.negative{border-color:#fecaca}
.legend-note.partial{background:#fff7ed;color:#9a3412}.partial-tag{display:block;width:max-content;margin-top:4px;padding:2px 6px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:.68rem;font-weight:800}.table-footnote,.data-note{margin-top:10px!important;font-size:.76rem!important;color:#667085!important}
.metric-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.metric-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e4e7ec;border-radius:12px;background:#fafbfc}.metric-row span{font-weight:700}.metric-row strong{font-variant-numeric:tabular-nums}.metric-row em{min-width:72px;text-align:right;font-style:normal;font-weight:800}
.driver-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.driver-total{display:flex;justify-content:space-between;gap:12px;padding:14px;border-radius:12px;background:#edf4fb}.driver-total strong{font-size:1.1rem}.driver-row{display:grid;grid-template-columns:minmax(145px,1fr) 1.2fr;gap:12px;align-items:center}.driver-row>div:first-child{display:flex;justify-content:space-between;gap:10px}.driver-row span{font-size:.82rem;font-weight:800}.driver-meter{height:10px;background:#eceef2;border-radius:999px;overflow:hidden}.driver-meter i{display:block;height:100%;border-radius:999px;background:#667085}.driver-meter i.positive{background:#15803d}.driver-meter i.negative{background:#b42318}
.timeline-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.timeline-row{display:grid;grid-template-columns:90px 1fr;gap:14px;padding:12px;border-left:3px solid #5b9bd5;background:#fafbfc;border-radius:0 12px 12px 0}.timeline-date{font-size:.78rem;font-weight:800;color:#667085}.timeline-row strong,.timeline-row span{display:block}.timeline-row span{margin-top:3px;color:#667085;font-size:.8rem}
.mover-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.mover-row{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #e4e7ec;border-radius:12px;background:#fafbfc}.mover-row>div:first-child{min-width:0}.mover-row strong,.mover-row span{display:block}.mover-row>div:first-child span{font-size:.76rem;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mover-values{text-align:right;white-space:nowrap}.mover-values span{font-size:.76rem;color:#667085}.mover-values b{font-size:.9rem}
.correction-summary{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.correction-chip{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border:1px solid #e4e7ec;background:#fafbfc;border-radius:11px}.correction-chip span,.correction-chip small{font-size:.72rem;color:#667085}.salary-year-table table{min-width:1100px}

html[data-theme="dark"] .insight-item,html[data-theme="dark"] .metric-row,html[data-theme="dark"] .timeline-row,html[data-theme="dark"] .mover-row,html[data-theme="dark"] .correction-chip{background:#222836;border-color:#343b49}html[data-theme="dark"] .driver-total{background:#2c2340}html[data-theme="dark"] .driver-meter{background:#343b49}html[data-theme="dark"] .partial-tag,html[data-theme="dark"] .legend-note.partial{background:#3b2a1e;color:#fdba74}

@media(max-width:1000px){.insight-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){
  .comparison-toolbar{flex-direction:column;align-items:stretch}.compare-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:end}.compare-controls select{width:100%}
  .insight-grid{grid-template-columns:1fr}.metric-row{grid-template-columns:1fr auto}.metric-row em{grid-column:2;min-width:auto}.driver-row{grid-template-columns:1fr}.timeline-row{grid-template-columns:72px 1fr}.mover-row{flex-direction:column}.mover-values{text-align:left}.salary-year-table{margin-left:-10px;margin-right:-10px}.salary-year-table table{min-width:1020px}
}
.salary-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.quality-card{border-top:4px solid #475467}.quality-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.quality-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 12px;border:1px solid #e4e7ec;border-radius:12px;background:#fafbfc}.quality-row>div{min-width:0}.quality-row strong,.quality-row span{display:block}.quality-row span{margin-top:3px;color:#667085;font-size:.78rem}.quality-row b{min-width:44px;text-align:center;font-size:1.05rem;font-variant-numeric:tabular-nums}.quality-row.ok{border-left:4px solid #15803d}.quality-row.warn{border-left:4px solid #d97706}.quality-row.info{border-left:4px solid #667085}.coverage-mini{display:block;color:#667085;font-size:.68rem;margin-top:3px}.recovered-tag{background:#eef2ff;color:#4338ca}.metric-row em{max-width:310px;font-weight:600;color:#667085;font-size:.76rem;line-height:1.25}.salary-year-table table{min-width:1450px}
html[data-theme="dark"] .quality-row{background:#222836;border-color:#343b49}html[data-theme="dark"] .quality-row span,html[data-theme="dark"] .coverage-mini,html[data-theme="dark"] .metric-row em{color:#a7afc0}html[data-theme="dark"] .recovered-tag{background:#27274a;color:#c7d2fe}
@media(max-width:1100px){.salary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.salary-kpis{grid-template-columns:1fr}.quality-row{align-items:flex-start}.metric-row em{grid-column:1/-1;text-align:left;max-width:none}}
.special-year-table table{min-width:1180px}

/* SETO 1.1.00 – Datenqualität & Vermögensaufbau */
.quality-year-table{margin-top:16px;max-height:460px;overflow:auto}
.quality-score{display:block;font-variant-numeric:tabular-nums}
.quality-score.q-hoch{color:#147a46}.quality-score.q-gut{color:#356c19}.quality-score.q-eingeschrankt{color:#9a6800}.quality-score.q-luckenhaft{color:#b13a3a}
.investment-card{margin-top:18px}
.investment-card .mini-kpis{margin-bottom:14px}
@media(max-width:700px){.quality-year-table table{min-width:980px}.investment-card .mini-kpis{grid-template-columns:1fr 1fr}.investment-card .mini-kpi:last-child{grid-column:1/-1}}

/* SETO 1.1.01 – geführte Gehaltsanalyse */
.guided-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.guide-card{background:var(--card,#fff);border:1px solid var(--border,#e4e7ec);border-radius:16px;padding:17px;min-width:0}
.guide-card span{display:block;color:var(--muted,#667085);font-size:.8rem;font-weight:800;margin-bottom:7px}
.guide-card strong{display:block;font-size:clamp(1.25rem,2vw,1.75rem);font-variant-numeric:tabular-nums;line-height:1.1}
.guide-card small{display:block;color:var(--muted,#667085);font-size:.72rem;line-height:1.35;margin-top:8px}
.quick-groups{margin-bottom:16px}.group-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.group-row{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:11px;background:var(--surface-2,#fafbfc);border:1px solid var(--border,#e4e7ec)}
.group-row span{font-size:.82rem;font-weight:700}.group-row strong{font-size:.85rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.advanced-analysis{margin-top:18px;border:1px solid var(--border,#e4e7ec);border-radius:16px;background:var(--card,#fff);overflow:hidden}
.advanced-analysis>summary{cursor:pointer;list-style:none;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;background:var(--surface-2,#fafbfc)}
.advanced-analysis>summary::-webkit-details-marker{display:none}.advanced-analysis>summary::after{content:"▾";font-size:1.1rem;color:var(--muted,#667085);transition:transform .15s ease}.advanced-analysis[open]>summary::after{transform:rotate(180deg)}
.advanced-analysis>summary strong,.advanced-analysis>summary small{display:block}.advanced-analysis>summary small{margin-top:3px;color:var(--muted,#667085);font-size:.76rem;font-weight:500}
.advanced-analysis-body{padding:18px}.advanced-analysis-body>.card,.advanced-analysis-body>.grid-2{margin-top:0;margin-bottom:18px}
@media(max-width:1000px){.guided-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.guided-overview,.group-summary{grid-template-columns:1fr}.advanced-analysis-body{padding:10px}.guide-card{padding:15px}}

/* SETO 1.1.02 – kanonische Analyseschicht */
.view-switch{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0 .35rem}.view-btn{border:1px solid var(--line,#d8dbe3);background:var(--surface,#fff);color:var(--text,#172b42);border-radius:999px;padding:.55rem .85rem;font:inherit;cursor:pointer}.view-btn.active{font-weight:700;box-shadow:inset 0 0 0 1px currentColor}.event-foundation .mini-kpis{margin-top:.75rem}.event-foundation .quality-list{margin-top:.75rem}

/* SETO 1.1.03 – strukturelles Einkommen, Rolling 12 und Erklärbarkeit */
.income-engine-card{border-top:4px solid #475467}.income-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.income-kpis article{border:1px solid var(--border,#e4e7ec);background:var(--surface-2,#fafbfc);border-radius:13px;padding:14px}.income-kpis span,.income-kpis small{display:block}.income-kpis span{font-size:.78rem;font-weight:800;color:var(--muted,#667085)}.income-kpis strong{display:block;margin:5px 0;font-size:1.35rem;font-variant-numeric:tabular-nums}.income-kpis small{font-size:.72rem;color:var(--muted,#667085);line-height:1.35}.income-explanation{margin-top:12px}.income-explain-head{padding:13px 14px;border:1px solid var(--border,#e4e7ec);border-radius:13px;background:var(--surface-2,#fafbfc)}.income-explain-head strong,.income-explain-head span{display:block}.income-explain-head span{margin-top:4px;font-size:.8rem;color:var(--muted,#667085)}.income-causes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.income-cause{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--border,#e4e7ec);border-radius:10px}.income-cause span{font-size:.78rem;font-weight:700}.income-cause strong{font-size:.8rem;white-space:nowrap}
@media(max-width:700px){.income-kpis,.income-causes{grid-template-columns:1fr}}
/* SETO 1.1.04 – App↔VDN Plausibilitätsdetektor */
.plausibility-overview{border-top:4px solid #667085}.plausibility-cases{display:grid;gap:10px;margin-top:14px}.plausibility-case{border:1px solid var(--border,#e4e7ec);border-radius:13px;padding:13px;background:var(--surface-2,#fafbfc)}.plausibility-case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.plausibility-case-head strong,.plausibility-case-head small{display:block}.plausibility-case-head small{margin-top:4px;color:var(--muted,#667085)}.cause-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.cause-list>div{border:1px solid var(--border,#e4e7ec);border-radius:9px;padding:8px 10px;background:var(--surface,#fff)}.cause-list span,.cause-list small{display:block}.cause-list span{font-weight:800;font-size:.78rem}.cause-list small{margin-top:3px;color:var(--muted,#667085);font-size:.72rem;line-height:1.35}.code-details{margin-top:10px}.code-details summary{cursor:pointer;font-weight:800;font-size:.8rem}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:currentColor}.status-dot.match{color:#067647}.status-dot.info{color:#175cd3}.status-dot.review{color:#b54708}@media(max-width:720px){.cause-list{grid-template-columns:1fr}.plausibility-case-head{flex-direction:column}}

.line-audit-list{display:grid;gap:7px;margin-top:9px}.line-audit-row{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--border,#e4e7ec);border-radius:9px;padding:9px 10px;background:var(--surface,#fff)}.line-audit-row strong,.line-audit-row small,.line-audit-values span{display:block}.line-audit-row small{margin-top:3px;color:var(--muted,#667085);font-size:.72rem;line-height:1.35}.line-audit-values{min-width:180px;text-align:right;font-size:.72rem;color:var(--muted,#667085)}.line-audit-row.quantity_diff,.line-audit-row.missing_vdn{border-left:4px solid #b54708}.line-audit-row.amount_diff,.line-audit-row.unexpected_vdn{border-left:4px solid #dc6803}.line-audit-row.match{border-left:4px solid #067647}.line-audit-row.not_comparable{border-left:4px solid #667085}@media(max-width:720px){.line-audit-row{flex-direction:column}.line-audit-values{text-align:left;min-width:0}}

/* SETO 1.1.23 – User-/Profi-Analyse */
.analysis-mainnav{align-items:center;gap:8px}
.analysis-mode-switch{margin-left:auto;display:flex;gap:4px;padding:4px;border:1px solid var(--border,#e4e7ec);border-radius:999px;background:var(--surface-2,#f7f8fa)}
.mode-btn{border:0;background:transparent;color:var(--muted,#667085);border-radius:999px;padding:7px 12px;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}
.mode-btn.active{background:var(--card,#fff);color:var(--text,#101828);box-shadow:0 1px 4px rgba(16,24,40,.12)}
.user-analysis{display:grid;gap:16px}
.user-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:22px;border-radius:20px;background:linear-gradient(145deg,rgba(111,76,255,.13),rgba(111,76,255,.035));border:1px solid rgba(111,76,255,.18)}
.user-hero h2{margin:4px 0 5px;font-size:clamp(1.55rem,3vw,2.2rem)}
.user-hero p{margin:0;color:var(--muted,#667085);font-size:.82rem}
.eyebrow{display:block;color:#6f4cff;font-size:.69rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.user-year-select{display:flex;flex-direction:column;gap:5px;min-width:112px;color:var(--muted,#667085);font-size:.72rem;font-weight:800}
.user-year-select select{width:100%;font:inherit;font-size:.95rem;color:var(--text,#101828);background:var(--card,#fff);border:1px solid var(--border,#d0d5dd);border-radius:12px;padding:9px 10px}
.user-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.user-kpi{min-width:0;padding:17px;border:1px solid var(--border,#e4e7ec);border-radius:16px;background:var(--card,#fff)}
.user-kpi.primary{border-color:rgba(111,76,255,.28);box-shadow:inset 0 3px 0 rgba(111,76,255,.72)}
.user-kpi span,.user-kpi small{display:block}.user-kpi span{font-size:.78rem;font-weight:800;color:var(--muted,#667085)}
.user-kpi strong{display:block;margin:7px 0 6px;font-size:clamp(1.35rem,2.2vw,1.85rem);font-variant-numeric:tabular-nums;line-height:1.05}.user-kpi small{font-size:.7rem;color:var(--muted,#667085);line-height:1.35}
.user-chart-card .section-head{align-items:flex-start}.user-chart{height:330px}.user-chart-card .legend-notes{margin-top:10px}.user-chart-card .chart-box{min-width:0}.user-chart-card canvas{max-width:100%}
.user-composition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.composition-tile{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:14px;border:1px solid var(--border,#e4e7ec);border-radius:14px;background:var(--surface-2,#fafbfc)}
.composition-tile span{font-size:.82rem;font-weight:800}.composition-tile strong{font-size:1.08rem;font-variant-numeric:tabular-nums}.composition-tile b{grid-column:2;grid-row:1;color:var(--muted,#667085);font-size:.72rem}.composition-tile small{grid-column:1/-1;color:var(--muted,#667085);font-size:.7rem;line-height:1.35}
.composition-meter{grid-column:1/-1;height:5px;margin-top:7px;border-radius:999px;background:var(--border,#e4e7ec);overflow:hidden}.composition-meter i{display:block;height:100%;border-radius:999px;background:currentColor;color:#6f4cff;opacity:.72}
.user-two-column{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px}
.user-change-head{padding:14px;border:1px solid var(--border,#e4e7ec);border-radius:13px;background:var(--surface-2,#fafbfc)}.user-change-head strong,.user-change-head span{display:block}.user-change-head span{margin-top:5px;color:var(--muted,#667085);font-size:.78rem;line-height:1.4}.user-change-summary>p{margin:9px 2px 0;color:var(--muted,#667085);font-size:.72rem}
.user-change-drivers{display:grid;gap:7px;margin-top:12px}.user-driver{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid var(--border,#e4e7ec);border-radius:10px}.user-driver span{font-size:.78rem;font-weight:800}.user-driver strong{font-size:.8rem;white-space:nowrap}.user-driver strong small{font-weight:600;color:var(--muted,#667085)}
.user-check-summary{display:grid;gap:8px;margin-top:12px}.user-check-item{padding:11px 12px;border:1px solid var(--border,#e4e7ec);border-left-width:4px;border-radius:11px;background:var(--surface-2,#fafbfc)}.user-check-item strong,.user-check-item span{display:block}.user-check-item strong{font-size:.8rem}.user-check-item span{margin-top:4px;color:var(--muted,#667085);font-size:.72rem;line-height:1.4}.user-check-item.ok{border-left-color:#067647}.user-check-item.info{border-left-color:#667085}.user-check-item.review{border-left-color:#b54708}.user-open-pro{margin-top:14px;width:100%}
.pro-analysis{display:grid;gap:16px}.pro-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--border,#e4e7ec);border-radius:16px;background:var(--surface-2,#fafbfc)}.pro-intro h2{margin:4px 0}.pro-intro p{margin:0;color:var(--muted,#667085);font-size:.8rem}.pro-links{display:flex;gap:8px;flex-wrap:wrap}.pro-links a{font-size:.75rem;font-weight:800;text-decoration:none;color:var(--text,#172b42);padding:7px 10px;border:1px solid var(--border,#e4e7ec);border-radius:999px;background:var(--card,#fff)}
body[data-analysis-mode="pro"] [data-user-nav]{display:none}
html[data-theme="dark"] .mode-btn.active,html[data-theme="dark"] .user-kpi,html[data-theme="dark"] .user-year-select select{background:#222836;color:#f3f4f6}html[data-theme="dark"] .analysis-mode-switch,html[data-theme="dark"] .composition-tile,html[data-theme="dark"] .user-change-head,html[data-theme="dark"] .user-check-item,html[data-theme="dark"] .pro-intro{background:#1d2330;border-color:#343b49}html[data-theme="dark"] .user-hero{background:linear-gradient(145deg,rgba(139,107,255,.16),rgba(139,107,255,.035));border-color:rgba(139,107,255,.26)}
@media(max-width:980px){.user-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.user-two-column{grid-template-columns:1fr}.analysis-mode-switch{margin-left:0}}
@media(max-width:680px){.analysis-mainnav{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.analysis-mainnav>a{white-space:nowrap}.analysis-mode-switch{position:sticky;right:0;flex:none}.user-hero{align-items:stretch;flex-direction:column;padding:18px}.user-year-select{min-width:0}.user-kpis,.user-composition-grid{grid-template-columns:1fr}.user-chart{height:290px}.pro-intro{align-items:stretch;flex-direction:column}.user-driver{align-items:flex-start;flex-direction:column;gap:4px}}

/* SETO 1.1.220 – erweiterte Einkommensanalyse */
.analysis-insight{margin-top:12px;padding:11px 13px;border:1px solid var(--border,#e4e7ec);border-radius:12px;background:var(--surface-2,#fafbfc);font-size:.78rem;line-height:1.45;color:var(--muted,#667085)}
.analysis-insight strong{color:var(--text,#101828)}
.analysis-insight small{display:block;margin-top:5px;color:var(--muted,#667085)}
.user-advanced-grid{align-items:start}
.user-chart.compact{height:285px}
html[data-theme="dark"] .analysis-insight{background:#1d2330;border-color:#343b49;color:#c8cfda}
html[data-theme="dark"] .analysis-insight strong{color:#f3f4f6}
@media(max-width:680px){.user-chart.compact{height:260px}}


/* 2.1.066 – Analyse nach Nutzerfragen und sichtbare Vorsorge */
.analysis-question-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1rem}.analysis-question-nav a{padding:.55rem .8rem;border:1px solid var(--border,#cbd5e1);border-radius:999px;text-decoration:none;font-weight:750}.analysis-topic-head,.analysis-depth-divider{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:1.25rem 0 .75rem}.analysis-topic-head h2{margin:.1rem 0}.analysis-depth-divider{border-top:1px solid var(--border,#d8dee8);padding-top:1rem}.analysis-depth-divider span{font-weight:850}.analysis-depth-divider p{margin:0;color:var(--muted,#64748b)}body.analysis-provision-focus #userView>section:not(#userOverview):not(#vorsorgeHead):not(#vorsorge),body.analysis-provision-focus #userView>.analysis-question-nav,body.analysis-provision-focus #userView>.analysis-depth-divider{display:none!important}body.analysis-provision-focus #vorsorge{display:grid!important}@media(max-width:760px){.analysis-question-nav{display:grid;grid-template-columns:1fr 1fr}.analysis-question-nav a{text-align:center}.analysis-topic-head,.analysis-depth-divider{display:block}}

/* SETO 2.1.078 – Einkommensanalyse Vertiefungen */
.analysis-depth-group{margin:12px 0;border:1px solid var(--seto-border,#d9dee7);border-radius:16px;background:var(--seto-card,#fff);overflow:clip}.analysis-depth-group>summary{cursor:pointer;list-style:none;padding:14px 16px;color:var(--seto-text,#172033)}.analysis-depth-group>summary::-webkit-details-marker{display:none}.analysis-depth-group>summary span{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.analysis-depth-group>summary strong{font-size:1rem}.analysis-depth-group>summary small{color:var(--seto-muted,#667085);font-weight:500}.analysis-depth-group[open]>summary{border-bottom:1px solid var(--seto-border,#d9dee7);background:var(--seto-card-2,#fafbfc)}.analysis-depth-group>summary:focus-visible{outline:3px solid var(--seto-readable-link,#245f96);outline-offset:-3px}.analysis-depth-body{padding:12px;display:grid;gap:12px}.analysis-depth-body>.card,.analysis-depth-body>.user-two-column{margin:0}@media(max-width:680px){.analysis-depth-group>summary span{display:grid;gap:4px}}

/* SETO 2.1.095 – erkannte bAV-Versorgungspläne */
.bav-plan-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}
.bav-plan-summary article{padding:10px 12px;border:1px solid var(--seto-border,#d9dee7);border-radius:11px;background:var(--seto-card-2,#fafbfc);display:grid;gap:3px}
.bav-plan-summary article span,.bav-plan-summary article small{color:var(--seto-muted,#667085);line-height:1.35}
@media(max-width:760px){.bav-plan-summary{grid-template-columns:1fr}}


/* From: analyse/analysis-dashboard.css */
:root{--ad-navy:#17365d;--ad-blue:#2f75b5;--ad-bg:#f0f2f5;--ad-card:#fff;--ad-text:#1f2733;--ad-muted:#6b7785;--ad-border:#e2e7ee;--ad-radius:16px}
body{background:var(--ad-bg)!important;color:var(--ad-text)!important;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
.shell,.tariff-shell{max-width:900px!important;margin:auto!important;padding:0 14px 36px!important}
.topbar{margin:0 -14px 18px!important;padding:calc(18px + env(safe-area-inset-top,0px)) 18px 30px!important;border-radius:0 0 24px 24px!important;background:linear-gradient(135deg,#17365d,#2f75b5)!important;color:#fff!important;box-shadow:0 7px 24px rgba(23,54,93,.14);align-items:flex-end!important}
.topbar h1{font-size:1.5rem!important;margin:3px 0 4px!important;color:#fff!important}.topbar p{color:rgba(255,255,255,.86)!important;font-size:.88rem!important;max-width:650px}
.topbar .status{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.24)!important;color:#fff!important}.topbar .secondary{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.25)!important;color:#fff!important}
.card,.salary-card,.purchase-panel,.advanced-panel,.result-card,.year-box{border:0!important;border-radius:var(--ad-radius)!important;background:var(--ad-card)!important;box-shadow:0 1px 6px rgba(0,0,0,.07)!important}.card{padding:18px!important;margin:14px 0!important}.card h2,.purchase-panel h3,.advanced-panel h3,.result-card h3{color:var(--ad-navy)!important}.card p,.sub,.mini,.notice-list,.table-footnote{color:var(--ad-muted)!important}
.kpis,.tariff-kpis,.purchase-kpis,.year-hero{gap:10px!important}.kpi,.tariff-kpi,.purchase-kpi,.year-box{border:0!important;border-radius:14px!important;background:var(--ad-card)!important;box-shadow:0 1px 5px rgba(0,0,0,.06)!important}.kpi strong,.tariff-kpi strong,.purchase-kpi strong,.year-box strong{color:var(--ad-navy)!important}.kpi span,.tariff-kpi span,.purchase-kpi span,.year-box span{color:var(--ad-muted)!important}
.analysis-subnav,.sim-nav{border:0!important;border-radius:14px!important;background:color-mix(in srgb,var(--ad-card) 94%,transparent)!important;box-shadow:0 1px 6px rgba(0,0,0,.06)!important;backdrop-filter:blur(14px)}
.analysis-subnav a,.sim-nav a{color:var(--ad-muted)!important}.analysis-subnav a:hover,.analysis-subnav a.active,.sim-nav a.active{background:#eaf2fb!important;color:var(--ad-navy)!important}
.btn.primary,.primary{background:var(--ad-navy)!important}.btn.secondary,.secondary{background:#f7f9fc!important;color:var(--ad-navy)!important;border:1px solid var(--ad-border)!important}
select,input,textarea{border-color:var(--ad-border)!important;border-radius:11px!important}.table-wrap{border-radius:12px}.table-wrap table{background:var(--ad-card)}th{color:var(--ad-muted)!important}th,td{border-color:#edf0f4!important}
.section-head{align-items:flex-start!important}.pill{background:#eaf2fb!important;color:var(--ad-navy)!important}.chart-box{border-radius:12px;overflow:hidden}
@media(max-width:680px){.shell,.tariff-shell{padding:0 12px 28px!important}.topbar{margin:0 -12px 14px!important;flex-direction:column!important;align-items:stretch!important}.topbar .header-actions{display:grid!important;grid-template-columns:1fr!important}.card{padding:15px!important}.kpis,.tariff-kpis,.purchase-kpis,.year-hero{grid-template-columns:1fr 1fr!important}}
@media(max-width:390px){.kpis,.tariff-kpis,.purchase-kpis,.year-hero{grid-template-columns:1fr!important}}
html[data-theme="dark"]{--ad-bg:#0f1117;--ad-card:#1b202b;--ad-text:#f3f6fa;--ad-muted:#c3ccd9;--ad-border:#303845;--ad-navy:#dcecff}
html[data-theme="dark"] body{background:var(--ad-bg)!important;color:var(--ad-text)!important}html[data-theme="dark"] .card,html[data-theme="dark"] .kpi,html[data-theme="dark"] .tariff-kpi,html[data-theme="dark"] .purchase-kpi,html[data-theme="dark"] .purchase-panel,html[data-theme="dark"] .advanced-panel,html[data-theme="dark"] .result-card,html[data-theme="dark"] .year-box{background:var(--ad-card)!important;color:var(--ad-text)!important;box-shadow:none!important}
html[data-theme="dark"] .card h2,html[data-theme="dark"] .card h3,html[data-theme="dark"] .kpi strong,html[data-theme="dark"] .tariff-kpi strong,html[data-theme="dark"] .purchase-kpi strong,html[data-theme="dark"] .year-box strong{color:#dcecff!important}html[data-theme="dark"] .card p,html[data-theme="dark"] .sub,html[data-theme="dark"] .mini,html[data-theme="dark"] .notice-list,html[data-theme="dark"] .table-footnote,html[data-theme="dark"] .kpi span,html[data-theme="dark"] .year-box span{color:#c3ccd9!important}
html[data-theme="dark"] .analysis-subnav,html[data-theme="dark"] .sim-nav{background:rgba(27,32,43,.94)!important}html[data-theme="dark"] .analysis-subnav a:hover,html[data-theme="dark"] .analysis-subnav a.active,html[data-theme="dark"] .sim-nav a.active{background:#263548!important;color:#dcecff!important}html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .secondary,html[data-theme="dark"] select,html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#222936!important;color:#f3f6fa!important;border-color:#303845!important}html[data-theme="dark"] .pill{background:#263548!important;color:#dcecff!important}html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:#303845!important}html[data-theme="dark"] .table-wrap table{background:var(--ad-card)!important}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]){--ad-bg:#0f1117;--ad-card:#1b202b;--ad-text:#f3f6fa;--ad-muted:#c3ccd9;--ad-border:#303845;--ad-navy:#dcecff}html:not([data-theme="light"]) body{background:var(--ad-bg)!important;color:var(--ad-text)!important}html:not([data-theme="light"]) .card,html:not([data-theme="light"]) .kpi,html:not([data-theme="light"]) .tariff-kpi,html:not([data-theme="light"]) .purchase-kpi,html:not([data-theme="light"]) .purchase-panel,html:not([data-theme="light"]) .advanced-panel,html:not([data-theme="light"]) .result-card,html:not([data-theme="light"]) .year-box{background:var(--ad-card)!important;color:var(--ad-text)!important}html:not([data-theme="light"]) .card h2,html:not([data-theme="light"]) .card h3,html:not([data-theme="light"]) .kpi strong,html:not([data-theme="light"]) .year-box strong{color:#dcecff!important}html:not([data-theme="light"]) .card p,html:not([data-theme="light"]) .sub,html:not([data-theme="light"]) .mini,html:not([data-theme="light"]) .notice-list,html:not([data-theme="light"]) .kpi span,html:not([data-theme="light"]) .year-box span{color:#c3ccd9!important}}

/* SETO 2.1.137 – Analysebereiche ohne Doppelungen */
[data-analysis-relocated="true"]{display:none!important}

/* Eigene Vorsorge-Seite: Analyse-JS behält seinen vollständigen DOM-Vertrag,
   sichtbar sind aber nur Datenbasis und Vorsorgebereich. */
body.vorsorge-only .user-analysis > :not(#vorsorgeHead):not(#vorsorge){display:none!important}
body.vorsorge-only .pro-analysis{display:none!important}
body.vorsorge-only #vorsorgeHead{margin-top:0}

/* SETO 2.2.37 · Langfristprognose / Y912-Szenario */
.forecast-y912-details{margin-top:14px;border:1px solid #d9dee7;border-radius:14px;padding:13px 14px;background:#fafbfc}
.forecast-y912-details>summary{cursor:pointer;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;color:#17365d}
.forecast-y912-details>summary span{font-size:.78rem;color:#667085;font-weight:600}
.forecast-y912-details p{margin:10px 0;color:#667085;font-size:.82rem}
.forecast-y912-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.forecast-y912-field{display:grid;grid-template-columns:1fr minmax(72px,96px) auto;gap:7px;align-items:center;border:1px solid #e4e7ec;border-radius:11px;padding:8px 9px;background:#fff}
.forecast-y912-field>span{display:grid;font-weight:800;font-size:.82rem;color:#344054}
.forecast-y912-field small{font-weight:500;color:#667085;font-size:.68rem}
.forecast-y912-field input{min-width:0;width:100%;border:1px solid #d0d5dd;border-radius:8px;padding:7px 8px;text-align:right;background:#fff;color:inherit;font:inherit}
.forecast-y912-field b{color:#667085;font-size:.8rem}
.forecast-y912-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
html[data-theme="dark"] .forecast-y912-details{background:#1d2330;border-color:#343b49}html[data-theme="dark"] .forecast-y912-field{background:#191d27;border-color:#343b49}html[data-theme="dark"] .forecast-y912-field input{background:#191d27;border-color:#46505e;color:#f3f4f8}html[data-theme="dark"] .forecast-y912-field>span{color:#e7edf5}
@media(max-width:900px){.forecast-y912-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.forecast-y912-grid{grid-template-columns:1fr}.forecast-y912-actions{display:grid;grid-template-columns:1fr}.forecast-y912-actions .btn{width:100%}}


/* From: analyse/analysis-shell.css */
:root{
  --analysis-navy:#17365d;--analysis-blue:#2f75b5;--analysis-bg:#f0f2f5;--analysis-card:#fff;
  --analysis-text:#1f2733;--analysis-muted:#6b7785;--analysis-border:#dfe5ec;--analysis-sidebar:238px;
}
*{box-sizing:border-box}
.analysis-layout{width:min(1480px,100%);margin:0 auto;display:grid;grid-template-columns:var(--analysis-sidebar) minmax(0,1fr);min-height:100vh}
.analysis-sidebar{padding:22px 14px 26px;position:sticky;top:0;align-self:start;height:100vh;border-right:1px solid var(--analysis-border);background:rgba(255,255,255,.84);backdrop-filter:blur(18px);z-index:5;overflow:auto}
.analysis-brand{display:block;margin:0 8px 20px;text-decoration:none;color:var(--analysis-text)}
.analysis-brand small{display:block;color:var(--analysis-muted);font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.analysis-brand strong{display:block;font-size:1.08rem;margin-top:2px}
.analysis-nav-group{margin:18px 0 0}.analysis-nav-title{padding:0 10px 6px;color:var(--analysis-muted);font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.analysis-sidebar nav{display:grid;gap:4px}.analysis-sidebar nav a{display:flex;align-items:center;min-width:0;padding:10px 11px;border-radius:11px;text-decoration:none;color:var(--analysis-text);font-size:.81rem;font-weight:720;border:1px solid transparent}
.analysis-sidebar nav a:hover{background:#f4f7fb}.analysis-sidebar nav a.active{background:linear-gradient(135deg,#17365d,#2f75b5);color:#fff;box-shadow:0 7px 20px rgba(23,54,93,.16)}
.analysis-sidebar nav a.subtle{color:var(--analysis-muted);font-weight:650}.analysis-content{min-width:0;width:100%;overflow:hidden}
.analysis-content .salary-header-inner,.analysis-content .salary-main{max-width:none}.analysis-content .salary-main{padding-left:22px;padding-right:22px;max-width:1120px;margin:0 auto}.analysis-content .salary-header-inner{max-width:1120px}
.analysis-content .shell,.analysis-content .tariff-shell{max-width:1120px;margin:0 auto;padding-left:22px;padding-right:22px}
.analysis-mobile-nav{display:none}
.analysis-section-intro{margin:18px 0 12px;padding:0 2px}.analysis-section-intro h2{margin:0;color:var(--analysis-navy);font-size:1rem}.analysis-section-intro p{margin:4px 0 0;color:var(--analysis-muted);font-size:.78rem}
/* One robust card grid. Cards shrink instead of overlapping. */
.analysis-content .kpi-grid,.analysis-content .user-kpis,.analysis-content .tariff-kpis{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.analysis-content .kpi-grid>.kpi{grid-column:span 4;min-width:0}.analysis-content .kpi-grid>.kpi-hours{grid-column:span 4}
.analysis-content .user-kpis>.user-kpi{grid-column:span 3;min-width:0}.analysis-content .tariff-kpis>*{grid-column:span 3;min-width:0}
.analysis-content .kpi-value,.analysis-content .user-kpi strong,.analysis-content .tariff-kpis strong{overflow-wrap:anywhere;word-break:normal;min-width:0}
.analysis-content .chart-box{max-width:100%;min-width:0}.analysis-content canvas{max-width:100%!important}
.analysis-content .user-two-column,.analysis-content .grid-2,.analysis-content .purchase-visual-grid,.analysis-content .progression-chart-grid{min-width:0}.analysis-content .card,.analysis-content .salary-card,.analysis-content .user-kpi,.analysis-content .kpi{min-width:0;overflow:hidden}
@media(max-width:1100px){
  .analysis-layout{grid-template-columns:205px minmax(0,1fr)}
  .analysis-content .user-kpis>.user-kpi,.analysis-content .tariff-kpis>*{grid-column:span 6}.analysis-content .kpi-grid>.kpi,.analysis-content .kpi-grid>.kpi-hours{grid-column:span 6}
}
@media(max-width:820px){
  .analysis-layout{display:block;min-height:0}.analysis-sidebar{display:none}.analysis-mobile-nav{display:block;position:sticky;top:0;z-index:30;padding:8px 12px;background:rgba(240,242,245,.93);backdrop-filter:blur(18px);border-bottom:1px solid var(--analysis-border)}
  .analysis-mobile-nav details{max-width:1120px;margin:0 auto}.analysis-mobile-nav summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:var(--analysis-card);border:1px solid var(--analysis-border);font-size:.82rem;font-weight:800;cursor:pointer}.analysis-mobile-nav summary::-webkit-details-marker{display:none}
  .analysis-mobile-links{display:grid;gap:5px;margin-top:7px;padding:8px;border-radius:14px;background:var(--analysis-card);border:1px solid var(--analysis-border);box-shadow:0 14px 36px rgba(15,23,42,.13)}.analysis-mobile-links a{text-decoration:none;color:var(--analysis-text);padding:9px 10px;border-radius:9px;font-size:.8rem;font-weight:700}.analysis-mobile-links a.active{background:#17365d;color:#fff}.analysis-mobile-links .group{padding:8px 10px 2px;color:var(--analysis-muted);font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
  .analysis-content .salary-main,.analysis-content .shell,.analysis-content .tariff-shell{padding-left:12px;padding-right:12px}.analysis-content .salary-header{border-radius:0 0 22px 22px}
}
@media(max-width:560px){
  .analysis-content .kpi-grid>.kpi,.analysis-content .kpi-grid>.kpi-hours,.analysis-content .user-kpis>.user-kpi,.analysis-content .tariff-kpis>*{grid-column:span 12}
  .analysis-content .user-composition-grid{grid-template-columns:1fr}.analysis-content .user-two-column,.analysis-content .grid-2,.analysis-content .purchase-visual-grid,.analysis-content .progression-chart-grid{grid-template-columns:1fr!important}
}
html[data-theme="dark"]{--analysis-bg:#0f1117;--analysis-card:#1b202b;--analysis-text:#f3f6fa;--analysis-muted:#b7c0cc;--analysis-border:#303845;--analysis-navy:#dcecff}
html[data-theme="dark"] .analysis-sidebar{background:rgba(20,25,34,.88)}html[data-theme="dark"] .analysis-sidebar nav a:hover{background:#222936}html[data-theme="dark"] .analysis-mobile-nav{background:rgba(15,17,23,.94)}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]){--analysis-bg:#0f1117;--analysis-card:#1b202b;--analysis-text:#f3f6fa;--analysis-muted:#b7c0cc;--analysis-border:#303845;--analysis-navy:#dcecff}html:not([data-theme="light"]) .analysis-sidebar{background:rgba(20,25,34,.88)}html:not([data-theme="light"]) .analysis-sidebar nav a:hover{background:#222936}html:not([data-theme="light"]) .analysis-mobile-nav{background:rgba(15,17,23,.94)}}


/* From: analyse/social-insurance.css */
/* SETO 2.1.080 – Sozialversicherungsgrenzen */
.sv-card{overflow:hidden}.sv-status{margin:.3rem 0 0;color:var(--seto-muted,#667085);font-size:.82rem}.sv-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.sv-toolbar label{display:grid;gap:5px;color:var(--seto-muted,#667085);font-size:.75rem;font-weight:750}.sv-toolbar select{min-height:40px;border:1px solid var(--seto-border,#d9dee7);border-radius:10px;padding:0 10px;background:var(--seto-card,#fff);color:var(--seto-text,#172033)}
.sv-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}.sv-kpi{padding:14px;border:1px solid var(--seto-border,#d9dee7);border-radius:14px;background:var(--seto-card,#fff);display:grid;gap:5px}.sv-kpi span{font-size:.75rem;color:var(--seto-muted,#667085)}.sv-kpi strong{font-size:1.2rem;font-variant-numeric:tabular-nums}.sv-kpi small{color:var(--seto-muted,#667085);line-height:1.35}
.sv-explain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.sv-explain{padding:14px 16px;border:1px solid var(--seto-border,#d9dee7);border-radius:14px;background:var(--seto-card-2,#fafbfc)}.sv-explain h3{margin:0 0 6px;font-size:.95rem}.sv-explain p{margin:0;color:var(--seto-muted,#667085);line-height:1.48}.sv-chart-wrap{height:390px;position:relative;margin-top:10px}.sv-table-wrap{overflow:auto;margin-top:12px;border:1px solid var(--seto-border,#d9dee7);border-radius:13px}.sv-table{width:100%;border-collapse:collapse;min-width:820px}.sv-table th,.sv-table td{padding:9px 10px;border-bottom:1px solid var(--seto-border,#d9dee7);text-align:right;font-size:.79rem;font-variant-numeric:tabular-nums}.sv-table th:first-child,.sv-table td:first-child{text-align:left}.sv-table tr:last-child td{border-bottom:0}.sv-note{margin-top:12px;padding:12px 14px;border-left:4px solid var(--seto-primary,#2f75b5);background:var(--seto-card-2,#fafbfc);border-radius:8px;color:var(--seto-text,#172033);line-height:1.48}.sv-source-details{margin-top:14px}.sv-source-details>summary{cursor:pointer;font-weight:800}.sv-source-details p{color:var(--seto-muted,#667085);line-height:1.5}
@media(max-width:900px){.sv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sv-chart-wrap{height:340px}}@media(max-width:560px){.sv-kpis,.sv-explain-grid{grid-template-columns:1fr}.sv-toolbar{align-items:stretch}.sv-toolbar label{flex:1 1 140px}.sv-toolbar select{width:100%}.sv-chart-wrap{height:300px}}

/* SETO 2.1.225 – persönlicher KV-/Zusatzbeitragsblock */
.sv-personal-card{margin-top:16px}.sv-personal-head{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:8px 0 4px}.sv-personal-head span{color:var(--seto-muted,#667085);font-size:.78rem}.sv-health-compare{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.6fr) minmax(160px,.7fr);gap:12px;align-items:end;padding:14px;border:1px solid var(--seto-border,#d9dee7);border-radius:14px;background:var(--seto-card-2,#fafbfc);margin-top:12px}.sv-health-compare>div{display:grid;gap:4px}.sv-health-compare span,.sv-health-compare small{color:var(--seto-muted,#667085);font-size:.78rem}.sv-health-compare label{display:grid;gap:5px;font-size:.78rem;font-weight:750}.sv-rate-input{display:flex;align-items:center;gap:6px}.sv-rate-input input{width:100%;min-height:40px;border:1px solid var(--seto-border,#d9dee7);border-radius:10px;padding:0 10px;background:var(--seto-card,#fff);color:var(--seto-text,#172033)}.sv-health-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.sv-personal-card .positive{color:var(--seto-success,#107c41)}.sv-personal-card .negative{color:var(--seto-danger,#b42318)}
@media(max-width:720px){.sv-health-compare{grid-template-columns:1fr}.sv-personal-head{align-items:flex-start}}


/* From: shared/seto-ui.css */
html.seto-auth-pending body{visibility:hidden!important}
/* SETO 1.0.15 – gemeinsames Designsystem. Fachliche Kalenderfarben bleiben unangetastet. */
:root {
  --seto-bg:#F4F5F8; --seto-card:#FFFFFF; --seto-card-2:#FAFBFC;
  --seto-text:#1B1D24; --seto-muted:#475467; --seto-border:#D9DEE7;
  --seto-primary:#2f75b5; --seto-primary-hover:#17365d; --seto-link:#17365d; --seto-focus:#5b9bd5;
  --seto-good:#16834b; --seto-warn:#A45F00; --seto-danger:#c23939;
  --seto-radius:16px; --seto-control-radius:12px; --seto-shadow:0 6px 22px rgba(24,32,45,.07);
  --seto-global-h:58px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --seto-bg:#0F1117; --seto-card:#191D27; --seto-card-2:#222836;
  --seto-text:#F3F4F8; --seto-muted:#A7AFC0; --seto-border:#343B49;
  --seto-primary:#5b9bd5; --seto-primary-hover:#5b9bd5; --seto-link:#cfe6fa; --seto-focus:#8fc3ef;
  --seto-good:#69d794; --seto-warn:#f0b65b; --seto-danger:#ff8d85;
  --seto-shadow:0 8px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.seto-ui { padding-top:var(--seto-global-h) !important; }
body.seto-ui.seto-calendar-page { padding-top:calc(var(--seto-global-h) + var(--header-h, 56px)) !important; }
body.seto-ui.seto-login-page { padding-top:var(--seto-global-h) !important; }

.seto-global-header { position:fixed; inset:0 0 auto 0; z-index:10000; height:var(--seto-global-h); border-bottom:1px solid var(--seto-border); background:color-mix(in srgb,var(--seto-card) 95%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); color:var(--seto-text); }
.seto-global-inner { width:min(1320px,calc(100% - 28px)); height:100%; margin:auto; display:flex; align-items:center; gap:18px; }
.seto-wordmark { display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--seto-text); white-space:nowrap; }
.seto-mark { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--seto-primary); color:#fff; font-weight:900; letter-spacing:.03em; }
.seto-wordmark-text strong,.seto-wordmark-text small { display:block; }
.seto-wordmark-text strong { font-size:14px; line-height:1.05; }
.seto-wordmark-text small { margin-top:3px; font-size:10px; color:var(--seto-muted); }
.seto-main-nav { display:flex; height:100%; align-items:stretch; gap:2px; }
.seto-main-nav a { display:flex; align-items:center; padding:0 12px; border-bottom:3px solid transparent; color:var(--seto-muted); text-decoration:none; font-size:13px; font-weight:720; }
.seto-main-nav a:hover { color:var(--seto-text); background:var(--seto-card-2); }
.seto-main-nav a.active { color:var(--seto-primary); border-bottom-color:var(--seto-primary); }
.seto-global-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
.seto-service-link { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:7px 11px; border:1px solid var(--seto-border); border-radius:var(--seto-control-radius); background:var(--seto-card); color:var(--seto-text); text-decoration:none; font-size:12px; font-weight:780; }
.seto-service-link:hover,.seto-service-link.active { border-color:var(--seto-primary); color:var(--seto-primary); background:var(--seto-card-2); }
.seto-help-link { width:36px; padding:0; font-size:16px; }
.seto-theme-btn { min-width:40px; min-height:36px; padding:7px 10px; border:1px solid var(--seto-border); border-radius:var(--seto-control-radius); background:var(--seto-card); color:var(--seto-text); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.seto-theme-btn:hover { border-color:var(--seto-primary); color:var(--seto-primary); }

/* Gemeinsame Token auf bestehende Module abbilden */
body.seto-ui:not(.seto-payroll-page) { background:var(--seto-bg); color:var(--seto-text); }
body.seto-ui:not(.seto-payroll-page) a { text-decoration-thickness:1px; text-underline-offset:2px; }
:root[data-theme="light"] body.seto-ui:not(.seto-payroll-page),
:root:not([data-theme="dark"]) body.seto-ui:not(.seto-payroll-page) { --bg:var(--seto-bg); --card:var(--seto-card); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --text:var(--seto-text); --ink:var(--seto-text); --muted:var(--seto-muted); --border:var(--seto-border); --line:var(--seto-border); --primary:var(--seto-primary); --primary2:var(--seto-primary-hover); --purple:#2f75b5; --purple-2:#5b9bd5; --purple-text:#17365d; --purple-soft:#e9f1fa; --soft:#e9f1fa; }
:root[data-theme="dark"] body.seto-ui:not(.seto-payroll-page) { --bg:var(--seto-bg); --card:var(--seto-card); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --text:var(--seto-text); --text-2:#D7DAE2; --ink:var(--seto-text); --muted:var(--seto-muted); --border:var(--seto-border); --line:var(--seto-border); --primary:var(--seto-primary); --primary2:var(--seto-focus); --purple:#5b9bd5; --purple-2:#5b9bd5; --purple-text:#cfe6fa; --purple-soft:#152c45; --soft:#252B38; }

/* Abrechnung: Hellansicht bewusst weitgehend unverändert, nur gemeinsame Kopf-/Akzentlogik. */
body.seto-payroll-page { --accent:var(--seto-primary); --accent-dark:var(--seto-primary-hover); --accent-soft:#e9f1fa; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
:root[data-theme="dark"] body.seto-payroll-page { --page-bg:var(--seto-bg); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --ink:var(--seto-text); --muted:var(--seto-muted); --line:var(--seto-border); --line-strong:#505868; --accent:var(--seto-primary); --accent-dark:#cfe6fa; --accent-soft:#152c45; --good:#69d794; --warn:#f0b65b; --danger:#ff8d85; --shadow:var(--seto-shadow); }
:root[data-theme="dark"] body.seto-payroll-page .app-header,
:root[data-theme="dark"] body.seto-payroll-page .icon-action,
:root[data-theme="dark"] body.seto-payroll-page .secondary-button,
:root[data-theme="dark"] body.seto-payroll-page .text-button,
:root[data-theme="dark"] body.seto-payroll-page .period-arrow { background:var(--surface); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link:hover { background:var(--surface-2); }

/* Zweite, modulspezifische Kopfzeile liegt unter der SETO-Leiste. */
body.seto-ui .app-header { top:var(--seto-global-h) !important; }
body.seto-ui .topbar:not(.seto-global-header) { top:var(--seto-global-h) !important; }
body.seto-ui .app-header-inner { min-height:58px; }
body.seto-ui .app-nav-link, body.seto-ui .mainnav a { border-radius:10px 10px 0 0; }
body.seto-ui button, body.seto-ui input, body.seto-ui select, body.seto-ui textarea { font-family:inherit; }

/* Einheitliche Formensprache ohne fachliche Statusfarben zu überschreiben */
body.seto-ui .btn, body.seto-ui .button, body.seto-ui .ghost, body.seto-ui .icon-action,
body.seto-ui .primary-button, body.seto-ui .secondary-button, body.seto-ui .text-button { border-radius:var(--seto-control-radius); }
body.seto-ui .panel, body.seto-ui .card, body.seto-ui .summary-card, body.seto-ui .app-card,
body.seto-ui .quick-card, body.seto-ui .profile-card, body.seto-ui .feedback-card, body.seto-ui .admin-card { border-radius:var(--seto-radius); }

@media (max-width:860px) {
  .seto-global-inner { width:calc(100% - 18px); gap:8px; }
  .seto-wordmark-text small { display:none; }
  .seto-main-nav { flex:1; overflow-x:auto; scrollbar-width:none; }
  .seto-main-nav::-webkit-scrollbar { display:none; }
  .seto-main-nav a { padding:0 10px; font-size:12px; }
  .seto-main-nav a:nth-child(n+5) { display:none; }
}
@media (max-width:560px) {
  .seto-wordmark-text { display:none; }
  .seto-mark { width:32px; height:32px; }
  .seto-main-nav a { padding:0 8px; font-size:11px; }
  .seto-theme-btn { min-width:36px; padding:7px; font-size:0; }
  .seto-theme-btn::after { content:attr(data-icon); font-size:15px; }
}
@media print { .seto-global-header { display:none !important; } body.seto-ui, body.seto-ui.seto-calendar-page { padding-top:0 !important; } :root { color-scheme:light !important; } }

/* Module mit bislang fest codierten Hellfarben: Darkmode-Nachrüstung */
:root[data-theme="dark"] body.seto-analyse-page,
:root[data-theme="dark"] body.seto-import-page,
:root[data-theme="dark"] body.seto-hilfe-page,
:root[data-theme="dark"] body.seto-start-page,
:root[data-theme="dark"] body.seto-profil-page {
  background:var(--seto-bg) !important; color:var(--seto-text) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .card,
:root[data-theme="dark"] body.seto-analyse-page .kpi,
:root[data-theme="dark"] body.seto-import-page .card,
:root[data-theme="dark"] body.seto-import-page .panel,
:root[data-theme="dark"] body.seto-hilfe-page .hero,
:root[data-theme="dark"] body.seto-hilfe-page .card,
:root[data-theme="dark"] body.seto-hilfe-page .mini {
  background:var(--seto-card) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important; box-shadow:var(--seto-shadow) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .compare-row,
:root[data-theme="dark"] body.seto-analyse-page .flow-node,
:root[data-theme="dark"] body.seto-analyse-page .muted,
:root[data-theme="dark"] body.seto-import-page .soft,
:root[data-theme="dark"] body.seto-hilfe-page .formula,
:root[data-theme="dark"] body.seto-hilfe-page .full-help blockquote {
  background:var(--seto-card-2) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .bar-track,
:root[data-theme="dark"] body.seto-analyse-page .rank-meter { background:#303746 !important; }
:root[data-theme="dark"] body.seto-analyse-page select,
:root[data-theme="dark"] body.seto-import-page input,
:root[data-theme="dark"] body.seto-import-page select,
:root[data-theme="dark"] body.seto-import-page textarea {
  background:var(--seto-card) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important;
}
:root[data-theme="dark"] body.seto-analyse-page th,
:root[data-theme="dark"] body.seto-analyse-page td,
:root[data-theme="dark"] body.seto-hilfe-page th,
:root[data-theme="dark"] body.seto-hilfe-page td { border-color:var(--seto-border) !important; }
:root[data-theme="dark"] body.seto-analyse-page .sub,
:root[data-theme="dark"] body.seto-analyse-page .card p,
:root[data-theme="dark"] body.seto-analyse-page .bar-label,
:root[data-theme="dark"] body.seto-analyse-page .rank-row span,
:root[data-theme="dark"] body.seto-hilfe-page .lead,
:root[data-theme="dark"] body.seto-hilfe-page .small { color:var(--seto-muted) !important; }

/* Gemeinsame Markenakzente in Verwaltungsmodulen */
body.seto-analyse-page .primary, body.seto-import-page .primary,
body.seto-start-page .btn-primary, body.seto-profil-page .button:not(.secondary) {
  background:var(--seto-primary) !important; border-color:var(--seto-primary) !important; color:#fff !important;
}
body.seto-analyse-page .back, body.seto-hilfe-page .eyebrow,
body.seto-hilfe-page .nav a { color:var(--seto-link) !important; }
body.seto-hilfe-page .nav a { background:color-mix(in srgb,var(--seto-primary) 10%,var(--seto-card)) !important; }


/* SETO 1.0.15 – reduzierte globale Navigation */
@media (max-width: 760px) {
  .seto-global-inner { width:min(100% - 16px,1320px); gap:8px; }
  .seto-wordmark-text small { display:none; }
  .seto-wordmark-text strong { font-size:13px; }
  .seto-main-nav { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
  .seto-main-nav::-webkit-scrollbar { display:none; }
  .seto-main-nav a { padding:0 8px; font-size:12px; white-space:nowrap; }
  .seto-profile-link { font-size:0; width:36px; padding:0; }
  .seto-profile-link::before { content:'👤'; font-size:15px; }
  .seto-theme-btn { font-size:0; width:36px; min-width:36px; padding:0; }
  .seto-theme-btn::before { content:attr(data-icon); font-size:15px; }
}
@media (max-width: 520px) {
  .seto-wordmark-text { display:none; }
  .seto-main-nav a { padding:0 7px; font-size:11px; }
  .seto-global-actions { gap:4px; }
  .seto-help-link,.seto-profile-link,.seto-theme-btn { width:32px; min-width:32px; min-height:34px; }
}


/* SETO 1.0.45 – gleiche Höhe und Form für globale Service-Buttons */
:root{--seto-control-h:38px}
.seto-global-actions{gap:6px;flex-wrap:nowrap}
.seto-service-link,.seto-theme-btn{height:var(--seto-control-h);min-height:var(--seto-control-h);border-radius:10px;padding:0 12px;box-shadow:none}
.seto-help-link{width:38px;min-width:38px;padding:0}
.seto-theme-btn{min-width:86px}
.seto-profile-link{min-width:64px}
@media(max-width:760px){
  .seto-help-link,.seto-profile-link,.seto-theme-btn{height:36px;min-height:36px;border-radius:9px}
  .seto-theme-btn,.seto-profile-link{min-width:36px}
}

/* SETO 1.0.52 – H-02 Mobile/Responsive */
@media(max-width:560px){
  .seto-global-inner{width:calc(100% - 10px);gap:5px}
  .seto-main-nav{min-width:0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .seto-main-nav a{min-height:40px;display:flex;align-items:center}
  .seto-global-actions{flex:0 0 auto}
  .seto-help-link,.seto-profile-link,.seto-theme-btn{min-height:40px;height:40px}
}
@media(max-height:500px) and (orientation:landscape){
  :root{--seto-global-h:46px}
  .seto-global-header{min-height:46px}
  .seto-global-inner{min-height:46px}
  .seto-main-nav a{min-height:36px}
  .seto-help-link,.seto-profile-link,.seto-theme-btn{min-height:36px;height:36px}
}


/* SETO 1.0.53 – H-03 Barrierefreiheit */
.seto-skip-link{
  position:fixed;left:12px;top:8px;z-index:20000;
  padding:10px 14px;border-radius:10px;background:var(--seto-text);color:var(--seto-card);
  font-weight:800;text-decoration:none;transform:translateY(-160%);transition:transform .12s ease;
}
.seto-skip-link:focus{transform:translateY(0)}
.seto-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
body.seto-ui :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:3px solid var(--seto-focus)!important;outline-offset:3px!important;
}
body.seto-ui :where(input,select,textarea)[aria-invalid="true"]{
  border-color:var(--seto-danger)!important;box-shadow:0 0 0 1px var(--seto-danger);
}
body.seto-ui summary{cursor:pointer}
body.seto-ui [aria-current="page"]{text-decoration-thickness:2px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
@media print{.seto-skip-link{display:none!important}}

/* SETO 1.0.58 – Feedback: feste Hellflächen der Abrechnung im Darkmode beseitigen */
:root[data-theme="dark"] body.seto-payroll-page .panel,
:root[data-theme="dark"] body.seto-payroll-page .status-line,
:root[data-theme="dark"] body.seto-payroll-page .period-strip,
:root[data-theme="dark"] body.seto-payroll-page .year-total-grid>div,
:root[data-theme="dark"] body.seto-payroll-page .review-bar,
:root[data-theme="dark"] body.seto-payroll-page .review-panel,
:root[data-theme="dark"] body.seto-payroll-page .readiness-box,
:root[data-theme="dark"] body.seto-payroll-page .profile-status-card,
:root[data-theme="dark"] body.seto-payroll-page .profile-tariff-card,
:root[data-theme="dark"] body.seto-payroll-page .soll-export-dialog{
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .app-nav,
:root[data-theme="dark"] body.seto-payroll-page .user-chip,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-summary,
:root[data-theme="dark"] body.seto-payroll-page .profile-overview-facts span,
:root[data-theme="dark"] body.seto-payroll-page .vdn-local-badge,
:root[data-theme="dark"] body.seto-payroll-page .privacy-note{
  background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link{color:var(--muted)!important}
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link:hover,
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link.active{background:var(--surface)!important;color:var(--accent-dark)!important}
:root[data-theme="dark"] body.seto-payroll-page input,
:root[data-theme="dark"] body.seto-payroll-page select,
:root[data-theme="dark"] body.seto-payroll-page textarea,
:root[data-theme="dark"] body.seto-payroll-page .wage-ref-input{
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page input[readonly],
:root[data-theme="dark"] body.seto-payroll-page select:disabled{background:var(--surface-2)!important;color:var(--muted)!important}
:root[data-theme="dark"] body.seto-payroll-page th,
:root[data-theme="dark"] body.seto-payroll-page td{border-color:var(--line)!important}
:root[data-theme="dark"] body.seto-payroll-page .firebase-state.used,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-state.ok{background:#183b27!important;color:#8ce5aa!important;border-color:#2e6d45!important}
:root[data-theme="dark"] body.seto-payroll-page .firebase-state.loaded,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-state.warn{background:#453819!important;color:#f2cf79!important;border-color:#705b29!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.match{color:#8ce5aa!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.difference{color:#ffaaa4!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.calendar-only,
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.vdn-only,
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.not-verifiable{color:#f2cf79!important}


/* SETO 1.0.67 – Branding und zusammengefasste Kopfzeilen */
.seto-logo-wrap{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:11px;overflow:hidden;background:var(--seto-card)}
.seto-logo{width:100%;height:100%;object-fit:contain;display:block;transition:filter .18s ease}
:root[data-theme="dark"] .seto-logo{filter:drop-shadow(0 0 10px rgba(6,182,212,.35))}
:root[data-theme="light"] .seto-logo{filter:drop-shadow(0 2px 6px rgba(0,0,0,.12))}
.seto-wordmark{gap:7px}
.seto-wordmark-text{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:7px;line-height:1.05}
.seto-wordmark-text strong{font-size:15px;letter-spacing:.035em}
.seto-wordmark-text small{display:block!important;grid-column:1 / -1;margin-top:3px;font-size:9px;color:var(--seto-muted);letter-spacing:.015em;white-space:nowrap}
.seto-wordmark-text em{font-style:normal;font-size:9px;color:var(--seto-muted);font-weight:700}
.seto-top-action{height:var(--seto-control-h,38px);min-height:var(--seto-control-h,38px);display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--seto-border);border-radius:10px;background:var(--seto-card);color:var(--seto-text);font:inherit;font-size:12px;font-weight:780;cursor:pointer}
.seto-top-action:hover{border-color:var(--seto-primary);color:var(--seto-primary);background:var(--seto-card-2)}
.seto-print-link{height:var(--seto-control-h,38px);min-height:var(--seto-control-h,38px)}

/* Kalender: lokale Zeile ist vollständig in die SETO-Topbar integriert. */
body.seto-ui.seto-calendar-page{padding-top:var(--seto-global-h)!important}
body.seto-calendar-page .calendar-app-header{display:none!important}

/* Abrechnung: lokale Zeile entfällt, die fachliche Unter-Navigation bleibt in der Topbar erhalten. */
body.seto-payroll-page .app-header{display:none!important}
.seto-module-nav{display:flex;align-items:center;gap:2px;height:40px;padding-left:8px;margin-left:2px;border-left:1px solid var(--seto-border)}
.seto-module-nav .app-nav-link{height:34px;display:flex;align-items:center;padding:0 9px!important;border:0!important;border-radius:9px!important;color:var(--seto-muted)!important;font-size:11px!important;font-weight:750!important;white-space:nowrap;text-decoration:none}
.seto-module-nav .app-nav-link:hover{background:var(--seto-card-2)!important;color:var(--seto-text)!important}
.seto-module-nav .app-nav-link.active{background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card))!important;color:var(--seto-primary)!important}
@media(max-width:1180px){.seto-module-nav{max-width:390px;overflow-x:auto;scrollbar-width:none}.seto-module-nav::-webkit-scrollbar{display:none}}
@media(max-width:900px){.seto-module-nav{display:none}}
@media(max-width:620px){
  .seto-wordmark-text{display:none}
  .seto-logo-wrap{width:40px;height:40px;flex-basis:40px}
  .seto-print-link,.seto-print-action,.seto-logout-action{font-size:0;width:38px;padding:0}
  .seto-print-link::before,.seto-print-action::before{content:'▤';font-size:16px}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:16px}
}


/* SETO 1.0.73 – Navigation: genau eine globale und eine modulbezogene Ebene */
:root{--seto-module-h:48px}

/* Kalender: alte lokale Kopfzeilen nicht mehr als zweite fixe Kopfzeile verwenden. */
body.seto-calendar-nav-page .app-header{display:none!important}
body.seto-calendar-page .seto-print-link{display:none!important}

/* Desktop/Tablet: vorhandene Kalender-Navigation als zweite Zeile direkt unter SETO. */
@media(min-width:761px){
  body.seto-ui.seto-calendar-page.seto-calendar-nav-page{
    padding-top:calc(var(--seto-global-h) + var(--seto-module-h))!important;
    padding-bottom:18px!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:var(--seto-global-h);bottom:auto;height:var(--seto-module-h);
    justify-content:center;gap:4px;padding:5px max(14px,calc((100vw - 1280px)/2));
    border-top:0;border-bottom:1px solid var(--seto-border);z-index:9000;
    background:color-mix(in srgb,var(--seto-card) 97%,transparent);
  }
  body.seto-calendar-nav-page .bn-item{
    flex:0 0 auto;min-width:132px;height:38px;flex-direction:row;gap:7px;
    padding:0 13px;border-radius:9px;font-size:12px;font-weight:760;
  }
  body.seto-calendar-nav-page .bn-item.active{
    background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));
    color:var(--seto-primary);
  }
  body.seto-calendar-nav-page .bn-item.active::before{display:none}
  body.seto-calendar-nav-page .bn-ico{font-size:16px}
  body.seto-calendar-nav-page #editor{bottom:0;border-radius:16px 16px 0 0}
  body.seto-calendar-nav-page:has(#editor:not(.hidden)) .cal-wrap{padding-bottom:145px}
}

/* Smartphone: Kalender-Navigation bleibt als gut erreichbare Bottom-Bar. */
@media(max-width:760px){
  body.seto-calendar-nav-page{
    padding-top:var(--seto-global-h)!important;
    padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom,0px))!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:auto;bottom:0;height:var(--nav-h);border-top:1px solid var(--border);border-bottom:0;
  }
  body.seto-calendar-nav-page #editor{bottom:var(--nav-h);border-radius:16px 16px 0 0}
  body.seto-calendar-nav-page:has(#editor:not(.hidden)) .cal-wrap{padding-bottom:155px}
}

/* Kalender-Hilfsseiten ohne Hauptnavigation (z. B. Export): Kopf wird normaler Seitenkopf statt Overlay. */
body.seto-calendar-utility-page{padding-top:var(--seto-global-h)!important;padding-bottom:24px!important}
body.seto-calendar-utility-page .app-header{
  position:static!important;top:auto!important;left:auto!important;right:auto!important;
  width:min(1200px,calc(100% - 28px));height:auto;min-height:54px;margin:12px auto 0;
  border:1px solid var(--seto-border);border-radius:14px;background:var(--seto-card);
  box-shadow:var(--seto-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:auto;
}

/* Abrechnung: Unterbereiche nicht mehr in der globalen Zeile quetschen. */
body.seto-payroll-page{padding-top:calc(var(--seto-global-h) + var(--seto-module-h))!important}
body.seto-payroll-page .seto-module-nav{
  display:flex!important;position:fixed;top:var(--seto-global-h);left:0;right:0;z-index:9000;
  width:100%;max-width:none!important;height:var(--seto-module-h);margin:0;padding:5px max(14px,calc((100vw - 1280px)/2));
  gap:4px;border-left:0;border-bottom:1px solid var(--seto-border);
  background:color-mix(in srgb,var(--seto-card) 97%,transparent);overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
body.seto-payroll-page .seto-module-nav::-webkit-scrollbar{display:none}
body.seto-payroll-page .seto-module-nav .app-nav-link{
  flex:0 0 auto;height:38px;min-height:38px;padding:0 13px!important;font-size:12px!important;
}
@media(max-width:760px){
  body.seto-payroll-page .seto-module-nav{padding-left:8px;padding-right:8px}
  body.seto-payroll-page .seto-module-nav .app-nav-link{min-height:38px;height:38px;padding:0 11px!important}
}

/* Profil: alte zweite Hauptnavigation entfernen; Profil-Tabs bleiben die einzige Modulebene. */
body.seto-profil-page > .topbar{display:none!important}
body.seto-profil-page .shell{padding-top:24px}

/* Hilfe mobil: Suche scrollt mit dem Inhalt weg; nur die Kategorien bleiben unter SETO sticky. */
@media(max-width:900px){
  body.seto-hilfe-page .docs-toolbar{position:relative!important;top:auto!important;z-index:auto!important}
  body.seto-hilfe-page .sidebar{top:var(--seto-global-h)!important;z-index:25!important}
}

/* Globale Leiste auf kleinen Displays: Aktionen kompakt halten. */
@media(max-width:560px){
  .seto-global-inner{gap:4px}
  .seto-main-nav a{padding-inline:7px}
  .seto-global-actions{gap:3px}
  .seto-top-action{width:34px;min-width:34px;padding:0;font-size:0}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:16px}
  .seto-print-action::before{content:'▤';font-size:16px}
}


/* SETO 1.1.00 – Mobile Topbar: Systemaktionen sichtbar, Module im kompakten Bereichsmenü */
.seto-mobile-modules{display:none;position:relative}
.seto-mobile-modules-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--seto-border);border-radius:10px;background:var(--seto-card);color:var(--seto-text);font:inherit;font-size:17px;font-weight:850;cursor:pointer}
.seto-mobile-modules-menu{display:none}
@media(max-width:760px){
  .seto-global-inner{width:calc(100% - 12px);gap:5px}
  .seto-wordmark{flex:0 0 auto}
  .seto-logo-wrap{width:38px;height:38px;flex-basis:38px;border-radius:9px}
  .seto-wordmark-text{display:none!important}
  .seto-main-nav{display:none!important}
  .seto-mobile-modules{display:block;flex:0 0 auto}
  .seto-mobile-modules[hidden]{display:none!important}
  .seto-mobile-modules-menu{
    position:fixed;top:calc(var(--seto-global-h) + 7px);left:8px;right:8px;z-index:12000;
    grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px;
    border:1px solid var(--seto-border);border-radius:15px;background:var(--seto-card);box-shadow:0 16px 38px rgba(15,17,23,.2)
  }
  .seto-mobile-modules.open .seto-mobile-modules-menu{display:grid}
  .seto-mobile-modules-menu a{min-width:0;min-height:54px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:6px;border-radius:10px;color:var(--seto-muted);text-decoration:none;font-size:10px}
  .seto-mobile-modules-menu a span{font-size:17px;line-height:1}
  .seto-mobile-modules-menu a b{font-size:10px;white-space:nowrap}
  .seto-mobile-modules-menu a.active{background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}
  .seto-mobile-modules-btn[aria-expanded="true"]{border-color:var(--seto-primary);color:var(--seto-primary);background:var(--seto-card-2)}
  .seto-global-actions{margin-left:auto;gap:4px;flex:0 0 auto}
  .seto-help-link,.seto-profile-link,.seto-theme-btn,.seto-top-action{width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:9px}
  .seto-help-link{font-size:15px}
  .seto-profile-link{font-size:0!important}
  .seto-profile-link::before{content:'●';font-size:15px}
  .seto-theme-btn{font-size:0!important}
  .seto-theme-btn::before{content:attr(data-icon);font-size:15px}
  .seto-logout-action,.seto-start-logout{font-size:0!important}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:17px}
}
@media(max-width:360px){
  .seto-global-inner{gap:3px}
  .seto-help-link,.seto-profile-link,.seto-theme-btn,.seto-top-action,.seto-mobile-modules-btn{width:34px!important;min-width:34px!important}
}


/* SETO 1.1.00 – Mobile Direktnavigation: Start, Kalender, Abrechnung immer sichtbar. */
.seto-mobile-primary-nav{display:none}
.seto-mobile-primary-nav[hidden],.seto-mobile-modules[hidden]{display:none!important}
@media(max-width:760px){
  .seto-global-inner{width:calc(100% - 10px);gap:4px}
  .seto-wordmark{flex:0 0 auto}
  .seto-logo-wrap{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:9px}
  .seto-mobile-primary-nav{display:flex;align-items:center;gap:3px;flex:0 0 auto}
  .seto-mobile-primary-nav a{
    width:36px;min-width:36px;height:38px;min-height:38px;display:grid;place-items:center;
    border:1px solid var(--seto-border);border-radius:9px;background:var(--seto-card);color:var(--seto-muted);
    text-decoration:none;font-weight:900;font-size:17px;line-height:1
  }
  .seto-mobile-primary-nav a.active{border-color:color-mix(in srgb,var(--seto-primary) 48%,var(--seto-border));background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}
  .seto-mobile-modules{display:block!important;flex:0 0 auto}
  .seto-mobile-modules-btn{width:36px!important;min-width:36px!important;height:38px!important;font-size:21px!important;line-height:1;padding-bottom:5px}
  .seto-mobile-modules-menu{grid-template-columns:repeat(3,minmax(0,1fr))}

  /* Auf Unterseiten zählt Platz für die Navigation. Hilfe/Theme/Logout bleiben auf der Startseite. */
  body:not(.seto-start-page) .seto-global-actions{display:none!important}
  body.seto-start-page .seto-global-actions{display:flex!important;margin-left:auto;gap:3px}
  body.seto-start-page .seto-profile-link{display:none!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn,
  body.seto-start-page .seto-start-logout{width:34px!important;min-width:34px!important;height:38px!important;min-height:38px!important}
}
@media(max-width:390px){
  .seto-global-inner{gap:2px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important}
  .seto-mobile-primary-nav{gap:2px}
  .seto-mobile-primary-nav a,.seto-mobile-modules-btn{width:34px!important;min-width:34px!important}
  body.seto-start-page .seto-global-actions{gap:2px}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn,
  body.seto-start-page .seto-start-logout{width:32px!important;min-width:32px!important}
}

/* SETO 1.1.00 – Mobile Header: zwei ruhige Ebenen statt gequetschter Ein-Zeilen-Navigation. */
@media(max-width:760px){
  :root{--seto-global-h:96px}
  .seto-global-header{height:var(--seto-global-h);min-height:var(--seto-global-h)}
  .seto-global-inner{
    width:calc(100% - 20px);height:100%;min-height:0;padding:5px 0 6px;
    display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:40px 40px;
    align-items:center;column-gap:8px;row-gap:5px;
  }
  .seto-wordmark{grid-column:1;grid-row:1;min-width:0;gap:7px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px}
  .seto-wordmark-text{display:none!important}
  .seto-wordmark::after{content:'Start';font-size:11px;font-weight:850;color:var(--seto-text);letter-spacing:.01em}

  .seto-mobile-primary-nav{
    grid-column:1 / 3;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;width:100%;min-width:0;
  }
  .seto-mobile-primary-nav a{
    width:auto!important;min-width:0!important;height:40px;min-height:40px;padding:0 10px;
    display:flex;align-items:center;justify-content:center;gap:7px;
    border:1px solid var(--seto-border);border-radius:11px;background:var(--seto-card);color:var(--seto-muted);
    text-decoration:none;font-weight:800;font-size:11px;line-height:1;
  }
  .seto-mobile-primary-nav a b{font-size:11px;font-weight:820;white-space:nowrap}
  .seto-mobile-nav-icon{width:20px;height:20px;display:grid;place-items:center;font-size:16px;font-weight:900;line-height:1}
  .seto-mobile-nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .seto-mobile-primary-nav a.active{border-color:color-mix(in srgb,var(--seto-primary) 48%,var(--seto-border));background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}

  .seto-mobile-modules{grid-column:3;grid-row:2;display:block!important;align-self:stretch}
  .seto-mobile-modules-btn{
    width:72px!important;min-width:72px!important;height:40px!important;min-height:40px!important;padding:0 7px!important;
    display:flex!important;align-items:center;justify-content:center;gap:5px;border-radius:11px!important;font-size:12px!important;line-height:1!important;
  }
  .seto-mobile-modules-btn span{font-size:13px;letter-spacing:-1px;transform:translateY(-1px)}
  .seto-mobile-modules-btn b{font-size:10.5px;font-weight:820}
  .seto-mobile-modules-menu{top:calc(var(--seto-global-h) + 7px);left:10px;right:10px}

  body:not(.seto-start-page) .seto-global-actions{display:none!important}
  body.seto-start-page .seto-global-actions{
    grid-column:3;grid-row:1;display:flex!important;margin:0;justify-self:end;gap:6px;align-items:center;
  }
  body.seto-start-page .seto-profile-link{display:none!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn{width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;border-radius:9px}
  body.seto-start-page .seto-start-logout{
    width:auto!important;min-width:86px!important;height:36px!important;min-height:36px!important;padding:0 10px!important;
    display:inline-flex!important;gap:6px;font-size:10.5px!important;white-space:nowrap;border-radius:9px!important;
  }
  body.seto-start-page .seto-start-logout::before{content:'⎋';font-size:15px;line-height:1}
  .seto-logout-action::before{content:'⎋';font-size:16px}
}
@media(max-width:370px){
  .seto-global-inner{width:calc(100% - 14px);column-gap:5px}
  .seto-mobile-primary-nav{gap:5px}
  .seto-mobile-primary-nav a{padding:0 7px;gap:5px}
  .seto-mobile-modules-btn{width:62px!important;min-width:62px!important}
  body.seto-start-page .seto-global-actions{gap:4px}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn{width:32px!important;min-width:32px!important}
  body.seto-start-page .seto-start-logout{min-width:78px!important;padding:0 7px!important;font-size:10px!important}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:760px){
  :root{--seto-global-h:86px}
  .seto-global-inner{grid-template-rows:35px 36px;padding-top:4px;padding-bottom:5px}
  .seto-mobile-primary-nav a,.seto-mobile-modules-btn{height:36px!important;min-height:36px!important}
}

/* SETO 1.1.00 – Mobile Navigation einzeilig: Logo=Start, Kalender, Abrechnung, Theme, Mehr. */
@media(max-width:760px){
  :root{--seto-global-h:58px}
  .seto-global-header{height:var(--seto-global-h);min-height:var(--seto-global-h)}
  .seto-global-inner{
    width:calc(100% - 16px);height:100%;padding:6px 0;display:flex;align-items:center;gap:5px;
  }
  .seto-wordmark{display:flex;flex:0 0 38px;width:38px;min-width:38px;gap:0}
  .seto-logo-wrap{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:10px}
  .seto-wordmark-text,.seto-wordmark::after{display:none!important;content:none!important}

  .seto-mobile-primary-nav{
    display:grid!important;grid-template-columns:minmax(68px,1fr) minmax(82px,1.12fr);gap:5px;
    flex:1 1 auto;width:auto;min-width:0;
  }
  .seto-mobile-primary-nav[hidden]{display:none!important}
  .seto-mobile-primary-nav a{
    width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 7px!important;
    display:flex!important;align-items:center;justify-content:center;gap:5px;border-radius:10px!important;
  }
  .seto-mobile-primary-nav a b{font-size:10.5px!important;white-space:nowrap}
  .seto-mobile-nav-icon{width:18px;height:18px;font-size:15px}
  .seto-mobile-nav-icon svg{width:18px;height:18px}

  .seto-global-actions{display:flex!important;flex:0 0 40px;margin:0!important;gap:0!important}
  .seto-global-actions>*{display:none!important}
  .seto-global-actions .seto-theme-btn{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;border-radius:10px!important}

  .seto-mobile-modules{display:block!important;flex:0 0 40px;align-self:auto!important}
  .seto-mobile-modules[hidden]{display:none!important}
  .seto-mobile-modules-btn{
    width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;
    display:grid!important;place-items:center!important;border-radius:10px!important;line-height:1!important;
  }
  .seto-mobile-modules-btn span{font-size:17px!important;letter-spacing:-1px!important;transform:none!important}
  .seto-mobile-modules-btn b{display:none!important}
  .seto-mobile-modules-menu{
    top:calc(var(--seto-global-h) + 6px)!important;left:8px!important;right:8px!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .seto-mobile-modules-menu a,.seto-mobile-modules-menu button{
    min-width:0;min-height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;
    padding:7px 5px;border:0;border-radius:10px;background:transparent;color:var(--seto-muted);text-decoration:none;
    font:inherit;font-size:10px;cursor:pointer;
  }
  .seto-mobile-modules-menu a span,.seto-mobile-modules-menu button span{font-size:18px;line-height:1}
  .seto-mobile-modules-menu a b,.seto-mobile-modules-menu button b{font-size:10px;white-space:nowrap}
  .seto-mobile-menu-logout{color:var(--seto-danger,#b42318)!important}

  body.seto-start-page .seto-global-actions{display:flex!important;margin:0!important;gap:0!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-profile-link,
  body.seto-start-page .seto-start-logout{display:none!important}
}
@media(max-width:350px){
  .seto-global-inner{width:calc(100% - 10px);gap:3px}
  .seto-wordmark{flex-basis:34px;width:34px;min-width:34px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important}
  .seto-mobile-primary-nav{grid-template-columns:minmax(62px,1fr) minmax(75px,1.08fr);gap:3px}
  .seto-mobile-primary-nav a{padding:0 4px!important;gap:3px}
  .seto-mobile-primary-nav a b{font-size:9.5px!important}
  .seto-global-actions{flex-basis:36px}
  .seto-global-actions .seto-theme-btn,.seto-mobile-modules,.seto-mobile-modules-btn{width:36px!important;min-width:36px!important}
}


/* SETO 1.1.54 – iOS Safe Area: globale Kopfzeile bleibt unter Notch/Dynamic Island bedienbar. */
:root{
  --seto-safe-top:env(safe-area-inset-top,0px);
  --seto-safe-left:env(safe-area-inset-left,0px);
  --seto-safe-right:env(safe-area-inset-right,0px);
  --seto-global-bar-h:58px;
  --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
}
.seto-global-header{
  height:var(--seto-global-h)!important;
  min-height:var(--seto-global-h)!important;
  padding-top:var(--seto-safe-top);
  padding-left:var(--seto-safe-left);
  padding-right:var(--seto-safe-right);
  box-sizing:border-box;
}
.seto-global-inner{
  height:var(--seto-global-bar-h)!important;
  min-height:var(--seto-global-bar-h);
}
body.seto-ui{padding-top:var(--seto-global-h)!important}
body.seto-ui.seto-calendar-page{padding-top:var(--seto-global-h)!important}
.seto-mobile-modules-menu{top:calc(var(--seto-global-h) + 6px)!important}
@media(max-width:760px){
  :root{--seto-global-bar-h:58px;--seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top))}
  .seto-global-header{height:var(--seto-global-h)!important;min-height:var(--seto-global-h)!important}
  .seto-global-inner{height:var(--seto-global-bar-h)!important;min-height:var(--seto-global-bar-h)!important}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:760px){
  :root{--seto-global-bar-h:58px;--seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top))}
}
@media print{
  :root{--seto-safe-top:0px;--seto-safe-left:0px;--seto-safe-right:0px}
  .seto-global-header{padding:0!important}
}


/* SETO 1.1.91 – Abrechnungsblatt im Dark Mode: ruhige Grauabstufung statt Weiß/Schwarz */
:root[data-theme="dark"] body.seto-payroll-page .vdn-sheet{background:#D1D4D8!important;color:#20242A!important;border-color:#777E87!important;box-shadow:0 12px 34px rgba(0,0,0,.34)!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-head{border-bottom-color:#666D75!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-company p,:root[data-theme="dark"] body.seto-payroll-page .vdn-kicker,:root[data-theme="dark"] body.seto-payroll-page .vdn-label,:root[data-theme="dark"] body.seto-payroll-page .vdn-period-box span,:root[data-theme="dark"] body.seto-payroll-page .vdn-block-title small,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dt,:root[data-theme="dark"] body.seto-payroll-page .deduction-grid span,:root[data-theme="dark"] body.seto-payroll-page .vdn-net span,:root[data-theme="dark"] body.seto-payroll-page .vdn-footer{color:#2F3740!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-period-box,:root[data-theme="dark"] body.seto-payroll-page .vdn-person,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block,:root[data-theme="dark"] body.seto-payroll-page .deduction-grid{border-color:#858B92!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-person>div,:root[data-theme="dark"] body.seto-payroll-page .vdn-net>div{border-color:#9BA0A6!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-block-title{background:#BFC3C8!important;border-bottom-color:#737980!important;color:#22272D!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table th{color:#303842!important;border-bottom-color:#868C93!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table td,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dt,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dd{border-color:#B0B4B9!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table tfoot td{border-top-color:#666D75!important}
:root[data-theme="dark"] body.seto-payroll-page .deduction-grid>div{background:#C8CCD0!important;border-color:#A5AAB0!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block{background:#C8CCD0!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net{background:#C4C8CC!important;border-color:#6F767E!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net .payout{background:#B7BEC8!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net .payout strong{color:#253F67!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-empty{color:#37414C!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card,:root[data-theme="dark"] body.seto-payroll-page .workbench-card{background:#2A303B!important;color:#F0F2F6!important;border-color:#424A58!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card:hover,:root[data-theme="dark"] body.seto-payroll-page .workbench-card:hover{background:#303744!important;border-color:#666F80!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card small,:root[data-theme="dark"] body.seto-payroll-page .workbench-card small,:root[data-theme="dark"] body.seto-payroll-page .workbench-card>b{color:#AEB6C5!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-icon,:root[data-theme="dark"] body.seto-payroll-page .workbench-icon{background:#3A3449!important;color:#D7C8FF!important}

/* SETO 1.1.92 – seitenweiter Dark-Mode-Audit: feste Hellflächen harmonisieren */
:root[data-theme="dark"] body.seto-start-page :is(.hero-copy,.profile-card,.setup-card,.app-card,.quick-card,.dashboard-card,.home-card),
:root[data-theme="dark"] body.seto-profil-page :is(.card,.panel,.profile-card,.section-card,.summary-card),
:root[data-theme="dark"] body.seto-import-page :is(.file-feedback,.vacation-live,.parser-help-preview,.group-preview,.export-source-card,.export-result-card),
:root[data-theme="dark"] body.seto-hilfe-page :is(.section,.help-card,.topic-card),
:root[data-theme="dark"] body.seto-analyse-page :is(.advanced-panel,.result-card,.year-box,.assumption-columns>article,.cost-grid article) {
  background:var(--seto-card)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
  box-shadow:none!important;
}

:root[data-theme="dark"] body.seto-start-page :is(.dashboard-subcard,.metric-card,.info-card,.stat-card),
:root[data-theme="dark"] body.seto-profil-page :is(.soft,.summary,.profile-meta,.profile-fact),
:root[data-theme="dark"] body.seto-import-page :is(.group-preview-title,.file-feedback-head,.checkline,.aliases span,.summary-badges span,.export-selected-files,.export-sheet-info span),
:root[data-theme="dark"] body.seto-analyse-page :is(.compare-form .head,.compare-form .label,.compare-form>div:nth-child(3n+1),.warning-box) {
  background:var(--seto-card-2)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
}

:root[data-theme="dark"] body.seto-import-page :is(.form-grid input,.form-grid select,textarea,.secondary,.export-password input,.export-consent-check),
:root[data-theme="dark"] body.seto-profil-page :is(input,select,textarea),
:root[data-theme="dark"] body.seto-analyse-page :is(input,select,textarea,.month-toolbar select) {
  background:var(--seto-card)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-import-page :is(.form-grid input[readonly],input:disabled,select:disabled),
:root[data-theme="dark"] body.seto-profil-page :is(input[readonly],input:disabled,select:disabled),
:root[data-theme="dark"] body.seto-analyse-page :is(input[disabled],select:disabled) {
  background:var(--seto-card-2)!important;
  color:var(--seto-muted)!important;
}

:root[data-theme="dark"] body.seto-import-page :is(th,.table th,.group-preview-title),
:root[data-theme="dark"] body.seto-analyse-page :is(th,.table-wrap th:first-child) {
  background:#242B38!important;
  color:#C7CFDA!important;
  border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-import-page :is(td,.table td),
:root[data-theme="dark"] body.seto-analyse-page :is(td,.table-wrap td:first-child) {
  border-color:var(--seto-border)!important;
}

/* Statusflächen bleiben semantisch farbig, aber ohne helle Papieroptik. */
:root[data-theme="dark"] body.seto-import-page :is(.parser-warn,.notice.warning,.file-feedback-row.warning .file-feedback-icon,tr.protected td) {
  background:#3F351C!important;color:#F5D780!important;border-color:#6E5B2A!important;
}
:root[data-theme="dark"] body.seto-import-page :is(.parser-bad,.notice.error,.file-feedback-row.error .file-feedback-icon,tr.error td),
:root[data-theme="dark"] body.seto-start-page :is(.error,.btn-danger) {
  background:#452426!important;color:#FFB4AF!important;border-color:#704044!important;
}
:root[data-theme="dark"] body.seto-import-page tr.entry td {
  background:#18382B!important;color:#B6E8CC!important;
}

/* Abrechnung: zusätzliche Spezial- und Auditflächen aus alten Hellstyles. */
:root[data-theme="dark"] body.seto-payroll-page :is(.calendar-basis-grid>div,.calendar-trace,.vdnpi-unknown,.audit-summary-card,.audit-card,.detail-card,.calculation-card,.st-card,.rr-card) {
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page :is(.profile-overview-facts span,.vdn-local-badge,.vdnpi-summary,.reconcile-summary>div,.calendar-basis-grid>div,.app-nav,.user-chip,.privacy-note) {
  background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .audit-summary-card.audit-warn {
  background:#452426!important;color:#FFB4AF!important;border-color:#704044!important;
}

/* Kalender: nur neutrale Bedien-/Infoflächen abdunkeln; fachliche Schicht-, U-, FS- und Feiertagsfarben bleiben unverändert. */
:root[data-theme="dark"] body.seto-calendar-page :is(.card,.panel,.sheet,.modal-content,.dialog-content,.info-box,.settings-card,.legend-panel,.toolbar-panel) {
  background:var(--seto-card)!important;color:var(--seto-text)!important;border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-calendar-page :is(input,select,textarea,.formula) {
  background:var(--seto-card-2)!important;color:var(--seto-text)!important;border-color:var(--seto-border)!important;
}

/* Sekundärtext auf allen nachgerüsteten grauen Flächen. */
:root[data-theme="dark"] body.seto-ui :is(.sub,.small,.muted,.hint,.helper-text,.card-note,.field-help) {
  color:var(--seto-muted)!important;
}

/* Druck- und Export-Papieransichten bleiben absichtlich hell. */
@media print {
  :root[data-theme="dark"] body.seto-ui { color-scheme:light!important; }
}

/* SETO 1.1.118 – appweites iOS/Glass Designsystem */
:root{
  --seto-bg:#eef3f8;
  --seto-card:rgba(255,255,255,.72);
  --seto-card-2:rgba(255,255,255,.52);
  --seto-text:#17283d;
  --seto-muted:#4f5f73;
  --seto-border:rgba(255,255,255,.78);
  --seto-primary:#2f75b5;
  --seto-primary-hover:#245f96;
  --seto-link:#286aa6;
  --seto-focus:#5c9bd3;
  --seto-radius:24px;
  --seto-control-radius:14px;
  --seto-shadow:0 18px 50px rgba(23,54,93,.085);
  --seto-shadow-soft:0 8px 26px rgba(23,54,93,.065);
  --seto-glass:rgba(255,255,255,.70);
  --seto-glass-strong:rgba(255,255,255,.84);
  --seto-blue-deep:#17365d;
  --seto-global-h:60px;
}
:root[data-theme="dark"]{
  --seto-bg:#0f1722;
  --seto-card:rgba(24,34,48,.78);
  --seto-card-2:rgba(31,43,59,.68);
  --seto-text:#f3f6fa;
  --seto-muted:#9ba8b9;
  --seto-border:rgba(148,163,184,.18);
  --seto-primary:#5b9bd5;
  --seto-primary-hover:#72afe3;
  --seto-link:#82bae8;
  --seto-focus:#8fc3ee;
  --seto-shadow:0 18px 54px rgba(0,0,0,.25);
  --seto-shadow-soft:0 8px 28px rgba(0,0,0,.18);
  --seto-glass:rgba(24,34,48,.72);
  --seto-glass-strong:rgba(27,39,54,.88);
  --seto-blue-deep:#a9d1f1;
}
body.seto-ui:not(.seto-start-page):not(.seto-login-page){
  background:
    radial-gradient(900px 440px at -8% -12%,rgba(47,117,181,.14),transparent 62%),
    radial-gradient(760px 420px at 108% 3%,rgba(91,155,213,.10),transparent 60%),
    linear-gradient(180deg,#f8fafc 0%,var(--seto-bg) 100%) !important;
  color:var(--seto-text);
  min-height:100svh;
}
:root[data-theme="dark"] body.seto-ui:not(.seto-start-page):not(.seto-login-page){
  background:
    radial-gradient(900px 440px at -8% -12%,rgba(47,117,181,.13),transparent 62%),
    radial-gradient(760px 420px at 108% 3%,rgba(91,155,213,.07),transparent 60%),
    var(--seto-bg) !important;
}

/* Global navigation: iOS floating glass bar */
.seto-global-header{
  top:8px;left:10px;right:10px;width:auto;height:52px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 34px rgba(23,54,93,.09);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
}
:root[data-theme="dark"] .seto-global-header{background:rgba(18,28,41,.76);border-color:rgba(148,163,184,.18)}
.seto-global-inner{width:min(1360px,calc(100% - 16px));gap:12px}
.seto-logo-wrap,.seto-mark{border-radius:12px}
.seto-main-nav{height:auto;align-items:center;gap:3px}
.seto-main-nav a{
  height:34px;padding:0 12px;border:0!important;border-radius:11px!important;
  font-size:12px;font-weight:760;color:var(--seto-muted);
}
.seto-main-nav a:hover{background:rgba(47,117,181,.08);color:var(--seto-blue-deep)}
.seto-main-nav a.active{background:rgba(47,117,181,.12);color:var(--seto-primary)}
.seto-service-link,.seto-theme-btn{
  min-height:34px;border-color:rgba(255,255,255,.78);border-radius:12px;
  background:rgba(255,255,255,.60);box-shadow:inset 0 1px 0 rgba(255,255,255,.58)
}
:root[data-theme="dark"] .seto-service-link,:root[data-theme="dark"] .seto-theme-btn{background:rgba(31,43,59,.7);border-color:rgba(148,163,184,.18)}
body.seto-ui{padding-top:70px!important}
body.seto-ui.seto-calendar-page{padding-top:calc(70px + var(--header-h,56px))!important}
body.seto-ui .app-header,body.seto-ui .topbar:not(.seto-global-header){top:70px!important}

/* Shared page width and rhythm */
body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){
  width:min(1180px,calc(100% - 28px));
  margin-left:auto;margin-right:auto;
}
body.seto-ui :is(h1,h2,h3,.title){letter-spacing:-.025em}
body.seto-ui :is(.muted,.subtle,.hint,.sub,.source,.field-source,small){color:var(--seto-muted)}

/* Glass surfaces across modules */
body.seto-ui:not(.seto-start-page) :is(
  .panel,.card,.summary-card,.profile-card,.backup-card,.security-card,.info-box,
  .admin-panel,.admin-hero,.shortcut-card,.status-line,.period-strip,.setup-notice,
  .vdn-sheet,.vdn-mini-block,.detail-card,.chart-box,.kpi,.salary-card,.mini,
  .setup-work-card,.setup-choice,.notice,.import-hero,.layout-card,.menu-link
){
  border:1px solid var(--seto-border)!important;
  border-radius:var(--seto-radius)!important;
  background:var(--seto-glass)!important;
  box-shadow:var(--seto-shadow-soft)!important;
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
}
body.seto-ui:not(.seto-start-page) :is(.panel,.card,.admin-panel,.shortcut-card,.kpi,.setup-work-card,.layout-card){overflow:hidden}

/* Module headers */
body.seto-ui .app-header:not(.seto-global-header),
body.seto-ui .topbar:not(.seto-global-header){
  border-bottom:0!important;background:transparent!important;box-shadow:none!important;
}
body.seto-ui .app-header-inner,
body.seto-ui .topbar:not(.seto-global-header) > :is(.inner,.wrap,.container){
  border:1px solid var(--seto-border);border-radius:18px;background:var(--seto-glass);
  box-shadow:var(--seto-shadow-soft);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)
}

/* Inputs and buttons */
body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:42px;border:1px solid rgba(23,54,93,.13)!important;border-radius:13px!important;
  background:rgba(255,255,255,.70)!important;color:var(--seto-text)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important;outline:none;
}
:root[data-theme="dark"] body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:rgba(19,29,42,.74)!important;border-color:rgba(148,163,184,.2)!important}
body.seto-ui :is(input,select,textarea):focus{border-color:rgba(47,117,181,.55)!important;box-shadow:0 0 0 4px rgba(47,117,181,.10)!important}
body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button,.text-button,.linkbtn,.admin-btn){
  border-radius:13px!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button,.text-button,.linkbtn,.admin-btn):active{transform:scale(.98)}
body.seto-ui :is(.primary,.primary-button,.btn.primary,.button.primary,.admin-btn.primary){
  background:var(--seto-primary)!important;border-color:var(--seto-primary)!important;color:#fff!important;
  box-shadow:0 8px 20px rgba(47,117,181,.18)!important;
}
body.seto-ui :is(.secondary,.secondary-button,.ghost,.btn.secondary,.button.secondary,.text-button,.linkbtn){
  background:rgba(255,255,255,.58)!important;border-color:var(--seto-border)!important;color:var(--seto-blue-deep)!important;
}
:root[data-theme="dark"] body.seto-ui :is(.secondary,.secondary-button,.ghost,.btn.secondary,.button.secondary,.text-button,.linkbtn){background:rgba(31,43,59,.68)!important;color:var(--seto-text)!important}

/* Pills, tabs, badges */
body.seto-ui :is(.tab,.pill,.badge,.source-badge,.count-badge,.user-chip){border-radius:999px!important}
body.seto-ui :is(.tab.active,.pill.active,.app-nav-link.active,.bn-item.active){color:var(--seto-primary)!important}
body.seto-ui .app-nav-link{border-radius:11px!important;border:0!important}
body.seto-ui .app-nav-link.active{background:rgba(47,117,181,.10)!important}

/* Tables */
body.seto-ui :is(.table-scroll,.table-wrap,.vdn-table-wrap){border-radius:16px;overflow:auto;border:1px solid rgba(23,54,93,.08)}
body.seto-ui table{border-collapse:separate;border-spacing:0}
body.seto-ui table thead th{background:rgba(47,117,181,.055);color:var(--seto-blue-deep);font-size:11px;letter-spacing:.02em}
body.seto-ui table tbody tr:hover td{background:rgba(47,117,181,.035)}

/* Profile */
body.seto-profil-page .hero{border-radius:28px!important;padding:22px!important;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,255,255,.55))!important;border:1px solid var(--seto-border)!important;box-shadow:var(--seto-shadow)!important}
body.seto-profil-page .tabs{gap:5px;padding:5px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid var(--seto-border)}
body.seto-profil-page .tab{padding:8px 12px!important}
body.seto-profil-page .tab.active{background:rgba(47,117,181,.12)!important}
body.seto-profil-page .form-grid{gap:12px}
body.seto-profil-page .panel{padding:18px!important}

/* Payroll */
body.seto-payroll-page{--accent:var(--seto-primary)!important;--accent-dark:var(--seto-blue-deep)!important;--accent-soft:rgba(47,117,181,.10)!important}
body.seto-payroll-page .app-page{padding-top:14px!important}
body.seto-payroll-page .period-strip{padding:10px 12px!important}
body.seto-payroll-page .status-line{padding:10px 14px!important}
body.seto-payroll-page .vdn-sheet{background:rgba(255,255,255,.80)!important;border-radius:26px!important}
body.seto-payroll-page .vdn-head{background:linear-gradient(135deg,rgba(47,117,181,.11),rgba(255,255,255,.12))!important}
body.seto-payroll-page .vdn-block-title{color:var(--seto-blue-deep)!important}
body.seto-payroll-page .vdn-person{background:rgba(47,117,181,.04)!important}

/* Analysis */
body.seto-analyse-page .analysis-layout{gap:14px!important}
body.seto-analyse-page .analysis-sidebar{border-radius:22px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-analyse-page .analysis-nav-group{border-radius:14px!important}
body.seto-analyse-page .analysis-nav-group.active,body.seto-analyse-page .analysis-nav-group:hover{background:rgba(47,117,181,.08)!important}
body.seto-analyse-page .kpi{padding:14px!important}
body.seto-analyse-page .section-head{margin-bottom:12px!important}
body.seto-analyse-page .card{padding:17px!important}

/* Importer */
body.seto-import-page .import-layout{gap:14px!important}
body.seto-import-page .import-sidebar{border-radius:22px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-import-page .import-nav-group{border-radius:14px!important}
body.seto-import-page .import-nav-group.active,body.seto-import-page .import-nav-group:hover{background:rgba(47,117,181,.08)!important}
body.seto-import-page .card{padding:17px!important}
body.seto-import-page .setup-choice{padding:14px!important}

/* Admin */
body.seto-admin-page .admin-shell{padding-top:14px}
body.seto-admin-page .admin-hero{padding:20px!important}
body.seto-admin-page .admin-tabs{padding:5px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid var(--seto-border)}
body.seto-admin-page .admin-tabs button.active{background:rgba(47,117,181,.12)!important;color:var(--seto-primary)!important}
body.seto-admin-page .admin-panel{padding:17px!important}

/* Calendar – preserve semantic day colors, rest gets glass */
body.seto-calendar-page .calendar-app-header{background:transparent!important}
body.seto-calendar-page .cal-top{border-radius:20px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-calendar-page .bottom-nav{border:1px solid var(--seto-border)!important;border-radius:18px!important;background:var(--seto-glass-strong)!important;box-shadow:0 12px 34px rgba(23,54,93,.11)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
body.seto-calendar-page .bn-item{border-radius:12px!important}
body.seto-calendar-page .bn-item.active{background:rgba(47,117,181,.10)!important}
body.seto-calendar-page #editor{border-radius:22px 22px 0 0!important;background:var(--seto-glass-strong)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 -12px 36px rgba(23,54,93,.12)!important}
body.seto-calendar-page .entry-buttons{gap:6px!important}
body.seto-calendar-page .btn-type{border-radius:12px!important}

@media(max-width:860px){
  .seto-global-header{top:6px;left:7px;right:7px;border-radius:16px}
  body.seto-ui{padding-top:66px!important}
  body.seto-ui.seto-calendar-page{padding-top:calc(66px + var(--header-h,56px))!important}
  body.seto-ui .app-header,body.seto-ui .topbar:not(.seto-global-header){top:66px!important}
  body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){width:min(100% - 18px,1180px)}
  body.seto-ui:not(.seto-start-page) :is(.panel,.card,.summary-card,.profile-card,.admin-panel,.vdn-sheet,.chart-box,.kpi,.setup-work-card,.layout-card){border-radius:20px!important}
  body.seto-profil-page .panel,body.seto-analyse-page .card,body.seto-import-page .card,body.seto-admin-page .admin-panel{padding:14px!important}
}
@media(max-width:600px){
  body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){width:calc(100% - 14px)}
  .seto-service-link,.seto-theme-btn{border-radius:11px}
  body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:40px;border-radius:12px!important}
  body.seto-payroll-page .vdn-sheet{border-radius:20px!important}
  body.seto-calendar-page .bottom-nav{left:7px!important;right:7px!important;bottom:max(7px,env(safe-area-inset-bottom))!important}
}
@media print{
  body.seto-ui:not(.seto-start-page):not(.seto-login-page){background:#fff!important}
  body.seto-ui :is(.panel,.card,.vdn-sheet,.admin-panel,.layout-card){box-shadow:none!important;backdrop-filter:none!important;background:#fff!important;border-color:#ddd!important}
}


/* SETO 1.1.166 – Navigation & Aktionshierarchie */
.seto-mobile-menu-theme{
  width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--seto-text);
  padding:10px 12px;border-radius:10px;font:inherit;text-align:left;cursor:pointer;
}
.seto-mobile-menu-theme:hover{background:var(--seto-card-2)}
.seto-mobile-menu-theme span{width:22px;text-align:center}
.seto-mobile-menu-theme b{font-size:12px}

.seto-diagnostic-fold{margin-top:18px;border:1px solid var(--seto-border);border-radius:14px;background:var(--seto-card)}
.seto-diagnostic-fold>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px}
.seto-diagnostic-fold>summary::-webkit-details-marker{display:none}
.seto-diagnostic-fold>summary span:first-child{display:grid;gap:3px}
.seto-diagnostic-fold>summary small{color:var(--seto-muted);font-size:11px;font-weight:600}
.seto-diagnostic-actions{padding:0 16px 16px;display:flex;gap:8px;flex-wrap:wrap}
.seto-inline-diagnostic{display:inline-block;vertical-align:middle}
.seto-inline-diagnostic>summary{list-style:none;cursor:pointer;border:1px solid var(--seto-border);border-radius:10px;padding:9px 12px;color:var(--seto-muted);font-size:12px;font-weight:750;background:var(--seto-card)}
.seto-inline-diagnostic>summary::-webkit-details-marker{display:none}
.seto-inline-diagnostic[open]>summary{color:var(--seto-primary);border-color:var(--seto-primary)}
.seto-inline-diagnostic>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Profil besitzt keine zweite globale Modulnavigation mehr. */
body.seto-profil-page>.topbar{display:none!important}

@media(max-width:760px){
  /* Mobile Hauptführung: Start · Kalender · Abrechnung · Mehr. */
  .seto-global-inner{width:100%;padding:0 8px;gap:4px;justify-content:center}
  .seto-wordmark{display:none!important}
  .seto-main-nav{display:none!important}
  .seto-global-actions{display:none!important}
  .seto-mobile-primary-nav{display:flex!important;flex:1;align-items:stretch;justify-content:space-evenly;min-width:0;height:100%;gap:2px}
  .seto-mobile-primary-nav>a{flex:1;min-width:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px;color:var(--seto-muted);text-decoration:none;border-radius:10px;font-size:10px;font-weight:760}
  .seto-mobile-primary-nav>a.active{color:var(--seto-primary);background:color-mix(in srgb,var(--seto-primary) 10%,transparent)}
  .seto-mobile-nav-icon{height:19px;min-width:19px;display:grid;place-items:center;font-size:17px;line-height:1}
  .seto-mobile-nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
  .seto-mobile-primary-nav b{font-size:9.5px;line-height:1.1;white-space:nowrap}
  .seto-mobile-modules{display:block!important;position:relative;flex:0 0 54px;height:100%}
  .seto-mobile-modules-btn{width:100%;height:100%;border:0;background:transparent;color:var(--seto-muted);display:flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer}
  .seto-mobile-modules-btn::after{content:'Mehr';position:absolute;bottom:7px;left:0;right:0;font-size:9.5px;font-weight:760}
  .seto-mobile-modules-btn span{font-size:18px;transform:translateY(-6px)}
}

/* SETO 1.1.167 – Mobile Navigation: Safe Area, Sticky-Ebenen und Bedienbarkeit */
:root{
  --seto-safe-bottom:env(safe-area-inset-bottom,0px);
  --seto-layer-module-nav:700;
  --seto-layer-global-nav:900;
  --seto-layer-menu:1000;
}

/* UI2 hatte auf schmalen Displays die Safe-Area-Geometrie wieder auf feste 66 px reduziert.
   Bis 860 px gilt deshalb nur noch die zentrale SETO-Höhe. */
@media(max-width:860px){
  :root{
    --seto-global-bar-h:60px;
    --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
  }
  .seto-global-header{
    top:0!important;
    left:0!important;
    right:0!important;
    height:var(--seto-global-h)!important;
    min-height:var(--seto-global-h)!important;
    padding-top:var(--seto-safe-top)!important;
    border-radius:0 0 16px 16px!important;
    z-index:var(--seto-layer-global-nav)!important;
  }
  .seto-global-inner{
    height:var(--seto-global-bar-h)!important;
    min-height:var(--seto-global-bar-h)!important;
  }
  body.seto-ui,
  body.seto-ui.seto-calendar-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-ui .app-header,
  body.seto-ui .topbar:not(.seto-global-header){
    top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page .seto-module-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
}

/* Analyse und Importer besitzen auf Tablet/Phone eine lokale Sticky-Navigation.
   Sie klebt unter der globalen SETO-Leiste und nicht mehr bei top:0. */
@media(max-width:820px){
  body.seto-analyse-page .analysis-mobile-nav,
  body.seto-import-page .import-mobile-nav,
  body.seto-payroll-page .payroll-mobile-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
  body.seto-analyse-page .analysis-mobile-links,
  body.seto-import-page .import-mobile-links,
  body.seto-payroll-page .payroll-mobile-links{
    max-height:calc(100vh - var(--seto-global-h) - 92px);
    max-height:calc(100dvh - var(--seto-global-h) - 92px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

@media(max-width:760px){
  :root{
    --seto-global-bar-h:58px;
    --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
    --seto-calendar-nav-total-h:calc(var(--nav-h,64px) + var(--seto-safe-bottom));
  }

  /* Eine einzige mobile Hauptzeile: Start · Kalender · Abrechnung · Mehr. */
  .seto-global-inner{
    width:100%!important;
    height:var(--seto-global-bar-h)!important;
    min-height:var(--seto-global-bar-h)!important;
    padding:0 max(8px,var(--seto-safe-left)) 0 max(8px,var(--seto-safe-right))!important;
    display:flex!important;
    align-items:stretch!important;
    gap:4px!important;
  }
  .seto-wordmark,
  .seto-main-nav,
  .seto-global-actions{
    display:none!important;
  }
  .seto-mobile-primary-nav{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:100%!important;
    align-items:stretch!important;
    gap:2px!important;
  }
  .seto-mobile-primary-nav>a{
    min-width:0!important;
    min-height:44px!important;
    height:100%!important;
  }
  .seto-mobile-modules{
    display:block!important;
    position:relative!important;
    flex:0 0 54px!important;
    height:100%!important;
  }
  .seto-mobile-modules-btn{
    min-width:44px!important;
    min-height:44px!important;
  }
  .seto-mobile-modules-menu{
    top:calc(var(--seto-global-h) + 6px)!important;
    left:max(8px,var(--seto-safe-left))!important;
    right:max(8px,var(--seto-safe-right))!important;
    max-height:calc(100vh - var(--seto-global-h) - 14px);
    max-height:calc(100dvh - var(--seto-global-h) - 14px);
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:var(--seto-layer-menu)!important;
  }

  /* Abrechnung: die zweite Zeile reserviert zuverlässig ihren eigenen Platz. */
  body.seto-payroll-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page .seto-module-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
    min-height:var(--seto-module-h)!important;
    scroll-padding-inline:8px;
  }
  body.seto-payroll-page .seto-module-nav .app-nav-link{
    min-height:40px!important;
  }

  /* Kalender: Bottom-Bar, Editor und Toast verwenden dieselbe Safe-Area-Geometrie. */
  body.seto-calendar-nav-page{
    padding-top:var(--seto-global-h)!important;
    padding-bottom:calc(var(--seto-calendar-nav-total-h) + 10px)!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:auto!important;
    bottom:0!important;
    left:7px!important;
    right:7px!important;
    height:var(--seto-calendar-nav-total-h)!important;
    padding-bottom:var(--seto-safe-bottom)!important;
    border-radius:18px 18px 0 0!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
  body.seto-calendar-nav-page #editor{
    bottom:var(--seto-calendar-nav-total-h)!important;
    max-height:calc(100vh - var(--seto-global-h) - var(--seto-calendar-nav-total-h) - 10px);
    max-height:calc(100dvh - var(--seto-global-h) - var(--seto-calendar-nav-total-h) - 10px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:calc(var(--seto-layer-module-nav) - 100)!important;
  }
  body.seto-calendar-nav-page .app-toast{
    bottom:calc(var(--seto-calendar-nav-total-h) + 14px)!important;
  }

  /* Admin: keine dritte feste Kopfzeile. Tabs bleiben direkt unter SETO sticky. */
  body.seto-admin-page .admin-topbar{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    min-height:62px;
    z-index:auto!important;
  }
  body.seto-admin-page .admin-tabs{
    top:calc(var(--seto-global-h) + 6px)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
}

@media print{
  :root{--seto-safe-bottom:0px}
}

/* Failed validation never reveals protected contents. Only recovery UI is shown. */
html.seto-auth-failed body > :not(#seto-start-error){display:none!important}
html.seto-auth-failed body{visibility:visible!important}
#seto-start-error{box-sizing:border-box;max-width:640px;margin:10vh auto;padding:28px;background:#fff;color:#24364b;border:1px solid #ccd5df;border-radius:16px;font:16px/1.6 system-ui}
#seto-start-error h1{color:#17365d;font-size:24px}
#seto-start-error button,#seto-start-error a{display:inline-block;margin:8px;padding:12px 16px;border:1px solid #17365d;border-radius:8px;background:#17365d;color:#fff;cursor:pointer;font:inherit}
#seto-start-error :focus-visible{outline:3px solid #b45309;outline-offset:3px}

/* Feedback 107/108 – Desktop: Start/Kalender/Abrechnung/Analyse/Mehr statt verteilter Servicemenüs. */
.seto-desktop-more{position:relative;height:100%;display:flex;align-items:center}.seto-desktop-more>summary{list-style:none;cursor:pointer;height:100%;display:flex;align-items:center;padding:0 12px;border-bottom:3px solid transparent;color:var(--seto-muted);font-size:13px;font-weight:720}.seto-desktop-more>summary::-webkit-details-marker{display:none}.seto-desktop-more>summary:hover,.seto-desktop-more[open]>summary{color:var(--seto-text);background:var(--seto-card-2)}.seto-desktop-more>nav{position:absolute;z-index:100;right:0;top:calc(100% + 5px);min-width:220px;display:grid;gap:3px;padding:7px;border:1px solid var(--seto-border);border-radius:12px;background:var(--seto-card);box-shadow:0 14px 36px rgba(16,24,40,.18)}.seto-main-nav .seto-desktop-more>nav a{min-height:38px;padding:8px 10px;border:0;border-radius:8px;font-size:12px;white-space:nowrap}.seto-main-nav .seto-desktop-more>nav a.active{border:0;background:var(--seto-card-2);color:var(--seto-primary)}
@media(max-width:760px){.seto-desktop-more{display:none!important}}


/* From: css/seto-ui-v2.css */

/*
 * SETO UI 2 – iOS-inspiriertes Glass-/Financial-Dashboard
 * Version 1.1.157
 *
 * Diese Datei ist bewusst eine reine Präsentationsschicht.
 * Fachlogik, IDs, Form-Strukturen und Drucklayouts bleiben unangetastet.
 */

html[data-seto-ui="v2"]{
  color-scheme:light;
  --seto-navy:#17365d;
  --seto-navy-2:#102a43;
  --seto-blue:#2f75b5;
  --seto-blue-2:#5b9bd5;
  --seto-ink:#172033;
  --seto-muted:#475467;
  --seto-line:rgba(23,54,93,.13);
  --seto-line-strong:rgba(23,54,93,.22);
  --seto-bg:#edf2f7;
  --seto-bg-2:#f7f9fc;
  --seto-surface:rgba(255,255,255,.82);
  --seto-surface-solid:#fff;
  --seto-surface-soft:rgba(246,249,252,.78);
  --seto-shadow:0 18px 52px rgba(23,54,93,.10);
  --seto-shadow-soft:0 8px 26px rgba(23,54,93,.08);
  --seto-radius:20px;
  --seto-radius-sm:13px;
  --seto-success:#1f7a50;
  --seto-warning:#a86500;
  --seto-danger:#b42318;

  /* bestehende Tokenfamilien auf SETO UI 2 abbilden */
  --bg:var(--seto-bg)!important;
  --card:var(--seto-surface-solid)!important;
  --surface:var(--seto-surface-solid)!important;
  --surface-2:#f6f8fb!important;
  --surface2:#f6f8fb!important;
  --text:var(--seto-ink)!important;
  --ink:var(--seto-ink)!important;
  --muted:var(--seto-muted)!important;
  --border:var(--seto-line)!important;
  --line:var(--seto-line)!important;
  --primary:var(--seto-navy)!important;
  --primary2:var(--seto-blue)!important;
  --blue:var(--seto-blue)!important;
  --blue-hover:#245f96!important;
  --blue-soft:#e9f1fa!important;
  --accent:var(--seto-blue)!important;
  --accent-dark:var(--seto-navy)!important;
  --accent-soft:#e9f1fa!important;
  --purple:var(--seto-navy)!important;
  --purple-2:var(--seto-blue)!important;
  --purple-text:var(--seto-navy)!important;
  --purple-soft:#e9f1fa!important;
  --focus:var(--seto-blue)!important;
  --shadow:var(--seto-shadow-soft)!important;

  --analysis-navy:var(--seto-navy)!important;
  --analysis-blue:var(--seto-blue)!important;
  --analysis-bg:var(--seto-bg)!important;
  --analysis-card:var(--seto-surface-solid)!important;
  --analysis-text:var(--seto-ink)!important;
  --analysis-muted:var(--seto-muted)!important;
  --analysis-border:var(--seto-line)!important;

  --salary-navy:var(--seto-navy)!important;
  --salary-blue:var(--seto-blue)!important;
  --salary-bg:var(--seto-bg)!important;
  --salary-card:var(--seto-surface-solid)!important;
  --salary-text:var(--seto-ink)!important;
  --salary-muted:var(--seto-muted)!important;

  --page-bg:var(--seto-bg)!important;
  --a-bg:var(--seto-bg)!important;
  --a-card:var(--seto-surface)!important;
  --a-border:var(--seto-line)!important;
  --a-text:var(--seto-ink)!important;
  --a-muted:var(--seto-muted)!important;
  --a-primary:var(--seto-blue)!important;
}

html[data-seto-ui="v2"][data-theme="dark"]{
  --seto-ink:#f4f7fb;
  --seto-muted:#b5c0ce;
  --seto-line:rgba(190,212,235,.16);
  --seto-line-strong:rgba(190,212,235,.26);
  --seto-bg:#07111d;
  --seto-bg-2:#0b1725;
  --seto-surface:rgba(16,31,49,.80);
  --seto-surface-solid:#102033;
  --seto-surface-soft:rgba(21,40,62,.80);
  --seto-shadow:0 20px 58px rgba(0,0,0,.30);
  --seto-shadow-soft:0 8px 28px rgba(0,0,0,.22);
  --seto-blue-2:#8fc3ef;
  --blue-soft:#152c45!important;
  --accent-soft:#152c45!important;
  --purple-soft:#152c45!important;
}

@media(prefers-color-scheme:dark){
  html[data-seto-ui="v2"]:not([data-theme]){
    --seto-ink:#f4f7fb;
    --seto-muted:#b5c0ce;
    --seto-line:rgba(190,212,235,.16);
    --seto-line-strong:rgba(190,212,235,.26);
    --seto-bg:#07111d;
    --seto-bg-2:#0b1725;
    --seto-surface:rgba(16,31,49,.80);
    --seto-surface-solid:#102033;
    --seto-surface-soft:rgba(21,40,62,.80);
    --seto-shadow:0 20px 58px rgba(0,0,0,.30);
    --seto-shadow-soft:0 8px 28px rgba(0,0,0,.22);
    --blue-soft:#152c45!important;
    --accent-soft:#152c45!important;
    --purple-soft:#152c45!important;
  }
}

html[data-seto-ui="v2"]{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
  background:var(--seto-bg);
  color:var(--seto-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

html[data-seto-ui="v2"] body{
  font-family:inherit!important;
  color:var(--seto-ink);
  background:
    radial-gradient(circle at 8% -10%,rgba(47,117,181,.17),transparent 33rem),
    radial-gradient(circle at 96% 5%,rgba(23,54,93,.10),transparent 28rem),
    linear-gradient(180deg,var(--seto-bg-2) 0,var(--seto-bg) 42%,var(--seto-bg) 100%)!important;
}

html[data-seto-ui="v2"] body::selection{background:rgba(47,117,181,.20)}
html[data-seto-ui="v2"] h1,
html[data-seto-ui="v2"] h2,
html[data-seto-ui="v2"] h3{letter-spacing:-.025em}
html[data-seto-ui="v2"] h1{color:var(--seto-navy)}
html[data-seto-ui="v2"] .eyebrow,
html[data-seto-ui="v2"] .kicker,
html[data-seto-ui="v2"] .panel-kicker,
html[data-seto-ui="v2"] .admin-eyebrow,
html[data-seto-ui="v2"] .import-kicker{
  color:var(--seto-blue)!important;
  font-weight:850!important;
  letter-spacing:.105em!important;
}
html[data-seto-ui="v2"] .muted,
html[data-seto-ui="v2"] small{color:var(--seto-muted)}

html[data-seto-ui="v2"] .amount,
html[data-seto-ui="v2"] .netto,
html[data-seto-ui="v2"] .kpi-value,
html[data-seto-ui="v2"] .summary-card strong,
html[data-seto-ui="v2"] .user-kpi strong,
html[data-seto-ui="v2"] .projection-value,
html[data-seto-ui="v2"] .count-badge{
  font-variant-numeric:tabular-nums lining-nums;
}

/* Glasflächen */
html[data-seto-ui="v2"] :is(
  .card,.panel,.summary-card,.salary-card,.month-card,.kpi,.user-kpi,.status-card,
  .admin-panel,.admin-glass,.admin-create-card,.privacy-note,.setup-card,.consent-card,
  .feedback-card,.login-card,.profile-card,.quick-card,.app-card,.tool-card,.hero-summary,
  .workbench-card,.shortcut-card,.guide-card,.audit-kpi,.year-box,.mini,.setup-work-card,
  .import-work-card,.dialog-card,.security-card,.backup-card,.info-box
){
  border:1px solid var(--seto-line)!important;
  background:var(--seto-surface)!important;
  border-radius:var(--seto-radius)!important;
  box-shadow:var(--seto-shadow-soft)!important;
  backdrop-filter:blur(20px) saturate(135%);
  -webkit-backdrop-filter:blur(20px) saturate(135%);
}

html[data-seto-ui="v2"] :is(.card,.panel,.salary-card,.kpi,.summary-card,.admin-panel,.tool-card,.app-card,.workbench-card,.shortcut-card){
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
@media(hover:hover){
  html[data-seto-ui="v2"] :is(a.card,a.app-card,a.tool-card,a.workbench-card,a.shortcut-card):hover{
    transform:translateY(-2px);
    border-color:rgba(47,117,181,.35)!important;
    box-shadow:var(--seto-shadow)!important;
  }
}

/* Navigation und App-Chrome */
html[data-seto-ui="v2"] :is(
  .topbar,.app-header,.admin-topbar,.docs-toolbar,.analysis-sidebar,.import-sidebar,
  .analysis-mobile-nav,.import-mobile-nav,.bottom-nav
){
  border-color:var(--seto-line)!important;
  background:color-mix(in srgb,var(--seto-surface-solid) 80%,transparent)!important;
  backdrop-filter:blur(24px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(150%)!important;
  box-shadow:0 8px 30px rgba(23,54,93,.05);
}

html[data-seto-ui="v2"] :is(.analysis-sidebar,.import-sidebar,.sidebar){
  border-color:var(--seto-line)!important;
  background:color-mix(in srgb,var(--seto-surface-solid) 86%,transparent)!important;
}

html[data-seto-ui="v2"] :is(
  .analysis-sidebar nav a.active,.import-sidebar nav a.active,
  .analysis-mobile-links a.active,.import-mobile-links a.active
){
  background:linear-gradient(135deg,var(--seto-navy),var(--seto-blue))!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 8px 22px rgba(23,54,93,.18)!important;
}

html[data-seto-ui="v2"] .mainnav a.active,
html[data-seto-ui="v2"] .app-nav-link.active,
html[data-seto-ui="v2"] .bn-item.active,
html[data-seto-ui="v2"] .nav-item.active{
  color:var(--seto-blue)!important;
}
html[data-seto-ui="v2"] .app-nav-link.active{border-bottom-color:var(--seto-blue)!important}
html[data-seto-ui="v2"] .bn-item.active::before{background:linear-gradient(90deg,var(--seto-navy),var(--seto-blue))!important}
html[data-seto-ui="v2"] .nav-item.active{
  background:rgba(47,117,181,.10)!important;
}
html[data-seto-ui="v2"] :is(.brand,.analysis-brand,.import-brand,.admin-brand){
  color:var(--seto-navy)!important;
}
html[data-seto-ui="v2"] .brand-mark,
html[data-seto-ui="v2"] .logo{
  background:linear-gradient(135deg,var(--seto-navy),var(--seto-blue))!important;
}

/* Controls */
html[data-seto-ui="v2"] :is(button,input,select,textarea){font-family:inherit}
html[data-seto-ui="v2"] :is(input,select,textarea){
  border:1px solid var(--seto-line-strong)!important;
  border-radius:var(--seto-radius-sm)!important;
  background:color-mix(in srgb,var(--seto-surface-solid) 88%,transparent)!important;
  color:var(--seto-ink)!important;
  outline:none;
}
html[data-seto-ui="v2"] :is(input,select,textarea):focus{
  border-color:var(--seto-blue)!important;
  box-shadow:0 0 0 4px rgba(47,117,181,.12)!important;
}
html[data-seto-ui="v2"] input[type="checkbox"],
html[data-seto-ui="v2"] input[type="radio"]{accent-color:var(--seto-blue)}
html[data-seto-ui="v2"] :is(
  .btn,.button,.admin-btn,.primary-button,.secondary-button,.text-button,.icon-action,
  .link-btn,.linkbtn,.period-arrow,.ghost
){
  border-radius:12px!important;
}
html[data-seto-ui="v2"] :is(
  .btn.primary,.btn-primary,.button:not(.secondary),.admin-btn.primary,.primary-button
){
  background:linear-gradient(135deg,var(--seto-navy),var(--seto-blue))!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(23,54,93,.16);
}
html[data-seto-ui="v2"] :is(
  .btn.secondary,.button.secondary,.admin-btn.secondary,.secondary-button,.text-button,
  .link-btn,.linkbtn,.ghost
){
  background:color-mix(in srgb,var(--seto-surface-solid) 76%,transparent)!important;
  color:var(--seto-navy)!important;
  border-color:var(--seto-line)!important;
}

/* Tabs / segment controls */
html[data-seto-ui="v2"] :is(.tabs,.admin-tabs){
  padding:5px!important;
  border:1px solid var(--seto-line)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.48)!important;
  box-shadow:none!important;
}
html[data-seto-ui="v2"] .tab{
  border:0!important;
  border-radius:11px!important;
}
html[data-seto-ui="v2"] :is(.tab.active,.admin-tabs button.active){
  background:rgba(47,117,181,.12)!important;
  color:var(--seto-navy)!important;
  border-color:transparent!important;
}

/* Tabellen */
html[data-seto-ui="v2"] :is(.table-wrap,.table-scroll,.table){
  border:1px solid var(--seto-line)!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--seto-surface-solid) 75%,transparent);
  overflow:auto;
}
html[data-seto-ui="v2"] :is(.data-table,table) th{
  background:color-mix(in srgb,#e9f1fa 70%,var(--seto-surface-solid))!important;
  color:var(--seto-navy)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"] :is(.data-table,table) td{
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"] tbody tr:hover td{
  background:rgba(47,117,181,.035);
}

/* Status */
html[data-seto-ui="v2"] :is(.pill,.badge,.source,.source-badge,.status-pill,.import-card-badge,.user-chip){
  border:1px solid rgba(47,117,181,.15)!important;
  background:rgba(47,117,181,.09)!important;
  color:var(--seto-navy)!important;
  border-radius:999px!important;
}
html[data-seto-ui="v2"] .notice{
  border-radius:14px!important;
  border:1px solid var(--seto-line)!important;
  background:color-mix(in srgb,var(--seto-surface-solid) 78%,transparent)!important;
}

/* START / APP */
html[data-seto-ui="v2"][data-seto-section="start"] .start-dashboard-header{
  background:linear-gradient(135deg,#102a43 0%,#17365d 48%,#2f75b5 100%)!important;
  box-shadow:0 18px 44px rgba(23,54,93,.22)!important;
}
html[data-seto-ui="v2"][data-seto-section="start"] .start-card{
  border-radius:20px!important;
  border:1px solid var(--seto-line)!important;
  background:var(--seto-surface)!important;
  box-shadow:var(--seto-shadow-soft)!important;
  backdrop-filter:blur(20px);
}

/* AUTH – Referenz bleibt bewusst klar und ruhig */
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel{
  background:
    radial-gradient(circle at 12% 16%,rgba(91,155,213,.34),transparent 18rem),
    linear-gradient(145deg,#0f2943 0%,#17365d 52%,#2f75b5 100%)!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-card{
  border-radius:24px!important;
  box-shadow:0 22px 60px rgba(23,54,93,.13)!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-card h1{color:var(--seto-navy)!important}

/* ANALYSE / LOHN-DASHBOARD */
html[data-seto-ui="v2"][data-seto-section="analyse"] .salary-header{
  background:
    radial-gradient(circle at 80% 0,rgba(91,155,213,.28),transparent 20rem),
    linear-gradient(135deg,#102a43,#17365d 56%,#2f75b5)!important;
  box-shadow:0 18px 42px rgba(23,54,93,.18);
}
html[data-seto-ui="v2"][data-seto-section="analyse"] .salary-header h1{color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="analyse"] .analysis-content .card,
html[data-seto-ui="v2"][data-seto-section="analyse"] .analysis-content .salary-card{
  overflow:clip;
}

/* IMPORTER */
html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero{
  border:1px solid color-mix(in srgb,#8fc3ef 24%,transparent);
  border-radius:24px;
  padding:24px!important;
  background:
    radial-gradient(circle at 88% 0,rgba(255,255,255,.16),transparent 18rem),
    linear-gradient(135deg,#102d4a,#1f527f 56%,#3278b4)!important;
  color:#fff!important;
  box-shadow:0 15px 36px rgba(17,50,82,.17);
  backdrop-filter:blur(20px);
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero h1{color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero p{color:rgba(255,255,255,.78)!important}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero :is(.back,.import-kicker){color:#d7eafb!important}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero .pill{
  color:#fff!important;background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.20)!important
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-primary-card{
  background:
    linear-gradient(145deg,rgba(23,54,93,.98),rgba(47,117,181,.94))!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-primary-card :is(h2,p,strong,.import-card-badge){color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-primary-card .import-card-badge{
  background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.20)!important
}

/* PROFIL */
html[data-seto-ui="v2"][data-seto-section="profil"] .hero{
  padding:26px;
  border:1px solid var(--seto-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 10%,rgba(47,117,181,.13),transparent 20rem),
    var(--seto-surface);
  box-shadow:var(--seto-shadow-soft);
  backdrop-filter:blur(20px);
}
html[data-seto-ui="v2"][data-seto-section="profil"] .summary-grid{
  gap:14px!important;
}
html[data-seto-ui="v2"][data-seto-section="profil"] .summary-card{
  padding:18px!important;
}

/* ABRECHNUNG – App-Chrome modern, VDN-Blatt bleibt dokumentartig */
html[data-seto-ui="v2"][data-seto-section="abrechnung"]{
  --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .app-header-inner{min-height:68px}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .period-strip{
  border:1px solid var(--seto-line)!important;
  border-radius:18px!important;
  background:var(--seto-surface)!important;
  box-shadow:var(--seto-shadow-soft)!important;
  backdrop-filter:blur(18px);
  padding:12px 14px!important;
}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .panel{
  padding:20px!important;
}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .vdn-sheet{
  border-radius:8px!important;
  border:1px solid #cbd2da!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:0 20px 60px rgba(23,54,93,.13)!important;
  backdrop-filter:none!important;
}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .vdn-sheet :is(input,select){
  background:#fff!important;color:#111!important
}

/* KALENDER – iOS-Struktur bleibt, Branding wird Navy */
html[data-seto-ui="v2"][data-seto-section="kalender"]{
  --nav-h:68px;
  --header-h:60px;
}
html[data-seto-ui="v2"][data-seto-section="kalender"] .app-header{
  box-shadow:0 8px 28px rgba(23,54,93,.08)!important;
}
html[data-seto-ui="v2"][data-seto-section="kalender"] .brand .title{
  color:var(--seto-navy)!important;
  letter-spacing:-.02em!important;
}
html[data-seto-ui="v2"][data-seto-section="kalender"] .container{
  max-width:1180px;
}
html[data-seto-ui="v2"][data-seto-section="kalender"] .card{
  border-radius:20px!important;
}
html[data-seto-ui="v2"][data-seto-section="kalender"] .btn.primary{
  background:linear-gradient(135deg,var(--seto-navy),var(--seto-blue))!important;
}

/* ADMIN */
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-topbar{
  position:sticky;top:0;z-index:50;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero{
  padding:26px!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(47,117,181,.16),transparent 18rem),
    var(--seto-surface)!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .count-badge,
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-self{
  background:rgba(47,117,181,.12)!important;color:var(--seto-navy)!important
}

/* HILFE / RECHTLICH – ruhige Leseflächen */
html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar{
  top:var(--seto-global-h,0px)!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .sidebar{
  backdrop-filter:blur(18px);
}
html[data-seto-ui="v2"][data-seto-section="docs"] main{
  max-width:1240px;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .card{
  background:color-mix(in srgb,var(--seto-surface-solid) 90%,transparent)!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .card.accent{border-left:4px solid var(--seto-blue)!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .search{
  background:rgba(255,255,255,.55)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .page{
  max-width:920px;
  margin:34px auto 70px!important;
  padding:clamp(22px,4vw,42px)!important;
  border-radius:24px!important;
  border:1px solid var(--seto-line)!important;
  background:var(--seto-surface)!important;
  box-shadow:var(--seto-shadow-soft)!important;
}

/* öffentliche Vorschau */
html[data-seto-ui="v2"][data-seto-section="public"] .public-topbar{
  border-bottom:1px solid var(--seto-line)!important;
  background:rgba(255,255,255,.72)!important;
  backdrop-filter:blur(22px);
}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero{
  border-radius:28px;
}

/* Mobile: gleiche Sprache, weniger Dichte */
@media(max-width:820px){
  html[data-seto-ui="v2"] body{
    background:
      radial-gradient(circle at 50% -8rem,rgba(47,117,181,.16),transparent 28rem),
      var(--seto-bg)!important;
  }
  html[data-seto-ui="v2"] :is(.card,.panel,.summary-card,.salary-card,.month-card,.kpi,.admin-panel){
    border-radius:17px!important;
  }
  html[data-seto-ui="v2"][data-seto-section="profil"] .hero,
  html[data-seto-ui="v2"][data-seto-section="importer"] .import-hero,
  html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero{
    border-radius:19px;
    padding:20px!important;
  }
  html[data-seto-ui="v2"] .bottom-nav{
    background:color-mix(in srgb,var(--seto-surface-solid) 88%,transparent)!important;
  }
}

/* Dunkelmodus: Navy statt Schwarz, Text bleibt AA-tauglich */
html[data-seto-ui="v2"][data-theme="dark"] h1{color:#dcecff}
html[data-seto-ui="v2"][data-theme="dark"] :is(.btn.secondary,.button.secondary,.admin-btn.secondary,.secondary-button,.text-button,.link-btn,.linkbtn,.ghost){color:#dcecff!important}
@media(prefers-color-scheme:dark){
  html[data-seto-ui="v2"]:not([data-theme]) h1{color:#dcecff}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.btn.secondary,.button.secondary,.admin-btn.secondary,.secondary-button,.text-button,.link-btn,.linkbtn,.ghost){color:#dcecff!important}
}

/* Druck: keine Glass-Effekte / keine App-Hintergründe */
@media print{
  html[data-seto-ui="v2"],
  html[data-seto-ui="v2"] body{
    background:#fff!important;
    color:#111!important;
  }
  html[data-seto-ui="v2"] :is(.sheet,.page,.vdn-sheet){
    background:#fff!important;
    color:#111!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
}

/* Bewegung respektieren */
@media(prefers-reduced-motion:reduce){
  html[data-seto-ui="v2"] *,html[data-seto-ui="v2"] *::before,html[data-seto-ui="v2"] *::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
  }
}


/* SETO 1.1.166 – UI2 Navigation & Analyse-Vereinheitlichung */
html[data-seto-ui="v2"][data-seto-section="analyse"] .topbar{
  border:1px solid var(--seto-line)!important;border-radius:22px!important;padding:20px 22px!important;
  background:var(--seto-surface)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(18px);
}
html[data-seto-ui="v2"][data-seto-section="analyse"] .topbar h1{color:var(--seto-navy)!important}
html[data-seto-ui="v2"][data-seto-section="analyse"] .analysis-sidebar{
  border:1px solid var(--seto-line)!important;border-radius:20px!important;background:var(--seto-surface)!important;
  box-shadow:var(--seto-shadow-soft)!important;overflow:hidden;
}
html[data-seto-ui="v2"][data-seto-section="analyse"] .analysis-mobile-nav details{
  border:1px solid var(--seto-line)!important;border-radius:15px!important;background:var(--seto-surface)!important;box-shadow:var(--seto-shadow-soft)!important;
}
html[data-seto-ui="v2"][data-seto-section="analyse"] .audit-controls{
  align-items:end!important;gap:10px!important;
}
html[data-seto-ui="v2"][data-seto-section="analyse"] .header-actions{gap:8px!important;flex-wrap:wrap}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .workbench-page .workbench-grid{gap:12px!important}
html[data-seto-ui="v2"][data-seto-section="abrechnung"] .workbench-card{min-height:96px!important}
html[data-seto-ui="v2"][data-seto-section="kalender"] .bottom-nav .bn-item:last-child .bn-ico{letter-spacing:1px}
@media(max-width:820px){
  html[data-seto-ui="v2"][data-seto-section="analyse"] .topbar{border-radius:17px!important;padding:17px!important}
}

/* SETO 2.0.014 – Dark-Mode-Kompatibilität für ältere helle Komponenten
 * Feedback #71/#72: keine weißen Kacheln mit heller Schrift im Dark Mode.
 * VDN-Dokumentblatt bleibt absichtlich papierweiß.
 */
html[data-seto-ui="v2"][data-theme="dark"] :is(.brand,.analysis-brand,.import-brand,.admin-brand){color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"] :is(.tabs,.admin-tabs){background:color-mix(in srgb,var(--seto-surface-solid) 86%,transparent)!important}
html[data-seto-ui="v2"][data-theme="dark"] :is(.tab.active,.admin-tabs button.active){background:rgba(91,155,213,.18)!important;color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"] :is(.pill,.badge,.source,.source-badge,.status-pill,.import-card-badge,.user-chip){background:rgba(91,155,213,.13)!important;color:#dcecff!important;border-color:rgba(143,195,239,.22)!important}
html[data-seto-ui="v2"][data-theme="dark"] :is(.data-table,table) th{background:var(--seto-surface-soft)!important;color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"] :is(.table-wrap,.table-scroll,.table){background:color-mix(in srgb,var(--seto-surface-solid) 84%,transparent)!important}
html[data-seto-ui="v2"][data-theme="dark"] tbody tr:hover td{background:rgba(91,155,213,.07)}
html[data-seto-ui="v2"][data-theme="dark"] :is(.notice,.search,.public-topbar){background:color-mix(in srgb,var(--seto-surface-solid) 86%,transparent)!important;color:var(--seto-ink)!important}

html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(
  .app-nav,.app-nav-link:hover,.app-nav-link.active,.user-chip,
  .shortcut-card,.shift-stat,.year-total-grid>div,.review-bar,.review-panel,.readiness-box,
  .profile-status-card,.profile-tariff-card,.profile-overview-card,.vdnpi-summary,.vdnpi-unknown,
  .calendar-basis-grid>div,.reconcile-summary>div,.year-reconcile-summary>div,
  .year-audit-panel,.year-audit-step,.year-retro-list li,.year-field-table,
  .compare-status-icon,.finding-card,.fsq-compare-grid>div,.st-claim-summary-item,
  .wage-editor-row input,.wage-editor-row select,.net-row input,.icon-btn,.vdn-period-control select
){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.app-nav,.vdnpi-summary,.year-audit-step,.finding-card,.fsq-compare-grid>div){background:var(--seto-surface-soft)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.profile-overview-facts span,.vdn-local-badge){background:rgba(91,155,213,.12)!important;color:#dcecff!important;border-color:rgba(143,195,239,.20)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.fsq-help-trigger,.fsq-help-popover){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line-strong)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] .fsq-help-popover>strong{color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.source-note.ok){background:#102a22!important;color:#79d7a7!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.source-note.warn){background:#2c2413!important;color:#f0c76e!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="abrechnung"] :is(.badge-ts,.badge-ns,.badge-entry,.badge-holiday){background:rgba(91,155,213,.13)!important;color:#dcecff!important}

html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] :is(
  .advanced-panel,.result-card,.reference-summary,.scenario-editor,.month-delta-card,
  .hero-metrics article,.assumption-columns>article,.cost-grid article,.change-chip,.year-box,
  .compare-form .head,.compare-form .label,.advanced-section,.fs-line,.kpi,.result-tabs,.metric-toggle
){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] :is(.advanced-panel,.result-card,.reference-summary,.scenario-editor,.advanced-section,.hero-metrics article,.assumption-columns>article,.cost-grid article,.month-delta-card){background:var(--seto-surface-soft)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] :is(.result-tabs button.active,.metric-toggle button.active){background:rgba(91,155,213,.17)!important;color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] :is(.table-wrap th:first-child,.table-wrap td:first-child){background:var(--seto-surface-solid)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] .table-wrap th:first-child{background:var(--seto-surface-soft)!important}
html[data-seto-ui="v2"][data-theme="dark"][data-seto-section="analyse"] :is(.compare-form input[disabled]){background:#18283a!important;color:var(--seto-muted)!important}

@media(prefers-color-scheme:dark){
  html[data-seto-ui="v2"]:not([data-theme]) :is(.brand,.analysis-brand,.import-brand,.admin-brand){color:#dcecff!important}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.tabs,.admin-tabs){background:color-mix(in srgb,var(--seto-surface-solid) 86%,transparent)!important}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.tab.active,.admin-tabs button.active){background:rgba(91,155,213,.18)!important;color:#dcecff!important}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.pill,.badge,.source,.source-badge,.status-pill,.import-card-badge,.user-chip){background:rgba(91,155,213,.13)!important;color:#dcecff!important;border-color:rgba(143,195,239,.22)!important}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.data-table,table) th{background:var(--seto-surface-soft)!important;color:#dcecff!important}
  html[data-seto-ui="v2"]:not([data-theme]) :is(.table-wrap,.table-scroll,.table){background:color-mix(in srgb,var(--seto-surface-solid) 84%,transparent)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="abrechnung"] :is(.app-nav,.app-nav-link:hover,.app-nav-link.active,.user-chip,.shortcut-card,.shift-stat,.year-total-grid>div,.review-bar,.review-panel,.readiness-box,.profile-status-card,.profile-tariff-card,.profile-overview-card,.vdnpi-summary,.vdnpi-unknown,.calendar-basis-grid>div,.reconcile-summary>div,.year-reconcile-summary>div,.year-audit-panel,.year-audit-step,.year-retro-list li,.year-field-table,.compare-status-icon,.finding-card,.fsq-compare-grid>div,.st-claim-summary-item,.wage-editor-row input,.wage-editor-row select,.net-row input,.icon-btn,.vdn-period-control select){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="abrechnung"] :is(.app-nav,.vdnpi-summary,.year-audit-step,.finding-card,.fsq-compare-grid>div){background:var(--seto-surface-soft)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="abrechnung"] :is(.profile-overview-facts span,.vdn-local-badge,.badge-ts,.badge-ns,.badge-entry,.badge-holiday){background:rgba(91,155,213,.13)!important;color:#dcecff!important;border-color:rgba(143,195,239,.20)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="abrechnung"] :is(.fsq-help-trigger,.fsq-help-popover){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line-strong)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="abrechnung"] .fsq-help-popover>strong{color:#dcecff!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="analyse"] :is(.advanced-panel,.result-card,.reference-summary,.scenario-editor,.month-delta-card,.hero-metrics article,.assumption-columns>article,.cost-grid article,.change-chip,.year-box,.compare-form .head,.compare-form .label,.advanced-section,.fs-line,.kpi,.result-tabs,.metric-toggle){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="analyse"] :is(.advanced-panel,.result-card,.reference-summary,.scenario-editor,.advanced-section,.hero-metrics article,.assumption-columns>article,.cost-grid article,.month-delta-card){background:var(--seto-surface-soft)!important}
  html[data-seto-ui="v2"]:not([data-theme])[data-seto-section="analyse"] :is(.result-tabs button.active,.metric-toggle button.active){background:rgba(91,155,213,.17)!important;color:#dcecff!important}
}

/* SETO 2.1.039 – Unified UI Abschluss
 * Nur Präsentation: bestehende v2-Tokens/Komponenten werden in den verbliebenen
 * Utility-Bereichen konsequent wiederverwendet. Keine neue Runtime-Abhängigkeit.
 */

/* Einheitliche Statusflächen */
html[data-seto-ui="v2"] .notice:is(.ok,.success),
html[data-seto-ui="v2"] :is(.status-card,.sync-status)[data-state="idle"]{
  border-color:color-mix(in srgb,var(--seto-success) 34%,var(--seto-line))!important;
  background:color-mix(in srgb,var(--seto-success) 7%,var(--seto-surface-solid))!important;
}
html[data-seto-ui="v2"] .notice:is(.warning,.warn),
html[data-seto-ui="v2"] :is(.sync-status)[data-state="offline"]{
  border-color:color-mix(in srgb,var(--seto-warning) 36%,var(--seto-line))!important;
  background:color-mix(in srgb,var(--seto-warning) 7%,var(--seto-surface-solid))!important;
}
html[data-seto-ui="v2"] .notice:is(.error,.danger),
html[data-seto-ui="v2"] :is(.sync-status)[data-state="error"]{
  border-color:color-mix(in srgb,var(--seto-danger) 36%,var(--seto-line))!important;
  background:color-mix(in srgb,var(--seto-danger) 7%,var(--seto-surface-solid))!important;
}
html[data-seto-ui="v2"] .notice :is(strong,b){color:var(--seto-ink)}

/* ADMIN – derselbe PageHeader-/Metric-Rhythmus wie die übrigen Hauptbereiche */
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-shell{
  width:min(1180px,calc(100% - 32px))!important;
  max-width:1180px!important;
  padding-top:8px!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero{
  min-height:0!important;
  align-items:flex-end!important;
  margin:0 0 20px!important;
  padding:0 2px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero h1{
  margin:4px 0 7px!important;
  font-size:clamp(26px,4vw,36px)!important;
  line-height:1.05!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero p{
  max-width:780px;
  font-size:13px!important;
  line-height:1.5!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-summary-grid{
  gap:12px!important;
  margin:12px 0 16px!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .summary-card{
  min-height:112px;
  padding:16px!important;
  border-radius:16px!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .summary-card strong{font-size:23px!important}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-tabs{
  margin:0 0 14px!important;
  scrollbar-width:none;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-tabs::-webkit-scrollbar{display:none}
html[data-seto-ui="v2"][data-seto-section="admin"] .admin-panel{padding:18px!important;border-radius:18px!important}
html[data-seto-ui="v2"][data-seto-section="admin"] :is(.user-row,.list-row,.feedback-row,.learning-row,.admin-create-card,.system-grid article){
  border-radius:14px!important;
  box-shadow:none!important;
}
html[data-seto-ui="v2"][data-seto-section="admin"] .panel-heading{margin-bottom:14px!important}
html[data-seto-ui="v2"][data-seto-section="admin"] .panel-heading h2{font-size:22px!important}
html[data-seto-ui="v2"][data-seto-section="admin"] .privacy-note{box-shadow:none!important}

/* IMPORT / EXPORT – gleiche Arbeitskarten, Status- und Formularabstände */
html[data-seto-ui="v2"][data-seto-section="importer"] .importer-shell{
  padding-top:4px!important;
  padding-bottom:72px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-section-intro{
  margin:22px 2px 10px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-section-intro h2{
  margin:0!important;
  color:var(--seto-ink)!important;
  font-size:15px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .import-section-intro p{
  margin:4px 0 0!important;
  color:var(--seto-muted)!important;
  font-size:12px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] :is(.import-work-card,.setup-work-card,.stored-vdn-card,.export-account-card){
  border-radius:16px!important;
  box-shadow:var(--seto-shadow-soft)!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] :is(.import-work-card>.head,.section-head,.previewHead){
  align-items:flex-start!important;
  gap:12px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] :is(.form-grid,.export-selection-grid){gap:12px!important}
html[data-seto-ui="v2"][data-seto-section="importer"] :is(.local-actions,.export-seto-actions,.vdn-drop-actions){
  gap:8px!important;
  flex-wrap:wrap!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .importer-dashboard-grid>.action{
  min-height:156px!important;
  border-radius:16px!important;
}
html[data-seto-ui="v2"][data-seto-section="importer"] .importer-dashboard-grid>.action h2{font-size:17px!important}
html[data-seto-ui="v2"][data-seto-section="importer"] .importer-dashboard-grid>.action p{font-size:12px!important;line-height:1.5!important}

/* HILFE & WISSEN – Lesefläche und mobile Navigation an die App-Shell angleichen */
html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar{
  min-height:54px!important;
  padding:8px 18px!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar-title strong{font-size:14px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar-title span{font-size:10px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .search{min-height:38px!important;border-radius:11px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .layout{grid-template-columns:225px minmax(0,1fr)!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .sidebar{padding:12px 10px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .nav-item{padding:9px 10px!important;font-size:12px!important;border-radius:10px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] #content{padding:28px 34px 72px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] :is(.hero h1,.section-head h1){
  font-size:clamp(27px,4vw,36px)!important;
  margin:4px 0 9px!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] :is(.hero p,.section-head p){
  font-size:14px!important;
  line-height:1.55!important;
}
html[data-seto-ui="v2"][data-seto-section="docs"] .section-head{margin-bottom:18px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .card{padding:18px!important;border-radius:16px!important;margin-bottom:12px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .cards{gap:12px!important}
html[data-seto-ui="v2"][data-seto-section="docs"] .status-card{border-radius:16px!important;box-shadow:none!important}

/* SYSTEMSTATUS – Diagnose wie andere SETO-Metriken, nicht wie alte Kalenderkarte */
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-diagnostics{padding:18px!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts>div{
  min-height:78px;
  justify-content:center;
  padding:12px!important;
  border:1px solid var(--seto-line)!important;
  border-radius:13px!important;
  background:var(--seto-surface-soft)!important;
}
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts span{color:var(--seto-muted)!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts strong{color:var(--seto-ink)!important;font-size:14px!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .sync-actions{gap:10px!important}

@media(max-width:900px){
  html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar{
    min-height:50px!important;
    flex-direction:row!important;
    padding:6px 10px!important;
  }
  html[data-seto-ui="v2"][data-seto-section="docs"] .docs-toolbar-title{display:none!important}
  html[data-seto-ui="v2"][data-seto-section="docs"] .search{width:100%!important}
  html[data-seto-ui="v2"][data-seto-section="docs"] .sidebar{
    top:calc(var(--seto-global-h,66px) + 50px)!important;
    padding:6px 8px!important;
  }
  html[data-seto-ui="v2"][data-seto-section="docs"] #content{padding:22px 16px 76px!important}
}
@media(max-width:760px){
  html[data-seto-ui="v2"][data-seto-section="admin"] .admin-shell{width:calc(100% - 20px)!important}
  html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}
  html[data-seto-ui="v2"][data-seto-section="admin"] .admin-hero .admin-btn{width:100%}
  html[data-seto-ui="v2"][data-seto-section="admin"] .admin-panel{padding:14px!important}
  html[data-seto-ui="v2"][data-seto-section="importer"] .importer-dashboard-grid>.action{min-height:0!important}
  html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts{grid-template-columns:1fr!important}
  html[data-seto-ui="v2"][data-seto-section="profil"] .sync-facts>div{min-height:64px}
}

/* Explicit app choice owns native controls, independently of the OS. */
html[data-seto-ui="v2"][data-theme="light"]{color-scheme:light}
html[data-seto-ui="v2"][data-theme="dark"]{color-scheme:dark}
@media(prefers-color-scheme:dark){html[data-seto-ui="v2"]:not([data-theme]){color-scheme:dark}}


/* From: shared/seto-contrast.css */
/* SETO 2.1.032 – global contrast hardening
   Final presentation layer. Keeps semantic/status colors intact while ensuring
   readable foreground/background pairs in light and dark modes. */

/* ---------- shared readable tokens ---------- */
html[data-seto-ui="v2"]{
  --seto-readable-muted:#475467;
  --seto-readable-subtle:#344054;
  --seto-readable-link:#245f96;
}
html[data-seto-ui="v2"][data-theme="dark"]{
  --seto-readable-muted:#b9c5d3;
  --seto-readable-subtle:#d5dde7;
  --seto-readable-link:#8fc3ef;
  --seto-readable-accent:#8fc3ef;
}

/* Older module token families occasionally override the shared v2 tokens. */
html[data-seto-ui="v2"]{
  --muted:var(--seto-readable-muted)!important;
  --text-2:var(--seto-readable-subtle)!important;
  --import-muted:var(--seto-readable-muted)!important;
  --a-muted:var(--seto-readable-muted)!important;
  --analysis-muted:var(--seto-readable-muted)!important;
  --salary-muted:var(--seto-readable-muted)!important;
}
html[data-seto-ui="v2"][data-theme="dark"]{
  --muted:var(--seto-readable-muted)!important;
  --text-2:var(--seto-readable-subtle)!important;
  --import-muted:var(--seto-readable-muted)!important;
  --a-muted:var(--seto-readable-muted)!important;
  --analysis-muted:var(--seto-readable-muted)!important;
  --salary-muted:var(--seto-readable-muted)!important;
  --purple-text:#cfe6fa!important;
}

/* Common secondary text. Avoid pale grey on glass/white surfaces. */
html[data-seto-ui="v2"] body.seto-ui :is(.muted,.subtle,.hint,.sub,.source,.field-source,.menu-desc,.table-footnote,.basis-source){
  color:var(--seto-readable-muted)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(label,.muted,.subtle,.hint,.sub,.source,.field-source,.menu-desc,.table-footnote,.basis-source){
  color:var(--seto-readable-muted)!important;
}

/* Accent text needs a lighter tint on dark backgrounds. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(.eyebrow,.kicker,.panel-kicker,.admin-eyebrow,.import-kicker,.export-kicker,.tool-kicker,.vdn-kicker){
  color:var(--seto-readable-accent)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui h1{
  color:#dcecff!important;
}

/* ---------- importer ----------
   Unified shell made this header transparent while importer text stayed white. */
html[data-seto-ui="v2"] body[data-seto-v2-area="import"] .import-hero.seto-v2-page-header{
  padding:24px!important;
  border:1px solid rgba(143,195,239,.28)!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 88% 0,rgba(255,255,255,.16),transparent 18rem),
    linear-gradient(135deg,#102d4a,#1f527f 56%,#3278b4)!important;
  color:#fff!important;
  box-shadow:0 15px 36px rgba(17,50,82,.17)!important;
}
html[data-seto-ui="v2"] body[data-seto-v2-area="import"] .import-hero.seto-v2-page-header :is(h1,p,.back,.import-kicker,.pill){
  color:#fff!important;
}
html[data-seto-ui="v2"] body[data-seto-v2-area="import"] .import-hero.seto-v2-page-header p{color:rgba(255,255,255,.86)!important}
html[data-seto-ui="v2"] body[data-seto-v2-area="import"] .import-hero.seto-v2-page-header :is(.back,.import-kicker){color:#d7eafb!important}
html[data-seto-ui="v2"] body[data-seto-v2-area="import"] .import-hero.seto-v2-page-header .pill{
  background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.30)!important
}

/* ---------- admin ----------
   UI v2 intentionally uses a light hero surface: use dark copy on it. */
html[data-seto-ui="v2"] body.seto-admin-page .admin-hero{
  color:var(--seto-ink)!important;
}
html[data-seto-ui="v2"] body.seto-admin-page .admin-hero :is(h1,p){
  color:var(--seto-ink)!important;
}
html[data-seto-ui="v2"] body.seto-admin-page .admin-hero .admin-eyebrow{
  color:var(--seto-blue)!important;
}
html[data-seto-ui="v2"] body.seto-admin-page .admin-hero .admin-btn.primary{
  background:var(--seto-navy)!important;border-color:var(--seto-navy)!important;color:#fff!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-admin-page .admin-hero :is(h1,p){color:var(--seto-ink)!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-admin-page .admin-hero .admin-eyebrow{color:var(--seto-readable-accent)!important}

/* ---------- payroll ---------- */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .panel-head{
  background:var(--seto-surface-solid)!important;
  color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .panel-head :is(h2,p,strong,span){
  color:inherit!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .panel-head p{color:var(--seto-readable-muted)!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(.advanced-disclosure,.diagnostic-panel,.calendar-trace) summary{
  color:var(--seto-readable-subtle)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(.period-arrow,.icon-action,.secondary-button,.text-button,.user-chip){
  background:var(--seto-surface-solid)!important;
  color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .primary-button{
  background:#245f96!important;border-color:#2f75b5!important;color:#fff!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(.editor-head,.reconcile-summary>div,.calendar-basis-grid>div){
  color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}

/* ---------- calendar ---------- */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page :is(.cal-nav .btn,.btn.icon,.btn.sm){
  background:var(--seto-surface-solid)!important;
  color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page .cal-toggle{
  background:var(--seto-surface-solid)!important;
  color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page .cal-toggle:has(input:checked){
  background:color-mix(in srgb,#2f75b5 22%,var(--seto-surface-solid))!important;
  color:#dcecff!important;
  border-color:rgba(143,195,239,.38)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page .cal-toggle small{color:var(--seto-readable-muted)!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page .menu-icon{color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-calendar-page .menu-title{color:var(--seto-ink)!important}

/* ---------- analysis ---------- */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page :is(label,.form-label,.simulation-form label){
  color:var(--seto-readable-muted)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page :is(.eyebrow,.kicker,.panel-kicker){
  color:var(--seto-readable-accent)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page h1{color:#dcecff!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page :is(.secondary,.btn.secondary,.button.secondary){
  background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line)!important;
}

/* ---------- forms ---------- */
html[data-seto-ui="v2"] body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  color:var(--seto-ink)!important;
}
html[data-seto-ui="v2"] body.seto-ui :is(input,textarea)::placeholder{color:#667085!important;opacity:1}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(input,textarea)::placeholder{color:#9eabba!important;opacity:1}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(input:disabled,select:disabled,textarea:disabled){
  color:#b9c5d3!important;-webkit-text-fill-color:#b9c5d3!important;opacity:1;
}

/* ---------- legal/docs/public small copy ---------- */
html[data-seto-ui="v2"] body.seto-ui :is(.docs-toolbar,.sidebar,.page,.card) small{color:var(--seto-readable-muted)!important}

/* Focus indication must remain visible in both themes. */
html[data-seto-ui="v2"] :focus-visible{outline:3px solid #5b9bd5!important;outline-offset:2px}
html[data-seto-ui="v2"][data-theme="dark"] :focus-visible{outline-color:#8fc3ef!important}

/* ---------- 2.1.032 audit pass II: local light islands + manual theme coverage ---------- */

/* The payroll VDN is deliberately a printable light document even when the app is dark.
   Isolate its typography from global dark-mode tokens. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet{
  --ink:#111!important;
  --muted:#555f6b!important;
  --surface:#fff!important;
  --surface-2:#eef1f4!important;
  background:#fff!important;
  color:#111!important;
  border-color:#aeb4bb!important;
  box-shadow:0 12px 34px rgba(0,0,0,.34)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet :is(.vdn-company h1,.vdn-period-box strong,.vdn-person strong,.vdn-mini-block dd,.deduction-grid strong,.vdn-net strong,.vdn-table td,.vdn-table tfoot td){
  color:#111!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet :is(.vdn-kicker,.vdn-company p,.vdn-label,.vdn-period-box span,.vdn-block-title small,.vdn-mini-block dt,.deduction-grid span,.vdn-person .vdn-fsq-inline){
  color:#555f6b!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-person .vdn-fsq-inline{
  background:#f4f6f8!important;
  border-color:#b8bcc1!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-person .vdn-fsq-inline :is(.fsq-inline-title,strong){color:#111!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-block-title{
  background:#e4e8ec!important;
  color:#20262d!important;
  border-color:#7e858d!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-table th{
  background:#435264!important;
  color:#fff!important;
  border-color:#667384!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet :is(.vdn-mini-block,.deduction-grid,.vdn-net,.vdn-person){
  border-color:#8d949c!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet :is(.vdn-mini-block,.deduction-grid>div,.vdn-net>div){background:#f7f8f9!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-net .payout{background:#e4ebf3!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-net .payout strong{color:#17365d!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-empty{color:#555f6b!important}

/* Auth CSS historically reacted only to prefers-color-scheme. Respect SETO's explicit theme. */
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] :is(.link-button,.account-links a,.legal-mini a,.check-row a,.public-tools a){
  color:#8fc3ef!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] :is(.consent-box,.mini-note,.mode-card,.local-login-panel,.recovery-form){
  color:#d5dde7!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .consent-box{
  background:#222936!important;
  border-color:#3b4555!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .check-row{color:#c4cfdd!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .mini-note{color:#b9c5d3!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] :is(input,select,textarea){background:#222936!important;color:#f3f6fa!important;border-color:#465164!important}

/* Public pages also used OS preference only. Explicit app theme must win. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-start-page{
  --bg:#0f1117!important;
  --card:#1b202b!important;
  --text:#f3f6fa!important;
  --muted:#b9c5d3!important;
  --border:#3b4555!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-start-page :is(.tool-card strong,.section-heading .eyebrow,.account-section .eyebrow){color:#8fc3ef!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-start-page :is(.login-link,.tool-card,.account-section){background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-start-page :is(.section-heading p,.account-section p,.tool-card p,.public-footer,.public-brand small){color:var(--muted)!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-start-page .account-section .btn.primary{background:#2f75b5!important;color:#fff!important}

/* Browser-default links are too dark on minimal dark redirect/tool pages. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui a:not([class]){color:#8fc3ef}

/* Export/import workflow: hard-coded light surfaces need explicit dark counterparts. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page :is(.export-workflow-block,.export-advanced-options,.export-selected-files-main,.export-step,.export-consent-compact){
  background:var(--seto-surface-solid)!important;
  border-color:var(--seto-line)!important;
  color:var(--seto-ink)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .workflow-number{background:#245f96!important;color:#fff!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page :is(.export-privacy-details summary,.export-advanced-options summary,.export-preview-details summary){color:#d5dde7!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .export-step>span{background:#354052!important;color:#e8eef6!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .export-step.is-current{background:#172f49!important;color:#b9dcfb!important;border-color:#517da8!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .export-step.is-done{background:#153226!important;color:#8ce5aa!important;border-color:#337650!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .export-consent-compact:has(input:checked){background:#153226!important;border-color:#337650!important}

/* Admin counters and body-specific muted token were slightly below AA. */
html[data-seto-ui="v2"] body.dedicated-admin{--a-muted:#475467!important}
html[data-seto-ui="v2"][data-theme="dark"] body.dedicated-admin{--a-muted:#b9c5d3!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-admin-page .count-badge{
  background:#263b52!important;color:#dcecff!important;border:1px solid #3e6388!important;
}

/* Simulation has descriptive inline spans with hard-coded #667085. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page :is(.advanced-details>summary span,.hero-copy>span:not(.eyebrow),.hero-metrics span,.avg-bar-item>span,.month-delta-card span,.trend-legend){
  color:#b9c5d3!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page :is(.table-details>summary,.advanced-details>summary strong){color:#dcecff!important}

/* Documentation code and active navigation stay readable on dark cards. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-hilfe-page .nav-item.active{color:#cfe6fa!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-hilfe-page code{background:#222836!important;color:#e6edf6!important;border-color:#3c4657!important}

/* Near-AA legacy muted values in light mode: keep a single safer minimum. */
html[data-seto-ui="v2"] body.seto-ui :is(.admin-panel,.tool-card,.card,.panel,.section-head,.intro,.field) :is(p,small):not(.status-chip):not(.badge){
  text-decoration-thickness:auto;
}

/* ---------- 2.1.032 audit pass III ---------- */

/* Public calendar exporter: explicit theme selection must not depend on OS preference. */
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] body{
  background:#111827!important;color:#eef2f7!important;
}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export :is(.hero,.card){
  background:#18212f!important;border-color:#344054!important;color:#eef2f7!important;
}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export :is(.hero p,.note,.status,.brand small,.check small,.help ol){color:#b9c5d3!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export :is(.field select,.field input[type="number"]){background:#111827!important;border-color:#475467!important;color:#eef2f7!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export .check{border-color:#344054!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export .privacy{background:#17324f!important;color:#c9ddf5!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export .top>a:last-child{color:#8fc3ef!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export .eyebrow{color:#8fc3ef!important}
html[data-seto-ui="v2"][data-seto-section="public"][data-theme="dark"] .public-export h1{color:#eef2f7!important}

/* Auth auxiliary tool links are light cards in light mode, dark cards in explicit dark mode. */
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .public-tools a{
  background:#222936!important;color:#b9dcfb!important;border-color:#3b4555!important;
}

/* Finish the VDN light-document island after generic small-text rules. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet small,
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .vdn-fsq-inline small{
  color:#555f6b!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page .vdn-sheet .sr-only{color:#111!important}

/* Import destructive controls must not keep a light card in dark theme. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-import-page .danger-ghost{
  background:#2a2021!important;color:#ffaaa4!important;border-color:#6c3f3d!important;
}

/* Analysis body copy: legacy #6b7785 values were just below AA on near-white cards. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.card p,.card small,.section-head p,.data-note,.progression-chart-note,.advanced-details>summary span,.hero-copy>span:not(.eyebrow),.hero-metrics span,.avg-bar-item>span,.month-delta-card span,.trend-legend){
  color:var(--seto-readable-muted)!important;
}

/* Docs small blue labels were 4.3:1 on the app background. */
html[data-seto-ui="v2"] body.seto-hilfe-page :is(.eyebrow,.kicker){color:#245f96!important}
html[data-seto-ui="v2"] body.seto-hilfe-page .nav-item.active{color:#17365d!important}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-hilfe-page :is(.eyebrow,.kicker,.nav-item.active){color:#cfe6fa!important}

/* Minimal redirect pages have no module typography layer. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page > :is(main,section,div) :is(p,li){color:var(--seto-readable-muted)}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page > :is(main,section,div) a:not([class]){color:#8fc3ef!important}

/* ---------- 2.1.032 audit pass IV: gradient islands + disabled controls ---------- */

/* Public landing hero is always dark/blue, independent from app theme. Keep all copy and
   navigation tiles in the hero on the same high-contrast palette. */
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero{
  color:#fff!important;
}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-copy :is(h1,.eyebrow){color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-copy>p{color:rgba(255,255,255,.88)!important}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-summary a{
  background:rgba(10,37,64,.28)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-summary a :is(span,strong,small,b){color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-summary a span{color:rgba(255,255,255,.76)!important}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-summary a small{color:rgba(255,255,255,.86)!important}
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-actions .btn.secondary{
  background:rgba(255,255,255,.92)!important;color:#17365d!important;border-color:rgba(255,255,255,.96)!important;
}

/* Auth brand panel is another permanent dark gradient island. */
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel :is(.auth-brand strong,.auth-brand small,.auth-brand-copy h2){color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel .auth-brand small{color:rgba(255,255,255,.78)!important}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel .auth-brand-copy .eyebrow{color:#b9dcfb!important}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel .auth-brand-copy p{color:rgba(255,255,255,.88)!important}
html[data-seto-ui="v2"][data-seto-section="auth"] .auth-brand-panel .auth-brand-footer a{color:rgba(255,255,255,.84)!important}

/* Disabled actions are still readable. Avoid white text on washed-out disabled buttons. */
html[data-seto-ui="v2"] body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button):disabled,
html[data-seto-ui="v2"] body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button)[aria-disabled="true"]{
  opacity:1!important;
  background:#e1e7ee!important;
  color:#526174!important;
  border-color:#c7d0dc!important;
  box-shadow:none!important;
  -webkit-text-fill-color:#526174!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button):disabled,
html[data-seto-ui="v2"][data-theme="dark"] body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button)[aria-disabled="true"]{
  background:#263243!important;
  color:#b9c5d3!important;
  border-color:#435064!important;
  -webkit-text-fill-color:#b9c5d3!important;
}

/* Small accent labels on plain light surfaces use the deeper accessible blue. */
html[data-seto-ui="v2"] body.seto-profil-page .eyebrow{color:#245f96!important}

/* Public hero tiles need an opaque-enough dark surface for white text. */
html[data-seto-ui="v2"][data-seto-section="public"] .public-hero .hero-summary a{background:rgba(6,31,57,.58)!important}


/* ---------- 2.1.032: Recovery visibility + complete theme/contrast audit ----------
   Recovery remains technically available, but is absent from the normal login/setup flow.
   Explicit theme selection always wins over legacy prefers-color-scheme rules. */
#showRecoveryBtn,
#setupRecoveryDeferred,
#setupRecoveryNext{
  display:none!important;
}

/* Light theme baseline: dark navy/near-black copy on white and pale surfaces. */
html[data-seto-ui="v2"]:not([data-theme="dark"]) body.seto-ui,
html[data-seto-ui="v2"][data-theme="light"] body.seto-ui{
  --seto-readable-muted:#475467!important;
  --seto-readable-subtle:#344054!important;
}

/* Payroll: only genuinely light islands keep dark copy in dark mode. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(
  .notice-box,
  .help-toc,
  .help-toc-head,
  .help-toc-head button,
  .help-article
){
  --ink:#111827!important;
  --text:#111827!important;
  --text-secondary:#344054!important;
  --muted:#475467!important;
  color:#17365d!important;
  -webkit-text-fill-color:#17365d!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(
  .notice-box,
  .help-toc,
  .help-toc-head,
  .help-article
) :is(h1,h2,h3,h4,strong,summary,label,td,th){
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(
  .notice-box,
  .help-toc,
  .help-toc-head,
  .help-article
) :is(p,small,.muted,.subtle,.hint,.basis-source){
  color:#475467!important;
  -webkit-text-fill-color:#475467!important;
}

/* Payroll dark controls are true dark surfaces; never force navy text onto them. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(
  .shift-stat,
  .wage-editor-row input,
  .wage-editor-row select,
  .net-row input,
  .icon-btn,
  .vdn-period-control select
){
  background:var(--seto-surface-solid)!important;
  color:var(--seto-ink)!important;
  -webkit-text-fill-color:var(--seto-ink)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(input[readonly],select:disabled){
  background:var(--seto-surface-soft)!important;
  color:var(--seto-readable-muted)!important;
  -webkit-text-fill-color:var(--seto-readable-muted)!important;
  border-color:var(--seto-line)!important;
}
html[data-seto-ui="v2"][data-theme="dark"] body.seto-payroll-page :is(.badge-ts,.badge-ns,.badge-entry,.badge-holiday){
  background:rgba(91,155,213,.13)!important;
  color:#dcecff!important;
  -webkit-text-fill-color:#dcecff!important;
  border-color:rgba(143,195,239,.20)!important;
}

/* Explicit LIGHT must win even when the OS/browser itself prefers dark. */
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="auth"]{
  --bg:#f4f5f8!important;
  --card:#fff!important;
  --text:#1f2733!important;
  --muted:#475467!important;
  --border:#d9dee7!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="auth"] :is(input,select,textarea){
  background:#fff!important;color:#1f2733!important;border-color:#c7d0dc!important;
  -webkit-text-fill-color:#1f2733!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="auth"] :is(.btn.secondary,.public-tools a,.consent-box,.mode-card,.local-login-panel,.recovery-form){
  background:#f8fafc!important;color:#344054!important;border-color:#d9dee7!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="auth"] :is(.account-links a,.legal-mini a,.check-row a,.link-button){color:#245f96!important}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="auth"] .error{background:#feeceb!important;color:#991b1b!important}

html[data-seto-ui="v2"][data-theme="light"][data-seto-section="public"]{
  --bg:#f0f2f5!important;--card:#fff!important;--text:#1f2733!important;--muted:#475467!important;--border:#dfe5ec!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="public"] body{background:var(--bg)!important;color:var(--text)!important}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="public"] :is(.login-link,.tool-card,.account-section){background:#fff!important;color:#1f2733!important;border-color:#dfe5ec!important}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="public"] :is(.public-brand small,.section-heading p,.account-section p,.tool-card p,.public-footer){color:#475467!important}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="public"] .tool-card strong{color:#17365d!important}

/* Calendar legacy prefers-color-scheme rules previously overrode manual light mode. */
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="kalender"] body.seto-calendar-page .menu-icon{
  background:color-mix(in srgb,#2f75b5 14%,#fff)!important;color:#17365d!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="kalender"] body.seto-calendar-page .help-note{
  background:#e9f1fa!important;color:#344054!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="kalender"] body.seto-calendar-page .formula{
  background:rgba(0,0,0,.05)!important;color:#111827!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="kalender"] body.seto-calendar-page .compare-status.ok{color:#15803d!important}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="kalender"] body.seto-calendar-page .compare-status.warn{color:#9a5700!important}

/* Salary analysis navigation had an unguarded OS-dark rule. */
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="analyse"] .salary-analysis-nav a{
  background:#fff!important;color:#172033!important;border-color:#d8dee8!important;
}
html[data-seto-ui="v2"][data-theme="light"][data-seto-section="analyse"] .salary-analysis-nav a.active{
  background:#17365d!important;color:#fff!important;border-color:#17365d!important;
}

/* Small text on light surfaces: AA-safe dark navy/slate. */
html[data-seto-ui="v2"][data-theme="light"] body.seto-start-page :is(
  .overview-head small,
  .home-overview-grid>.overview-card:not(.overview-card-salary) .overview-head small,
  .stat-tile small,
  .salary-stat small,
  .salary-stat span,
  .start-card-head small
){color:#526174!important}
html[data-seto-ui="v2"][data-theme="light"] body.seto-import-page .import-brand small{color:#526174!important}
html[data-seto-ui="v2"][data-theme="light"] body.seto-import-page .import-card-badge{color:#526174!important}
html[data-seto-ui="v2"][data-theme="light"] body.seto-analyse-page .compare-arrow{color:#245f96!important}
html[data-seto-ui="v2"][data-theme="light"] body.seto-profil-page .password-error{color:#991b1b!important;border-color:#b42318!important}

/* Explicitly readable calendar/export labels. */
html[data-seto-ui="v2"] body.seto-calendar-page .legend-ferien{color:#245f96!important}
html[data-seto-ui="v2"] body.seto-import-page .export-drop-zone.is-locked .export-drop-icon{color:#526174!important}

/* 2.1.058: paired surfaces also before the UI adapter adds body classes. */
html[data-seto-ui="v2"] {
  --seto-paired-bg:#fff; --seto-paired-text:#24364b; --seto-paired-muted:#475467;
}
html[data-seto-ui="v2"][data-theme="dark"] {
  --seto-paired-bg:#1f2937; --seto-paired-text:#eef3f8; --seto-paired-muted:#b9c5d3;
}
html[data-seto-ui="v2"] body :is(.delete-card,.new-invite,.json-preview,.kb-release,.roadmap-tabs,.learning-level,.setup-choice .choice-icon) {
  background:var(--seto-paired-bg)!important; color:var(--seto-paired-text)!important;
}
html[data-seto-ui="v2"] body .learning-level:has(input:checked) {
  background:var(--seto-paired-bg)!important; border-color:var(--seto-readable-link)!important;
}
html[data-seto-ui="v2"] body :is(.delete-warning,.danger-note) {background:#fff2f2!important;color:#a51d27!important}
html[data-seto-ui="v2"] body .admin-btn.danger {background:#b4232b!important;border-color:#b4232b!important;color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="start"] body .setup-card h3 {color:var(--seto-paired-text)!important}
html[data-seto-ui="v2"][data-seto-section="start"] body :is(.start-card-head small,.setup-kicker,.simple-card p,.app-card p,.quick-card p) {color:var(--seto-paired-muted)!important}
html[data-seto-ui="v2"][data-seto-section="start"] body #nextShiftCalendarLink {background:var(--seto-paired-bg)!important;color:var(--seto-paired-text)!important}
html[data-seto-ui="v2"][data-seto-section="importer"] body .learning-level strong small {background:#e7f0ff!important;color:#244568!important}
/* A primary KPI is content, not a primary action button. */
html[data-seto-ui="v2"][data-seto-section="analyse"] body .user-kpi.primary {background:var(--seto-paired-bg)!important;color:var(--seto-paired-text)!important}
html[data-seto-ui="v2"] body .vdn-sheet .vdn-fsq-inline .fsq-help-popover {background:#fff!important;color:#24364b!important}
html[data-seto-ui="v2"] body .vdn-sheet .vdn-fsq-inline .fsq-help-popover :is(strong,small,p,span) {color:#24364b!important}
html[data-seto-ui="v2"] body .help-quick-card {background:#fff!important;color:#24364b!important}
html[data-seto-ui="v2"] body .help-quick-card :is(p,span,small,strong) {color:#24364b!important}
html[data-seto-ui="v2"] body .retro-grid article {background:var(--seto-paired-bg)!important;color:var(--seto-paired-text)!important}
html[data-seto-ui="v2"][data-seto-section="docs"] body .privacy-button:not(.secondary) {background:#245f96!important;color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="docs"] body .privacy-button.danger {background:#b4232b!important;color:#fff!important}
html[data-seto-ui="v2"][data-seto-section="start"] body {--start-muted:var(--seto-paired-muted)}
html[data-seto-ui="v2"][data-seto-section="start"] body .start-dashboard-eyebrow {color:var(--seto-readable-link)!important;opacity:1}
html[data-seto-ui="v2"] body .smart-storage-details > summary {color:var(--seto-readable-link)!important}
html[data-seto-ui="v2"] body .import-card strong {color:var(--seto-readable-link)!important}
html[data-seto-ui="v2"] body .st-month-table th small {color:var(--seto-paired-muted)!important;opacity:1}
html[data-seto-ui="v2"] body :is(.metric-toggle,.result-tabs) button:not(.active) {color:var(--seto-paired-muted)!important}
html[data-seto-ui="v2"] body .schritt-nr {background:#245f96!important;color:#fff!important}

/* 2.1.066: readable loading and recovery state on the start page. */
html[data-seto-ui="v2"] body .start-load-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:12px 0;border:1px solid var(--seto-paired-muted);border-radius:12px;background:var(--seto-paired-bg);color:var(--seto-paired-text)}
html[data-seto-ui="v2"] body .start-load-status[hidden]{display:none}
html[data-seto-ui="v2"] body .start-load-status span{display:block;color:var(--seto-paired-muted);font-size:13px}
html[data-seto-ui="v2"] body .start-load-status button{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid #245f96;border-radius:8px;background:#245f96;color:#fff;font:inherit;cursor:pointer}
html[data-seto-ui="v2"] body .start-load-status button:focus-visible{outline:3px solid var(--seto-readable-link);outline-offset:3px}
@media(max-width:480px){html[data-seto-ui="v2"] body .start-load-status{align-items:stretch;flex-direction:column}}

/* SETO 2.1.078 – Profil-Abrechnungsbereiche */
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section{background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-line-strong)!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-readonly-section{background:var(--seto-surface-soft)!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section :is(h3,h4,strong,summary){color:var(--seto-ink)!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section :is(label,small,.form-hint){color:var(--seto-readable-muted)!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:var(--seto-surface-solid)!important;color:var(--seto-ink)!important;border-color:var(--seto-readable-muted)!important;opacity:1!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section :is(input[readonly],textarea[readonly],input:disabled,select:disabled,textarea:disabled){background:var(--seto-surface-soft)!important;color:var(--seto-readable-muted)!important;border-color:var(--seto-readable-muted)!important;opacity:1!important}
html[data-seto-ui="v2"][data-seto-section="profil"] .profile-form-section :is(input,select,textarea,summary):focus-visible{outline:3px solid var(--seto-readable-link)!important;outline-offset:2px!important;box-shadow:none!important}


/* SETO 2.1.159 – Analyse: UI2 changed the topbar from blue hero to glass surface;
   keep its copy/status on the corresponding surface palette. */
html[data-seto-ui="v2"][data-seto-section="analyse"] body.seto-analyse-page .topbar{color:var(--seto-ink)!important}
html[data-seto-ui="v2"][data-seto-section="analyse"] body.seto-analyse-page .topbar p{color:var(--seto-readable-muted,var(--seto-muted))!important}
html[data-seto-ui="v2"][data-seto-section="analyse"] body.seto-analyse-page .topbar .status{
  background:var(--seto-surface-soft)!important;color:var(--seto-ink)!important;border:1px solid var(--seto-line)!important;
}

/* SETO 2.1.159 – Auth: explicit SETO dark theme must not depend on OS prefers-color-scheme. */
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .auth-card h1{color:#f3f6fa!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] :is(.auth-text-action,.auth-more-content a,.auth-inline-button){color:#b9d8f3!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .login-mode-option{color:#b9c5d3!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .login-mode-option.active{
  background:#2a3241!important;color:#f3f6fa!important;border-color:#4a6079!important;box-shadow:none!important;
}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] :is(.auth-inline-button,.auth-more-content>a){background:#222936!important}

/* SETO 2.1.160 – Mini-App tiles follow the explicit SETO theme. */
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .auth-miniapp-tile{background:linear-gradient(135deg,#202938,#1b2230)!important;border-color:#344154!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .auth-miniapp-copy strong{color:#f4f7fb!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .auth-miniapp-copy small{color:#aebed0!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="dark"] .auth-miniapp-arrow{color:#8bc2ec!important}
html[data-seto-ui="v2"][data-seto-section="auth"][data-theme="light"] .auth-miniapp-tile{background:linear-gradient(135deg,color-mix(in srgb,var(--card) 94%,var(--blue) 6%),color-mix(in srgb,var(--card) 98%,transparent))!important}


/* From: analyse/analysis-unified.css */
/* SETO 2.1.172 – Analyse an die gemeinsame SETO-Oberfläche angleichen.
   Fachliche Diagrammfarben bleiben in den jeweiligen Analysemodulen erhalten. */
:root{
  --analysis-navy:var(--seto-primary-strong,#17365d);
  --analysis-blue:var(--seto-primary,#2f75b5);
  --analysis-bg:var(--seto-bg,#f3f5f7);
  --analysis-card:var(--seto-card,#fff);
  --analysis-text:var(--seto-text,#172033);
  --analysis-muted:var(--seto-muted,#667085);
  --analysis-border:var(--seto-border,#d9dee7);
  --analysis-sidebar:0px;
  --gzw-bg:var(--seto-bg,#f3f5f7);
  --gzw-card:var(--seto-card,#fff);
  --gzw-text:var(--seto-text,#172033);
  --gzw-muted:var(--seto-muted,#667085);
  --gzw-line:var(--seto-border,#d9dee7);
  --gzw-soft:var(--seto-card-2,#f7f9fc);
  --salary-bg:var(--seto-bg,#f3f5f7);
  --salary-card:var(--seto-card,#fff);
  --salary-text:var(--seto-text,#172033);
  --salary-muted:var(--seto-muted,#667085);
  --salary-navy:var(--seto-primary-strong,#17365d);
  --salary-blue:var(--seto-primary,#2f75b5);
}

/* Die frühere Analyse-Sidebar existiert im HTML nicht mehr. Keine leere Desktopspalte reservieren. */
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-layout{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-sidebar,
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-mobile-nav{display:none!important}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-content{width:100%!important;max-width:none!important;overflow:visible!important}

/* Gemeinsame Seitenbreite und Rhythmus wie Kalender/Abrechnung. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.analysis-content .shell,.analysis-content .tariff-shell,.analysis-content .salary-main,.analysis-content .salary-header-inner,.gzw-shell){
  width:min(1220px,calc(100% - 28px))!important;
  max-width:1220px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.analysis-content .shell,.analysis-content .tariff-shell){padding:20px 0 88px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-content .salary-main{padding:16px 0 88px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-shell{padding:20px 0 88px!important}

/* Lokale Seitenköpfe verwenden dieselbe helle Glass-/Card-Hierarchie. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.salary-header,.gzw-topbar){
  margin:0 0 14px!important;
  padding:18px 20px!important;
  border:1px solid var(--seto-cmp-border,var(--seto-border,#d9dee7))!important;
  border-radius:20px!important;
  background:var(--seto-cmp-surface-strong,var(--seto-card,#fff))!important;
  color:var(--seto-text,#172033)!important;
  box-shadow:var(--seto-cmp-shadow-soft,0 6px 22px rgba(23,54,93,.055))!important;
  backdrop-filter:blur(20px) saturate(1.12);
  -webkit-backdrop-filter:blur(20px) saturate(1.12);
}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.gzw-topbar){display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.gzw-topbar) h1,
html[data-seto-ui="v2"] body.seto-analyse-page .salary-header h1{
  margin:0 0 5px!important;font-size:clamp(1.45rem,3vw,1.85rem)!important;line-height:1.12!important;letter-spacing:-.025em!important;color:var(--seto-text,#172033)!important
}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.gzw-topbar,.salary-header) p{margin:0!important;color:var(--seto-muted,#667085)!important;line-height:1.5!important}
html[data-seto-ui="v2"] body.seto-analyse-page .salary-header{border-radius:20px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .salary-header-inner{width:100%!important;margin:0!important;max-width:none!important}
html[data-seto-ui="v2"] body.seto-analyse-page .salary-header :is(.back-link,.period-select,.eyebrow.light){color:var(--seto-muted,#667085)!important;opacity:1!important}
html[data-seto-ui="v2"] body.seto-analyse-page .salary-header .period-select select{background:var(--seto-card,#fff)!important;color:var(--seto-text,#172033)!important;border-color:var(--seto-border,#d9dee7)!important}

/* Analyse-Hero: keine separate violette Produktsprache. */
html[data-seto-ui="v2"] body.seto-analyse-page .user-hero{
  padding:18px 20px!important;border:1px solid var(--seto-cmp-border,var(--seto-border,#d9dee7))!important;border-radius:20px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--seto-primary,#2f75b5) 8%,var(--seto-card,#fff)),var(--seto-card,#fff))!important;
  box-shadow:var(--seto-cmp-shadow-soft,0 6px 22px rgba(23,54,93,.055))!important
}
html[data-seto-ui="v2"] body.seto-analyse-page .eyebrow{color:var(--seto-primary,#2f75b5)!important}
html[data-seto-ui="v2"] body.seto-analyse-page .user-kpi.primary{border-color:color-mix(in srgb,var(--seto-primary,#2f75b5) 28%,var(--seto-border,#d9dee7))!important;box-shadow:inset 0 3px 0 var(--seto-primary,#2f75b5)!important}
html[data-seto-ui="v2"] body.seto-analyse-page .composition-meter i{color:var(--seto-primary,#2f75b5)!important}

/* Einheitliche Kartenfamilie – Spezialmodule dürfen Inhalte, nicht die Shell neu definieren. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.card,.salary-card,.month-card,.gzw-kpi,.gzw-scenario,.gzw-mini,.gzw-lzk,.sv-kpi,.sv-explain,.market-kpi,.market-insight,.market-values,.market-source-wrap,.provision-kpis article,.provision-plans article){
  border:1px solid var(--seto-cmp-border,var(--seto-border,#d9dee7))!important;
  border-radius:20px!important;
  background:var(--seto-cmp-surface,var(--seto-card,#fff))!important;
  box-shadow:var(--seto-cmp-shadow-soft,0 6px 22px rgba(23,54,93,.055))!important;
}
html[data-seto-ui="v2"] body.seto-analyse-page .month-card{margin-top:0!important;position:static!important}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.gzw-subcard,.salary-card,.card){padding:17px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-kpi.primary{
  background:linear-gradient(135deg,var(--seto-primary-strong,#17365d),var(--seto-primary,#2f75b5))!important;
  color:#fff!important;border-color:transparent!important
}

/* Sekundäre Navigation/Filter sehen in allen Modulen gleich aus. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.analysis-question-nav,.salary-analysis-nav,.comparison-toolbar,.gzw-control,.sv-toolbar,.market-toolbar){
  border:1px solid var(--seto-cmp-border,var(--seto-border,#d9dee7))!important;
  border-radius:16px!important;
  background:var(--seto-cmp-surface-strong,var(--seto-card,#fff))!important;
  box-shadow:var(--seto-cmp-shadow-soft,0 6px 22px rgba(23,54,93,.055))!important;
}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav{padding:5px!important;margin:0 0 14px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav::-webkit-scrollbar{display:none}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav a{
  flex:0 0 auto!important;border:0!important;border-radius:11px!important;padding:9px 12px!important;background:transparent!important;color:var(--seto-muted,#667085)!important;font-size:.8rem!important
}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav a:hover{background:var(--seto-card-2,#f7f9fc)!important;color:var(--seto-text,#172033)!important}

/* Typografie und Meta-Texte aus dem gemeinsamen System. */
html[data-seto-ui="v2"] body.seto-analyse-page :is(.section-head p,.gzw-section-head p,.source-note,.card-footnote,.gzw-info,.gzw-shift-meta,.market-data-status,.sv-source-details p){color:var(--seto-muted,#667085)!important}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.section-head h2,.gzw-section-head h2,.salary-card h2){color:var(--seto-text,#172033)!important;letter-spacing:-.018em!important}

/* Gut zu wissen folgt derselben Shell. */
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-topbar{margin-bottom:14px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-section{margin-top:22px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-section-head{margin-bottom:10px!important}
html[data-seto-ui="v2"] body.seto-analyse-page .gzw-control{padding:14px 16px!important}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.gzw-control select,.gzw-date-card input){background:var(--seto-card,#fff)!important;color:var(--seto-text,#172033)!important;border-color:var(--seto-border,#d9dee7)!important}

/* Dark mode: ausschließlich gemeinsame Tokens, keine zweite Analyse-Palette. */
html[data-seto-ui="v2"][data-theme="dark"] body.seto-analyse-page{
  --analysis-bg:var(--seto-bg,#0f1117);--analysis-card:var(--seto-card,#1b202b);--analysis-text:var(--seto-text,#f3f6fa);--analysis-muted:var(--seto-muted,#b7c0cc);--analysis-border:var(--seto-border,#303845);
  --gzw-bg:var(--seto-bg,#0f1117);--gzw-card:var(--seto-card,#1b202b);--gzw-text:var(--seto-text,#f3f6fa);--gzw-muted:var(--seto-muted,#b7c0cc);--gzw-line:var(--seto-border,#303845);
  --salary-bg:var(--seto-bg,#0f1117);--salary-card:var(--seto-card,#1b202b);--salary-text:var(--seto-text,#f3f6fa);--salary-muted:var(--seto-muted,#b7c0cc);--salary-navy:var(--seto-primary,#8fc3ef)
}

@media(max-width:820px){
  html[data-seto-ui="v2"] body.seto-analyse-page :is(.analysis-content .shell,.analysis-content .tariff-shell,.analysis-content .salary-main,.gzw-shell){width:min(100% - 24px,1220px)!important;padding-left:0!important;padding-right:0!important}
  html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.gzw-topbar){flex-direction:column!important;padding:16px!important}
  html[data-seto-ui="v2"] body.seto-analyse-page .header-actions{width:100%;justify-content:flex-start!important}
}
@media(max-width:560px){
  html[data-seto-ui="v2"] body.seto-analyse-page :is(.analysis-content .shell,.analysis-content .tariff-shell,.analysis-content .salary-main,.gzw-shell){width:calc(100% - 20px)!important}
  html[data-seto-ui="v2"] body.seto-analyse-page :is(.card,.salary-card,.gzw-subcard){padding:14px!important;border-radius:16px!important}
  html[data-seto-ui="v2"] body.seto-analyse-page :is(.topbar,.salary-header,.gzw-topbar,.user-hero){border-radius:16px!important}
  html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav{display:flex!important;grid-template-columns:none!important}
}


/* SETO 2.1.174 – eine einzige Analyse-Hauptnavigation. */
.analysis-primary-nav{
  width:min(1220px,calc(100% - 28px));
  max-width:1220px;
  margin:0 auto 14px;
  padding:5px;
  border:1px solid var(--seto-cmp-border,var(--seto-border,#d9dee7));
  border-radius:16px;
  background:var(--seto-cmp-surface-strong,var(--seto-card,#fff));
  box-shadow:var(--seto-cmp-shadow-soft,0 6px 22px rgba(23,54,93,.055));
}
.analysis-primary-nav__layout{display:flex;align-items:stretch;gap:4px;min-width:0;overflow:visible}
.analysis-primary-nav__scroll{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;min-width:0;flex:1 1 auto}
.analysis-primary-nav__scroll::-webkit-scrollbar{display:none}
.analysis-primary-nav a{
  flex:0 0 auto;display:inline-flex;align-items:center;min-height:39px;padding:8px 12px;border-radius:11px;
  color:var(--seto-muted,#667085);text-decoration:none;font-size:.82rem;font-weight:800;white-space:nowrap
}
.analysis-primary-nav a:hover{background:var(--seto-card-2,#f7f9fc);color:var(--seto-text,#172033)}
.analysis-primary-nav a.active{background:color-mix(in srgb,var(--seto-primary,#2f75b5) 12%,var(--seto-card,#fff));color:var(--seto-primary-strong,#17365d)}
.analysis-page-jumps{margin:0 0 14px;color:var(--seto-muted,#667085);font-size:.75rem}
.analysis-page-jumps>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:800;padding:5px 1px;list-style:none}
.analysis-page-jumps>summary::-webkit-details-marker{display:none}
.analysis-page-jumps>summary::after{content:"›";display:inline-block;transform:rotate(90deg);transition:transform .15s ease}
.analysis-page-jumps[open]>summary::after{transform:rotate(-90deg)}
.analysis-page-jumps .analysis-question-nav{
  margin:5px 0 0!important;padding:4px!important;border:1px solid var(--seto-border,#d9dee7)!important;border-radius:12px!important;background:var(--seto-card,#fff)!important;box-shadow:none!important
}
.analysis-page-jumps .analysis-question-nav a{padding:6px 9px!important;font-size:.75rem!important;border-radius:9px!important}
@media(max-width:820px){
  .analysis-primary-nav{width:min(100% - 24px,1220px)}
  .analysis-page-jumps .analysis-question-nav{width:100%}
}
@media(max-width:560px){
  .analysis-primary-nav{width:calc(100% - 20px);border-radius:14px}
}
html[data-seto-ui="v2"] body.seto-analyse-page :is(.shell,.tariff-shell,.gzw-shell) > .analysis-primary-nav{width:100%;max-width:none;margin-left:0;margin-right:0}

/* Feedback 107/108: vier primäre Analyseziele, seltene Fachseiten unter Weitere. */
.analysis-primary-nav-compact .analysis-nav-more{position:relative;flex:0 0 auto}.analysis-primary-nav-compact .analysis-nav-more>summary{list-style:none;cursor:pointer;min-height:38px;display:flex;align-items:center;padding:0 12px;border-radius:10px;font-weight:750;white-space:nowrap}.analysis-primary-nav-compact .analysis-nav-more>summary::-webkit-details-marker{display:none}.analysis-primary-nav-compact .analysis-nav-more>summary.active{background:var(--analysis-nav-active-bg,#eef1f8)}.analysis-primary-nav-compact .analysis-nav-more>div{position:absolute;right:0;top:calc(100% + 6px);z-index:50;min-width:210px;display:grid;gap:4px;padding:7px;border:1px solid var(--border,#d7dee8);border-radius:12px;background:var(--surface,#fff);box-shadow:0 12px 30px rgba(18,28,45,.16)}.analysis-primary-nav-compact .analysis-nav-more>div a{display:block;padding:9px 10px;border-radius:8px;text-decoration:none;color:inherit;white-space:nowrap}@media(max-width:700px){.analysis-primary-nav-compact .analysis-nav-more>div{right:0;left:auto;top:calc(100% + 6px);min-width:min(250px,calc(100vw - 32px));max-width:calc(100vw - 32px)}}


/* SETO 2.1.224 – gemeinsame Analyse-Hierarchie */
.analysis-view-nav{margin-bottom:16px!important}.gzw-depth-group{margin-top:12px;border:1px solid var(--seto-border,#d9dee7);border-radius:16px;background:var(--seto-card,#fff);overflow:hidden}.gzw-depth-group>summary{cursor:pointer;list-style:none;padding:14px 16px}.gzw-depth-group>summary::-webkit-details-marker{display:none}.gzw-depth-group>summary span{display:grid;gap:3px}.gzw-depth-group>summary strong{color:var(--seto-text,#172033);font-size:.9rem}.gzw-depth-group>summary small{color:var(--seto-muted,#667085);font-size:.74rem;font-weight:500}.gzw-depth-group[open]>summary{border-bottom:1px solid var(--seto-border,#d9dee7)}.gzw-depth-body{display:grid;gap:12px;padding:12px}.gzw-depth-body>.card{margin:0!important}.provision-shell .eyebrow{color:var(--seto-primary,#2f75b5)}

/* SETO 2.1.225 – Analyse-Flow */
.source-depth{margin:10px 0 14px}.source-depth>summary small{max-width:72ch}.analysis-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.analysis-shortcut-grid>.card{margin:0}.analysis-shortcut-cta,.income-provision-cta{display:flex;align-items:center;justify-content:space-between;gap:18px}.analysis-shortcut-cta h2,.income-provision-cta h2{margin:.15rem 0 .35rem}.analysis-shortcut-cta p,.income-provision-cta p{margin:0;color:var(--seto-muted,#667085)}.market-shortcut{border-color:color-mix(in srgb,var(--seto-focus,#2f75b5) 32%,var(--seto-border,#d9dee7));background:linear-gradient(145deg,color-mix(in srgb,var(--seto-focus,#2f75b5) 7%,var(--seto-card,#fff)),var(--seto-card,#fff))}@media(max-width:860px){.analysis-shortcut-grid{grid-template-columns:1fr}}@media(max-width:700px){.analysis-shortcut-cta,.income-provision-cta{align-items:flex-start;flex-direction:column}.analysis-shortcut-cta .btn,.income-provision-cta .btn{width:100%;justify-content:center}}

/* SETO 2.2.55 – wenige primäre Analysefragen, weitere auf Abruf. */
.analysis-view-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.analysis-nav-extra{position:relative;min-width:0}
.analysis-nav-extra>summary{cursor:pointer;list-style-position:inside;border-radius:10px;padding:9px 11px;font-size:.82rem;font-weight:750;color:var(--seto-text,#172033);min-height:44px;align-content:center}
.analysis-nav-extra[open]>div{display:flex;gap:5px;flex-wrap:wrap;padding:6px;border:1px solid var(--seto-border,#d9dee7);border-radius:12px;background:var(--seto-card,#fff)}
.analysis-nav-extra a{display:inline-flex;align-items:center;min-height:40px}
.analysis-nav-extra summary:focus-visible,.analysis-view-nav a:focus-visible{outline:3px solid var(--seto-primary,#2f75b5);outline-offset:2px}
@media(max-width:620px){.analysis-view-nav{align-items:stretch}.analysis-nav-extra{width:100%}.analysis-nav-extra[open]>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-nav-extra a{white-space:normal}}
/* Only the income question navigation expands; other analyses retain their scrollable topic bar. */
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav.analysis-view-nav{display:flex!important;flex-wrap:wrap!important;overflow:visible!important}
html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav.analysis-view-nav .analysis-nav-extra{flex:0 1 auto}
@media(max-width:620px){html[data-seto-ui="v2"] body.seto-analyse-page .analysis-question-nav.analysis-view-nav .analysis-nav-extra{width:100%}}

