/* 21st patterns adapted to BananaLearn tokens; no new framework. */
:root{--comparison-small:13px;--comparison-body:14px;--practice-control-radius:12px;--practice-sheet-radius:24px}
body #practiceView .voice-compare{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;padding:8px;border-radius:16px;background:var(--banana-paper);margin-block:8px}
body #practiceView .comparison-player{display:grid;grid-template-columns:124px minmax(44px,1fr) 72px;gap:8px;align-items:center;min-width:0}
body #practiceView .comparison-player button{display:flex;align-items:center;gap:8px;padding:8px;min-height:44px;border:0;background:transparent;font-size:var(--comparison-small);white-space:nowrap;text-align:left}
.comparison-player button::before{content:'';width:0;height:0;border-block:5px solid transparent;border-left:8px solid currentColor;flex-shrink:0}
.comparison-player.is-playing button::before{width:8px;height:12px;border:0;border-inline:3px solid currentColor;box-sizing:border-box}
body #practiceView .comparison-player input{width:100%;min-width:0;height:44px;margin:0;accent-color:var(--banana-green);cursor:pointer}
.comparison-time{font:500 var(--comparison-small)/1.3 var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--banana-dark)}
body #practiceView .voice-compare .comparison-speed{justify-self:end;min-height:44px;padding:8px 12px;font-size:var(--comparison-small);border:0;background:transparent;box-shadow:none}
body #practiceView .voice-compare .comparison-speed[aria-pressed=true]{background:var(--banana-green);color:var(--banana-card)}
body #hubView :is(.open-depth,.sound-tabs){display:flex;flex-wrap:nowrap;gap:4px;padding:4px;border:0;border-radius:16px;background:var(--explore-mint);width:100%;box-sizing:border-box}
body #hubView :is(.open-depth button,.sound-tabs a){flex:1;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;font:700 var(--comparison-body)/1.3 var(--ui);border:0;border-radius:var(--practice-control-radius);box-shadow:none;background:transparent;color:var(--banana-dark);text-decoration:none}
body #hubView :is(.open-depth button[aria-pressed=true],.sound-tabs a[aria-current=page]){background:var(--banana-card);color:var(--banana-green);box-shadow:0 1px 3px var(--banana-border)}
body :is(.comparison-player button,.comparison-player input,.comparison-speed,.open-depth button,.sound-tabs a):focus-visible{outline:3px solid var(--banana-green);outline-offset:2px}
body :is(#arenaGuide,#arenaLessonGuide).practice-sheet{inset:0;width:min(640px,calc(100% - 32px));max-width:640px;height:fit-content;max-height:90dvh;margin:auto;padding:8px 0;border-radius:var(--practice-sheet-radius);overflow:hidden}
body .practice-sheet>header{flex-shrink:0}body .practice-sheet>header button{min-height:44px;min-width:64px}
@media(max-width:700px){
 body :is(#arenaGuide,#arenaLessonGuide).practice-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:100%;height:auto;max-height:92dvh;margin:0;padding:8px 0 max(8px,env(safe-area-inset-bottom));border:0;border-radius:var(--practice-sheet-radius) var(--practice-sheet-radius) 0 0;box-sizing:border-box;overflow:hidden}
 body :is(#arenaGuide,#arenaLessonGuide).practice-sheet[open]{display:flex;flex-direction:column;animation:practice-sheet-enter .18s ease-out}
 body :is(#arenaGuide,#arenaLessonGuide).practice-sheet>header{padding:8px 16px;min-height:52px}
 body :is(#arenaGuide,#arenaLessonGuide).practice-sheet>.arena-modal-body{width:100%;padding:0 16px 16px;overflow:auto;overscroll-behavior:contain;min-height:0}
 body :is(#arenaGuide,#arenaLessonGuide).practice-sheet::backdrop{background:rgb(0 0 0 / .3)}
}
@keyframes practice-sheet-enter{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){body :is(#arenaGuide,#arenaLessonGuide).practice-sheet[open]{animation:none}}
@media(max-width:380px){body #practiceView .comparison-player{grid-template-columns:116px minmax(36px,1fr) 64px;gap:4px}}

/* Two playback rows keep the sound cue readable on short mobile screens. */
body #practiceView .voice-compare{grid-template-columns:minmax(0,1fr) 48px;column-gap:8px}
body #practiceView .comparison-player{grid-column:1;grid-template-columns:116px minmax(32px,1fr);gap:4px}
body #practiceView .comparison-player .comparison-time{display:none}
body #practiceView .voice-compare .comparison-speed{grid-column:2;grid-row:1 / span 2;align-self:stretch;justify-self:stretch;padding:8px 4px;white-space:normal;min-width:44px}
body #practiceView .arena-focus{flex-shrink:0;min-height:80px;height:auto}
@media(min-width:700px){body #practiceView .comparison-player{grid-template-columns:124px minmax(48px,1fr) 80px}body #practiceView .comparison-player .comparison-time{display:block}}
