@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0d100e;
  --surface: #141915;
  --surface-raised: #1a211b;
  --surface-soft: #202820;
  --line: #2b342c;
  --line-strong: #414e40;
  --text: #f3f5ef;
  --muted: #9aa497;
  --quiet: #697368;
  --accent: #c9f17a;
  --accent-ink: #151b0f;
  --warm: #e2d8ac;
  --danger: #e5a49a;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Arial", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 15px;
  --shadow: 0 20px 70px #0005;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea { color: inherit; font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell { min-height: 100svh; background: radial-gradient(ellipse at 71% 8%, #28322226 0, transparent 38%), var(--bg); }
.topbar { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 3.4vw, 52px); border-bottom: 1px solid #ffffff0d; background: #0e120ff2; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -1.2px; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 22px; box-shadow: 0 0 28px #c9f17a26; }
.brand-dot { color: var(--accent); }
.session-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #c9f17a80; }
.status-divider { height: 14px; margin: 0 4px; border-left: 1px solid var(--line-strong); }
.session-status time { color: var(--text); font: 11px var(--mono); }
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button { width: 36px; height: 36px; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 10px; color: #b9c2b5; background: #161c17; }
.icon-button:hover { color: var(--accent); border-color: var(--line-strong); background: var(--surface-raised); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.key-small { margin-left: 2px; font: 9px var(--mono); }
.layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: calc(100svh - 68px); }
.sidebar { position: sticky; top: 0; height: calc(100svh - 68px); min-height: 520px; display: flex; flex-direction: column; overflow: hidden; padding: 27px 15px 16px; border-right: 1px solid #ffffff0d; background: #111612b8; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.eyebrow { margin: 0 0 7px; color: #849080; font: 9px var(--mono); letter-spacing: .18em; }
.sidebar h2, .modal h2 { margin: 0; font: 700 19px/1.15 var(--display); letter-spacing: -.5px; }
.add-button { width: 34px; height: 34px; border: 1px solid #526342; border-radius: 10px; color: var(--accent); background: #26311e; font-size: 21px; transition: .2s ease; }
.add-button:hover { transform: translateY(-1px); background: #344326; }
.set-meta { padding: 12px 7px 17px; color: var(--quiet); font-size: 10px; }
.meta-dot { padding: 0 6px; color: #495248; }
.song-list { display: flex; flex: 1; flex-direction: column; gap: 5px; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #394238 transparent; }
.song-item { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 52px; padding: 8px 9px; border: 1px solid transparent; border-radius: 10px; text-align: left; background: transparent; transition: background .18s, border-color .18s, transform .18s; }
.song-item:hover { transform: translateX(2px); background: #ffffff08; }
.song-item.active { border-color: #71885355; background: linear-gradient(105deg, #c9f17a16, #c9f17a04 75%); }
.song-item.active::before { position: absolute; top: 11px; bottom: 11px; left: -1px; width: 2px; border-radius: 2px; background: var(--accent); content: ""; box-shadow: 0 0 12px #c9f17a88; }
.song-number { color: #697468; font: 10px var(--mono); }
.song-item.active .song-number { color: var(--accent); }
.song-item-title { display: block; overflow: hidden; color: #e3e8df; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.song-item-sub { display: block; overflow: hidden; margin-top: 4px; color: #818b7e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.song-duration { color: #748071; font: 9px var(--mono); }
.sidebar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 15px 5px 0; border-top: 1px solid #ffffff10; }
.text-button { padding: 0; border: 0; color: #b2bbae; background: none; font-size: 10px; }
.text-button:hover { color: var(--accent); }
.text-button span { padding-right: 4px; color: var(--accent); }
.offline-label { display: flex; align-items: center; gap: 6px; color: #778173; font: 8px var(--mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.offline-label span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.stage { width: min(100%, 1540px); min-width: 0; display: flex; flex-direction: column; margin: 0 auto; padding: 26px clamp(24px, 4.2vw, 66px) 18px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 18px; }
.breadcrumbs { color: #8b9687; font: 9px var(--mono); letter-spacing: .14em; white-space: nowrap; }
.crumb-sep { padding: 0 9px; color: #4c574a; }
.stage-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pill-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #303b31; border-radius: 9px; color: #c0c9bd; background: #171d18; text-decoration: none; font-size: 10px; font-weight: 600; white-space: nowrap; transition: .18s ease; }
.pill-button:hover { border-color: #657650; color: var(--accent); background: #20281f; }
.pill-button > span:first-child { color: var(--accent); }
.genius-link { border-color: #49452f; color: #e8dcae; background: #211f18; }
.genius-link:hover { border-color: #a39153; color: #fff0ac; background: #2b281c; }
.icon-pill { color: #b1bbaf; }
.song-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(28px, 4.2vh, 48px) 0 23px; }
.song-title-wrap { min-width: 0; }
.song-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; }
.song-tag { padding: 5px 8px; border: 1px solid #5a7042; border-radius: 5px; color: var(--accent); background: #27331f; font: 9px var(--mono); letter-spacing: .11em; }
.song-key { color: #919b8d; font: 10px var(--mono); }
h1 { max-width: 950px; margin: 0; color: #f5f6f1; font: 750 clamp(34px, 4.15vw, 58px)/1.03 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.song-subtitle { margin: 10px 0 0; color: #9da799; font-size: 12px; }
.timer-box { min-width: 157px; padding: 0 0 2px 18px; border-left: 1px solid #ffffff17; text-align: right; }
.timer-label { color: #778273; font: 8px var(--mono); letter-spacing: .13em; }
.timer-readout { margin: 5px 0 7px; color: #f0f3ea; font: 27px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.timer-control { min-height: 31px; padding: 0 10px; border: 1px solid #526542; border-radius: 8px; color: var(--accent); background: #222c1d; font-size: 10px; }
.timer-control:hover { background: #303d26; }
.play-icon { padding-right: 5px; font-size: 9px; }
.tempo-row { display: grid; grid-template-columns: minmax(245px, 285px) minmax(0, 1fr); gap: 12px; }
.tempo-card, .structure-card { min-width: 0; min-height: 148px; padding: 15px 17px 13px; border: 1px solid #ffffff11; border-radius: var(--radius); background: linear-gradient(145deg, #1a211b, #141915 80%); box-shadow: 0 10px 30px #0002; }
.tempo-title, .structure-head { display: flex; align-items: center; gap: 9px; color: #a7b19f; font: 9px var(--mono); letter-spacing: .14em; }
.tempo-symbol { color: var(--accent); font-size: 16px; line-height: 1; }
.tempo-note, .structure-hint { margin-left: auto; color: #7d8878; font: 9px var(--sans); letter-spacing: 0; white-space: nowrap; }
.tempo-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 0 11px; }
.tempo-adjust { width: 34px; height: 34px; border: 1px solid #394439; border-radius: 10px; color: #d1d8ce; background: #222a23; font-size: 20px; line-height: 1; transition: .15s ease; }
.tempo-adjust:hover { border-color: #829661; color: var(--accent); background: #293424; }
.bpm-value { display: flex; align-items: baseline; gap: 7px; }
.bpm-value input { width: 98px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: 600 42px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.09em; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.bpm-value input::-webkit-inner-spin-button, .bpm-value input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.bpm-value input:focus { color: var(--accent); }
.bpm-value input:focus-visible { outline: 0; }
.bpm-value > span { color: #7e897b; font: 9px var(--mono); }
.tempo-footer { display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid #ffffff10; }
.tap-button { padding: 0; border: 0; color: #abb6a5; background: none; font: 9px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.tap-button:hover { color: var(--accent); }
.tap-button span { padding-right: 4px; color: var(--accent); }
.reference-tempo { padding: 0; border: 0; color: #8a9586; background: transparent; font: 9px var(--mono); white-space: nowrap; }
.reference-tempo:hover:not(:disabled) { color: var(--accent); }
.reference-tempo:disabled { opacity: .45; cursor: default; }
.metronome { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #899486; font-size: 9px; white-space: nowrap; }
.metronome-button { width: 26px; height: 15px; padding: 2px; border: 1px solid #46513f; border-radius: 9px; background: #273025; }
.metronome-light { display: block; width: 7px; height: 7px; border-radius: 50%; background: #85917e; transition: transform .09s; }
.metronome-button.active { border-color: #708a4e; background: #3b4b2b; }
.metronome-button.active .metronome-light { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.structure-card { padding-bottom: 12px; }
.structure-track { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; margin-top: 17px; padding: 0 1px 5px; scrollbar-width: thin; scrollbar-color: #43503f transparent; }
.structure-step { flex: 1 0 72px; min-width: 0; padding: 9px 9px 8px; border: 1px solid #354035; border-radius: 9px; color: #b5bfb1; background: #1a211b; text-align: left; transition: .18s ease; }
.structure-step:hover { border-color: #73845d; background: #212b20; }
.structure-step.current { border-color: #809758; color: var(--accent); background: linear-gradient(145deg, #344326, #222b1d); box-shadow: inset 0 0 0 1px #c9f17a0a; }
.structure-step strong { display: block; overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.structure-step small { display: block; margin-top: 7px; color: #7d8978; font: 8px var(--mono); }
.structure-step.current small { color: #b9cf9a; }
.lyrics-panel { display: flex; flex: 1; flex-direction: column; min-height: 285px; overflow: hidden; margin-top: 13px; border: 1px solid #ffffff12; border-radius: 17px; background: radial-gradient(ellipse at 88% 15%, #34412820, transparent 35%), linear-gradient(145deg, #191f1a, #121713); box-shadow: 0 18px 50px #0002; }
.lyrics-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; border-bottom: 1px solid #ffffff10; }
.current-section { display: flex; align-items: center; gap: 9px; min-width: 0; }
.section-indicator { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #c9f17a75; }
.section-label { overflow: hidden; color: #e1e8dc; font: 9px var(--mono); letter-spacing: .13em; text-overflow: ellipsis; white-space: nowrap; }
.section-count { color: #788375; font: 9px var(--mono); white-space: nowrap; }
.lyrics-controls { display: flex; align-items: center; gap: 5px; }
.lyric-size, .section-arrow { min-width: 31px; height: 29px; border: 1px solid #394339; border-radius: 8px; color: #b7c1b4; background: #202720; font: 10px var(--mono); }
.lyric-size:hover, .section-arrow:hover { border-color: #72865a; color: var(--accent); }
.section-arrow { font-size: 15px; }
.control-sep { height: 17px; margin: 0 3px; border-left: 1px solid #414a40; }
.lyrics-content { display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 220px; padding: clamp(28px, 4.2vh, 48px) clamp(25px, 5vw, 72px); }
.chords { margin-bottom: 11px; color: var(--accent); font: 12px/1.8 var(--mono); letter-spacing: .02em; white-space: pre-wrap; }
.lyrics-lines { max-width: 1080px; margin: 0; color: #f4f5f0; font: 600 clamp(19px, 2.3vw, 32px)/1.65 var(--display); letter-spacing: -.035em; white-space: pre-wrap; text-wrap: pretty; }
.lyrics-empty { display: flex; align-items: flex-start; flex-direction: column; gap: 11px; color: var(--muted); }
.empty-note { color: #a5bf80; font: 9px var(--mono); letter-spacing: .16em; }
.lyrics-empty p { margin: 0; color: #d0d7cc; font: 500 clamp(17px, 1.8vw, 23px)/1.45 var(--display); letter-spacing: -.02em; }
.add-lyrics-button { min-height: 34px; padding: 0 12px; border: 1px solid #536741; border-radius: 8px; color: var(--accent); background: #252f20; font-size: 10px; font-weight: 600; }
.add-lyrics-button:hover { background: #344326; }
.lyrics-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 17px; border-top: 1px solid #ffffff10; color: #849080; font-size: 9px; }
.lyrics-bottom > span { display: inline-flex; align-items: center; gap: 5px; }
.lyrics-bottom kbd, .shortcut-list kbd { padding: 3px 5px; border: 1px solid #3c473b; border-radius: 5px; color: #c2cbbd; background: #202720; font: 8px var(--mono); }
.bottom-sep { padding: 0 3px; color: #566052; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #737d70; font-size: 9px; }
.footer-right { color: #7e887a; }
.save-check { padding-left: 4px; color: var(--accent); }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: calc(100vw - 32px); padding: 11px 15px; transform: translateY(12px); border: 1px solid #d0f78c55; border-radius: 10px; color: #1b2413; background: #d1f392; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.modal { width: min(650px, calc(100vw - 28px)); max-height: min(92svh, 920px); overflow: auto; padding: 0; border: 1px solid #3b463b; border-radius: 16px; color: var(--text); background: transparent; box-shadow: var(--shadow); }
.modal::backdrop { background: #050805c9; backdrop-filter: blur(8px); }
.modal-card { padding: clamp(19px, 3vw, 30px); border-radius: 16px; background: #171d18; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.modal h2 { font-size: 21px; }
.close-button { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #374137; border-radius: 8px; color: #bcc6b8; background: #222922; font-size: 18px; line-height: 1; }
.close-button:hover { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.modal label { display: flex; flex-direction: column; gap: 7px; color: #b7c1b3; font-size: 10px; }
.modal input, .modal textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #354035; border-radius: 8px; outline: 0; color: #e9eee5; background: #101511; font-size: 11px; }
.modal input:focus, .modal textarea:focus { border-color: #82985f; }
.sections-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 11px; padding-top: 17px; border-top: 1px solid #ffffff12; }
.sections-heading h3 { margin: 0; color: #e5ebdf; font: 700 13px var(--display); }
.sections-heading p { margin: 5px 0 0; color: #909b8d; font-size: 10px; }
.add-section-button { min-height: 34px; padding: 0 11px; border: 1px solid #536741; border-radius: 8px; color: var(--accent); background: #252f20; font-size: 10px; white-space: nowrap; }
.add-section-button:hover { background: #344326; }
.sections-editor { display: grid; gap: 9px; max-height: 42svh; overflow: auto; padding: 1px 4px 3px 1px; scrollbar-width: thin; scrollbar-color: #43503f transparent; }
.section-editor-card { padding: 12px; border: 1px solid #313b32; border-radius: 10px; background: #131914; }
.section-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-editor-index { color: var(--accent); font: 9px var(--mono); letter-spacing: .12em; }
.section-editor-actions { display: flex; gap: 5px; }
.section-move, .section-remove { width: 28px; height: 27px; border: 1px solid #374137; border-radius: 7px; color: #bbc5b7; background: #1d241e; }
.section-move:disabled { opacity: .35; cursor: default; }
.section-remove { color: var(--danger); }
.section-editor-card label + label { margin-top: 9px; }
.section-editor-card textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.modal-actions { position: sticky; bottom: -1px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding: 13px 0 0; border-top: 1px solid #ffffff12; background: #171d18; }
.modal-actions > div { display: flex; gap: 7px; }
.danger-button { padding: 0; border: 0; color: #e5a49a; background: none; font-size: 10px; }
.primary-button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 8px; color: var(--accent-ink); background: var(--accent); font-size: 10px; font-weight: 750; }
.primary-button:hover { background: #d9ff98; }
.library-copy { margin: -5px 0 18px; color: #a8b2a4; font-size: 11px; line-height: 1.6; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.import-button { cursor: pointer; }
.data-note { margin-top: 20px; padding-top: 15px; border-top: 1px solid #ffffff12; color: #909a8c; font-size: 10px; }
.data-note span { margin-right: 6px; color: var(--accent); font-size: 8px; }
.shortcut-list { border-top: 1px solid #ffffff12; }
.shortcut-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #ffffff0d; color: #bdc6ba; font-size: 11px; }
.shortcut-list > div:last-child { border-bottom: 0; }
.shortcut-list > div > span:last-child { display: flex; gap: 4px; }
.stage.stage-mode { width: 100%; max-width: none; padding: 18px clamp(25px, 6vw, 100px); }
.stage.stage-mode .stage-footer { display: none; }
.layout.stage-mode-layout { grid-template-columns: 1fr; }
.layout.stage-mode-layout .sidebar { display: none; }
.stage.stage-mode .song-heading { padding-top: 4vh; padding-bottom: 3vh; }
.stage.stage-mode h1 { font-size: clamp(46px, 6vw, 82px); }
.stage.stage-mode .tempo-row { grid-template-columns: minmax(270px, 320px) minmax(0,1fr); }
.stage.stage-mode .lyrics-panel { min-height: 40vh; }
.stage.stage-mode .lyrics-content { padding-left: 8vw; }
.stage.stage-mode .lyrics-lines { font-size: clamp(28px, 3.25vw, 48px); }
.stage.stage-mode .chords { font-size: 16px; }
@media (max-width: 1120px) {
  .layout { grid-template-columns: 224px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .stage { padding-inline: 25px; }
  .tempo-row { grid-template-columns: minmax(220px, .8fr) minmax(0,1.2fr); gap: 10px; }
  .tempo-card, .structure-card { padding-inline: 13px; }
  .tempo-controls { gap: 13px; }
  .structure-step { flex-basis: 63px; padding-inline: 7px; }
  .structure-hint { display: none; }
}
@media (max-width: 820px) {
  .topbar { height: 60px; grid-template-columns: 1fr auto 1fr; padding-inline: 17px; }
  .layout { display: flex; min-height: calc(100svh - 60px); flex-direction: column; }
  .layout.stage-mode-layout { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; overflow: visible; padding: 14px 18px 9px; border-right: 0; border-bottom: 1px solid #ffffff12; }
  .sidebar-heading { padding-inline: 1px; }
  .sidebar-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
  .sidebar h2 { font-size: 15px; }
  .add-button { width: 31px; height: 31px; }
  .set-meta { position: absolute; top: 78px; right: 59px; padding: 0; font-size: 9px; }
  .song-list { flex: none; flex-direction: row; gap: 7px; overflow-x: auto; margin-top: 9px; padding: 0 1px 5px; }
  .song-item { flex: 0 0 184px; min-height: 48px; padding: 7px 8px; }
  .song-item.active::before { top: 8px; bottom: 8px; left: -1px; }
  .song-item-title { font-size: 10px; }
  .song-item-sub { font-size: 8px; }
  .song-duration { display: none; }
  .sidebar-bottom { justify-content: flex-end; margin-top: 3px; padding: 5px 2px 0; border-top: 0; }
  .stage { padding: 18px 20px 14px; }
  .song-heading { padding-top: 25px; }
  .tempo-row { grid-template-columns: minmax(220px,.9fr) minmax(0,1.1fr); }
  .lyrics-panel { min-height: 270px; }
  .lyrics-content { min-height: 205px; }
}
@media (max-width: 600px) {
  .topbar { grid-template-columns: 1fr auto; }
  .brand { font-size: 20px; }
  .brand-mark { width: 29px; height: 29px; }
  .session-status { display: none; }
  .top-actions { gap: 6px; }
  .icon-button { width: 34px; height: 34px; }
  .sidebar { padding: 12px 12px 7px; }
  .set-meta { top: 73px; right: 53px; }
  .song-item { flex-basis: 165px; }
  .stage { padding: 15px 13px 12px; }
  .stage-head { align-items: flex-start; gap: 8px; }
  .breadcrumbs { padding-top: 11px; font-size: 8px; }
  .stage-tools { flex-wrap: wrap; gap: 5px; }
  .stage-tools .pill-button { min-height: 32px; padding-inline: 8px; font-size: 9px; }
  .stage-tools .icon-pill span { display: none; }
  .song-heading { align-items: flex-end; gap: 12px; padding: 23px 1px 17px; }
  .song-kicker { gap: 7px; margin-bottom: 8px; }
  .song-tag { padding: 4px 6px; font-size: 8px; }
  h1 { font-size: clamp(29px, 9vw, 42px); letter-spacing: -.06em; }
  .song-subtitle { margin-top: 7px; font-size: 10px; }
  .timer-box { min-width: 91px; padding-left: 10px; }
  .timer-label { display: block; max-width: 96px; font-size: 7px; line-height: 1.45; }
  .timer-readout { margin: 5px 0; font-size: 21px; }
  .timer-control { min-height: 28px; padding-inline: 7px; font-size: 9px; }
  .tempo-row { grid-template-columns: 1fr; gap: 8px; }
  .tempo-card { min-height: 139px; padding: 13px 14px 11px; }
  .tempo-controls { justify-content: flex-start; gap: 18px; padding: 8px 0; }
  .tempo-adjust { width: 32px; height: 32px; }
  .bpm-value input { width: 91px; font-size: 38px; }
  .tempo-footer { padding-top: 8px; }
  .structure-card { min-height: 105px; padding: 12px 13px 9px; }
  .structure-track { margin-top: 12px; }
  .structure-step { flex: 0 0 83px; padding: 8px; }
  .lyrics-panel { min-height: 280px; margin-top: 9px; border-radius: 13px; }
  .lyrics-top { padding: 10px 11px; }
  .lyrics-controls { gap: 4px; }
  .lyric-size, .section-arrow { min-width: 29px; height: 28px; }
  .lyrics-content { min-height: 222px; padding: 23px 19px; }
  .chords { font-size: 10px; }
  .lyrics-lines { font-size: clamp(19px, 6vw, 26px); line-height: 1.58; }
  .lyrics-bottom { align-items: flex-start; padding: 9px 11px; font-size: 8px; }
  .lyrics-bottom > span { flex-wrap: wrap; }
  .lyrics-bottom > span:first-child span { display: none; }
  .lyrics-bottom kbd { font-size: 8px; }
  .stage-footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 10px; font-size: 8px; }
  .stage.stage-mode { padding: 11px 12px; }
  .stage.stage-mode .tempo-row { grid-template-columns: 1fr; }
  .stage.stage-mode h1 { font-size: clamp(36px, 11vw, 58px); }
  .stage.stage-mode .lyrics-panel { min-height: 35vh; }
  .stage.stage-mode .lyrics-content { padding: 24px 20px; }
  .stage.stage-mode .lyrics-lines { font-size: clamp(24px, 7vw, 35px); }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .sections-heading { align-items: flex-start; flex-direction: column; }
  .sections-editor { max-height: 38svh; }
  .modal-actions { align-items: flex-end; }
  .modal-actions > div { gap: 5px; }
  .modal-actions .pill-button, .modal-actions .primary-button { min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .danger-button { max-width: 92px; text-align: left; }
  .shortcut-list > div { font-size: 10px; }
}
@media (max-width: 380px) {
  .stage-tools .genius-link { max-width: 35px; overflow: hidden; padding-inline: 10px; font-size: 0; }
  .stage-tools .genius-link span { font-size: 15px; }
  .stage-tools .pill-button { gap: 4px; }
  .song-item { flex-basis: 148px; }
  .lyrics-bottom > span:last-child { gap: 3px; }
  .lyrics-bottom > span:last-child > span:not(.bottom-sep) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
