/* ==========================================================================
   Holmo UI v4 – Oberflächenschicht in der Designsprache von zielinski-software.de
   Lädt nach holmo-brand-v3.css. Ändert nur Darstellung, keine Logik.

   Gleich wie Zielinski:  Archivo-Headlines eng gesetzt · Mono-Labels in Versalien
   mit Punkt oder Linie · flache Flächen mit Haarlinien statt Schatten ·
   Haarlinien-Raster für Kennzahlen · Radius 12 (Knöpfe) / 18 (Flächen) ·
   56-px-Tippflächen · Reiter-Stil für Filter · gestrichelte Hinweisboxen ·
   ruhige Bewegung als Antwort auf eine Aktion.
   Holmo-eigen bleiben:  Tannengrün, Petrol als Bedien-Akzent, Kupfer nur für
   Scannen und Stempeln, das Leiter-H als Motiv (Soll/Ist, Ladeanzeige).
   ========================================================================== */

:root {
  --r: 12px;
  --r-l: 18px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 140ms;
  --t-mid: 220ms;
  --f-d: Archivo, "Arial Narrow", Arial, sans-serif;
  --f-t: "IBM Plex Sans", system-ui, sans-serif;
  --f-m: "IBM Plex Mono", ui-monospace, monospace;
  --line-strong: #C3CBC2;
  --accent-soft: rgba(31, 95, 99, .08);
  --copper-soft: rgba(184, 115, 58, .10);
  --sheet-shadow: 0 24px 60px -20px rgba(28, 49, 40, .45);
  --rung: var(--holmo-copper);
  --ok: var(--holmo-olive);
  --warn: #9A5A1E;
  --bad: var(--holmo-oxblood);
  --tint-ok: #E8F1DF;
  --tint-warn: #F7E9D8;
  --tint-bad: #F8E5E7;
  --tint-info: #E6EEF1;

  /* Symbole als Masken (CSP: img-src data: ist erlaubt) */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3Z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.01'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
  --i-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h8'/%3E%3Cpath d='M10 12h10M17 8l4 4-4 4'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2.5 8.5 4.5v10L12 21.5 3.5 17V7L12 2.5Z'/%3E%3Cpath d='M3.5 7 12 11.5 20.5 7M12 11.5v10'/%3E%3C/svg%3E");
  --i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v11H2zM14 10h4l4 4v3h-8z'/%3E%3Ccircle cx='6.5' cy='18' r='2' fill='white'/%3E%3Ccircle cx='17.5' cy='18' r='2' fill='white'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5.5-8 12-8 12S4 15.5 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --i-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5a4 4 0 0 0 5 5L21 13l-8 8-2-2 6.5-6.5a4 4 0 0 1-5-5L10 5.5 7.5 3 3 7.5 5.5 10l2-2'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5L7 4.5Z' fill='black'/%3E%3C/svg%3E");
  --i-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4.5' width='4' height='15' rx='1' fill='black'/%3E%3Crect x='14' y='4.5' width='4' height='15' rx='1' fill='black'/%3E%3C/svg%3E");
  --i-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='5.5' width='13' height='13' rx='2' fill='black'/%3E%3C/svg%3E");
  --i-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v13H8.5L4 21V4Z'/%3E%3Cpath d='M8 9h8M8 13h5' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.5 3.5-7 8-7s8 2.5 8 7' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-hammer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 4 6 6-3 3-6-6 3-3ZM11 7 4 14l-2 4 4-2 7-7'/%3E%3Cpath d='m13 13 7 7'/%3E%3C/svg%3E");
  --i-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M8 2.5v5M16 2.5v5M3.5 10.5h17'/%3E%3C/svg%3E");
  --i-history: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-wifi-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3l18 18M8.5 16.5a5 5 0 0 1 7 0M5 13a10 10 0 0 1 5-2.7M14 10.3A10 10 0 0 1 19 13M2 9.5a15 15 0 0 1 4-2.6M10.5 5.6A15 15 0 0 1 22 9.5M12 20h.01'/%3E%3C/svg%3E");
  --i-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9.2 9a3 3 0 1 1 4.3 2.7c-.9.5-1.5 1.2-1.5 2.3M12 17.5v.01'/%3E%3C/svg%3E");
  --img-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --img-alert-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v9M12 19v.01'/%3E%3C/svg%3E");
  --i-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
  --line-strong: #3A4D43;
  --accent-soft: rgba(109, 181, 177, .14);
  --copper-soft: rgba(208, 138, 82, .14);
  --warn: #E7B07A;
  --tint-ok: #233420;
  --tint-warn: #3A2C1D;
  --tint-bad: #3A1F25;
  --tint-info: #1C2C33;
  --sheet-shadow: 0 24px 60px #000a;
}

.ico {
  display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.mono-label {
  font: 500 12px/1.3 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------------------------------
   1 · Grundlagen: Typo, Fokus, Knöpfe, Felder
   -------------------------------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, .panel-title { font-family: var(--f-d); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
textarea { font: inherit; }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--holmo-petrol); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--holmo-petrol); outline-offset: 1px; border-color: transparent !important; box-shadow: none !important; }

button, .primary, .secondary, .row-button, .icon-btn, .select, .filter-pill,
.field input, .field select, .field textarea, .search input { border-radius: var(--r) !important; }

button, .primary, .secondary, .row-button, .filter-pill, .mobile-nav a, .mobile-nav summary, .chief-summary button {
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform .2s ease, box-shadow var(--t-fast) ease;
}
button:not(:disabled):active, .primary:not(:disabled):active, .secondary:not(:disabled):active { transform: scale(.98); }
.primary { font-weight: 600; }
.primary:not(:disabled):hover { transform: translateY(-1px); filter: none !important; }
.secondary, .row-button, .icon-btn { background: transparent !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; font-weight: 600; }
.secondary:hover, .row-button:hover, .icon-btn:hover { border-color: var(--ink) !important; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field select, .field textarea, .search input, .select { border: 1px solid var(--line-strong) !important; background: var(--white) !important; }
.field-note { color: var(--muted); }

/* Links mit Pfeil wie „Über mich →“ */
#app .quiet { color: var(--holmo-petrol); text-decoration: none; font-weight: 600; border: 0 !important; background: transparent !important; transition: transform .2s ease; }
#app .quiet:hover { transform: translateX(3px); }

/* Ansichtswechsel: kurz einblenden */
#app.view-enter { animation: view-in 220ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   2 · Kopfzeile und Navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: color-mix(in srgb, var(--white) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line) !important;
}
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.crumb .crumb-root { color: var(--muted); }
.crumb .crumb-sep { color: var(--line-strong); }
.crumb b { font-weight: 600; }
.topbar-mark { display: none; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.theme-btn { display: inline-grid !important; place-items: center; width: 48px !important; min-width: 48px; height: 48px; min-height: 48px !important; padding: 0 !important; }
.theme-btn svg { width: 20px; height: 20px; }

.sync-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; font: 500 12px var(--f-m); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sync-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync-label[data-state="saving"]::before { background: var(--holmo-steel); animation: pulse-dot 900ms ease-in-out infinite; }
.sync-label[data-state="pending"]::before { background: var(--warn); }
.sync-label[data-state="offline"]::before, .sync-label[data-state="error"]::before { background: var(--bad); }
.sync-label[data-state="pending"], .sync-label[data-state="offline"], .sync-label[data-state="error"] { color: var(--ink) !important; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.avatar { background: transparent !important; border: 1.5px solid var(--line-strong); color: var(--holmo-petrol) !important; font-family: var(--f-d); font-weight: 800; letter-spacing: -.02em; }

.nav a, .nav-group > summary { transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }

@media (max-width: 700px) {
  .topbar { height: 64px !important; }
  .topbar-mark { display: block; }
  .crumb { gap: 10px; font-size: 17px !important; }
  .crumb .crumb-root, .crumb .crumb-sep { display: none; }
  .crumb b { font-family: var(--f-d); font-weight: 800; letter-spacing: -.02em; }
  .theme-btn { display: none !important; }
  .topbar .sync-label { display: inline-flex !important; font-size: 0 !important; width: 34px; height: 34px; justify-content: center; }
  .topbar .sync-label::before { width: 10px; height: 10px; }
  .topbar .sync-label[data-state="pending"], .topbar .sync-label[data-state="offline"] { width: auto; font-size: 11px !important; }
  .topbar .header-logout { width: 48px; min-width: 48px; min-height: 48px !important; height: 48px; padding: 0 !important; font-size: 0 !important; border-color: transparent !important; display: grid; place-items: center; color: var(--muted) !important; }
  .topbar .header-logout::after { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-logout) center / contain no-repeat; mask: var(--i-logout) center / contain no-repeat; }

  .mobile-nav { background: color-mix(in srgb, var(--white) 94%, transparent) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line) !important; box-shadow: none !important; }
  .mobile-nav > a, .mobile-stock-menu > summary { position: relative; border-radius: 12px; }
  .mobile-nav > a.active, .mobile-stock-menu > summary.active, .mobile-stock-menu[open] > summary { background: transparent !important; color: var(--holmo-petrol) !important; }
  .mobile-nav > a.active::before, .mobile-stock-menu > summary.active::before {
    content: ''; position: absolute; top: 2px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: var(--holmo-petrol);
    transform-origin: left center; animation: rung-in 240ms var(--ease-out) both;
  }
  .mobile-nav .scan-tab { border-radius: 16px !important; box-shadow: 0 0 0 5px var(--white) !important; }
  .mobile-stock-pop { animation: sheet-up 220ms var(--ease-out) both; padding: 6px 16px 10px !important; border-radius: 18px !important; border: 1px solid var(--line) !important; box-shadow: var(--sheet-shadow) !important; }
  @keyframes sheet-up { from { opacity: 0; transform: translateY(10px); } }
  .mobile-stock-pop a { gap: 14px; border-radius: 0 !important; border-bottom: 1px solid var(--line); font-size: 17px !important; }
  .mobile-stock-pop a:last-child { border-bottom: 0; }
  .mobile-stock-pop a::before { content: ''; width: 22px; height: 22px; flex: none; background: var(--holmo-petrol); -webkit-mask: var(--i, var(--i-chevron)) center / contain no-repeat; mask: var(--i, var(--i-chevron)) center / contain no-repeat; }
  .mobile-stock-pop a[data-view="tools"] { --i: var(--i-hammer); }
  .mobile-stock-pop a[data-view="materials"] { --i: var(--i-box); }
  .mobile-stock-pop a[data-view="fleet"] { --i: var(--i-truck); }
  .mobile-stock-pop a[data-view="sites"] { --i: var(--i-pin); }
  .mobile-stock-pop a[data-view="messages"] { --i: var(--i-message); }
  .mobile-stock-pop a[data-view="profile"] { --i: var(--i-user); }
  .mobile-stock-pop a[data-view="history"] { --i: var(--i-history); }
}
.nav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--holmo-oxblood); color: #fff; font: 600 11.5px var(--f-m); margin-left: auto; }
.mobile-nav .nav-badge { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--holmo-oxblood); color: #fff; font: 600 10.5px/18px var(--f-m); text-align: center; box-shadow: 0 0 0 2px var(--white); }

/* --------------------------------------------------------------------------
   3 · Ladeanzeige: das Leiter-H klettert
   -------------------------------------------------------------------------- */
.boot-loader { display: grid; justify-items: center; gap: 18px; color: #C9D6CE; font: 500 12px var(--f-m); letter-spacing: .08em; text-transform: uppercase; }
.boot-loader svg { width: 64px; height: 64px; }
/* Ladeanzeige: drei Kupfer-Sprossen bauen sich von unten nach oben auf und in derselben Reihenfolge wieder ab */
.boot-loader .rung { transform-box: fill-box; transform-origin: center; transform: scaleX(0); opacity: 0; animation: 2.6s cubic-bezier(.3,.7,.3,1) infinite; }
.boot-loader .rung.r0 { animation-name: leiter-0; }
.boot-loader .rung.r1 { animation-name: leiter-1; }
.boot-loader .rung.r2 { animation-name: leiter-2; }
@keyframes leiter-0 { 0%, 6% { transform: scaleX(0); opacity: 0; } 14%, 56% { transform: scaleX(1); opacity: 1; } 64%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes leiter-1 { 0%, 18% { transform: scaleX(0); opacity: 0; } 26%, 68% { transform: scaleX(1); opacity: 1; } 76%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes leiter-2 { 0%, 30% { transform: scaleX(0); opacity: 0; } 38%, 80% { transform: scaleX(1); opacity: 1; } 88%, 100% { transform: scaleX(0); opacity: 0; } }

/* --------------------------------------------------------------------------
   4 · Anmeldung, Passwort, Zwei-Faktor
   -------------------------------------------------------------------------- */
body.auth-screen { background: var(--holmo-forest); }
body.auth-screen .content { max-width: none; background: linear-gradient(180deg, #1C3128 0%, #172B22 60%, #12241C 100%); position: relative; isolation: isolate; }
body.auth-screen .content::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(90deg, transparent 0 46px, #ffffff07 46px 48px, transparent 48px), linear-gradient(0deg, transparent 0 46px, #ffffff06 46px 48px, transparent 48px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
}
body.auth-screen .content::after { content: 'Holmo · Ein Produkt von Zielinski Software & Automatisierung'; position: absolute; left: 16px; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; color: #9FB5A8; font: 500 11px var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
body.auth-screen .login-panel { background: var(--white); border: 1px solid #ffffff1a !important; border-radius: 22px !important; box-shadow: 0 30px 60px -20px #0009; padding: 40px 36px 34px !important; margin-bottom: 48px !important; animation: panel-in 420ms var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body.auth-screen .login-panel .login-mark { width: 140px; margin: 0 0 30px; }
body.auth-screen .login-panel .eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px var(--f-m); letter-spacing: .08em; }
body.auth-screen .login-panel .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--holmo-copper); }
body.auth-screen .login-panel h1 { font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 10px; }
body.auth-screen .login-panel > p { margin: 0 0 24px; font-size: 16.5px; }
body.auth-screen .login-panel [role="alert"]:not(:empty) { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--bad); background: var(--tint-bad); color: var(--bad); font-size: 14px; line-height: 1.45; }
.login-password { position: relative; }
.login-password .field { flex: 1; }
.login-password .field input { padding-right: 112px; }
.login-password button[data-show-password] { position: absolute; right: 6px; bottom: 6px; min-height: 44px !important; min-width: 0 !important; padding: 0 14px; border: 0 !important; background: transparent !important; color: var(--holmo-petrol) !important; font-size: 14px; font-weight: 600; }
body.auth-screen .login-panel form .primary { margin-top: 8px; min-height: 56px; font-size: 16px; }
body.auth-screen .login-panel .quiet { margin-top: 10px; width: 100%; justify-content: center; }
html[data-theme="dark"] body.auth-screen .login-panel { background: #14231C; }
@media (max-width: 700px) {
  body.auth-screen .content { padding: 22px 14px 70px !important; align-content: start; }
  body.auth-screen .login-panel { margin-top: 5vh !important; padding: 30px 22px 26px !important; }
}

/* --------------------------------------------------------------------------
   5 · Seitenkopf wie auf zielinski-software.de: Punkt-Label, enge Headline
   -------------------------------------------------------------------------- */
#app .page-head { margin-bottom: 28px; align-items: flex-end; }
#app .page-head .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 500 12.5px/1.2 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#app .page-head .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--holmo-petrol); flex: none; }
#app .page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
#app .page-head p { margin-top: 12px; max-width: 52ch; font-size: 16.5px; }
#app .page-head .head-actions { align-items: center; }
@media (max-width: 700px) {
  #app .page-head .head-actions [data-action="scan"] { display: none; }
  #app .page-head .head-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  #app .page-head .head-actions > :only-child { grid-column: 1 / -1; justify-self: start; padding: 0 20px; }
}

/* Abschnitts-Label mit Linie (wie .kopf .label) */
.label-line { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--holmo-petrol); }
.label-line::before { content: ''; width: 28px; height: 1px; background: currentColor; transform-origin: left center; animation: rung-in .9s var(--ease-out) both; }

/* --------------------------------------------------------------------------
   6 · Flächen: flach, Haarlinien, Radius 18 – keine Schatten
   -------------------------------------------------------------------------- */
#app .panel, #app .stat { box-shadow: none !important; border-radius: var(--r-l) !important; border: 1px solid var(--line) !important; }
#app .panel-head { border-bottom: 1px solid var(--line) !important; padding: 18px 20px; }
#app .panel-title, #app .panel-head > strong, #app .panel-head > div > strong { font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; font-size: 17px; }
#app .panel-sub { font-size: 13.5px; }

/* Kennzahlen als Haarlinien-Raster (wie .fakten / .leist) */
#app .stats, #app .chief-summary { gap: 1px !important; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; margin-bottom: 18px; }
#app .stats .stat, #app .chief-summary button { border: 0 !important; border-radius: 0 !important; background: var(--white) !important; box-shadow: none !important; }
#app .stats .stat { padding: 20px 22px; }
#app .stat-top { font: 500 12px/1.3 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
#app .stat-icon { display: none !important; }
#app .stat-value { font-family: var(--f-d); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: -.04em; margin-top: 14px; font-variant-numeric: tabular-nums; }
#app .stat-note { font-size: 13.5px; margin-top: 8px; }
#app .stat[role=button]:hover, #app .chief-summary button:hover { background: var(--paper) !important; }

#app .chief-summary button { position: relative; display: grid !important; align-content: start; gap: 8px !important; padding: 18px 20px !important; min-height: 0; text-align: left; }
#app .chief-summary .tile-label { font: 500 12px/1.3 var(--f-m) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-right: 22px; }
#app .chief-summary strong { font-family: var(--f-d); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem) !important; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#app .chief-summary .tile-sub { font-size: 13.5px !important; font-weight: 500 !important; color: var(--muted); }
#app .chief-summary .tile-go { position: absolute; top: 16px; right: 18px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
#app .chief-summary button:hover .tile-go { transform: translateX(3px); color: var(--holmo-petrol); }
#app .chief-summary button[data-tone="bad"] strong, #app .chief-summary button[data-tone="bad"] .tile-sub { color: var(--bad); }
#app .chief-summary button[data-zero] strong { color: var(--muted); }
@media (max-width: 700px) {
  #app .chief-summary button { padding: 14px 12px !important; }
  #app .chief-summary .tile-label { font-size: 10.5px !important; letter-spacing: .05em; padding-right: 0; min-height: 2.6em; }
  #app .chief-summary .tile-go { display: none; }
  #app .chief-summary strong { font-size: 2rem !important; }
  #app .stats .stat { padding: 16px; }
}

/* --------------------------------------------------------------------------
   7 · Stempeluhr
   -------------------------------------------------------------------------- */
#app .clock-card { margin-bottom: 18px !important; padding: 22px !important; }
.clock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.clock-top > div:first-child { min-width: 0; }
.clock-title { display: block; font: 500 12.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#app .clock-card .time-status { display: inline-flex; align-items: center; gap: 9px; margin: 10px 0 0; font-family: var(--f-d); font-size: clamp(1.4rem, 3vw, 1.8rem) !important; font-weight: 800; letter-spacing: -.025em; color: var(--muted); }
#app .clock-card[data-status="working"] .time-status { color: var(--ink); }
#app .clock-card[data-status="paused"] .time-status { color: var(--warn); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); position: relative; flex: none; }
.clock-card[data-status="working"] .status-dot { background: var(--ok); }
.clock-card[data-status="paused"] .status-dot { background: var(--holmo-copper); }
.clock-card[data-status="working"] .status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: live-ring 2.2s ease-out infinite; }
@keyframes live-ring { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
#app .clock-card .live-clock { margin: 0 !important; text-align: right; gap: 2px !important; }
#app .clock-card .live-clock time { font-family: var(--f-d); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
#app .clock-card .clock-caption { font: 500 11px var(--f-m) !important; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.clock-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clock-facts div { display: grid; gap: 4px; padding: 12px 14px 12px 0; }
.clock-facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.clock-facts dt { font: 500 11.5px var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.clock-facts dd { margin: 0; font: 500 16px var(--f-m); font-variant-numeric: tabular-nums; }
#app .clock-actions { gap: 10px !important; margin: 0 0 10px !important; }
#app .clock-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 64px !important; font-size: 17px !important; font-weight: 700 !important; box-shadow: none !important; }
#app .clock-actions button .ico { width: 17px; height: 17px; }
#app .clock-actions button:disabled { background: transparent !important; color: var(--muted) !important; border: 1.5px dashed var(--line-strong) !important; opacity: 1 !important; filter: none !important; cursor: not-allowed; }
#app .clock-card .clock-offline { margin: 12px 0; color: var(--muted); }
@media (max-width: 700px) {
  #app .clock-card { padding: 18px 16px !important; }
  #app .clock-actions button { font-size: 15px !important; min-height: 68px !important; flex-direction: column; gap: 4px; }
  .clock-facts { grid-template-columns: 1fr 1fr; }
  .clock-facts div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .clock-facts div:nth-child(2) { padding-left: 0; border-left: 0; }
  .clock-facts dd { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   8 · Erste Schritte als Leiter (wie die Preis-Leiter auf zielinski-software.de)
   -------------------------------------------------------------------------- */
.setup { margin: 0 0 22px; }
.setup-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: end; margin-bottom: 16px; }
.setup-kopf .label-line, .setup-kopf h2, .setup-kopf p { grid-column: 1; }
.setup-kopf h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.setup-kopf p { margin: 0; color: var(--muted); }
.setup-kopf .setup-hide { grid-column: 2; grid-row: 1 / 4; align-self: end; min-height: 44px !important; padding: 0 14px; font-size: 14px; }
.leiter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.leiter > li { position: relative; display: grid; }
.leiter > li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -21px; width: 12px; height: 12px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.sprosse { display: grid; align-content: start; gap: 8px; width: 100%; text-align: left; padding: 20px 20px 18px; border-radius: var(--r-l) !important; border: 1px solid var(--line) !important; background: var(--white) !important; color: var(--ink); font: inherit; }
.sprosse .nr { font: 500 12px var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sprosse strong { font-family: var(--f-d); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.15; }
.sprosse > span:not(.nr):not(.go) { color: var(--muted); font-size: 14px; line-height: 1.4; }
.sprosse .go { margin-top: 4px; color: var(--holmo-petrol); font-weight: 600; font-size: 14px; }
.sprosse .go .pfeil { display: inline-block; transition: transform .2s ease; }
.sprosse:hover { border-color: var(--line-strong) !important; }
.sprosse:hover .pfeil { transform: translateX(3px); }
.leiter li.haupt .sprosse { border-color: var(--holmo-petrol) !important; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--white) !important; }
.leiter li.haupt .nr { color: var(--holmo-petrol); }
.leiter li.done .sprosse { border-style: dashed !important; background: transparent !important; cursor: default; }
.leiter li.done .sprosse strong, .leiter li.done .sprosse > span { color: var(--muted); }
.leiter li.done .nr::before { content: ''; width: 14px; height: 14px; background: var(--ok); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.leiter li.done .nr { color: var(--ok); }
@media (max-width: 1100px) { .leiter { grid-template-columns: 1fr 1fr; gap: 12px; } .leiter > li::after { display: none; } }
@media (max-width: 700px) { .leiter { grid-template-columns: 1fr; gap: 8px; } .setup-kopf { grid-template-columns: 1fr; } .setup-kopf .setup-hide { grid-column: 1; grid-row: auto; justify-self: start; } }

/* --------------------------------------------------------------------------
   9 · Soll/Ist-Sprossen, Fahrzeuge, Wartung
   -------------------------------------------------------------------------- */
.rung-meter { display: flex; gap: 4px; margin: 8px 0 6px; }
.rung-meter i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); transform-origin: left center; }
.rung-meter i.on { background: var(--ok); }
.rung-meter i.miss { background: transparent; box-shadow: inset 0 0 0 2px var(--bad); }
.rung-meter.animate i { animation: rung-in 360ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes rung-in { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

#app .fleet-alert { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; margin-bottom: 18px !important; padding: 16px 18px; border-radius: var(--r-l) !important; border: 1px solid var(--line) !important; background: var(--white) !important; box-shadow: inset 3px 0 0 var(--bad); }
#app .fleet-alert::before { content: ''; grid-row: 1 / 3; width: 24px; height: 24px; margin-top: 1px; background: var(--bad); -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat; }
#app .fleet-alert strong { color: var(--bad) !important; font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; font-size: 16.5px; }
#app .fleet-alert > div { margin-top: 8px !important; }
#app .fleet-alert button { min-height: 48px !important; font-family: var(--f-m); font-weight: 500; letter-spacing: .02em; }

#app .plate { position: relative; display: inline-flex; align-items: center; border: 2px solid #1F2A24 !important; border-radius: 7px; padding: 4px 12px 4px 34px !important; background: #FFFFFF; color: #111A15; font-weight: 600; letter-spacing: .06em; line-height: 1.3; overflow: hidden; }
#app .plate::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: #1F5F63; }
#app .plate::after { content: 'D'; position: absolute; left: 0; bottom: 3px; width: 22px; text-align: center; font: 700 11px/1 var(--f-t); color: #fff; letter-spacing: 0; }
#app .fleet-grid .panel-head .badge.gray { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font: 500 11px var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
#app .fleet-grid .panel-head .badge.gray .dot { display: none; }
#app .fleet-grid .panel-body > h3 { font-size: 21px; margin: 4px 0 2px; letter-spacing: -.025em; }
#app .fleet-grid .panel-body > p { margin: 2px 0; color: var(--muted); }
#app .fleet-contents > strong, #app .vehicle-materials > strong, #app .fleet-maintenance > strong, #app .required-head strong { font: 500 12px var(--f-m) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#app .required-head { align-items: center; }
#app .required-head > span { font: 500 13px var(--f-m); }
#app .required-row { display: grid !important; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px 10px; align-items: center; min-height: 64px; }
#app .required-icon { width: 26px !important; height: 26px !important; border-radius: 50% !important; font-size: 0 !important; display: grid !important; place-items: center; }
#app .required-icon::after { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
#app .required-row.present .required-icon { background: var(--tint-ok) !important; color: var(--ok) !important; }
#app .required-row.missing .required-icon { background: var(--tint-bad) !important; color: var(--bad) !important; }
#app .required-row.missing .required-icon::after { -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
#app .required-row .row-button[data-action='required-remove'] { grid-column: auto !important; justify-self: end; }
#app .required-row .location-button { margin-left: 0 !important; border-color: var(--bad) !important; color: var(--bad) !important; display: inline-flex; align-items: center; gap: 6px; }
#app .required-row .location-button::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-pin) center / contain no-repeat; mask: var(--i-pin) center / contain no-repeat; }
@media (max-width: 700px) {
  #app .required-row .row-button[data-action='required-remove'] { width: 44px; min-width: 44px; height: 44px; min-height: 44px !important; padding: 0; font-size: 0; display: grid; place-items: center; color: var(--muted) !important; }
  #app .required-row .row-button[data-action='required-remove']::after { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
  #app .required-row .location-button { padding: 0 12px; }
  #app .fleet-card-actions button { font-size: 15px; }
}
.due-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; font: 500 11.5px var(--f-m); letter-spacing: .03em; color: var(--holmo-steel); }
.due-chip[data-tone="warn"] { color: var(--warn); }
.due-chip[data-tone="bad"] { color: var(--bad); }

/* --------------------------------------------------------------------------
   10 · Listen: ganze Zeile antippbar, sauberer Umbruch
   -------------------------------------------------------------------------- */
#app .asset-row:has(.asset-icon) {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "icon main right btn";
  column-gap: 14px; row-gap: 6px; align-items: center; padding: 12px 10px; margin: 0 -10px; border-radius: 0; border-bottom-color: var(--line); cursor: pointer;
}
#app .asset-row:has(.asset-icon):hover { background: var(--paper); }
#app .asset-row .asset-icon { grid-area: icon; width: 44px !important; height: 44px !important; border-radius: 12px; background: transparent !important; border: 1px solid var(--line-strong); color: var(--holmo-petrol); }
#app .asset-row .row-main { grid-area: main; min-width: 0; }
#app .asset-row .row-right { grid-area: right; text-align: right; display: grid; justify-items: end; gap: 4px; }
#app .asset-row:has(.asset-icon) > .row-button { grid-area: btn; }
#app .asset-row .asset-title { font-size: 15.5px; font-weight: 600; }
#app .asset-row .asset-meta, #app .asset-row .asset-code { font-family: var(--f-m); font-size: 12.5px; }
#app .asset-row:not(:has(.asset-icon)) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#app .asset-row:not(:has(.asset-icon)) .row-main strong { font-size: 15.5px; }
#app .asset-row:not(:has(.asset-icon)) .row-main > div { font-family: var(--f-m); font-size: 13.5px; }
#app .asset-row:not(:has(.asset-icon)) > button { flex: none; min-width: 120px; }
#app .fleet-grid .asset-row:has(.asset-icon) { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "icon main btn" "icon right btn"; }
#app .fleet-grid .asset-row .row-right { justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
#app .fleet-grid .asset-row .asset-icon { grid-area: icon; }
#app .fleet-grid .asset-row .row-main { grid-area: main; }
#app .fleet-grid .asset-row .row-right { grid-area: right; }
#app .fleet-grid .asset-row > .row-button { grid-area: btn; align-self: center; }
@media (max-width: 700px) {
  #app .asset-row:has(.asset-icon) { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "icon main btn" "icon right btn"; padding: 12px 6px; margin: 0 -6px; }
  #app .asset-row .row-right { justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  #app .asset-row:has(.asset-icon) > .row-button[data-action="asset"] { width: 44px; min-width: 44px; height: 44px; min-height: 44px !important; padding: 0; font-size: 0; border: 0 !important; display: grid; place-items: center; color: var(--muted) !important; }
  #app .asset-row:has(.asset-icon) > .row-button[data-action="asset"]::after { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat; }
  #app .asset-row:not(:has(.asset-icon)) > button { min-width: 0; }
}
.badge .dot { width: 7px; height: 7px; }
#app .badge { font-size: 12px; padding: 4px 10px; }

/* Listenzeilen, die selbst Knöpfe sind */
#app .worker-site, #app .overview-site { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; position: relative; padding-right: 36px !important; background: transparent !important; }
#app .worker-site::after, #app .overview-site::after { content: ''; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--muted); -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat; transition: transform .2s ease; }
#app .worker-site:hover::after, #app .overview-site:hover::after { transform: translateX(3px); background: var(--holmo-petrol); }
#app .overview-site .row-right { margin-right: 6px; }
#app .worker-site strong { font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; }

/* Knöpfe mit Symbol: Symbol neben dem Text */
#app button:has(> .nav-svg), #app .worker-quick button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
#app button > .nav-svg { flex: none; }
/* Scannen ist überall Kupfer */
#app .head-actions [data-action="scan"], #app .worker-quick [data-action="scan"], #app .toolbar [data-action="scan"] { background: var(--holmo-copper) !important; border-color: var(--holmo-copper) !important; color: #1E120A !important; }
#app .worker-quick button { min-height: 68px !important; font-size: 17px !important; }

/* Filter wie die Reiter auf zielinski-software.de */
.status-chips { display: flex; gap: 6px; margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.status-chips::-webkit-scrollbar { display: none; }
.status-chip, #app .filter-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px !important; padding: 0 16px; border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--muted) !important; font: 600 15px var(--f-t); white-space: nowrap; }
.status-chip:hover, #app .filter-pill:hover { color: var(--ink) !important; }
.status-chip[aria-pressed="true"], #app .filter-pill.selected { color: var(--ink) !important; border-color: var(--holmo-petrol) !important; background: var(--accent-soft) !important; }
.status-chip .n { font: 500 12.5px var(--f-m); color: var(--muted); }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
#app .status-chips-source { display: none !important; }
#app .search::before { content: '' !important; top: 50% !important; left: 15px !important; width: 18px; height: 18px; transform: translateY(-50%); background: var(--muted); -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat; }
#app .search input { padding-left: 44px !important; }

/* Leere Zustände: Hinweisbox gestrichelt (wie .hinweis) */
#app .empty { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; margin: 10px 0; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); text-align: center; line-height: 1.5; }
#app .empty::before { content: ''; width: 30px; height: 30px; margin-bottom: 4px; background: var(--line-strong); -webkit-mask: var(--i-box) center / contain no-repeat; mask: var(--i-box) center / contain no-repeat; }
#app .empty strong { color: var(--ink); font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; font-size: 17px; }
#app .empty .empty-cta { margin-top: 10px; }
#app td .empty { margin: 0; }

/* Meldungen: Streifen wie die Warnkarte im Holmo-Block */
#app .report-card { color: var(--ink) !important; border-radius: 16px; border: 1px solid var(--line) !important; box-shadow: inset 3px 0 0 var(--c, var(--line-strong)); cursor: pointer; background: var(--white); }
#app .report-card:hover { border-color: var(--line-strong) !important; }
#app .report-card:has(.report-top > .badge.amber:first-child) { --c: var(--warn); }
#app .report-card:has(.report-top > .badge.red:first-child) { --c: var(--bad); }
#app .report-card:has(.report-top > .badge.gray:first-child) { --c: var(--holmo-steel); }
#app .report-card.urgent { --c: var(--bad); background: var(--white) !important; }
#app .report-card h3 { font-size: 19px; letter-spacing: -.02em; color: var(--ink) !important; }
#app .report-card p { color: var(--muted) !important; }
#app .unread { position: relative; padding-left: 18px !important; background: var(--holmo-petrol) !important; font: 500 11px var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
#app .unread::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: pulse-dot 1.6s ease-in-out infinite; }
#app .request-detail { border-radius: 10px; background: transparent !important; border: 1px dashed var(--line-strong); font-family: var(--f-m); font-size: 13.5px; }
#app .board-filters { gap: 6px; }

/* Plattformverwaltung: Kennzahlen im selben Raster */
#app .platform-stats { gap: 1px !important; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
#app .platform-stats .panel { border: 0 !important; border-radius: 0 !important; }
#app .platform-stats span { font: 500 12px var(--f-m); letter-spacing: .07em; text-transform: uppercase; }
#app .platform-stats strong { font-family: var(--f-d); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.6rem); letter-spacing: -.04em; }

/* Hinweise im Inhalt: Fläche mit Streifen statt rosa Kasten */
#app .notice { background: var(--white) !important; border: 1px solid var(--line) !important; border-radius: var(--r-l) !important; box-shadow: inset 3px 0 0 var(--bad); padding: 16px 18px !important; color: var(--ink) !important; }
#app .notice strong { font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; font-size: 15.5px; color: var(--bad); }
#app .notice p { color: var(--muted) !important; }
#app .notice-icon { color: var(--bad) !important; }
#app .board:has(.inbox-heading[aria-expanded="false"]) > .panel-head { border-bottom: 0 !important; }
#app a.secondary { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; }
@media (max-width: 700px) { #app .time-grid .panel-head { flex-wrap: wrap; } #app .time-grid .panel-head > strong { flex: 1 1 60%; } }

/* Baustellen-Kacheln */
#app .site-tile { position: relative; padding: 22px 48px 20px 22px; }
#app .site-tile strong { font-family: var(--f-d); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
#app .site-tile::after { content: ''; position: absolute; right: 20px; top: 24px; width: 20px; height: 20px; background: var(--muted); -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat; transition: transform .2s ease; }
#app .site-tile:hover::after { transform: translateX(3px); background: var(--holmo-petrol); }
#app .site-tile:hover { border-color: var(--line-strong) !important; }

/* Zeiten und Tabellen */
#app .time-row strong:first-child { font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; }
#app .table th { font-family: var(--f-m); font-weight: 500; letter-spacing: .07em; }

/* --------------------------------------------------------------------------
   11 · Hilfe-Tipps
   -------------------------------------------------------------------------- */
.help-tip { position: relative; display: inline-block; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.help-tip > summary { list-style: none; width: 24px; height: 24px; min-height: 24px !important; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); border: 1px solid var(--line-strong); }
.help-tip > summary::-webkit-details-marker { display: none; }
.help-tip > summary::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-help) center / contain no-repeat; mask: var(--i-help) center / contain no-repeat; }
.help-tip[open] > summary { border-color: var(--holmo-petrol); color: var(--holmo-petrol); background: var(--accent-soft); }
.help-tip > div { position: absolute; z-index: 8; top: calc(100% + 8px); left: -12px; width: min(300px, 78vw); padding: 14px 16px; border-radius: 14px; background: var(--holmo-forest); color: #EEF2EC; border: 1px solid #ffffff1a; font: 400 14px/1.5 var(--f-t); box-shadow: var(--sheet-shadow); animation: pop-in 160ms var(--ease-out) both; }
.help-tip.align-right > div { left: auto; right: -12px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }

/* --------------------------------------------------------------------------
   12 · Dialoge
   -------------------------------------------------------------------------- */
.modal-backdrop { background: #0B1410a8 !important; animation: fade-in 180ms ease both; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal { border-radius: 22px !important; border: 1px solid var(--line); animation: modal-in 260ms var(--ease-out) both; box-shadow: var(--sheet-shadow) !important; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal-head { border-bottom: 1px solid var(--line) !important; }
.modal-head h2 { font-family: var(--f-d); font-weight: 800; letter-spacing: -.025em; font-size: 21px; }
.modal-foot { border-top: 1px solid var(--line) !important; }
.modal-head .icon-btn { font-size: 0 !important; display: grid; place-items: center; width: 48px !important; height: 48px; }
.modal-head .icon-btn::after { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
@media (max-width: 700px) {
  .modal { border-radius: 22px 22px 14px 14px !important; animation: sheet-in 320ms var(--ease-out) both; position: relative; }
  .modal::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line-strong); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .modal-head { padding-top: 22px !important; }
  .modal-foot { display: grid !important; grid-template-columns: 1fr 1.4fr; }
  .modal-foot:has(#submitModal[hidden]) { grid-template-columns: 1fr; }
}
#modalRoot .scan-summary { border-radius: 16px; padding: 14px 16px; background: var(--paper) !important; border: 1px solid var(--line); line-height: 1.55; }
#modalRoot .scan-summary strong { font-family: var(--f-d); font-weight: 800; letter-spacing: -.015em; font-size: 17px; }
.scan-ok { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ok); background: var(--tint-ok); color: var(--ink); font-weight: 600; animation: scan-ok-in 420ms var(--ease-spring) both; }
.scan-ok .ok-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; }
.scan-ok .ok-badge .ico { width: 17px; height: 17px; animation: check-pop 420ms var(--ease-spring) 120ms both; }
.scan-ok small { display: block; font: 500 12px var(--f-m); letter-spacing: .04em; color: var(--muted); }
@keyframes scan-ok-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes check-pop { from { transform: scale(0); } }

/* Auswahl als Kacheln – Auswahlzustand wie die Reiter */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 16px; }
.choice { position: relative; display: grid; justify-items: start; gap: 6px; text-align: left; min-height: 78px !important; padding: 12px 14px; border-radius: 16px !important; border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--ink); font: 600 15px/1.25 var(--f-t); }
.choice .ico { width: 22px; height: 22px; color: var(--c, var(--holmo-petrol)); }
.choice small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.choice .now-tag { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font: 500 10.5px var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
.choice[aria-pressed="true"] { border-color: var(--c, var(--holmo-petrol)) !important; background: color-mix(in srgb, var(--c, var(--holmo-petrol)) 10%, transparent) !important; box-shadow: inset 0 0 0 1px var(--c, var(--holmo-petrol)); }
.choice[aria-pressed="true"]::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--holmo-petrol)) var(--img-check-white) center / 13px no-repeat; animation: check-pop 260ms var(--ease-spring) both; }
.choice-source { display: none !important; }
.choice-label { display: block; margin: 0 0 8px; font-size: 14.5px; font-weight: 600; }

.mini-timeline-title { margin: 16px 0 8px; font: 500 12px var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mini-timeline { margin: 0 0 4px; padding: 0; list-style: none; }
.mini-timeline li { position: relative; padding: 0 0 12px 22px; font-size: 14px; line-height: 1.4; }
.mini-timeline li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--holmo-petrol); }
.mini-timeline li::after { content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.mini-timeline li:last-child::after { display: none; }
.mini-timeline small { display: block; color: var(--muted); font-size: 12.5px; }

.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); animation: pop-in 200ms var(--ease-out) both; }

#modalRoot .check-label:has(#reportUrgent) { justify-content: space-between; flex-direction: row-reverse; gap: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; min-height: 56px; font-weight: 600; }
#modalRoot .check-label:has(#reportUrgent:checked) { border-color: var(--bad); color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
#reportUrgent { appearance: none; -webkit-appearance: none; width: 46px !important; height: 28px !important; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; margin: 0 !important; cursor: pointer; transition: background var(--t-fast) ease; }
#reportUrgent::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform var(--t-mid) var(--ease-spring); }
#reportUrgent:checked { background: var(--bad); }
#reportUrgent:checked::after { transform: translateX(18px); }

/* Scanner: Kupfer-Ecken und Laserlinie */
.scan-camera-stage { border-radius: 18px !important; background: #0E1512 !important; }
.scan-frame {
  border: 0 !important; border-radius: 18px !important; inset: 16% 20% !important; box-shadow: 0 0 0 999px #00000059 !important;
  background:
    linear-gradient(var(--rung), var(--rung)) top left / 34px 3px no-repeat, linear-gradient(var(--rung), var(--rung)) top left / 3px 34px no-repeat,
    linear-gradient(var(--rung), var(--rung)) top right / 34px 3px no-repeat, linear-gradient(var(--rung), var(--rung)) top right / 3px 34px no-repeat,
    linear-gradient(var(--rung), var(--rung)) bottom left / 34px 3px no-repeat, linear-gradient(var(--rung), var(--rung)) bottom left / 3px 34px no-repeat,
    linear-gradient(var(--rung), var(--rung)) bottom right / 34px 3px no-repeat, linear-gradient(var(--rung), var(--rung)) bottom right / 3px 34px no-repeat;
}
.scan-frame::after { content: ''; position: absolute; left: 10px; right: 10px; top: 12%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--rung), transparent); box-shadow: 0 0 14px 2px #B8733A88; animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 12%; } 50% { top: 86%; } }
#scanHint { display: flex; align-items: center; gap: 9px; margin: 12px 0 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); font-weight: 600; font-size: 15px; }
#scanHint::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--holmo-petrol); -webkit-mask: var(--i-camera) center / contain no-repeat; mask: var(--i-camera) center / contain no-repeat; }
#modalRoot .scan-start { background: transparent !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; }
#modalRoot .scan-manual { border-radius: 16px !important; border-color: var(--line-strong) !important; }
#modalRoot .scan-manual summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
#modalRoot .scan-manual summary::-webkit-details-marker { display: none; }
#modalRoot .scan-manual summary::after { content: ''; flex: 0 0 11px; height: 11px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
#modalRoot .scan-manual[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--holmo-petrol); }

/* --------------------------------------------------------------------------
   13 · Rückmeldungen (Toast) mit Ablauflinie wie die Fortschrittslinie
   -------------------------------------------------------------------------- */
.toast { display: flex; align-items: center; gap: 12px; overflow: hidden; padding: 14px 18px 16px 14px !important; border-radius: 16px !important; background: var(--holmo-forest) !important; color: #F2F6F1 !important; border: 1px solid #ffffff1a; font-size: 15px !important; font-weight: 500; box-shadow: var(--sheet-shadow) !important; animation: toast-arrive 280ms var(--ease-out) both !important; }
.toast::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #4F6B2F var(--img-check-white) center / 14px no-repeat; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--rung); transform-origin: left; animation: toast-time 4.5s linear both; }
.toast.toast-error { background: #4A1C24 !important; animation: toast-arrive 220ms ease both, toast-wiggle .32s ease .18s !important; }
.toast.toast-error::before { background: #A8404D var(--img-alert-white) center / 15px no-repeat; }
.toast.toast-error::after { background: #F1A7B1; }
@keyframes toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 701px) { .toast { min-width: 320px; max-width: 460px; } }

#app .offline-banner { border-radius: 16px !important; border: 1px dashed var(--warn) !important; background: var(--tint-warn) !important; padding: 14px 16px !important; }
#app .offline-banner::before { content: ''; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--i-wifi-off) center / contain no-repeat; mask: var(--i-wifi-off) center / contain no-repeat; }

/* Konto: Darstellung */
.theme-panel .panel-body { display: grid; gap: 12px; }
.theme-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.theme-choices button { min-height: 56px; border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--muted); font-weight: 600; }
.theme-choices button[aria-pressed="true"] { color: var(--ink); border-color: var(--holmo-petrol) !important; background: var(--accent-soft) !important; }

/* Dunkelmodus-Feinschliff */
html[data-theme="dark"] .sprosse { background: var(--white) !important; }
html[data-theme="dark"] #app .asset-row:has(.asset-icon):hover { background: #1A2A22; }
html[data-theme="dark"] .toast { background: #1F3329 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .scan-frame::after, .toast::after { display: none; }
  .boot-loader .rung { animation: none !important; transform: none; opacity: 1; }
}
@media print { .toast, .help-tip { display: none !important; } }

/* ==========================================================================
   Runde 3 – Schnellsuche, Tagesleiste, Woche, Einführung, Licht, Schnellantworten
   ========================================================================== */
:root {
  --i-torch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10v4l-2 3v11H9V10L7 7z'/%3E%3Cpath d='M7 7h10M12 13v2'/%3E%3C/svg%3E");
}

/* Suchen-Knopf in der Kopfzeile */
.search-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 220px; padding: 0 10px 0 14px; border-radius: var(--r) !important; border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--muted); font: 500 14px var(--f-t); cursor: pointer; transition: border-color var(--t-fast); }
.search-btn:hover { border-color: var(--ink) !important; color: var(--ink); }
.search-btn .ico { width: 17px; height: 17px; }
.search-btn kbd { margin-left: auto; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font: 500 12px var(--f-m); color: var(--muted); text-align: center; }
@media (max-width: 1180px) { .search-btn { min-width: 0; } .search-btn > span:not(.ico), .search-btn kbd { display: none; } .search-btn { width: 44px; justify-content: center; padding: 0; } }
@media (max-width: 700px) { .topbar .search-btn { display: inline-flex !important; width: 48px; min-height: 48px; } }

/* Such-Dialog */
.modal.modal-suche { width: min(640px, calc(100vw - 24px)); }
/* Suchfeld bleibt an seinem Platz, auch wenn sich die Trefferliste ändert */
@media (min-width: 701px) { .modal-backdrop:has(.modal-suche) { align-items: flex-start !important; padding-top: min(12vh, 120px) !important; } }
@media (max-width: 700px) { .modal.modal-suche { min-height: 82vh; } }
.modal-suche .modal-body { padding-top: 6px; }
.modal-suche .modal-foot #submitModal { display: none; }
.suche { display: grid; gap: 12px; }
.suche-feld { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); }
.suche-feld:focus-within { border-color: var(--holmo-petrol); box-shadow: 0 0 0 3px var(--accent-soft); }
.suche-feld .ico { width: 20px; height: 20px; color: var(--muted); }
.suche-feld input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 17px; padding: 0 !important; min-height: 54px; }
.suche-liste { display: grid; gap: 14px; max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.suche-gruppe { display: grid; gap: 2px; }
.suche-titel { font: 500 11.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 4px 6px; }
.treffer { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid transparent !important; border-radius: var(--r) !important; background: transparent !important; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.treffer:hover, .treffer.aktiv { border-color: var(--line-strong) !important; background: var(--accent-soft) !important; }
.treffer-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--holmo-petrol); }
.treffer-ico .ico { width: 18px; height: 18px; }
.treffer-text { display: grid; gap: 2px; min-width: 0; }
.treffer-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treffer-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treffer-rechts { display: flex; align-items: center; gap: 8px; }
.treffer-rechts code { font: 500 12.5px var(--f-m); color: var(--muted); }
.treffer mark { background: var(--copper-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.suche-leer { display: grid; gap: 6px; justify-items: start; padding: 18px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-l); color: var(--muted); margin: 0; }
.suche-leer strong { color: var(--ink); }
.suche-tipp { margin: 0; color: var(--muted); font-size: 12.5px; }
.suche-tipp kbd { display: inline-block; min-width: 20px; padding: 0 5px; margin-right: 2px; border: 1px solid var(--line-strong); border-radius: 5px; font: 500 11px var(--f-m); text-align: center; }
@media (max-width: 700px) { .suche-tipp { display: none; } .treffer-rechts code { display: none; } .suche-liste { max-height: none; } }
@media (hover: none) { .suche-tipp { display: none; } }

/* Tagesleiste in der Stempeluhr */
.tagesleiste { display: grid; gap: 8px; margin: 14px 0 4px; }
.tl-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tl-kopf span { font: 500 12px var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tl-kopf strong { font: 500 15px var(--f-m); }
.tl-bahn { position: relative; height: 10px; margin-bottom: 18px; border-radius: 6px; background: var(--line); }
.tl-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--holmo-petrol); transition: width .6s var(--ease-out); }
.tl-fill.over { background: var(--bad); }
.tl-mark { position: absolute; top: -3px; bottom: -3px; left: var(--x); width: 0; border-left: 1.5px dashed var(--line-strong); }
.tl-mark b { position: absolute; top: 18px; left: 0; transform: translateX(-50%); font: 500 11px var(--f-m); color: var(--muted); white-space: nowrap; }
.tl-hinweis { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px dashed var(--warn); border-radius: var(--r); background: var(--tint-warn); color: var(--ink); font-size: 14px; }
.tl-hinweis .ico { width: 18px; height: 18px; flex: none; color: var(--warn); }
#app .clock-card[data-status="paused"] .tl-fill { background: var(--warn); }

/* Woche im Überblick */
.woche-panel { margin-bottom: 18px; }
.woche-summe { font: 500 18px var(--f-m); letter-spacing: -.02em; }
.woche-balken { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; padding: 8px 18px 16px; }
.woche-tag { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.woche-tag small { font: 500 11.5px var(--f-m); color: var(--muted); }
.woche-tag i { align-self: end; width: min(34px, 100%); height: var(--h); min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--holmo-petrol); opacity: .85; }
.woche-tag.leer i { background: var(--line); }
.woche-tag span { font: 500 12px var(--f-m); color: var(--muted); letter-spacing: .05em; }
.woche-tag.heute span { color: var(--ink); font-weight: 600; }
.woche-tag.heute i { background: var(--holmo-copper); opacity: 1; }

/* Einführung für Mitarbeiter: drei Sprossen */
.leiter.leiter-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-worker div.sprosse { cursor: default; }
@media (max-width: 1100px) { .leiter.leiter-3 { grid-template-columns: 1fr; gap: 8px; } }

/* Scanner: Licht */
.scan-camera-stage { position: relative; }
.torch-btn { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.55) !important; background: rgba(20,32,26,.72) !important; color: #fff; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.torch-btn .ico { width: 18px; height: 18px; }
.torch-btn[aria-pressed="true"] { background: var(--holmo-copper) !important; border-color: var(--holmo-copper) !important; color: #17231e; }

/* Schnellantworten in Meldungen */
.schnell-antwort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 -4px; }
.schnell-antwort span { width: 100%; font: 500 11.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.schnell-antwort button { min-height: 40px; padding: 0 14px; border-radius: 999px !important; border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--ink); font: 500 14px var(--f-t); }
.schnell-antwort button:hover, .schnell-antwort button[aria-pressed="true"] { border-color: var(--holmo-petrol) !important; background: var(--accent-soft) !important; }
@media print { .search-btn, .torch-btn { display: none !important; } }

/* ==========================================================================
   Handy-Korrekturen: Umbuchen-Knopf, keine Überlappungen
   ========================================================================== */
#app .asset-row:has(.asset-icon) > .row-actions { grid-area: btn; display: flex; align-items: center; gap: 8px; }
#app .row-actions .umbuchen-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px !important; padding: 0 14px; white-space: nowrap; border-color: var(--holmo-petrol) !important; color: var(--holmo-petrol) !important; }
#app .row-actions .umbuchen-btn .ico { width: 17px; height: 17px; }
#app .row-actions .umbuchen-btn:hover { background: var(--accent-soft) !important; }
@media (max-width: 700px) {
  #app .asset-row:has(.asset-icon) { grid-template-columns: 44px minmax(0, 1fr) !important; grid-template-areas: "icon main" "icon right" "icon btn" !important; align-items: start; }
  #app .asset-row:has(.asset-icon) > .row-actions { justify-self: start; margin-top: 4px; }
  #app .row-actions .row-button[data-action="asset"] { display: none !important; }
  #app .row-actions .umbuchen-btn { min-height: 48px !important; padding: 0 12px; font-size: 14px; }
  /* Fest zugeordnete Geräte: „Wo ist es?“ in eigene Zeile statt über den Namen */
  #app .required-row { grid-template-columns: 26px minmax(0, 1fr) 44px !important; }
  #app .required-row > :nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
  #app .required-row .row-button[data-action='required-remove'] { grid-column: 3 !important; grid-row: 1; }
  #app .required-row .location-button { grid-column: 2 / 4; grid-row: 2; justify-self: start; min-height: 44px !important; }
  /* Filter umbrechen statt seitlich aus dem Bild laufen */
  .status-chips { flex-wrap: wrap; overflow: visible; padding: 2px; -webkit-mask-image: none !important; mask-image: none !important; }
  #app .filter-pill { flex: none; }
  #app :has(> .filter-pill) { flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .status-chip, #app .filter-pill { min-height: 44px !important; padding: 0 12px; }
  /* Hilfe-Erklärungen bleiben im Bild */
  .help-tip > div { width: min(300px, calc(100vw - 32px)); font-family: var(--f-t); font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: 0; }
  /* Verlauf als Tabelle: waagrecht wischen statt abschneiden */
  #app .table-wrap { margin: 0 -12px; padding: 0 12px; }
}
/* Geschlossene Hilfe-Erklärungen dürfen die Seite nicht verbreitern */
.help-tip:not([open]) > div { display: none !important; }
/* Geschlossene Aufklapp-Menüs (z. B. „Mehr“) nehmen keinen Platz ein */
details:not([open]) > :not(summary) { display: none !important; }
@media (max-width: 700px) {
  .mobile-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) !important; }
  .mobile-nav > *, .mobile-nav summary { min-width: 0; }
}
/* Lange Wörter („Baustellenmeldungen“) passen auch auf schmale Handys */
@media (max-width: 420px) {
  #app .page-head h1 { font-size: clamp(1.8rem, 9vw, 2.3rem) !important; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
}
#app .row-actions .row-button { min-height: 44px !important; height: 44px; padding: 0 14px !important; white-space: nowrap; }

/* 2026-10-03: explicit selected-state pairs; white light mode / forest dark mode. */
html:not([data-theme="dark"]) {
  --paper: #F7F9F6;
  --white: #FFFFFF;
  --nav: #FFFFFF;
  --nav2: #E6EEE7;
  --nav-selected-bg: #DFEBDF;
  --nav-selected-ink: #173923;
  color-scheme: light;
}
html[data-theme="dark"] {
  --nav-selected-bg: #2B4938;
  --nav-selected-ink: #F1F7EE;
}
html:not([data-theme="dark"]) .sidebar { color: var(--ink); border-right: 1px solid var(--line); }
html:not([data-theme="dark"]) .sidebar :is(.brand-sub, #brandSub, .nav-label, .side-bottom, .side-bottom strong) { color: var(--muted); }
html:not([data-theme="dark"]) .sidebar #brandLogo { filter: brightness(0) saturate(100%); opacity: .85; }
html:not([data-theme="dark"]) .nav :is(a, button, summary) { color: var(--ink); }
html .nav :is(a.active, button.active),
html .nav-group[open] > summary,
html .mobile-stock-pop a:is(.active, :hover, :focus-visible),
html .mobile-nav > a.active,
html .mobile-stock-menu > summary.active,
html .mobile-stock-menu[open] > summary {
  background: var(--nav-selected-bg) !important;
  color: var(--nav-selected-ink) !important;
}
html .nav :is(a.active, button.active) .nav-ico,
html .mobile-nav :is(a.active, summary.active) .nav-ico { color: inherit !important; }
html .mobile-stock-pop a:is(.active, :hover, :focus-visible)::before { background: var(--nav-selected-ink); }
html .mobile-stock-pop a { color: var(--ink); }
html .mobile-stock-pop { background: var(--white) !important; }
/* Baustellen-Fotodokumentation */
.documentation-panel{margin-bottom:20px}.documentation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;padding:20px}.documentation-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;background:var(--white);color:var(--ink);border:1px solid var(--line,#ddd);border-radius:12px;padding:12px;min-width:0;cursor:pointer}.documentation-card img{width:100%;height:160px;object-fit:cover;border-radius:8px}.documentation-card strong,.documentation-card span{overflow-wrap:anywhere}.documentation-card>span:last-child{font-size:12px;opacity:.75}.doc-pickers{display:grid;grid-template-columns:1fr 1fr;gap:16px}.doc-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.doc-preview-item img{width:100%;height:110px;object-fit:cover;border-radius:8px}.doc-preview-item button{font-size:12px;width:100%;white-space:normal}.doc-pickers input{max-width:100%}@media(max-width:540px){.doc-pickers{grid-template-columns:1fr}.documentation-panel .panel-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.doc-preview{grid-template-columns:1fr 1fr}}
/* Kostenvoranschläge */
.estimates-panel{margin-bottom:20px}.estimate-list-item{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:16px 0;background:none;color:inherit;border:0;border-bottom:1px solid var(--line,#ddd);text-align:left;cursor:pointer}.estimate-list-item small,.estimate-preview-rows small{display:block;margin-top:5px;opacity:.72}.estimate-modal{width:min(880px,calc(100vw - 24px));max-width:880px}.estimate-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px}.estimate-row{display:grid;grid-template-columns:2fr .7fr .8fr 1fr;gap:10px;margin:12px 0;padding:16px;border:1px solid var(--line,#ddd);border-radius:12px}.estimate-row input{min-width:0;width:100%}.estimate-description{grid-column:1/-1}.estimate-remove{grid-column:1/-1;justify-self:end}.estimate-totals{display:flex;flex-direction:column;gap:10px;margin:20px 0;padding:20px;background:var(--surface-alt,rgba(90,110,95,.09));border-radius:12px}.estimate-totals>span{display:flex;justify-content:space-between;gap:20px}.estimate-grand-total{font-size:20px;padding-top:10px;border-top:1px solid var(--line,#ddd)}.estimate-photo-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.estimate-photo-choices label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px;border:1px solid var(--line,#ddd);border-radius:10px}.estimate-photo-choices img{width:100%;height:100px;object-fit:cover;border-radius:6px}.estimate-preview-rows>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line,#ddd)}.estimate-preview-rows span{min-width:0;overflow-wrap:anywhere}.estimate-preview-rows>div>strong{white-space:nowrap}.estimate-site{opacity:.8}@media(max-width:540px){.estimate-parties{grid-template-columns:1fr;gap:8px}.estimate-row{grid-template-columns:1fr 1fr;padding:12px}.estimate-row .field:last-of-type{grid-column:1/-1}.estimates-panel .panel-head{flex-wrap:wrap;gap:12px}.estimate-list-item{align-items:flex-start;flex-direction:column}}

.archive-panel{margin-top:24px}.archive-panel>summary{padding:18px;cursor:pointer;font-weight:700}.archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;flex-wrap:wrap}.archive-row small{display:block;overflow-wrap:anywhere}

#app .asset-row>.remove-entry{display:inline-flex!important;flex-shrink:0;grid-column:auto;color:var(--ink);border:1px solid #b65249}.remove-entry{border-color:#b65249!important}.archive-row>div{min-width:0}

#app .asset-row>.remove-entry{grid-column:2 / -1;justify-self:start;width:auto;white-space:nowrap;word-break:normal;min-width:110px}

.entry-menu-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font-size:26px;cursor:pointer}
#app .asset-row.has-entry-menu{position:relative;padding-right:58px}
#app .asset-row.has-entry-menu>.entry-menu-trigger{position:absolute;right:10px;top:14px}
.entry-context-menu{position:fixed;z-index:10000;min-width:180px;max-width:calc(100vw - 16px);padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 8px 30px #0003}
.entry-menu-delete{display:block;width:100%;padding:12px 16px;text-align:left;border:0;border-radius:7px;background:transparent;color:#b42318;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.entry-menu-delete:hover,.entry-menu-delete:focus-visible{background:#b4231814;outline:2px solid #b42318;outline-offset:-2px}
[data-theme="dark"] .entry-menu-delete{color:#ff9086}

/* Shared dialog close control and calm, explicit dark-mode surface/text pairs. */
.modal-head #closeModal{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;line-height:1;border-radius:50%!important;border:1px solid var(--line-strong)!important;background:var(--paper)!important;color:var(--muted)!important;box-shadow:none}
.modal-head #closeModal::after{content:none!important}
.modal-head #closeModal svg{display:block;width:20px;height:20px;pointer-events:none}
.modal-head #closeModal:hover{background:var(--nav-selected-bg)!important;color:var(--ink)!important}
.modal-head #closeModal:focus-visible{outline:2px solid var(--holmo-petrol);outline-offset:3px}
html[data-theme="dark"]{--ink:#D6DFD9;--muted:#A8B6AD;--paper:#111914;--white:#1A251F;--line:#35483C;--line-strong:#52665A;--nav-selected-ink:#D6E6DC}
html[data-theme="dark"] :is(.thread,.request-detail,.preview-note,.support-banner,.company-avatar,.scan-summary){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.modal-body,.modal-head,.modal-foot,.entry-context-menu){color:var(--ink)}
html[data-theme="dark"] :is(input,textarea,select){color:var(--ink);caret-color:var(--ink)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] :is(.field-note,.report-meta,.asset-meta,.panel-sub,.fleet-note small){color:var(--muted)}
html[data-theme="dark"] #app .plate{background:#26362D!important;color:var(--ink)!important;border-color:var(--line-strong)!important}
html[data-theme="dark"] .clock-actions button:disabled{background:var(--paper)!important;color:var(--muted)!important;border-color:var(--line)!important;opacity:.65;filter:none}
html[data-theme="dark"] .entry-menu-trigger{border-color:var(--line-strong);color:var(--muted)}

/* Header responds to the actual content column, including narrow desktop panels. */
.main{min-width:0;container-type:inline-size;container-name:workspace}
.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;height:auto!important;min-height:64px;padding-block:10px!important}
.topbar .crumb{flex:1 1 120px;min-width:0;overflow:hidden}
.topbar .crumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .top-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}
.topbar .top-actions>*{flex-shrink:0}
@container workspace (max-width:1050px){
 .topbar .search-btn{min-width:44px;width:44px;padding:0;justify-content:center}
 .topbar .search-btn>span:not(.ico),.topbar .search-btn kbd,.topbar .user-meta{display:none!important}
 .topbar .crumb-root,.topbar .crumb-sep{display:none}
}
@container workspace (max-width:760px){
 .topbar{padding-inline:16px!important;gap:8px}
 .topbar .user-pill{display:none!important}
 .topbar .sync-label{font-size:0!important;letter-spacing:0;width:20px;min-width:20px;justify-content:center}
 .topbar .sync-label[data-state="offline"],.topbar .sync-label[data-state="pending"],.topbar .sync-label[data-state="error"]{font-size:11px!important;width:auto;max-width:120px;white-space:normal}
 .topbar #scanBtn{font-size:0!important;width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;gap:0;justify-content:center}
 .topbar #scanBtn svg{width:20px;height:20px;margin:0}
 .topbar .theme-btn,.topbar .search-btn{width:44px!important;min-width:44px;height:44px;min-height:44px!important}
 .topbar .header-logout{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px!important;padding:0!important;font-size:0!important}
 .topbar .header-logout::after{content:'';width:20px;height:20px;background:currentColor;mask:var(--i-logout) center/contain no-repeat}
}

/* Logout uses the same real icon and hit area at every header size. */
.topbar #headerLogout{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px!important;height:44px;padding:0 12px!important;border:1px solid var(--line-strong)!important;border-radius:12px!important;color:var(--muted)!important;background:transparent!important;white-space:nowrap;line-height:1}
.topbar #headerLogout::after{content:none!important}
.topbar #headerLogout svg{display:block;flex-shrink:0;width:20px;height:20px}
.topbar #headerLogout:hover{color:var(--ink)!important;background:var(--nav-selected-bg)!important}
.topbar #headerLogout:focus-visible{outline:2px solid var(--holmo-petrol);outline-offset:3px}
@container workspace (max-width:760px){.topbar #headerLogout{width:44px;min-width:44px;padding:0!important;gap:0}.topbar #headerLogout span{display:none}}
@media(max-width:700px){.topbar #headerLogout{width:44px;min-width:44px;padding:0!important;gap:0}.topbar #headerLogout span{display:none}}

.topbar #headerLogout{position:relative;box-sizing:border-box;align-items:center!important;justify-content:center!important}
.topbar #headerLogout svg{margin:0!important;align-self:center;vertical-align:middle}
@container workspace (max-width:760px){.topbar #headerLogout svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}}
@media(max-width:700px){.topbar #headerLogout svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}}

.logout-flight{position:fixed;inset:0;z-index:20000;overflow:hidden;pointer-events:auto;cursor:wait;background:color-mix(in srgb,var(--paper) 25%,transparent)}
.logout-flight svg{position:absolute;width:32px;height:32px;color:var(--holmo-petrol);filter:drop-shadow(0 4px 5px #0003)}
#headerLogout.flight-departed svg{visibility:hidden}

/* Keep logout identifiable at every width; header may wrap when necessary. */
.topbar #headerLogout{width:auto!important;min-width:108px!important;padding:0 12px!important;gap:8px!important;font-size:14px!important}
.topbar #headerLogout span{display:inline!important}
.topbar #headerLogout svg{position:static!important;transform:none!important;flex-shrink:0}

/* Member rows have their own action columns; no absolute menu overlay. */
#app .asset-row:has([data-action="member-edit"]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding-right:0!important}
#app .asset-row:has([data-action="member-edit"]).has-entry-menu{grid-template-columns:minmax(0,1fr) auto 44px}
#app .asset-row:has([data-action="member-edit"])>.row-main{grid-area:auto;grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}
#app .asset-row:has([data-action="member-edit"])>[data-action="member-edit"]{grid-column:2;grid-row:1;position:static;white-space:nowrap}
#app .asset-row:has([data-action="member-edit"])>.entry-menu-trigger{position:static!important;grid-column:3;grid-row:1;width:44px;min-width:44px;height:44px;min-height:44px;justify-self:end}
@container workspace (max-width:480px){
 #app .asset-row:has([data-action="member-edit"]){grid-template-columns:minmax(0,1fr) auto!important;gap:10px}
 #app .asset-row:has([data-action="member-edit"])>.row-main{grid-column:1 / -1}
 #app .asset-row:has([data-action="member-edit"])>[data-action="member-edit"]{grid-column:1;grid-row:2;justify-self:start}
 #app .asset-row:has([data-action="member-edit"])>.entry-menu-trigger{grid-column:2;grid-row:2}
}

#app .asset-row.has-entry-menu:has(.asset-icon){padding-right:10px}
#app .row-actions{align-items:center!important}
#app .row-actions>.entry-menu-trigger{position:static!important;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;align-self:center}
#app .row-actions>.row-button{height:44px!important;min-height:44px!important}
.booking-sound-panel{margin-top:18px}
.toast.toast-pending{background:var(--tint-warn)!important;color:var(--ink)!important;border:1px solid var(--warn)}
.toast.toast-pending::after{background:var(--warn)!important;mask:var(--i-wifi-off) center/contain no-repeat!important}

.account-settings{margin-top:18px;overflow:hidden}
.account-settings>summary{padding:20px;cursor:pointer;font-weight:700;font-size:17px}
.account-settings[open]>summary{border-bottom:1px solid var(--line)}
.account-settings .booking-sound-panel{margin-top:0;border-top:1px solid var(--line)}
.account-settings .panel-head{border-bottom:0!important;padding-bottom:0}
.account-settings .panel-body{padding-top:14px}
.account-settings .check-label{margin-bottom:14px}

/* Keep vehicle actions aligned, including the context menu trigger. */
#app .fleet-card-actions>button{height:44px!important;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0;line-height:1.2}

.time-export-form{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:12px;align-items:end}.time-export-form .field{min-width:0;display:grid;gap:6px}.time-export-form input,.time-export-form select{width:100%;min-width:0}.time-export-form button{min-height:44px}@media(max-width:700px){.time-export-form{grid-template-columns:1fr 1fr}.time-export-form .field:nth-child(3),.time-export-form button{grid-column:1/-1}}

.time-export-form .field{margin:0}.time-export-form button{height:48px;margin:0}

/* Platform dashboard and transparent support access. */
.platform-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.support-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.support-filters .field{flex:1;min-width:150px;margin:0}.support-tabs,.support-pagination{display:flex;align-items:center;gap:12px;margin:16px 0}.support-pagination{justify-content:space-between}.log-row{overflow-wrap:anywhere}.log-row small{display:block;margin:6px 0}.log-row details{margin:8px 0;font-size:12px}.support-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.company-main small{display:block;margin-top:5px;color:var(--muted)}.platform-row-actions{flex-wrap:wrap}.platform-log{margin-top:20px}@media(max-width:700px){.platform-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.support-filters{display:grid;grid-template-columns:1fr 1fr}.support-filters .field{min-width:0}.platform-row{flex-wrap:wrap}.platform-row-actions{width:100%}.support-tabs{flex-wrap:wrap}}
/* Interactive platform overview. Uses local SVG and existing brand tokens. */
.dashboard-filter{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:24px;margin:22px 0}.dashboard-filter>div:first-child{display:grid;gap:5px}.dashboard-filter strong{font-size:22px}.dashboard-filter small{color:var(--muted)}.dashboard-filter .support-filters{flex:1;max-width:690px}.platform-charts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin:24px 0}.chart-panel{min-width:0;overflow:hidden}.chart-panel .panel-head{align-items:center;gap:14px}.chart-panel h2{font-size:20px;line-height:1.3;margin:7px 0 0}.chart-panel .eyebrow{font-size:10px;letter-spacing:.13em}.chart-range{display:flex;gap:5px;flex-shrink:0}.chart-range button{min-height:38px;padding:8px 11px;font-size:12px}.chart-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.chart-summary>strong{font-size:32px;line-height:1.25;letter-spacing:-.04em}.chart-summary small{font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted)}.chart-summary>span{font-size:12px;color:var(--muted)}.trend-svg{display:block;width:100%;height:auto;overflow:visible}.trend-svg text{font-size:11px;fill:var(--muted)}.chart-gridline{stroke:var(--line);stroke-width:1}.chart-area{fill:#1f5f6312}.chart-line{fill:none;stroke:#1F5F63;stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-line-secondary{stroke:#B87146;stroke-dasharray:5 5;stroke-width:2}.chart-dot{fill:#1F5F63}.chart-legend{display:flex;gap:20px;margin-top:8px}.chart-legend span{display:flex;align-items:center;gap:7px;font-size:12px}.chart-legend i,.distribution li i{width:9px;height:9px;display:inline-block;background:#1F5F63;border-radius:50%;flex-shrink:0}.chart-legend .copper{background:#B87146}.chart-data{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;font-size:12px}.chart-data summary{cursor:pointer;font-weight:600}.chart-table-scroll{max-height:240px;overflow:auto;margin-top:12px}.chart-data table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.chart-data th,.chart-data td{padding:9px;text-align:right;border-bottom:1px solid var(--line)}.chart-data th:first-child,.chart-data td:first-child{text-align:left}.company-bars{max-height:260px;overflow:auto;display:grid;gap:8px;margin:20px 0}.company-bar{display:grid;grid-template-columns:minmax(80px,1.25fr) minmax(70px,2fr) 42px;gap:14px;align-items:center;width:100%;padding:10px 6px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;border-radius:8px}.company-bar:hover,.company-bar:focus-visible{background:var(--surface-2,#edf3f0)}.bar-label{font-size:13px;font-weight:600;overflow-wrap:anywhere}.bar-label small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.bar-track{height:12px;background:var(--line);border-radius:5px;overflow:hidden}.bar-track i{display:block;height:100%;background:linear-gradient(90deg,#1F5F63,#6E8A73);border-radius:5px}.company-bar strong{text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.distribution{display:flex;align-items:center;gap:28px;min-height:190px}.distribution svg{width:180px;max-width:45%;flex-shrink:0}.distribution ul{padding:0;list-style:none;flex:1;display:grid;gap:16px;margin:0}.distribution li{display:flex;align-items:center;gap:9px;font-size:13px}.distribution li strong{margin-left:auto}.donut-total{font-size:22px;font-weight:700;fill:var(--ink)}.donut-caption{font-size:8px;fill:var(--muted)}.security-meter{height:14px;background:var(--line);border-radius:7px;overflow:hidden;margin:25px 0}.security-meter i{display:block;height:100%;background:#1F5F63;border-radius:7px}.security-chart .panel-body>p{font-size:14px}.chart-empty{color:var(--muted);font-size:13px}.mfa-onboarding p{line-height:1.6}.platform-stats .panel strong{font-variant-numeric:tabular-nums}.chart-panel .field-note{line-height:1.5}
@media(max-width:1050px){.dashboard-filter{align-items:stretch;flex-direction:column}.dashboard-filter .support-filters{max-width:none}.platform-charts{grid-template-columns:1fr}.chart-trend .panel-head{flex-wrap:wrap}}@media(max-width:600px){.dashboard-filter{padding:18px}.dashboard-filter .support-filters button{grid-column:1/-1}.chart-panel .panel-head,.chart-panel .panel-body{padding:18px}.distribution{gap:16px}.distribution svg{width:135px}.distribution li{font-size:12px;gap:7px}.chart-summary>strong{font-size:28px}.chart-range{width:100%}.chart-range button{flex:1}}

/* Compact platform header and dashboard hierarchy. */
.platform-head{align-items:center;min-height:74px;padding-block:12px}
.platform-head-controls{display:flex;align-items:center;gap:10px;min-width:0}
.platform-theme-btn{width:42px;height:42px;min-width:42px;display:grid;place-items:center;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink)}
.platform-theme-btn svg{width:21px;height:21px}
.platform-account{position:relative;min-width:0}
.platform-account>summary{list-style:none;display:flex;align-items:center;gap:9px;max-width:245px;min-height:42px;padding:5px 9px 5px 5px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);cursor:pointer}
.platform-account>summary::-webkit-details-marker{display:none}
.platform-account-avatar{width:31px;height:31px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--nav2);color:var(--ink);font-size:11px;font-weight:700}
.platform-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.platform-account-chevron{flex:none;color:var(--muted);font-size:19px;line-height:1}
.platform-account-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:185px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--white);box-shadow:var(--shadow)}
.platform-account-menu button{display:block;width:100%;min-height:40px;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:var(--ink);text-align:left}
.platform-account-menu button:hover,.platform-account-menu button:focus-visible{background:var(--nav2)}
.platform-content{padding-top:22px}
.dashboard-filter{padding:16px 20px;margin:16px 0}
.dashboard-filter strong{font-size:18px}
.platform-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0;gap:12px}
.platform-stats .panel{padding:17px;gap:7px}
.platform-stats strong{font-size:28px}
.platform-charts{gap:16px;margin:16px 0 22px}
.chart-activity,.chart-trend,.company-comparison{grid-column:1/-1}
.chart-period{color:var(--muted);font-size:12px;white-space:nowrap}
.chart-activity>.activity-summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;padding:18px 22px}
.chart-activity>.activity-summary::-webkit-details-marker{display:none}
.activity-summary-actions{display:flex;align-items:center;gap:18px}
.activity-toggle{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}
.activity-toggle-chevron{display:inline-block;font-size:20px;line-height:1;transition:transform .15s}
.chart-activity[open] .activity-toggle-chevron{transform:rotate(180deg)}
.chart-activity[open] .activity-toggle-closed,.chart-activity:not([open]) .activity-toggle-open{display:none}
.chart-activity[open]>.panel-body{border-top:1px solid var(--line)}
.chart-activity .chart-line{stroke-width:3}
.chart-distribution .distribution li strong{font-variant-numeric:tabular-nums}
.chart-distribution .distribution li small{color:var(--muted);font-size:11px;font-weight:400}
.company-comparison>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;cursor:pointer}
.company-comparison>summary::-webkit-details-marker{display:none}
.company-comparison>summary>span:first-child{display:grid;gap:5px}
.company-comparison>summary strong{font-size:18px}
.company-comparison .comparison-toggle{white-space:nowrap;color:var(--muted);font-size:12px}
.company-comparison .comparison-toggle span{display:inline-block;margin-left:8px;font-size:20px;transition:transform .15s}
.company-comparison[open] .comparison-toggle span{transform:rotate(180deg)}
.company-comparison[open] .panel-body{border-top:1px solid var(--line)}
@media(max-width:1050px){.platform-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.platform-head{align-items:center}.platform-head-controls{margin:0}.platform-identity span{display:none}.platform-content{padding-top:18px}}
@media(max-width:600px){.platform-head{gap:10px;padding-inline:15px}.platform-identity{gap:7px}.platform-identity img{width:33px;height:33px}.platform-head-controls{gap:6px}.platform-account>summary{max-width:142px}.platform-account-avatar{width:29px;height:29px}.platform-account-name{font-size:12px}.platform-theme-btn{width:40px;height:40px;min-width:40px}.platform-stats .panel{padding:13px}.platform-stats strong{font-size:24px}.dashboard-filter{padding:14px}.chart-range{flex-wrap:wrap}.chart-range button{flex-basis:calc(50% - 3px)}.chart-activity>.activity-summary{padding:16px;flex-wrap:wrap}.activity-summary-actions{width:100%;justify-content:space-between}.company-comparison>summary{padding:16px}.company-comparison>summary strong{font-size:16px}}

/* Platform workspace: compact navigation and clear document workflows. */
.platform-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;background:var(--paper)}
.platform-main{min-width:0}
.platform-shell .platform-content{max-width:1380px;padding:26px clamp(18px,3vw,40px) 64px}
.platform-shell .platform-head{padding-inline:clamp(18px,3vw,40px)}
.platform-sidebar{display:flex;flex-direction:column;gap:25px;min-width:0;padding:28px 13px 20px;background:#153c3c;color:#e8f3ef}
.platform-sidebar-brand{display:flex;align-items:center;gap:11px;padding:5px 12px;font-size:15px;font-weight:800;letter-spacing:.08em}
.platform-sidebar-brand img{width:34px;height:34px;border-radius:9px;background:white;padding:5px}
.platform-sidebar-brand small{display:block;margin-top:2px;font-size:9px;font-weight:600;letter-spacing:.17em;color:#a5c4bb}
.platform-sidebar nav{display:grid;gap:5px}
.platform-sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:43px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#dcece6;text-align:left;font:600 13px var(--f-m);cursor:pointer}
.platform-sidebar nav button:hover,.platform-sidebar nav button:focus-visible{background:#ffffff18}
.platform-sidebar nav button.active{background:#e9f3ee;color:#143c3c}
.platform-nav-icon{display:grid;place-items:center;flex:none;width:19px;font-size:18px;line-height:1}
.platform-sidebar-foot{margin:auto 12px 0;color:#9dc1b5;font-size:11px}
.platform-plan-tabs{display:flex;gap:6px;overflow:auto;padding:4px;margin:18px 0 20px;border-bottom:1px solid var(--line)}
.platform-plan-tabs button{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:11px 15px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-weight:650;cursor:pointer}
.platform-plan-tabs button.active{border-bottom-color:var(--accent);color:var(--ink)}
.platform-plan-tabs span{padding:2px 7px;border-radius:20px;background:var(--nav2);font-size:11px}
.platform-support-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.platform-support-overview .panel{display:grid;gap:9px;padding:19px;color:var(--muted);font-size:13px}
.platform-support-overview strong{color:var(--ink);font-size:30px}
.platform-queue-row{padding:12px 0;border-bottom:1px solid var(--line)}
.platform-queue-row:last-child{border-bottom:0}
.platform-queue-row span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.platform-queue-row p{margin:7px 0 0;font-size:13px}
.platform-document-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:15px;margin:18px 0}
.platform-documents{margin-bottom:15px}
.platform-documents .panel-body{padding:19px}
.platform-document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.platform-document-row:last-child{border:0}
.platform-document-row small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.platform-document-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.platform-document-actions a{display:inline-flex;align-items:center;text-decoration:none}
.platform-document-actions button:disabled{opacity:.55;cursor:not-allowed}
.platform-mail-state{display:block;margin-bottom:10px}
.platform-send-row{display:grid;grid-template-columns:125px minmax(0,1fr) auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
.platform-send-row:last-child{border:0}
.platform-send-row small{color:var(--muted)}
.platform-guides{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;margin-top:20px}
.platform-guides nav{display:grid;align-content:start;gap:5px}
.platform-guides nav button{width:100%;padding:11px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-weight:600;cursor:pointer}
.platform-guides nav button.active{background:var(--white);border-color:var(--line)}
.platform-guides article li{margin:12px 0;line-height:1.5}
.platform-guide-check{padding:13px;border-radius:8px;background:var(--nav2);line-height:1.5}
@media(max-width:1050px){.platform-shell{grid-template-columns:70px minmax(0,1fr)}.platform-sidebar{padding-inline:8px}.platform-sidebar-brand{justify-content:center;padding-inline:0}.platform-sidebar-brand span,.platform-sidebar nav button>span:last-child,.platform-sidebar-foot{display:none}.platform-sidebar nav button{justify-content:center;padding-inline:5px}.platform-nav-icon{width:24px}}
@media(max-width:760px){.platform-shell{display:block}.platform-sidebar{position:relative;gap:8px;padding:8px 12px}.platform-sidebar-brand{display:none}.platform-sidebar nav{display:flex;gap:5px;overflow-x:auto}.platform-sidebar nav button{flex:none;width:auto;min-height:40px;padding:8px 11px}.platform-sidebar nav button>span:last-child{display:inline}.platform-shell .platform-content{padding:20px 15px 45px}.platform-guides{grid-template-columns:1fr}.platform-guides nav{display:flex;overflow-x:auto}.platform-guides nav button{width:auto;white-space:nowrap}.platform-document-grid{grid-template-columns:1fr}.platform-send-row{grid-template-columns:1fr;gap:4px}.platform-document-row{align-items:flex-start;flex-direction:column}.platform-document-actions{justify-content:flex-start}}
.platform-shell{--chart-asset:#1f5f63;--chart-vehicle:#818b56;--chart-site:#723e47}
html[data-theme="dark"] .platform-shell{--chart-asset:#66c8c6;--chart-vehicle:#b6cf70;--chart-site:#dc8ca2}
html[data-theme="dark"] .platform-head .platform-identity img{background:#fff;border-radius:8px;padding:4px}
html[data-theme="dark"] .chart-line{stroke:#66c8c6}
html[data-theme="dark"] .chart-line-secondary{stroke:#eda86e}
html[data-theme="dark"] .chart-dot,html[data-theme="dark"] .chart-legend i{fill:#66c8c6;background:#66c8c6}
html[data-theme="dark"] .chart-legend i.copper{background:#eda86e}
html[data-theme="dark"] .chart-area{fill:#66c8c61c}
html[data-theme="dark"] .bar-track i,html[data-theme="dark"] .security-meter i{background:#66c8c6}
