#scene { position:fixed; inset:0; width:100%; height:100%; }
#labels { position:fixed; inset:0; pointer-events:none; }
#panel-cycle { bottom:78px; left:16px; width:300px; }
#panel-joints { top:16px; left:16px; width:290px; }
#panel-muscles { top:16px; right:16px; width:292px; }
#panel-force { bottom:78px; right:16px; width:280px; }
#panel-view { top:16px; left:16px; width:270px; }
#panel-info { left:50%; right:auto; bottom:64px; transform:translateX(-50%); width:330px; }
.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; }
.speed-seg button { flex:1 1 30%; display:flex; flex-direction:column; align-items:center; gap:1px; padding:5px 4px; }
.speed-seg button small { font-size:9px; opacity:.7; font-variant-numeric:tabular-nums; }
.cam-seg button { flex:1 1 30%; }
.panel .move-seg button { flex:1 1 30%; padding:6px 4px; }
.panel .move-seg button.loading { opacity:.55; }
#move-desc { margin:6px 0 10px; }
body.move-clip .walk-only { display:none !important; }
body:not(.move-clip) .move-only { display:none !important; }
.chart { display:block; width:100%; border-radius:10px; touch-action:none; }
body.theme-dark .chart { background:var(--vk-panel-surface); }
body.theme-light .chart { background:var(--vk-panel-surface); }
#timeline { height:74px; margin-top:8px; cursor:ew-resize; }
#joint-chart { height:258px; margin-top:8px; }
#grf-chart { height:150px; margin:8px 0 6px; }
.cyc-head { display:flex; align-items:center; gap:12px; }
.panel .cyc-head .act { width:auto; margin:0; padding:8px 16px; display:inline-flex; align-items:center; gap:6px; }
.panel .cyc-head .act svg { width:13px; height:13px; }
.cyc-pct strong { display:block; font-size:26px; font-weight:450; line-height:1; font-variant-numeric:tabular-nums; }
.cyc-pct span { font-size:10px; opacity:.62; }
.phase-box { margin:10px 0 2px; padding:10px 11px; border-radius:10px; min-height:118px; }
body.theme-dark .phase-box, body.theme-light .phase-box { background:var(--vk-panel-surface); }
.phase-box b { font-size:12.5px; }
.phase-box p { margin-top:4px; }
.toggles { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:10px; }
.toggles.layers { margin-top:4px; flex-direction:column; gap:4px; }
.toggles .check { min-height:26px; font-size:11px; }
#emg-list { display:flex; flex-direction:column; gap:1px; margin-top:6px; }
.emg-row { display:grid; grid-template-columns:112px 1fr 32px; align-items:center; gap:8px; border:0; padding:3px 6px; border-radius:8px; background:transparent; color:inherit; font:inherit; cursor:pointer; text-align:left; }
.emg-row:hover { background:var(--vk-panel-surface); }
.emg-row.selected { background:var(--vk-panel-surface); }
.emg-row .nm { font-size:10.5px; line-height:1.2; hyphens:auto; -webkit-hyphens:auto; }
.emg-row.selected .nm { color:var(--pal-accent); font-weight:650; }
body.theme-dark .emg-row.selected .nm { color:var(--pal-soft); }
.emg-row canvas { width:100%; height:24px; display:block; }
.emg-row .val { font-size:10px; text-align:right; font-variant-numeric:tabular-nums; opacity:.75; }
#muscle-detail h4 small { display:block; font-weight:400; font-size:10px; opacity:.6; margin-top:1px; }
.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%); font-variant-numeric:tabular-nums; }
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; }
#load-state { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); font-size:13px; }
.play-pill .ic-pause { display:none; }
.play-pill.playing .ic-pause { display:inline; }
.play-pill.playing .ic-play { display:none; }
a { color:inherit; }
@media(max-width:768px) {
  #panel-cycle,#panel-joints,#panel-muscles,#panel-force,#panel-view,#panel-info { width:auto; max-height:54vh; }
  #mobile-navbar .nav-btn { font-size:9px; }
  .tag { font-size:9.5px; padding:3px 6px; }
  #joint-chart { height:230px; }
}
/* 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); }

/* Film, Interagieren: zweites Panel rechts (Bewegung links) */
body.buehne-film #panel-view.film-frei { left: auto !important; right: 16px !important; }
