#scene { position:fixed; inset:0; width:100%; height:100%; }
#labels { position:fixed; inset:0; pointer-events:none; }
#panel-stage { top:16px; left:16px; width:280px; }
#panel-eye { top:16px; right:16px; width:280px; }
#panel-lines { bottom:78px; left:16px; width:280px; }
#panel-info { left:50%; right:auto; bottom:64px; transform:translateX(-50%); width:400px; max-height:calc(100vh - 150px); }
.panel { touch-action:pan-y; }
.panel p + p { margin-top:8px; }
.panel .hint { margin-top:8px; }
.panel .hint.small, .panel .small { font-size:10.5px; opacity:.62; }
.panel button { min-width:0; overflow-wrap:break-word; }
.panel .seg { flex-wrap:wrap; }
.panel .seg button { white-space:normal; line-height:1.2; }
.panel .stat { font-size:11.5px; gap:10px; }
.panel .stat b { font-size:11.5px; text-align:right; white-space:nowrap; }
.panel .row input[type="range"] { flex:1; min-width:0; }
.panel .row b { font-variant-numeric:tabular-nums; font-size:11.5px; min-width:48px; text-align:right; font-family:'SF Mono',ui-monospace,monospace; }
.panel .lab { margin-top:10px; }
.panel .panel-hd + .seg { margin-top:0; }
#view-seg { margin-top:4px; }
.prog-row { margin-top:4px; }
.prog-scale { display:flex; justify-content:space-between; font-size:9.5px; opacity:.55; margin:3px 2px 0; }
.toggles { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:2px; }
.toggles .check { min-height:24px; font-size:11px; }
.stats { margin-top:10px; }
.tag { position:absolute; padding:4px 8px; border-radius:7px; font:600 11px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; white-space:nowrap; transform:translate(-50%,-50%); transition:opacity .2s; }
body.theme-dark .tag { background:rgba(10,13,26,.82); color:#e6e8f2; }
body.theme-light .tag { background:rgba(255,255,255,.92); color:#1e293b; }
.tag i { display:inline-block; width:6px; height:6px; border-radius:50%; margin-right:6px; vertical-align:middle; background:var(--dot, currentColor); }
@media(max-width:768px) {
  #panel-stage,#panel-eye,#panel-lines,#panel-info { width:auto; max-height:54vh; }
  .tag { font-size:9.5px; padding:3px 6px; }
}
/* Scrollbalken wie heyprof global — für JEDEN Scroll-Container. */
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; }
  body.theme-light { scrollbar-color: rgba(0,0,0,0.15) transparent; }
  body.theme-dark  { scrollbar-color: rgba(255,255,255,0.15) transparent; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.panel::-webkit-scrollbar-track { margin: 15px 0; }
::-webkit-scrollbar-thumb { border-radius: 4px; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
body.theme-light ::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); }
body.theme-light ::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.30); }
body.theme-dark  ::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.15); }
body.theme-dark  ::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.30); }
html::-webkit-scrollbar-thumb { background-color: rgba(127,127,160,0.35); }
