/* Schröer Digital Call AI – one stage, one warm accent (brand gold). Fonts self-hosted (OFL). */
@font-face { font-family: 'Funnel Display'; src: url('/fonts/funnel-display-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: 'Funnel Display'; src: url('/fonts/funnel-display-latin-ext.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Funnel Sans'; src: url('/fonts/funnel-sans-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: 'Funnel Sans'; src: url('/fonts/funnel-sans-latin-ext.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: dark;
  --ink-0: #0e0b08; --ink-1: #15110d; --ink-2: #1c1712; --ink-3: #251f18; --ink-4: #2f281f;
  --line: rgba(246, 236, 220, .08); --line-2: rgba(246, 236, 220, .14); --line-3: rgba(246, 236, 220, .22);
  --text: #f5efe6; --text-2: #d2c8b8; --mute: #9d9282; --mute-2: #6e6557;
  --gold: #d4af6a; --gold-hi: #ecc982; --gold-lo: #9c7b3c; --gold-rgb: 212 175 106; --gold-ink: #17120a;
  --cool: #7fb2e8; --cool-rgb: 127 178 232; /* caller = the blue of the Schröer Digital logo, AI = its gold */
  --ok: #7fcf98; --p1: #ff7a66; --p2: #f0b25a; --p3: #9cb8d8; --p4: #8d94a1;
  --r: 14px; --r-sm: 9px; --r-lg: 20px;
  --f-display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --f-sans: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-ar: 'Plex Arabic', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --top: 60px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--text); font: 400 15px/1.5 var(--f-sans); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.gold { color: var(--gold); }
.fine { font-size: 12.5px; color: var(--mute); line-height: 1.45; margin: 0; }
[dir=rtl], .rtl { font-family: var(--f-ar); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* brand: the real Schröer Digital logo (gold head, blue brain) – header shows the head only, the login the full logo */
.mark { display: inline-block; width: 30px; height: 30px; flex: none; background: url('/icons/mark.svg') center/contain no-repeat; }
.logo-head { display: inline-block; width: 34px; height: 34px; flex: none; background: url('/brand/sd-head.webp') center / contain no-repeat; }
.logo-head--lg { width: 62px; height: 66px; }
.wordmark { font: 600 20px/1.1 var(--f-display); letter-spacing: -.01em; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--ink-0); z-index: 50; }
.boot .logo-head { animation: breathe 1.4s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .45; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14.5px; letter-spacing: .005em; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.98); }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -10px rgba(var(--gold-rgb) / .7); }
.btn--gold svg { stroke: var(--gold-ink); }
#replayBtn svg, .btn--line svg path[d^="M8 5"] { fill: currentColor; stroke: none; }
.btn--gold:hover { filter: brightness(1.05); }
.btn--line { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn--line:hover { border-color: rgba(var(--gold-rgb) / .6); }
.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--line-2); }
.btn--lg { min-height: 52px; font-size: 15.5px; padding: 0 22px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--danger { background: rgba(255, 122, 102, .14); color: #ffb3a7; border-color: rgba(255, 122, 102, .4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); box-shadow: none; }
.btn--listen { border-color: var(--cool); color: #d6e8fb; background: rgba(var(--cool-rgb) / .12); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: transparent; border: 1px solid transparent; cursor: pointer; color: var(--text-2); }
.iconbtn:hover { background: var(--ink-3); }
.iconbtn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.sheet__x svg, #storyX svg { fill: none; stroke-width: 2; stroke-linecap: round; }
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; background: var(--ink-3); color: var(--text-2); border: 1px solid var(--line); vertical-align: 2px; white-space: nowrap; }
.tag--demo { color: var(--gold); border-color: rgba(var(--gold-rgb) / .35); background: rgba(var(--gold-rgb) / .08); }
.tag--ai { color: var(--gold-hi); border-color: rgba(var(--gold-rgb) / .4); background: rgba(var(--gold-rgb) / .1); }
.tag--P1 { color: #ffd2ca; background: rgba(255, 122, 102, .18); border-color: rgba(255, 122, 102, .5); }
.tag--P2 { color: #ffe2b8; background: rgba(240, 178, 90, .14); border-color: rgba(240, 178, 90, .4); }
.tag--ok { color: #c9f0d5; background: rgba(127, 207, 152, .12); border-color: rgba(127, 207, 152, .35); }
.lang { display: inline-grid; place-items: center; min-width: 27px; height: 21px; padding: 0 5px; border-radius: 5px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ink-4); color: var(--text-2); }
.lang--hot { background: rgba(var(--gold-rgb) / .18); color: var(--gold-hi); }

/* ============ LOGIN ============ */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.login__stage { position: relative; padding: 56px 64px; display: flex; flex-direction: column; gap: 26px; overflow: hidden; background:
  radial-gradient(120% 80% at 0% 0%, rgba(var(--gold-rgb) / .10), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(var(--cool-rgb) / .06), transparent 60%), var(--ink-0); border-right: 1px solid var(--line); }
.login__brand { display: flex; align-items: center; gap: 18px; }
.login__logo { width: auto; height: 96px; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.login__product { font: 600 22px/1.1 var(--f-display); letter-spacing: -.01em; padding-left: 18px; border-left: 1px solid var(--line-2); }
.login__product span { display: block; margin-top: 5px; font: 500 14px/1.3 var(--f-sans); color: var(--mute); letter-spacing: 0; }
.login__title { font: 600 clamp(38px, 5vw, 68px)/1.02 var(--f-display); letter-spacing: -.025em; margin: 18px 0 0; max-width: 13ch; }
.login__lead { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 54ch; margin: 0; }
.login__spec { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-2); }
.login__spec li span { display: block; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-bottom: 3px; }
.login__wave { position: relative; margin-top: auto; height: 120px; }
.login__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login__form { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--ink-1); }
.login__form h2 { font: 600 28px/1.1 var(--f-display); margin: 6px 0 6px; letter-spacing: -.01em; }
.login__form label { display: grid; gap: 7px; font-size: 13px; color: var(--text-2); }
.login__form input { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-0); color: var(--text); padding: 0 14px; font: 500 16px var(--f-sans); }
.login__form input:focus { outline: none; border-color: rgba(var(--gold-rgb) / .7); box-shadow: 0 0 0 4px rgba(var(--gold-rgb) / .12); }
.login__form input.bad { border-color: var(--p1); }
.login__form .btn { margin-top: 8px; }
.demo-badge { align-self: flex-start; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); padding: 7px 10px; border-radius: 999px; }
.err { color: #ffb3a7; font-size: 13.5px; margin: 0; }
.legal { display: flex; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--mute); }
.legal a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ============ APP SHELL ============ */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 22px; padding: 0 20px; background: rgba(14, 11, 8, .88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0); height: calc(var(--top) + env(safe-area-inset-top, 0px)); }
.top__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.top__name { display: grid; line-height: 1.05; }
.top__name b { font: 600 15px var(--f-display); letter-spacing: -.005em; }
.top__name span { font: 500 11.5px var(--f-mono); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.top__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top__nav a { padding: 8px 11px; border-radius: 9px; text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; }
.top__nav a:hover { color: var(--text); background: var(--ink-2); }
.top__nav a.on { color: var(--text); }
.top__nav a.on::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -11px; height: 2px; background: var(--gold); border-radius: 2px; }
.top__nav a .dot { position: absolute; top: 5px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb) / .2); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.conn { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); }
.conn.on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(127, 207, 152, .18); }
.menu { position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -20px #000; z-index: 30; }
.menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; background: none; border: 0; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--ink-3); }
main { flex: 1; min-height: 0; }
.view { padding: 18px 20px 26px; }
.viewhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.viewhead h1 { font: 600 26px/1.1 var(--f-display); letter-spacing: -.015em; margin: 0; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.foot a { color: var(--text-2); margin-left: 14px; text-decoration: none; }
.tabbar { display: none; }

/* ============ KPIs ============ */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.kpi { background: var(--ink-1); padding: 12px 14px 11px; min-width: 0; }
.kpi b { display: block; font: 600 24px/1.1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { color: var(--mute); font: 500 12px var(--f-mono); }
.kpi.bump b { animation: bump .7s var(--ease); }
@keyframes bump { 30% { color: var(--gold-hi); transform: translateY(-2px); } }

/* ============ LIVE ============ */
.live { display: grid; grid-template-columns: 380px minmax(0, 1fr) minmax(340px, 410px); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; height: calc(100dvh - var(--top) - 44px - var(--story-h, 0px)); min-height: 600px; }
.callpanel { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, var(--ink-1), var(--ink-0)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; }
.callpanel::before { content: ''; position: absolute; left: 50%; top: 120px; width: 420px; height: 420px; margin: -210px 0 0 -210px; background: radial-gradient(closest-side, rgba(var(--gold-rgb) / .22), rgba(var(--gold-rgb) / .06) 55%, transparent); pointer-events: none; opacity: calc(.35 + var(--lvl, 0) * .65); transform: scale(calc(.85 + var(--lvl, 0) * .3)); transition: opacity .25s, transform .25s; }
.callpanel > * { position: relative; }
.co { font: 600 18px/1.25 var(--f-display); }
.co__sub { margin-top: 5px; font-size: 13px; color: var(--mute); }
.voice { position: relative; height: 190px; border-radius: var(--r); background: rgba(7, 8, 11, .72); border: 1px solid var(--line); overflow: hidden; }
.voice__glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 45%, rgba(var(--gold-rgb) / .28), transparent 70%), radial-gradient(50% 60% at 50% 70%, rgba(var(--cool-rgb) / .18), transparent 70%); opacity: calc(.12 + var(--lvl, 0) * .88); transition: opacity .12s linear; pointer-events: none; }
.voice canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.voice__state { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.voice__state #callState { display: inline-flex; align-items: center; gap: 8px; }
.voice__state #callState::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); }
.is-live .voice__state #callState::before { background: var(--p1); box-shadow: 0 0 0 4px rgba(255, 122, 102, .18); animation: rec 1.6s infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 7px rgba(255, 122, 102, 0); } }
.langtrail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 22px; }
.langtrail .arrow { color: var(--mute-2); font-size: 12px; }
.langtrail .empty { font-size: 12.5px; color: var(--mute); }
.callpanel__actions { display: grid; gap: 10px; }
.callpanel__actions .btn { width: 100%; }
.hint { font-size: 12.5px; color: var(--mute); margin: 2px 0 0; line-height: 1.45; }
.hint.warn { color: #ffd2a6; }
.phoneline__k { font-size: 13px; color: var(--text-2); font-weight: 500; }
.phoneline { margin-top: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); }
.phoneline__num { display: block; font: 600 20px/1.2 var(--f-display); letter-spacing: .01em; text-decoration: none; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.qr { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; flex: none; }

.pane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.pane__head h2 { font: 600 15px/1 var(--f-display); margin: 0; letter-spacing: .005em; }
.transcript, .agents { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.transcript__body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; scroll-behavior: smooth; overscroll-behavior: contain; }
.tr-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--mute); padding: 24px; }
.tr-empty b { display: block; font: 600 19px/1.3 var(--f-display); color: var(--text); margin-bottom: 8px; }
.tr-empty .samples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; max-width: 520px; }
.tr-empty .samples span { padding: 8px 12px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.ln { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); animation: lnIn .35s var(--ease); }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } }
.ln__who { font: 500 11.5px/1.2 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; display: grid; gap: 6px; align-content: start; }
.ln--assistant .ln__who b { color: var(--gold); }
.ln__who b { font-weight: 600; }
.ln__text { font-size: 16.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.ln--assistant .ln__text { color: var(--text-2); }
.ln__text[dir=rtl] { font-size: 18px; line-height: 1.7; text-align: right; }
.ln__en { margin-top: 5px; font-size: 13.5px; color: var(--mute); display: flex; gap: 8px; align-items: baseline; }
.ln__en::before { content: 'EN'; font: 600 10.5px/1 var(--f-mono); color: var(--text-2); border: 1px solid var(--line-3); border-radius: 4px; padding: 3px 4px; flex: none; }
.ln__en.wait::after { content: 'translating…'; color: var(--mute-2); font-style: normal; }
.ln--open .ln__text::after { content: ''; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; background: var(--gold); opacity: .8; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.trail { list-style: none; margin: 0; padding: 10px 12px 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.trail-empty { color: var(--mute); padding: 18px 8px; font-size: 13.5px; }
.trail-empty ol { padding-left: 18px; margin: 10px 0 0; display: grid; gap: 5px; }
.trail-empty li b { color: var(--text-2); font-weight: 600; }
.step { position: relative; padding: 10px 10px 10px 34px; border-radius: 12px; margin-bottom: 6px; animation: stepIn .55s var(--ease); cursor: pointer; border: 1px solid transparent; }
.step:hover { background: var(--ink-2); }
.step.open { background: var(--ink-2); border-color: var(--line); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); background: rgba(var(--gold-rgb) / .14); } 60% { background: rgba(var(--gold-rgb) / .07); } }
.step::before { content: ''; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink-1); }
.step::after { content: ''; position: absolute; left: 17px; top: 28px; bottom: -8px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step__agent { font: 600 11.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); display: flex; gap: 8px; align-items: center; }
.step__agent time { color: var(--mute-2); font-weight: 500; margin-left: auto; letter-spacing: .02em; }
.step__title { font-size: 14.5px; font-weight: 600; margin-top: 5px; line-height: 1.35; }
.step__why { display: none; margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.step.open .step__why, .step.peek .step__why { display: block; }
.step.peek:not(.open) .step__why > :not(.why__dec) { display: none; }
.why__dec { margin: 0 0 8px; }
.why__dec::before { content: 'Why  '; font: 600 11px var(--f-mono); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.why__row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; margin-top: 6px; font-size: 12.5px; }
.why__row > span:first-child { font: 500 11.5px/1.6 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.why__ev { margin: 0; padding: 7px 10px; border-left: 2px solid rgba(var(--gold-rgb) / .6); background: var(--ink-1); border-radius: 0 8px 8px 0; color: var(--text); font-size: 13px; }
.why__ev + .why__ev { margin-top: 5px; }
.why__ev small { display: block; color: var(--mute); margin-top: 3px; }
.conf { display: flex; align-items: center; gap: 8px; }
.conf i { flex: 1; height: 4px; border-radius: 4px; background: var(--ink-4); overflow: hidden; max-width: 120px; }
.conf i b { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.alts { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.alts li { color: var(--mute); } .alts li b { color: var(--text-2); font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }

.objects { grid-column: 2 / span 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.obj { position: relative; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px 13px; min-height: 148px; min-width: 0; transition: border-color .4s, background .4s; cursor: pointer; }
.obj__k { display: flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.obj__k svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.obj__id { margin-left: auto; color: var(--text-2); letter-spacing: .02em; }
.obj__t { font: 600 15px/1.3 var(--f-display); margin-top: 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.obj__d { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.obj__d[dir=rtl] { text-align: right; }
.obj--empty .obj__t { color: var(--mute-2); font-weight: 500; font-family: var(--f-sans); font-size: 13.5px; }
.obj--filled { border-color: var(--line-2); background: var(--ink-2); }
.obj--filled .obj__k { color: var(--text-2); }
.obj--filled .obj__k svg { color: var(--gold); }
.obj.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb) / .55); } 100% { box-shadow: 0 0 0 14px rgba(var(--gold-rgb) / 0); } }
.obj .bar { position: absolute; left: 13px; right: 13px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.obj--work .bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: work 1.1s var(--ease) infinite; }
@keyframes work { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ============ ERP lists ============ */
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; background: var(--ink-1); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.row:hover { border-color: var(--line-3); }
.row.new { border-color: var(--line-3); box-shadow: inset 3px 0 0 var(--gold); animation: flash 1.2s var(--ease); }
.row__id { font: 500 12px var(--f-mono); color: var(--text-2); }
.row__t { font-weight: 600; font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.row__s { font-size: 12.5px; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.card { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; min-width: 0; }
.card.new { border-color: var(--line-3); box-shadow: inset 0 3px 0 var(--gold); }
.card h3 { font: 600 16px/1.25 var(--f-display); margin: 0 0 4px; }
.card .kv { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 4px 10px; font-size: 13px; margin-top: 10px; }
.card .kv span:nth-child(odd) { color: var(--mute); font: 500 11.5px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.bubble { margin-top: 12px; padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: #10261d; border: 1px solid rgba(127, 207, 152, .25); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.bubble[dir=rtl] { border-radius: 14px 4px 14px 14px; text-align: right; font-size: 15.5px; }
.bubble--en { background: var(--ink-2); border-color: var(--line); color: var(--text-2); font-size: 13px; }
.bubble--mail { background: var(--ink-2); border-color: var(--line); border-radius: 10px; font-size: 13px; }
.qlines { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.qlines td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.qlines td:last-child, .qlines th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: 12px; }
.qlines tr.tot td { border: 0; font-weight: 700; padding-top: 9px; }

/* dispatch board */
.seg { display: inline-flex; background: var(--ink-1); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--mute); font-weight: 600; font-size: 13px; min-height: 36px; }
.seg button.on { background: var(--ink-3); color: var(--text); }
.board { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-1); }
.board table { border-collapse: collapse; width: 100%; min-width: 960px; }
.board th, .board td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px; vertical-align: top; }
.board th { font: 500 12px var(--f-mono); color: var(--mute); text-align: left; padding: 10px 8px; letter-spacing: .02em; white-space: nowrap; }
.board th:not(:first-child) { width: 12%; }
.board td.tech { width: 200px; padding: 10px 12px; }
.board td.tech b { display: block; font-size: 13.5px; } .board td.tech span { font-size: 11.5px; color: var(--mute); }
.appt { border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.3; background: var(--ink-3); color: var(--text-2); min-height: 44px; cursor: pointer; }
.appt b { display: block; font-weight: 600; color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt.done { opacity: .45; }
.appt.proposed { background: rgba(var(--gold-rgb) / .16); border: 1px dashed rgba(var(--gold-rgb) / .8); color: var(--gold-hi); animation: flash 1.4s var(--ease) 2; }
.appt.P1 { box-shadow: inset 3px 0 0 var(--p1); }
.free { height: 44px; border-radius: 8px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.02) 6px 12px); }

/* sheet (detail drawer) */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: flex; justify-content: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel { position: relative; width: min(620px, 100%); height: 100%; overflow-y: auto; background: var(--ink-1); border-left: 1px solid var(--line-2); padding: 26px 26px calc(40px + var(--safe-b)); animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet__x { position: absolute; right: 14px; top: 14px; }
.sheet h2 { font: 600 22px/1.2 var(--f-display); margin: 4px 40px 6px 0; }
.sheet h4 { font: 600 12px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 8px; }
.sheet .ln { grid-template-columns: 70px minmax(0, 1fr); }

/* story / guided tour */
.story { position: relative; z-index: 45; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin: 0 0 12px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 18px; box-shadow: 0 24px 60px -30px #000; animation: storyIn .4s var(--ease); }
.story__bar { flex-wrap: wrap; } .story__bar .story__prog { flex-basis: 100%; order: 3; }
.story__body { min-width: 0; }
.story h3 { margin: 0 0 4px !important; }
.story__actions { margin-top: 0 !important; }
@keyframes storyIn { from { transform: translateY(16px); opacity: 0; } }
.story__bar { display: flex; align-items: center; gap: 8px 12px; color: var(--gold); }
.story__bar #storyX { margin-left: auto; width: 34px; height: 34px; }
.story__prog { flex: 1; height: 3px; background: var(--ink-4); border-radius: 3px; overflow: hidden; }
.story__prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.story h3 { font: 600 19px/1.25 var(--f-display); margin: 12px 0 6px; letter-spacing: -.005em; }
.story p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 110ch; }
.story__actions { display: flex; justify-content: space-between; margin-top: 14px; gap: 10px; }
.spot { position: fixed; z-index: 44; pointer-events: none; border-radius: 18px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 9999px rgba(3, 4, 6, .55); transition: all .45s var(--ease); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); z-index: 60; background: var(--ink-3); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 20px 50px -20px #000; }

/* ============ responsive ============ */
@media (max-width: 1280px) {
  .live { grid-template-columns: 340px minmax(0, 1fr) 330px; }
  .objects { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; min-height: 0; }
  .callpanel { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .transcript, .agents { height: 520px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .objects { grid-column: 1 / -1; }
  .tabbar { display: flex; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .login { grid-template-columns: 1fr; }
  .login__stage { padding: 28px 18px 8px; border-right: 0; gap: 16px; }
  .login__title { font-size: 36px; margin-top: 6px; }
  .login__lead { font-size: 15px; }
  .login__wave { height: 70px; margin-top: 4px; }
  .login__form { padding: 22px 18px calc(28px + var(--safe-b)); }
  .top { padding: 0 14px; gap: 10px; padding-top: env(safe-area-inset-top, 0); }
  .top__name b { font-size: 14px; }
  .conn span { display: none; }
  #storyBtn { padding: 0 12px; }
  .view { padding: 12px 16px calc(96px + var(--safe-b)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
  .kpi { padding: 10px 12px; } .kpi b { font-size: 21px; }
  .live { display: flex; flex-direction: column; gap: 12px; }
  .callpanel { display: flex; padding: 14px; gap: 12px; }
  .voice { height: 130px; }
  .callpanel__company .co { font-size: 15.5px; }
  .phoneline { margin-top: 0; padding: 10px 12px; }
  .phoneline__num { font-size: 19px; }
  .phoneline .qr { display: none; }
  .co__sub { font-size: 12.5px; }
  .transcript { height: auto; max-height: 62dvh; min-height: 260px; }
  .agents { height: auto; max-height: 70dvh; min-height: 220px; }
  .objects { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; order: 3; }
  .transcript { order: 2; } .agents { order: 4; }
  .obj { flex: 0 0 74%; scroll-snap-align: start; min-height: 136px; }
  .pane__head h2 { white-space: nowrap; } .pane__head .mono { text-align: right; font-size: 11.5px; }
  .ln { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
  .ln__who { grid-auto-flow: column; justify-content: start; align-items: center; padding: 0; }
  .ln__text { font-size: 16px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .row__r { justify-content: flex-start; }
  .viewhead h1 { font-size: 22px; }
  .foot { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10, 12, 16, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; color: var(--mute); text-decoration: none; font-size: 11px; font-weight: 600; min-height: 56px; position: relative; }
  .tabbar a.on { color: var(--gold); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a .dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
  .story { position: fixed; left: 12px; right: 12px; margin: 0; bottom: calc(68px + var(--safe-b)); padding: 14px 15px; display: block; box-shadow: 0 30px 80px -20px #000; }
  .story__actions { margin-top: 12px !important; }
  .story h3 { margin: 10px 0 4px !important; }
  .story h3 { font-size: 17px; } .story p { font-size: 14px; }
  .sheet__panel { padding: 22px 18px calc(40px + var(--safe-b)); border-left: 0; }
  .menu { position: fixed; right: 12px; left: 12px; top: calc(var(--top) + env(safe-area-inset-top, 0px) + 6px); }
}
@media (max-width: 1080px) and (min-width: 761px) { .tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 25; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 2px; } .tabbar a { display: flex; gap: 6px; align-items: center; padding: 9px 14px; border-radius: 999px; color: var(--mute); text-decoration: none; font-size: 13px; font-weight: 600; } .tabbar a.on { background: var(--ink-4); color: var(--text); } .tabbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; } .view { padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* phone: during a call the transcript comes first – KPIs, hints and the phone-line box step aside */
@media (max-width: 760px) {
  body.is-live .kpis, body.is-live .phoneline, body.is-live .hint, body.is-live .callpanel__company { display: none; }
  body.is-live .voice { height: 92px; }
  body.is-live .callpanel__actions { grid-template-columns: 1fr 1fr; }
  body.is-live .callpanel__actions .btn { min-height: 46px; font-size: 14px; padding: 0 12px; min-width: 0; }
  body.is-live .callpanel__actions .btn span { overflow: hidden; text-overflow: ellipsis; }
  #storyBtn { font-size: 13px; min-height: 34px; }
}

/* phone dispatch: one card per technician instead of the 8-column grid */
.techlist { display: grid; gap: 10px; }
.techcard { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.techcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.techcard header b { font-size: 15px; } .techcard header span { font-size: 12.5px; color: var(--mute); text-align: right; }
.techcard ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.techcard li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; }
.techcard li time { font: 500 12px/1.6 var(--f-mono); color: var(--text-2); }
.techcard li .appt { min-height: 0; }
.techcard .freec { color: var(--mute); font-size: 13px; }
.nw { white-space: nowrap; unicode-bidi: isolate; }

/* ============ v3 (21.11.2026): phone-only hero stage – Schröer Digital AI Agent ============ */
.callpanel { overflow-y: auto; scrollbar-width: none; background: radial-gradient(120% 60% at 0% 0%, rgba(var(--gold-rgb) / .16), transparent 60%), linear-gradient(180deg, #1a140e, var(--ink-0)); border-color: rgba(var(--gold-rgb) / .22); }
.callpanel::before { top: 330px; }
.hero { display: grid; gap: 6px; }
.hero__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hero__mark { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 6px 18px rgba(var(--gold-rgb) / .35)); }
.hero__name { display: grid; line-height: 1.1; }
.hero__name b { font: 700 21px/1.1 var(--f-display); letter-spacing: -.01em; }
.hero__name span { font: 500 11.5px var(--f-mono); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.hero__k { font: 600 13px var(--f-sans); color: var(--text-2); letter-spacing: .02em; }
.hero__num { font: 700 34px/1.05 var(--f-display); letter-spacing: -.01em; color: var(--gold-hi); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 28px rgba(var(--gold-rgb) / .35); }
.hero__row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hero__call { display: none; }
.hero__qr { margin: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.hero__qr .qr { width: 96px; height: 96px; }
.hero__qr figcaption { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.hero__sub { margin: 6px 0 0; font-size: 13px; color: var(--mute); line-height: 1.45; }
.voice { height: 150px; flex: none; }
.orb { position: absolute; left: 50%; top: 44%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dca4, var(--gold) 45%, #6b4f22 100%); box-shadow: 0 0 calc(20px + var(--lvl, 0) * 60px) rgba(var(--gold-rgb) / calc(.25 + var(--lvl, 0) * .5)); transform: scale(calc(.82 + var(--lvl, 0) * .35)); transition: transform .12s linear, box-shadow .12s linear; opacity: .9; }
.orb i { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(var(--cool-rgb) / .9), rgba(var(--cool-rgb) / .15) 70%, transparent); filter: blur(2px); }
.langbig { position: absolute; right: 12px; top: 10px; display: flex; align-items: baseline; gap: 7px; padding: 5px 10px; border-radius: 10px; background: rgba(14, 11, 8, .7); border: 1px solid var(--line-2); }
.langbig b { font: 700 18px/1 var(--f-mono); text-transform: uppercase; color: var(--text); }
.langbig span { font-size: 12px; color: var(--text-2); }
.langbig.on { border-color: rgba(var(--gold-rgb) / .6); } .langbig.on b { color: var(--gold-hi); }
.langbig.flip { animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: none; } }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lane { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); flex: none; }
.lane--done { color: var(--text); border-color: rgba(var(--gold-rgb) / .3); } .lane--done i { background: var(--gold); }
.lane--hit { animation: lanehit 1.2s var(--ease); }
@keyframes lanehit { 0% { background: rgba(var(--gold-rgb) / .45); box-shadow: 0 0 22px rgba(var(--gold-rgb) / .55); } 100% { background: var(--ink-2); box-shadow: none; } }
.scen { border-top: 1px solid var(--line); padding-top: 12px; }
.scen__k { font: 500 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.scen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.scen li { display: grid; gap: 1px; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.scen li b { font-size: 14px; color: var(--text); font-weight: 600; }
.callpanel__company { font-size: 12px; color: var(--mute); margin-top: auto; }
.login__num { color: var(--gold-hi); font-weight: 700; white-space: nowrap; text-decoration: none; }
@media (max-width: 1080px) { .callpanel { display: flex; } .lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero__num { font-size: 31px; }
  .hero__call { display: inline-flex; flex: 1; }
  .hero__qr { display: none; }
  .voice { height: 120px; } .orb { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lane { font-size: 11px; padding: 6px; }
  body.is-live .hero__sub, body.is-live .scen, body.is-live .hero__k { display: none; }
  body.is-live .hero__brand { display: none; }
  body.is-live .callpanel__actions { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .callpanel { gap: 11px; padding: 16px 18px; }
  .hero__brand { margin-bottom: 2px; } .hero__mark { width: 46px; height: 46px; }
  .hero__qr .qr { width: 84px; height: 84px; }
  .voice { height: 118px; } .orb { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
  .scen ul { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .scen li span { font-size: 12px; }
  .langtrail { display: none; }
}
