/* ======================================================================
 * FIP Mandantenportal — extracted from Phase-0 Mockups in
 * Engine/portal-prototype/. Generated by tools/extract_mockup_assets.py.
 * Constraint 2 (Inbox 022): Mockups sind Visual-Quelle, kein Refactor.
 * Bei Aenderungen → Mockups updaten + Script erneut laufen lassen.
 * ====================================================================== */

/* === PAGE: login (from screen-1-token-login.html) ===
 * 2-Cy Cleanup: :root-Block entfernt — alle Tokens kommen aus tokens.css.
 * Page-spezifische Eigennamen (--gold-light/-bg/-border, --sage-bg, --amber,
 * --critical, --shadow) wurden auf Standard-Tokens migriert wo benoetigt
 * (siehe Edit-History portal.pre-Cy.css). */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-white);
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 32px;
  }
  h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; }

  .nav-strip {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(26,39,68,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }
  /* 029j Phase A: Logo hart links — max-width raus, justify-content flex-start.
     Rechte Gruppe (.nav-links) wird via margin-left:auto in CSS Phase A nach rechts. */
  .nav-strip-inner {
    max-width: none; margin: 0; padding: 14px 32px;
    display: flex; align-items: center; justify-content: flex-start;
  }
  .nav-strip-inner > .nav-links { margin-left: auto; }
  .nav-logo-block { display: flex; align-items: center; gap: 12px; }
  .nav-logo-svg { flex-shrink: 0; }
  .nav-lockup { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.2px; }
  .nav-lockup .partners { color: var(--gold); }
  .nav-divider { color: rgba(255,255,255,0.2); margin: 0 4px; font-weight: 300; }
  .nav-portal-tag { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
  .nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
  .nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
  .nav-links a:hover, .nav-links a.active { color: white; }

  .trust-strip {
    position: static;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    color: var(--slate);
    padding: 14px 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .trust-strip .trust-icon { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
  .trust-strip .sep { color: var(--light-slate); }
  .trust-strip strong { color: var(--navy); font-weight: 600; }

  .card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 44px 52px;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border);
  }
  /* Phase 2-Z Hotfix Pass-2 Block 1 (17.05.): Tag-Selector div.brand-mark
     statt .brand-mark — login-card-wrapper-DIV bekommt den border-bottom,
     aber navbar SVG (svg.brand-mark in _navbar.html) bleibt unberührt.
     Vorher: gleiche Spezifität wie fip-components.css .brand-mark, portal.css
     wins durch later-loaded → border-bottom als "horizontale Linie" auf
     Navbar-Logo (Sven-Befund Inkognito 17.05.). */
  div.brand-mark {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }
  .brand-name { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
  .brand-name .partners { color: var(--gold); }
  .brand-tag { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate); margin-top: 4px; font-weight: 400; }

  h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.25;
  }
  .subtitle {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 26px;
  }

  .input-group { margin-bottom: 16px; }
  label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-mid);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }
  input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--navy);
    letter-spacing: 1.5px;
    transition: all 0.15s;
  }
  input[type="text"]:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px var(--gold-bg);
  }
  .hint { font-size: 11px; color: var(--light-slate); margin-top: 6px; }

  button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;
    letter-spacing: 0.2px;
  }
  button:hover { background: var(--navy-mid); }
  button.secondary {
    background: transparent;
    color: var(--slate);
    border: 1px solid var(--border);
    margin-top: 8px;
  }
  button.secondary:hover { background: var(--bg); }
  button.secondary a { color: inherit; text-decoration: none; }

  .footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--slate);
    line-height: 1.7;
  }
  .footer-list { list-style: none; }
  .footer-list li { padding: 2px 0; display: flex; gap: 8px; align-items: flex-start; }
  .footer-list .check {
    color: var(--sage); font-weight: 700; flex-shrink: 0;
    width: 12px; display: inline-flex; align-items: center;
  }

  .error-box {
    display: none;
    background: #FBE9E9;
    border: 1px solid var(--critical);
    color: var(--critical);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
  }
  .error-box.shown { display: block; }

  .loading-state { display: none; text-align: center; padding: 28px 0; }
  .loading-state.shown { display: block; }
  .spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .screen-nav {
    position: fixed; bottom: 16px; right: 16px;
    background: rgba(26,39,68,0.92);
    color: white; border-radius: 8px; padding: 8px;
    font-size: 11px; box-shadow: var(--shadow-lg);
  }
  .screen-nav a { color: var(--gold-light); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
  .screen-nav a:hover { background: rgba(255,255,255,0.1); }
  .screen-nav strong { color: white; display: block; padding: 4px 8px; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }

/* === PAGE: upload (from screen-2-upload.html) ===
 * 2-Cy Cleanup: :root-Block entfernt — alle Tokens kommen aus tokens.css. */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--warm-white);
    color: var(--navy);
    min-height: 100vh;
    padding: 76px 24px 32px;
  }
  h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; }

  .nav-strip {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(26,39,68,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }
  /* 029j Phase A: Logo hart links (analog Block oben, alle Page-Kontexte) */
  .nav-strip-inner { max-width: none; margin: 0; padding: 14px 32px; display: flex; align-items: center; justify-content: flex-start; }
  .nav-strip-inner > .nav-links { margin-left: auto; }
  .nav-logo-block { display: flex; align-items: center; gap: 12px; }
  .nav-logo-svg { flex-shrink: 0; }
  .nav-lockup { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.2px; }
  .nav-lockup .partners { color: var(--gold); }
  .nav-divider { color: rgba(255,255,255,0.2); margin: 0 4px; font-weight: 300; }
  .nav-portal-tag { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
  .nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
  .nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
  .nav-links a:hover, .nav-links a.active { color: white; }

  .trust-strip {
    position: static;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    color: var(--slate);
    padding: 14px 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .trust-strip .trust-icon { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
  .trust-strip .sep { color: var(--light-slate); }
  .trust-strip strong { color: var(--navy); font-weight: 600; }

  .container { max-width: 720px; margin: 0 auto; }

  .stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12px;
  }
  .stepper-item {
    flex: 1;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--light-slate);
    display: flex; align-items: center; gap: 8px;
  }
  .stepper-item.active {
    border-color: var(--gold);
    background: var(--gold-bg);
    color: var(--navy);
    font-weight: 600;
  }
  .stepper-item.done { background: var(--sage-bg); border-color: var(--sage); color: var(--navy); }
  .stepper-num {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
  }
  .stepper-item.active .stepper-num { background: var(--gold); color: white; border-color: var(--gold); }
  .stepper-item.done .stepper-num { background: var(--sage); color: white; border-color: var(--sage); }
  .stepper-num svg { width: 11px; height: 11px; }

  .card {
    background: var(--card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--border);
  }
  h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px; font-weight: 700;
    margin-bottom: 10px; letter-spacing: -0.3px; line-height: 1.25;
  }
  .subtitle {
    font-size: 13px; color: var(--slate);
    line-height: 1.5; margin-bottom: 22px;
  }

  .upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 44px 24px;
    text-align: center;
    background: var(--bg);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 14px;
  }
  .upload-zone:hover, .upload-zone.dragover {
    border-color: var(--gold); background: var(--gold-bg);
  }
  .upload-zone svg.upload-icon {
    width: 36px; height: 36px;
    color: var(--gold);
    margin: 0 auto 10px;
    display: block;
  }
  .upload-title {
    font-weight: 600; font-size: 14px;
    margin-bottom: 4px;
  }
  .upload-hint { font-size: 12px; color: var(--slate); }
  .upload-zone input[type="file"] { display: none; }

  .specs {
    background: var(--bg);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 18px;
    border-left: 3px solid var(--gold);
  }
  .specs strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
  .specs ul { list-style: none; }
  .specs li { padding: 1px 0; }
  .specs li::before { content: '— '; color: var(--gold); }

  .file-list { margin-bottom: 14px; }
  .file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
  }
  .file-item.ok { border-color: var(--sage); background: var(--sage-bg); }
  .file-item svg.file-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
  .file-meta { flex: 1; }
  .file-name { font-weight: 600; }
  .file-size { font-size: 11px; color: var(--slate); }
  .file-status {
    font-size: 11px; color: var(--sage); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
  }
  .file-status svg { width: 12px; height: 12px; }

  button {
    padding: 11px 22px;
    font-size: 13px; font-weight: 600;
    background: var(--navy); color: white;
    border: none; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
  }
  button:hover { background: var(--navy-mid); }
  button:disabled { background: var(--light-slate); cursor: not-allowed; }
  button.outline {
    background: transparent; color: var(--slate);
    border: 1px solid var(--border);
  }
  button.outline:hover { background: var(--bg); }

  .actions { display: flex; gap: 8px; justify-content: space-between; }

  .success-state { display: none; text-align: center; padding: 40px 28px; }
  .success-state.shown { display: block; }
  .success-icon-wrap {
    width: 72px; height: 72px;
    background: var(--sage-bg);
    color: var(--sage);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
  }
  .success-icon-wrap svg { width: 32px; height: 32px; }
  .success-state h1 { color: var(--sage); }

  .timeline {
    background: var(--bg);
    border-radius: 8px;
    padding: 18px;
    margin: 22px 0;
    text-align: left;
  }
  .timeline-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 8px 0; font-size: 13px;
  }
  .timeline-dot {
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 4px; flex-shrink: 0;
  }
  .timeline-row.done .timeline-dot { background: var(--sage); }
  .timeline-row.pending .timeline-dot { background: var(--border); }
  .timeline-content { flex: 1; }
  .timeline-time { color: var(--light-slate); font-size: 11px; }

  .info-banner {
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 13px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--navy);
    display: flex; gap: 12px; align-items: flex-start;
  }
  .info-banner svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; margin-top: 1px; }

  .screen-nav {
    position: fixed; bottom: 16px; right: 16px;
    background: rgba(26,39,68,0.92);
    color: white; border-radius: 8px; padding: 8px;
    font-size: 11px; box-shadow: var(--shadow-lg);
  }
  .screen-nav a { color: var(--gold-light); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
  .screen-nav a:hover { background: rgba(255,255,255,0.1); }
  .screen-nav strong { color: white; display: block; padding: 4px 8px; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
  /* Tier-Tabs (Sprint 2c) */
  .tier-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }
  /* Inbox 024d (C1): Tier-Tabs sind read-only Indicator-Elements im
     Customer-View — kein cursor:pointer, kein hover-Effekt der
     Anklickbarkeit suggeriert. Aktiver Step ist visuell hervorgehoben
     via .active + aria-current="step". */
  .tier-tab {
    padding: 10px 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    text-align: center;
    font-family: inherit;
    user-select: none;
  }
  .tier-tab.active,
  .tier-tab[aria-current="step"] {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
  }

  .tier-panel {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-left: 3px solid var(--gold);
  }
  .tier-panel h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .tier-panel-desc {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .tier-files { margin-bottom: 10px; }
  .tier-file {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    gap: 10px;
  }
  .tier-file:last-child { border-bottom: none; }
  .tier-file-meta { flex: 1; }
  .tier-file-name { font-weight: 600; color: var(--navy); }
  .tier-file-spec { font-size: 11px; color: var(--slate); margin-top: 1px; }
  .tier-file-status {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .tier-file-status.pflicht { background: var(--navy); color: white; }
  .tier-file-status.optional { background: var(--off-white); color: var(--slate); border: 1px solid var(--border); }
  .tier-helper {
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.5;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-top: 6px;
    font-style: italic;
  }

  .erp-tips {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
  }
  .erp-tips summary {
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    background: var(--bg);
    user-select: none;
    transition: background 0.15s;
  }
  .erp-tips summary::-webkit-details-marker { display: none; }
  .erp-tips summary::before {
    content: '▸';
    margin-right: 8px;
    color: var(--gold);
    transition: transform 0.2s;
    display: inline-block;
  }
  .erp-tips[open] summary::before { transform: rotate(90deg); }
  .erp-tips summary:hover { background: var(--off-white); }
  .erp-tip {
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
  }
  .erp-tip h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .erp-tip p {
    color: var(--slate);
    line-height: 1.5;
    margin: 0;
  }
  .erp-tip code {
    background: var(--off-white);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--navy);
  }
  .erp-tip-foot {
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--slate);
    background: var(--bg);
    margin: 0;
  }
  .erp-tip-foot a { color: var(--steel); font-weight: 500; text-decoration: none; }
  .erp-tip-foot a:hover { color: var(--navy); }

/* === PAGE: dashboard (from screen-3-dashboard.html) ===
 * 2-Cy Cleanup: :root-Block entfernt — alle Tokens kommen aus tokens.css.
 * Eigennamen (--gold-light/-bg/-border, --sage-bg/-border, --rust-bg,
 * --amber, --steel/-bg, --indigo/-bg, --critical, --shadow) sind in der
 * dashboard.html nur noch ueber tokens.css-Tokens verfuegbar. Werte mit
 * Spezifik (z.B. --steel-bg) werden in 2-Czw migriert. */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--warm-white);
    color: var(--navy);
    min-height: 100vh;
    padding: 76px 24px 32px;
  }
  h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; }

  .nav-strip {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(26,39,68,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }
  /* 029j Phase A: Logo hart links (analog Block oben, alle Page-Kontexte) */
  .nav-strip-inner { max-width: none; margin: 0; padding: 14px 32px; display: flex; align-items: center; justify-content: flex-start; }
  .nav-strip-inner > .nav-links { margin-left: auto; }
  .nav-logo-block { display: flex; align-items: center; gap: 12px; }
  .nav-logo-svg { flex-shrink: 0; }
  .nav-lockup { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.2px; }
  .nav-lockup .partners { color: var(--gold); }
  .nav-divider { color: rgba(255,255,255,0.2); margin: 0 4px; font-weight: 300; }
  .nav-portal-tag { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
  .nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
  .nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
  .nav-links a:hover, .nav-links a.active { color: white; }

  .trust-strip {
    position: static;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    color: var(--slate);
    padding: 14px 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .trust-strip .trust-icon { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
  .trust-strip .sep { color: var(--light-slate); }
  .trust-strip strong { color: var(--navy); font-weight: 600; }

  /* Demo-Picker mit Disclaimer */
  .state-picker {
    position: fixed; top: 110px; right: 16px;
    background: white;
    border: 2px dashed var(--rust);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    box-shadow: var(--shadow);
    z-index: 50;
    max-width: 280px;
  }
  .state-picker .demo-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--rust);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .state-picker strong {
    display: block;
    margin-bottom: 6px;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
  }
  .state-picker button {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--navy);
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    margin: 2px 2px 2px 0;
    cursor: pointer;
  }
  .state-picker button.active { background: var(--gold); color: white; border-color: var(--gold); }
  .state-picker button:hover { border-color: var(--gold); }

  .container { max-width: 1080px; margin: 0 auto; }

  .engagement-header {
    background: var(--card);
    border-radius: 10px;
    padding: 20px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .engagement-meta { display: flex; flex-direction: column; gap: 4px; }
  .engagement-id { font-size: 11px; color: var(--light-slate); letter-spacing: 0.5px; text-transform: uppercase; }
  .engagement-name { font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
  .engagement-period { font-size: 13px; color: var(--slate); }

  .lifecycle-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .lifecycle-badge.submitted { background: var(--steel-bg); color: var(--steel); }
  .lifecycle-badge.ready_locked { background: var(--gold-bg); color: var(--rust); }
  .lifecycle-badge.active { background: var(--sage-bg); color: var(--sage); }
  .lifecycle-badge.closed { background: var(--bg); color: var(--slate); border: 1px solid var(--border); }

  /* SUBMITTED state */
  .submitted-card {
    background: var(--card);
    border-radius: 10px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .customer-action {
    background: var(--sage-bg);
    border-left: 3px solid var(--sage);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--navy);
  }
  .customer-action strong { color: var(--sage); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }

  .progress-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
  }
  .progress-bar-wrap { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; margin: 14px 0 8px; }
  .progress-bar { background: var(--gold); height: 100%; transition: width 1s; }
  .progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); }

  .timeline-row { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; align-items: flex-start; }
  .timeline-dot { width: 12px; height: 12px; background: var(--border); border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
  .timeline-row.done .timeline-dot { background: var(--sage); }
  .timeline-row.in-progress .timeline-dot { background: var(--gold); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  .timeline-time { color: var(--light-slate); font-size: 11px; }

  /* READY-LOCKED — als Vorabbericht, nicht als Paywall */
  .vorabbericht-banner {
    background: var(--card);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
  }
  .vorabbericht-banner h2 { font-size: 18px; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.2px; }
  .vorabbericht-banner p { font-size: 14px; color: var(--slate); margin-bottom: 14px; line-height: 1.55; }
  .vorabbericht-banner .cta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

  .scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .scope-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
  }
  .scope-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--slate);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
  }
  .scope-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
  }
  .scope-sub { font-size: 11px; color: var(--slate); }

  .preview-section h3 {
    font-size: 14px;
    color: var(--navy);
    margin: 22px 0 12px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
  }
  .preview-section h3 .info-pill {
    font-size: 10px;
    background: var(--gold-bg);
    color: var(--rust);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }

  .category-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 0;
  }
  .category-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .category-row:last-child { border-bottom: none; }
  .cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .cat-dot.gold { background: var(--gold); }
  .cat-dot.sage { background: var(--sage); }
  .cat-dot.rust { background: var(--rust); }
  .cat-dot.steel { background: var(--steel); }
  .cat-dot.indigo { background: var(--indigo); }
  .cat-name { flex: 1; font-weight: 600; color: var(--navy); }
  .cat-count { font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }
  .cat-range { font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; min-width: 130px; text-align: right; }

  /* PIN-Modal als Mandatsbestätigung */
  .pin-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,39,68,0.7);
    align-items: center;
    justify-content: center;
    z-index: 200;
  }
  .pin-modal.shown { display: flex; }
  .pin-card {
    background: white;
    border-radius: 10px;
    padding: 30px 34px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
  }
  .pin-card h2 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.2px; }
  .pin-card p { font-size: 13px; color: var(--slate); margin-bottom: 16px; line-height: 1.55; }
  .mandat-status {
    background: var(--sage-bg);
    border-left: 3px solid var(--sage);
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
  }
  .mandat-status strong { color: var(--sage); }
  .mandat-status ul { list-style: none; margin-top: 4px; }
  .mandat-status li { padding: 2px 0; display: flex; gap: 8px; }
  .mandat-status li::before { content: '✓'; color: var(--sage); font-weight: 700; }
  .pin-input {
    width: 100%;
    padding: 13px;
    font-size: 17px;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    letter-spacing: 6px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    margin-bottom: 14px;
  }
  .pin-input:focus { outline: none; border-color: var(--gold); background: white; box-shadow: 0 0 0 3px var(--gold-bg); }

  /* ACTIVE state */
  .kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .kpi-tile {
    background: var(--card);
    border-radius: 10px;
    padding: 17px 19px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .kpi-tile.gold { border-top: 3px solid var(--gold); }
  .kpi-tile.sage { border-top: 3px solid var(--sage); }
  .kpi-tile.steel { border-top: 3px solid var(--steel); }
  .kpi-tile.rust { border-top: 3px solid var(--rust); }
  .kpi-label { font-size: 11px; text-transform: uppercase; color: var(--slate); letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }
  .kpi-num { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
  .kpi-num.sage { color: var(--sage); }
  .kpi-num.rust { color: var(--rust); }
  .kpi-sub { font-size: 11px; color: var(--slate); }
  .kpi-progress { background: var(--border); height: 4px; border-radius: 2px; overflow: hidden; margin-top: 8px; }
  .kpi-progress > div { height: 100%; background: var(--sage); }

  .findings-summary {
    background: var(--card);
    border-radius: 10px;
    padding: 22px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
  }
  .findings-summary h3 { font-size: 15px; margin-bottom: 14px; }
  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .summary-row:last-child { border-bottom: none; }
  .summary-cat { display: flex; align-items: center; gap: 10px; }
  .summary-stats { display: flex; gap: 20px; align-items: center; font-variant-numeric: tabular-nums; }
  .summary-stats span { font-size: 13px; color: var(--slate); }
  .summary-stats strong { color: var(--navy); }

  .action-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  /* CLOSED state */
  .closed-card {
    background: var(--card);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .closed-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .closed-header h2 { font-size: 20px; letter-spacing: -0.2px; margin-bottom: 6px; }
  .closed-header .closed-sub { color: var(--slate); font-size: 13px; }

  .closed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
  }
  .closed-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--slate);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .closed-list { list-style: none; font-size: 13px; }
  .closed-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .closed-list li:last-child { border-bottom: none; }
  .closed-list .label { color: var(--slate); }
  .closed-list .val { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

  .closed-totals {
    background: var(--bg);
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
  .closed-total .total-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--sage);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
  }
  .closed-total .total-sub { color: var(--slate); font-size: 12px; }

  /* Common */
  button {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  button:hover { background: var(--navy-mid); }
  button.gold { background: var(--gold); color: var(--navy); }
  button.gold:hover { background: var(--gold-light); }
  button.outline {
    background: transparent;
    color: var(--slate);
    border: 1px solid var(--border);
  }
  button.outline:hover { background: var(--bg); }
  button.sage { background: var(--sage); color: white; }
  button.sage:hover { background: #6a8a78; }

  .state-section { display: none; }
  .state-section.shown { display: block; }

  .screen-nav {
    position: fixed; bottom: 16px; right: 16px;
    background: rgba(26,39,68,0.92);
    color: white; border-radius: 8px; padding: 8px;
    font-size: 11px; box-shadow: var(--shadow-lg);
  }
  .screen-nav a { color: var(--gold-light); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
  .screen-nav a:hover { background: rgba(255,255,255,0.1); }
  .screen-nav strong { color: white; display: block; padding: 4px 8px; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
  .proof-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 4px;
    box-shadow: var(--shadow);
  }
  .proof-clause-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 14px;
  }
  .proof-side {
    padding: 14px 18px;
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .proof-side.proof-left { border-radius: 8px 0 0 8px; }
  .proof-side.proof-right { border-radius: 0 8px 8px 0; }
  .proof-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }
  .proof-clause-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
  }
  .proof-clause-meta {
    font-size: 11.5px;
    color: var(--slate);
    margin-bottom: 4px;
  }
  .proof-clause-quote {
    background: var(--gold-bg);
    border-left: 3px solid var(--gold-border);
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--navy);
    font-style: italic;
    line-height: 1.55;
    border-radius: 0 4px 4px 0;
    margin-top: 4px;
  }
  .proof-clause-quote strong {
    background: var(--gold-bg);
    padding: 0 4px;
    border-radius: 2px;
    font-weight: 700;
    font-style: normal;
  }
  .proof-arrow {
    background: var(--gold-bg);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid var(--gold-border);
    border-right: 1px solid var(--gold-border);
    min-width: 130px;
  }
  .proof-arrow-icon {
    font-size: 20px;
    color: var(--gold);
    font-weight: 700;
  }
  .proof-arrow-vol {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: -0.3px;
    white-space: nowrap;
  }
  .proof-arrow-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
  }
  .proof-tx-list {
    margin-top: 4px;
    font-size: 12px;
  }
  .proof-tx-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
  }
  .proof-tx-row:last-of-type { border-bottom: none; }
  .tx-id { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 11px; color: var(--slate); }
  .tx-date { font-size: 11px; color: var(--slate); font-variant-numeric: tabular-nums; }
  .tx-delta { font-size: 12px; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
  .proof-tx-more {
    margin-top: 6px;
    font-size: 11px;
    color: var(--light-slate);
    font-style: italic;
  }
  .proof-foot {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.55;
    padding: 14px 14px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-style: italic;
  }

  /* SUBMITTED Cards-Grid (Sprint 2c) */
  .check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }
  .check-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
  }
  .check-tile.done { border-left: 3px solid var(--sage); }
  .check-tile.running { border-left: 3px solid var(--gold); background: linear-gradient(135deg, var(--gold-bg) 0%, white 60%); }
  .check-tile.open { border-left: 3px solid var(--border); opacity: 0.75; }
  .check-status {
    position: absolute;
    top: 12px; right: 12px;
    width: 14px; height: 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .check-tile.done .check-status { color: var(--sage); }
  .check-status svg { width: 14px; height: 14px; }
  .check-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.5s infinite;
  }
  .check-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--light-slate);
  }
  .check-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    padding-right: 18px;
  }
  .check-sub {
    font-size: 10.5px;
    color: var(--slate);
    line-height: 1.35;
  }
  .check-tile.open .check-name, .check-tile.open .check-sub { color: var(--slate); }

  .next-steps {
    background: var(--bg);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .next-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
  }
  .next-step-num {
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
  }
  .next-step-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 2px;
  }
  .next-step-text {
    font-size: 13px;
    color: var(--navy);
  }

/* === PAGE: trust_center (from trust-center.html) ===
 * 2-Cy Cleanup: :root-Block entfernt — alle Tokens kommen aus tokens.css. */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--warm-white);
    color: var(--navy);
    min-height: 100vh;
    padding: 76px 24px 32px;
  }
  h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; }

  .nav-strip {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(26,39,68,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }
  /* 029j Phase A: Logo hart links (analog Block oben, alle Page-Kontexte) */
  .nav-strip-inner { max-width: none; margin: 0; padding: 14px 32px; display: flex; align-items: center; justify-content: flex-start; }
  .nav-strip-inner > .nav-links { margin-left: auto; }
  .nav-logo-block { display: flex; align-items: center; gap: 12px; }
  .nav-logo-svg { flex-shrink: 0; }
  .nav-lockup { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.2px; }
  .nav-lockup .partners { color: var(--gold); }
  .nav-divider { color: rgba(255,255,255,0.2); margin: 0 4px; font-weight: 300; }
  .nav-portal-tag { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
  .nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
  .nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
  .nav-links a:hover, .nav-links a.active { color: white; }

  .trust-strip {
    position: static;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    color: var(--slate);
    padding: 14px 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .trust-strip .trust-icon { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
  .trust-strip .sep { color: var(--light-slate); }
  .trust-strip strong { color: var(--navy); font-weight: 600; }

  .container { max-width: 980px; margin: 0 auto; }

  .page-head {
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 28px; letter-spacing: -0.4px;
    margin-bottom: 6px;
  }
  .page-head .lead {
    font-size: 14px; color: var(--slate); line-height: 1.55;
    max-width: 680px;
  }

  .section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 30px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
  }
  .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .section-head h2 { font-size: 18px; letter-spacing: -0.2px; }
  .section-head .section-meta { font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

  .doc-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--gold);
  }
  .doc-icon { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
  .doc-meta { flex: 1; min-width: 0; }
  .doc-name { font-weight: 600; font-size: 13px; }
  .doc-sub { font-size: 11px; color: var(--slate); margin-top: 2px; }
  .doc-action {
    background: var(--navy); color: white;
    padding: 7px 14px; font-size: 12px; font-weight: 600;
    border: none; border-radius: 6px; cursor: pointer;
    text-decoration: none;
  }
  .doc-action:hover { background: var(--navy-mid); }

  table {
    width: 100%; border-collapse: collapse; font-size: 12px;
  }
  th, td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--border);
  }
  th {
    font-weight: 600; color: var(--slate);
    text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 10px;
  }
  td.num { font-variant-numeric: tabular-nums; }
  tr:last-child td { border-bottom: none; }
  td.tag-cell { white-space: nowrap; }
  .tag {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 4px;
  }
  .tag.sage { background: var(--sage-bg); color: var(--sage); }
  .tag.gold { background: var(--gold-bg); color: var(--amber); }
  .tag.steel { background: #E2ECF4; color: #456B96; }

  .toms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .tom-card {
    padding: 14px 18px;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 3px solid var(--sage);
  }
  .tom-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--navy); margin-bottom: 6px;
  }
  .tom-card ul {
    list-style: none; font-size: 12px; line-height: 1.7;
    color: var(--slate);
  }
  .tom-card li::before { content: '— '; color: var(--sage); }

  .contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .contact-card {
    padding: 16px 18px;
    background: var(--off-white);
    border-radius: 8px;
  }
  .contact-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--slate); margin-bottom: 8px;
  }
  .contact-card .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .contact-card .lines { font-size: 12px; color: var(--slate); line-height: 1.6; }
  .contact-card a { color: var(--steel); text-decoration: none; font-weight: 500; }
  .contact-card a:hover { color: var(--navy); }

  .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--slate);
    text-decoration: none; margin-bottom: 10px;
  }
  .back-link:hover { color: var(--navy); }

  .screen-nav {
    position: fixed; bottom: 16px; right: 16px;
    background: rgba(26,39,68,0.92);
    color: white; border-radius: 8px; padding: 8px;
    font-size: 11px; box-shadow: var(--shadow-lg);
    z-index: 80;
  }
  .screen-nav a { color: var(--gold-light); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
  .screen-nav a:hover { background: rgba(255,255,255,0.1); }
  .screen-nav strong { color: white; display: block; padding: 4px 8px; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }

/* === PAGE: cockpit (from variant-2-cockpit.html) ===
 * 2-Cy Cleanup: :root-Block entfernt — alle Tokens kommen aus tokens.css.
 * Cockpit-spezifische Eigennamen (--bg, --steel-bg, --indigo-bg, --ap-blue,
 * --ar-indigo, --high/medium/low) gehen in 2-Czw auf tokens.css-Severity- bzw.
 * --rust/--gold/--slate ueber. Bis dahin: Klassen die sie nutzen sind im
 * legacy-Stil (sicher, weil Dashboard-Page ohnehin in 2-Czw migriert wird). */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--warm-white); color: var(--navy); min-height: 100vh; overflow-x: auto; padding-top: 76px; }
h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; }

.top-nav-strip { position: fixed; top: 0; left: 0; right: 0; background: rgba(26,39,68,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; }
.top-nav-strip-inner { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; }
.top-nav-strip .nav-logo-block { display: flex; align-items: center; gap: 12px; }
.top-nav-strip .nav-logo-svg { flex-shrink: 0; }
.top-nav-strip .nav-lockup { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.2px; }
.top-nav-strip .nav-lockup .partners { color: var(--gold); }
.top-nav-strip .nav-divider { color: rgba(255,255,255,0.2); margin: 0 4px; font-weight: 300; }
.top-nav-strip .nav-portal-tag { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
.top-nav-strip .nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
.top-nav-strip .nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.top-nav-strip .nav-links a:hover, .top-nav-strip .nav-links a.active { color: white; }

.trust-strip {
    position: static;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    color: var(--slate);
    padding: 14px 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
.trust-strip .trust-icon { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
.trust-strip .sep { color: var(--light-slate); }
.trust-strip strong { color: var(--navy); font-weight: 600; }

/* Hotfix5 H14b (Sven 06.05.): Detail-Pane 50/50-Split mit Kanban.
   Hotfix4 H14 (480px) reichte Sven nicht — Sven will Detail-Pane gleich gross
   wie Kanban + responsive an Bildschirmbreite. 1fr 1fr garantiert dass beide
   Spalten gleich gross sind. Detail-pane-hidden-Override (180px 1fr) bleibt
   fuer Uebersicht/Lieferanten unveraendert. */
.app { display: grid; grid-template-columns: 180px 1fr 1fr; min-height: calc(100vh - 76px); min-width: 1280px; }

.sidebar { background: var(--navy); padding: 20px 14px; display: flex; flex-direction: column; color: white; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }
.logo-row { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.logo-nucleus { flex-shrink: 0; }
.logo-text { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; }
.logo-sub { font-size: 9px; color: var(--light-slate); margin-bottom: 22px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 31px; }
.nav-section { font-size: 9px; color: var(--light-slate); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 8px 4px; font-weight: 600; }
.nav-item { padding: 7px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: #cbd5e1; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: white; }
.nav-item.active { background: rgba(212,168,67,0.14); color: white; font-weight: 600; }
.nav-item.active .nav-dot { background: var(--gold); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #475569; }
.nav-count { margin-left: auto; font-size: 9px; background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 9px; font-weight: 600; }
.nav-gap { height: 10px; }
.sidebar-footer { margin-top: auto; padding: 11px 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.client-name { font-size: 11.5px; font-weight: 600; }
.client-status { font-size: 10px; color: var(--gold); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.client-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.main { padding: 16px 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 16px; }
.tb-left .crumb { font-size: 9px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tb-left .title { font-family: 'Libre Baskerville', serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.tb-right { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--slate); }

/* Hotfix3 H12 (Sven 06.05.): Topbar-Switcher hidden — redundant zur Sidebar
   (beide steuern dieselbe View-Switch-Logic via JS). Sidebar = Single-Source-
   of-Truth. JS-Click-Handler bleiben funktional (kein Render-Side-Effect). */
.view-toggle { display: none; }
.view-toggle--legacy { display: inline-flex; background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.view-btn { background: transparent; border: none; color: var(--slate); padding: 5px 14px; font-size: 11px; font-weight: 600; border-radius: 5px; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
.view-btn:hover { color: var(--navy); }
.view-btn.active { background: var(--navy); color: white; }

/* ── CFO Executive View ── */
.cfo-view { display: block; }
.analyst-view { display: none; flex-direction: column; flex: 1; }
.cfo-action-box { background: linear-gradient(135deg, var(--gold-bg) 0%, white 70%); border: 1px solid var(--gold-border); border-left: 4px solid var(--gold); border-radius: 9px; padding: 18px 22px; margin-bottom: 14px; }
.cfo-action-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cfo-action-head h3 { font-family: 'Libre Baskerville', serif; font-size: 16px; color: var(--navy); margin: 0; }
.cfo-action-date { font-size: 10px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.action-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfo-meeting-strip { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--border); border-left: 3px solid var(--steel); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 12px; }
.cfo-meeting-icon { width: 16px; height: 16px; color: var(--steel); flex-shrink: 0; }
.cfo-meeting-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cfo-meeting-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.cfo-meeting-text > span:nth-child(2) { color: var(--navy); font-weight: 500; }
.cfo-meeting-link { font-size: 11px; color: var(--steel); cursor: pointer; font-weight: 600; }
.cfo-meeting-link:hover { color: var(--navy); }
.action-item { background: white; border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; }
.action-label { font-size: 9px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.action-headline { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 6px; }
.action-volume { font-family: 'Libre Baskerville', serif; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.action-cta { font-size: 11px; color: var(--steel); cursor: pointer; font-weight: 600; }
.action-cta:hover { color: var(--navy); }

.cfo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cfo-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.cfo-kpi.gold { border-top: 3px solid var(--gold); }
.cfo-kpi.rust { border-top: 3px solid var(--rust); }
.cfo-kpi.sage { border-top: 3px solid var(--sage); }
.cfo-kpi.steel { border-top: 3px solid var(--steel); }
.cfo-kpi-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 5px; }
.cfo-kpi-value { font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.3px; }
.cfo-kpi-sub { font-size: 10px; color: var(--slate); margin-top: 5px; }
.cfo-kpi-bar { background: var(--border); height: 3px; border-radius: 2px; overflow: hidden; margin-top: 7px; }
.cfo-kpi-bar > div { height: 100%; }

.cfo-delegations { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.deleg-row.is-critical { position: relative; }
.deleg-row.is-critical::before { content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 2px rgba(192,51,51,0.15); }
.deleg-row.is-critical .deleg-finding-title { padding-left: 0; }
.crit-badge { display: inline-block; font-size: 8px; font-weight: 700; padding: 1px 5px; background: var(--critical); color: white; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 4px; }
.deleg-card { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.deleg-card.priority-a { border-left: 3px solid var(--critical); }
.deleg-card.priority-b { border-left: 3px solid var(--gold); }
.deleg-card.priority-c { border-left: 3px solid var(--light-slate); }
.deleg-card.critical { border-left: 3px solid var(--rust); }
.deleg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.deleg-title { font-family: 'Libre Baskerville', serif; font-size: 13px; font-weight: 700; color: var(--navy); }
.deleg-sub { font-size: 9px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.deleg-counter { font-size: 11px; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.deleg-counter b { color: var(--navy); font-weight: 700; }
.deleg-list { display: flex; flex-direction: column; gap: 6px; }
.deleg-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 11px; cursor: pointer; gap: 8px; }
.deleg-row:hover .deleg-finding-title { color: var(--navy); }
.deleg-finding-title { color: var(--slate); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deleg-finding-vol { font-family: 'Libre Baskerville', serif; font-size: 11px; font-weight: 700; color: var(--navy); flex-shrink: 0; }

.cfo-audit { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cfo-audit-icon { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }
.cfo-audit-label { font-size: 9px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cfo-audit-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--navy); }
.cfo-audit-items strong { font-weight: 600; }
.cfo-audit-sep { color: var(--light-slate); }
.cfo-audit-link { margin-left: auto; font-size: 11px; color: var(--steel); cursor: pointer; font-weight: 600; }
.cfo-audit-link:hover { color: var(--navy); }

.split-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
.split-card { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.split-indicator { width: 4px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.split-indicator.ap { background: var(--ap-blue); }
.split-indicator.ar { background: var(--ar-indigo); }
.split-info { flex: 1; min-width: 0; }
.split-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.split-value { font-family: 'Libre Baskerville', serif; font-size: 18px; font-weight: 700; line-height: 1; margin-top: 2px; }
.split-value.ap { color: var(--ap-blue); }
.split-value.ar { color: var(--ar-indigo); }
.split-meta { font-size: 9px; color: var(--slate); margin-top: 3px; }
.scope-pill { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 9px; background: var(--off-white); color: var(--slate); border: 1px solid var(--border); border-radius: 11px; flex-shrink: 0; }

.kpi-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.kpi.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; border: none; }
.kpi-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 4px; }
.kpi.hero .kpi-label { color: var(--gold-light); }
.kpi-value { font-family: 'Libre Baskerville', serif; font-size: 17px; font-weight: 700; line-height: 1; }
.kpi.hero .kpi-value { color: white; }
.kpi-sub { font-size: 9px; color: var(--slate); margin-top: 3px; }
.kpi.hero .kpi-sub { color: rgba(255,255,255,0.7); }
.kpi.recovery .kpi-value { color: var(--sage); }
.kpi.wirksam .kpi-value { color: var(--navy); }

.filter-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.filter-label { font-size: 9px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.filter-pill { padding: 4px 8px; border-radius: 11px; font-size: 10px; font-weight: 600; color: var(--slate); background: var(--off-white); border: 1px solid transparent; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.filter-pill:hover { border-color: var(--gold-border); }
.filter-pill.active { background: var(--navy); color: white; }
.fp-dot { width: 5px; height: 5px; border-radius: 50%; }
.filter-sep { width: 1px; height: 12px; background: var(--border); }
.filter-pill.ap.active { background: var(--ap-blue); }
.filter-pill.ar.active { background: var(--ar-indigo); }
.tier-vol-meta { margin-left: auto; font-size: 10px; color: var(--slate); display: flex; gap: 12px; }
.tier-vol-meta b { color: var(--navy); font-weight: 700; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; min-height: 0; }
.col { background: var(--off-white); border-radius: 9px; padding: 10px 8px; display: flex; flex-direction: column; min-height: 400px; }
.col-head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; padding: 0 4px; }
.col-dot { width: 7px; height: 7px; border-radius: 50%; }
.col.offen .col-dot { background: var(--light-slate); }
.col.klaerung .col-dot { background: var(--gold); }
.col.realisierbar .col-dot { background: var(--sage); }
.col.wirksam .col-dot { background: var(--navy); }
.col-title { font-size: 11px; font-weight: 700; color: var(--navy); flex: 1; }
.col-count { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 9px; background: white; color: var(--slate); }
.col-body { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; }

.kc { background: white; border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; cursor: pointer; transition: all 0.12s; }
.kc:hover { border-color: var(--gold-border); }
.kc.selected { border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 1px 4px rgba(212,168,67,0.18); }
.kc.recovery { border-left: 2.5px solid var(--sage); }
.kc.einsparung { border-left: 2.5px solid var(--steel); }
.kc.compliance { border-left: 2.5px solid var(--rust); }
.kc.wc { border-left: 2.5px solid var(--gold); }
.kc.strategic { border-left: 2.5px solid var(--indigo); }
.kc-row1 { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.kc-evidence { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
.ev-pill { font-size: 8.5px; font-weight: 600; padding: 1px 5px; border-radius: 3px; line-height: 1.5; white-space: nowrap; }
.ev-pill.ok { background: var(--sage-bg); color: var(--sage); }
.ev-pill.missing { background: var(--off-white); color: var(--slate); border: 1px dashed var(--border); padding: 0 4px; }
.ev-pill.pending { background: var(--gold-bg); color: var(--gold); }
.ev-score { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; line-height: 1.3; white-space: nowrap; cursor: help; }
.ev-score.full { background: var(--sage-bg); color: var(--sage); }
.ev-score.partial { background: var(--gold-bg); color: var(--amber); }
.ev-score.empty { background: var(--off-white); color: var(--slate); border: 1px dashed var(--border); padding: 1px 5px; }
.ev-warn { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px; line-height: 1.3; background: #FBE9E9; color: var(--critical); white-space: nowrap; }
.kc-id { font-size: 8px; color: var(--light-slate); font-family: monospace; }
.kc-sev { width: 5px; height: 5px; border-radius: 50%; }
.kc-sev.critical { background: var(--critical); }
.kc-sev.high { background: var(--high); }
.kc-sev.medium { background: var(--medium); }
.kc-sev.low { background: var(--low); }
.kc-sev.info { background: var(--light-slate); }
.kc-direction { font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 2px; }
.kc-direction.ap { background: var(--ap-blue-bg); color: var(--ap-blue); }
.kc-direction.ar { background: var(--ar-indigo-bg); color: var(--ar-indigo); }
.kc-tier { font-size: 8px; padding: 1px 4px; background: var(--gold-bg); color: var(--gold); border-radius: 6px; font-weight: 700; }
.kc-tier-stage { margin-left: auto; display: flex; gap: 2px; }
.kc-stage-btn { font-size: 9px; padding: 0px 4px; border: 1px solid var(--border); border-radius: 3px; background: white; color: var(--slate); cursor: pointer; line-height: 1.4; }
.kc-stage-btn:hover { border-color: var(--gold); color: var(--navy); }
.kc-pilot { font-size: 8px; color: var(--gold); padding: 1px 4px; background: var(--gold-bg); border-radius: 5px; font-weight: 600; }
.kc-title { font-size: 11px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 4px; }
.kc-meta { font-size: 9px; color: var(--slate); }
.kc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--off-white); }
.kc-vol { font-family: 'Libre Baskerville', serif; font-size: 11px; font-weight: 700; color: var(--navy); }
.kc-vol.zero { font-family: 'Inter', sans-serif; font-size: 9px; color: var(--light-slate); font-weight: 500; }

.detail-pane { background: white; border-left: 1px solid var(--border); padding: 18px 22px; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }

.screen-nav { position: fixed; bottom: 16px; right: 16px; background: rgba(26,39,68,0.92); color: white; border-radius: 8px; padding: 8px; font-size: 11px; box-shadow: 0 12px 32px rgba(26,39,68,0.10); z-index: 80; }
.screen-nav a { color: var(--gold-light); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
.screen-nav a:hover { background: rgba(255,255,255,0.1); }
.screen-nav strong { color: white; display: block; padding: 4px 8px; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--light-slate); }
.detail-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.detail-empty-title { font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.detail-empty-sub { font-size: 11px; color: var(--light-slate); max-width: 240px; line-height: 1.5; }

.detail-hero { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dh-id-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dh-id { font-size: 10px; color: var(--light-slate); font-family: monospace; }
.dh-tier-stage { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.dh-tier-pill { font-size: 9px; font-weight: 700; padding: 2px 8px; background: var(--gold-bg); color: var(--gold); border-radius: 9px; }
.dh-stage-btn { font-size: 10px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; background: white; color: var(--slate); cursor: pointer; }
.dh-stage-btn:hover { border-color: var(--gold); color: var(--navy); }
.dh-tags { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.dh-title { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 5px; }
.dh-meta { font-size: 10px; color: var(--slate); }
.dh-meta code { background: var(--off-white); padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 9px; color: var(--navy); }
.dh-vol-row { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.dh-vol-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.dh-vol { font-family: 'Libre Baskerville', serif; font-size: 18px; font-weight: 700; color: var(--navy); }
.dh-vol.zero { font-size: 11px; color: var(--light-slate); font-weight: 500; }

.stepper { padding: 10px 12px; background: var(--off-white); border-radius: 7px; margin-bottom: 14px; }
.stepper-hint { font-size: 9px; color: var(--slate); margin-bottom: 6px; font-style: italic; }
.stepper-track { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 600; color: var(--slate); cursor: pointer; user-select: none; }
.step:hover { background: white; }
.step.done { color: var(--sage); background: var(--sage-bg); }
.step.active { color: white; background: var(--navy); }
.step.pending { color: var(--light-slate); }
.step-num { width: 13px; height: 13px; border-radius: 50%; font-size: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step.done .step-num { background: var(--sage); color: white; }
.step.active .step-num { background: var(--gold); color: white; }
.step.pending .step-num { background: #E2E8F0; color: var(--light-slate); }
.step-arrow { color: var(--light-slate); font-size: 9px; }

/* Inbox 029-uebersicht-polish-pass H17 (Sven 06.05.):
   .sec-num Bubbles entfernt. Section-Trennung jetzt via subtile border-top
   + padding-top auf .sec-title. Visueller Effekt: minimalistische,
   serif-betonte Section-Header ohne Visual-Noise. */
.sec-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 58, 82, 0.08);
  letter-spacing: 0.01em;
}
.sec-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
/* Backward-Compat: .sec-num als Klasse bleibt (no-op visible) falls
   anderer Code es noch referenziert. JS-Markup wurde komplett umgebaut. */
.sec-num { display: none; }

/* Inbox 029-uebersicht-polish-pass H18 (Sven 06.05.): Status-Dropdown
   ersetzt horizontale Button-Reihe im Detail-Pane. Kompakter, klare
   Hierarchie. Stage-Gate-POST-Backend bleibt unveraendert. */
.status-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}
.status-dropdown-label {
  font-size: 11px;
  color: var(--slate);
  font-weight: 500;
}
.status-dropdown {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%231a3a52' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.status-dropdown:hover { border-color: var(--gold); }
.status-dropdown:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.18);
}
/* Backward-Compat .status-buttons — falls noch irgendwo gerendert, kompakt */
.status-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.status-btn { padding: 4px 10px; font-size: 11px; }
.sec-status { margin-left: auto; font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.sec-status.verified { background: var(--sage-bg); color: var(--sage); }
.sec-status.pending { background: var(--gold-bg); color: var(--gold); }
.sec-status.missing { background: var(--off-white); color: var(--slate); border: 1px solid var(--border); }

.ev-block { background: var(--off-white); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid var(--navy); }
.ev-content { font-size: 11px; color: var(--navy); line-height: 1.5; }
.ev-source { font-size: 9px; color: var(--slate); margin-top: 5px; font-style: italic; }
.ev-block.contract { border-left-color: var(--gold); background: var(--gold-bg); }

.hyp-block { background: var(--gold-bg); border-left: 3px solid var(--gold); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.hyp-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.hyp-label-tag { font-size: 8px; font-weight: 700; padding: 1px 5px; background: var(--indigo-bg); color: var(--indigo); border-radius: 3px; }
.hyp-text { font-size: 11px; color: var(--navy); line-height: 1.5; }
.hyp-validate { background: white; border: 1px dashed var(--gold-border); border-radius: 4px; padding: 6px 9px; margin-top: 6px; font-size: 10px; color: var(--navy); }
.hyp-validate b { color: var(--gold); font-weight: 700; }
.hyp-empty { padding: 10px 12px; background: var(--off-white); border-left: 3px solid var(--light-slate); border-radius: 6px; }
.hyp-empty-text { font-size: 10px; color: var(--slate); font-style: italic; }

.pilot-block { background: linear-gradient(to right, var(--gold-bg), white); border-left: 3px solid var(--gold-light); border-radius: 6px; padding: 10px 12px; }
.pilot-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.pilot-icon { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); color: white; font-size: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pilot-text { font-size: 11px; color: var(--navy); line-height: 1.5; }
.pilot-perspectives { margin-top: 6px; display: flex; gap: 12px; font-size: 9px; color: var(--slate); }
.pilot-perspectives b { color: var(--navy); font-weight: 700; }
.pilot-source { font-size: 9px; color: var(--slate); margin-top: 4px; font-style: italic; }

.upload-zone { border: 2px dashed var(--border); border-radius: 6px; padding: 12px; text-align: center; cursor: pointer; }
.upload-zone:hover { border-color: var(--gold); background: var(--gold-bg); }
.upload-icon { font-size: 16px; color: var(--gold); margin-bottom: 3px; }
.upload-title { font-size: 10px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.upload-sub { font-size: 9px; color: var(--slate); }
.upload-llm-hint { display: inline-block; margin-top: 5px; font-size: 8px; padding: 2px 6px; background: var(--indigo-bg); color: var(--indigo); border-radius: 6px; font-weight: 600; }
.file-empty { padding: 8px 12px; background: var(--off-white); border-radius: 5px; font-size: 10px; color: var(--slate); font-style: italic; text-align: center; margin-bottom: 7px; }

.note-box { width: 100%; min-height: 55px; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 10px; font-family: 'Inter', sans-serif; color: var(--navy); resize: vertical; margin-top: 6px; }
.note-box:focus { outline: none; border-color: var(--gold); }
.note-meta { font-size: 8px; color: var(--slate); margin-top: 3px; font-style: italic; }

.timeline { padding: 6px 0; }
.tl-item { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 7px; color: white; font-weight: 700; }
.tl-dot.done { background: var(--sage); }
.tl-dot.active { background: var(--navy); border: 1.5px solid var(--gold); }
.tl-content { flex: 1; }
.tl-text { font-size: 10px; color: var(--navy); font-weight: 600; }
.tl-meta { font-size: 9px; color: var(--slate); margin-top: 1px; }

.sev-pill { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 3px; }
.sev-pill.critical { background: var(--critical); color: white; }
.sev-pill.high { background: var(--high); color: white; }
.sev-pill.medium { background: var(--medium); color: white; }
.sev-pill.low { background: #E2E8F0; color: var(--slate); }
.sev-pill.info { background: var(--off-white); color: var(--slate); }
.lever_class-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.lever_class-badge.recovery { background: var(--sage-bg); color: var(--sage); }
.lever_class-badge.einsparung { background: var(--steel-bg); color: var(--steel); }
.lever_class-badge.compliance { background: var(--rust-bg); color: var(--rust); }
.lever_class-badge.wc { background: var(--gold-bg); color: var(--gold); }
.lever_class-badge.strategic { background: var(--indigo-bg); color: var(--indigo); }
.direction-badge { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.direction-badge.ap { background: var(--ap-blue-bg); color: var(--ap-blue); }
.direction-badge.ar { background: var(--ar-indigo-bg); color: var(--ar-indigo); }
.pilot-badge { font-size: 9px; color: var(--gold); padding: 2px 7px; background: var(--gold-bg); border: 1px solid var(--gold-border); border-radius: 9px; font-weight: 600; }
.suppliers-view { display: none; }
.suppliers-view.shown { display: block; }
.suppliers-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 18px; }
.suppliers-title { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.suppliers-sub { font-size: 12px; color: var(--slate); line-height: 1.5; margin-top: 4px; max-width: 560px; }
.suppliers-meta { font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; flex-shrink: 0; }

.battle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1600px) { .battle-grid { grid-template-columns: repeat(3, 1fr); } }

.battle-card { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.15s; }
.battle-card:hover { border-color: var(--gold-border); }
.battle-card.high-risk { border-left: 3px solid var(--critical); }
.battle-card.med-risk { border-left: 3px solid var(--rust); }
.battle-card.low-risk { border-left: 3px solid var(--gold); }

.battle-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.battle-name { font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.battle-meta { font-size: 11px; color: var(--slate); margin-top: 2px; }
.battle-score-block { text-align: right; flex-shrink: 0; }
.battle-score { font-family: 'Libre Baskerville', serif; font-size: 18px; font-weight: 700; line-height: 1; }
.battle-score.high { color: var(--critical); }
.battle-score.med { color: var(--rust); }
.battle-score.low { color: var(--gold); }
.battle-score-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-top: 3px; }

.battle-vol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.battle-vol { background: var(--off-white); border-radius: 6px; padding: 8px 10px; }
.battle-vol-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 2px; }
.battle-vol-val { font-family: 'Libre Baskerville', serif; font-size: 14px; font-weight: 700; color: var(--navy); }

.battle-findings { display: flex; flex-direction: column; gap: 4px; }
.battle-findings-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 2px; }
.battle-finding-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--off-white); font-size: 11.5px; }
.battle-finding-row:last-child { border-bottom: none; }
.battle-finding-sev { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.battle-finding-sev.critical { background: var(--critical); }
.battle-finding-sev.high { background: var(--high); }
.battle-finding-sev.medium { background: var(--medium); }
.battle-finding-sev.low { background: var(--low); }
.battle-finding-title { flex: 1; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-finding-vol { font-family: 'Libre Baskerville', serif; font-size: 11px; font-weight: 700; color: var(--navy); flex-shrink: 0; }

.battle-rec { background: var(--gold-bg); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 8px 11px; font-size: 11.5px; color: var(--navy); line-height: 1.5; }
.battle-rec strong { font-weight: 700; }

.battle-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); font-size: 10px; }
.battle-status { display: flex; align-items: center; gap: 6px; color: var(--slate); }
.battle-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.battle-cta { color: var(--steel); font-weight: 600; cursor: pointer; }
.battle-cta:hover { color: var(--navy); }

.supplier-map-section { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 18px; margin-bottom: 16px; }
.map-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 14px; }
.map-header h4 { font-family: 'Libre Baskerville', serif; font-size: 13px; font-weight: 700; color: var(--navy); margin: 0; }
.map-meta { font-size: 10.5px; color: var(--slate); }
.supplier-map { width: 100%; height: auto; max-height: 240px; }
.supplier-map .axis-line { stroke: var(--border); stroke-width: 1; }
.supplier-map .axis-label { fill: var(--slate); font-size: 9px; font-family: 'Inter', sans-serif; }
.supplier-map .bubble { cursor: pointer; transition: opacity 0.15s; }
.supplier-map .bubble:hover { opacity: 1 !important; }
.supplier-map .bubble-label { fill: var(--navy); font-size: 8.5px; font-family: 'Inter', sans-serif; pointer-events: none; }
.map-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 10.5px; color: var(--slate); }
.map-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.heatmap-section { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 18px; margin-top: 16px; }
.heatmap-wrap { overflow-x: auto; }
.heatmap { width: 100%; min-width: 720px; }
.heatmap .hm-row-label { fill: var(--navy); font-size: 10px; font-family: 'Inter', sans-serif; }
.heatmap .hm-col-label { fill: var(--slate); font-size: 9px; font-family: 'Inter', sans-serif; }
.heatmap .hm-cell { stroke: white; stroke-width: 1.5; cursor: pointer; }
.heatmap .hm-cell-count { fill: white; font-size: 9px; font-weight: 700; font-family: 'Inter', sans-serif; pointer-events: none; }

.sankey-section { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 18px; margin-top: 14px; }
.sankey { width: 100%; max-height: 240px; }
.sankey .sk-node { stroke-width: 0; }
.sankey .sk-label { fill: var(--navy); font-size: 10px; font-family: 'Inter', sans-serif; font-weight: 600; }
.sankey .sk-sub { fill: var(--slate); font-size: 9px; font-family: 'Inter', sans-serif; }
.sankey .sk-link { fill-opacity: 0.35; }

/* === Inbox 024g Phase B+C+D: Customer-Direct-Findings-Access === */

.top-findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.top-findings-col {
  background: var(--card, white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
}
.top-findings-col h3 {
  font-size: 13px;
  margin: 0 0 10px 0;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.top-findings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.top-findings-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.top-findings-item:last-child { border-bottom: none; }
.top-findings-item:hover { background: rgba(0,0,0,0.02); }
.top-findings-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.top-findings-amount-small {
  font-size: 11px;
  color: var(--slate);
  margin-top: 2px;
}
.top-findings-title {
  font-size: 12px;
  margin: 2px 0 4px 0;
  color: var(--navy);
  line-height: 1.3;
}
.top-findings-meta {
  font-size: 10px;
  color: var(--slate);
}
.severity-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.sev-critical { background: #c62828; color: white; }
.sev-high     { background: #ef6c00; color: white; }
.sev-medium   { background: #fbc02d; color: #5c4400; }
.sev-low      { background: #aed581; color: #1b5e20; }
.sev-info     { background: #b0bec5; color: #263238; }

/* Card-Grid in active-section ist click-bar (button instead of div) */
.check-grid-active .check-tile.card-trigger {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card, white);
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
}
.check-grid-active .check-tile.card-trigger:hover {
  border-color: var(--gold-border, #d4af37);
  transform: translateY(-1px);
}
.check-grid-active .check-tile .check-count {
  font-size: 10px;
  color: var(--slate);
  margin-top: 4px;
}

/* Inline-Detail-Section unter dem Card-Grid */
.card-detail-section {
  background: var(--card, white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px 18px;
  margin-top: 14px;
}
.card-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.card-detail-header h3 { margin: 0; font-size: 14px; color: var(--navy); }
.card-detail-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--slate);
}
.card-detail-close:hover { color: var(--navy); }
.finding-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.finding-row:last-child { border-bottom: none; }
.finding-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.finding-row-title { font-size: 12px; color: var(--navy); flex: 1; }
.finding-row-amount { font-size: 12px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.finding-row-meta { font-size: 10px; color: var(--slate); margin-top: 4px; }
.finding-status-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
}
.finding-status-row label { color: var(--slate); }
.finding-status-select { padding: 2px 6px; font-size: 11px; border: 1px solid var(--border); border-radius: 4px; }
.finding-note-input { flex: 1; padding: 2px 6px; font-size: 11px; border: 1px solid var(--border); border-radius: 4px; }
.finding-status-save { padding: 2px 8px; font-size: 11px; border: 1px solid var(--border); background: var(--card, white); border-radius: 4px; cursor: pointer; }
.finding-status-save:hover { background: var(--bg, #f5f5f5); }
.finding-status-confirm { font-size: 10px; color: #2e7d32; }

/* Mobile */
@media (max-width: 768px) {
  .top-findings-grid { grid-template-columns: 1fr; }
}

/* === Inbox 024h Phase C: Erfolgs-Banner + tokenized-CTA === */

.success-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #2e7d32;
  border-left: 4px solid #2e7d32;
  border-radius: 9px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.success-banner-headline {
  font-size: 14px;
  color: #1b5e20;
  flex: 1 1 auto;
}
.success-banner-stats {
  font-size: 13px;
  color: #1b5e20;
  flex: 1 1 100%;
  margin-top: 2px;
}
.success-banner-stats strong { color: #1b5e20; }
.success-banner-cta {
  display: inline-block;
  padding: 8px 16px;
  background: #2e7d32;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.success-banner-cta:hover { background: #1b5e20; }

.tokenized-card {
  background: var(--card, white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
  text-align: center;
}
.tokenized-card .customer-action {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--navy);
}
.tokenized-card .customer-action strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.tokenized-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--navy, #0a2540);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.tokenized-cta:hover { background: #06182d; }

/* === Inbox 024i Phase G: Discovery-Workspace-Disclaimer === */

.discovery-disclaimer {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
  border: 1px solid #d4af37;
  border-left: 4px solid #d4af37;
  border-radius: 9px;
  padding: 12px 18px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
}
.discovery-disclaimer-headline {
  font-size: 13px;
  font-weight: 700;
  color: #5c4400;
  margin-bottom: 4px;
}
.discovery-disclaimer-body {
  color: #5c4400;
}
.discovery-disclaimer-body strong {
  color: #3d2c00;
}

/* Cockpit-Variante: kompakter wegen Sidebar-Layout */
#discovery-disclaimer-cockpit {
  margin: 12px 18px 0;
}

/* Inbox 026 Phase E2: Disclaimer-Dismiss-Button */
.discovery-disclaimer { position: relative; }
.discovery-disclaimer-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: #d4af37;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
}
.discovery-disclaimer-dismiss:hover {
  opacity: 1;
  background: rgba(212, 175, 55, 0.15);
}

/* Inbox 026 Phase E4: Trust-Center Release-Manifest-Tabelle */
.release-manifest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.release-manifest-table th,
.release-manifest-table td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--bg-soft, #f0eee8);
}
.release-manifest-table th {
  width: 32%;
  color: var(--slate);
  font-weight: 500;
}
.release-manifest-table code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 12px;
  color: var(--navy);
}

/* Inbox 027 Phase A: Severity-Step-Up/Down + Engine-Override-Pill */
.sev-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  cursor: default;
}
.sev-pill .sev-step {
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.1s, background 0.1s;
}
.sev-pill .sev-step:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.8);
}
.sev-pill .sev-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 4px;
}
.sev-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-style: italic;
  color: var(--slate);
  background: rgba(212, 175, 55, 0.10);
  border: 1px dashed #d4af37;
  border-radius: 3px;
}
.sev-engine-pill .sev-clear {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: var(--slate);
  padding: 0 2px;
  opacity: 0.6;
}
.sev-engine-pill .sev-clear:hover {
  opacity: 1;
  color: var(--rust, #c84e1f);
}

/* Inbox 027 Phase B: Findings-Detail-Tiefe (Excel-Paritaet) */
.ev-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 4px;
}
.ev-card {
  background: var(--bg-soft, #f8f7f3);
  border: 1px solid #e6e3da;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}
.ev-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 4px;
}
.ev-card-vendor {
  font-weight: 600;
  color: var(--navy);
}
.ev-card-title {
  margin-top: 2px;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.35;
}
.ev-card-meta {
  margin-top: 4px;
  color: var(--slate);
  font-size: 10px;
}
.ev-card-amount {
  margin-top: 6px;
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 600;
  color: var(--rust, #c84e1f);
}
.ev-meta {
  font-size: 11px;
  color: var(--slate);
  margin: 6px 0 0;
  font-style: italic;
}
.ev-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 4px 0;
}
.ev-kv th,
.ev-kv td {
  text-align: left;
  padding: 3px 6px;
  border-bottom: 1px solid #f0eee8;
}
.ev-kv th {
  width: 35%;
  color: var(--slate);
  font-weight: 500;
  font-size: 11px;
}
.ev-list { margin: 4px 0; padding-left: 18px; font-size: 12px; }
.ev-more { font-size: 11px; color: var(--slate); margin-top: 4px; }
.ev-clarification {
  margin-top: 8px;
  padding: 8px;
  background: rgba(212, 175, 55, 0.10);
  border-left: 3px solid #d4af37;
  border-radius: 2px;
  font-size: 12px;
}

/* Inbox 027 Phase C: Dashboard-Restruktur — Hebel-Block + Status-Block */
.findings-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 900px) {
  .findings-flow-grid { grid-template-columns: 1fr; }
}
.flow-block {
  background: var(--bg-card, #fff);
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 18px;
}
.flow-block h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}
.flow-bar-list { display: flex; flex-direction: column; gap: 8px; }
.flow-bar-row {
  display: grid;
  grid-template-columns: 32% 1fr 22%;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.flow-bar-label { display: flex; align-items: center; gap: 6px; }
.flow-bar-name { color: var(--navy); flex: 1; }
.flow-bar-count {
  font-size: 10px;
  color: var(--slate);
  background: #f0eee8;
  padding: 1px 5px;
  border-radius: 8px;
}
.flow-bar-track {
  height: 8px;
  background: #f0eee8;
  border-radius: 4px;
  overflow: hidden;
}
.flow-bar-fill {
  height: 100%;
  background: var(--sage, #7d9b75);
  transition: width 0.3s;
}
.flow-bar-fill.recovery { background: #c84e1f; }
.flow-bar-fill.compliance { background: #2c4870; }
.flow-bar-fill.einsparung { background: #6b7e8e; }
.flow-bar-fill.wc { background: #a87a3e; }
.flow-bar-fill.strategic { background: #5e3577; }
.flow-bar-fill.status-offen { background: #94A3B8; }
.flow-bar-fill.status-in_klaerung { background: #d4af37; }
.flow-bar-fill.status-in_umsetzung { background: #7d9b75; }
.flow-bar-fill.status-geklaert { background: #2c4870; }
.cat-dot.status-offen { background: #94A3B8; }
.cat-dot.status-in_klaerung { background: #d4af37; }
.cat-dot.status-in_umsetzung { background: #7d9b75; }
.cat-dot.status-geklaert { background: #2c4870; }
.flow-bar-value {
  text-align: right;
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 600;
  color: var(--navy);
  font-size: 11px;
}

/* Inbox 027 Phase C: Action-Item-Counters (Pill-Reihe oben) */
.action-counters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid #e6e3da;
  background: #fff;
  font-size: 12px;
  color: var(--navy);
  transition: background 0.1s, border-color 0.1s;
}
.action-pill:hover {
  border-color: #d4af37;
  background: #fffbef;
}
.action-pill .action-count {
  font-weight: 700;
  font-size: 16px;
  font-family: 'SF Mono', Consolas, monospace;
}
.action-pill.in_klaerung .action-count { color: #d4af37; }
.action-pill.in_umsetzung .action-count { color: #7d9b75; }
.action-pill.geklaert .action-count { color: #2c4870; }
.action-pill.offen .action-count { color: #94A3B8; }

/* Inbox 027 Phase D: Realisierungs-Zähler-Provisorium */
.realisation-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  position: relative;
}
@media (max-width: 760px) {
  .realisation-counters { grid-template-columns: 1fr; }
}
.realisation-card {
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid #e6e3da;
  background: #fff;
}
.realisation-card.sage { border-left: 4px solid #7d9b75; }
.realisation-card.steel { border-left: 4px solid #6b7e8e; }
.realisation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 6px;
}
.realisation-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--navy);
}
.realisation-meta {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
}
.realisation-hint {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--slate);
  font-style: italic;
  text-align: right;
}

/* Inbox 028a Phase A: Werkbank 3-Spalten-Layout */
.business-hero {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.12), rgba(212, 168, 67, 0.04));
  border-left: 3px solid #D4A843;
  padding: 12px 18px;
  margin: 8px 18px 12px;
  border-radius: 4px;
}
.business-hero-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.cfo-summary-block {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 8px 18px 12px;
}
.cfo-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cfo-summary-header h3 { margin: 0; font-size: 13px; color: var(--navy); }
.cfo-summary-refresh-btn {
  background: transparent; border: 1px solid #e6e3da; border-radius: 4px;
  padding: 2px 8px; cursor: pointer; font-size: 14px;
}
.cfo-summary-content {
  font-size: 13px; line-height: 1.5; color: var(--slate); white-space: pre-wrap;
}
.cfo-summary-meta {
  font-size: 10px; color: var(--slate); font-style: italic; margin-top: 6px;
}
.kpi-tiles-grid { display: flex; flex-direction: column; gap: 8px; margin: 0 18px 12px; }
.kpi-tile-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .kpi-tile-row { grid-template-columns: 1fr; } }
.kpi-tile {
  display: block; padding: 10px 14px;
  background: #fff; border: 1px solid #e6e3da; border-radius: 5px;
  text-decoration: none; color: var(--navy);
}
.kpi-tile:hover { border-color: #d4af37; background: #fffbef; }
.kpi-tile.placeholder { opacity: 0.4; pointer-events: none; }
.kpi-tile-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate); margin-bottom: 4px;
}
.kpi-tile-value {
  font-size: 18px; font-weight: 700; font-family: SF Mono, Consolas, monospace;
}
.kpi-tile-sub { font-size: 10px; color: var(--slate); margin-top: 2px; }
.werkbank-3col {
  display: grid; grid-template-columns: 280px 1fr 280px; gap: 12px;
  margin: 0 18px 18px; min-height: 60vh;
}
@media (max-width: 1100px) { .werkbank-3col { grid-template-columns: 1fr; } }
.werkbank-list, .werkbank-property {
  background: #fff; border: 1px solid #e6e3da; border-radius: 6px;
  padding: 12px; max-height: 70vh; overflow-y: auto;
}
.werkbank-detail {
  background: #fff; border: 1px solid #e6e3da; border-radius: 6px;
  padding: 16px 20px; max-height: 70vh; overflow-y: auto;
}
.werkbank-list-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.werkbank-list-header h3 { margin: 0; font-size: 13px; }
.werkbank-list-items { list-style: none; padding: 0; margin: 0; }
.werkbank-list-item {
  display: grid; grid-template-columns: 60px 1fr 70px; align-items: center;
  gap: 6px; padding: 6px 4px; cursor: pointer; border-bottom: 1px solid #f0eee8;
  font-size: 12px;
}
.werkbank-list-item:hover, .werkbank-list-item.active { background: #fffbef; }
.list-title { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-vol { font-family: SF Mono, Consolas, monospace; font-size: 11px; text-align: right; color: var(--slate); }
.wb-block { padding: 8px 0 12px; border-bottom: 1px solid #f0eee8; }
.wb-block h3 { font-size: 12px; color: var(--slate); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.wb-header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wb-title { width: 100%; font-size: 16px; margin: 4px 0 2px; color: var(--navy); }
.wb-meta { width: 100%; font-size: 11px; color: var(--slate); }
.wb-anomaly-llm {
  background: rgba(212, 168, 67, 0.08); border-left: 3px solid #D4A843;
  padding: 8px 12px; font-size: 13px; line-height: 1.5; color: var(--navy);
}
.wb-anomaly-engine summary { font-size: 11px; color: var(--slate); cursor: pointer; margin-top: 6px; }
.wb-anomaly-engine-text { font-size: 12px; color: var(--slate); margin-top: 4px; }
.wb-clarification-text {
  background: #fffbef; border-left: 3px solid #C99A30;
  padding: 8px 12px; font-size: 12px; font-style: italic; color: var(--navy);
}
.wb-crossref-list { margin: 0; padding-left: 16px; font-size: 12px; }
.wb-crossref-list li { padding: 2px 0; }
.wb-crossref-list .reason { color: var(--slate); font-size: 11px; font-style: italic; }
.wb-pattern-tag {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  background: rgba(125, 155, 117, 0.15); color: var(--navy); font-size: 11px;
}
.wb-pattern-tag em { color: var(--slate); font-style: normal; }
.werkbank-property h3, .werkbank-property h4 {
  font-size: 12px; color: var(--slate); margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.wb-property-stage { margin-bottom: 12px; }
.stage-progress-label { font-size: 11px; margin-bottom: 4px; color: var(--navy); }
.stage-progress-bar { height: 6px; background: #f0eee8; border-radius: 3px; overflow: hidden; }
.stage-progress-fill { height: 100%; background: linear-gradient(90deg, #D4A843, #7d9b75); }
.stage-criteria-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 11px; }
.stage-criteria-list li { padding: 2px 0; }
.crit-ok { color: #2c4870; }
.crit-open { color: var(--slate); }
.evidence { color: var(--slate); font-size: 10px; font-style: italic; }
.stage-advance-btn {
  margin-top: 8px; padding: 6px 12px; background: #2c4870; color: #fff;
  border: 0; border-radius: 4px; cursor: pointer; font-size: 11px;
}
.pipeline-kanban {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin: 0 18px; min-height: 70vh;
}
@media (max-width: 1100px) { .pipeline-kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .pipeline-kanban { grid-template-columns: 1fr; } }
.pipeline-col {
  background: #f8f7f3; border: 1px solid #e6e3da; border-radius: 6px;
  padding: 8px; min-height: 60vh;
}
.pipeline-col-title {
  font-size: 12px; margin: 0 0 8px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pipeline-col-cards { display: flex; flex-direction: column; gap: 4px; }
.pipeline-card {
  background: #fff; border: 1px solid #e6e3da; border-radius: 4px;
  padding: 6px 8px; cursor: pointer; font-size: 11px;
}
.pipeline-card-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.pipeline-card-vol { font-family: SF Mono, Consolas, monospace; font-size: 10px; }
.pipeline-card-title { font-size: 11px; color: var(--navy); line-height: 1.3; }
.pipeline-card-meta { font-size: 10px; color: var(--slate); margin-top: 2px; }
.sev-badge { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.sev-badge.critical { background: #c84e1f; color: #fff; }
.sev-badge.high     { background: #d4af37; color: #fff; }
.sev-badge.medium   { background: #6b7e8e; color: #fff; }
.sev-badge.low      { background: #a8b3bf; color: #fff; }
.sev-badge.info     { background: #d0d4d8; color: var(--slate); }
.status-pill { padding: 2px 8px; border-radius: 10px; font-size: 10px; }
.status-pill.offen { background: #f0eee8; color: var(--slate); }
.status-pill.in_klaerung { background: rgba(212, 175, 55, 0.15); color: #d4af37; }
.status-pill.in_umsetzung { background: rgba(125, 155, 117, 0.15); color: #7d9b75; }
.status-pill.geklaert { background: rgba(44, 72, 112, 0.10); color: #2c4870; }
.status-pill.audit_ready { background: rgba(107, 53, 119, 0.10); color: #6b3577; }

/* Inbox 028a-followup Phase D2: Migration-Banner */
.migration-banner {
  background: rgba(212, 175, 55, 0.15);
  border-left: 3px solid #d4af37;
  padding: 10px 14px;
  margin: 8px 18px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--navy);
}
.migration-banner-dismiss {
  background: transparent; border: 0; cursor: pointer; font-size: 16px;
  color: var(--slate); padding: 0 4px;
}

/* Inbox 028a-followup Phase C4: CFO-Stale-Banner */
.cfo-stale-banner {
  background: rgba(200, 78, 31, 0.10);
  border-left: 3px solid #c84e1f;
  padding: 6px 10px;
  margin: 0 0 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #c84e1f;
}

/* Inbox 028a-followup Phase D1: Pipeline-Filter-Pills */
.pipeline-filter-pills {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; flex-wrap: wrap; font-size: 12px;
}
.filter-counter {
  background: var(--navy); color: #fff;
  padding: 2px 10px; border-radius: 12px; font-weight: 600;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0eee8; color: var(--slate);
  padding: 2px 8px; border-radius: 12px;
  text-decoration: none; font-size: 11px;
}
.filter-pill-x { font-weight: 700; }
.filter-clear {
  margin-left: auto; color: #c84e1f; text-decoration: none;
  font-size: 11px;
}
.filter-clear:hover { text-decoration: underline; }

/* Inbox 028a-followup Phase E: Toast-Notification-System */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999; max-width: 360px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 4px;
  background: #fff; border-left: 4px solid #6b7e8e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  font-size: 13px; color: var(--navy);
  animation: toast-slide-in 0.2s ease-out;
}
.toast-info { border-left-color: #6b7e8e; }
.toast-error { border-left-color: #c84e1f; }
.toast-success { border-left-color: #7d9b75; }
.toast-msg { flex: 1; }
.toast-close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 16px; color: var(--slate); padding: 0 2px;
}
@keyframes toast-slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* === Inbox 028-rollback Phase 1: Sidebar-Layout-Bugs (Sven-Feedback) === */
/* Punkt 11: Sidebar reicht bis Seitenende (war: top:76px height:calc(100vh - 76px) — 
   bei langem Content endete Trust-Streifen vor Seitenende) */
.sidebar {
  /* Override existing sticky-positioning fuer volle Hoehe */
  min-height: calc(100vh - 76px);
}
/* Hotfix-Polish-3-Regressions Block D (13.05., H3-1 Live-Forensik-Fix):
   `body.cockpit-body { padding-top: 0 !important }` ENTFERNT.
   Root-Cause war: Rule überschrieb body-global `padding-top: 76px`
   (für fixed .nav-strip) auf 0 → Cockpit-Content begann bei top:0,
   wurde aber von der position:fixed-Nav-Strip (z-index:100, Höhe 76px)
   überlagert → Header oben abgeschnitten. Persistierte über 4 Hotfix-
   Iterationen (overflow-y-Pflaster greifen nicht weil Bug ist Padding-
   Drift, kein Overflow).
   Sidebar+App-Rules angepasst auf top:76px statt 0 — Sidebar sitzt
   unterhalb der Nav-Strip wie alle anderen Pages. */
body.cockpit-body .sidebar { top: 76px; height: calc(100vh - 76px); min-height: calc(100vh - 76px); }
body.cockpit-body .app { min-height: calc(100vh - 76px); }

/* Punkt 5: Aktiv-State exklusiv (nur ein Tab gleichzeitig) */
.sidebar .nav-item { cursor: pointer; }
.sidebar .nav-item.active .nav-dot { background: var(--gold, #D4A843); }
.sidebar .nav-item:not(.active) .nav-dot { background: rgba(255,255,255,0.25); }

/* Hotfix4 H15 (Sven 06.05.): Trust-Center-Item an unteren Sidebar-Rand.
   Trust-Center nav-item hat kein data-cockpit-view (onclick statt View-Toggle).
   margin-top: auto im flex-column-Container schiebt es nach unten, sidebar-
   footer folgt. Cockpit-Sub-Views (CFO/Lieferanten/Detailpruefung) bleiben
   oben gruppiert.
   Hotfix5 H15b (Sven 06.05.): Diagnose-Befund — Base-Rule .sidebar-footer hat
   ebenfalls `margin-top: auto` (Z.1527). Mit zwei Items die margin-top:auto
   haben, teilt CSS-Flex den Freiraum gleichmaessig zwischen beiden auf →
   Trust-Center landet in der Mitte, footer am Boden. Override entfernt
   sidebar-footer auto-margin im Cockpit-Body-Kontext, damit Trust-Center
   den vollen Freiraum allein absorbiert und sidebar-footer direkt darunter
   sitzt. */
body.cockpit-body .sidebar .nav-item:not([data-cockpit-view]) {
  margin-top: auto;
}
body.cockpit-body .sidebar .sidebar-footer {
  margin-top: 0;
}

/* Punkt 9: Detail-Pane unsichtbar in Uebersicht/Lieferanten */
.detail-pane.detail-pane-hidden { display: none; }
body.cockpit-body .app:has(.detail-pane.detail-pane-hidden) {
  grid-template-columns: 180px 1fr;  /* 2-col statt 3-col */
}
/* Fallback fuer Browser ohne :has() — JS toggelt class auf .app */
body.cockpit-body .app.detail-pane-collapsed {
  grid-template-columns: 180px 1fr;
}

/* Punkt 3: Discovery-Notiz als unauffaellige Fussnote */
.discovery-footnote {
  margin-top: 24px;
  padding: 8px 12px;
  font-size: 10px;
  color: var(--slate, #6b7e8e);
  font-style: italic;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  line-height: 1.4;
}

/* Inbox 028-rollback Phase 5 (Sven-Feedback Punkt 1): Trust-Center-Layout
   mit sichtbarer Sidebar (.app-grid wie cockpit-body). Container-Inhalte im
   .trust-main-Block. */
body.cockpit-body .trust-main {
  padding: 24px 32px;
  max-width: 1100px;
  overflow-y: auto;
}
body.cockpit-body .trust-main .back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--navy);
  text-decoration: none;
}
body.cockpit-body .trust-main .back-link:hover { text-decoration: underline; }
body.cockpit-body .trust-main .page-head { margin-bottom: 24px; }
body.cockpit-body .trust-main .page-head h1 {
  font-size: 24px; margin: 0 0 8px; color: var(--navy);
}
body.cockpit-body .trust-main .page-head .lead {
  font-size: 13px; color: var(--slate); line-height: 1.5;
}

/* Inbox 028-rollback Phase 4: LLM-Felder prominent im Detail-Pane */
.llm-anomaly-block { border-left: 3px solid #D4A843; padding-left: 10px; }
.llm-anomaly-block .ev-content {
  background: rgba(212, 168, 67, 0.06);
  padding: 10px 12px; border-radius: 4px;
  font-size: 13px; line-height: 1.5; color: var(--navy);
}
.llm-clarification-block { border-left: 3px solid #C99A30; padding-left: 10px; }
.llm-clarification-block .ev-content {
  background: #fffbef;
  padding: 10px 12px; border-radius: 4px;
  font-size: 12px; font-style: italic; color: var(--navy);
}
.llm-crossref-list { margin: 6px 0 12px; padding-left: 18px; font-size: 12px; }
.llm-crossref-list li { padding: 2px 0; }
.llm-crossref-list a { color: var(--navy); text-decoration: none; }
.llm-crossref-list a:hover { text-decoration: underline; }
.llm-crossref-reason { color: var(--slate); font-size: 11px; font-style: italic; margin-left: 4px; }
.llm-pattern-tag {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  background: rgba(125, 155, 117, 0.15); color: var(--navy); font-size: 11px;
}
.llm-pattern-tag em { color: var(--slate); font-style: normal; }

/* Inbox 028-rollback Phase 7: CFO-Summary-Block additive im Cockpit */
.cfo-summary-block-cockpit {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 16px 0;
}
.cfo-summary-block-cockpit .cfo-summary-text {
  font-size: 13px; line-height: 1.5; color: var(--navy);
}

/* === Inbox 028-rollback POLISH-PASS (06.05.) =================================== */

/* P1 + P4a: Sidebar linksbuendig (kein weisser Streifen davor)
   Forensik: body hat universal-reset margin:0 + padding:0. Aber
   .nav-strip ist fixed mit background rgba(26,39,68,0.97), .sidebar mit
   var(--navy) (deckend) — visuell minimal verschiedene Farbtoene erzeugen
   Streifen-Effekt. Plus: .app hat min-width:1280px ohne margin:0 auto, daher
   bei breitem Viewport koennte Browser horizontal scrollen.
   Fix: nav-strip-Background = sidebar-Background (deckend), .app + .sidebar
   strikt linksbuendig erzwingen. */
body.cockpit-body .nav-strip { background: var(--navy) !important; }
body.cockpit-body .app { margin-left: 0 !important; padding-left: 0 !important; }
body.cockpit-body .sidebar { left: 0 !important; margin-left: 0 !important; }
body.cockpit-body { margin: 0 !important; padding-left: 0 !important; }

/* P5: Active-State exklusiv — nur EIN goldener Punkt zur Zeit.
   CSS reichte aus 028-rollback Phase 1 mit `.active .nav-dot { background: gold }`.
   Aber JS-setView() syncen bislang nur Cockpit-Sub-Views. Trust-Center-Page
   hat eigene Sidebar mit `.nav-item.active` auf Trust-Center-Item — das ist OK.
   Im Cockpit-Body bei initial-Load: Default-Active = Übersicht (data-cockpit-view=cfo),
   kein Trust-Center-Item active. Diese Polish-Pass ergaenzt Smoke-Härtung. */
body.cockpit-body .sidebar .nav-item.active .nav-dot {
  background: var(--gold, #D4A843) !important;
}
body.cockpit-body .sidebar .nav-item:not(.active) .nav-dot {
  background: rgba(255,255,255,0.25) !important;
}

/* P2: CFO-Summary-Refresh-Button kleiner (Icon-Size statt Buttoneindruck) */
.cfo-summary-block-cockpit .cfo-summary-header h3 { font-size: 12px; }
.cfo-summary-block-cockpit .cfo-summary-refresh-btn {
  width: 22px; height: 22px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  background: transparent;
  border: 1px solid #e6e3da;
  border-radius: 50%;
  color: var(--slate);
  opacity: 0.6;
}
.cfo-summary-block-cockpit .cfo-summary-refresh-btn:hover {
  opacity: 1;
  border-color: var(--gold, #D4A843);
}

/* P7 + Inbox 029-uebersicht-polish-pass Sub-Commit 5 (Sven 06.05.):
   Severity-Color-Mapping A/B/C — Tier-Klassen-Dot-Color konsistent.
   tier 1 = A = rot (kritisch), tier 2 = B = gold (mittel),
   tier 3 = C = neutral/slate.
   Audit-Pass: hardcoded Hex (#c84e1f, #d4af37, #94A3B8) durch Brand-Tokens
   (var(--critical), var(--gold), var(--light-slate)) ersetzt fuer
   Theme-Single-Source. */
.severity-dot--A, .dh-tier-pill[data-tier="1"] {
  background: var(--critical) !important; color: #fff !important;
}
.severity-dot--B, .dh-tier-pill[data-tier="2"] {
  background: var(--gold) !important; color: #fff !important;
}
.severity-dot--C, .dh-tier-pill[data-tier="3"] {
  background: var(--light-slate) !important; color: #fff !important;
}

/* P6: Findings-Flow Bar-Chart-Container (Status-Dimension raus, einfacher
   horizontaler Bar-Chart pro Lever-Class). */
.lever-class-bars {
  display: flex; flex-direction: column; gap: 6px;
  margin: 12px 0;
  background: #fff; border: 1px solid #e6e3da; border-radius: 6px;
  padding: 14px 18px;
}
.lever-class-bars h3 { margin: 0 0 8px; font-size: 13px; color: var(--navy); }
.lever-class-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 10px; align-items: center;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px; border-radius: 3px;
  transition: background 0.1s;
}
.lever-class-bar-row:hover { background: #fffbef; }
.lever-class-bar-label { color: var(--navy); font-weight: 500; }
.lever-class-bar-track {
  height: 18px;
  background: #f0eee8;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}
.lever-class-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), #6b7e8e);
  display: flex; align-items: center; padding-left: 8px;
  color: #fff; font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.lever-class-bar-fill.recovery { background: linear-gradient(90deg, #c84e1f, #e57051); }
.lever-class-bar-fill.compliance { background: linear-gradient(90deg, #2c4870, #4a6a96); }
.lever-class-bar-fill.einsparung { background: linear-gradient(90deg, #6b7e8e, #94a3b8); }
.lever-class-bar-fill.wc { background: linear-gradient(90deg, #a87a3e, #c89a5e); }
.lever-class-bar-fill.strategic { background: linear-gradient(90deg, #5e3577, #7e5599); }
.lever-class-bar-volume {
  text-align: right;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--navy);
  font-weight: 600;
}
/* Hotfix2 H5 (Sven 06.05.): rechte Spalte zeigt Anzahl Findings (Bar = Volumen) */
.lever-class-bar-count {
  text-align: right;
  font-size: 11px;
  color: var(--slate);
  font-weight: 500;
}

/* Inbox 029-uebersicht-polish-pass H19 (Sven 06.05.): Severity-Pille zurueck
   in der Header-Row neben F-ID + Tier. Banner-Style aus Hotfix2 H9
   .dh-sev-secondary entfernt. Pille kompakt, Step-Up/Down inline.
   .sev-pill-inline = Header-Row-Variante (kleiner als globaler .sev-pill). */
.dh-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sev-pill-inline {
  font-size: 10.5px;
  padding: 2px 8px;
  height: 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.sev-pill-inline .sev-step {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 10px;
  padding: 0 2px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
}
.sev-pill-inline .sev-step:hover { opacity: 1; }
/* Override-Hinweis nur bei hasOverride sichtbar — kompakter als Banner */
.dh-sev-override-hint {
  margin-top: 4px;
  font-size: 10px;
  color: var(--slate);
}
.dh-sev-override-hint .sev-engine-pill {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
}

/* === Inbox 028-rollback-uebersicht-aufraeumen (06.05.) ========================== */

/* Phase 4: CFO-Summary als Hero-Banner */
.cfo-summary-hero-banner {
  background: var(--off-white, #faf8f3);
  border: 1px solid #e6e3da;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cfo-summary-hero-banner .cfo-summary-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.cfo-summary-hero-banner h3 {
  font-size: 12px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0;
}
.cfo-summary-hero-banner .cfo-summary-hero-text {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
}
.cfo-summary-hero-banner .cfo-summary-hero-text em {
  font-size: 13px; color: var(--slate); font-weight: 400;
}
.cfo-summary-hero-banner .cfo-summary-meta {
  font-size: 10px; color: var(--slate);
  font-style: italic; margin-top: 8px;
}

/* Phase 3: Hero-Tiles (4 in einer Reihe, gross) */
.kpi-grid-hero { gap: 12px; margin-bottom: 16px; }
.kpi-tile-row-hero { grid-template-columns: repeat(4, 1fr) !important; }
.kpi-tile-hero {
  padding: 14px 18px !important;
  min-height: 90px;
}
.kpi-tile-hero .kpi-tile-label {
  font-size: 11px; margin-bottom: 6px;
}
.kpi-tile-hero .kpi-tile-value {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.kpi-tile-hero .kpi-tile-sub { font-size: 11px; }

/* Phase 3: Sekundaere Tiles (klein) */
.kpi-tile-row-secondary {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px;
  margin-top: 4px;
}
.kpi-tile-secondary {
  padding: 8px 12px !important;
  min-height: 56px;
  background: #faf8f3;
}
.kpi-tile-secondary .kpi-tile-label { font-size: 9px; }
.kpi-tile-secondary .kpi-tile-value { font-size: 15px; }
.kpi-tile-secondary .kpi-tile-sub { font-size: 9px; }

@media (max-width: 1100px) {
  .kpi-tile-row-hero,
  .kpi-tile-row-secondary { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .kpi-tile-row-hero,
  .kpi-tile-row-secondary { grid-template-columns: 1fr !important; }
}

/* Phase 5: Pipeline-Outcome-Strip */
.pipeline-outcome-strip {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 16px 0;
}
.pipeline-outcome-strip h3 {
  font-size: 12px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.pipeline-outcome-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pipeline-outcome-col {
  display: block;
  padding: 12px 14px;
  background: #faf8f3;
  border: 1px solid #e6e3da;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.1s, border-color 0.1s;
}
.pipeline-outcome-col[data-outcome-bucket="in_bearbeitung"] { border-left-color: #d4af37; }
.pipeline-outcome-col[data-outcome-bucket="realisiert"] { border-left-color: #7d9b75; }
.pipeline-outcome-col[data-outcome-bucket="strategische_anpassung"] { border-left-color: #5e3577; }
.pipeline-outcome-col[data-outcome-bucket="geprueft_plausibel"] { border-left-color: #6b7e8e; }
.pipeline-outcome-col:hover { background: #fffbef; border-color: #d4af37; }
/* Inbox 029 T4 (Sven 06.05.): Aktiv-State wenn Outcome-Bucket-Filter im
   analyst-View aktiv ist (back-link zur Quelle). */
.pipeline-outcome-col.active { background: #fff7e0; border-color: #d4af37; box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.18); }
.pipeline-outcome-label {
  font-size: 10px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pipeline-outcome-count {
  font-size: 22px; font-weight: 700;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--navy);
}
.pipeline-outcome-volume {
  font-size: 11px; color: var(--slate);
  margin-top: 4px;
  font-family: 'SF Mono', Consolas, monospace;
}

@media (max-width: 1100px) {
  .pipeline-outcome-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pipeline-outcome-cols { grid-template-columns: 1fr; }
}

/* Phase 6: Top-3-Cases-Liste */
.top-cases-list {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 16px 0;
}
.top-cases-list h3 {
  font-size: 12px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.top-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) {
  .top-cases-grid { grid-template-columns: 1fr; }
}
.top-case-card {
  display: block;
  padding: 12px 14px;
  background: #faf8f3;
  border: 1px solid #e6e3da;
  border-radius: 4px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.1s, background 0.1s;
}
.top-case-card:hover {
  border-color: #d4af37;
  background: #fffbef;
}
.top-case-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.top-case-title {
  font-size: 13px; font-weight: 600;
  color: var(--navy);
  flex: 1;
  line-height: 1.3;
}
.top-case-volume {
  font-size: 14px; font-weight: 700;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--rust, #c84e1f);
  white-space: nowrap;
}
.top-case-vendor {
  font-size: 11px; color: var(--slate);
  margin-bottom: 6px;
}
.top-case-vendor code {
  font-size: 10px;
  background: #f0eee8;
  padding: 1px 4px;
  border-radius: 2px;
}
.top-case-reason {
  font-size: 11px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 8px;
}
.top-case-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0eee8;
}
.top-case-status {
  font-size: 10px; flex-shrink: 0;
}
.top-case-next-step {
  font-size: 10px; color: var(--slate);
  font-style: italic;
  flex: 1;
  text-align: right;
  line-height: 1.3;
}
.top-cases-all {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--rust, #c84e1f);
  text-decoration: none;
}
.top-cases-all:hover { text-decoration: underline; }

/* ============================================================================
   Inbox 028b-restore-next-best-action (Welle-2 Werkbank-Restore 1 von 3)
   Next-Best-Action-Block im Detail-Pane:
   - Position: zwischen Detail-Hero und LLM-Anomaly-Description
   - Sandfarbenes Off-White-Background (analog CFO-Summary-Hero-Banner)
   - Headline „Was als naechstes" (Libre Baskerville)
   - Vorschlag-Text Inter mit line-height 1.55
   - 1-2 Primary-Action-Buttons (FIP-Brand-Gold, Pill-Style mit Icon)
   - Secondary-Action als Text-Link unter den Buttons
   ============================================================================ */

.next-best-action-block {
  background: #faf6ec;  /* sandfarbenes Off-White, etwas waermer als --off-white */
  border: 1px solid #e8dcb8;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(212, 168, 67, 0.08);
}
.nba-headline {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.nba-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 12px;
}
.nba-text em {
  color: var(--slate);
  font-style: italic;
}
.nba-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nba-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 18px;  /* Pill-Style */
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s, transform 0.08s;
}
.nba-button.primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 1px 3px rgba(212, 168, 67, 0.25);
}
.nba-button.primary:hover {
  background: var(--gold-light, #e2bb5f);
  box-shadow: 0 2px 6px rgba(212, 168, 67, 0.35);
  transform: translateY(-1px);
}
.nba-button-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.nba-secondary-link {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--rust, #c84e1f);
  text-decoration: none;
  cursor: pointer;
}
.nba-secondary-link:hover { text-decoration: underline; }
.nba-stage-recommendation {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--slate);
  font-style: italic;
}

/* Toast-Notification fuer Buttons (kommt-in-028c/d Hinweis) */
.nba-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.25);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.nba-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ============================================================================
   Inbox 029-uebersicht-polish-pass — Sub-Commit 4: Spacing/Typo/Card-Polish
   (Sven 06.05. — "jugendlich" raus, CFO-Tool-Premium-Feeling rein)
   Override-Block am Ende um additive zu wirken ohne bestehende Rules zu
   refactorn. Aenderungen pro Section dokumentiert.
   ============================================================================ */

/* === Detail-Pane einheitliches Padding ============================== */
.detail-pane {
  /* Vorher: 18px 22px (asymmetrisch). Nachher: 20px 22px (top mehr Luft). */
  padding: 20px 22px;
}

/* === Detail-Hero etwas mehr Atemluft ================================ */
.detail-hero {
  /* Vorher margin-bottom 14px. Nachher 18px fuer klarere Section-Trennung. */
  margin-bottom: 18px;
  padding-bottom: 16px;
}
.dh-id-row {
  /* Vorher: gap 8px, jetzt 10px (siehe H19) */
  margin-bottom: 8px;
}
.dh-tags {
  /* Vorher gap 5px, jetzt 6px fuer ruhigeres Spacing */
  gap: 6px;
  margin-bottom: 10px;
}
.dh-title {
  /* Vorher line-height 1.3 → 1.35 fuer ruhigere Lesbarkeit */
  line-height: 1.35;
  margin-bottom: 6px;
}
.dh-meta {
  /* Body-Text 1.55 statt 1.0 default */
  line-height: 1.55;
}
.dh-vol-row {
  margin-top: 10px;
}

/* === Section-Body: Body-Text Line-Height konsistent =============== */
.ev-block,
.ev-content,
.dh-meta,
.detail-empty-sub {
  line-height: 1.55;
}
.ev-block {
  /* Vorher padding 10px 12px → 12px 14px fuer ruhigeren Inhalt */
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ev-content {
  /* Body-Text-Standard fuer Detail-Pane: 12px Inter mit 1.55 line-height */
  font-size: 12px;
  color: var(--navy);
}

/* === Kanban-Cards: Card-Padding + Hover ============================= */
.kc {
  /* Vorher 8px 10px → 12px 14px (Inbox-Spec: 12-16px nach FIP-Brand). */
  padding: 12px 14px;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.kc:hover {
  /* Vorher: nur border-color. Nachher: + subtle box-shadow */
  border-color: var(--gold-border, var(--gold));
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.12);
}
.kc-row1 {
  /* Mehr vertikales Atmen vor Title */
  margin-bottom: 6px;
  gap: 6px;
}
.kc-title {
  /* Vorher line-height 1.35 → 1.4 */
  line-height: 1.4;
  margin-bottom: 5px;
}
.kc-foot {
  margin-top: 7px;
  padding-top: 7px;
}

/* === Cursor-Pointer auf alle interaktiven Elemente ================== */
.nav-item,
.filter-pill,
.lever-class-bar-row,
.kpi-tile,
.pipeline-outcome-col,
.top-case-card,
.view-btn,
.deleg-row,
.battle-card,
.battle-cta,
.action-pill,
.top-cases-all,
.kc,
.dh-tier-pill,
.sev-pill,
.sev-step,
.kc-stage-btn {
  cursor: pointer;
}
/* Status-Pills, Severity-Pills passive (in Listen-Render): default */
.status-pill,
.dh-meta code {
  cursor: default;
}

/* === Filter-Pill Hover-Feedback ===================================== */
.filter-pill:not(.active):hover {
  border-color: var(--gold);
  color: var(--navy);
}

/* === Nav-Item Hover-Feedback (nicht-aktive nav-items) =============== */
.sidebar .nav-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
}

/* === Section-Title (sec-title) konsistente Body-Spacing ============= */
.sec-title + * {
  margin-top: 0;  /* erstes Element nach Header bekommt keinen extra-margin */
}

/* ============================================================================
   Inbox 029e-admin-engagement-link: FIP-Reviewer-Modus-Banner
   Sichtbarer Hinweis dass Cockpit-Session via Admin-Open-as-Reviewer-Path
   geladen wurde (Cookie hat reviewer_admin_id-Marker).
   ============================================================================ */
.reviewer-mode-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--navy);
  flex-wrap: wrap;
}
.reviewer-mode-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.reviewer-mode-detail {
  flex: 1;
  font-size: 11.5px;
  color: var(--slate);
  line-height: 1.5;
}
.reviewer-mode-detail code {
  background: rgba(212, 168, 67, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--navy);
}

/* ============================================================================
   Inbox 029i Phase A — Topbar-Polish
   - Logout-Button (Customer-Mode, Pendant zum Admin-Logout)
   - Auswertung-Primary-Link (visuell hervorgehoben)
   - Trust-Strip-Link (Trust Center im Footer)
   ============================================================================ */

.nav-logout-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-logout-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-logout-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
}

.nav-link-primary {
  color: white !important;
  font-weight: 600;
  position: relative;
}

.nav-link-primary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.7;
}

.nav-link-primary.active::after {
  opacity: 1;
}

.trust-strip-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(26, 39, 68, 0.25);
  transition: border-color 0.15s, color 0.15s;
}

.trust-strip-link:hover {
  color: var(--navy-mid);
  border-color: var(--navy);
}

/* ============================================================================
   Inbox 029i Phase B / 029j Phase C / 029k Phase A+B+C — Filter-Bar finale Form
   Evolution:
     029i: Caption-above-Pills, groessere Pills (7x14), Search-Pill, Distribution-Rows
     029j: Distribution-Rows entfernt (redundant zu Pill-Counts)
     029k: Caption-INLINE (eine Zeile pro Cluster), Pill-Padding 5x11 (kompakter),
           Search-Pill komplett entfernt (Markup + CSS + JS).
   .filter-pill bleibt JS-kompatibel; .filter-bar-v2 triggert Inline-Layout.
   ============================================================================ */

.filter-bar.filter-bar-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px -4px rgba(26, 39, 68, 0.08);
}

/* 029k Phase A: Caption-inline-Layout — eine Zeile pro Cluster.
   Caption links mit fester min-width, Pill-Group rechts mit flex-wrap. */
.filter-bar-v2 .fb-cluster.fb-cluster-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.filter-bar-v2 .fb-caption-inline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  min-width: 90px;
  flex-shrink: 0;
}

.filter-bar-v2 .fb-pill-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* 029k Phase B: Pill-Padding kompakter (5x11 statt 7x14) */
.filter-bar-v2 .filter-pill {
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--ink, var(--navy));
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.filter-bar-v2 .filter-pill:hover {
  background: var(--off-white);
  border-color: transparent;
}

.filter-bar-v2 .filter-pill.active {
  background: var(--navy);
  color: white;
}

.filter-bar-v2 .fb-pill-num {
  color: var(--slate);
  font-weight: 500;
  font-size: 11px;
  margin-left: 2px;
}

.filter-bar-v2 .filter-pill.active .fb-pill-num {
  color: rgba(255, 255, 255, 0.75);
}

.filter-bar-v2 .fp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* 029k Phase C: Search-Pill komplett entfernt — Sven-Direktive 07.05.
   "Findings durchsuchen-Feld kann komplett geloescht werden". CSS-Klassen
   .fb-search, .fb-search-icon, .fb-search-input, .fb-search:focus-within
   ersatzlos raus. JS-Filter-Pipeline wieder ohne searchFilter. */

/* ============================================================================
   Cleanup-Inbox-4 A.1+A.2: Sticky-Footer-Pattern (FS-1 Followup)
   ============================================================================
   Sven-Browser-Test 09.05. abends: Trust-Strip-Footer kollabiert nicht-am-
   unteren-Rand und vertikal zu klein bei wenig Page-Content.

   Pre-Forensik bestaetigt H1: Sticky-Footer-Pattern fehlt komplett — body
   ist nicht flex-column, main hat keinen flex-grow, Trust-Strip hat keine
   min-height.

   Pattern:
   - body: display:flex + flex-direction:column + min-height:100vh
   - body > main / body > .app: flex:1 0 auto (schiebt Footer nach unten)
   - .trust-strip: flex-shrink:0 (schrumpft nicht) + min-height (Akten-DNA
     dezent: 48px reicht fuer 14px-Padding + 11px-Font + 6px-Atmen)

   Out-of-flow-Elemente (.nav-strip position:fixed, .fip-sidebar position:
   fixed) sind aus dem Flex-Stack ausgeschlossen — kein Konflikt.

   Existing margin-top:40px auf .trust-strip bleibt erhalten (visuelle
   Breathing-Room oberhalb des Footers, identisch lange + kurze Pages).

   Cleanup-Inbox-3 D.1 hatte Footer-Inner padding-left fuer has-fip-sidebar
   gesetzt — das Horizontal-Layout. Hier nun das vertikale Layout.
   ============================================================================ */
body {
  display: flex;
  flex-direction: column;
  /* min-height:100vh + padding-top:76px wie zuvor (Navbar-Reservation) */
}

body > main,
body > .app,
body > .fip-page-shell {
  flex: 1 0 auto;
}

.trust-strip {
  flex-shrink: 0;
  min-height: 48px;
  box-sizing: border-box;
}

/* ============================================================================
   Phase 2-D Kombi C.1 (FT-1 Footer-Re-Design): Sticky-Footer-Pattern
   verschaerfen.
   Sven-Browser-Befund (post-Cleanup-Inbox-4): Footer schwebt mittig statt
   unten bei Empty-Pages oder /portal/cockpit nach langem Scroll.

   Diagnose: cockpit-body Override `.app { min-height: 100vh }` (Zeile 2739)
   konkurriert mit dem Sticky-Pattern. main-Element wird unsichtbar (cockpit
   nutzt kein <main> sondern .app als block-content-Wrapper). Plus:
   _editorial_footer.html-Include war im block-content von cockpit.html →
   inside .app rendered, daher kein direct Body-Sibling.

   Fix: Doppel-Selector damit auch fip-editorial-footer als Body-direct-Sibling
   gepicked wird PLUS .app erhaelt min-height:100vh ABER nicht expressly
   `flex:1 0 auto` (kein Konflikt).
   ============================================================================ */
.fip-editorial-footer {
  flex-shrink: 0;
}

/* Cockpit-Body: explizit als flex-container fuer .app-Wrapper damit body-
   Sticky-Pattern auch dort greift. Vorhandene min-height:100vh-Override
   bleibt — flex:1 0 auto auf .app wuerde Konflikt erzeugen, also nur
   sicherstellen dass .nav-strip + .trust-strip + main/footer als
   body-children gerendert werden. */
body.cockpit-body {
  /* erbt body display:flex flex-direction:column */
}

/* Defensive: bei Pages die kein <main>-Tag haben (z.B. Engagement-Vollformat-
   Templates), das erste div-child-of-body mit content-class als flex-grower
   zulassen. */
body > .evidence-page,
body > .akte {
  flex: 1 0 auto;
}

