/* G8 2.5.12: 3 consecutive stylesheets, source order preserved. */

/* BEGIN 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%}}

/* END analyse/analysis-dashboard.css */

/* BEGIN 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)}}

/* END analyse/analysis-shell.css */

/* BEGIN 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:auto;
    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}}

/* END css/seto-ui-v2.css */
