.studio-body .hand-panel { padding-top: 16px; border-top: 1px solid var(--line); }
.hand-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.hand-toggle { cursor: pointer; min-height: 40px; }
.hand-toggle input[role="switch"] { appearance: none; -webkit-appearance: none; position: relative; box-sizing: border-box; flex: 0 0 64px; width: 64px; height: 32px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.hand-toggle input[role="switch"]::before { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); box-shadow: 0 1px 3px #0002; transition: transform .18s ease, background .18s ease; }
.hand-toggle input[role="switch"]::after { content: 'OFF'; position: absolute; top: 8px; left: 30px; color: var(--muted); font: 700 9px/14px 'Segoe UI', sans-serif; }
.hand-toggle input[role="switch"]:checked { border-color: var(--accent); background: var(--accent); }
.hand-toggle input[role="switch"]:checked::before { transform: translateX(30px); background: var(--accent-ink); }
.hand-toggle input[role="switch"]:checked::after { content: 'ON'; left: 9px; color: var(--accent-ink); }
.hand-toggle input[role="switch"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) { .hand-toggle input[role="switch"], .hand-toggle input[role="switch"]::before { transition: none; } }
.hand-note { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 8px 0; }
.hand-camera-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hand-camera-controls select { min-width: 0; max-width: 100%; flex: 1; }
.hand-feed { position: relative; max-width: 320px; aspect-ratio: 4/3; margin-top: 12px; overflow: hidden; border-radius: 12px; background: #111; }
.hand-feed video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.hand-feed span { position: absolute; inset: auto 8px 8px; padding: 5px 8px; border-radius: 7px; background: #000a; color: #fff; font-size: .75rem; }
.hand-practice { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--shell); color: var(--ink); }
.hand-practice::backdrop { background: #0009; }
.hand-practice-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hand-practice-top span { color: var(--muted); font-size: .8rem; }
.hand-practice-actions { display: flex; align-items: center; gap: 8px; }
.hand-practice-close { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.hand-practice-close .fi { font-size: 16px; }
.hand-practice-close:hover { background: var(--surface-2); }
.hand-practice-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hand-practice h2 { margin: 16px 0 8px; font-size: 1.4rem; }
.hand-practice-icon { display: block; font-size: 44px; margin-top: 8px; }
.hand-practice p { line-height: 1.5; margin: 8px 0; }
#handPracticeCopy, #handPracticeHint { color: #c93640; font-weight: 650; }
[data-theme="dark"] #handPracticeCopy, [data-theme="dark"] #handPracticeHint { color: #ff868c; }
.hand-practice .hand-feed { width: 100%; max-width: none; }
.hand-practice select { display: block; width: 100%; margin-top: 4px; }
.hand-practice progress { display: block; width: 100%; height: 7px; margin: 16px 0; accent-color: var(--accent); }
.hand-reference { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; font-size: .8rem; }
.hand-reference li { padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.hand-player-status { position: absolute; z-index: 9; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 8px; background: #000b; color: #fff; font-size: .8rem; pointer-events: none; }
.hand-panel [hidden], .hand-player-status[hidden] { display: none !important; }
.screen-hand-settings { position: fixed; z-index: 18; top: 78px; right: 18px; max-width: min(340px, calc(100vw - 36px)); color: var(--ink); }
.screen-hand-settings[hidden] { display: none; }
.screen-hand-settings .hand-panel { position: relative; }
.screen-hand-toggle-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.screen-hand-toggle-row > .hand-toggle { gap: 12px; width: fit-content; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--shell); font-size: 13px; font-weight: 650; }
.screen-hand-options > summary { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 50%; background: var(--shell); cursor: pointer; }
.screen-hand-options > summary::-webkit-details-marker { display: none; }
.screen-hand-options > summary::marker { content: ''; }
.screen-hand-options > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screen-hand-options[open] > summary { color: var(--accent); border-color: var(--accent); }
.hand-options-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 36px)); max-height: calc(100dvh - 160px); overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--shell); box-shadow: 0 8px 28px #0004; }
.screen-hand-options[hidden] { display: none !important; }
.screen-body .hand-player-status { position: fixed; top: auto; bottom: 160px; left: 50%; transform: translateX(-50%); max-width: min(440px, calc(100vw - 36px)); }
.screen-body .screen-hand-settings, .screen-body .hand-player-status { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility .28s; }
.screen-body:has(#screenControls.available.visible) .screen-hand-settings,
.screen-body:has(#screenControls.available.visible) .hand-player-status { opacity: 1; visibility: visible; }
.screen-body:has(#screenControls.available.visible) .screen-hand-settings { pointer-events: auto; }
@media(prefers-reduced-motion:reduce) { .screen-body .screen-hand-settings, .screen-body .hand-player-status { transition: none; } }
