#scene { position:fixed; inset:0; width:100%; height:100%; }
#labels { position:fixed; inset:0; pointer-events:none; }
#panel-explore { top:16px; left:16px; width:268px; }
#panel-gaze { top:16px; right:16px; width:280px; }
#panel-optics { top:16px; right:16px; width:292px; }
#panel-info { left:50%; right:auto; bottom:64px; transform:translateX(-50%); width:340px; }
.panel { touch-action:pan-y; }
.panel h4 { font-size:13px; font-weight:650; margin:10px 0 4px; }
.panel p + p { margin-top:8px; }
.panel button { min-width:0; overflow-wrap:break-word; }
.panel .small { font-size:10px; opacity:.6; }
.panel .seg { flex-wrap:wrap; }
.panel .seg button { white-space:normal; line-height:1.25; }
.mode-grid, .part-list { display:grid; gap:4px; }
.mode-grid { grid-template-columns:repeat(3,1fr); margin-bottom:8px; }
.part-list { grid-template-columns:1fr 1fr; gap:3px; max-height:190px; overflow-y:auto; overflow-x:hidden; padding-right:4px; }
.mode-grid button, .part-list button { border:0; border-radius:8px; padding:7px 8px; color:inherit; cursor:pointer; font:inherit; font-size:11px; text-align:left; line-height:1.25; background:var(--vk-panel-surface); }
.part-list button { font-size:10px; padding:5px 7px; }
.mode-grid button { text-align:center; font-weight:600; }
body .panel button.selected { background:var(--pal-accent); color:#fff; }
.toggles { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:10px; }
.toggles.layers { flex-direction:column; gap:3px; margin-top:4px; }
.toggles .check { min-height:26px; font-size:11px; }
.chart { display:block; width:100%; border-radius:10px; touch-action:none; }
body.theme-dark .chart, body.theme-light .chart { background:var(--vk-panel-surface); }
#gaze-pad { height:150px; margin-top:8px; cursor:crosshair; }
#diplopia { height:86px; margin-top:8px; }
#blur-view { height:96px; margin-top:10px; }
#act-list { display:flex; flex-direction:column; gap:3px; margin-top:4px; }
.act-row { display:grid; grid-template-columns:104px 1fr; align-items:center; gap:8px; font-size:10.5px; cursor:pointer; padding:2px 4px; border-radius:6px; }
.act-row i { display:block; height:7px; border-radius:4px; background:var(--vk-panel-surface); overflow:hidden; }
.act-row b { display:block; height:100%; width:0; border-radius:4px; background:#d0463b; transition:width .12s; }
.act-row.dead span { opacity:.45; text-decoration:line-through; }
.act-row.selected span { color:var(--pal-accent); font-weight:650; }
body.theme-dark .act-row.selected span { color:var(--pal-soft); }
.age-row { display:flex; align-items:center; gap:10px; margin-top:10px; }
.age-row .lab { margin:0; }
.age-row input { flex:1; min-width:0; }
.age-row b { font-variant-numeric:tabular-nums; font-size:12px; min-width:22px; text-align:right; }
.panel .stat { font-size:11.5px; }
.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%); }
body.theme-dark .tag { background:rgba(10,13,26,.82); color:#e6e8f2; }
body.theme-light .tag { background:rgba(255,255,255,.9); color:#1e293b; }
.tag::before { content:''; display:inline-block; width:5px; height:5px; background:var(--pal-accent); border-radius:50%; margin-right:6px; vertical-align:middle; }
.tag.selected { color:var(--pal-soft); }
body.theme-light .tag.selected { color:var(--pal-bold); }
#load-state { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); font-size:13px; }
a { color:inherit; }
@media(max-width:768px) {
  #panel-explore,#panel-gaze,#panel-optics,#panel-info { width:auto; max-height:54vh; }
  .tag { font-size:9.5px; padding:3px 6px; }
  .part-list { grid-template-columns:repeat(3,1fr); }
}
/* Scrollbalken wie heyprof global — für JEDEN Scroll-Container (Teile-Liste, Panels, Sheets). */
@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; }
.part-list::-webkit-scrollbar-track { margin: 6px 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); }
