:root {
  --ink: #171816;
  --paper: #f2f1ec;
  --panel: #fbfaf7;
  --line: #d8d6ce;
  --acid: #cdf04a;
  --orange: #ef6245;
  --blue: #5875db;
  --muted: #777871;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 50% 0,#fff 0,#f2f1ec 42%,#ecebe5 100%); color: var(--ink); font-family: Manrope, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.auth-pending { overflow: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 12%,#fff 0,#f5f4ef 35%,#e9e7df 100%); }
.auth-gate[hidden] { display: none; }
.auth-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,253,.94); box-shadow: 0 28px 80px rgba(30,31,28,.14); }
.auth-brand { display: flex; align-items: center; gap: 10px; font: 800 12px Roboto Mono, monospace; letter-spacing: .12em; }
.auth-copy { margin: 38px 0 25px; }
.auth-copy small { color: var(--orange); font: 700 9px Roboto Mono, monospace; letter-spacing: .12em; }
.auth-copy h1 { margin: 6px 0 7px; font-size: 34px; letter-spacing: -.05em; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-card form { display: grid; gap: 15px; }
.auth-card form label span { display: block; margin-bottom: 7px; color: #5f605a; font: 700 8px Roboto Mono, monospace; letter-spacing: .1em; }
.auth-card form input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #f7f6f2; padding: 0 13px; outline: none; }
.auth-card form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(205,240,74,.45); }
.auth-error { min-height: 18px; color: #b23d25; font-size: 11px; line-height: 1.45; }
.auth-submit { height: 52px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; padding: 0 17px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }
.auth-submit:hover { background: var(--orange); }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-switch { width: 100%; margin-top: 17px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.auth-switch b { color: var(--ink); }
.auth-demo { height: 44px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 2px 0; color: var(--muted); text-decoration: none; font-size: 11px; }
.auth-demo:hover { color: var(--ink); }
.auth-demo b { color: var(--orange); }
.topbar { height: 64px; padding: 0 3vw; display: flex; align-items: center; border-bottom: 1px solid rgba(216,214,206,.8); gap: 4vw; position: sticky; top: 0; z-index: 20; background: rgba(250,249,246,.88); backdrop-filter: blur(18px); }
.brand { color: inherit; text-decoration: none; font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--acid); border-radius: 9px; }
nav { display: flex; gap: 32px; }
nav a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mode-nav { align-self: stretch;align-items:stretch; }
.mode-nav a { display:grid;place-items:center;border-bottom:2px solid transparent;color:var(--muted); }
.mode-nav a:hover,.mode-nav a.active { border-color:var(--orange);color:var(--ink); }
.status { margin-left: auto; font: 11px Roboto Mono, monospace; color: var(--muted); }
.status i { display: inline-block; width: 7px; height: 7px; background: #75a600; border-radius: 50%; margin-right: 7px; }
.user-area { margin-left: 0; display: flex; align-items: center; gap: 8px; }
.user-area[hidden] { display: none; }
.user-area span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font: 10px Roboto Mono, monospace; white-space: nowrap; }
.user-area button { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #f8f7f3; padding: 0 11px; font-size: 10px; font-weight: 700; cursor: pointer; }
.user-area button:hover { border-color: var(--ink); background: white; }
.user-area .logout-button { border-color: transparent; background: transparent; color: var(--muted); }
.demo-area { margin-left: 0; display: flex; align-items: center; gap: 8px; }
.demo-area[hidden] { display: none; }
.demo-area span { padding: 6px 9px; border: 1px solid var(--orange); border-radius: 7px; color: var(--orange); font: 800 8px Roboto Mono, monospace; }
.demo-area button, .demo-banner button { border: 0; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }
.demo-area button { height: 34px; border-radius: 8px; padding: 0 12px; }
main { max-width: 1500px; margin: auto; }
.demo-banner { min-height: 46px; margin: 14px 2vw -8px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e3c8bf; border-radius: 11px; background: #fff2ed; padding: 8px 12px 8px 16px; color: #765248; font-size: 11px; }
.demo-banner[hidden] { display: none; }
.demo-banner b { margin-right: 5px; color: var(--orange); font: 800 9px Roboto Mono, monospace; }
.demo-banner button { height: 30px; border-radius: 7px; padding: 0 11px; font-size: 10px; }
.hero { padding: 90px 5vw 65px; position: relative; overflow: hidden; }
.hero::after { content: "♪"; position: absolute; right: 5vw; top: 16px; font: 300px/1 Manrope; color: transparent; -webkit-text-stroke: 1px #cbc7bc; transform: rotate(8deg); z-index: -1; }
.eyebrow, .panel-number { font: 600 11px Roboto Mono, monospace; letter-spacing: .13em; }
.eyebrow { color: #6d6a61; margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 7.5vw, 110px); line-height: .91; letter-spacing: -.065em; margin: 0; max-width: 1100px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero > p { max-width: 610px; line-height: 1.65; font-size: 17px; margin: 34px 0; color: #56534c; }
.hero-stats { display: flex; gap: 38px; font: 11px Roboto Mono, monospace; text-transform: uppercase; color: var(--muted); }
.hero-stats b { color: var(--ink); font-size: 14px; }
.workspace { display: grid; grid-template-columns: 1fr; margin: 22px 2vw 55px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 55px rgba(31,32,29,.09); }
.panel { background: rgba(251,250,247,.96); padding: 30px; }
.upload-panel { min-height: 104px; border-bottom: 1px solid var(--line); padding: 16px 18px; display: grid; grid-template-columns: 150px 185px 32px minmax(220px, 1fr) 155px 175px; gap: 12px; align-items: center; }
.source-intro h2 { font-size: 19px; }
.source-intro .muted { margin: 3px 0 0; }
.panel-number { color: var(--orange); margin-bottom: 8px; }
.panel h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.muted { color: var(--muted); font: 11px Roboto Mono, monospace; margin: 4px 0 24px; }
.dropzone { height: 64px; border: 1px dashed #aaa9a1; border-radius: 11px; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: center; cursor: pointer; transition: .18s; text-align: left; background: #f5f4ef; padding: 8px 12px; }
.dropzone:hover, .dropzone.drag { background: var(--acid); border-style: solid; }
.dropzone input { display: none; }
.upload-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid; border-radius: 50%; font-size: 18px; }
.dropzone strong { font-size: 14px; }
.dropzone small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.source-divider { display: grid; place-items: center; margin: 0; color: var(--muted); font: 8px Roboto Mono, monospace; letter-spacing: .08em; }
.source-divider::before, .source-divider::after { display: none; }
.url-control { display: grid; grid-template-columns: 1fr; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #f5f4ef; transition: .15s; }
.url-control.has-value { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,96,56,.12); }
.url-control input { min-width: 0; border: 0; background: transparent; padding: 0 12px; font: 11px Roboto Mono, monospace; outline: none; }
.url-control:focus-within { border-color: var(--ink); }
.url-control button { border: 0; border-left: 1px solid var(--line); background: var(--acid); cursor: pointer; font-weight: 800; }
.url-control button:disabled { opacity: .45; cursor: wait; }
.field-label { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.field-label span { color: var(--muted); font-weight: 500; }
.bpm-settings { display: grid; gap: 7px; }
.auto-bpm { cursor: pointer; text-transform: none; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.auto-bpm b, .auto-bpm small { display: block; }
.auto-bpm small { color: var(--muted); font: 8px Roboto Mono, monospace; }
.auto-bpm input { accent-color: var(--orange); vertical-align: -2px; }
.bpm-control.disabled { opacity: .35; pointer-events: none; }
.bpm-control { display: grid; grid-template-columns: 32px 1fr 32px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 34px; }
.bpm-control button { background: transparent; border: 0; cursor: pointer; font-size: 20px; }
.bpm-control input { width: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; text-align: center; font: 600 18px Roboto Mono, monospace; }
.primary { width: 100%; height: 48px; margin: 0; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; font-weight: 700; cursor: pointer; transition: .16s; }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.primary:not(:disabled):hover { background: var(--orange); }
.primary.ready { background: var(--orange); border-color: var(--orange); box-shadow: 0 8px 18px rgba(239,98,69,.2); }
.analyze-stack { min-width: 0; }
.message { height: 15px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; line-height: 1.5; color: var(--orange); }
.timeline-panel { min-width: 0; padding: 14px 0; position: relative; }
.timeline-heading { padding: 0 24px 12px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.view-selector > small { display: block; margin-bottom: 5px; color: var(--muted); font: 700 7px Roboto Mono, monospace; letter-spacing: .1em; }
.view-toggle { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: #efeee9; }
.view-toggle button { height: 39px; min-width: 108px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; background: transparent; padding: 0 13px; color: #777871; font: 800 9px Roboto Mono, monospace; cursor: pointer; transition: .15s; }
.view-toggle button i { font-style: normal; font-size: 17px; }
.view-toggle button:hover { border-color: var(--ink); color: var(--ink); }
.view-toggle button.active { background: var(--ink); color: var(--acid); box-shadow: 0 5px 14px rgba(23,24,22,.16); }
.view-selector { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; gap: 5px 9px; }
.view-selector > small { grid-column: 1 / -1; margin: 0; }
.practice-page-button { height: 45px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--orange); border-radius: 9px; background: #fff4ef; color: var(--orange); padding: 0 12px; font: 800 9px Roboto Mono, monospace; cursor: pointer; }
.practice-page-button i { font-style: normal; font-size: 15px; }
.practice-page-button b { margin-left: 3px; }
.practice-page-button:hover { background: var(--orange); color: white; }
.transport { display: flex; align-items: center; gap: 10px; font: 12px Roboto Mono, monospace; }
.transport button { border: 1px solid var(--line); border-radius: 8px; background: #f8f7f3; width: 34px; height: 34px; cursor: pointer; transition: .14s; }
.transport button:not(:disabled):hover { border-color: #9b9a93; background: white; }
.transport button:disabled { opacity: .25; cursor: not-allowed; }
.transport .play { background: var(--acid); }
.transport .loop-button { width: auto; padding: 0 10px; font: 700 9px Roboto Mono, monospace; }
.transport #loopStartButton, .transport #loopEndButton { width: 55px; font: 700 9px Roboto Mono, monospace; }
.transport .loop-button.active { background: var(--orange); color: white; }
.transport .coach-button { width: auto; padding: 0 10px; background: var(--blue); border-color: var(--blue); color: white; font: 800 9px Roboto Mono, monospace; }
.transport .download-tabs { width: auto; padding: 0 10px; border-color: #6b685f; color: #4f4d47; font: 800 9px Roboto Mono, monospace; }
.transport .download-tabs:not(:disabled):hover { background: var(--ink); color: var(--acid); }
.transport .explain-button { width: auto; padding: 0 10px; border-color: #7653b5; background: #eee8f7; color: #5f35a2; font: 800 8px Roboto Mono, monospace; }
.transport .explain-button:not(:disabled):hover { background: #6f42b5; color: white; }
.transport button.marker-set { border-color: var(--orange); color: var(--orange); }
.speed-control { width: 280px; height: 34px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px 0 8px; color: var(--muted); background: #f7f6f2; font: 7px Roboto Mono, monospace; }
.speed-control input { min-width: 60px; flex: 1; height: 3px; accent-color: var(--orange); cursor: ew-resize; }
.speed-control output { min-width: 38px; color: var(--ink); font: 700 9px Roboto Mono, monospace; }
.speed-presets { display: flex; gap: 3px; }
.transport .speed-presets button { width: 27px; height: 22px; border-color: var(--line); font: 700 8px Roboto Mono, monospace; }
.transport .speed-presets button:hover { background: var(--acid); }
.track-meta { min-height: 58px; display: flex; align-items: stretch; padding: 0 24px; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.metric-card { min-width: 180px; display: flex; flex-direction: column; justify-content: center; padding: 7px 15px; border-left: 3px solid var(--orange); background: #eeede8; }
.metric-card.hits { border-left-color: var(--blue); }
.metric-card small { color: #77746c; font: 700 7px Roboto Mono, monospace; letter-spacing: .1em; }
.metric-card strong { margin-top: 2px; color: var(--ink); font: 800 18px Manrope, sans-serif; letter-spacing: -.03em; }
.model-badge { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.model-badge > i { width: 9px; height: 9px; border-radius: 50%; background: #83ad00; box-shadow: 0 0 10px #83ad00; }
.model-badge span, .model-badge small { display: block; }
.model-badge span { color: var(--ink); font: 800 9px Roboto Mono, monospace; }
.model-badge small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.header-metrics { min-height: 0; height: 46px; margin-left: auto; padding: 0; gap: 4px; border: 0; }
.header-metrics .metric-card { min-width: 135px; padding: 4px 10px; border-radius: 7px; background: #eeede9; }
.header-metrics .metric-card strong { font-size: 14px; }
.header-metrics + .status { margin-left: 0; }
.media-stage { min-height: 96px; margin: 16px 24px 0; border: 1px solid #2e2f2b; border-radius: 14px; background: #191a18; position: relative; overflow: hidden; display: none; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 16px; }
.media-stage.visible { display: block; }
.media-stage.visible { display: flex; }
.stem-section > span { display: block; margin-bottom: 5px; color: #706e67; font: 700 7px Roboto Mono, monospace; letter-spacing: .1em; }
.stem-toggle { display: flex; height: 58px; gap: 5px; }
.stem-toggle button { min-width: 175px; display: flex; align-items: center; gap: 10px; border: 1px solid #3d3e39; border-radius: 9px; background: #22231f; color: #85867e; text-align: left; padding: 8px 12px; cursor: pointer; transition: .15s; }
.stem-toggle button > i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: 16px; }
.stem-toggle button.active { background: var(--acid); border-color: var(--acid); color: var(--ink); box-shadow: 0 7px 16px rgba(205,240,74,.12); }
.stem-toggle button:disabled { opacity: .28; cursor: not-allowed; }
.stem-toggle button b, .stem-toggle button small { display: block; }
.stem-toggle b { font-size: 11px; }
.stem-toggle small { font: 8px Roboto Mono, monospace; margin-top: 3px; }
.stem-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.stem-downloads button { height: 24px; border: 1px solid #45443f; background: transparent; color: #8d8a82; font: 700 7px Roboto Mono, monospace; cursor: pointer; }
.stem-downloads button:not(:disabled):hover { border-color: var(--acid); color: var(--acid); }
.stem-downloads button:disabled { opacity: .25; cursor: not-allowed; }
.metronome-toggle { height: 54px; min-width: 128px; display: flex; align-items: center; gap: 9px; border: 1px solid #4a4944; background: transparent; color: #85827a; text-align: left; padding: 8px 11px; cursor: pointer; }
.metronome-toggle.active { border-color: var(--acid); color: var(--acid); }
.metronome-toggle .metronome-icon { font-size: 23px; }
.metronome-toggle b, .metronome-toggle small { display: block; }
.metronome-toggle b { font-size: 10px; }
.metronome-toggle small { margin-top: 2px; font: 8px Roboto Mono, monospace; }
.metronome-volume { width: 150px; color: #aaa79e; font: 7px Roboto Mono, monospace; }
.metronome-volume span { display: flex; justify-content: space-between; margin-bottom: 7px; }
.metronome-volume output { color: var(--acid); font-weight: 800; }
.metronome-volume input { width: 100%; height: 3px; accent-color: var(--acid); cursor: ew-resize; }
.sync-control { flex: 1; max-width: 280px; color: #aaa79e; font: 8px Roboto Mono, monospace; }
.sync-control > span { display: flex; justify-content: space-between; margin-bottom: 7px; }
.sync-control output { color: var(--acid); }
.sync-control input { width: 100%; height: 3px; accent-color: var(--acid); cursor: ew-resize; }
.sync-control small { display: block; color: #66645e; margin-top: 6px; }
.sound-meter { height: 40px; display: flex; align-items: end; gap: 4px; color: var(--acid); font: 8px Roboto Mono, monospace; }
.sound-meter i { display: block; width: 3px; background: var(--acid); animation: meter .7s ease-in-out infinite alternate; animation-play-state: paused; }
.media-stage.playing .sound-meter i { animation-play-state: running; }
.sound-meter i:nth-child(1) { height: 9px; }.sound-meter i:nth-child(2) { height: 25px; animation-delay: -.4s; }.sound-meter i:nth-child(3) { height: 16px; animation-delay: -.2s; }.sound-meter i:nth-child(4) { height: 30px; animation-delay: -.6s; }.sound-meter i:nth-child(5) { height: 12px; animation-delay: -.1s; }
.sound-meter span { margin: 0 3px 2px 6px; }
@keyframes meter { to { height: 6px; } }
.analysis-loader { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; min-height: 560px; padding: 25px; background: rgba(248,247,243,.96); backdrop-filter: blur(10px); }
.analysis-loader[hidden] { display: none; }
.loader-card { width: min(620px, 92%); padding: 34px 40px 28px; border: 1px solid #2d2e2a; border-radius: 18px; background: #151614; color: #eeeae1; box-shadow: 0 24px 70px rgba(20,21,19,.22); }
.loader-visual { height: 105px; display: flex; align-items: center; justify-content: center; gap: 45px; margin-bottom: 24px; }
.loader-orbit { width: 92px; height: 92px; position: relative; display: grid; place-items: center; border: 1px solid #3f3e39; border-radius: 50%; }
.loader-orbit b { width: 42px; height: 42px; display: grid; place-items: center; background: var(--acid); color: var(--ink); font-size: 21px; transform: rotate(-5deg); }
.loader-orbit i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); animation: orbit 1.4s linear infinite; transform-origin: 46px 0; left: 40px; top: 45px; }
.loader-orbit i:nth-child(2) { background: var(--blue); animation-delay: -.47s; }
.loader-orbit i:nth-child(3) { background: var(--acid); animation-delay: -.94s; }
@keyframes orbit { to { transform: rotate(360deg) translateX(46px); } }
.loader-wave { height: 64px; display: flex; align-items: center; gap: 6px; }
.loader-wave i { width: 5px; height: 15px; background: var(--acid); animation: loader-wave .55s ease-in-out infinite alternate; }
.loader-wave i:nth-child(2), .loader-wave i:nth-child(6) { animation-delay: -.2s; }.loader-wave i:nth-child(3), .loader-wave i:nth-child(5) { animation-delay: -.4s; }.loader-wave i:nth-child(4) { animation-delay: -.1s; }
@keyframes loader-wave { to { height: 62px; background: var(--orange); } }
.loader-card > small { color: var(--acid); font: 700 8px Roboto Mono, monospace; letter-spacing: .14em; }
.loader-card h3 { margin: 6px 0 5px; font-size: 29px; letter-spacing: -.04em; }
.loader-card > p { margin: 0 0 23px; color: #89867f; font: 10px Roboto Mono, monospace; }
.loader-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.loader-stages span { padding: 7px 3px; border: 1px solid #393834; text-align: center; color: #5f5d57; font: 7px Roboto Mono, monospace; }
.loader-stages span.done { border-color: #717e36; color: #a5bb47; }
.loader-stages span.active { background: var(--acid); border-color: var(--acid); color: var(--ink); font-weight: 800; }
.loader-progress { height: 7px; background: #292925; overflow: hidden; }
.loader-progress i { display: block; width: 5%; height: 100%; background: linear-gradient(90deg,var(--orange),var(--acid)); transition: width .5s ease; }
.loader-card footer { display: flex; justify-content: space-between; padding: 10px 0 0; border: 0; color: #77746e; font: 8px Roboto Mono, monospace; }
.loader-card footer span:first-child { color: var(--acid); font-weight: 800; }
.explanation-overlay { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px; background: rgba(10,10,9,.86); backdrop-filter: blur(8px); }
.explanation-overlay[hidden] { display: none; }
.explanation-dialog { width: min(920px, 94vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; background: #faf9f6; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 90px rgba(12,12,11,.28); }
.explanation-dialog > header { flex: 0 0 auto; display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.explanation-dialog header > div { flex: 1; }
.explanation-dialog header small { color: #6f42b5; font: 800 8px Roboto Mono, monospace; letter-spacing: .12em; }
.explanation-dialog header h2 { margin: 3px 0 2px; font-size: 25px; letter-spacing: -.04em; }
.explanation-dialog header span { color: var(--muted); font: 9px Roboto Mono, monospace; }
.explanation-dialog header button { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; font-size: 23px; cursor: pointer; }
.explanation-body { overflow-y: auto; padding: 22px; }
.explanation-loading { min-height: 370px; display: grid; place-content: center; text-align: center; }
.explanation-brain { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #6f42b5; color: white; font: 800 24px Manrope, sans-serif; box-shadow: 0 0 0 0 rgba(111,66,181,.4); animation: brain-pulse 1.3s infinite; }
@keyframes brain-pulse { 70% { box-shadow: 0 0 0 22px rgba(111,66,181,0); } 100% { box-shadow: 0 0 0 0 rgba(111,66,181,0); } }
.explanation-loading h3 { margin: 0; font-size: 20px; }
.explanation-loading p { color: var(--muted); font: 9px/1.7 Roboto Mono, monospace; }
.explanation-summary { padding: 17px 19px; border-left: 5px solid #6f42b5; background: #e8e1f2; font-size: 15px; line-height: 1.6; }
.explanation-section { margin-top: 22px; }
.explanation-section h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.explanation-list { display: grid; gap: 7px; }
.explanation-item { display: grid; grid-template-columns: minmax(55px,auto) 1fr; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); background: white; }
.explanation-item > b { color: #6f42b5; font: 800 11px Roboto Mono, monospace; }
.explanation-item p { margin: 0; font-size: 12px; line-height: 1.5; }
.explanation-kick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.explanation-kick article { padding: 13px; background: #191917; color: #ddd9d0; }
.explanation-kick b { display: block; margin-bottom: 5px; color: var(--acid); font: 800 9px Roboto Mono, monospace; }
.explanation-kick p { margin: 0; font-size: 11px; line-height: 1.5; }
.explanation-warning { padding: 9px 12px; border-left: 4px solid var(--orange); background: #ffe3da; font-size: 11px; }
.explanation-error { min-height: 250px; display: grid; place-content: center; text-align: center; color: #a32f14; }
.library-overlay { position: fixed; inset: 0; z-index: 220; display: flex; justify-content: flex-end; background: rgba(15,15,13,.44); backdrop-filter: blur(5px); }
.library-overlay[hidden] { display: none; }
.library-drawer { width: min(520px, 100vw); height: 100%; display: flex; flex-direction: column; background: #f8f7f3; box-shadow: -24px 0 70px rgba(15,15,13,.18); }
.library-drawer > header { min-height: 92px; display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.library-drawer header div { flex: 1; }
.library-drawer header small { color: var(--orange); font: 800 8px Roboto Mono, monospace; letter-spacing: .12em; }
.library-drawer header h2 { margin: 3px 0 0; font-size: 27px; letter-spacing: -.04em; }
.library-drawer header button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 22px; cursor: pointer; }
.library-list { flex: 1; overflow-y: auto; padding: 14px; }
.library-state { min-height: 240px; display: grid; place-content: center; padding: 25px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.library-project { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-bottom: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.library-project h3 { overflow: hidden; margin: 0 0 6px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.project-status { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--muted); font: 8px Roboto Mono, monospace; text-transform: uppercase; }
.project-status i { width: 7px; height: 7px; border-radius: 50%; background: #c69a25; }
.project-status.completed i { background: #79a600; }
.project-status.failed i { background: var(--orange); }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: #74756f; font: 9px Roboto Mono, monospace; }
.project-actions { display: flex; align-items: center; gap: 5px; }
.project-actions button { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #f6f5f1; padding: 0 10px; font-size: 9px; font-weight: 800; cursor: pointer; }
.project-actions button:first-child:not(:disabled) { background: var(--ink); color: white; }
.project-actions button:disabled { opacity: .4; cursor: not-allowed; }
.project-actions .project-delete { width: 34px; padding: 0; background: transparent; color: var(--orange); font-size: 17px; }
.highway-wrap { height: clamp(420px, calc(100vh - 417px), 668px); margin: 16px 24px 6px; background: #11110f; position: relative; overflow: hidden; border: 1px solid #2d2e2a; border-radius: 14px; }
#highwayCanvas { display: block; width: 100%; height: 100%; }
.lane-titles { position: absolute; z-index: 2; top: 13px; left: 10%; right: 10%; display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; color: #87847c; font: 600 8px Roboto Mono, monospace; pointer-events: none; }
.hit-caption { position: absolute; z-index: 2; bottom: 8px; left: 0; right: 0; text-align: center; pointer-events: none; }
.hit-caption b, .hit-caption span { display: block; }
.hit-caption b { color: var(--acid); font: 600 8px Roboto Mono, monospace; letter-spacing: .16em; }
.hit-caption span { color: #5e5c56; font-size: 8px; margin-top: 2px; }
.transcribe-wrap { height: clamp(420px, calc(100vh - 417px), 668px); margin: 16px 24px 6px; background: #11110f; border: 1px solid #2d2e2a; border-radius: 14px; display: none; color: #eeeae1; overflow: hidden; }
.transcribe-wrap.active { display: flex; flex-direction: column; }
.highway-wrap.hidden { display: none; }
.inline-coach { height: clamp(420px, calc(100vh - 417px), 668px); margin: 16px 24px 6px; background: #151513; border: 1px solid #2d2e2a; border-radius: 14px; color: #f2efe7; display: none; flex-direction: column; overflow: hidden; }
.inline-coach.active { display: flex; }
.inline-coach .coach-header { padding: 10px 14px; }
.inline-coach .coach-header h2 { font-size: 16px; }
.inline-coach .coach-header #coachRange { color: var(--acid); font: 700 10px Roboto Mono, monospace; }
.inline-coach .coach-close { display: none; }
.inline-coach .coach-footer { flex-basis: 50px; }
.inline-coach.fullscreen { position: fixed; z-index: 100; inset: 3vh 3vw; width: min(1240px, 94vw); height: 94vh; margin: auto; border-color: #5d5a54; box-shadow: 0 0 0 100vmax rgba(10,10,9,.88), 12px 12px 0 var(--acid); }
.inline-coach.fullscreen .coach-close { display: block; }
.transcribe-toolbar { height: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 13px; border-bottom: 1px solid #373733; font: 9px Roboto Mono, monospace; }
.transcribe-toolbar button { width: 28px; height: 28px; border: 1px solid #55534e; background: transparent; color: white; cursor: pointer; }
.transcribe-toolbar button:disabled { opacity: .25; }
.transcribe-toolbar strong { color: var(--acid); min-width: 85px; }
.transcribe-toolbar span { margin-left: auto; color: #77746e; }
.transcribe-scroll { flex: 1; overflow: auto; padding: 16px; }
.transcribe-grid { --steps: 64; min-width: 900px; position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.transcribe-counts, .transcribe-row { display: grid; grid-template-columns: 78px repeat(var(--steps), minmax(12px, 1fr)); }
.transcribe-counts { height: 40px; }
.transcribe-counts > div { position: relative; border-left: 1px solid #353531; padding: 17px 0 0 4px; color: #77746e; font: 8px Roboto Mono, monospace; }
.transcribe-counts > div.quarter { border-left-color: #8c8980; color: #d4d0c7; font-weight: 700; }
.transcribe-counts > div.measure-start { border-left: 2px solid var(--acid); }
.transcribe-counts .bar-tag { position: absolute; top: 1px; left: 4px; color: var(--acid); font-size: 7px; white-space: nowrap; }
.transcribe-lane-label { display: flex; align-items: center; padding-left: 10px; border-right: 1px solid #4b4944; color: #aaa79e; font: 700 9px Roboto Mono, monospace; transition: .08s; }
.transcribe-lane-label.hit { color: white; background: #32322e; box-shadow: inset 4px 0 0 var(--lane-color); }
.transcribe-row { height: 58px; border-top: 1px solid #2f2f2c; }
.transcribe-cell { display: grid; place-items: center; border-left: 1px solid #292926; position: relative; transition: background .06s; }
.transcribe-cell.quarter { border-left-color: #625f59; }
.transcribe-cell.measure-start { border-left: 2px solid var(--acid); }
.transcribe-cell.hit { background: color-mix(in srgb, var(--lane-color) 24%, transparent); box-shadow: inset 0 -3px 0 var(--lane-color), 0 0 18px color-mix(in srgb, var(--lane-color) 45%, transparent); }
.transcribe-note { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #090908; font: 800 10px Manrope, sans-serif; box-shadow: 0 0 10px currentColor; transition: transform .06s, filter .06s; }
.transcribe-note.hit { transform: scale(1.55); filter: brightness(1.35); box-shadow: 0 0 24px var(--lane-color); z-index: 3; }
.transcribe-note.cymbal { background: var(--acid); transform: rotate(45deg); }
.transcribe-note.cymbal span { transform: rotate(-45deg); }
.transcribe-note.cymbal.hit { transform: rotate(45deg) scale(1.55); }
.transcribe-note.hihat { background: #f1efe7; border-radius: 0; font-size: 15px; }
.transcribe-note.snare { background: var(--blue); }
.transcribe-note.tom { background: #b45cff; }
.transcribe-note.kick { width: 27px; background: var(--orange); }
.transcribe-playhead { position: absolute; top: 0; bottom: 0; width: 3px; background: #ff6038; box-shadow: 0 0 10px #ff6038; pointer-events: none; z-index: 4; }
.transcribe-playhead::before { content: ""; position: absolute; top: -2px; left: 50%; width: 15px; height: 15px; border-radius: 50%; background: #ff6038; transform: translateX(-50%); box-shadow: 0 0 14px #ff6038; }
.transcribe-grid.seeking .transcribe-playhead { width: 4px; box-shadow: 0 0 22px #ff6038; }
.tab-scroll { overflow-x: auto; min-height: 335px; padding: 24px 30px 10px; }
.tab-grid { min-width: 800px; position: relative; }
.count-row { height: 25px; display: grid; grid-template-columns: 62px repeat(var(--steps), minmax(33px, 1fr)); color: var(--muted); font: 600 9px Roboto Mono, monospace; align-items: center; }
.count { height: 100%; border-left: 1px solid transparent; padding: 5px 0 0 5px; }
.count.quarter { border-left-color: var(--ink); color: var(--ink); }
.measure { height: 88px; display: grid; grid-template-columns: 62px repeat(var(--steps), minmax(33px, 1fr)); align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.measure::before { content: attr(data-measure); position: absolute; top: 4px; left: 0; font: 9px Roboto Mono, monospace; color: var(--muted); }
.lane-label { font: 600 10px Roboto Mono, monospace; color: var(--muted); }
.beat { height: 58px; border-left: 1px solid #dbd7cd; display: grid; place-items: center; font: 600 17px Roboto Mono, monospace; }
.beat:nth-child(4n + 2) { border-left-color: #8b877e; }
.note { width: 22px; height: 22px; display: grid; place-items: center; color: white; border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); }
.note.kick { background: var(--orange); }
.note.snare { background: var(--blue); }
.note.hihat { background: var(--ink); border-radius: 0; transform: rotate(45deg); }
.note.hihat span { transform: rotate(-45deg); }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); left: 62px; z-index: 2; pointer-events: none; transition: left .05s linear; }
.legend { display: flex; padding: 16px 30px 0; gap: 22px; font: 9px Roboto Mono, monospace; align-items: center; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; display: block; border-radius: 50%; background: var(--orange); }
.legend i.snare { background: var(--blue); }
.legend i.hihat { background: var(--ink); border-radius: 0; transform: rotate(45deg); }
.legend i.cymbal { background: var(--acid); }
.legend i.tom { background: #b45cff; }
.legend small { margin-left: auto; color: var(--muted); }
.practice { background: var(--ink); color: #f2efe7; display: grid; grid-template-columns: .8fr 1.2fr; margin: 0 4vw 80px; min-height: 580px; }
.practice[hidden] { display: none; }
.practice-copy { padding: clamp(35px, 5vw, 75px); display: flex; flex-direction: column; justify-content: center; }
.practice .eyebrow { color: var(--acid); }
.practice h2 { font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.055em; margin: 0 0 25px; }
.practice-copy > p { color: #aaa79e; line-height: 1.7; max-width: 460px; }
.midi-button { margin-top: 30px; max-width: 390px; display: flex; align-items: center; gap: 16px; border: 1px solid #5f5e58; background: transparent; color: white; text-align: left; padding: 14px; cursor: pointer; }
.midi-button:hover { border-color: var(--acid); }
.midi-button .usb { width: 44px; height: 44px; display: grid; place-items: center; background: var(--acid); color: var(--ink); font-size: 26px; }
.midi-button b, .midi-button small { display: block; }
.midi-button small { margin-top: 3px; color: #8b8982; }
.compatibility { color: #77746e; font: 9px Roboto Mono, monospace; margin-top: 12px; }
.midi-monitor { max-width: 390px; margin-top: 10px; padding: 10px 12px; border: 1px solid #3d3d38; background: #11110f; }
.midi-monitor span { display: block; color: var(--acid); font: 700 7px Roboto Mono, monospace; letter-spacing: .12em; }
.midi-monitor code { display: block; margin-top: 5px; color: #d7d4cc; font: 10px Roboto Mono, monospace; }
.midi-audio-controls { max-width: 390px; margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #3d3d38; background: #11110f; }
.midi-audio-controls button { border: 0; border-right: 1px solid #3d3d38; background: transparent; color: #7e7c75; text-align: left; padding: 9px 11px; cursor: pointer; }
.midi-audio-controls button.active { color: var(--acid); }
.midi-audio-controls button b, .midi-audio-controls button small { display: block; }
.midi-audio-controls button b { font-size: 9px; }
.midi-audio-controls button small { margin-top: 2px; font: 8px Roboto Mono, monospace; }
.midi-audio-controls label { padding: 8px 10px; color: #7e7c75; font: 7px Roboto Mono, monospace; }
.midi-audio-controls label span { display: flex; justify-content: space-between; }
.midi-audio-controls label output { color: var(--acid); font-weight: 800; }
.midi-audio-controls input { width: 100%; height: 3px; margin-top: 8px; accent-color: var(--acid); }
.performance { background: #191917; border-left: 1px solid #363633; padding: 35px; display: flex; flex-direction: column; }
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #363633; }
.score-row > div { padding: 18px; border-right: 1px solid #363633; }
.score-row > div:last-child { border: 0; }
.score-row small { display: block; color: #77746e; font: 9px Roboto Mono, monospace; }
.score-row strong { display: block; color: var(--acid); font: 600 28px Roboto Mono, monospace; margin-top: 4px; }
.kit { flex: 1; min-height: 310px; position: relative; }
.hit-pad { position: absolute; display: grid; place-items: center; border: 2px solid #55534d; transition: transform .07s, background .07s, box-shadow .07s; }
.hit-pad span { font: 9px Roboto Mono, monospace; color: #79776f; }
.cymbal { width: 29%; height: 54px; border-radius: 50%; top: 15%; }
.hihat-pad { left: 2%; transform: rotate(-6deg); }
.ride-cymbal { right: 2%; transform: rotate(6deg); }
.tom-drum { width: 21%; aspect-ratio: 1.25; border-radius: 50%; }
.tom-one { top: 24%; left: 32%; }
.tom-two { top: 24%; right: 23%; }
.snare-drum { width: 27%; aspect-ratio: 1.35; border-radius: 50%; top: 53%; left: 15%; }
.tom-three { width: 25%; top: 51%; right: 3%; }
.kick-drum { width: 29%; aspect-ratio: 1.15; border-radius: 50%; top: 59%; left: 43%; }
.hit-pad.active { background: var(--acid); border-color: var(--acid); box-shadow: 0 0 35px rgba(217,255,67,.35); transform: scale(1.04); }
.hit-pad.active span { color: var(--ink); font-weight: 700; }
.hihat-pad.active { transform: rotate(-6deg) scale(1.04); }
.ride-cymbal.active { transform: rotate(6deg) scale(1.04); }
.midi-log { height: 38px; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 7px; overflow: hidden; border-top: 1px solid #363633; color: #77746e; font: 9px Roboto Mono, monospace; }
.log-hit { min-width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.log-hit.snare { background: var(--blue); }
.log-hit.hihat { background: var(--acid); border-radius: 0; }
.log-hit.tom { background: #b45cff; }
.log-hit.cymbal { background: #f3cc4f; }
footer { border-top: 1px solid var(--line); padding: 25px 4vw 45px; display: flex; justify-content: space-between; color: var(--muted); font: 9px Roboto Mono, monospace; }
.coach-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10,10,9,.88); backdrop-filter: blur(9px); }
.coach-modal[hidden] { display: none; }
.coach-dialog { width: min(1100px, 96vw); height: min(820px, 94vh); display: flex; flex-direction: column; background: #151513; color: #f2efe7; border: 1px solid #5d5a54; box-shadow: 14px 14px 0 var(--acid); }
.coach-header { flex: 0 0 auto; display: flex; align-items: center; gap: 25px; padding: 18px 22px; border-bottom: 1px solid #393834; }
.coach-header > div:first-child { margin-right: auto; }
.coach-header small { color: var(--acid); font: 8px Roboto Mono, monospace; letter-spacing: .12em; }
.coach-header h2 { margin: 3px 0 0; font-size: 22px; }
.coach-view-toggle { display: flex; margin-left: auto; border: 1px solid #4b4944; }
.coach-view-toggle button { height: 32px; border: 0; background: transparent; color: #89867f; padding: 0 12px; font: 700 8px Roboto Mono, monospace; cursor: pointer; }
.coach-view-toggle button.active { background: var(--acid); color: var(--ink); }
.coach-close { width: 38px; height: 38px; border: 1px solid #4b4944; background: transparent; color: white; font-size: 23px; cursor: pointer; }
.coach-main { flex: 1; min-height: 300px; display: grid; grid-template-columns: minmax(300px, .72fr) 1.4fr; overflow: hidden; }
.coach-stage { min-width: 0; position: relative; background: radial-gradient(circle at 50% 55%, #272723, #0c0c0b 67%); overflow: hidden; }
#coachCanvas { display: block; width: 100%; height: 100%; }
.coach-current { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); min-width: 110px; text-align: center; color: var(--acid); font: 800 16px Roboto Mono, monospace; text-shadow: 0 0 16px var(--acid); }
.coach-waterfall { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #393834; background: #10100f; }
.coach-waterfall > header { height: 48px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #393834; }
.coach-waterfall > header b { color: var(--acid); font: 700 9px Roboto Mono, monospace; }
.coach-waterfall > header span { color: #66645e; font: 7px Roboto Mono, monospace; }
.waterfall-surface { flex: 1; position: relative; overflow: hidden; background: linear-gradient(#151513, #0c0c0b); }
.waterfall-events, .waterfall-beats { position: absolute; inset: 0; }
.waterfall-beat { position: absolute; left: 0; right: 0; height: 1px; background: #3d3b37; }
.waterfall-beat.downbeat { height: 2px; background: #77746c; }
.waterfall-beat b { position: absolute; left: 8px; top: -10px; color: #85827f; font: 700 10px Roboto Mono, monospace; }
.waterfall-group { position: absolute; left: 38px; right: 10px; height: 36px; display: flex; align-items: center; gap: 5px; transform: translateY(-50%); transition: opacity .08s; }
.waterfall-group > small { width: 35px; color: #66645e; font: 7px Roboto Mono, monospace; }
.waterfall-chip { min-width: 42px; height: 28px; display: grid; place-items: center; border: 1px solid var(--chip-color); color: var(--chip-color); background: #181816; font: 800 10px Roboto Mono, monospace; }
.waterfall-group.active .waterfall-chip { background: var(--chip-color); color: #10100f; transform: scale(1.15); box-shadow: 0 0 18px var(--chip-color); }
.waterfall-group.past { opacity: .2; }
.waterfall-hit-line { position: absolute; left: 0; right: 0; top: 82%; height: 4px; background: var(--orange); box-shadow: 0 0 18px var(--orange); z-index: 5; }
.waterfall-hit-line b { position: absolute; right: 8px; top: -18px; color: var(--orange); font: 800 9px Roboto Mono, monospace; }
.coach-footer { flex: 0 0 56px; display: flex; align-items: center; gap: 20px; padding: 0 20px; border: 0; color: #89867f; }
.coach-footer button { height: 36px; border: 0; background: var(--orange); color: white; padding: 0 18px; font-weight: 800; cursor: pointer; }
.coach-footer #coachRange { margin-right: auto; color: white; font: 600 10px Roboto Mono, monospace; }
.coach-footer b { color: var(--acid); }
.coach-speed { min-width: 245px; display: flex; align-items: center; gap: 8px; }
.coach-speed label { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 3px 7px; color: #77746e; font: 7px Roboto Mono, monospace; }
.coach-speed input { grid-column: 1; width: 100%; height: 3px; accent-color: var(--orange); }
.coach-speed output { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: white; font: 700 9px Roboto Mono, monospace; }
.coach-speed > div { display: flex; gap: 3px; }
.coach-footer .coach-speed button { width: 27px; height: 23px; padding: 0; background: transparent; border: 1px solid #4b4944; color: #ddd9d0; font: 700 8px Roboto Mono, monospace; }
.coach-footer .coach-speed button:hover { background: var(--acid); color: var(--ink); }

@media (max-width: 900px) {
  .topbar { gap:18px; }
  .mode-nav { display:flex;gap:14px; }
  .mode-nav a { font-size:9px; }
  .header-metrics { display:none; }
  .hero { padding-top: 60px; }
  .workspace { grid-template-columns: 1fr; }
  .upload-panel { min-height: 0; grid-template-columns: 130px 1fr 1fr; padding: 15px; }
  .source-divider { display: none; }
  .url-control { grid-column: span 2; }
  .bpm-settings { grid-column: span 2; }
  .analyze-stack { grid-column: span 1; }
  .practice { grid-template-columns: 1fr; }
  .performance { border-left: 0; border-top: 1px solid #363633; min-height: 520px; }
  .timeline-heading { align-items: stretch; flex-direction: column; }
  .transport { overflow-x: auto; padding-bottom: 5px; }
  .track-meta { padding: 0 15px; }
  .media-stage.visible { flex-wrap: wrap; }
  .stem-section { flex: 1 1 100%; }
  .user-area span { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding:0 12px; }
  .brand { font-size:0; }.brand-mark { font-size:14px; }
  .mode-nav { gap:7px; }.mode-nav a { font-size:7px;letter-spacing:.03em; }
  .status { display: none; }
  .demo-banner { margin-left: 12px; margin-right: 12px; align-items: flex-start; flex-direction: column; }
  .demo-banner button { width: 100%; }
  .header-metrics { display: none; }
  .topbar { gap: 10px; }
  .user-area { margin-left: auto; }
  .user-area button { padding: 0 8px; }
  .user-area .logout-button { width: 34px; overflow: hidden; padding: 0; font-size: 0; }
  .user-area .logout-button::after { content: "↗"; font-size: 15px; }
  .auth-card { padding: 25px; }
  .auth-copy { margin: 28px 0 22px; }
  .library-project { grid-template-columns: 1fr; }
  .project-actions { justify-content: flex-end; }
  .hero { padding: 50px 20px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .workspace, .practice { margin-left: 12px; margin-right: 12px; }
  .panel { padding: 22px; }
  .upload-panel { grid-template-columns: 1fr; }
  .source-intro, .dropzone, .url-control, .bpm-settings, .analyze-stack { grid-column: 1; }
  .timeline-panel { padding-left: 0; padding-right: 0; }
  .highway-wrap { height: 430px; margin-left: 12px; margin-right: 12px; }
  .transcribe-wrap { height: 430px; margin-left: 12px; margin-right: 12px; }
  .inline-coach { height: 520px; margin-left: 12px; margin-right: 12px; }
  .inline-coach.fullscreen { inset: 0; width: 100vw; height: 100vh; margin: 0; border: 0; box-shadow: none; }
  .media-stage { height: auto; margin-left: 12px; margin-right: 12px; gap: 10px; }
  .media-stage.visible { flex-wrap: wrap; }
  .sync-control { order: 2; flex-basis: 100%; max-width: none; }
  .metronome-toggle { flex: 1; }
  .metronome-volume { flex: 1; min-width: 120px; }
  .stem-toggle button { min-width: 0; }
  .sound-meter { display: none; }
  .loader-card { padding: 25px 20px; }
  .loader-visual { height: 85px; margin-bottom: 16px; }
  .loader-stages span { font-size: 6px; }
  .explanation-overlay { padding: 0; }
  .explanation-dialog { width: 100vw; max-height: 100vh; height: 100vh; border: 0; box-shadow: none; }
  .explanation-kick { grid-template-columns: 1fr; }
  .coach-modal { padding: 0; }
  .coach-dialog { width: 100vw; height: 100vh; border: 0; box-shadow: none; }
  .coach-header { padding: 12px; }
  .coach-header h2 { font-size: 16px; }
  .coach-view-toggle { display: none; }
  .coach-footer span:not(#coachRange) { display: none; }
  .coach-footer { gap: 10px; }
  .coach-speed { min-width: 180px; flex: 1; }
  .coach-main { grid-template-columns: 44% 56%; }
  .coach-waterfall > header span { display: none; }
  .waterfall-group { left: 28px; right: 4px; gap: 2px; }
  .waterfall-group > small { display: none; }
  .waterfall-chip { min-width: 32px; font-size: 8px; }
  .timeline-heading { padding-left: 22px; padding-right: 22px; }
  .view-selector { width: 100%; }
  .view-toggle button { flex: 1; min-width: 0; padding: 0 7px; }
  .view-toggle button span { display: block; }
  .transport span { display: none; }
  .speed-control span { display: none; }
  .speed-control { width: 205px; }
  .speed-control > span { display: none; }
  .track-meta, .legend { padding-left: 12px; padding-right: 12px; }
  .metric-card { min-width: 0; flex: 1; padding: 6px 9px; }
  .metric-card strong { font-size: 14px; }
  .model-badge { display: none; }
  .legend small { display: none; }
  .practice-copy, .performance { padding: 28px 22px; }
  .score-row strong { font-size: 21px; }
  .kit { min-height: 300px; }
}
