    :root {
      --font-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
      --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      --font-size-xs: 0.72rem;
      --font-size-sm: 0.82rem;
      --font-size-md: 0.875rem;
      --font-size-lg: 1rem;
      --font-size-xl: 1.28rem;
      --font-size-2xl: 1.9rem;
      --line-height-tight: 1.1;
      --line-height-base: 1.45;
      --line-height-relaxed: 1.65;
      --font-weight-regular: 400;
      --font-weight-medium: 500;
      --font-weight-semibold: 600;
      --font-weight-bold: 700;
      --font-weight-extrabold: 800;
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 24px;
      --space-8: 32px;
      --border-width-sm: 1px;
      --border-width-md: 2px;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 18px;
      --radius-xl: 24px;
      --neutral-50: #f8fbff;
      --neutral-100: #eef5fb;
      --neutral-200: #dbe8f3;
      --neutral-300: #c1d1df;
      --neutral-500: #64748b;
      --neutral-700: #334155;
      --neutral-900: #0f172a;
      --primary: #2563eb;
      --primary-hsl: 45 93% 47%;
      --secondary: #0e7490;
      --secondary-hsl: 240 5% 65%;
      --accent-color: #0ea5e9;
      --accent-hsl: 50 98% 64%;
      --success: #15803d;
      --success-hsl: 142 72% 29%;
      --warning: #b45309;
      --warning-hsl: 25 95% 37%;
      --error: #dc2626;
      --error-hsl: 0 72% 51%;
      --info: #0369a1;
      --info-hsl: 201 96% 32%;
      --bg-top: #dfeef8;
      --bg-bottom: #eef6fb;
      --surface: rgba(237,245,252,0.96);
      --surface-strong: #e4f0f8;
      --surface-soft: #d8e8f4;
      --line: #d5e3ef;
      --line-strong: #b8cada;
      --text: #0f172a;
      --muted: #64748b;
      --accent: var(--primary);
      --accent-soft: rgba(37,99,235,0.12);
      --sidebar-top: #10243e;
      --sidebar-bottom: #182f4e;
      --sidebar-text: #f8fbff;
      --sidebar-muted: #b5c7dd;
      --panel-tint: rgba(248,251,255,0.96);
      --entry-latest-bg: rgba(37,99,235,0.14);
      --entry-latest-border: rgba(37,99,235,0.36);
      --surface-blur: 0px;
      --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
      --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
      --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.16);
      --surface-shadow: var(--shadow-md);
      --header-depth: 340px;
    }

    body.theme-classic {
      --neutral-50: #f8fbff;
      --neutral-100: #eef6fb;
      --neutral-200: #dbe8f3;
      --neutral-300: #b8cada;
      --neutral-500: #64748b;
      --neutral-700: #334155;
      --neutral-900: #0f172a;
      --primary: #2563eb;
      --primary-hsl: 221 83% 53%;
      --secondary: #0e7490;
      --secondary-hsl: 193 82% 31%;
      --accent-color: #0ea5e9;
      --accent-hsl: 199 89% 48%;
      --bg-top: #dfeef8;
      --bg-bottom: #eef6fb;
      --surface: rgba(237,245,252,0.96);
      --surface-strong: #e4f0f8;
      --surface-soft: #d8e8f4;
      --line: #d5e3ef;
      --line-strong: #b8cada;
      --text: #0f172a;
      --muted: #64748b;
      --accent: var(--primary);
      --accent-soft: rgba(37,99,235,0.12);
      --sidebar-top: #10243e;
      --sidebar-bottom: #182f4e;
      --sidebar-text: #f8fbff;
      --sidebar-muted: #b5c7dd;
      --panel-tint: rgba(237,245,252,0.96);
      --entry-latest-bg: rgba(37,99,235,0.14);
      --entry-latest-border: rgba(37,99,235,0.36);
    }

    /* ── Dark Anthracite ──────────────────────────────────── */
    body.theme-anthracite {
      --neutral-50: #fafafa;
      --neutral-100: #f2f3f6;
      --neutral-200: #d9dde4;
      --neutral-300: #b9c0cc;
      --neutral-500: #7a8597;
      --neutral-700: #344053;
      --neutral-900: #171b23;
      --primary: #c9a14b;
      --primary-hsl: 39 54% 54%;
      --secondary: #7d8698;
      --secondary-hsl: 219 13% 54%;
      --accent-color: #d8b36a;
      --accent-hsl: 40 58% 63%;
      --bg-top: #080b11;
      --bg-bottom: #111723;
      --surface: rgba(19, 23, 31, 0.92);
      --surface-strong: #202632;
      --surface-soft: #171c26;
      --line: rgba(132, 146, 170, 0.16);
      --line-strong: rgba(185, 197, 215, 0.26);
      --text: #eef2f7;
      --muted: #93a0b4;
      --accent: var(--primary);
      --accent-soft: rgba(201, 161, 75, 0.12);
      --sidebar-top: #0a0d13;
      --sidebar-bottom: #0f131c;
      --sidebar-text: #f3f5f8;
      --sidebar-muted: #8d98aa;
      --panel-tint: rgba(14, 18, 26, 0.94);
      --entry-latest-bg: rgba(216, 179, 106, 0.12);
      --entry-latest-border: rgba(216, 179, 106, 0.28);
      --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.58);
      --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.34);
      --surface-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    }

    /* ── Soft Cream ───────────────────────────────────────── */
    body.theme-cream {
      --neutral-50: #ffffff;
      --neutral-100: #fdfbf7;
      --neutral-200: #f5f0e6;
      --neutral-300: #e6dfd3;
      --neutral-500: #8c8273;
      --neutral-700: #544d44;
      --neutral-900: #292521;
      --primary: #b3503b;      /* Rich Terracotta */
      --primary-hsl: 10 50% 47%;
      --secondary: #6e705b;    /* Warm Olive */
      --secondary-hsl: 66 10% 40%;
      --accent-color: #d16d56;
      --accent-hsl: 11 58% 58%;
      --bg-top: #faf8f5;       /* Warm Ivory */
      --bg-bottom: #f2eee8;
      --surface: rgba(252, 251, 248, 0.97); /* Luminous Paper */
      --surface-strong: #ebe5dc;
      --surface-soft: #fbf9f4;
      --line: #ebdcca;
      --line-strong: #d2c1aa;
      --text: #2f2b27;
      --muted: #807567;
      --accent: var(--primary);
      --accent-soft: rgba(179, 80, 59, 0.12);
      --sidebar-top: #292521;
      --sidebar-bottom: #36312a;
      --sidebar-text: #fdfbf7;
      --sidebar-muted: #b8b1a5;
      --panel-tint: rgba(254, 253, 251, 0.97);
      --entry-latest-bg: rgba(179, 80, 59, 0.14);
      --entry-latest-border: rgba(179, 80, 59, 0.34);
      --shadow-lg: 0 22px 60px rgba(41, 37, 33, 0.14);
      --shadow-md: 0 10px 30px rgba(41, 37, 33, 0.10);
      --surface-shadow: 0 6px 20px rgba(84, 77, 68, 0.08);
    }

    /* ── Modern Slate / Nature ────────────────────────────── */
    body.theme-slate {
      --neutral-50: #f8fafc;
      --neutral-100: #f1f5f9;
      --neutral-200: #e2e8f0;
      --neutral-300: #cbd5e1;
      --neutral-500: #64748b;
      --neutral-700: #334155;
      --neutral-900: #0f172a;
      --primary: #0f766e;      /* Snappy Teal/Smaragd */
      --primary-hsl: 175 79% 26%;
      --secondary: #475569;    /* Slate Gray */
      --secondary-hsl: 215 19% 35%;
      --accent-color: #14b8a6;
      --accent-hsl: 173 80% 40%;
      --bg-top: #f8fafc;       /* Clean White/Ice */
      --bg-bottom: #eef2f6;
      --surface: rgba(255, 255, 255, 0.98); /* Bright White Surface */
      --surface-strong: #e2e8f0;
      --surface-soft: #f4f7f9;
      --line: #cbd5e1;
      --line-strong: #94a3b8;
      --text: #0f172a;
      --muted: #64748b;
      --accent: var(--primary);
      --accent-soft: rgba(15, 118, 110, 0.12);
      --sidebar-top: #0f172a;
      --sidebar-bottom: #1e293b;
      --sidebar-text: #f1f5f9;
      --sidebar-muted: #94a3b8;
      --panel-tint: rgba(248, 250, 252, 0.96);
      --entry-latest-bg: rgba(15, 118, 110, 0.12);
      --entry-latest-border: rgba(15, 118, 110, 0.30);
      --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
      --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
      --surface-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    }

    .btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color: var(--neutral-50) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: var(--neutral-50) !important; }

body {
      font-size: var(--font-size-md);
      font-family: var(--font-sans);
      color: var(--text);
      background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 26%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 30%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
      min-height: 100vh;
    }

    .auth-gate {
      position: fixed;
      inset: 0;
      z-index: 3000;
      display: grid;
      place-items: center;
      padding: 1.5rem;
      background:
        radial-gradient(circle at 20% 10%, rgba(56,189,248,0.18), transparent 28%),
        linear-gradient(135deg, #10243b 0%, #eef5fb 55%, #f8fbff 100%);
    }
    .auth-gate.d-none { display: none !important; }
    .auth-card {
      width: min(440px, 100%);
      padding: 2rem;
      border-radius: 28px;
      background: var(--surface-strong);
      border: 1px solid color-mix(in srgb, var(--line) 70%, rgba(203,213,225,0.9));
      box-shadow: var(--surface-shadow);
      backdrop-filter: blur(var(--surface-blur));
    }
    .auth-brand {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      margin-bottom: 1.5rem;
    }
    .auth-brand img {
      width: 54px;
      height: 54px;
      object-fit: contain;
    }
    .auth-brand strong {
      display: block;
      color: #0f172a;
      font-size: 1.35rem;
      line-height: 1;
    }
    .auth-brand span,
    .auth-copy {
      color: #64748b;
    }
    .auth-title {
      font-size: 1.65rem;
      font-weight: 800;
      color: #0f172a;
      margin: 0.35rem 0 0.5rem;
    }
    .auth-link {
      color: #2563eb;
      text-decoration: none;
    }
    .auth-note {
      line-height: 1.45;
    }
    .travel-cost-section {
      padding: 0.9rem;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(248,250,252,0.72);
    }
    .travel-cost-section-head {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.75rem;
      color: var(--text);
      font-weight: 800;
    }
    .travel-cost-section-head small {
      color: var(--muted);
      font-weight: 600;
      text-align: right;
    }
    .travel-cost-section-label {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      min-width: 0;
    }
    .travel-cost-section-label > i:first-child {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.85rem;
      height: 1.85rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--accent) 12%, white);
      color: var(--accent);
      font-size: 0.9rem;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .travel-mini-chart-grid {
      display: grid;
      grid-template-columns: minmax(170px, 0.82fr) repeat(2, minmax(220px, 1fr));
      gap: 14px;
      padding: 14px;
      border: 1px solid color-mix(in srgb, var(--line) 76%, white);
      border-radius: 22px;
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 82%, white) 0%, color-mix(in srgb, var(--surface) 92%, white) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.78),
        0 16px 32px rgba(15, 23, 42, 0.04);
    }
    .travel-mini-chart {
      position: relative;
      min-width: 0;
      padding: 18px 18px 16px;
      border: 1px solid color-mix(in srgb, var(--line) 70%, white);
      border-radius: 18px;
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, white) 0%, color-mix(in srgb, var(--surface-subtle) 78%, white) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.72),
        0 8px 18px rgba(15, 23, 42, 0.035);
      overflow: hidden;
    }
    .travel-mini-chart::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      border-radius: 18px 0 0 18px;
      background: linear-gradient(180deg, rgba(15, 118, 110, 0.82), rgba(37, 99, 235, 0.6));
      opacity: 0.88;
    }
    .travel-mini-chart-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 4px;
      margin-bottom: 14px;
      padding-left: 6px;
      color: var(--text);
    }
    .travel-mini-chart-head span {
      display: block;
      font-size: 0.95rem;
      font-weight: 780;
      line-height: 1.2;
      letter-spacing: -0.01em;
    }
    .travel-mini-chart-head small {
      display: block;
      color: color-mix(in srgb, var(--muted) 90%, var(--text) 10%);
      font-size: 0.72rem;
      font-weight: 650;
      line-height: 1.42;
      text-align: left;
    }
    .travel-mini-chart-wrap {
      height: 164px;
      padding: 6px 4px 2px;
    }
    .travel-mini-chart-wrap.is-donut {
      height: 152px;
      padding-top: 4px;
    }
    .travel-summary-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 14px;
    }
    .travel-summary-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: color-mix(in srgb, var(--surface-soft) 82%, white);
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: .01em;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.62);
    }
    .travel-summary-badge i {
      color: var(--accent);
      font-size: 0.88rem;
    }
    .travel-report-note {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 12px;
      padding: 12px 14px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      border-radius: 16px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 86%, white) 0%, color-mix(in srgb, var(--surface) 96%, white) 100%);
      color: var(--muted);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.68);
    }
    .travel-report-note i {
      flex: 0 0 auto;
      margin-top: 1px;
      color: var(--accent);
      font-size: 1rem;
    }
    .travel-report-note strong {
      display: block;
      margin-bottom: 2px;
      color: var(--text);
      font-size: 0.84rem;
    }
    .travel-report-note span {
      display: block;
      line-height: 1.45;
      font-size: 0.78rem;
    }
    .handbook-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
      gap: 18px;
      align-items: stretch;
      margin-bottom: 18px;
      padding: 20px 22px;
      border-radius: 24px;
      border: 1px solid color-mix(in srgb, var(--line) 74%, white);
      background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 22%, white) 0%, transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.78),
        0 18px 40px rgba(15, 23, 42, 0.05);
    }
    .handbook-hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .handbook-hero h3 {
      margin: 0 0 10px;
      color: var(--text);
      font-size: 1.45rem;
      font-weight: 850;
      letter-spacing: -0.03em;
    }
    .handbook-hero p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      max-width: 72ch;
    }
    .handbook-hero-points {
      display: grid;
      gap: 10px;
      align-content: center;
      padding: 12px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--line) 68%, white);
      background: color-mix(in srgb, var(--surface) 84%, white);
    }
    .handbook-hero-points span {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
      font-size: 0.92rem;
      font-weight: 700;
    }
    .handbook-hero-points i {
      color: var(--accent);
      font-size: 1rem;
    }
    .handbook-link-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }
    .handbook-link-card {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 13px 14px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
      color: var(--text);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 750;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .handbook-link-card:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--accent) 24%, var(--line) 76%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.84),
        0 12px 22px rgba(15, 23, 42, 0.06);
      color: var(--text);
    }
    .handbook-link-card i {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      flex: 0 0 2rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--accent-soft) 22%, white);
      color: var(--accent);
      font-size: 0.95rem;
    }
    .handbook-accordion {
      display: grid;
      gap: 12px;
    }
    .handbook-accordion-item {
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--line) 74%, white);
      border-radius: 22px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.76),
        0 14px 32px rgba(15, 23, 42, 0.045);
    }
    .handbook-accordion-button {
      gap: 14px;
      padding: 18px 20px;
      background: transparent;
      box-shadow: none;
    }
    .handbook-accordion-button:not(.collapsed) {
      color: var(--text);
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 18%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
      box-shadow:
        inset 0 -1px 0 color-mix(in srgb, var(--accent) 16%, var(--line) 84%),
        inset 0 1px 0 rgba(255,255,255,0.58);
    }
    .handbook-accordion-button > i:first-child {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.35rem;
      height: 2.35rem;
      flex: 0 0 2.35rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--accent-soft) 24%, white);
      color: var(--accent);
      font-size: 1rem;
    }
    .handbook-accordion-button span {
      display: grid;
      gap: 2px;
    }
    .handbook-accordion-button strong {
      color: var(--text);
      font-size: 1.02rem;
    }
    .handbook-accordion-button small {
      color: var(--muted);
      font-size: 0.83rem;
      font-weight: 600;
    }
    .handbook-accordion-body {
      position: relative;
      margin: 0 18px 18px;
      padding: 24px 18px 20px;
      border-top: 1px solid color-mix(in srgb, var(--line) 64%, white);
      border-radius: 18px;
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 8%, white) 0%, transparent 44px),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, white) 0%, color-mix(in srgb, var(--surface-soft) 94%, white) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.74),
        inset 0 0 0 1px rgba(255,255,255,0.35);
    }
    .handbook-accordion-body::before {
      content: "Kapitelinhalt";
      position: absolute;
      top: 10px;
      left: 18px;
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 10px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--accent-soft) 20%, white);
      color: var(--accent);
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .handbook-section-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
    }
    .handbook-section-toolbar-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .handbook-section-toolbar-label i {
      color: var(--accent);
    }
    .handbook-section-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .handbook-steps {
      margin: 0;
      padding-left: 1.15rem;
      color: var(--muted);
      line-height: 1.7;
    }
    .handbook-steps li + li {
      margin-top: 6px;
    }
    .handbook-list {
      margin: 0;
      padding-left: 1.05rem;
      color: var(--muted);
      line-height: 1.7;
    }
    .handbook-list li + li {
      margin-top: 6px;
    }
    .handbook-topic-list {
      display: grid;
      gap: 14px;
    }
    .handbook-topic {
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: color-mix(in srgb, var(--surface) 88%, white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.68);
    }
    .handbook-topic h4 {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 8px;
      color: var(--text);
      font-size: 1rem;
      font-weight: 800;
    }
    .handbook-topic h4 i {
      color: var(--accent);
    }
    .handbook-topic p {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
    }
    .handbook-topic p + .handbook-list,
    .handbook-topic p + ul {
      margin-top: 10px;
    }
    .handbook-topic-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }
    .handbook-preview-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .handbook-preview-card {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: color-mix(in srgb, var(--surface) 92%, white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    }
    .handbook-preview-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .handbook-preview-caption {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
      text-align: right;
    }
    .handbook-preview-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .handbook-preview-badge i {
      color: var(--accent);
    }
    .handbook-preview-shot {
      position: relative;
      min-height: 180px;
      padding: 18px;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--line) 68%, white);
      background: linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%);
    }
    .handbook-preview-shot::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0));
      pointer-events: none;
    }
    .handbook-preview-shot-cats {
      background:
        radial-gradient(circle at top right, rgba(82, 182, 225, 0.16), transparent 32%),
        linear-gradient(180deg, #edf5fb 0%, #f7fbff 100%);
    }
    .handbook-preview-shot-worktime {
      background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.15), transparent 34%),
        linear-gradient(180deg, #eef8f7 0%, #f7fbff 100%);
    }
    .handbook-preview-shot-absences {
      background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 34%),
        linear-gradient(180deg, #fff8ec 0%, #f9fcff 100%);
    }
    .handbook-preview-shot-reports {
      background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 34%),
        linear-gradient(180deg, #eef4ff 0%, #f7fbff 100%);
    }
    .handbook-preview-shot-travel {
      background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
        linear-gradient(180deg, #eefbf7 0%, #f7fbff 100%);
    }
    .handbook-preview-shot-config {
      background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 34%),
        linear-gradient(180deg, #f1f4ff 0%, #f7fbff 100%);
    }
    .handbook-preview-shot-heatmap {
      background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(180deg, #edf5ff 0%, #f7fbff 100%);
    }
    .handbook-preview-pill {
      display: inline-flex;
      align-items: center;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.82);
      color: var(--text);
      font-size: 0.8rem;
      font-weight: 700;
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    }
    .handbook-preview-line {
      width: 100%;
      height: 14px;
      margin-top: 14px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(15, 118, 110, 0.12));
    }
    .handbook-preview-line.short {
      width: 68%;
    }
    .handbook-preview-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }
    .handbook-preview-chip-row span,
    .handbook-preview-footer {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.84);
      color: var(--text);
      font-size: 0.8rem;
      font-weight: 700;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
    }
    .handbook-preview-footer {
      margin-top: 18px;
      width: fit-content;
    }
    .handbook-preview-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }
    .handbook-preview-grid span {
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
      border: 1px solid rgba(148, 163, 184, 0.18);
    }
    .handbook-preview-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }
    .handbook-preview-toolbar span {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.72);
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 800;
      box-shadow: 0 8px 14px rgba(15, 23, 42, 0.04);
    }
    .handbook-preview-toolbar span.is-active {
      background: color-mix(in srgb, var(--accent-soft) 26%, white);
      color: var(--accent);
    }
    .handbook-preview-mini-list {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }
    .handbook-preview-mini-list span {
      display: block;
      height: 18px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.58));
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    }
    .handbook-preview-week-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      align-items: end;
    }
    .handbook-preview-week-grid span:nth-child(-n+5) {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      border-radius: 999px;
      background: rgba(255,255,255,0.78);
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
    }
    .handbook-preview-week-grid span:nth-child(n+6) {
      height: 52px;
      border-radius: 14px 14px 8px 8px;
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.82), rgba(15, 118, 110, 0.65));
    }
    .handbook-preview-week-grid span:nth-child(7),
    .handbook-preview-week-grid span:nth-child(9) {
      height: 76px;
    }
    .handbook-preview-calendar {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .handbook-preview-calendar span {
      height: 44px;
      border-radius: 12px;
      background: rgba(255,255,255,0.82);
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    }
    .handbook-preview-calendar span.weekend {
      background: linear-gradient(180deg, rgba(253, 224, 71, 0.38), rgba(251, 191, 36, 0.26));
    }
    .handbook-preview-calendar span.holiday {
      background: linear-gradient(180deg, rgba(103, 232, 249, 0.36), rgba(56, 189, 248, 0.24));
    }
    .handbook-preview-calendar span.absence {
      background: linear-gradient(180deg, rgba(251, 113, 133, 0.34), rgba(244, 114, 182, 0.24));
    }
    .handbook-preview-chart {
      display: flex;
      align-items: end;
      gap: 12px;
      height: 98px;
      margin-top: 16px;
    }
    .handbook-preview-chart span {
      width: 26px;
      border-radius: 12px 12px 8px 8px;
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.82), rgba(59, 130, 246, 0.62));
    }
    .handbook-preview-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .handbook-preview-stats span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      border-radius: 14px;
      background: rgba(255,255,255,0.82);
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 800;
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    }
    .update-progress {
      position: relative;
      display: flex;
      align-items: center;
      height: 34px;
      padding: 6px 8px;
      border-radius: 12px;
      border: 1px solid #dbe4ef;
      background: linear-gradient(180deg, rgba(244,248,255,0.92), rgba(236,242,250,0.88));
      overflow: hidden;
    }
    .update-progress-bar {
      position: absolute;
      inset: 0;
      width: 0%;
      background: linear-gradient(90deg, rgba(56, 189, 248, 0.38), rgba(34, 197, 94, 0.4));
      transition: width .45s ease;
    }
    .update-progress-label {
      position: relative;
      z-index: 1;
      color: #0f172a;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: .02em;
    }
    .handbook-preview-heatmap {
      display: grid;
      grid-template-columns: repeat(5, 16px);
      gap: 8px;
      margin-top: 8px;
    }
    .handbook-preview-heatmap span {
      width: 16px;
      height: 16px;
      border-radius: 5px;
      background: linear-gradient(180deg, rgba(20, 184, 166, 0.88), rgba(37, 99, 235, 0.78));
      opacity: 0.85;
    }
    .handbook-preview-heatmap span:nth-child(4n) {
      background: linear-gradient(180deg, rgba(249, 115, 22, 0.88), rgba(245, 158, 11, 0.8));
    }
    .handbook-preview-heatmap span:nth-child(5n) {
      background: linear-gradient(180deg, rgba(236, 72, 153, 0.84), rgba(168, 85, 247, 0.82));
    }
    .report-table-caption {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 14px;
      margin: -2px 0 12px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 600;
    }
    .report-table-caption i {
      color: var(--accent);
      margin-right: 6px;
    }
    .report-formula-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 12px;
    }
    .report-formula-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 14px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, white) 0%, color-mix(in srgb, var(--surface) 96%, white) 100%);
      color: var(--text);
      font-size: 0.77rem;
      line-height: 1.35;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.64);
    }
    .report-formula-pill i {
      color: var(--accent);
      font-size: 0.9rem;
    }
    .report-formula-pill strong {
      font-weight: 800;
      margin-right: 4px;
    }
    .travel-summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin: 0 0 14px;
    }
    .travel-summary-panel {
      position: relative;
      padding: 18px 18px 16px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, white);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    }
    .travel-summary-panel.is-year {
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 82%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
    }
    .travel-summary-panel.is-month {
      background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 16%, white) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
    }
    .travel-summary-panel.is-end {
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 80%, var(--accent-soft) 20%) 0%, color-mix(in srgb, var(--surface) 98%, white) 100%);
    }
    .travel-summary-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }
    .travel-summary-panel-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .travel-summary-panel-kicker i {
      color: var(--accent);
      font-size: 0.92rem;
    }
    .travel-summary-panel-hero {
      display: grid;
      gap: 4px;
      margin-bottom: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid color-mix(in srgb, var(--line) 62%, white);
      background: color-mix(in srgb, var(--surface) 78%, white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.68);
    }
    .travel-summary-panel-hero-label {
      color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .travel-summary-panel-hero strong {
      color: var(--text);
      font-size: 1.38rem;
      line-height: 1.05;
      font-weight: 850;
      letter-spacing: -0.03em;
    }
    .travel-summary-panel-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 0;
      border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
      color: var(--muted);
      font-size: 0.84rem;
    }
    .travel-summary-panel-row:first-of-type {
      border-top: 0;
      padding-top: 0;
    }
    .travel-summary-panel-row strong {
      color: var(--text);
      font-size: 1rem;
      font-weight: 800;
      text-align: right;
    }
    .travel-summary-panel-row.is-end strong {
      color: var(--accent);
    }
    .report-table-section td {
      background: color-mix(in srgb, var(--surface-soft) 76%, white);
      color: var(--text);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .report-matrix-table thead th {
      vertical-align: bottom;
    }
    .report-th-wrap {
      display: grid;
      gap: 2px;
    }
    .report-th-title {
      display: inline-flex;
      align-items: center;
      justify-content: inherit;
      gap: 2px;
      font-weight: 800;
      line-height: 1.1;
    }
    .report-th-sub {
      font-size: 0.68rem;
      line-height: 1.25;
      font-weight: 600;
      color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
      letter-spacing: 0;
      text-transform: none;
    }
    .report-info-icon {
      margin-left: 6px;
      color: color-mix(in srgb, var(--muted) 82%, var(--accent) 18%);
      font-size: 0.8rem;
      vertical-align: 0.02em;
      cursor: help;
      transition: color .18s ease, transform .18s ease;
    }
    .report-info-icon:hover {
      color: var(--accent);
      transform: translateY(-1px);
    }
    .tooltip {
      --bs-tooltip-bg: color-mix(in srgb, var(--text) 92%, #0f172a 8%);
      --bs-tooltip-color: #f8fbff;
      --bs-tooltip-opacity: 1;
      --bs-tooltip-max-width: 260px;
    }
    .tooltip .tooltip-inner {
      border-radius: 12px;
      padding: 9px 11px;
      font-size: 0.76rem;
      line-height: 1.4;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
      text-align: left;
    }

    body.theme-anthracite .app-topbar,
    body.theme-anthracite .navbar-brand,
    body.theme-anthracite #navInfo { color: #edf4ff !important; }
    body.theme-anthracite .brand-mark { background: transparent; color: #08111f; }
    body.theme-anthracite .brand-sub { color: #a7b3c4; }
    body.theme-anthracite #navInfo {
      background: linear-gradient(135deg, rgba(32, 40, 55, 0.94), rgba(24, 31, 43, 0.96));
      border-color: rgba(216, 179, 106, 0.18);
      color: #f8fbff !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .workspace-panel,
    body.theme-anthracite .position-picker-shell,
    body.theme-anthracite .table-responsive,
    body.theme-anthracite .config-card,
    body.theme-anthracite .status-note,
    body.theme-anthracite .selected-pos-box,
    body.theme-anthracite .modal-content {
      background: linear-gradient(180deg, rgba(28, 34, 45, 0.96), rgba(21, 26, 35, 0.98));
      border-color: rgba(216, 179, 106, 0.12);
      color: var(--text);
      box-shadow:
        0 18px 40px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.03);
    }
    body.theme-anthracite .nav-tabs {
      background: linear-gradient(180deg, rgba(23, 28, 37, 0.98), rgba(17, 22, 30, 0.96));
      border-bottom-color: rgba(216, 179, 106, 0.12);
    }
    body.theme-anthracite .nav-tabs .nav-link { color: #cfd7e4; }
    body.theme-anthracite .nav-tabs .nav-link:hover { color: #f5f9ff; background: rgba(216, 179, 106, 0.10); }
    body.theme-anthracite .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, #f2e8cf, #e0c98f);
      color: #1a1f28;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
    }
    body.theme-anthracite .nav-divider {
      background: rgba(216, 179, 106, 0.10);
    }
    body.theme-anthracite .form-control,
    body.theme-anthracite .form-select,
    body.theme-anthracite .h-btn,
    body.theme-anthracite .filter-chip,
    body.theme-anthracite .btn-outline-secondary,
    body.theme-anthracite .picker-item,
    body.theme-anthracite .calendar-day {
      background: linear-gradient(180deg, rgba(36, 43, 56, 0.96), rgba(30, 36, 48, 0.98));
      color: var(--sidebar-text);
      border-color: rgba(139, 153, 176, 0.24);
    }
    body.theme-anthracite .form-control::placeholder { color: #9fb0c6; }
    body.theme-anthracite .form-control:focus,
    body.theme-anthracite .form-select:focus,
    body.theme-anthracite .focus-active {
      background: linear-gradient(180deg, rgba(42, 49, 63, 0.98), rgba(34, 41, 53, 0.98)) !important;
      color: #edf4ff !important;
      border-color: rgba(216, 179, 106, 0.44) !important;
      box-shadow: 0 0 0 4px rgba(216, 179, 106, 0.12) !important;
    }
    body.theme-anthracite input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(1) brightness(1.35);
      opacity: 1;
    }
    body.theme-anthracite .pos-btn .pos-name,
    body.theme-anthracite .picker-name,
    body.theme-anthracite .section-title,
    body.theme-anthracite .status-note strong,
    body.theme-anthracite .selected-pos-box .value,
    body.theme-anthracite .position-picker-value,
    body.theme-anthracite .calendar-day-num,
    body.theme-anthracite .config-card .fw-semibold,
    body.theme-anthracite .config-card strong,
    body.theme-anthracite label.form-label { color: var(--sidebar-text); }
    body.theme-anthracite .pos-btn .pos-code,
    body.theme-anthracite .picker-code,
    body.theme-anthracite .section-copy,
    body.theme-anthracite .section-kicker,
    body.theme-anthracite .position-picker-title,
    body.theme-anthracite .position-picker-meta,
    body.theme-anthracite .selected-pos-box .label,
    body.theme-anthracite .calendar-head,
    body.theme-anthracite .calendar-hours.empty,
    body.theme-anthracite .entry-table th,
    body.theme-anthracite .sd-table th,
    body.theme-anthracite .sd-table td,
    body.theme-anthracite .status-note,
    body.theme-anthracite .config-check,
    body.theme-anthracite .text-muted { color: #afbdd1 !important; }
    body.theme-anthracite .table-light,
    body.theme-anthracite .table-light > th,
    body.theme-anthracite .table-light > td,
    body.theme-anthracite .modal-header,
    body.theme-anthracite .modal-footer { background: linear-gradient(180deg, rgba(30, 36, 47, 0.98), rgba(22, 27, 36, 0.98)) !important; border-color: rgba(216, 179, 106, 0.10); }
    body.theme-anthracite .table > :not(caption) > * > * { border-bottom-color: rgba(132, 146, 170, 0.16); }
    body.theme-anthracite .calendar-day.current { background: rgba(216, 179, 106, 0.14); border-color: rgba(216, 179, 106, 0.46); }
    body.theme-anthracite .calendar-day.selected { background: rgba(163, 177, 196, 0.12); border-color: rgba(203, 210, 220, 0.30); }
    body.theme-anthracite .absence-table-wrap {
      background: rgba(19,31,50,0.94);
      border-color: #314866;
    }
    body.theme-anthracite .absence-table thead th,
    body.theme-anthracite .absence-day-index {
      background: rgba(24,40,63,0.98);
      color: var(--sidebar-text);
      border-right-color: #314866;
      border-bottom-color: #314866;
    }
    body.theme-anthracite .absence-cell {
      background: rgba(24,40,63,0.9);
      border-right-color: #314866;
      border-bottom-color: #314866;
    }
    body.theme-anthracite .absence-cell:hover { background: #20324d; }
    body.theme-anthracite .absence-cell.weekend {
      background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(251, 146, 60, 0.14)),
        rgba(24,40,63,0.9);
    }
    body.theme-anthracite .absence-cell.weekend:hover {
      background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 146, 60, 0.2)),
        #20324d;
    }
    body.theme-anthracite .absence-cell.holiday {
      background: rgba(22,119,155,0.24);
      box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.62);
    }
    body.theme-anthracite .absence-cell.urlaub { background: rgba(37,99,235,0.24); }
    body.theme-anthracite .absence-cell.krank { background: rgba(127,29,29,0.24); }
    body.theme-anthracite .absence-cell.gleitzeit { background: rgba(91,33,182,0.24); }
    body.theme-anthracite .absence-cell.halbtag_urlaub { background: rgba(217,119,6,0.24); }
    body.theme-anthracite .absence-cell.ersatzruhetag { background: rgba(194,65,12,0.24); }
    body.theme-anthracite .absence-cell.weiterbildung { background: rgba(14,165,233,0.24); }
    body.theme-anthracite .absence-cell.dienstreise { background: rgba(13,148,136,0.24); }
    body.theme-anthracite .absence-weekday { color: #afbdd1; }
    body.theme-anthracite .absence-hours { color: var(--sidebar-text); }
    body.theme-anthracite .absence-label { color: #d9eef7; }
    body.theme-anthracite .absence-cell.weekend .absence-label { color: #fde68a; }
    body.theme-anthracite .absence-cell.holiday .absence-label,
    body.theme-anthracite .absence-cell.holiday.weekend .absence-label {
      color: #0f5d78;
    }
    body.theme-anthracite .absence-head-sum { color: #afbdd1; }
    body.theme-anthracite .absence-legend-table th,
    body.theme-anthracite .absence-legend-table td {
      color: #e6edf7;
      border-color: #314866 !important;
    }
    body.theme-anthracite .absence-legend-table th:nth-child(1),
    body.theme-anthracite .absence-legend-table td:nth-child(1) {
      background: rgba(37,99,235,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(2),
    body.theme-anthracite .absence-legend-table td:nth-child(2) {
      background: rgba(217,119,6,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(3),
    body.theme-anthracite .absence-legend-table td:nth-child(3) {
      background: rgba(127,29,29,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(4),
    body.theme-anthracite .absence-legend-table td:nth-child(4) {
      background: rgba(91,33,182,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(5),
    body.theme-anthracite .absence-legend-table td:nth-child(5) {
      background: rgba(194,65,12,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(6),
    body.theme-anthracite .absence-legend-table td:nth-child(6) {
      background: rgba(14,165,233,0.24);
    }
    body.theme-anthracite .absence-legend-table th:nth-child(7),
    body.theme-anthracite .absence-legend-table td:nth-child(7) {
      background: rgba(13,148,136,0.24);
    }
    body.theme-anthracite .absence-chip {
      color: #d2deed;
      background: rgba(24,40,63,0.82);
      border-color: #314866;
    }
    body.theme-anthracite .section-title { font-size: 1.28rem; }
    body.theme-anthracite .section-copy { max-width: 52ch; color: #b4c2d4; }
    body.theme-anthracite .position-picker-shell {
      background: rgba(22,35,56,0.72);
      border-color: #314866;
    }
    body.theme-anthracite .booking-stage {
      background:
        radial-gradient(circle at top right, rgba(121,174,252,0.12), transparent 34%),
        linear-gradient(180deg, rgba(22,35,56,0.86), rgba(19,31,50,0.92));
      border-color: #314866;
      box-shadow: 0 18px 38px rgba(4, 10, 20, 0.24);
    }
    body.theme-anthracite .booking-stage-title {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .booking-stage-hint {
      background: rgba(29, 48, 75, 0.82);
      border-color: rgba(121,174,252,0.18);
      color: #c7d6e8;
    }
    body.theme-anthracite .position-picker-body { border-top-color: #314866; }
    body.theme-anthracite .daily-entry-overview {
      background: rgba(22,35,56,0.72);
      border-color: #314866;
      box-shadow: 0 18px 38px rgba(4, 10, 20, 0.24);
    }
    body.theme-anthracite .daily-entry-overview-title {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .daily-entry-overview-meta {
      color: #afbdd1;
    }
    body.theme-anthracite .daily-entry-table-wrap {
      border-color: #314866;
    }
    body.theme-anthracite .daily-entry-table tbody tr:hover td {
      background: linear-gradient(180deg, rgba(34, 53, 82, 0.98), rgba(29, 48, 75, 0.96));
    }
    body.theme-anthracite .daily-entry-table tbody tr.is-overflow-out-entry td {
      background:
        linear-gradient(180deg, rgba(167,139,250,0.14), rgba(167,139,250,0.14)),
        #17273e;
      box-shadow: inset 4px 0 0 #a78bfa;
    }
    body.theme-anthracite .daily-entry-section-row td {
      background: rgba(167,139,250,0.14) !important;
      color: #c4b5fd;
    }
    body.theme-anthracite .overflow-out-badge {
      background: rgba(167,139,250,0.16);
      border-color: rgba(167,139,250,0.34);
      color: #ddd6fe;
    }
    body.theme-anthracite .entry-list-toolbar {
      background: linear-gradient(180deg, rgba(22,35,56,0.84), rgba(19,31,50,0.92));
      border-color: #314866;
      box-shadow: 0 18px 38px rgba(4, 10, 20, 0.24);
    }
    body.theme-anthracite .entry-filter-stage {
      background: linear-gradient(180deg, rgba(22,35,56,0.84), rgba(19,31,50,0.92));
      border-color: #314866;
      box-shadow: 0 18px 38px rgba(4, 10, 20, 0.24);
    }
    body.theme-anthracite .entry-list-title,
    body.theme-anthracite .entry-date-main,
    body.theme-anthracite .entry-position-title {
      color: #f4f8ff;
    }
    body.theme-anthracite .entry-list-meta,
    body.theme-anthracite .entry-position-meta {
      color: #afbdd1;
    }
    body.theme-anthracite .entry-action-group {
      background: linear-gradient(180deg, rgba(29,48,75,0.92), rgba(24,40,63,0.9));
      border-color: rgba(121,174,252,0.16);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .entry-table tbody td,
    body.theme-anthracite .entry-table tbody th,
    body.theme-anthracite .entry-table tfoot td {
      background: #17273e;
      color: #edf4ff !important;
    }
    body.theme-anthracite .entry-table tbody tr:hover td { background: #213552; }
    body.theme-anthracite .entry-table td .text-muted { color: #b1bfd2 !important; }
    body.theme-anthracite .entry-table .fw-semibold,
    body.theme-anthracite .entry-table .fw-bold,
    body.theme-anthracite .entry-table code,
    body.theme-anthracite .entry-table input,
    body.theme-anthracite .sd-table code,
    body.theme-anthracite .sd-table td,
    body.theme-anthracite .sd-table th {
      color: #edf4ff !important;
    }
    body.theme-anthracite .entry-table thead th {
      color: #3b5678 !important;
      background: #f4f7fb !important;
    }
    body.theme-anthracite .sd-table thead th {
      color: #3b5678 !important;
      background: #f4f7fb !important;
    }
    body.theme-anthracite .sd-table tbody td,
    body.theme-anthracite .sd-table tbody th {
      background: #17273e;
      color: #edf4ff !important;
    }
    body.theme-anthracite .sd-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-anthracite .picker-list {
      border-color: #314866;
      background: #17273e;
    }
    body.theme-anthracite .picker-item {
      background: #17273e;
      border-bottom-color: #314866;
      color: var(--sidebar-text);
    }
    body.theme-anthracite .picker-item:hover,
    body.theme-anthracite .picker-item.active {
      background: #213552;
    }
    body.theme-anthracite .h-btn.active {
      background: #eef4fb;
      color: #142338;
      border-color: #eef4fb;
    }
    body.theme-anthracite .selected-pos-box {
      background: linear-gradient(180deg, #1b2d46, #18283f);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .selected-pos-box .value.is-empty,
    body.theme-anthracite .position-picker-value.is-empty {
      color: #d2deed !important;
    }
    body.theme-anthracite .toolbar-line {
      border-bottom-color: #3a5375;
    }
    body.theme-anthracite .table-filter-chip {
      background: #1d304b;
      border-color: #456284;
      color: #d4deea;
    }
    body.theme-anthracite .table-filter-chip.active {
      background: #eef4fb;
      border-color: #eef4fb;
      color: #142338;
    }
    body.theme-anthracite .month-summary {
      background: rgba(24,40,63,0.88);
      border-color: #314866;
    }
    body.theme-anthracite .month-summary-toggle {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .month-summary-body {
      border-top-color: #314866;
    }
    body.theme-anthracite .month-summary-table th,
    body.theme-anthracite .month-summary-table td {
      border-bottom-color: #314866;
      color: var(--sidebar-text);
    }
    body.theme-anthracite .month-summary-table th {
      color: #afbdd1;
      background: rgba(29,48,75,0.92);
    }
    body.theme-anthracite .month-summary-table td {
      background: #17273e;
    }
    body.theme-anthracite .month-summary-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-anthracite .month-summary-table td.is-today {
      background: #31476a;
      color: #f8fbff;
      font-weight: 700;
    }
    body.theme-anthracite .worktime-table thead th {
      background: #20324d !important;
      color: #d9e5f3 !important;
      border-bottom-color: #314866 !important;
    }
    body.theme-anthracite .worktime-table tbody td,
    body.theme-anthracite .worktime-table tbody th {
      background: #17273e;
      color: #edf4ff !important;
      border-bottom-color: #314866 !important;
    }
    body.theme-anthracite .worktime-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-anthracite .worktime-date,
    body.theme-anthracite .worktime-weekday,
    body.theme-anthracite .worktime-hours {
      color: #edf4ff !important;
    }
    body.theme-anthracite .worktime-hours.is-negative {
      color: #f87171 !important;
    }
    body.theme-anthracite .worktime-hours.is-positive {
      color: #34d399 !important;
    }
    body.theme-anthracite .worktime-row.is-weekend td {
      background: rgba(255, 255, 255, 0.035) !important;
    }
    body.theme-anthracite .worktime-row.is-holiday td {
      background: rgba(255, 255, 255, 0.05) !important;
    }
    body.theme-anthracite .worktime-row.is-weekend:hover td {
      background: rgba(255, 255, 255, 0.05) !important;
    }
    body.theme-anthracite .worktime-row.is-holiday:hover td {
      background: rgba(255, 255, 255, 0.065) !important;
    }
    body.theme-anthracite .worktime-overview {
      background: rgba(24,40,63,0.92);
      border-color: #314866;
      box-shadow: none;
    }
    body.theme-anthracite .worktime-overview-table thead th {
      border-right-color: rgba(255,255,255,0.10);
    }
    body.theme-anthracite .worktime-overview-table tbody th,
    body.theme-anthracite .worktime-overview-table tbody td {
      border-top-color: #314866;
      border-right-color: #314866;
      background: #17273e;
    }
    body.theme-anthracite .worktime-overview-table tbody th {
      background: linear-gradient(180deg, #223754, #1d304b);
      color: var(--sidebar-text);
    }
    body.theme-anthracite .worktime-overview-table tbody tr:nth-child(2) th {
      background: linear-gradient(180deg, #234c75, #1d4369);
    }
    body.theme-anthracite .worktime-overview-main {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .worktime-overview-main.is-negative {
      color: #f87171;
    }
    body.theme-anthracite .worktime-overview-main.is-positive {
      color: #34d399;
    }
    body.theme-anthracite .worktime-overview-sub {
      color: #afbdd1;
    }
    body.theme-anthracite .report-toolbar,
    body.theme-anthracite .report-card,
    body.theme-anthracite .report-kpi {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
    }
    body.theme-anthracite .travel-mode-summary {
      background: rgba(18,31,50,0.88);
      border-color: #314866;
    }
    body.theme-anthracite .travel-mini-chart-grid {
      border-color: rgba(216, 179, 106, 0.16);
      background:
        linear-gradient(180deg, rgba(23,31,44,0.96) 0%, rgba(18,25,36,0.98) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 18px 34px rgba(0,0,0,0.24);
    }
    body.theme-anthracite .travel-mini-chart {
      border-color: rgba(85,106,136,0.44);
      background:
        linear-gradient(180deg, rgba(28,41,61,0.96) 0%, rgba(22,33,50,0.98) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 24px rgba(0,0,0,0.18);
    }
    body.theme-anthracite .travel-mini-chart::before {
      background: linear-gradient(180deg, rgba(216,179,106,0.86), rgba(110,168,255,0.72));
    }
    body.theme-anthracite .travel-mini-chart-head span {
      color: #edf4ff;
    }
    body.theme-anthracite .travel-mini-chart-head small {
      color: #9fb0c8;
    }
    body.theme-anthracite .travel-mode-summary-label {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .travel-mode-summary-meta,
    body.theme-anthracite .travel-mode-summary-total {
      color: #afbdd1;
    }
    body.theme-anthracite .travel-mode-bar {
      background: #223854;
    }
    body.theme-anthracite .report-card-subhead {
      border-top-color: #314866;
    }
    body.theme-anthracite .report-kpi-value,
    body.theme-anthracite .report-card-title { color: var(--sidebar-text); }
    body.theme-anthracite .report-kpi-label,
    body.theme-anthracite .report-kpi-meta,
    body.theme-anthracite .report-card-meta,
    body.theme-anthracite .report-table th { color: #afbdd1; }
    body.theme-anthracite .report-list-label,
    body.theme-anthracite .report-list-hours { color: var(--sidebar-text); }
    body.theme-anthracite .report-list-meta,
    body.theme-anthracite .report-section-title,
    body.theme-anthracite .report-empty { color: #afbdd1; }
    body.theme-anthracite .report-target-card {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
    }
    body.theme-anthracite .report-target-value { color: var(--sidebar-text); }
    body.theme-anthracite .report-target-month,
    body.theme-anthracite .report-target-meta { color: #afbdd1; }
    body.theme-anthracite .report-table td {
      color: var(--sidebar-text);
      border-bottom-color: #314866;
    }
    body.theme-anthracite .report-table tfoot td {
      background: #20324d;
      border-top-color: #4a6a9a;
      color: var(--sidebar-text);
    }
    body.theme-anthracite .report-table-bordered th,
    body.theme-anthracite .report-table-bordered td {
      border-color: #314866;
    }
    body.theme-anthracite .report-table-bordered thead th {
      border-bottom-color: #4a6a9a;
    }
    body.theme-anthracite .report-bar { background: #223854; }
    body.theme-anthracite .config-card {
      background: linear-gradient(180deg, rgba(29, 35, 46, 0.96), rgba(23, 28, 37, 0.98));
    }
    body.theme-anthracite .config-check {
      border-top-color: rgba(216, 179, 106, 0.10);
    }
    body.theme-anthracite .sort-link:hover,
    body.theme-anthracite .sort-link.active {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .btn-outline-primary {
      color: #f0d79c;
      border-color: rgba(216, 179, 106, 0.34);
    }
    body.theme-anthracite .btn-outline-primary:hover {
      background: rgba(216, 179, 106, 0.10);
      border-color: rgba(216, 179, 106, 0.48);
      color: #fff4d6;
    }
    body.theme-anthracite .btn-outline-danger {
      color: #ffb0b7;
      border-color: #9c5964;
    }
    body.theme-anthracite .btn-outline-danger:hover {
      background: #5f2830;
      border-color: #d77e8a;
      color: #fff4f5;
    }
    body.theme-anthracite .icon-action.btn-outline-secondary {
      background: #1f314c;
      border-color: #456284;
    }

    code, .pos-btn .pos-code, .picker-code { font-family: "JetBrains Mono", monospace; }

    .navbar {
      display: none;
    }

    .app-shell {
      width: 100%;
      padding: 16px 18px 24px;
      position: relative;
      isolation: isolate;
    }

    .app-layout {
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }

    .app-sidebar {
      position: sticky;
      top: 16px;
      min-height: calc(100vh - 32px);
      max-height: calc(100vh - 32px);
      border-radius: 30px;
      border: 1px solid rgba(18, 37, 61, 0.10);
      background: linear-gradient(180deg, var(--sidebar-top) 0%, color-mix(in srgb, var(--sidebar-top) 55%, var(--sidebar-bottom)) 55%, var(--sidebar-bottom) 100%);
      box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .sidebar-brand {
      padding: 26px 22px 18px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .sidebar-brand .brand-mark {
      width: 92px;
      height: 92px;
      flex: 0 0 92px;
    }

    .sidebar-brand .brand-copy {
      gap: 4px;
    }

    .sidebar-brand .navbar-brand {
      font-size: 2.1rem;
      color: var(--sidebar-text);
    }

    .sidebar-brand .brand-sub {
      font-size: 0.96rem;
      color: var(--sidebar-muted);
    }

    .sidebar-scroll {
      padding: 18px 14px;
      overflow-y: auto;
      overflow-x: hidden;
      min-height: 0;
      flex: 1 1 auto;
    }

    .sidebar-section-label {
      padding: 0 12px 8px;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--sidebar-muted);
      font-weight: 700;
    }

    .sidebar-footer {
      display: grid;
      gap: 12px;
      padding: 16px 18px 18px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: var(--sidebar-muted);
      font-size: 0.78rem;
    }

    .sidebar-session {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 14px 14px 12px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .sidebar-session-label {
      font-size: 0.66rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--sidebar-muted) 78%, transparent);
    }

    .sidebar-session-user {
      overflow: hidden;
      color: var(--sidebar-text);
      font-size: 0.98rem;
      line-height: 1.15;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .sidebar-session-mode {
      overflow: hidden;
      color: var(--sidebar-muted);
      line-height: 1.35;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.76rem;
    }

    .sidebar-logout-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 14px;
      background: rgba(255,255,255,0.07);
      color: var(--sidebar-text);
      font-size: 0.82rem;
      font-weight: 800;
    }

    .sidebar-logout-button:hover,
    .sidebar-logout-button:focus-visible {
      border-color: rgba(255,255,255,0.28);
      background: rgba(255,255,255,0.12);
      color: #ffffff;
    }

    .app-main {
      min-width: 0;
    }

    .content-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 16px;
      padding: 16px 20px;
      border: 1px solid rgba(18, 37, 61, 0.08);
      border-radius: 22px;
      background: var(--surface);
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }

    .content-topbar-main {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .content-topbar-side {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .topbar-session-card {
      display: grid;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      min-width: 260px;
    }

    .topbar-session-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .topbar-session-row.topbar-session-user {
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .topbar-session-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .topbar-session-title {
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #64748b;
      font-weight: 800;
    }

    .topbar-session-value {
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--text);
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .topbar-session-sub {
      font-size: 0.72rem;
      color: #64748b;
      white-space: nowrap;
    }

    .status-led {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: #94a3b8;
      box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.2);
      flex: 0 0 10px;
    }

    .status-led.is-online {
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    }

    .status-led.is-offline {
      background: #ef4444;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    }

    .status-led.is-local {
      background: #14b8a6;
      box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    }

    .status-led.is-browser {
      background: #f59e0b;
      box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }

    .topbar-session-card .topbar-logout {
      align-self: flex-start;
      white-space: nowrap;
    }

    .topbar-status-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .sidebar-toggle {
      display: none;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      border: 1px solid #dce7f2;
      background: #ffffff;
      color: #183b61;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .sidebar-backdrop {
      display: none;
    }

    .content-topbar-kicker {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .content-topbar-title {
      display: block;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.04em;
      color: #10243e;
      line-height: 1.05;
    }

    .content-topbar-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      color: var(--text);
      font-weight: 700;
      white-space: nowrap;
    }

    .storage-mode-chip {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      color: var(--text);
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .storage-mode-chip.is-desktop {
      border-color: #bfdccd;
      background: #eefaf3;
      color: #1c6a49;
    }

    .storage-mode-chip.is-browser {
      border-color: #f3d7a2;
      background: #fff7e8;
      color: #9a5a05;
    }

    .storage-mode-chip.is-server {
      border-color: #bae6fd;
      background: #ecfeff;
      color: #0e7490;
    }

    .runtime-status-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      color: var(--text);
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .runtime-status-chip::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: currentColor;
      box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
      flex: 0 0 9px;
    }

    .runtime-status-chip.is-local {
      border-color: #bfdccd;
      background: #eefaf3;
      color: #1c6a49;
    }

    .runtime-status-chip.is-browser {
      border-color: #f3d7a2;
      background: #fff7e8;
      color: #9a5a05;
    }

    .runtime-status-chip.is-online {
      border-color: #bae6fd;
      background: #ecfeff;
      color: #0e7490;
    }

    .runtime-status-chip.is-offline {
      border-color: #fecaca;
      background: #fff1f2;
      color: #b91c1c;
    }

    .topbar-logout {
      min-height: 38px;
      border-radius: 999px;
      font-weight: 800;
    }

    .version-card {
      display: grid;
      gap: 0.8rem;
    }

    .version-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1rem 1.05rem;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, white), var(--surface-soft));
    }

    .version-label,
    .version-grid span,
    .version-row span {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .version-hero strong {
      color: var(--text);
      font-size: 1.45rem;
      line-height: 1;
    }

    .version-state {
      padding: 0.35rem 0.65rem;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 800;
      font-size: 0.78rem;
      white-space: nowrap;
    }

    .version-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .version-grid > div,
    .version-row {
      padding: 0.9rem;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: color-mix(in srgb, var(--surface-soft) 82%, white);
    }

    .version-grid strong,
    .version-row strong {
      display: block;
      margin-top: 0.25rem;
      color: var(--text);
      overflow-wrap: anywhere;
    }

    .storage-mode-note {
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 14px;
      border: 1px solid #f3d7a2;
      background: #fff7e8;
      color: #9a5a05;
      font-size: 0.84rem;
      font-weight: 600;
    }

    .content-frame {
      border-radius: 32px;
      border: 1px solid rgba(18, 37, 61, 0.08);
      background: var(--panel-tint);
      box-shadow: var(--shadow-lg);
      overflow: hidden;
      position: relative;
    }

    .app-sidebar .nav-tabs {
      background: transparent !important;
    }

    .app-sidebar .nav-tabs .nav-link {
      color: var(--sidebar-muted);
    }

    .app-sidebar .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: var(--sidebar-text);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .brand-mark {
      width: 94px;
      height: 94px;
      border-radius: 0;
      display: grid;
      place-items: center;
      background: transparent;
      color: #0f172a;
      box-shadow: none;
      flex: 0 0 auto;
      overflow: hidden;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .brand-copy {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-left: 0;
      text-align: left;
    }

    .navbar-brand {
      display: block;
      font-weight: 800;
      letter-spacing: -0.04em;
      font-size: 3.4rem;
      color: #14365b;
      line-height: 1;
      margin: 0;
    }

    .brand-sub {
      display: block;
      color: #14365b;
      font-size: 1.22rem;
      line-height: 1.1;
      font-weight: 500;
    }

    #navInfo {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 10px 18px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: #0f172a !important;
      font-weight: 700;
      backdrop-filter: blur(var(--surface-blur));
      margin-left: auto;
    }

    .workspace-panel {
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      overflow: visible;
      backdrop-filter: none;
      animation: panelIn .35s ease-out;
      min-height: 120px;
      margin-top: 0;
      position: relative;
    }

    @keyframes panelIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Position buttons */
    .pos-btn {
      display: inline-flex; flex-direction: column; align-items: flex-start;
      padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
      background: rgba(255,255,255,0.92); cursor: pointer; transition: all .16s ease;
      text-align: left; min-width: 196px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    }
    .pos-btn:hover  { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
    .pos-btn .pos-name  { font-weight: 600; font-size: .82rem; color: #1e293b; line-height: 1.3; }
    .pos-btn .pos-code  { font-size: .7rem; color: #64748b; margin-top: 4px; }
    .pos-grid { display: flex; flex-wrap: wrap; gap: 10px; }
    .pos-btn.group-ewe { border-color: #fdba74; background: linear-gradient(180deg, #fffaf1, #fff3de); }
    .pos-btn.group-airsys { border-color: #67e8f9; background: linear-gradient(180deg, #f1feff, #e3fbff); }
    .pos-btn.group-internal { border-color: #c4b5fd; background: linear-gradient(180deg, #faf7ff, #f2ecff); }
    .pos-btn.group-infra { border-color: #86efac; background: linear-gradient(180deg, #f2fff7, #e5fbea); }
    .pos-btn.group-swb { border-color: #fca5a5; background: linear-gradient(180deg, #fff5f5, #ffebeb); }
    .pos-btn.group-default { border-color: #dbe3ec; background: linear-gradient(180deg, #ffffff, #f8fafc); }
    .position-picker-shell {
      margin-bottom: 20px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, #e7edf4);
      border-radius: 18px;
      background: var(--surface);
      overflow: hidden;
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .position-picker-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
    }
    .position-picker-summary {
      min-width: 0;
      flex: 1;
    }
    .position-picker-title {
      font-size: .72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: #64748b;
      margin-bottom: 2px;
    }
    .position-picker-value {
      font-size: .92rem;
      font-weight: 600;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .position-picker-meta {
      font-size: .76rem;
      color: #64748b;
      margin-top: 2px;
    }
    .position-picker-body {
      padding: 0 16px 16px;
      border-top: 1px solid #edf2f7;
    }
    .position-picker-body.d-none { display: none !important; }
    .group-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .filter-chip {
      border: 1px solid var(--line); background: rgba(255,255,255,0.76); color: #475569; border-radius: 999px;
      padding: 6px 11px; font-size: .75rem; line-height: 1.2; cursor: pointer; transition: all .12s;
    }
    .filter-chip:hover { border-color: #94a3b8; background: #f8fafc; transform: translateY(-1px); }
    .filter-chip.active { color: #0f172a; font-weight: 600; }
    .filter-chip.group-ewe.active { border-color: #f59e0b; background: #ffedd5; }
    .filter-chip.group-airsys.active { border-color: #06b6d4; background: #cffafe; }
    .filter-chip.group-swb.active { border-color: #ef4444; background: #fee2e2; }
    .filter-chip.group-internal.active { border-color: #8b5cf6; background: #ede9fe; }
    .filter-chip.group-infra.active { border-color: #10b981; background: #d1fae5; }
    .filter-chip.group-default.active { border-color: #94a3b8; background: #e2e8f0; }

    /* Entry table */
    .entry-table th { font-size: .73rem; font-weight: 700; color: var(--text); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
    .entry-table td { font-size: .82rem; vertical-align: middle; }
    .entry-table thead th {
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .entry-table th:first-child,
    .entry-table td:first-child {
      padding-left: 18px;
      width: 52px;
    }
    .entry-table th:nth-child(2),
    .entry-table td:nth-child(2) {
      position: sticky;
      left: 0;
      z-index: 1;
    }
    .entry-table thead th:nth-child(2) { z-index: 3; }
    .entry-table tr:hover .row-actions { opacity: 1; }
    .row-actions {
      opacity: 1;
      transition: opacity .1s;
      padding-right: 16px;
      min-width: 92px;
      white-space: nowrap;
    }
    .entry-action-group {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      padding: 4px 6px;
      border: 1px solid color-mix(in srgb, var(--line) 88%, white);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.94));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    }
    .entry-date-cell {
      min-width: 178px;
    }
    .entry-date-main {
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }
    .entry-date-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
    }
    .entry-position-cell {
      min-width: 240px;
    }
    .entry-position-title {
      color: var(--text);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }
    .entry-position-meta {
      margin-top: 3px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.01em;
    }
    .entry-table th:last-child,
    .entry-table td:last-child {
      padding-right: 20px;
    }
    .entry-table tbody tr.is-latest-entry td {
      background:
        linear-gradient(180deg, var(--entry-latest-bg), var(--entry-latest-bg)),
        #fff;
      box-shadow: inset 0 1px 0 var(--entry-latest-border), inset 0 -1px 0 var(--entry-latest-border);
    }
    .entry-table tbody tr.is-weekly-entry td {
      background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.10), rgba(14, 165, 233, 0.10)),
        #fff;
      box-shadow: inset 4px 0 0 #0ea5e9;
    }
    .entry-table tbody tr.is-weekly-entry.is-latest-entry td {
      background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.14)),
        linear-gradient(180deg, var(--entry-latest-bg), var(--entry-latest-bg)),
        #fff;
      box-shadow: inset 4px 0 0 #0ea5e9, inset 0 1px 0 var(--entry-latest-border), inset 0 -1px 0 var(--entry-latest-border);
    }
    .weekly-entry-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 8px;
      padding: 2px 7px;
      border: 1px solid rgba(14, 165, 233, 0.28);
      border-radius: 999px;
      background: rgba(14, 165, 233, 0.12);
      color: #075985;
      font-size: 0.68rem;
      font-weight: 800;
      white-space: nowrap;
    }
    .latest-entry-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
      border-radius: 999px;
      background: color-mix(in srgb, var(--primary) 14%, var(--surface));
      color: var(--primary);
      font-size: 0.68rem;
      font-weight: 800;
      white-space: nowrap;
    }
    .latest-entry-badge-day {
      border-color: rgba(8, 145, 178, 0.28);
      background: rgba(6, 182, 212, 0.12);
      color: #0f766e;
    }
    .latest-entry-badge-month {
      border-color: color-mix(in srgb, var(--primary) 34%, transparent);
      background: color-mix(in srgb, var(--primary) 14%, var(--surface));
      color: var(--primary);
    }
    .daily-entry-overview {
      margin: 0 0 18px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: color-mix(in srgb, var(--surface) 92%, var(--neutral-100));
      box-shadow: var(--shadow-sm);
    }
    .daily-entry-overview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .daily-entry-overview-title {
      margin: 0;
      color: var(--text);
      font-size: 1rem;
      font-weight: 800;
    }
    .daily-entry-overview-meta {
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.35;
    }
    .daily-entry-overview-actions {
      display: grid;
      grid-template-columns: 34px 88px minmax(210px, 260px) minmax(170px, 220px) 34px 34px;
      align-items: center;
      gap: 8px;
      justify-content: end;
    }
    .daily-entry-overview-actions .btn {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-radius: 12px;
    }
    .daily-entry-overview-actions .daily-entry-today-btn {
      width: auto;
      min-width: 88px;
      padding: 0 12px;
      font-weight: 800;
    }
    .daily-entry-overview-actions #dailyEntryOverviewStats {
      min-width: 210px;
      justify-content: center;
      margin-right: 0;
    }
    .daily-entry-overview-actions #dailyEntryOverviewOverflowStats {
      min-width: 170px;
      justify-content: center;
      margin-right: 0;
    }
    .entry-stat-chip-overflow {
      background: #f5f3ff;
      border-color: rgba(124, 58, 237, 0.24);
      color: #6d28d9;
    }
    .daily-entry-table-wrap {
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: auto;
      scrollbar-gutter: stable both-edges;
    }
    .daily-entry-table {
      min-width: 780px;
      background: var(--surface);
    }
    .daily-entry-table tbody tr {
      transition: background 0.16s ease, transform 0.16s ease;
    }
    .daily-entry-table tbody tr:hover td {
      background: linear-gradient(180deg, rgba(243, 247, 252, 0.98), rgba(248, 250, 252, 0.98));
    }
    .daily-entry-table tbody tr.is-overflow-out-entry td {
      background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.08)),
        var(--surface);
      box-shadow: inset 4px 0 0 #8b5cf6;
    }
    .daily-entry-table tbody tr.is-overflow-out-entry:hover td {
      background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.13), rgba(124, 58, 237, 0.13)),
        var(--surface);
    }
    .daily-entry-section-row td {
      background: color-mix(in srgb, #8b5cf6 8%, var(--surface)) !important;
      color: #5b21b6;
      font-size: .72rem;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .overflow-out-badge {
      background: #f5f3ff;
      border: 1px solid rgba(124, 58, 237, 0.22);
      color: #6d28d9;
    }
    .daily-entry-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }
    .daily-entry-table th:first-child,
    .daily-entry-table td:first-child {
      padding-left: 14px;
      width: 74px;
    }
    .daily-entry-table th:nth-child(2),
    .daily-entry-table td:nth-child(2) {
      position: static;
      left: auto;
    }
    .table-light, .table-light > th, .table-light > td { background: #f7fafc !important; }
    .table > :not(caption) > * > * { border-bottom-color: #e7edf4; padding-top: .72rem; padding-bottom: .72rem; }
    .table-responsive {
      max-height: none;
      overflow-x: auto;
      overflow-y: visible;
    }
    .entry-table-wrap {
      padding-right: 12px;
      scrollbar-gutter: stable both-edges;
    }
    .entry-table {
      min-width: 860px;
    }
    .entry-list-toolbar {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 12px;
      padding: 12px 14px;
      border: 1px solid #e7edf4;
      border-radius: 20px;
      background: linear-gradient(180deg, var(--surface-strong), color-mix(in srgb, var(--surface) 92%, rgba(248,250,252,0.92)));
      box-shadow: var(--surface-shadow);
      backdrop-filter: blur(var(--surface-blur));
    }
    .entry-month-nav {
      gap: 10px;
    }
    .month-nav-copy {
      display: grid;
      gap: 2px;
      min-width: 170px;
    }
    .month-nav-copy .section-kicker {
      margin-bottom: 0;
      font-size: 0.65rem;
    }
    .entry-list-title {
      min-width: 0;
      margin: 0;
      text-align: left;
      font-size: 1.05rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .entry-list-meta {
      margin-top: 2px;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.35;
    }
    .month-stats-cluster {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .entry-toolbar-delete {
      margin-left: auto;
      border-radius: 14px;
      font-weight: 700;
    }
    .weekly-schedule-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
      gap: 18px;
      align-items: start;
    }
    .weekly-form-grid {
      display: grid;
      grid-template-columns: minmax(130px, 0.7fr) minmax(170px, 0.9fr) minmax(110px, 0.5fr) minmax(260px, 1.8fr);
      gap: 12px;
      align-items: end;
    }
    .weekly-comment-field {
      min-width: 0;
    }
    .weekly-position-picker {
      margin-bottom: 0;
    }
    .weekly-picker-list {
      max-height: 260px;
    }
    .weekly-form-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .weekly-current-list {
      display: grid;
      gap: 10px;
    }
    .weekly-current-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-left: 7px solid var(--weekly-day-color, #0ea5e9);
      border-radius: 14px;
      background: color-mix(in srgb, var(--surface) 88%, #fff);
    }
    .weekly-current-day {
      display: inline-flex;
      align-items: center;
      margin-right: 6px;
      padding: 2px 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--weekly-day-color, #0ea5e9) 16%, transparent);
      color: color-mix(in srgb, var(--weekly-day-color, #0ea5e9) 78%, #0f172a);
      font-size: 0.72rem;
      letter-spacing: 0.02em;
    }
    .weekly-cadence-badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      border: 1px solid rgba(15, 76, 129, 0.22);
      border-radius: 999px;
      background: rgba(15, 76, 129, 0.09);
      color: #0f4c81;
      font-size: 0.72rem;
      font-weight: 800;
      white-space: nowrap;
    }
    .weekly-current-item span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 0.78rem;
    }
    .weekly-current-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      text-align: right;
    }
    .weekly-schedule-table {
      min-width: 760px;
    }
    .table-filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-left: 8px;
    }
    .table-filter-chip {
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.8);
      color: #475569;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: .74rem;
      line-height: 1.1;
      cursor: pointer;
      transition: all .12s ease;
    }
    .table-filter-chip:hover {
      border-color: var(--line-strong);
      transform: translateY(-1px);
    }
    .table-filter-chip.active {
      background: #0f172a;
      border-color: #0f172a;
      color: #fff;
    }
    .month-summary {
      margin-bottom: 14px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: var(--surface);
      overflow: hidden;
      max-width: 760px;
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .month-summary-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      border: 0;
      background: transparent;
      font-weight: 700;
      color: #0f172a;
      text-align: left;
    }
    .month-summary-toggle i {
      transition: transform .16s ease;
    }
    .month-summary-toggle[aria-expanded="true"] i {
      transform: rotate(90deg);
    }
    .month-summary-body {
      padding: 0 0 8px;
      border-top: 1px solid #edf2f7;
    }
    .month-summary-table {
      width: 100%;
      margin: 0;
    }
    .month-summary-table th,
    .month-summary-table td {
      padding: 8px 14px;
      border-bottom: 1px solid #edf2f7;
      font-size: .8rem;
    }
    .month-summary-table th {
      font-size: .74rem;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: #64748b;
      background: rgba(248,250,252,0.86);
    }
    .month-summary-table tr:last-child td {
      border-bottom: 0;
    }
    .month-summary-table td.is-today {
      background: rgba(14, 165, 233, 0.12);
    }
    .report-shell { display: grid; gap: 18px; }
    .report-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      padding: 14px 16px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: linear-gradient(180deg, var(--surface-strong), color-mix(in srgb, var(--surface) 90%, rgba(248,250,252,0.92)));
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .report-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .absence-calendar-actions {
      margin-left: auto;
      justify-content: flex-end;
    }
    .worktime-toolbar-secondary {
      align-items: center;
    }
    .worktime-copy-help {
      display: grid;
      gap: 4px 16px;
      flex: 1 1 100%;
      line-height: 1.35;
    }
    .worktime-copy-help strong {
      color: var(--text);
    }
    .worktime-compare-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .report-kpi {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 20px;
      background: linear-gradient(180deg, var(--surface-strong), color-mix(in srgb, var(--surface) 88%, rgba(244,247,251,0.92)));
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .report-kpi-label {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #64748b;
      margin-bottom: 10px;
    }
    .report-kpi-value {
      font-size: 1.9rem;
      line-height: 1;
      font-weight: 700;
      letter-spacing: -.05em;
      color: #0f172a;
    }
    .report-kpi-value.is-compact {
      font-size: 1rem;
      line-height: 1.2;
      letter-spacing: -.02em;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: break-word;
    }
    .report-kpi-meta { margin-top: 8px; font-size: .8rem; color: #64748b; font-weight: 500; white-space: normal; word-wrap: break-word; line-height: 1.25; }
    .report-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
    .report-card {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 22px;
      background: var(--surface);
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .report-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .report-card-subhead {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      padding-top: 16px;
      border-top: 1px solid #edf2f7;
      margin-bottom: 12px;
    }
    .report-card-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 0;
      margin: 0 0 14px;
      border: 0;
      background: transparent;
      text-align: left;
    }
    .report-card-toggle-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .report-card-toggle i {
      font-size: 1rem;
      color: var(--muted);
      flex: 0 0 auto;
    }
    .report-card-title { font-size: 1.02rem; font-weight: 700; color: #0f172a; margin: 0; }
    .report-card-meta { font-size: .78rem; color: #64748b; }
    .report-chart-wrap { height: 300px; }
    .report-chart-wrap.is-short { height: 260px; }
    .travel-mode-summary {
      margin-bottom: 16px;
      padding: 14px 16px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: color-mix(in srgb, var(--neutral-100) 72%, var(--surface));
    }
    .travel-mode-summary-head,
    .travel-mode-summary-values {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .travel-mode-summary-label {
      font-size: .84rem;
      font-weight: 800;
      color: var(--text);
    }
    .travel-mode-summary-meta,
    .travel-mode-summary-total {
      font-size: .76rem;
      color: var(--muted);
      font-weight: 700;
    }
    .travel-mode-summary-values {
      margin-top: 12px;
      font-size: .86rem;
      font-weight: 800;
    }
    .travel-mode-summary-value.is-office { color: #0f766e; }
    .travel-mode-summary-value.is-home { color: #2563eb; }
    .travel-mode-bar {
      display: flex;
      height: 14px;
      margin-top: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: #e8eef6;
    }
    .travel-mode-bar-segment.is-office { background: #0f766e; }
    .travel-mode-bar-segment.is-home { background: #2563eb; }
    .report-table { width: 100%; border-collapse: collapse; }
    .report-table th, .report-table td {
      padding: 10px 0;
      border-bottom: 1px solid #edf2f7;
      font-size: .84rem;
    }
    .report-table th {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #64748b;
    }
    .report-table tfoot td {
      border-top: 2px solid var(--line-strong);
      border-bottom: 0;
      background: color-mix(in srgb, var(--neutral-100) 82%, white);
      font-weight: 800;
      color: var(--text);
    }
    .report-table tr:last-child td { border-bottom: 0; }
    .report-top-table-wrap {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }
    .report-top-value-table th,
    .report-top-value-table td {
      padding-top: 7px;
      padding-bottom: 7px;
    }
    .report-top-rank {
      width: 44px;
      color: var(--muted);
      font-weight: 800;
    }
    .report-top-name {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      max-width: 360px;
    }
    .report-top-name span:last-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .report-top-dot {
      width: 10px;
      height: 10px;
      flex: 0 0 10px;
      border-radius: 999px;
    }
    .report-top-empty {
      padding-top: 10px;
    }
    .report-summary-matrix,
    .report-matrix-table {
      border: 1px solid var(--line);
      border-collapse: collapse;
    }
    .report-summary-matrix th,
    .report-summary-matrix td,
    .report-matrix-table th,
    .report-matrix-table td {
      border: 1px solid var(--line);
      padding: 10px 12px;
      background: color-mix(in srgb, var(--surface) 82%, white);
    }
    .report-summary-matrix thead th,
    .report-matrix-table thead th {
      background: color-mix(in srgb, var(--surface-soft) 78%, white);
      color: var(--text);
      font-weight: 800;
    }
    .report-summary-matrix tr:last-child td,
    .report-matrix-table tr:last-child td {
      border-bottom: 1px solid var(--line);
    }
    .report-summary-matrix .report-summary-carryover-row td {
      background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-strong));
      border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
      font-weight: 800;
    }
    .report-bar { height: 8px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
    .report-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d4ed8, #0ea5e9); }
    .report-wide { display: grid; }
    .report-section-title {
      margin: 6px 0 -2px;
      font-size: .74rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #64748b;
      font-weight: 700;
    }
    .report-list {
      display: grid;
      gap: 12px;
      max-height: 300px;
      overflow: auto;
      padding-right: 6px;
    }
    .report-list-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }
    .report-list-main {
      min-width: 0;
    }
    .report-list-label {
      font-size: .9rem;
      font-weight: 600;
      color: #0f172a;
      line-height: 1.25;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .report-list-meta {
      margin-top: 5px;
      font-size: .76rem;
      color: #64748b;
    }
    .report-list-hours {
      font-size: .92rem;
      font-weight: 700;
      color: #0f172a;
      white-space: nowrap;
    }
    .report-split {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 18px;
    }
    .report-stack {
      display: grid;
      gap: 18px;
    }
    .report-table-tight th,
    .report-table-tight td {
      padding: 9px 10px;
    }
    .report-table-tight th.text-end,
    .report-table-tight td.text-end {
      text-align: right;
    }
    .report-table-bordered th,
    .report-table-bordered td {
      border: 1px solid #e2e8f0;
    }
    .report-table-bordered thead th {
      border-bottom: 2px solid #cbd5e1;
    }
    .report-table-bordered tr:last-child td { border-bottom: 1px solid #e2e8f0; }
    .report-group-layout {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 20px;
      align-items: start;
    }
    .report-group-chart {
      height: 220px;
      position: relative;
    }
    .report-group-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 7px;
      vertical-align: middle;
      flex-shrink: 0;
    }
    .gap-collapse-btn {
      padding: 2px 8px;
      font-size: .78rem;
      line-height: 1.4;
      border-radius: 6px;
    }
    .report-kpi-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .report-kpi-grid-4 {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .report-card-tools {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      margin: -4px 0 12px;
    }
    .report-card-tools-inline {
      margin: -4px 0 12px;
      padding: 0 18px;
    }
    .report-inline-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-left: auto;
    }
    .report-details-modal-actions {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .report-details-modal-heading {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }
    .report-details-modal-subtitle {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.35;
    }
    .report-expand-btn {
      min-width: 42px;
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      padding: 0 12px;
      flex: 0 0 auto;
    }
    .report-card-head .report-expand-btn {
      margin-left: auto;
    }
    .report-card-toggle .report-expand-btn {
      margin-left: auto;
      margin-right: 6px;
    }
    .travel-mini-chart-head .travel-mini-expand-btn {
      margin-left: auto;
      min-width: 38px;
      min-height: 38px;
      border-radius: 10px;
    }
    .report-details-modal-body {
      padding: 18px !important;
      background: var(--surface-subtle);
    }
    .report-card-modal-copy {
      box-shadow: none;
      border: 1px solid color-mix(in srgb, var(--line) 82%, white);
    }
    .report-card-modal-copy .report-chart-wrap {
      min-height: 420px;
      height: auto;
    }
    .report-card-modal-copy .report-chart-wrap.is-short {
      min-height: 360px;
      height: auto;
    }
    .report-modal-chart-image {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 14px;
      background: rgba(255,255,255,0.76);
      border: 1px solid color-mix(in srgb, var(--line) 65%, white);
    }
    .travel-mini-chart-modal-copy {
      padding: 18px;
      display: grid;
      gap: 16px;
      border-radius: 20px;
      background: var(--surface);
      border: 1px solid color-mix(in srgb, var(--line) 82%, white);
    }
    .travel-mini-chart-modal-copy .travel-mini-chart-head {
      display: flex;
      align-items: baseline;
      gap: 10px;
    }
    .travel-mini-chart-modal-copy .travel-mini-chart-wrap,
    .travel-mini-chart-modal-copy .travel-mini-chart-wrap.is-donut {
      min-height: 420px;
      height: auto;
    }
    .report-details-modal-actions .btn-close {
      margin: 0 0 0 2px;
    }
    .report-action-btn {
      min-width: 38px;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      padding: 0 10px;
      flex: 0 0 auto;
    }
    .report-year-chip-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .report-year-chip {
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid #b9c9dc;
      background: transparent;
      color: #35516f;
      font-weight: 700;
    }
    .report-year-chip.active {
      background: #163a63;
      border-color: #163a63;
      color: #f8fbff;
    }
    .report-kpi-value.is-mid {
      font-size: 1.32rem;
      letter-spacing: -.03em;
    }
    .report-mini-stack {
      display: grid;
      gap: 4px;
    }
    .report-mini-stack .report-kpi-meta {
      margin-top: 0;
    }
    .report-note-box {
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid #e7edf4;
      background: linear-gradient(180deg, rgba(240,247,255,0.8), rgba(248,250,252,0.94));
      color: #51657d;
      font-size: .84rem;
      line-height: 1.45;
    }
    .report-note-box strong {
      color: #0f172a;
    }
    .report-diff-table th,
    .report-diff-table td {
      padding-left: 10px;
      padding-right: 10px;
    }
    .report-diff-delta.is-open {
      color: #0f766e;
      font-weight: 700;
    }
    .report-diff-delta.is-over {
      color: #dc2626;
      font-weight: 700;
    }
    .report-diff-delta.is-even {
      color: #64748b;
      font-weight: 600;
    }
    .report-empty {
      font-size: .84rem;
      color: #64748b;
      padding: 8px 0;
    }
    .report-mini-note {
      font-size: .78rem;
      color: #64748b;
    }
    .report-target-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 12px;
    }
    .report-target-card {
      padding: 14px 14px 12px;
      border: 1px solid #e7edf4;
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,247,251,0.92));
    }
    .report-target-month {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #64748b;
      margin-bottom: 8px;
      font-weight: 700;
    }
    .report-target-value {
      font-size: 1.28rem;
      font-weight: 700;
      letter-spacing: -.04em;
      color: #0f172a;
      line-height: 1.05;
    }
    .report-target-meta {
      margin-top: 8px;
      font-size: .75rem;
      color: #64748b;
    }
    .report-plan-table td,
    .report-plan-table th {
      white-space: nowrap;
    }
    .report-plan-table td:first-child,
    .report-plan-table th:first-child {
      white-space: normal;
    }
    .report-positive {
      color: #15803d;
      font-weight: 700;
    }
    .report-negative {
      color: #b91c1c;
      font-weight: 700;
    }
    .report-neutral {
      color: #64748b;
      font-weight: 700;
    }
    body.theme-anthracite .report-year-chip {
      background: #1d304b;
      border-color: #456284;
      color: #d4deea;
    }
    body.theme-anthracite .report-year-chip.active {
      background: #eef4fb;
      border-color: #eef4fb;
      color: #142338;
    }
    body.theme-anthracite .report-note-box {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
      color: #afbdd1;
    }
    body.theme-anthracite .report-note-box strong {
      color: var(--sidebar-text);
    }
    body.theme-anthracite .report-neutral {
      color: #d4deea;
    }
    body.theme-anthracite .travel-summary-badge,
    body.theme-anthracite .travel-report-note,
    body.theme-anthracite .report-table-section td {
      background: linear-gradient(180deg, rgba(34, 41, 54, 0.98), rgba(28, 34, 46, 0.98));
      border-color: rgba(216, 179, 106, 0.12);
      color: #c8d4e5;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }
    body.theme-anthracite .travel-report-note strong {
      color: #f4f7fb;
    }
    body.theme-anthracite .report-table-caption,
    body.theme-anthracite .report-th-sub {
      color: #aab9cc;
    }
    body.theme-anthracite .report-formula-pill {
      background: linear-gradient(180deg, rgba(34, 41, 54, 0.98), rgba(28, 34, 46, 0.98));
      border-color: rgba(216, 179, 106, 0.12);
      color: #d8e2f0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }
    body.theme-anthracite .travel-summary-badge i,
    body.theme-anthracite .travel-report-note i,
    body.theme-anthracite .report-formula-pill i,
    body.theme-anthracite .report-table-caption i {
      color: #8cc7ff;
    }
    body.theme-anthracite .travel-cost-section-label > i:first-child {
      background: color-mix(in srgb, var(--accent-2) 18%, rgba(255,255,255,0.06));
      color: color-mix(in srgb, var(--accent-2) 78%, white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }
    body.theme-anthracite .travel-summary-panel {
      border-color: rgba(216, 179, 106, 0.14);
      background: linear-gradient(180deg, rgba(34, 41, 53, 0.94), rgba(24, 30, 40, 0.96));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .travel-summary-panel.is-month {
      background: linear-gradient(180deg, rgba(31, 45, 67, 0.96), rgba(24, 30, 40, 0.97));
    }
    body.theme-anthracite .travel-summary-panel.is-end {
      background: linear-gradient(180deg, rgba(39, 42, 50, 0.96), rgba(24, 30, 40, 0.97));
    }
    body.theme-anthracite .travel-summary-panel-hero {
      background: linear-gradient(180deg, rgba(24, 40, 63, 0.94), rgba(20, 30, 44, 0.96));
      border-color: rgba(140, 199, 255, 0.12);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .travel-summary-panel-hero strong {
      color: #f5f8ff;
    }
    body.theme-anthracite .travel-summary-panel-row {
      border-top-color: rgba(255,255,255,0.06);
    }
    body.theme-anthracite .travel-summary-panel-row strong {
      color: #f3f7ff;
    }
    body.theme-anthracite .travel-summary-panel-row.is-end strong {
      color: #f0c674;
    }
    body.theme-anthracite .report-info-icon {
      color: #8fa2bb;
    }
    body.theme-anthracite .report-info-icon:hover {
      color: color-mix(in srgb, var(--accent-2) 84%, white);
    }
    body.theme-anthracite .tooltip {
      --bs-tooltip-bg: rgba(9, 12, 18, 0.98);
      --bs-tooltip-color: #f5f8ff;
    }
    body.theme-anthracite .handbook-hero,
    body.theme-anthracite .handbook-accordion-item,
    body.theme-anthracite .handbook-link-card,
    body.theme-anthracite .handbook-topic,
    body.theme-anthracite .handbook-hero-points,
    body.theme-anthracite .handbook-preview-card,
    body.theme-anthracite .handbook-accordion-body {
      border-color: rgba(255,255,255,0.08);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 18px 38px rgba(0,0,0,0.24);
    }
    body.theme-anthracite .handbook-hero,
    body.theme-anthracite .handbook-accordion-item {
      background:
        radial-gradient(circle at top right, rgba(120, 188, 255, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, rgba(22, 28, 38, 0.96) 0%, rgba(12, 17, 25, 0.98) 100%);
    }
    body.theme-anthracite .handbook-link-card,
    body.theme-anthracite .handbook-topic,
    body.theme-anthracite .handbook-hero-points,
    body.theme-anthracite .handbook-preview-card,
    body.theme-anthracite .handbook-accordion-body {
      background: linear-gradient(180deg, rgba(24, 32, 44, 0.96) 0%, rgba(15, 22, 32, 0.98) 100%);
    }
    body.theme-anthracite .handbook-accordion-button:not(.collapsed) {
      background: linear-gradient(180deg, rgba(31, 47, 70, 0.96) 0%, rgba(16, 24, 35, 0.98) 100%);
    }
    body.theme-anthracite .handbook-section-toolbar {
      border-color: rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(29, 39, 54, 0.96), rgba(17, 24, 34, 0.98));
    }
    body.theme-anthracite .handbook-section-toolbar-label,
    body.theme-anthracite .handbook-preview-caption {
      color: #9fb2ca;
    }
    body.theme-anthracite .handbook-preview-shot {
      border-color: rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(18, 29, 43, 0.96) 0%, rgba(11, 18, 28, 0.98) 100%);
    }
    body.theme-anthracite .handbook-accordion-body::before,
    body.theme-anthracite .handbook-preview-toolbar span.is-active {
      background: rgba(140, 199, 255, 0.14);
      color: #a9d7ff;
    }
    body.theme-anthracite .handbook-preview-pill,
    body.theme-anthracite .handbook-preview-chip-row span,
    body.theme-anthracite .handbook-preview-footer {
      background: rgba(255,255,255,0.06);
      color: #edf4ff;
      box-shadow: 0 12px 22px rgba(0,0,0,0.18);
    }
    body.theme-anthracite .handbook-preview-toolbar span,
    body.theme-anthracite .handbook-preview-calendar span,
    body.theme-anthracite .handbook-preview-stats span,
    body.theme-anthracite .handbook-preview-week-grid span:nth-child(-n+5) {
      background: rgba(255,255,255,0.06);
      color: #d7e4f5;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    }
    body.theme-anthracite .handbook-preview-mini-list span {
      background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    }
    body.theme-anthracite .handbook-preview-grid span {
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
      border-color: rgba(255,255,255,0.06);
    }
    body.theme-anthracite .update-progress {
      border-color: rgba(255,255,255,0.12);
      background: linear-gradient(180deg, rgba(20, 27, 38, 0.96), rgba(16, 22, 32, 0.98));
    }
    body.theme-anthracite .update-progress-bar {
      background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.28));
    }
    body.theme-anthracite .update-progress-label {
      color: #e7eef8;
    }

    @media (max-width: 1200px) {
      .report-kpis,
      .report-kpi-grid-4,
      .report-kpi-grid-3,
      .report-split,
      .travel-summary-grid,
      .travel-mini-chart-grid,
      .report-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 980px) {
      .report-kpis,
      .report-kpi-grid-4,
      .report-kpi-grid-3,
      .report-split,
      .travel-summary-grid,
      .travel-mini-chart-grid,
      .report-grid { grid-template-columns: 1fr; }
      .travel-mini-chart-grid {
        padding: 10px;
        gap: 10px;
      }
      .travel-mini-chart {
        padding: 14px;
      }
      .travel-summary-badges {
        gap: 8px;
      }
      .travel-summary-badge {
        width: 100%;
        justify-content: flex-start;
      }
      .report-chart-wrap,
      .report-chart-wrap.is-short { height: 260px; }
    }

    /* Stunden quick buttons */
    .h-btn { padding: 7px 12px; font-size: .8rem; border-radius: 12px; border-color: var(--line-strong); background: rgba(255,255,255,0.9); }
    .h-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
    .hours-quick-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
    }
    .selected-pos-box {
      min-width: 220px; max-width: 360px; padding: 7px 10px;
      border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f8fafc);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
      width: 100%;
      text-align: left;
      cursor: pointer;
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    .selected-pos-box:hover,
    .selected-pos-box:focus-visible {
      border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
      outline: none;
    }
    .selected-pos-box:active {
      transform: translateY(1px);
    }
    .selected-pos-box .label { display: block; font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
    .selected-pos-box .value { display: block; font-size: .82rem; font-weight: 600; color: #0f172a; line-height: 1.25; }
    .selected-pos-box .value.is-empty,
    .position-picker-value.is-empty { color: #64748b; }
    .config-panel {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      margin-bottom: 18px;
    }
    .config-grid {
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      gap: 18px;
      align-items: stretch;
    }
    .config-card {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: var(--surface);
      backdrop-filter: blur(var(--surface-blur));
      box-shadow: var(--surface-shadow);
    }
    .config-rule-list {
      display: grid;
      gap: 14px;
    }
    .config-check {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: .82rem;
      color: #475569;
      padding: 10px 0;
      border-top: 1px solid #edf2f7;
    }
    .config-check:first-child { border-top: 0; padding-top: 0; }
    .config-check input { margin-top: 3px; }
    .settings-card-head {
      margin: -18px -18px 16px;
      padding: 10px 18px 12px;
      border-bottom: 1px solid var(--line);
      font-weight: 700;
      color: #14365b;
    }
    .settings-grid-2,
    .settings-grid-3,
    .settings-grid-4 {
      display: grid;
      gap: 12px;
    }
    .settings-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .settings-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .settings-note {
      margin-top: 8px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .settings-stack {
      display: grid;
      gap: 18px;
    }
    .config-accordion {
      display: grid;
      gap: 0.9rem;
    }
    .config-accordion-item {
      border: 1px solid var(--line);
      border-radius: 24px !important;
      overflow: hidden;
      background: var(--surface-strong);
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    }
    .config-accordion-button {
      gap: 0.85rem;
      padding: 1rem 1.15rem;
      background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(238,244,251,0.78));
      color: var(--text);
      border: 0;
      box-shadow: none;
    }
    .config-accordion-button:not(.collapsed) {
      color: var(--text);
      background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(14,165,233,0.06));
      box-shadow: inset 0 -1px 0 var(--line);
    }
    .config-accordion-button:focus {
      border-color: transparent;
      box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }
    .config-accordion-button i {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      background: #e8f1ff;
      color: #1d4ed8;
      font-size: 1.05rem;
    }
    .config-accordion-button span {
      display: grid;
      gap: 0.18rem;
      min-width: 0;
      text-align: left;
    }
    .config-accordion-button strong {
      font-size: 1rem;
      letter-spacing: -0.02em;
    }
    .config-accordion-button small {
      color: var(--muted);
      font-weight: 650;
      line-height: 1.3;
    }
    .config-accordion-body {
      padding: 1rem;
      background: rgba(248,250,252,0.42);
    }
    .holiday-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 22px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(224,242,254,0.82));
    }
    .holiday-hero-main {
      flex: 1 1 auto;
      min-width: 0;
    }
    .holiday-hero-controls {
      display: grid;
      grid-template-columns: minmax(320px, 1fr) 260px;
      gap: 14px;
      align-items: end;
      margin-top: 16px;
      max-width: 980px;
    }
    .holiday-hero-kicker {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #4b6380;
    }
    .holiday-hero-date {
      margin-top: 4px;
      font-size: 1.9rem;
      font-weight: 700;
      letter-spacing: -0.04em;
      color: #14365b;
      line-height: 1;
    }
    .holiday-hero-meta {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .holiday-count-chip {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--line);
      font-size: 0.72rem;
      font-weight: 700;
      color: #14365b;
      white-space: nowrap;
    }
    .holiday-layout {
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    }
    .holiday-table td,
    .holiday-table th {
      font-size: 0.78rem;
      vertical-align: middle;
    }
    .holiday-active-btn {
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid #7dd3fc;
      background: #ccfbf1;
      color: #0f766e;
      font-weight: 700;
      font-size: 0.78rem;
      line-height: 1;
    }
    .holiday-active-btn.is-off {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #b91c1c;
    }
    .bridge-grid {
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .bridge-card {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,0.8);
    }
    .bridge-card.is-highlight {
      background: linear-gradient(135deg, rgba(220,252,231,0.9), rgba(224,242,254,0.9));
    }
    .bridge-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
    }
    .bridge-value {
      margin-top: 4px;
      font-size: 1.65rem;
      font-weight: 700;
      color: #14365b;
      letter-spacing: -0.04em;
    }
    .bridge-sub {
      margin-top: 2px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .theme-dark .holiday-hero,
    .theme-dark .bridge-card {
      background: rgba(24,40,63,0.92);
      border-color: #314866;
    }
    .theme-dark .bridge-card.is-highlight {
      background: linear-gradient(135deg, rgba(15,118,110,0.24), rgba(30,64,175,0.22));
    }
    .theme-dark .holiday-hero-kicker,
    .theme-dark .bridge-label {
      color: #afbdd1;
    }
    .theme-dark .holiday-hero-date,
    .theme-dark .bridge-value,
    .theme-dark .holiday-count-chip {
      color: var(--sidebar-text);
    }
    .theme-dark .holiday-count-chip {
      background: rgba(29,48,75,0.94);
      border-color: #314866;
    }
    .theme-dark .holiday-active-btn {
      background: rgba(13,148,136,0.22);
      border-color: rgba(45,212,191,0.36);
      color: #99f6e4;
    }
    .theme-dark .holiday-active-btn.is-off {
      background: rgba(127,29,29,0.22);
      border-color: rgba(248,113,113,0.36);
      color: #fecaca;
    }
    .theme-dark .holiday-table thead th {
      background: #20324d !important;
      color: #d9e5f3 !important;
    }
    .theme-dark .holiday-table tbody td {
      background: #17273e;
      color: var(--sidebar-text);
      border-bottom-color: #314866;
    }
    .theme-dark .holiday-table tbody tr:hover td {
      background: #20324d;
    }
    .theme-dark .holiday-table .text-muted,
    .theme-dark .bridge-sub,
    .theme-dark .holiday-hero-meta {
      color: #afbdd1 !important;
    }
    @media (max-width: 1200px) {
      .holiday-layout,
      .bridge-grid,
      .settings-grid-4,
      .settings-grid-3,
      .settings-grid-2 {
        grid-template-columns: 1fr;
      }
    }
    .theme-dark .settings-card-head {
      color: var(--sidebar-text);
      border-bottom-color: #314866;
    }
    .overflow-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px;
      border-radius: 999px;
      background: #ede9fe;
      color: #5b21b6;
      font-size: .69rem;
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
      margin-left: 8px;
    }
    .overflow-badge .overflow-origin {
      font-size: .72rem;
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
      color: inherit;
      white-space: nowrap;
    }
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }
    .calendar-head {
      text-align: center;
      font-size: .72rem;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: .06em;
      padding-bottom: 4px;
    }
    .calendar-day {
      min-height: 88px;
      border: 1px solid #e7edf4;
      border-radius: 16px;
      background: rgba(255,255,255,0.86);
      padding: 10px;
      text-align: left;
      transition: all .12s ease;
    }
    .calendar-day:hover { border-color: #bfd3ea; box-shadow: var(--shadow-md); transform: translateY(-1px); }
    .calendar-day.muted { opacity: .45; }
    .calendar-day.current { border-color: #93c5fd; background: #eff6ff; }
    .calendar-day.selected { border-color: #0f172a; background: #e2e8f0; }
    .absence-calendar {
      margin-top: 10px;
    }
    .absence-table-wrap {
      overflow: auto;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: rgba(255,255,255,0.76);
    }
    .absence-table {
      width: 100%;
      min-width: 1280px;
      border-collapse: collapse;
      table-layout: fixed;
    }
    .absence-table th,
    .absence-table td {
      border-bottom: 1px dashed #dbe5f0;
      border-right: 1px dashed #dbe5f0;
      vertical-align: top;
    }
    .absence-table th:last-child,
    .absence-table td:last-child {
      border-right: 0;
    }
    .absence-table thead th {
      padding: 10px 8px;
      font-size: .78rem;
      font-weight: 700;
      color: #0f172a;
      background: rgba(255,255,255,0.94);
      text-align: center;
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .absence-head-sum {
      display: block;
      margin-top: 4px;
      font-size: .68rem;
      font-weight: 600;
      color: #64748b;
    }
    .absence-head-sum + .absence-head-sum {
      margin-top: 2px;
    }
    .absence-day-index {
      width: 54px;
      text-align: center;
      font-weight: 700;
      color: #0f172a;
      background: rgba(255,255,255,0.94);
      position: sticky;
      left: 0;
      z-index: 1;
    }
    .absence-cell {
      height: 48px;
      padding: 4px 8px 6px;
      background: rgba(255,255,255,0.86);
      cursor: pointer;
      transition: background .12s ease;
    }
    .absence-cell:hover { background: #f8fbff; }
    .absence-cell.weekend {
      background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(254, 243, 199, 0.88));
      box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.52);
    }
    .absence-cell.weekend:hover {
      background:
        linear-gradient(135deg, rgba(255, 232, 199, 1), rgba(253, 230, 138, 0.94));
    }
    .absence-cell.holiday {
      background: #dff2fb;
      box-shadow: inset 3px 0 0 rgba(20, 184, 166, 0.6);
    }
    .absence-cell.urlaub { background: #dbeafe; }
    .absence-cell.krank { background: #ffe1e6; }
    .absence-cell.gleitzeit { background: #ece3ff; }
    .absence-cell.halbtag_urlaub { background: #ffedd5; }
    .absence-cell.ersatzruhetag { background: #ffedd5; }
    .absence-cell.weiterbildung { background: #dff2fb; }
    .absence-cell.dienstreise { background: #d7f4f1; }
    .absence-weekday {
      display: block;
      font-size: .7rem;
      color: #5b7ca0;
      line-height: 1.1;
    }
    .absence-hours {
      display: block;
      margin-top: 2px;
      font-size: .68rem;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.1;
    }
    .absence-label {
      display: block;
      margin-top: 2px;
      font-size: .68rem;
      font-weight: 700;
      color: #0f5d78;
      line-height: 1.15;
      white-space: normal;
    }
    .absence-cell.weekend .absence-label {
      color: #9a5a00;
      letter-spacing: .01em;
    }
    .absence-cell.holiday .absence-label,
    .absence-cell.holiday.weekend .absence-label {
      color: #0f5d78;
    }
    .absence-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .absence-legend-table {
      overflow: hidden;
      border-radius: 12px;
    }
    .absence-legend-table th,
    .absence-legend-table td {
      border-color: color-mix(in srgb, var(--line-strong) 72%, transparent) !important;
      color: var(--text);
    }
    .absence-legend-table th {
      font-size: 0.7rem;
      letter-spacing: 0.08em;
    }
    .absence-legend-table td {
      font-weight: 800;
    }
    .absence-legend-table th:nth-child(1),
    .absence-legend-table td:nth-child(1) {
      background: #dbeafe;
    }
    .absence-legend-table th:nth-child(2),
    .absence-legend-table td:nth-child(2) {
      background: #ffedd5;
    }
    .absence-legend-table th:nth-child(3),
    .absence-legend-table td:nth-child(3) {
      background: #ffe1e6;
    }
    .absence-legend-table th:nth-child(4),
    .absence-legend-table td:nth-child(4) {
      background: #ece3ff;
    }
    .absence-legend-table th:nth-child(5),
    .absence-legend-table td:nth-child(5) {
      background: #ffedd5;
    }
    .absence-legend-table th:nth-child(6),
    .absence-legend-table td:nth-child(6) {
      background: #dff2fb;
    }
    .absence-legend-table th:nth-child(7),
    .absence-legend-table td:nth-child(7) {
      background: #d7f4f1;
    }
    .absence-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: .72rem;
      color: #475569;
      background: rgba(255,255,255,0.78);
      border: 1px solid #e2e8f0;
    }
    .absence-chip-swatch {
      width: 10px;
      height: 10px;
      border-radius: 999px;
    }
    .calendar-day-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 14px;
    }
    .calendar-day-num {
      font-size: .88rem;
      font-weight: 700;
      color: #0f172a;
    }
    .calendar-hours {
      font-size: .82rem;
      font-weight: 700;
      color: #2563eb;
    }
    .calendar-hours.empty { color: #94a3b8; font-weight: 500; }
    .calendar-note {
      display: block;
      margin-top: 6px;
      font-size: .67rem;
      font-weight: 700;
      color: #dc2626;
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .entry-filters {
      display: grid;
      grid-template-columns: minmax(320px, 1.8fr) repeat(2, minmax(150px, 0.7fr)) auto;
      gap: 10px;
      align-items: end;
      margin-bottom: 14px;
    }
    .entry-filter-stage {
      padding: 14px;
      border: 1px solid #e7edf4;
      border-radius: 20px;
      background: linear-gradient(180deg, var(--surface-strong), color-mix(in srgb, var(--surface) 92%, rgba(248,250,252,0.92)));
      box-shadow: var(--surface-shadow);
      backdrop-filter: blur(var(--surface-blur));
    }
    .entry-filter-search {
      min-width: 0;
    }
    .entry-filter-actions {
      display: flex;
      align-items: end;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .sort-link {
      cursor: pointer;
      user-select: none;
    }
    .sort-link:hover { color: #0f172a; }
    .sort-link.active { color: #0f172a; }

    /* Flash */
    #flashMsg {
      display: none;
      margin-top: 8px;
      margin-bottom: 0;
      border-radius: 14px;
      font-size: .78rem;
      line-height: 1.35;
      border-color: #f5c2c7;
      background: #f8d7da;
      color: #842029;
    }

    /* Stammdaten table */
    .section-subtitle {
      font-size: 1.22rem;
      font-weight: 700;
      letter-spacing: -.03em;
      line-height: 1.1;
    }
    .count-badge {
      font-size: .82rem;
      padding: 6px 9px;
      border-radius: 10px;
    }
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .03em;
    }
    .status-badge.inactive {
      background: #e2e8f0;
      color: #475569;
    }
    .sd-table th, .sd-table td { font-size: .78rem; white-space: nowrap; }
    .sd-table td.wrap { white-space: normal; max-width: 220px; }
    .sd-inline-meta {
      margin-top: 6px;
      color: var(--muted);
      font-size: .75rem;
      line-height: 1.35;
    }
    .sd-table th:last-child,
    .sd-table td:last-child {
      padding-right: 28px;
    }
    .sd-actions-cell {
      min-width: 112px;
    }
    .stammdaten-head {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .stammdaten-meta {
      font-size: .84rem;
      color: #64748b;
      margin-left: 2px;
    }

    /* Month nav */
    .month-nav { display: flex; align-items: center; gap: 8px; }
    .month-nav h6 { margin: 0; min-width: 130px; text-align: center; }

    .tab-content { background: transparent; padding: 0 !important; }
    .picker-list { max-height: 50vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 16px; }
    .picker-item {
      width: 100%; border: 0; background: #fff; text-align: left; padding: 12px 14px;
      border-bottom: 1px solid #e2e8f0; transition: background .12s;
    }
    .picker-item:last-child { border-bottom: 0; }
    .picker-item:hover, .picker-item.active { background: #eff6ff; }
    .picker-name { display: block; font-weight: 600; color: #1e293b; }
    .picker-code { display: block; font-size: .75rem; color: #64748b; font-family: monospace; }

    .nav-tabs {
      gap: 6px;
      padding: 0;
      border-bottom: 0;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      position: relative;
      z-index: 2;
    }

    .nav-divider {
      width: auto;
      height: 1px;
      align-self: stretch;
      background: rgba(255,255,255,0.08);
      opacity: 1;
      margin: 10px 8px;
      list-style: none;
    }

    .nav-item {
      list-style: none;
    }

    .nav-tabs .nav-link {
      border: 0;
      border-radius: 16px;
      padding: 12px 14px;
      color: #b6c8dd;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .nav-tabs .nav-link:hover { background: rgba(255,255,255,0.08); color: #f8fbff; }
    .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: #f8fafc;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .tab-pane-inner {
      padding: 24px 28px 30px;
    }

    .brand-stage {
      position: relative;
      z-index: 1;
      margin: 0;
      padding: 22px 28px 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,248,253,0.92));
      border-bottom: 1px solid rgba(217,226,236,0.88);
    }

    .brand-stage-inner {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
      min-height: 104px;
    }

    .brand-stage .brand-mark {
      width: 82px;
      height: 82px;
      flex: 0 0 82px;
    }

    .brand-stage .navbar-brand {
      font-size: 3rem;
    }

    .brand-stage .brand-sub {
      font-size: 1.08rem;
    }

    .form-control, .form-select {
      border-radius: 16px;
      border-color: #d6e2ee;
      background: #fbfdff;
      min-height: 44px;
    }

    .form-control:focus, .form-select:focus {
      border-color: #93c5fd;
      box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
    }
    .focus-active {
      border-color: #2563eb !important;
      box-shadow: 0 0 0 4px rgba(37,99,235,0.16) !important;
      background: #ffffff !important;
    }

    .btn {
      border-radius: 14px;
      font-weight: 600;
    }

    .btn-sm {
      border-radius: 12px;
    }

    .section-lead {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 14px;
    }

    .section-kicker {
      display: inline-block;
      font-size: .72rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #64748b;
      margin-bottom: 8px;
    }

    .section-title {
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: -.04em;
      margin: 0;
    }

    .section-copy {
      margin: 6px 0 0;
      color: #64748b;
      max-width: 60ch;
    }

    .toolbar-line {
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid #edf2f7;
    }
    .section-lead-compact {
      margin-bottom: 18px;
    }
    .booking-stage {
      margin-bottom: 18px;
      padding: 16px 18px 18px;
      border: 1px solid color-mix(in srgb, var(--line) 78%, #dbe5f1);
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--surface) 96%, var(--neutral-100)));
      box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    }
    .booking-stage-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .booking-stage-title {
      margin: 0;
      color: var(--text);
      font-size: 1.08rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }
    .booking-stage-hints {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .booking-stage-hint {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.78);
      border: 1px solid color-mix(in srgb, var(--line) 82%, white);
      color: #52657d;
      font-size: 0.74rem;
      font-weight: 700;
      line-height: 1.1;
      white-space: nowrap;
    }
    .booking-row {
      display: grid;
      grid-template-columns: 210px minmax(240px, 360px) minmax(360px, 420px) 1fr;
      gap: 18px;
      align-items: start;
    }
    .hours-block {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }
    .comment-field {
      display: grid;
      grid-template-columns: 46px minmax(220px, 1fr);
      gap: 10px;
      align-items: center;
    }
    .comment-preset-quick {
      display: grid;
      margin-top: 10px;
      max-width: min(100%, 420px);
    }
    .booking-stage .selected-pos-box,
    .booking-stage .form-control,
    .booking-stage .form-select {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .booking-stage .selected-pos-box {
      min-height: 52px;
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248, 250, 252, 0.96));
    }
    .booking-stage .h-btn {
      min-height: 40px;
      border-radius: 14px;
    }
    .booking-stage .comment-field .btn {
      min-height: 40px;
      border-radius: 14px;
    }
    .comment-preset-admin {
      display: grid;
      gap: 12px;
    }
    .comment-preset-input {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
    }
    .comment-preset-list {
      display: grid;
      gap: 8px;
    }
    .comment-preset-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: color-mix(in srgb, var(--surface) 90%, #fff);
      font-size: 0.82rem;
      font-weight: 700;
    }
    body.theme-anthracite .comment-preset-item {
      background: color-mix(in srgb, var(--surface) 82%, #0f172a);
      color: var(--text);
    }
    .icon-action {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-width: 1px;
    }

    .table-responsive {
      border: 1px solid #dfe7f1;
      border-radius: 22px;
      background: var(--surface-strong);
      overflow-x: auto;
      overflow-y: visible;
      width: 100%;
      box-shadow: var(--surface-shadow);
      -webkit-overflow-scrolling: touch;
      backdrop-filter: blur(var(--surface-blur));
    }
    .entry-table { width: 100%; }

    body.theme-anthracite {
      background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 26%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent 30%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    }

    body.theme-anthracite .app-sidebar {
      background:
        radial-gradient(circle at top left, rgba(216, 179, 106, 0.08), transparent 28%),
        linear-gradient(180deg, var(--sidebar-top) 0%, color-mix(in srgb, var(--sidebar-top) 52%, var(--sidebar-bottom)) 58%, var(--sidebar-bottom) 100%);
      border-color: rgba(216, 179, 106, 0.12);
      box-shadow:
        0 30px 60px rgba(4, 10, 20, 0.34),
        inset -1px 0 0 rgba(255,255,255,0.03);
    }

    body.theme-anthracite .sidebar-brand,
    body.theme-anthracite .sidebar-footer {
      border-color: rgba(216, 179, 106, 0.10);
    }

    body.theme-anthracite .sidebar-brand {
      background: linear-gradient(180deg, rgba(16, 20, 29, 0.94), rgba(12, 16, 23, 0.96));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    body.theme-anthracite .sidebar-brand .navbar-brand {
      color: #f8fbff !important;
    }

    body.theme-anthracite .sidebar-brand .brand-sub,
    body.theme-anthracite .sidebar-footer {
      color: var(--sidebar-muted);
    }

    body.theme-anthracite .sidebar-section-label {
      color: rgba(216, 179, 106, 0.62);
      letter-spacing: 0.14em;
    }

    body.theme-anthracite .sidebar-session {
      border-color: rgba(216, 179, 106, 0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    body.theme-anthracite .latest-entry-badge-day {
      border-color: rgba(45, 212, 191, 0.26);
      background: rgba(20, 184, 166, 0.14);
      color: #99f6e4;
    }

    body.theme-anthracite .content-topbar,
    body.theme-anthracite .content-frame {
      background:
        linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(14, 18, 26, 0.98));
      border-color: rgba(216, 179, 106, 0.08);
    }

    body.theme-anthracite .workspace-panel {
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    body.theme-anthracite .content-topbar-kicker {
      color: var(--muted);
    }

    body.theme-anthracite .content-topbar-title {
      color: var(--text);
    }

    body.theme-anthracite .content-topbar-meta {
      background: linear-gradient(180deg, rgba(36, 43, 56, 0.96), rgba(30, 36, 48, 0.98));
      border-color: rgba(216, 179, 106, 0.14);
      color: var(--muted);
    }

    body.theme-anthracite .topbar-session-card {
      border-color: rgba(216, 179, 106, 0.12);
      background: linear-gradient(180deg, rgba(28, 34, 46, 0.9), rgba(20, 26, 36, 0.92));
    }

    body.theme-anthracite .topbar-session-title {
      color: rgba(226, 232, 240, 0.68);
    }

    body.theme-anthracite .topbar-session-sub {
      color: rgba(226, 232, 240, 0.6);
    }

    body.theme-anthracite .status-led {
      box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
    }

    body.theme-anthracite .storage-mode-chip {
      background: linear-gradient(180deg, rgba(36, 43, 56, 0.96), rgba(30, 36, 48, 0.98));
      border-color: rgba(216, 179, 106, 0.10);
      color: var(--muted);
    }

    body.theme-anthracite .storage-mode-chip.is-desktop {
      background: rgba(14, 116, 73, 0.18);
      border-color: rgba(74, 222, 128, 0.36);
      color: #b9f2cf;
    }

    body.theme-anthracite .storage-mode-chip.is-browser {
      background: rgba(146, 64, 14, 0.2);
      border-color: rgba(251, 191, 36, 0.34);
      color: #f7d38b;
    }

    body.theme-anthracite .storage-mode-chip.is-server {
      background: rgba(14, 116, 144, 0.22);
      border-color: rgba(103, 232, 249, 0.36);
      color: #a5f3fc;
    }

    body.theme-anthracite .runtime-status-chip {
      background: var(--surface-strong);
      border-color: var(--line);
      color: var(--muted);
    }

    body.theme-anthracite .runtime-status-chip.is-local {
      background: rgba(14, 116, 73, 0.18);
      border-color: rgba(74, 222, 128, 0.36);
      color: #b9f2cf;
    }

    body.theme-anthracite .runtime-status-chip.is-browser {
      background: rgba(146, 64, 14, 0.2);
      border-color: rgba(251, 191, 36, 0.34);
      color: #f7d38b;
    }

    body.theme-anthracite .runtime-status-chip.is-online {
      background: rgba(14, 116, 144, 0.22);
      border-color: rgba(103, 232, 249, 0.36);
      color: #a5f3fc;
    }

    body.theme-anthracite .runtime-status-chip.is-offline {
      background: rgba(153, 27, 27, 0.24);
      border-color: rgba(252, 165, 165, 0.32);
      color: #fecaca;
    }

    body.theme-anthracite .version-hero,
    body.theme-anthracite .version-grid > div,
    body.theme-anthracite .version-row {
      background: linear-gradient(180deg, rgba(31, 37, 48, 0.96), rgba(24, 30, 39, 0.98));
      border-color: rgba(216, 179, 106, 0.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }

    body.theme-anthracite .version-hero strong,
    body.theme-anthracite .version-grid strong,
    body.theme-anthracite .version-row strong {
      color: var(--sidebar-text);
    }

    body.theme-anthracite .version-state {
      background: rgba(216, 179, 106, 0.14);
      color: #f2ddad;
    }

    body.theme-anthracite .entry-table tbody tr.is-latest-entry td {
      background:
        linear-gradient(180deg, var(--entry-latest-bg), var(--entry-latest-bg)),
        var(--surface);
      box-shadow: inset 0 1px 0 var(--entry-latest-border), inset 0 -1px 0 var(--entry-latest-border);
    }
    body.theme-anthracite .entry-table tbody tr.is-weekly-entry td {
      background:
        linear-gradient(180deg, rgba(56,189,248,0.13), rgba(56,189,248,0.13)),
        var(--surface);
      box-shadow: inset 4px 0 0 var(--accent);
    }
    body.theme-anthracite .weekly-entry-badge {
      border-color: rgba(56,189,248,0.36);
      background: rgba(56,189,248,0.14);
      color: #bae6fd;
    }

    body.theme-anthracite .storage-mode-note {
      background: rgba(146, 64, 14, 0.18);
      border-color: rgba(251, 191, 36, 0.3);
      color: #f7d38b;
    }

    body.theme-anthracite .config-accordion-item {
      background: linear-gradient(180deg, rgba(24, 29, 38, 0.98), rgba(18, 23, 31, 0.98));
      border-color: rgba(216, 179, 106, 0.10);
      box-shadow:
        0 18px 38px rgba(4, 10, 20, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.03);
    }

    body.theme-anthracite .config-accordion-button {
      background: linear-gradient(180deg, rgba(34, 39, 48, 0.96), rgba(27, 32, 40, 0.98));
      color: var(--text);
    }

    body.theme-anthracite .config-accordion-button:not(.collapsed) {
      background:
        radial-gradient(circle at right center, rgba(216, 179, 106, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(43, 49, 59, 0.98), rgba(29, 35, 43, 0.98));
      box-shadow: inset 0 -1px 0 rgba(216, 179, 106, 0.10);
    }

    body.theme-anthracite .config-accordion-button i {
      background: rgba(47, 58, 76, 0.92);
      color: #d6b16b;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    body.theme-anthracite .config-accordion-button small {
      color: #a9b4c5;
    }

    body.theme-anthracite .section-kicker {
      color: rgba(216, 179, 106, 0.72);
      letter-spacing: 0.14em;
    }

    body.theme-anthracite .config-accordion-body {
      background: linear-gradient(180deg, rgba(18, 23, 31, 0.98), rgba(16, 20, 28, 0.98));
      border-top: 1px solid rgba(216, 179, 106, 0.08);
    }

    body.theme-anthracite .sidebar-toggle {
      background: linear-gradient(180deg, rgba(36, 43, 56, 0.96), rgba(30, 36, 48, 0.98));
      border-color: rgba(216, 179, 106, 0.12);
      color: var(--text);
      box-shadow: none;
    }

    body.theme-anthracite .brand-stage {
      background: linear-gradient(180deg, var(--surface-strong), var(--surface));
      border-bottom-color: var(--line);
    }

    body.theme-anthracite .app-sidebar .nav-tabs {
      background: transparent !important;
      border-bottom: 0;
    }

    body.theme-anthracite .app-sidebar .nav-tabs .nav-link {
      color: var(--sidebar-muted);
    }

    body.theme-anthracite .app-sidebar .nav-tabs .nav-link:hover {
      background: rgba(255,255,255,0.08);
      color: #f8fbff;
    }

    body.theme-anthracite .app-sidebar .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: #f8fafc;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .modal-content {
      border: 1px solid rgba(255,255,255,0.6);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
      overflow: hidden;
    }

    .modal-header, .modal-footer {
      background: #fbfdff;
      border-color: #e8eef5;
    }

    @media (max-width: 991px) {
      .app-shell { padding: 12px; }
      .app-layout { grid-template-columns: 1fr; gap: 14px; }
      .app-sidebar {
        position: fixed;
        inset: 12px auto 12px 12px;
        width: min(84vw, 320px);
        min-height: 0;
        max-height: calc(100vh - 24px);
        z-index: 60;
        transform: translateX(calc(-100% - 18px));
        transition: transform .22s ease;
      }
      .app-layout.sidebar-open .app-sidebar {
        transform: translateX(0);
      }
      .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 50;
      }
      .app-layout.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
      }
      .sidebar-scroll {
        padding-top: 12px;
      }
      .content-topbar {
        padding: 14px 16px;
        border-radius: 18px;
        align-items: flex-start;
      }
      .content-topbar-main {
        width: 100%;
      }
      .content-topbar-side {
        width: 100%;
        justify-content: flex-end;
      }
      .sidebar-toggle {
        display: inline-flex;
      }
      .content-topbar-meta {
        margin-left: auto;
      }
      .nav-brand-slot {
        width: 100%;
        min-width: 0;
        padding-top: 8px;
        text-align: left;
      }
      .brand-copy {
        margin-left: 0;
        text-align: left;
      }
      .tab-pane-inner { padding: 18px 16px 22px; }
      .booking-stage {
        padding: 14px;
        border-radius: 20px;
      }
      .booking-stage-head {
        margin-bottom: 12px;
      }
      .booking-stage-hints {
        justify-content: flex-start;
      }
      .booking-stage-hint {
        white-space: normal;
      }
      .entry-list-toolbar {
        align-items: stretch;
        padding: 12px;
      }
      .daily-entry-overview-actions {
        grid-template-columns: 34px 88px minmax(0, 1fr) 34px 34px;
        width: 100%;
      }
      .daily-entry-overview-actions #dailyEntryOverviewStats {
        min-width: 0;
      }
      .entry-month-nav {
        width: 100%;
      }
      .month-nav-copy {
        min-width: 0;
        flex: 1;
      }
      .month-stats-cluster {
        width: 100%;
      }
      .entry-toolbar-delete {
        margin-left: 0;
        width: 100%;
        justify-content: center;
      }
      .booking-row { grid-template-columns: 1fr; gap: 14px; }
      .hours-block { grid-template-columns: 1fr; }
      .hours-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
      .selected-pos-box { max-width: none; min-width: 0; width: 100%; }
      .comment-field { grid-template-columns: 44px 1fr; }
      .position-picker-header { flex-wrap: wrap; }
      .config-grid { grid-template-columns: 1fr; }
      .config-accordion-button {
        align-items: flex-start;
        padding: 0.9rem;
      }
      .config-accordion-button i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
      }
      .config-accordion-body {
        padding: 0.85rem;
      }
    }

    @media (max-width: 768px) {
      .app-shell {
        padding: 10px;
      }
      .content-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
      }
      .content-topbar-main {
        align-items: flex-start;
      }
      .content-topbar-side {
        width: 100%;
        justify-content: stretch;
      }
      .content-topbar-title {
        font-size: 1.05rem;
      }
      .content-topbar-meta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
      }
      .storage-mode-chip {
        width: 100%;
        justify-content: center;
      }
      .config-accordion-button strong {
        font-size: 0.95rem;
      }
      .config-accordion-button small {
        font-size: 0.78rem;
      }
      .content-frame {
        border-radius: 22px;
      }
      .tab-pane-inner {
        padding: 16px 14px 22px;
      }
      .section-title {
        font-size: 1.28rem;
      }
      .section-copy {
        font-size: 0.84rem;
      }
      .form-control,
      .form-select,
      input[type="text"],
      input[type="number"],
      input[type="date"],
      input[type="time"],
      textarea,
      select {
        font-size: 16px !important;
      }
      .hours-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
      }
      .comment-field {
        grid-template-columns: 40px 1fr;
      }
      .month-nav {
        width: 100%;
        justify-content: space-between;
      }
      .month-nav h6 {
        min-width: 0;
        flex: 1;
      }
      .entry-filters,
      .entry-filter-actions,
      .report-toolbar,
      .section-lead,
      .stammdaten-head {
        gap: 8px;
      }
      .entry-filters {
        grid-template-columns: 1fr 1fr;
      }
      .entry-filter-stage {
        padding: 12px;
      }
      .entry-filter-search,
      .entry-filter-actions {
        grid-column: 1 / -1;
      }
      .entry-filter-actions {
        width: 100%;
        justify-content: flex-start;
      }
      .daily-entry-overview-actions {
        grid-template-columns: repeat(4, 34px);
        justify-content: flex-start;
      }
      .daily-entry-overview-actions .daily-entry-today-btn {
        grid-column: span 2;
      }
      .daily-entry-overview-actions #dailyEntryOverviewStats {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: flex-start;
      }
      .daily-entry-overview-actions #dailyEntryOverviewOverflowStats {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: flex-start;
      }
      .table-filter-chips {
        margin-left: 0;
      }
      .holiday-hero {
        padding: 14px;
        border-radius: 18px;
      }
      .holiday-hero-date {
        font-size: 1.45rem;
      }
      .holiday-hero-controls {
        grid-template-columns: 1fr;
      }
      .bridge-grid,
      .settings-grid-2,
      .settings-grid-3,
      .settings-grid-4,
      .weekly-schedule-grid,
      .report-target-grid,
      .worktime-compare-grid,
      .report-kpis,
      .report-kpi-grid-4,
      .report-kpi-grid-3,
      .report-grid,
      .report-split {
        grid-template-columns: 1fr;
      }
      .report-kpi,
      .report-card,
      .config-card,
      .bridge-card {
        padding: 14px;
        border-radius: 18px;
      }
      .report-chart-wrap,
      .report-chart-wrap.is-short {
        height: 220px;
      }
      .weekly-form-grid {
        grid-template-columns: 1fr 1fr;
      }
      .weekly-comment-field {
        grid-column: 1 / -1;
      }
      .weekly-current-item {
        align-items: flex-start;
        flex-direction: column;
      }
      .weekly-current-actions {
        justify-content: space-between;
        width: 100%;
        text-align: left;
      }
      .month-summary {
        max-width: none;
      }
      .entry-table-wrap {
        padding-right: 8px;
      }
      .worktime-overview {
        border-radius: 18px;
      }
      .worktime-overview-table thead th,
      .worktime-overview-table tbody th,
      .worktime-overview-table tbody td {
        padding: 9px 10px;
      }
      .worktime-overview-main {
        font-size: 0.76rem;
      }
      .worktime-overview-sub {
        font-size: 0.68rem;
      }
      .worktime-date {
        min-width: 92px;
      }
      .worktime-time,
      .worktime-pause,
      .worktime-mode,
      .worktime-code,
      .worktime-note {
        min-width: 96px;
      }
      .worktime-pause {
        min-width: 126px;
      }
      .absence-table {
        min-width: 980px;
      }
    }

    @media (max-width: 520px) {
      .app-shell {
        padding: 8px;
      }
      .content-frame {
        border-radius: 18px;
      }
      .tab-pane-inner {
        padding: 14px 12px 20px;
      }
      .booking-row {
        gap: 12px;
      }
      .position-picker-header,
      .position-picker-body {
        padding-left: 12px;
        padding-right: 12px;
      }
      .entry-filters {
        grid-template-columns: 1fr;
      }
      .weekly-form-grid {
        grid-template-columns: 1fr;
      }
      .weekly-comment-field {
        grid-column: auto;
      }
      .pos-grid {
        gap: 8px;
      }
      .pos-btn {
        min-width: min(100%, 180px);
        padding: 10px 12px;
      }
      .content-topbar-title {
        font-size: 0.98rem;
      }
      .content-topbar-kicker {
        font-size: 0.64rem;
      }
      .report-card-head,
      .section-lead {
        flex-direction: column;
        align-items: flex-start;
      }
      .report-kpi-value {
        font-size: 1.45rem;
      }
      .report-kpi-value.is-mid {
        font-size: 1.1rem;
      }
      .report-kpi-value.is-compact {
        font-size: 0.9rem;
      }
      .version-grid {
        grid-template-columns: 1fr;
      }
      .version-hero {
        align-items: flex-start;
        flex-direction: column;
      }
      .table > :not(caption) > * > * {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
      }
      .entry-table th:first-child,
      .entry-table td:first-child {
        padding-left: 12px;
        width: 44px;
      }
      .sidebar-brand {
        padding: 20px 18px 14px;
      }
      .sidebar-brand .brand-mark {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
      }
      .sidebar-brand .navbar-brand {
        font-size: 1.7rem;
      }
      .sidebar-brand .brand-sub {
        font-size: 0.88rem;
      }
      .handbook-hero,
      .handbook-section-grid {
        grid-template-columns: 1fr;
      }
      .handbook-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .handbook-preview-row {
        grid-template-columns: 1fr;
      }
      .handbook-section-toolbar {
        align-items: flex-start;
      }
      .handbook-section-toolbar .handbook-topic-actions {
        width: 100%;
      }
      .handbook-preview-top {
        align-items: flex-start;
        flex-direction: column;
      }
      .handbook-preview-caption {
        text-align: left;
      }
    }

    .worktime-table thead th {
      white-space: nowrap;
    }

    .worktime-overview {
      border: 1px solid #b8c8dc;
      border-radius: 22px;
      overflow-x: auto;
      overflow-y: hidden;
      background: linear-gradient(180deg, #e7eef8, #d8e4f1);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    .worktime-overview-table {
      width: 100%;
      min-width: 820px;
      border-collapse: separate;
      border-spacing: 0;
    }

    .worktime-overview-table thead th {
      padding: 11px 12px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--sidebar-text);
      background: var(--sidebar-bottom);
      border-right: 1px solid rgba(255,255,255,0.12);
      white-space: nowrap;
      text-align: center;
    }

    .worktime-overview-table thead th.is-accent,
    .worktime-overview-table thead th.is-danger,
    .worktime-overview-table thead th.is-warn {
      background: var(--sidebar-bottom);
    }

    .worktime-overview-table thead th:last-child,
    .worktime-overview-table tbody td:last-child,
    .worktime-overview-table tbody th:last-child {
      border-right: 0;
    }

    .worktime-overview-table tbody th,
    .worktime-overview-table tbody td {
      padding: 12px 12px;
      border-top: 1px solid #c4d2e3;
      border-right: 1px solid #c4d2e3;
      vertical-align: middle;
      background: rgba(248,251,255,0.96);
    }

    .worktime-overview-table tbody tr:nth-child(2) th {
      background: linear-gradient(180deg, #d7e7f6, #c6dbef);
      color: #114b7a;
    }

    .worktime-overview-table tbody th {
      min-width: 104px;
      background: linear-gradient(180deg, #cfdeee, #bfd2e6);
      color: #173a60;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .worktime-overview-table tbody td {
      text-align: center;
    }

    .worktime-overview-main {
      font-size: 0.84rem;
      font-weight: 700;
      color: #0f172a;
    }

    .worktime-overview-main.is-negative {
      color: #dc2626;
    }

    .worktime-overview-main.is-positive {
      color: #059669;
    }

    .worktime-overview-sub {
      margin-top: 4px;
      font-size: 0.72rem;
      color: var(--muted);
    }

    .worktime-table thead th {
      background: #edf2f8 !important;
      color: #15283b;
      border-bottom: 1px solid #c7d3e1 !important;
    }

    .worktime-table thead th.worktime-pair-head {
      background: linear-gradient(180deg, #d9e7f7, #cbddf3) !important;
      border-bottom-color: #9fbbe0 !important;
    }

    .worktime-pause-help {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      margin-left: 6px;
      border: 1px solid rgba(219, 39, 119, 0.42);
      border-radius: 999px;
      background: rgba(219, 39, 119, 0.10);
      color: #db2777;
      font-size: 0.72rem;
      font-weight: 900;
      line-height: 1;
      cursor: help;
      vertical-align: middle;
    }

    .worktime-pause-tooltip {
      position: absolute;
      left: -10px;
      top: calc(100% + 10px);
      z-index: 80;
      width: min(380px, 78vw);
      padding: 12px 14px;
      border: 1px solid rgba(244, 114, 182, 0.36);
      border-radius: 14px;
      background: #101827;
      color: #ffffff;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.32);
      font-size: 0.82rem;
      font-weight: 600;
      line-height: 1.5;
      opacity: 0;
      pointer-events: none;
      text-transform: none;
      letter-spacing: 0;
      transform: translateY(-4px);
      transition: opacity .14s ease, transform .14s ease;
      white-space: normal;
    }

    .worktime-pause-tooltip::after {
      content: "";
      position: absolute;
      left: 16px;
      bottom: 100%;
      width: 10px;
      height: 10px;
      background: #101827;
      border-left: 1px solid rgba(244, 114, 182, 0.36);
      border-top: 1px solid rgba(244, 114, 182, 0.36);
      transform: translateY(5px) rotate(45deg);
    }

    .worktime-pause-tooltip em {
      color: #f472b6;
      font-style: normal;
      font-weight: 900;
    }

    .worktime-pause-help:hover .worktime-pause-tooltip,
    .worktime-pause-help:focus .worktime-pause-tooltip,
    .worktime-pause-help:focus-visible .worktime-pause-tooltip {
      opacity: 1;
      transform: translateY(0);
    }

    .worktime-table td {
      vertical-align: middle;
      background: #f8fafd;
      border-bottom-color: #d5deea;
    }

    .worktime-date {
      position: relative;
      min-width: 106px;
      font-weight: 600;
    }

    .worktime-row.has-code .worktime-date {
      padding-left: 24px;
    }

    .worktime-row.has-code .worktime-date::before {
      content: "";
      position: absolute;
      top: 8px;
      bottom: 8px;
      left: 6px;
      width: 8px;
      border-radius: 999px;
      background: var(--worktime-code-color, var(--accent));
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--worktime-code-color, var(--accent)) 18%, transparent);
    }

    .worktime-row.has-code .worktime-code select {
      border-left: 5px solid var(--worktime-code-color, var(--accent));
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--worktime-code-color, var(--accent)) 14%, transparent), transparent 38%),
        var(--surface);
      font-weight: 800;
    }

    .worktime-weekday {
      min-width: 42px;
      color: var(--muted);
      font-weight: 600;
    }

    .worktime-time,
    .worktime-pause,
    .worktime-note {
      min-width: 108px;
      max-width: 200px;
    }
    .worktime-note input {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .worktime-mode {
      min-width: 100px;
    }

    .worktime-code {
      min-width: 160px;
    }

    .worktime-pause {
      min-width: 112px;
    }

    .worktime-time input,
    .worktime-pause input,
    .worktime-mode select,
    .worktime-code select,
    .worktime-note input {
      min-width: 100%;
    }

    .worktime-mode select {
      font-weight: 700;
    }

    .worktime-hours {
      white-space: nowrap;
      min-width: 72px;
      font-weight: 700;
    }

    .worktime-hours.is-negative {
      color: #dc2626;
    }

    .worktime-hours.is-positive {
      color: #059669;
    }

    .worktime-time.worktime-pair-start,
    .worktime-time.worktime-pair-end {
      background: rgba(194, 214, 240, 0.18); /* subtle tint for empty rows */
    }

    .worktime-time.worktime-pair-start {
      border-left: 2px solid rgba(105, 146, 196, 0.52);
    }

    .worktime-time.worktime-pair-end {
      border-right: 2px solid rgba(105, 146, 196, 0.52);
    }

    .worktime-row.is-weekend td {
      background: rgba(250, 234, 203, 0.92);
    }

    .worktime-row.is-holiday td {
      background: rgba(215, 239, 232, 0.94);
    }

    .worktime-row.is-today td {
      box-shadow: none !important;
      background: #fff8f8 !important;
      border-top: 2px solid rgba(220, 38, 38, 0.45) !important;
      border-bottom: 2px solid rgba(220, 38, 38, 0.45) !important;
    }
    .worktime-row.is-today td:first-child {
      border-left: 2px solid rgba(220, 38, 38, 0.45) !important;
    }
    .worktime-row.is-today td:last-child {
      border-right: 2px solid rgba(220, 38, 38, 0.45) !important;
    }

    .worktime-row.is-weekend td {
      background: rgba(0, 0, 0, 0.02);
    }

    .worktime-row.is-holiday td {
      background: rgba(0, 0, 0, 0.035);
    }

    .worktime-row.is-weekend:hover td {
      background: rgba(0, 0, 0, 0.045);
    }

    .worktime-row.is-holiday:hover td {
      background: rgba(0, 0, 0, 0.06);
    }

    /* Input Backgrounds inside Weekend/Holiday */
    .worktime-row.is-weekend .form-control,
    .worktime-row.is-holiday .form-control,
    .worktime-row.is-weekend .form-select,
    .worktime-row.is-holiday .form-select {
      background: #ffffff !important;
    }
    /* Keep weekend/holiday color even without entry */
    .worktime-row.is-weekend:not(.has-entry) td {
      background: rgba(0, 0, 0, 0.015) !important;
    }
    .worktime-row.is-holiday:not(.has-entry) td {
      background: rgba(0, 0, 0, 0.025) !important;
    }

    /* Rows with entries get the familiar blue-tinted pair cells */
    .worktime-row.has-entry .worktime-time.worktime-pair-start,
    .worktime-row.has-entry .worktime-time.worktime-pair-end {
      background: rgba(194, 214, 240, 0.55);
    }

    /* Legend */
    .worktime-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      margin-bottom: 14px;
      font-size: .88rem;
      font-weight: 700;
      color: var(--muted);
    }
    .worktime-legend-item {
      display: flex;
      align-items: center;
      gap: 9px;
      line-height: 1.2;
    }
    .worktime-legend-swatch {
      width: 26px;
      height: 18px;
      border-radius: 5px;
      flex-shrink: 0;
      border: 1px solid rgba(0,0,0,0.10);
    }
    .worktime-legend-swatch.is-today-swatch {
      background: #fff8f8;
      border: 2px solid rgba(220, 38, 38, 0.55);
    }
    .worktime-legend-swatch.is-entry-swatch {
      background: rgba(194, 214, 240, 0.55);
    }
    .worktime-legend-swatch.is-empty-swatch {
      background: #ffffff;
    }
    .worktime-legend-swatch.is-weekend-swatch {
      background: rgba(250, 234, 203, 0.9);
    }
    .worktime-legend-swatch.is-holiday-swatch {
      background: rgba(215, 239, 232, 0.9);
    }

    .theme-dark .worktime-table thead th.worktime-pair-head {
      background: rgba(96, 165, 250, 0.18);
      border-bottom-color: rgba(96, 165, 250, 0.32);
    }

    .theme-dark .worktime-time.worktime-pair-start,
    .theme-dark .worktime-time.worktime-pair-end {
      background: rgba(96, 165, 250, 0.12);
    }

    .theme-dark .worktime-time.worktime-pair-start {
      border-left-color: rgba(96, 165, 250, 0.44);
    }

    /* Angular UI pass */
    .app-sidebar,
    .content-frame,
    .auth-card,
    .content-topbar,
    .table-responsive,
    .position-picker-shell,
    .month-summary,
    .report-toolbar,
    .report-kpi,
    .report-card,
    .config-card,
    .config-accordion-item,
    .holiday-hero,
    .bridge-card,
    .absence-table-wrap,
    .worktime-overview,
    .modal-content {
      border-radius: 12px !important;
    }

    .version-hero,
    .version-grid > div,
    .version-row,
    .selected-pos-box,
    .pos-btn,
    .calendar-day,
    .report-target-card,
    .report-note-box,
    .picker-list,
    .nav-tabs .nav-link,
    .config-accordion-button,
    .holiday-count-chip {
      border-radius: 8px !important;
    }

    .form-control,
    .form-select,
    .btn,
    .btn-sm,
    .h-btn,
    .icon-action,
    .sidebar-toggle,
    .table-filter-chip,
    .filter-chip,
    .storage-mode-note,
    .count-badge {
      border-radius: 6px !important;
    }

    .content-topbar-meta,
    .storage-mode-chip,
    .topbar-logout,
    .version-state,
    .report-year-chip,
    .overflow-badge,
    .status-badge,
    .absence-chip,
    .holiday-active-btn {
      border-radius: 4px !important;
    }

    .theme-dark .worktime-time.worktime-pair-end {
      border-right-color: rgba(96, 165, 250, 0.44);
    }

    .theme-dark .worktime-row.is-weekend td {
      background: rgba(255, 255, 255, 0.035);
    }

    .theme-dark .worktime-row.is-holiday td {
      background: rgba(255, 255, 255, 0.05);
    }

    .theme-dark .worktime-row.is-today td {
      box-shadow: inset 0 0 0 999px rgba(59, 130, 246, 0.10);
    }

    @media print {
      body {
        background: #fff !important;
      }

      .app-layout {
        display: block !important;
        min-height: auto !important;
      }

      .app-sidebar,
      .sidebar-backdrop,
      .sidebar-toggle,
      .content-topbar,
      .section-copy,
      .storage-mode-note,
      .report-toolbar-actions,
      .month-nav .btn,
      .btn,
      .modal,
      .flash-wrap {
        display: none !important;
      }

      .app-content,
      .content-shell,
      .content-frame,
      .tab-pane-inner {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      .report-shell,
      .report-card,
      .report-kpi,
      .worktime-overview,
      .report-toolbar,
      .config-card {
        border: 1px solid #d8e4f2 !important;
        background: #fff !important;
        box-shadow: none !important;
      }

      canvas {
        max-width: 100% !important;
      }
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       BUCHUNGSLÃœCKEN-REPORT
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    .report-gap-kpis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 1.2rem;
    }

    .gap-badge {
      display: inline-block;
      padding: 2px 9px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.01em;
    }
    .gap-none {
      background: rgba(220, 53, 69, 0.12);
      color: #dc3545;
    }
    .gap-partial {
      background: rgba(217, 119, 6, 0.12);
      color: #d97706;
    }

    .gap-all-ok {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      background: rgba(34, 197, 94, 0.09);
      color: #16a34a;
      font-size: 0.875rem;
      font-weight: 600;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       MONATSENDE-PROGNOSE
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    .report-forecast-note {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.3em;
      padding: 0.7rem 1rem;
      border-radius: 12px;
      background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
      border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
      font-size: 0.84rem;
      color: var(--text);
      line-height: 1.5;
    }
    .report-forecast-note i {
      color: var(--accent);
      flex-shrink: 0;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       WIEDERHOLEN-BUTTON â€” dezente Hover-Animation
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    .icon-action .bi-arrow-repeat {
      transition: transform 0.25s ease;
    }
    .icon-action:hover .bi-arrow-repeat {
      transform: rotate(180deg);
    }

    /* ----------------------------------------------------------
       WOCHENÜBERSICHT
       ---------------------------------------------------------- */

    .week-ov-card {
      overflow: hidden;
    }
    .week-ov-toolbar {
      display: grid;
      grid-template-columns: minmax(320px, auto) 1fr;
      align-items: center;
      gap: 0.9rem;
      padding: 1rem 1.25rem 0.85rem;
      border-bottom: 1px solid var(--line);
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--neutral-100) 82%, white), transparent 82%),
        linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 40%, transparent), transparent 40%);
    }
    .week-ov-nav {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      min-width: 0;
    }
    .week-ov-nav .btn {
      flex: 0 0 auto;
      min-width: 40px;
    }
    .week-ov-label {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.15rem;
      min-width: 250px;
      padding: 0.45rem 0.9rem;
      border-radius: 16px;
      border: 1px solid color-mix(in srgb, var(--line-strong) 18%, transparent);
      background: rgba(255,255,255,0.78);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
      text-align: center;
      line-height: 1.15;
    }
    .week-ov-label strong {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }
    .week-ov-label-kicker {
      font-size: 0.69rem;
      font-weight: 800;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .week-ov-toolbar-actions {
      display: flex;
      gap: 0.5rem;
      justify-content: flex-end;
    }

    .week-ov-kpis {
      display: flex;
      gap: 1.2rem;
      padding: 0.85rem 1.25rem 0;
      flex-wrap: wrap;
    }
    .week-ov-kpi {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }
    .week-ov-kpi-label {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .week-ov-kpi-value {
      font-size: 1.18rem;
      font-weight: 800;
      color: var(--text);
    }

    .week-ov-table-wrap {
      padding: 0.75rem 0.45rem 0.6rem;
    }
    .week-ov-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
    }
    .week-ov-table thead th {
      background: color-mix(in srgb, var(--neutral-100) 88%, white);
      color: var(--text);
      font-weight: 800;
      font-size: 0.72rem;
      text-align: center;
      padding: 0.55rem 0.5rem;
      border-bottom: 2px solid var(--line-strong);
      white-space: nowrap;
    }
    .week-ov-row-head-th {
      text-align: left !important;
      min-width: 230px;
      padding-left: 1rem !important;
    }
    .week-ov-total-head {
      min-width: 70px;
      color: var(--text) !important;
    }
    .week-ov-day-head {
      min-width: 86px;
      border-top: 3px solid var(--line-strong) !important;
    }
    .week-ov-day-head.is-today {
      background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--line-strong) 18%, var(--neutral-100)),
        var(--neutral-100)
      ) !important;
      color: var(--text) !important;
      border-bottom-color: var(--line-strong) !important;
      box-shadow: inset 0 3px 0 var(--line-strong);
    }
    .week-ov-day-head.is-today .week-ov-day-sum {
      color: var(--text);
    }
    .week-ov-day-head.is-weekend {
      background: linear-gradient(
        180deg,
        color-mix(in srgb, #fff7db 82%, white),
        color-mix(in srgb, #fff3cd 68%, var(--neutral-100))
      ) !important;
      color: #9a6700 !important;
    }
    .week-ov-day-name {
      display: inline-block;
      margin-bottom: 3px;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--neutral-200);
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: .02em;
    }
    body.theme-anthracite .week-ov-day-name {
      color: #aebdd0;
      background: #243650;
    }
    .week-ov-day-date {
      font-size: 0.74rem;
      font-weight: 600;
      opacity: .85;
    }
    .week-ov-day-sum {
      font-size: 1.02rem;
      font-weight: 900;
      line-height: 1.05;
      margin-top: 6px;
      color: #0f766e;
      letter-spacing: -0.03em;
      text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    }
    .week-ov-day-sum.is-empty {
      min-height: 18px;
    }
    body.theme-anthracite .week-ov-day-sum {
      color: #d7e6fb;
    }

    .week-ov-row td {
      border-bottom: 1px solid var(--line);
      vertical-align: middle;
      transition: background 0.18s ease, box-shadow 0.18s ease;
    }
    .week-ov-row:last-child td {
      border-bottom: none;
    }
    .week-ov-row:hover td {
      background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(243, 247, 253, 0.96));
    }
    .week-ov-row-head {
      padding: 0.7rem 0.7rem 0.7rem 1rem;
      min-width: 230px;
      vertical-align: middle;
      transition: background 0.16s ease, box-shadow 0.16s ease;
      background: linear-gradient(180deg, rgba(249, 251, 255, 0.9), rgba(245, 248, 253, 0.86));
    }
    .week-ov-row-pos {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
      font-weight: 700;
      color: var(--text);
      font-size: 0.84rem;
      line-height: 1.28;
    }
    .week-ov-row-code {
      font-family: var(--font-mono);
      font-size: 0.69rem;
      color: var(--muted);
      margin-top: 3px;
    }
    .week-ov-row-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem 0.45rem;
      margin-top: 5px;
    }
    .week-ov-row-komm {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0.22rem 0.55rem;
      font-size: 0.73rem;
      color: var(--muted);
      border-radius: 999px;
      background: color-mix(in srgb, var(--neutral-200) 55%, white);
    }
    .week-ov-row-ticket {
      display: inline-flex;
      align-items: center;
      gap: 0.22rem;
      min-height: 24px;
      padding: 0.22rem 0.55rem;
      font-size: 0.71rem;
      color: var(--secondary);
      font-family: var(--font-mono);
      border-radius: 999px;
      background: color-mix(in srgb, var(--secondary-soft) 26%, white);
    }

    .week-ov-cell {
      text-align: center;
      padding: 0.48rem 0.34rem;
      cursor: pointer;
      transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
      min-width: 86px;
      max-width: 100px;
    }
    .week-ov-cell:hover {
      background: linear-gradient(180deg, rgba(233, 240, 252, 0.96), rgba(243, 247, 255, 0.94));
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
    }
    .week-ov-cell.is-today {
      background: color-mix(in srgb, var(--neutral-200) 72%, transparent);
      box-shadow: inset 0 2px 0 var(--line-strong);
    }
    .week-ov-cell.is-today:hover {
      background: color-mix(in srgb, var(--neutral-200) 90%, var(--surface));
    }
    .week-ov-cell.is-weekend {
      background: linear-gradient(180deg, rgba(255, 248, 226, 0.9), rgba(255, 243, 205, 0.72));
    }
    .week-ov-cell.is-weekend:hover {
      background: linear-gradient(180deg, rgba(255, 239, 184, 0.95), rgba(255, 247, 219, 0.88));
    }
    .week-ov-cell.has-entry {
      background: linear-gradient(180deg, rgba(232, 240, 255, 0.94), rgba(241, 246, 255, 0.9));
    }
    .week-ov-cell.has-entry:hover {
      background: linear-gradient(180deg, rgba(214, 228, 255, 0.98), rgba(235, 243, 255, 0.96));
    }

    .week-ov-hours {
      display: block;
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--text);
      padding: 0.3rem;
      letter-spacing: -0.02em;
    }
    .week-ov-hours.is-empty {
      color: var(--line-strong);
      font-weight: 500;
      font-size: 0.8rem;
    }

    .week-ov-row-total {
      text-align: right;
      padding: 0.5rem 1rem 0.5rem 0.7rem;
      font-weight: 800;
      font-size: 0.88rem;
      color: var(--text);
      border-left: 1px solid var(--line);
      white-space: nowrap;
      background: linear-gradient(180deg, rgba(249, 251, 255, 0.92), rgba(245, 248, 253, 0.88));
    }

    .week-ov-table tfoot td {
      border-top: 2px solid var(--line-strong);
      background: var(--neutral-100);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.4rem 0.35rem;
      text-align: center;
    }
    .week-ov-foot-label {
      text-align: left !important;
      padding-left: 1rem !important;
      color: var(--muted);
      font-size: 0.72rem !important;
      text-transform: uppercase;
      letter-spacing: .03em;
    }
    .week-ov-foot-cell {
      color: var(--muted);
    }
    .week-ov-foot-cell.has-value {
      color: var(--text);
    }
    .week-ov-foot-total {
      text-align: right !important;
      padding-right: 1rem !important;
      color: var(--primary) !important;
      border-left: 1px solid var(--line) !important;
    }

    .week-ov-empty {
      text-align: center;
      color: var(--muted);
      padding: 2.5rem 1rem;
      font-size: 0.875rem;
    }

    .week-ov-legend {
      display: flex;
      align-items: center;
      gap: 1.1rem;
      flex-wrap: wrap;
      padding: 0.65rem 1.25rem 1rem;
      font-size: 0.74rem;
      color: var(--muted);
      font-weight: 700;
    }
    .week-ov-legend-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    .week-ov-swatch {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 3px;
      border: 1px solid var(--line);
    }
    .is-today-swatch { background: var(--accent-soft); border-color: var(--primary); }
    .is-weekend-swatch { background: var(--neutral-200); }
    .is-has-swatch { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.3); }

    /* Inline Editor in der Zelle */
    .week-ov-editor {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 6px;
      background: var(--surface);
      border: 1.5px solid var(--primary);
      border-radius: 10px;
      min-width: 120px;
      box-shadow: var(--shadow-sm);
      z-index: 10;
      position: relative;
    }
    .week-ov-editor-label {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .week-ov-editor-komm {
      font-size: 0.67rem;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .week-ov-editor-input {
      width: 100%;
      font-size: 0.9rem;
      font-weight: 700;
      text-align: center;
      padding: 4px 6px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: var(--neutral-50);
      color: var(--text);
      outline: none;
    }
    .week-ov-editor-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }
    .week-ov-editor-actions {
      display: flex;
      gap: 4px;
      justify-content: center;
    }
    .week-ov-editor-btn {
      flex: 1;
      padding: 3px 6px;
      font-size: 0.78rem;
      font-weight: 700;
      border: 1px solid var(--line);
      border-radius: 6px;
      cursor: pointer;
      background: var(--surface);
      color: var(--text);
      transition: background .12s;
    }
    .week-ov-editor-btn.is-save {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }
    .week-ov-editor-btn.is-save:hover { background: #1d4ed8; }
    .week-ov-editor-btn.is-del {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #dc2626;
    }
    .week-ov-editor-btn.is-del:hover { background: #fca5a5; }

    /* Dark mode */
    body.theme-anthracite .week-ov-toolbar {
      background:
        linear-gradient(180deg, rgba(30, 47, 71, 0.96), rgba(24, 39, 61, 0.96)),
        linear-gradient(90deg, rgba(121,174,252,0.08), transparent 42%);
    }
    body.theme-anthracite .week-ov-label {
      background: rgba(26, 43, 68, 0.88);
      border-color: rgba(121,174,252,0.16);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-anthracite .week-ov-label strong {
      color: #eef4ff;
    }
    body.theme-anthracite .week-ov-label-kicker {
      color: #91a9c7;
    }
    body.theme-anthracite .week-ov-table thead th {
      background: #20324d !important;
      color: #d9e5f3 !important;
      border-bottom-color: #314866 !important;
    }
    body.theme-anthracite .week-ov-day-head.is-today {
      background: rgba(121,174,252,0.18) !important;
      color: #79aefc !important;
    }
    body.theme-anthracite .week-ov-day-head.is-weekend {
      background: linear-gradient(180deg, rgba(133, 77, 14, 0.28), rgba(55, 65, 81, 0.18)) !important;
      color: #fcd34d !important;
    }
    body.theme-anthracite .week-ov-row td {
      border-bottom-color: #314866;
      background: #17273e;
      color: var(--sidebar-text);
    }
    body.theme-anthracite .week-ov-row:hover td { background: linear-gradient(180deg, rgba(37, 57, 84, 0.98), rgba(32, 50, 76, 0.98)); }
    body.theme-anthracite .week-ov-row-head,
    body.theme-anthracite .week-ov-row-total {
      background: linear-gradient(180deg, rgba(30, 46, 71, 0.9), rgba(25, 39, 60, 0.9));
    }
    body.theme-anthracite .week-ov-cell.is-today { background: rgba(121,174,252,0.1); }
    body.theme-anthracite .week-ov-cell.is-weekend { background: linear-gradient(180deg, rgba(133, 77, 14, 0.16), rgba(30, 41, 59, 0.06)); }
    body.theme-anthracite .week-ov-cell.has-entry { background: rgba(121,174,252,0.12); }
    body.theme-anthracite .week-ov-cell:hover,
    body.theme-anthracite .week-ov-cell.is-today:hover { background: linear-gradient(180deg, rgba(53, 84, 122, 0.42), rgba(39, 63, 95, 0.32)); }
    body.theme-anthracite .week-ov-hours { color: var(--sidebar-text); }
    body.theme-anthracite .week-ov-hours.is-empty { color: #3c587b; }
    body.theme-anthracite .week-ov-table tfoot td {
      background: #20324d !important;
      border-top-color: #4a6a9a !important;
      color: var(--sidebar-text);
    }
    body.theme-anthracite .week-ov-foot-label,
    body.theme-anthracite .week-ov-foot-cell { color: #afbdd1; }
    body.theme-anthracite .week-ov-foot-cell.has-value { color: var(--sidebar-text); }
    body.theme-anthracite .week-ov-row-total { border-left-color: #314866; }
    body.theme-anthracite .week-ov-foot-total { border-left-color: #314866 !important; }
    body.theme-anthracite .week-ov-toolbar,
    body.theme-anthracite .week-ov-legend { border-color: #314866; }
    body.theme-anthracite .week-ov-kpi-value { color: var(--sidebar-text); }
    body.theme-anthracite .week-ov-row-pos { color: var(--sidebar-text); }
    body.theme-anthracite .week-ov-row-komm {
      background: rgba(121,174,252,0.12);
      color: #d9e5f3;
    }
    body.theme-anthracite .week-ov-row-ticket {
      background: rgba(94, 234, 212, 0.12);
      color: #8ce2df;
    }
    body.theme-anthracite .week-ov-editor {
      background: #1d304b;
      border-color: #79aefc;
    }
    body.theme-anthracite .week-ov-editor-input {
      background: #1a2d47;
      color: var(--sidebar-text);
      border-color: #3c587b;
    }
    body.theme-anthracite .week-ov-editor-input:focus {
      border-color: #79aefc;
      box-shadow: 0 0 0 3px rgba(121,174,252,0.18);
    }
    body.theme-anthracite .week-ov-editor-label { color: var(--sidebar-text); }
    body.theme-anthracite .week-ov-editor-btn {
      background: #223854;
      border-color: #456284;
      color: #d4deea;
    }
    body.theme-anthracite .week-ov-empty { color: #6b7e96; }

    /* -- Entry Stats Chips -- */
    .entry-stat-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.2rem 0.65rem;
      background: var(--accent-soft);
      border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--primary);
      margin-right: 0.35rem;
    }
    .entry-stat-chip i {
      font-size: 0.72rem;
    }
    .entry-stat-chip.is-empty {
      background: var(--neutral-200);
      border-color: var(--line);
      color: var(--muted);
    }
    body.theme-anthracite .entry-stat-chip {
      background: rgba(121,174,252,0.14);
      border-color: rgba(121,174,252,0.28);
      color: #79aefc;
    }
    body.theme-anthracite .entry-stat-chip-overflow {
      background: rgba(167,139,250,0.16);
      border-color: rgba(167,139,250,0.34);
      color: #c4b5fd;
    }
    body.theme-anthracite .entry-stat-chip.is-empty {
      background: #1d304b;
      border-color: #314866;
      color: #6b7e96;
    }

    /* -- Calendar filter active state -- */
    .calendar-filter-active {
      background: var(--primary) !important;
      border-color: var(--primary) !important;
      color: #fff !important;
    }
    .calendar-filter-active:hover {
      background: #1d4ed8 !important;
    }

    /* -- Position picker toggle indicator -- */
    #togglePosPickerBtn.active {
      background: var(--accent-soft);
      border-color: var(--primary);
      color: var(--primary);
    }

    /* -- Booking comment+ticket row (side by side) -- */
    .booking-comment-ticket-row {
      display: grid;
      grid-template-columns: minmax(240px, 1fr) minmax(180px, 280px) 160px;
      gap: 14px;
      align-items: end;
      grid-column: 4 / -1;
    }
    .booking-comment-ticket-row .comment-preset-quick {
      margin-top: 0;
      max-width: none;
    }

    /* -- Weekly current nav (Pfeiltasten / week navigation) -- */
    .weekly-current-nav {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      flex-wrap: wrap;
    }
    .weekly-current-label {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
      min-width: 200px;
      text-align: center;
    }

    @media (max-width: 900px) {
      .booking-comment-ticket-row {
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
      }
    }

    /* ── Weekly appointment marking in week overview ── */
    .is-weekly-swatch {
      background: var(--neutral-200);
      border-color: var(--line-strong);
    }
    .week-ov-cell.is-weekly {
      background: color-mix(in srgb, var(--neutral-200) 54%, transparent);
      position: relative;
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 55%, transparent);
    }
    .week-ov-cell.is-weekly.has-entry {
      background: color-mix(in srgb, var(--neutral-200) 70%, transparent);
    }
    .week-ov-cell.is-weekly:hover {
      background: color-mix(in srgb, var(--neutral-200) 88%, var(--surface));
    }
    .week-ov-weekly-dot {
      display: block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--muted);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--line-strong) 20%, transparent);
      margin: 2px auto 0;
    }
    .week-ov-weekly-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      margin-left: 0.4rem;
      color: var(--muted);
      font-size: 0.69rem;
      font-weight: 800;
      vertical-align: middle;
      opacity: 0.85;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--neutral-200);
    }
    .is-weekly-row .week-ov-row-head {
      border-left: 3px solid var(--line-strong);
      padding-left: calc(1rem - 3px);
    }
    body.theme-anthracite .week-ov-cell.is-weekly { background: #1b2e48; }
    body.theme-anthracite .week-ov-cell.is-weekly.has-entry { background: #203650; }
    body.theme-anthracite .week-ov-cell.is-weekly:hover { background: #263d5a; }
    body.theme-anthracite .week-ov-weekly-badge { color: #aebdd0; background: #243650; }
    body.theme-anthracite .week-ov-weekly-dot { background: #aebdd0; }

    /* ── Today column: footer cell highlight ── */
    .week-ov-foot-cell.is-today-foot {
      background: color-mix(in srgb, var(--neutral-200) 72%, transparent) !important;
      color: var(--text) !important;
      font-weight: 800 !important;
      box-shadow: inset 0 -2px 0 var(--line-strong);
    }

    /* Dark mode: today column calm but visible */
    body.theme-anthracite .week-ov-day-head.is-today {
      background: linear-gradient(
        180deg,
        #243650,
        #20324d
      ) !important;
      color: #eaf2ff !important;
      box-shadow: inset 0 3px 0 #6b7e96;
    }
    body.theme-anthracite .week-ov-day-head.is-today .week-ov-day-sum {
      color: #eaf2ff;
    }
    body.theme-anthracite .week-ov-cell.is-today {
      background: #1d304b;
      box-shadow: inset 0 2px 0 #6b7e96;
    }
    body.theme-anthracite .week-ov-cell.is-today:hover {
      background: #263d5a;
    }
    body.theme-anthracite .week-ov-foot-cell.is-today-foot {
      background: #1d304b !important;
      color: #eaf2ff !important;
      box-shadow: inset 0 -2px 0 #6b7e96;
    }

    @media (max-width: 900px) {
      .week-ov-toolbar {
        grid-template-columns: 1fr;
      }
      .week-ov-nav {
        flex-wrap: wrap;
        justify-content: center;
      }
      .week-ov-label {
        min-width: 0;
        width: 100%;
      }
      .week-ov-kpis {
        gap: 0.7rem;
      }
      .week-ov-row-head-th,
      .week-ov-row-head {
        min-width: 210px;
      }
      .week-ov-day-head,
      .week-ov-cell {
        min-width: 78px;
      }
    }

    @media (max-width: 520px) {
      .week-ov-toolbar {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
      }
      .week-ov-table-wrap {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
      }
      .week-ov-kpis,
      .week-ov-legend {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
      }
    }
/* Dynamische Arbeitszeiten Blöcke */
.worktime-times-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.worktime-times-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.wt-time-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s, max-width 0.2s;
  max-width: 150px;
  opacity: 1;
  overflow: hidden;
}
.wt-time-pair.is-hidden {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  gap: 0;
}
.wt-pair-sep {
  color: var(--bs-secondary);
  font-weight: 500;
}

    /* KPI Chips inside Worktime Table */
    .absence-chip-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .absence-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 12px;
      background-color: color-mix(in srgb, var(--chip-color) 15%, transparent);
      border: 1px solid color-mix(in srgb, var(--chip-color) 30%, transparent);
      color: var(--chip-color);
      font-weight: 600;
      font-size: 0.8rem;
    }

    .theme-dark .absence-chip {
      background-color: color-mix(in srgb, var(--chip-color) 15%, transparent);
      border-color: color-mix(in srgb, var(--chip-color) 35%, transparent);
      color: color-mix(in srgb, var(--chip-color) 80%, white);
    }

    /* KPI Summary Chips */
    .worktime-summary-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 12px;
      background: var(--neutral-100);
      color: var(--text-base);
      font-weight: 600;
      font-size: 0.85rem;
      border: 1px solid var(--line);
    }
    .theme-dark .worktime-summary-chip {
      background: rgba(40, 50, 70, 0.4);
      border-color: rgba(255, 255, 255, 0.1);
      color: var(--text-base);
    }

    .worktime-summary-chip.is-positive {
      background: rgba(16, 185, 129, 0.1);
      color: #059669;
      border-color: rgba(16, 185, 129, 0.3);
    }
    .theme-dark .worktime-summary-chip.is-positive {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
    }

    .worktime-summary-chip.is-negative {
      background: rgba(239, 68, 68, 0.1);
      color: #dc2626;
      border-color: rgba(239, 68, 68, 0.3);
    }
    .theme-dark .worktime-summary-chip.is-negative {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
    }
    .worktime-code-details-count {
      background: color-mix(in srgb, var(--chip-color) 15%, white) !important;
      border: 1px solid color-mix(in srgb, var(--chip-color) 32%, white) !important;
      color: var(--chip-color) !important;
      font-weight: 800;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    }
    .theme-dark .worktime-code-details-count {
      background: color-mix(in srgb, var(--chip-color) 18%, rgba(20, 34, 53, 0.96)) !important;
      border-color: color-mix(in srgb, var(--chip-color) 42%, rgba(255,255,255,0.18)) !important;
      color: color-mix(in srgb, var(--chip-color) 82%, white) !important;
      box-shadow: none;
    }

    .worktime-table thead th {
      text-align: center;
    }

    /* Gap Report Modern Redesign */
    .gap-summary-bar {
      display: flex;
      gap: 16px;
      margin-bottom: 8px;
    }

    .gap-summary-item {
      flex: 1;
      padding: 16px;
      border-radius: 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
      color: inherit;
      cursor: pointer;
      font: inherit;
      text-align: center;
    }

    .gap-summary-item:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .gap-summary-val {
      font-size: 2rem;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 4px;
    }

    .gap-summary-lbl {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      text-align: center;
    }

    .gap-summary-item.is-danger {
      background: rgba(220, 38, 38, 0.08);
      border-color: rgba(220, 38, 38, 0.3);
    }
    .gap-summary-item.is-danger .gap-summary-val { color: #dc2626; }

    .gap-summary-item.is-warn {
      background: rgba(217, 119, 6, 0.08);
      border-color: rgba(217, 119, 6, 0.3);
    }
    .gap-summary-item.is-warn .gap-summary-val { color: #d97706; }

    .gap-summary-item.is-success {
      background: rgba(34, 197, 94, 0.08);
      border-color: rgba(34, 197, 94, 0.3);
    }
    .gap-summary-item.is-success .gap-summary-val { color: #22c55e; }

    .theme-dark .gap-summary-item.is-danger { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.2); }
    .theme-dark .gap-summary-item.is-danger .gap-summary-val { color: #f87171; }

    .theme-dark .gap-summary-item.is-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
    .theme-dark .gap-summary-item.is-warn .gap-summary-val { color: #fbbf24; }

    .theme-dark .gap-summary-item.is-success { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.2); }
    .theme-dark .gap-summary-item.is-success .gap-summary-val { color: #4ade80; }

    .gap-chips-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 12px;
    }

    .gap-chip-card {
      padding: 12px 14px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      border: 1px solid var(--line);
      background: var(--surface);
      box-shadow: 0 4px 10px rgba(0,0,0,0.03);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .gap-chip-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }

    .gap-chip-date {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 2px;
    }

    .gap-chip-hours {
      font-size: 1.15rem;
      font-weight: 700;
    }

    .gap-chip-card.is-none {
      background: rgba(220, 38, 38, 0.04);
      border-color: rgba(220, 38, 38, 0.2);
    }
    .gap-chip-card.is-none .gap-chip-hours { color: #dc2626; }

    .gap-chip-card.is-partial {
      background: rgba(217, 119, 6, 0.04);
      border-color: rgba(217, 119, 6, 0.2);
    }
    .gap-chip-card.is-partial .gap-chip-hours { color: #d97706; }

    .theme-dark .gap-chip-card.is-none { background: rgba(248, 113, 113, 0.05); border-color: rgba(248, 113, 113, 0.15); }
    .theme-dark .gap-chip-card.is-none .gap-chip-hours { color: #f87171; }

    .theme-dark .gap-chip-card.is-partial { background: rgba(251, 191, 36, 0.05); border-color: rgba(251, 191, 36, 0.15); }
    .theme-dark .gap-chip-card.is-partial .gap-chip-hours { color: #fbbf24; }

/* Codex table polish 2026-04-11 */
.entry-weekday { color: var(--muted); font-weight: 800; white-space: nowrap; text-align: center; }
.week-ov-table { border-collapse: collapse; border: 1px solid var(--line-strong); }
.week-ov-table thead th, .week-ov-table tbody th, .week-ov-table tbody td, .week-ov-table tfoot td { border: 1px solid var(--line); }
.week-ov-table thead th { border-bottom: 2px solid var(--line-strong); }
.week-ov-day-head.is-today {
  background: linear-gradient(180deg, color-mix(in srgb, #ffe4e6 90%, white), color-mix(in srgb, #fff1f2 84%, var(--neutral-100))) !important;
  color: #17324d !important;
  border-top-color: #ef4444 !important;
  box-shadow:
    inset 2px 0 0 rgba(239, 68, 68, 0.48),
    inset -2px 0 0 rgba(239, 68, 68, 0.48),
    inset 0 4px 0 rgba(239, 68, 68, 0.9);
}
.week-ov-day-head.is-today.is-weekend {
  background: linear-gradient(180deg, color-mix(in srgb, #ffe4e6 90%, white), color-mix(in srgb, #fff1f2 84%, var(--neutral-100))) !important;
  color: #17324d !important;
}
.week-ov-day-head.is-today .week-ov-day-name {
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
}
.week-ov-day-head.is-today .week-ov-day-date {
  color: #7f1d1d;
  opacity: 0.95;
}
.week-ov-day-head.is-today .week-ov-day-sum {
  color: #0f766e;
}
.week-ov-cell.is-today {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow:
    inset 2px 0 0 rgba(239, 68, 68, 0.42),
    inset -2px 0 0 rgba(239, 68, 68, 0.42);
}
.week-ov-cell.is-today:not(.is-weekly) {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.88));
}
.week-ov-cell.is-today:hover {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.98), rgba(255, 241, 242, 0.94));
}
.week-ov-foot-cell.is-today-foot {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(254, 226, 226, 0.82));
  box-shadow:
    inset 2px 0 0 rgba(239, 68, 68, 0.42),
    inset -2px 0 0 rgba(239, 68, 68, 0.42),
    inset 0 -3px 0 rgba(239, 68, 68, 0.82);
}
.is-weekly-swatch { background: var(--neutral-200); border-color: var(--line-strong); }
.week-ov-cell.is-weekly { background: color-mix(in srgb, var(--neutral-200) 54%, transparent); }
.week-ov-cell.is-weekly.has-entry { background: color-mix(in srgb, var(--neutral-200) 70%, transparent); }
.week-ov-cell.is-weekly:hover { background: color-mix(in srgb, var(--neutral-200) 88%, var(--surface)); }
.week-ov-weekly-dot { background: var(--weekly-day-color, var(--muted)); width: 7px; height: 7px; }
.week-ov-weekly-badge { color: var(--weekly-day-color, var(--muted)); background: color-mix(in srgb, var(--weekly-day-color, var(--muted)) 14%, transparent); }
.is-weekly-row .week-ov-row-head { border-left-color: var(--weekly-day-color, var(--line-strong)); border-left-width: 5px; }
body.theme-anthracite .week-ov-day-head.is-today {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.34), rgba(69, 10, 10, 0.2)) !important;
  color: #fee2e2 !important;
  border-top-color: #f87171 !important;
  box-shadow:
    inset 2px 0 0 rgba(248, 113, 113, 0.55),
    inset -2px 0 0 rgba(248, 113, 113, 0.55),
    inset 0 4px 0 rgba(248, 113, 113, 0.95);
}
body.theme-anthracite .week-ov-day-head.is-today.is-weekend {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.34), rgba(69, 10, 10, 0.2)) !important;
  color: #fee2e2 !important;
}
body.theme-anthracite .week-ov-day-head.is-today .week-ov-day-name {
  background: rgba(248, 113, 113, 0.18);
  color: #fee2e2;
}
body.theme-anthracite .week-ov-day-head.is-today .week-ov-day-date {
  color: #fecaca;
  opacity: 0.96;
}
body.theme-anthracite .week-ov-day-head.is-today .week-ov-day-sum {
  color: #99f6e4;
}
body.theme-anthracite .week-ov-cell.is-today {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.12), rgba(30, 41, 59, 0.02));
  box-shadow:
    inset 2px 0 0 rgba(248, 113, 113, 0.44),
    inset -2px 0 0 rgba(248, 113, 113, 0.44);
}
body.theme-anthracite .week-ov-cell.is-today:hover {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(30, 41, 59, 0.05));
}
body.theme-anthracite .week-ov-foot-cell.is-today-foot {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.16), rgba(69, 10, 10, 0.1)) !important;
  color: #fee2e2 !important;
  box-shadow:
    inset 2px 0 0 rgba(248, 113, 113, 0.44),
    inset -2px 0 0 rgba(248, 113, 113, 0.44),
    inset 0 -3px 0 rgba(248, 113, 113, 0.86);
}
body.theme-anthracite .week-ov-weekly-dot { background: var(--weekly-day-color, #aebdd0); }
body.theme-anthracite .week-ov-weekly-badge { color: var(--weekly-day-color, #aebdd0); background: color-mix(in srgb, var(--weekly-day-color, #aebdd0) 16%, transparent); }
body.theme-anthracite .is-weekly-row .week-ov-row-head { border-left-color: var(--weekly-day-color, #aebdd0); }
.worktime-overview-table { border-collapse: collapse; border: 1px solid #9fb4cb; }
.worktime-overview-table thead th, .worktime-overview-table tbody th, .worktime-overview-table tbody td { border: 1px solid #9fb4cb; }
.worktime-overview-table thead th { border-bottom: 2px solid #7892ad; }
.absence-chip { min-width: 66px; padding: 5px 11px; font-size: 0.88rem; font-weight: 800; }
.absence-chip-button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.absence-chip-button:hover,
.absence-chip-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--chip-color) 18%, transparent);
  outline: none;
}
.worktime-code-details-table {
  min-width: 620px;
}
body.theme-anthracite .absence-chip-button {
  background: color-mix(in srgb, var(--chip-color) 18%, #142235);
  border-color: color-mix(in srgb, var(--chip-color) 42%, #314866);
  color: color-mix(in srgb, var(--chip-color) 82%, #ffffff);
}

/* Kommentarbereich: Schnellkommentar unter Kommentar */
.booking-comment-ticket-row { grid-template-columns: minmax(320px, 1fr) 160px; align-items: start; }
.booking-comment-ticket-row .comment-preset-quick { grid-column: 1; grid-row: 2; margin-top: -4px; max-width: none; }
.booking-ticket-field { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 900px) { .booking-ticket-field, .booking-comment-ticket-row .comment-preset-quick { grid-column: 1; grid-row: auto; } }

/* Gap-Report wieder als Tabellenraster */
.gap-chips-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); }
.gap-chip-card { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, .8fr) minmax(110px, .65fr); align-items: center; gap: 0; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--surface); transform: none; }
.gap-chip-card:last-child { border-bottom: 0; }
.gap-chip-card:hover { transform: none; box-shadow: none; background: var(--neutral-50); }
.gap-chip-card::before { content: "Unvollst\00e4 ndig"; display: flex; align-items: center; height: 100%; padding: 10px 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: .78rem; font-weight: 800; color: #b45309; background: rgba(217,119,6,0.08); }
.gap-chip-card.is-none::before { content: "Fehlt"; color: #dc2626; background: rgba(220,38,38,0.08); }
.gap-chip-date, .gap-chip-hours { display: flex; align-items: center; height: 100%; padding: 10px 14px; margin: 0; }
.gap-chip-date { font-size: .86rem; font-weight: 800; color: var(--text); }
.gap-chip-hours { justify-content: flex-end; font-size: .95rem; border-right: 0; }
body.theme-anthracite .gap-chip-card { background: var(--surface-strong); border-color: var(--line); }
body.theme-anthracite .gap-chip-card:hover { background: var(--surface-soft); }
.gap-chip-date { grid-column: 1; grid-row: 1; }
.gap-chip-card::before { grid-column: 2; grid-row: 1; }
.gap-chip-hours { grid-column: 3; grid-row: 1; }

/* Buchungsluecken kompakter und dunkler */
.gap-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; }
.gap-summary-grid .gap-summary-item { min-height: 76px; padding: 10px 12px; }
.gap-summary-grid .gap-summary-lbl { white-space: normal; font-size: .74rem; line-height: 1.15; }
.gap-summary-item.is-total { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.24); }
.gap-summary-item.is-total .gap-summary-val { color: #1e3a8a; }
.gap-summary-item.is-code { background: rgba(15,118,110,0.08); border-color: rgba(15,118,110,0.24); }
.gap-summary-item.is-code .gap-summary-val { color: #0f766e; }
.gap-summary-item.is-active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}
.gap-summary-grid .gap-summary-item.is-warn .gap-summary-lbl { color: #b45309; font-weight: 900; }
.gap-detail-table-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.gap-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface));
}
.gap-detail-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}
.gap-detail-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.gap-detail-chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.gap-detail-table tbody tr.is-missing td { background: rgba(220, 38, 38, 0.04); }
.gap-detail-table tbody tr.is-partial td { background: rgba(217, 119, 6, 0.05); }
.gap-detail-table tbody tr.is-coded td { background: rgba(15, 118, 110, 0.05); }
.gap-detail-table tbody tr.is-full td { background: rgba(34, 197, 94, 0.04); }
body.theme-anthracite .gap-summary-item.is-active {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
body.theme-anthracite .gap-detail-table-wrap {
  background: linear-gradient(180deg, rgba(30, 36, 47, 0.98), rgba(22, 27, 36, 0.98));
  border-color: rgba(216, 179, 106, 0.12);
}
body.theme-anthracite .gap-detail-head {
  background: linear-gradient(180deg, rgba(39, 45, 57, 0.96), rgba(30, 36, 46, 0.98));
  border-bottom-color: rgba(216, 179, 106, 0.10);
}
body.theme-anthracite .gap-detail-chip {
  border-color: rgba(216, 179, 106, 0.16);
  background: rgba(216, 179, 106, 0.10);
  color: #f2ddad;
}
body.theme-anthracite .gap-detail-table tbody tr.is-missing td { background: rgba(127, 29, 29, 0.14); }
body.theme-anthracite .gap-detail-table tbody tr.is-partial td { background: rgba(146, 64, 14, 0.14); }
body.theme-anthracite .gap-detail-table tbody tr.is-coded td { background: rgba(15, 118, 110, 0.12); }
body.theme-anthracite .gap-detail-table tbody tr.is-full td { background: rgba(21, 128, 61, 0.10); }
@media (max-width: 760px) {
  .gap-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gap-detail-head { flex-direction: column; align-items: flex-start; }
}

/* Arbeitszeit: vorhandene Zeitgruppen ohne Ueberlappung skalieren */
.table-responsive .worktime-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.worktime-table th:nth-child(3),
.worktime-table td.worktime-times-cell {
  min-width: 190px;
}

.worktime-times-cell {
  width: 1%;
  max-width: none;
  overflow: visible;
}

.worktime-times-cell > .worktime-times-group {
  display: inline-grid;
  grid-template-columns: 74px 74px;
  align-items: center;
  gap: 8px;
  min-width: 164px;
  margin-right: 10px;
  padding: 3px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.68);
}

.worktime-times-cell > .worktime-times-group:last-child {
  margin-right: 0;
}

.worktime-times-cell > .worktime-times-group input.form-control-sm {
  min-width: 74px;
  width: 74px;
  padding-left: 8px;
  padding-right: 8px;
}

.worktime-row.has-entry .worktime-times-cell > .worktime-times-group {
  background: rgba(194, 214, 240, 0.38);
  border-color: rgba(105, 146, 196, 0.28);
}

@media (max-width: 900px) {
  .worktime-times-cell > .worktime-times-group {
    display: grid;
    margin-right: 0;
    margin-bottom: 6px;
  }
  .worktime-times-cell > .worktime-times-group:last-child {
    margin-bottom: 0;
  }
}

/* ══════════════════════════════════════════════════════════
   JAHRES-HEATMAP
   ══════════════════════════════════════════════════════════ */

:root {
  --hm-level-0: #eef2f4;
  --hm-level-1: #2dd4bf;
  --hm-level-2: #facc15;
  --hm-level-3: #fb923c;
  --hm-level-4: #ef4444;
  --hm-absence: #a78bfa;
  --hm-holiday: #38bdf8;
  --hm-weekend: #f1f1f1;
  --hm-future: #f8f9fa;
  --hm-today-ring: #dc2626;
  --hm-surface: #ffffff;
  --hm-text: #1e293b;
  --hm-muted: #64748b;
}

body.theme-anthracite {
  --hm-level-0: #1f2937;
  --hm-level-1: #2dd4bf;
  --hm-level-2: #facc15;
  --hm-level-3: #fb923c;
  --hm-level-4: #f87171;
  --hm-absence: #7c3aed;
  --hm-holiday: #38bdf8;
  --hm-weekend: #161b22;
  --hm-future: #0d1117;
  --hm-today-ring: #f87171;
  --hm-surface: #0d1117;
  --hm-text: #e6edf3;
  --hm-muted: #8b949e;
}

body.theme-cream {
  --hm-level-0: #f1ece3;
  --hm-level-1: #2bbfac;
  --hm-level-2: #eab308;
  --hm-level-3: #f97316;
  --hm-level-4: #dc2626;
  --hm-weekend: #f0ebe5;
  --hm-future: #faf7f2;
  --hm-surface: #faf7f2;
  --hm-text: #3b3228;
  --hm-muted: #8a7e6e;
}

body.theme-slate {
  --hm-level-0: #e2e8f0;
  --hm-level-1: #2dd4bf;
  --hm-level-2: #eab308;
  --hm-level-3: #f97316;
  --hm-level-4: #dc2626;
  --hm-weekend: #ebeef2;
  --hm-future: #f0f2f5;
  --hm-surface: #f0f2f5;
  --hm-text: #1e293b;
  --hm-muted: #64748b;
}

.worktime-heatmap-section {
  border: 1px solid var(--line, #d5deea);
  border-radius: 14px;
  background: var(--hm-surface, #ffffff);
  overflow: hidden;
  transition: border-color 0.2s;
}

.worktime-heatmap-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hm-text, #1e293b);
  cursor: pointer;
  transition: background 0.15s;
  gap: 4px;
}

.worktime-heatmap-toggle:hover {
  background: color-mix(in srgb, var(--hm-level-1, #9be9a8) 12%, transparent);
}

.worktime-heatmap-chevron {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--hm-muted);
  transition: transform 0.2s;
}

.worktime-heatmap-body {
  padding: 0 18px 16px;
}

.worktime-heatmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.worktime-heatmap-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.worktime-heatmap-year-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hm-text);
  min-width: 54px;
  text-align: center;
}

.worktime-heatmap-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.worktime-heatmap-kpi {
  font-size: 0.78rem;
  color: var(--hm-muted);
  white-space: nowrap;
}

.worktime-heatmap-kpi strong {
  color: var(--hm-text);
  font-weight: 800;
}

.worktime-heatmap-kpi.is-positive strong { color: #059669; }
.worktime-heatmap-kpi.is-negative strong { color: #dc2626; }

.worktime-heatmap-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.worktime-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.worktime-heatmap-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--hm-color, #ebedf0);
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.worktime-heatmap-swatch.is-absence {
  background: var(--hm-absence);
}

.worktime-heatmap-swatch.is-holiday {
  background: var(--hm-holiday);
}

/* Heatmap Grid */
.hm-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hm-month-row {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.hm-month-label {
  width: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hm-muted);
  text-align: left;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
}

.hm-month-spacer {
  width: 14px;
  flex-shrink: 0;
}

.hm-day-label {
  width: 22px;
  min-width: 22px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--hm-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hm-week-row {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}

.hm-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.1s, outline 0.1s;
  outline: 1px solid transparent;
}

.hm-cell:hover {
  transform: scale(1.35);
  outline: 2px solid var(--hm-text);
  z-index: 5;
  position: relative;
}

.hm-empty {
  background: transparent;
  cursor: default;
}
.hm-empty:hover {
  transform: none;
  outline: none;
}

.hm-level-0 { background: var(--hm-level-0); }
.hm-level-1 { background: var(--hm-level-1); }
.hm-level-2 { background: var(--hm-level-2); }
.hm-level-3 { background: var(--hm-level-3); }
.hm-level-4 { background: var(--hm-level-4); }

.hm-absence {
  background: var(--hm-absence);
}

.hm-holiday {
  background: var(--hm-holiday);
}

.hm-weekend {
  background: var(--hm-weekend);
}

.hm-future {
  background: var(--hm-future);
  opacity: 0.6;
}

.hm-today {
  outline: 2px solid var(--hm-today-ring) !important;
  outline-offset: -1px;
  z-index: 3;
  position: relative;
}

@media (max-width: 768px) {
  .worktime-heatmap-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hm-cell {
    width: 11px;
    height: 11px;
  }
  .hm-month-label,
  .hm-month-spacer {
    width: 11px;
  }
  .hm-day-label {
    width: 18px;
    min-width: 18px;
    font-size: 0.60rem;
  }
  .hm-week-row,
  .hm-month-row {
    gap: 2px;
  }
  .hm-week-row {
    margin-bottom: 2px;
  }
}

@media print {
  .worktime-heatmap-section {
    break-inside: avoid;
  }
  .worktime-heatmap-toggle {
    display: none;
  }
  .worktime-heatmap-body {
    display: block !important;
  }
}
