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:#667085; --seto-border:#D9DEE7;
  --seto-primary:#6D28D9; --seto-primary-hover:#5B21B6; --seto-link:#5B21B6; --seto-focus:#8B5CF6;
  --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:#7C3AED; --seto-primary-hover:#8B5CF6; --seto-link:#C4B5FD; --seto-focus:#A78BFA;
  --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:#6D28D9; --purple-2:#7C3AED; --purple-text:#5B21B6; --purple-soft:#F3EEFF; --soft:#F3EEFF; }
: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:#7C3AED; --purple-2:#8B5CF6; --purple-text:#C4B5FD; --purple-soft:#2B2141; --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:#F3EEFF; 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:#C4B5FD; --accent-soft:#2B2141; --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:#4D545C!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:#4C535B!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:#565D65!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; }
}
