/* Prüfstation Live — optische Qualitaetskontrolle in Echtzeit (Demo, fiktiver Betrieb,
   Beispieldaten). Drei Designgroessen, index.js waehlt und skaliert die Buehne:
     wide    760 x 860 (Fenster im Showroom; Hoehe waechst bis 1000)
     land   1280 x 800 (Vollbild quer)
     compact 440 x 900-1040 (Vollbild Handy)
   Schriften: Inter (aus ../solaris) + Fragment Mono (aus ../obsidian), same-origin. */

/* ── Schriften ─────────────────────────────────────────────────────────── */
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(../solaris/schrift/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(../solaris/schrift/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Fragment Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url(../obsidian/schrift/4iCr6K5wfMRRjxp0DA6-2CLnB41HhrUI.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Fragment Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url(../obsidian/schrift/4iCr6K5wfMRRjxp0DA6-2CLnB4NHhg.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ── Farbwelt ──────────────────────────────────────────────────────────────
   Graphit wie ein Leitstand. Ein Signal (Himmelblau) fuer "Kamera / Messung /
   Bedienung", Gruen fuer in Ordnung, Rot fuer Ausschuss (NIO), Bernstein fuer
   Testteile und Grenzwerte. Die fuenf Verarbeitungsstufen haben eigene,
   gleich helle Toene. */
:root{
  --bg:#05070A;
  --panel:#0A0E13;
  --panel-2:#0E131A;
  --panel-3:#141A23;
  --line:rgba(255,255,255,.07);
  --line-2:rgba(255,255,255,.12);
  --line-3:rgba(255,255,255,.22);
  --ink:#EEF2F6;
  --ink-2:#C2CBD6;
  --muted:#8A95A5;
  --acc:#5CC8FF;
  --acc-2:#9ADCFF;
  --acc-08:rgba(92,200,255,.08);
  --acc-16:rgba(92,200,255,.16);
  --ok:#41DC98;
  --ok-12:rgba(65,220,152,.12);
  --nio:#FF5E6C;
  --nio-12:rgba(255,94,108,.12);
  --amber:#FFBF4F;
  --s0:#6E8BFF; --s1:#5CC8FF; --s2:#4FE0C2; --s3:#B7E36A; --s4:#FFBF4F;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --mono:'Fragment Mono',ui-monospace,'Cascadia Mono',Consolas,'SFMono-Regular',monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg)}
body{
  font:13px/1.4 var(--sans); color:var(--ink);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;
  font-feature-settings:'cv05','cv08','ss03';
}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit}
button:focus-visible,input:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
h1,h2,h3,p,ol,ul,dl,dd,figure{margin:0;padding:0}
ol,ul{list-style:none}
svg{display:block}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ── Buehne ─────────────────────────────────────────────────────────────── */
.stage{
  position:absolute; left:0; top:0; width:760px; height:860px;
  transform-origin:0 0; overflow:hidden;
  display:grid; background:var(--bg);
  grid-template-columns:minmax(0,1fr) 300px;
  grid-template-rows:52px 54px auto minmax(0,1fr) 64px;
  grid-template-areas:"brand status" "kpis kpis" "cam cam" "lat find" "tour tour";
  column-gap:10px; row-gap:10px; padding:0 12px;
}
.stage::before{
  content:''; position:absolute; left:0; right:0; top:0; height:52px; z-index:0; pointer-events:none;
  background:linear-gradient(180deg,#0C1117 0%,#080B10 100%); border-bottom:1px solid var(--line);
}
.stage::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(600px 300px at 50% 26%,rgba(92,200,255,.05),transparent 70%),
    radial-gradient(420px 260px at 85% 92%,rgba(92,200,255,.03),transparent 70%);
}
.brand,.status,.kpis,.cam,.lat,.find,.tour{position:relative;z-index:1}
.brand{grid-area:brand}
.status{grid-area:status}
.kpis{grid-area:kpis}
.cam{grid-area:cam}
.lat{grid-area:lat}
.find{grid-area:find}
.tour{grid-area:tour}

/* ── Kopf ──────────────────────────────────────────────────────────────── */
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.logo{
  width:34px;height:34px;border-radius:10px;flex:none;
  display:grid;place-items:center;color:var(--acc);
  background:radial-gradient(circle at 30% 22%,rgba(92,200,255,.28),rgba(92,200,255,.05) 70%);
  border:1px solid rgba(92,200,255,.3);
  box-shadow:0 0 22px -6px rgba(92,200,255,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.logo svg{width:20px;height:20px}
.brand-tx{
  min-width:0;display:grid;grid-template-columns:auto auto;grid-template-areas:"name name" "co fict";
  justify-content:start;align-items:center;column-gap:7px;row-gap:3px;
}
.brand-name{grid-area:name;display:block;font-size:15px;font-weight:680;letter-spacing:-.015em;line-height:1.15;white-space:nowrap}
.brand-co{grid-area:co;font-size:11.5px;color:var(--muted);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fict{
  grid-area:fict;justify-self:start;font-size:10px;letter-spacing:.04em;color:var(--ink-2);white-space:nowrap;
  border:1px solid var(--line-2);border-radius:99px;padding:1px 7px;
}
.status{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.live{
  display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 11px;
  border:1px solid var(--line-2);border-radius:99px;font-size:12px;font-weight:620;color:var(--ink-2);
  background:rgba(255,255,255,.02);white-space:nowrap;
}
.live i{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(65,220,152,.15),0 0 10px var(--ok);animation:blink 2s ease-in-out infinite}
.live time{font-family:var(--mono);font-weight:400;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.live.stop i{background:var(--amber);box-shadow:0 0 0 3px rgba(255,191,79,.15),0 0 10px var(--amber);animation:none}

/* ── Kennzahlen ────────────────────────────────────────────────────────── */
.kpis{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  border:1px solid var(--line);border-radius:14px;
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
}
.kpi{display:flex;flex-direction:column;justify-content:center;padding:0 14px;border-left:1px solid var(--line);min-width:0}
.kpi:first-child{border-left:0}
.kl{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kv{display:flex;align-items:baseline;gap:3px;font-size:19px;font-weight:640;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.kv b{font-weight:640}
.kv small{font-size:11.5px;font-weight:520;color:var(--muted);letter-spacing:0}
.kn{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.k-lat .kv b{color:var(--acc)}
.k-rej .kv b{color:var(--ink)}
.k-rej.hot .kv b{color:var(--nio)}

/* ── Karten ────────────────────────────────────────────────────────────── */
.card{
  min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 40px -28px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.035);
}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 6px 14px;min-height:38px}
.card-t{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:660;color:var(--ink-2);white-space:nowrap}
.card-sub{font-size:11.5px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--muted);overflow:hidden;text-overflow:ellipsis}

.badge{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px 0 6px;border-radius:99px;font-size:11px;font-weight:620;white-space:nowrap}
.badge .i{width:13px;height:13px;stroke-width:2.2}
.badge.ok{color:var(--ok);background:var(--ok-12);border:1px solid rgba(65,220,152,.28)}

/* Segment-Schalter */
.seg{display:inline-flex;padding:2px;border-radius:9px;background:rgba(255,255,255,.04);border:1px solid var(--line);flex:none}
.seg button{height:24px;padding:0 10px;border-radius:7px;font-size:11.5px;font-weight:600;color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:6px;transition:background-color .15s,color .15s}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:rgba(255,255,255,.1);color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.seg button.press{transform:scale(.95)}

/* ── Kamera ────────────────────────────────────────────────────────────── */
.cam-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 14px;min-height:40px}
.rec{width:7px;height:7px;border-radius:50%;background:var(--nio);box-shadow:0 0 0 3px rgba(255,94,108,.14),0 0 8px var(--nio);animation:blink 1.4s ease-in-out infinite;flex:none}
.cam-view{position:relative;height:282px;margin:0 6px;border-radius:10px;overflow:hidden;background:#07090C;border:1px solid rgba(255,255,255,.06)}
.cam-view canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.hud{position:absolute;z-index:2;font-family:var(--mono);font-size:10px;line-height:1.25;letter-spacing:.02em;color:rgba(214,230,242,.82);text-shadow:0 1px 2px rgba(0,0,0,.9);white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums}
.hud b{font-weight:400;color:#F2F7FB}
.hud-sep{margin:0 5px;color:rgba(214,230,242,.45)}
.hud-tl{left:10px;top:9px}
.hud-bl{left:10px;bottom:8px;display:flex;flex-direction:column;gap:2px}
.hud-bl .hl-row{display:block}
.hud .hl-acc{color:var(--acc-2)}
.belt-st{
  position:absolute;z-index:3;left:50%;top:10px;transform:translate(-50%,-4px) scale(.96);
  display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 14px 0 12px;border-radius:99px;
  font-size:12.5px;font-weight:640;color:#FFE2A8;white-space:nowrap;pointer-events:none;
  background:rgba(12,14,18,.82);border:1px solid rgba(255,191,79,.42);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  box-shadow:0 12px 30px -10px rgba(0,0,0,.8);
  opacity:0;transition:opacity .25s,transform .25s var(--ease);
}
.belt-st i{width:10px;height:10px;border-radius:2px;background:var(--amber)}
.belt-st.on{opacity:1;transform:translate(-50%,0) scale(1)}
.toast{
  position:absolute;z-index:4;left:50%;bottom:10px;transform:translate(-50%,6px);
  display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 24px);height:30px;padding:0 12px 0 10px;border-radius:9px;
  font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap;pointer-events:none;
  background:rgba(14,18,25,.9);border:1px solid rgba(255,191,79,.4);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 14px 30px -12px rgba(0,0,0,.85);
  opacity:0;transition:opacity .22s,transform .3s var(--ease);
}
.toast span{overflow:hidden;text-overflow:ellipsis}
.toast .i{width:15px;height:15px;color:var(--amber)}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* Bedienleiste */
.ctl{
  display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;align-items:end;column-gap:14px;
  padding:9px 12px 11px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;
  border-radius:10px;font-size:12.5px;font-weight:640;letter-spacing:-.005em;white-space:nowrap;
  border:1px solid var(--line-2);background:rgba(255,255,255,.04);color:var(--ink);
  transition:background-color .15s,border-color .15s,transform .12s,box-shadow .2s,color .15s;
}
.btn .i{width:15px;height:15px;fill:currentColor;stroke:none}
.btn:hover{background:rgba(255,255,255,.08);border-color:var(--line-3)}
.btn:active,.btn.press{transform:scale(.97)}
.run{min-width:128px}
.run .ic-play{display:none}
.run.stopped{
  background:linear-gradient(180deg,#8BD9FF,#4DB8F0);color:#04131D;border-color:transparent;
  box-shadow:0 8px 22px -12px rgba(92,200,255,.95),inset 0 1px 0 rgba(255,255,255,.45);
}
.run.stopped:hover{background:linear-gradient(180deg,#9CE0FF,#5CC2F5)}
.run.stopped .ic-play{display:block}
.run.stopped .ic-stop{display:none}
.ctl-s{min-width:0;display:flex;flex-direction:column;gap:6px}
.ctl-l{display:flex;align-items:baseline;justify-content:space-between;gap:7px;font-size:10.5px;font-weight:600;color:var(--muted);white-space:nowrap;min-width:0}
.ctl-l > span{overflow:hidden;text-overflow:ellipsis}
.ctl-l output{font-family:var(--mono);font-size:11px;font-weight:400;color:var(--ink);font-variant-numeric:tabular-nums;flex:none}
.ctl-inj{display:flex;flex-direction:column;gap:6px;min-width:0}
.inj{display:flex;gap:4px}
.inj button{
  display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 8px 0 6px;border-radius:8px;
  font-size:12px;font-weight:600;color:var(--ink-2);white-space:nowrap;
  border:1px solid rgba(255,191,79,.26);background:rgba(255,191,79,.06);
  transition:background-color .15s,border-color .15s,color .15s,transform .12s;
}
.inj button .i{width:14px;height:14px;color:var(--amber);stroke-width:1.7}
.inj button:hover{background:rgba(255,191,79,.13);border-color:rgba(255,191,79,.5);color:var(--ink)}
.inj button:active,.inj button.press{transform:scale(.95)}
.inj button.armed{background:rgba(255,191,79,.18);border-color:rgba(255,191,79,.7);color:#FFE7B8}

/* Schieberegler */
.range{
  -webkit-appearance:none;appearance:none;width:100%;height:24px;margin:-2px 0;background:transparent;cursor:pointer;
  --p:50%;
}
.range:focus{outline:none}
.range:focus-visible{outline:2px solid var(--acc);outline-offset:3px;border-radius:6px}
.range::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,var(--acc) 0,var(--acc) var(--p),rgba(255,255,255,.12) var(--p))}
.range::-moz-range-track{height:4px;border-radius:4px;background:rgba(255,255,255,.12)}
.range::-moz-range-progress{height:4px;border-radius:4px;background:var(--acc)}
.range::-webkit-slider-thumb{
  -webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;
  background:#F4F8FB;border:3px solid var(--acc);box-shadow:0 2px 8px rgba(0,0,0,.6);
  transition:transform .15s var(--ease);
}
.range::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#F4F8FB;border:3px solid var(--acc);box-shadow:0 2px 8px rgba(0,0,0,.6);box-sizing:border-box}
.range:hover::-webkit-slider-thumb,.range.drag::-webkit-slider-thumb{transform:scale(1.15)}
.range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 5px rgba(92,200,255,.25),0 2px 8px rgba(0,0,0,.6)}

/* ── Reaktionszeit ─────────────────────────────────────────────────────── */
.lat{display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"h h" "nums graph" "st st"}
.lat .card-h{grid-area:h}
.lat-nums{grid-area:nums;display:flex;flex-direction:column;justify-content:flex-start;gap:12px;padding:2px 0 6px 14px;min-width:0}
.lat-now{display:flex;flex-direction:column;gap:1px}
.ln-l,.lat-stats dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:620;white-space:nowrap}
.ln-v{display:flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums}
.ln-v b{font-size:26px;font-weight:650;letter-spacing:-.03em;line-height:1.05;color:var(--ink);min-width:2.6ch}
.ln-v small{font-size:12px;color:var(--muted);font-weight:520}
.lat-stats{display:flex;flex-direction:column;gap:6px;padding-top:9px;border-top:1px solid var(--line)}
.lat-stats div{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.lat-stats dd{font-family:var(--mono);font-size:12.5px;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}
.lat-stats dd::after{content:' ms';font-size:10.5px;color:var(--muted)}
.lat-stats div:nth-child(2) dd{color:var(--acc-2)}
.lat-graph{grid-area:graph;position:relative;min-height:0;margin:0 10px 0 8px}
.lat-graph canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.lat-stages{grid-area:st;padding:8px 14px 11px}
.st-bar{position:relative;display:flex;height:8px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.05)}
.st-bar i{display:block;height:100%;width:0;transition:width .35s var(--ease)}
.st-bar i + i{box-shadow:-1px 0 0 rgba(5,7,10,.85)}
.st-bar .s0{background:var(--s0)} .st-bar .s1{background:var(--s1)} .st-bar .s2{background:var(--s2)} .st-bar .s3{background:var(--s3)} .st-bar .s4{background:var(--s4)}
.st-rest{flex:1;background:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 4px,transparent 4px 8px)}
.st-leg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:7px}
.st-leg li{min-width:0;display:flex;flex-direction:column;gap:1px}
.st-leg .sl-n{display:flex;align-items:center;gap:5px;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-leg .sl-n i{width:7px;height:7px;border-radius:2px;flex:none}
.st-leg i.c0{background:var(--s0)} .st-leg i.c1{background:var(--s1)} .st-leg i.c2{background:var(--s2)} .st-leg i.c3{background:var(--s3)} .st-leg i.c4{background:var(--s4)}
.st-leg .sl-v{font-family:var(--mono);font-size:11.5px;color:var(--ink);padding-left:12px;font-variant-numeric:tabular-nums}

/* ── Befunde ───────────────────────────────────────────────────────────── */
.find-wrap{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.find-wrap::after{content:'';position:absolute;left:0;right:8px;bottom:0;height:20px;pointer-events:none;background:linear-gradient(180deg,rgba(10,14,19,0),var(--panel))}
.find-list{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding:0 4px 14px 6px;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
.find-list::-webkit-scrollbar{width:6px}
.find-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:6px}
.find-list::-webkit-scrollbar-track{background:transparent}
.find-list li{margin-bottom:1px}
.fr{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;
  padding:5px 8px 5px 6px;border-radius:10px;border:1px solid transparent;
  transition:background-color .15s,border-color .15s;
}
.fr:hover{background:rgba(255,255,255,.04)}
.fr[aria-current="true"]{background:var(--acc-08);border-color:rgba(92,200,255,.28)}
.fr.press{transform:scale(.985)}
.fr-th{width:38px;height:38px;border-radius:8px;overflow:hidden;background:#0B0E12;border:1px solid rgba(255,255,255,.07);position:relative}
.fr-th canvas{width:100%;height:100%;display:block}
.fr-tx{min-width:0;display:flex;flex-direction:column;gap:2px}
.fr-t{font-size:12.5px;font-weight:620;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
.fr-m{font-family:var(--mono);font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.fr-test{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;font-family:var(--sans);font-size:9.5px;font-weight:700;letter-spacing:.06em;color:#1A1203;background:var(--amber);vertical-align:1px}
.pill{display:inline-flex;align-items:center;justify-content:center;height:20px;min-width:38px;padding:0 7px;border-radius:6px;font-size:10.5px;font-weight:720;letter-spacing:.06em}
.pill.nio{color:#FFD9DD;background:var(--nio-12);border:1px solid rgba(255,94,108,.4)}
.pill.ok{color:#C9F7E1;background:var(--ok-12);border:1px solid rgba(65,220,152,.36)}
.fr.fresh{animation:rowIn .5s var(--ease) both}
.find-empty{padding:16px 10px;font-size:12px;color:var(--muted);line-height:1.5}

/* ── Rundgang-Leiste ───────────────────────────────────────────────────── */
.tour{
  margin:0 -12px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:0 14px 2px;overflow:hidden;
  background:linear-gradient(180deg,#0B0F15,#080B0F);border-top:1px solid var(--line);
}
.t-num{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:var(--acc-08);border:1px solid rgba(92,200,255,.26);
  font-family:var(--mono);font-size:11.5px;color:rgba(92,200,255,.8);
  grid-auto-flow:column;align-content:center;justify-content:center;
}
.t-num b{font-weight:400;font-size:15px;color:var(--acc)}
.t-num svg{width:18px;height:18px;fill:none;stroke:var(--acc);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:none}
.t-tx{min-width:0}
.t-title{display:block;font-size:13.5px;font-weight:650;letter-spacing:-.012em;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-sub{display:block;margin-top:2px;font-size:11.5px;line-height:1.4;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.t-tx.swap{animation:capIn .45s var(--ease) both}
.t-ctl{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.t-dots{display:flex;gap:0;margin:-5px -5px -4px 0}
.t-dots button{width:24px;height:24px;display:grid;place-items:center;border-radius:50%}
.t-dots button i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.2);transition:background .2s}
.t-dots button:hover i{background:rgba(255,255,255,.5)}
.t-dots button[aria-current="step"] i{background:var(--acc)}
.t-btn{
  height:26px;padding:0 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:620;color:var(--ink-2);border:1px solid var(--line-2);background:rgba(255,255,255,.03);white-space:nowrap;
}
.t-btn:hover{color:var(--ink);border-color:var(--line-3)}
.t-btn .i{width:12px;height:12px;fill:currentColor;stroke:none}
.t-prog{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(255,255,255,.05)}
.t-prog i{display:block;height:100%;width:100%;background:linear-gradient(90deg,rgba(92,200,255,.35),var(--acc));transform-origin:0 50%;transform:scaleX(0)}
.tour[data-mode="hold"] .t-prog i,.tour[data-mode="off"] .t-prog i{background:var(--amber);opacity:.6}
.tour[data-mode="static"] .t-ctl,.tour[data-mode="static"] .t-prog{display:none}
.tour[data-mode="static"] .t-num b,.tour[data-mode="static"] .t-num span{display:none}
.tour[data-mode="static"] .t-num svg{display:block}

/* ── Befund-Detail ─────────────────────────────────────────────────────── */
.detail{position:absolute;left:0;right:0;top:0;bottom:64px;z-index:30;display:grid;place-items:center;padding:16px}
.detail[hidden]{display:none}
.dt-back{position:absolute;inset:0;background:rgba(3,5,8,.7);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:fadeIn .25s ease both}
.dt-card{
  position:relative;width:640px;max-width:100%;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,#111720,#0B0F14);border:1px solid var(--line-2);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.05);
  animation:popIn .32s var(--ease) both;
}
.dt-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 14px 12px 16px;border-bottom:1px solid var(--line)}
.dt-h .pill{height:24px;min-width:44px;font-size:11.5px}
.dt-ht{min-width:0}
.dt-ht h2{font-size:16px;font-weight:680;letter-spacing:-.015em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt-id{display:block;margin-top:2px;font-family:var(--mono);font-size:11px;color:var(--muted);white-space:nowrap}
.dt-nav{display:flex;align-items:center;gap:4px}
.dt-pos{font-family:var(--mono);font-size:11px;color:var(--muted);min-width:44px;text-align:center;font-variant-numeric:tabular-nums}
.ibtn{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--ink-2);border:1px solid var(--line-2);background:rgba(255,255,255,.03);transition:background-color .15s,color .15s,border-color .15s}
.ibtn:hover{background:rgba(255,255,255,.08);color:var(--ink);border-color:var(--line-3)}
.ibtn:disabled{opacity:.35;cursor:default}
.ibtn .i{width:16px;height:16px}
.ibtn.close{margin-left:6px}
.dt-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;padding:16px}
.dt-img{position:relative;display:flex;flex-direction:column;gap:8px}
.dt-img canvas{width:300px;height:300px;border-radius:12px;display:block;background:#07090C;border:1px solid rgba(255,255,255,.07)}
.dt-img figcaption{font-family:var(--mono);font-size:10.5px;color:var(--muted);text-align:center}
.dt-facts{display:flex;flex-direction:column;min-width:0}
.dt-facts > div{display:flex;flex-direction:column;gap:2px;padding:7px 0;border-bottom:1px solid var(--line)}
.dt-facts > div:first-child{padding-top:0}
.dt-facts > div:last-child{border-bottom:0}
.dt-facts dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:620}
.dt-facts dd{font-size:13px;color:var(--ink);font-weight:560;line-height:1.35}
.dt-facts dd.mono{font-family:var(--mono);font-weight:400;font-size:12.5px;font-variant-numeric:tabular-nums}
.dt-facts dd .bad{color:#FF8C96}
.dt-facts dd .good{color:var(--ok)}
.dt-facts dd .mutedx{color:var(--muted)}
.gauge{position:relative;height:22px;margin-top:6px}
.gauge .g-track{position:absolute;left:0;right:0;top:9px;height:4px;border-radius:3px;background:rgba(255,255,255,.08)}
.gauge .g-ok{position:absolute;top:9px;height:4px;border-radius:3px;background:rgba(65,220,152,.45)}
.gauge .g-mark{position:absolute;top:3px;width:3px;height:16px;margin-left:-1.5px;border-radius:2px;background:var(--nio);box-shadow:0 0 8px rgba(255,94,108,.8)}
.gauge .g-mark.good{background:var(--ok);box-shadow:0 0 8px rgba(65,220,152,.7)}
.gauge .g-tick{position:absolute;top:24px;transform:translateX(-50%);font-family:var(--mono);font-size:9.5px;color:var(--muted);white-space:nowrap}
.gauge.has-ticks{margin-bottom:14px}

/* ── Tour-Werkzeuge: Zeiger + Spotlight ────────────────────────────────── */
.cursor{position:absolute;left:0;top:0;z-index:40;width:22px;height:26px;pointer-events:none;opacity:0;transition:opacity .3s;will-change:transform}
.cursor.on{opacity:1}
.cursor svg{width:22px;height:26px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.6))}
.ripple{position:absolute;z-index:39;left:0;top:0;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;border:2px solid var(--acc);pointer-events:none;opacity:0}
.ripple.go{animation:ripple .55s ease-out both}
.spot{
  position:absolute;z-index:38;left:0;top:0;pointer-events:none;border-radius:14px;opacity:0;
  border:1.5px solid rgba(92,200,255,.85);
  box-shadow:0 0 0 4px rgba(92,200,255,.12),0 0 28px rgba(92,200,255,.28);
  transition:opacity .35s, left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
}
.spot.on{opacity:1;animation:spotPulse 1.8s ease-in-out infinite}

/* ── Layout: quer (1280 x 800) ─────────────────────────────────────────── */
.stage[data-layout="land"]{
  grid-template-columns:318px minmax(0,1fr) 236px 150px;
  grid-template-rows:60px auto minmax(0,1fr) 58px;
  grid-template-areas:"brand kpis kpis status" "cam cam find find" "lat lat find find" "tour tour tour tour";
  column-gap:12px; row-gap:12px; padding:0 14px;
}
.stage[data-layout="land"]::before{height:60px}
.stage[data-layout="land"] .brand-name{font-size:15.5px}
.stage[data-layout="land"] .co-line{display:none}
.stage[data-layout="land"] .kpis{border:0;border-radius:0;background:none;margin:9px 0}
.stage[data-layout="land"] .kpi{padding:0 15px}
.stage[data-layout="land"] .kl{letter-spacing:.06em;font-size:9.5px}
.stage[data-layout="land"] .kpi:first-child{border-left:1px solid var(--line)}
.stage[data-layout="land"] .kv{font-size:18px}
.stage[data-layout="land"] .kn{display:none}
.stage[data-layout="land"] .cam-view{height:366px}
.stage[data-layout="land"] .ctl{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;column-gap:22px}
.stage[data-layout="land"] .run{min-width:140px}
.stage[data-layout="land"] .lat{
  grid-template-columns:132px minmax(0,1fr) 250px;grid-template-rows:auto minmax(0,1fr);
  grid-template-areas:"h h h" "nums graph st";
}
.stage[data-layout="land"] .lat-nums{gap:9px;padding-bottom:12px}
.stage[data-layout="land"] .lat-stats{gap:4px;padding-top:7px}
.stage[data-layout="land"] .lat-graph{margin:0 10px 10px 8px}
.stage[data-layout="land"] .lat-stages{padding:2px 14px 12px 12px;border-left:1px solid var(--line)}
.stage[data-layout="land"] .st-leg{grid-template-columns:1fr;gap:3px;margin-top:9px}
.stage[data-layout="land"] .st-leg li{flex-direction:row;align-items:center;justify-content:space-between}
.stage[data-layout="land"] .st-leg .sl-v{padding-left:0}
.stage[data-layout="land"] .tour{margin:0 -14px;padding:0 16px 2px}
.stage[data-layout="land"] .t-title{font-size:14px}
.stage[data-layout="land"] .t-sub{font-size:12px;-webkit-line-clamp:1}
.stage[data-layout="land"] .detail{bottom:58px}
.stage[data-layout="land"] .dt-card{width:700px}
.stage[data-layout="land"] .dt-body{grid-template-columns:320px minmax(0,1fr)}
.stage[data-layout="land"] .dt-img canvas{width:320px;height:320px}
.stage[data-layout="land"] .fr{grid-template-columns:42px minmax(0,1fr) auto;padding:6px 8px 6px 6px}
.stage[data-layout="land"] .fr-th{width:42px;height:42px}

/* ── Layout: Handy (440 breit) ─────────────────────────────────────────── */
.stage[data-layout="compact"]{
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:50px 54px auto 210px minmax(0,1fr) 88px;
  grid-template-areas:"brand status" "kpis kpis" "cam cam" "lat lat" "find find" "tour tour";
  column-gap:8px; row-gap:8px; padding:0 10px;
}
.stage[data-layout="compact"]::before{height:50px}
.stage[data-layout="compact"] .brand-co{display:none}
.stage[data-layout="compact"] .brand-tx{grid-template-areas:"name" "fict";grid-template-columns:auto}
.stage[data-layout="compact"] .brand-name{font-size:14.5px}
.stage[data-layout="compact"] .logo{width:32px;height:32px}
.stage[data-layout="compact"] .live{height:28px;padding:0 10px;font-size:11.5px}
.stage[data-layout="compact"] .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.stage[data-layout="compact"] .k-fps,.stage[data-layout="compact"] .k-tot{display:none}
.stage[data-layout="compact"] .kpi{padding:0 12px}
.stage[data-layout="compact"] .k-lat{border-left:0}
.stage[data-layout="compact"] .kv{font-size:18px}
.stage[data-layout="compact"] .card-sub{display:none}
.stage[data-layout="compact"] .cam-view{height:206px}
.stage[data-layout="compact"] .toast{bottom:auto;top:5px;left:6px;height:26px;font-size:11.5px;padding:0 10px 0 8px;max-width:calc(100% - 100px);transform:translateY(-6px)}
.stage[data-layout="compact"] .toast.on{transform:none}
.stage[data-layout="compact"] .ctl{grid-template-columns:148px minmax(0,1fr);grid-template-rows:auto auto;row-gap:10px;column-gap:14px;padding:9px 12px 11px}
.stage[data-layout="compact"] .run{width:100%}
.stage[data-layout="compact"] .ctl-inj .inj button{padding:0 8px 0 7px}
.stage[data-layout="compact"] .lat{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"h" "nums" "graph" "st"}
.stage[data-layout="compact"] .lat-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 14px 2px}
.stage[data-layout="compact"] .lat-stats{display:contents}
.stage[data-layout="compact"] .lat-stats div,.stage[data-layout="compact"] .lat-now{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:1px}
.stage[data-layout="compact"] .ln-l,.stage[data-layout="compact"] .lat-stats dt{font-size:9.5px}
.stage[data-layout="compact"] .ln-v b{font-size:14px;font-family:var(--mono);font-weight:400;letter-spacing:0;min-width:0}
.stage[data-layout="compact"] .ln-v small{font-size:10.5px}
.stage[data-layout="compact"] .lat-stats dd{font-size:14px}
.stage[data-layout="compact"] .lat-stages{padding:5px 14px 9px}
.stage[data-layout="compact"] .st-leg{margin-top:6px;gap:4px}
.stage[data-layout="compact"] .st-leg .sl-v{font-size:10.5px;padding-left:12px}
.stage[data-layout="compact"] .st-leg .sl-n{font-size:10px}
.stage[data-layout="compact"] .tour{margin:0 -10px;padding:0 12px 2px;gap:11px}
.stage[data-layout="compact"] .t-num{width:34px;height:34px}
.stage[data-layout="compact"] .t-dots{display:none}
.stage[data-layout="compact"] .t-btn{width:32px;height:32px;padding:0;justify-content:center}
.stage[data-layout="compact"] .t-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stage[data-layout="compact"] .t-btn .i{width:13px;height:13px}
.stage[data-layout="compact"] .t-sub{-webkit-line-clamp:3;font-size:11px}
.stage[data-layout="compact"] .t-title{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.stage[data-layout="compact"] .detail{bottom:88px;padding:10px;place-items:center}
.stage[data-layout="compact"] .dt-card{width:420px}
.stage[data-layout="compact"] .dt-h{grid-template-columns:auto minmax(0,1fr);row-gap:10px;padding:12px}
.stage[data-layout="compact"] .dt-nav{grid-column:1 / -1;justify-content:flex-end}
.stage[data-layout="compact"] .dt-body{grid-template-columns:1fr;padding:12px;gap:12px}
.stage[data-layout="compact"] .dt-img{align-items:center}
.stage[data-layout="compact"] .dt-img canvas{width:260px;height:260px}
.stage[data-layout="compact"] .dt-facts > div{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:10px;align-items:baseline;padding:6px 0}
.stage[data-layout="compact"] .dt-facts > div:first-child{padding-top:0}
.stage[data-layout="compact"] .dt-facts .gauge{grid-column:1 / -1}
.stage[data-layout="compact"] .dt-facts dd{font-size:12.5px}
.stage[data-layout="compact"] .dt-facts dd.mono{font-size:12px}

/* ── Animationen ───────────────────────────────────────────────────────── */
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes capIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes rowIn{from{opacity:0;transform:translateY(-8px);background:rgba(255,94,108,.14)}60%{opacity:1;transform:none}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ripple{from{opacity:.9;transform:scale(.3)}to{opacity:0;transform:scale(1.6)}}
@keyframes spotPulse{0%,100%{box-shadow:0 0 0 4px rgba(92,200,255,.12),0 0 28px rgba(92,200,255,.28)}50%{box-shadow:0 0 0 7px rgba(92,200,255,.06),0 0 36px rgba(92,200,255,.38)}}

/* Pause (Host-Befehl oder verstecktes Fenster): alles steht */
html.paused *,html.paused *::before,html.paused *::after{animation-play-state:paused !important}
/* Reduzierte Bewegung / ?motion=off: keine Animationen, keine Uebergaenge */
html.reduced *,html.reduced *::before,html.reduced *::after{animation:none !important;transition:none !important}
