@font-face {
  font-family: Inter;
  src: url("vendor/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
.chord-insert-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}
.chord-insert-actions>button{min-height:48px}
:root {
  color-scheme: dark;
  --ground: #000;
  --surface: #111;
  --control: #222;
  --text: #fff;
  --muted: #b4b4b4;
  --edge: #444;
  --accent: #c6f24e;
  --signal: #c6f24e;
  --paper: #eeeeea;
  --ink: #171717;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f5f5f2;
  --surface: #fff;
  --control: #e8e8e4;
  --text: #151515;
  --muted: #5a5a57;
  --edge: #b8b8b2;
  --signal: #426400;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--text); font: 14px/1.5 Inter,sans-serif; }
body[data-app="zvutera"]:not([data-preparation]) { height: 100dvh; overflow: hidden; }
button, select, a { touch-action: manipulation; }
button, select {
  height: 48px;
  min-height: 48px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
button:disabled { color: var(--muted); background: var(--surface); cursor: default; }
button:hover:not(:disabled), a:hover { filter: brightness(1.12); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #111; }
.primary, button.primary, .sample-button.primary, #download, #metronome, #focus, #readerSet, #setTab {
  background: var(--accent);
  color: #111;
}
button.primary:disabled { background: var(--surface); color: var(--muted); }
.shell { max-width: 1440px; height: 100dvh; margin: auto; padding: 0 24px; display: flex; flex-direction: column; overflow-anchor: none; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; min-height: 48px; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
nav { display: flex; gap: 8px; }
nav a { display: flex; height: 48px; align-items: center; padding: 12px 16px; border-radius: 10px; }
#theme, #sampleTheme { display: flex; width: 48px; align-items: center; justify-content: center; padding: 0; }
.readerbar { display: none; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
#queue { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(360px,calc(100% - 24px)); min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 16px 24px; background: var(--ground); transform: translateX(-110%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; }
#drawerTools { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-bottom: 8px; }
#closeSet { background: var(--accent); color: #111; }
.set-edge-marker { position: fixed; z-index: 7; top: calc(50dvh - 16px); left: max(3px,env(safe-area-inset-left)); width: 3px; height: 32px; border-radius: 3px; background: var(--signal); pointer-events: none; }
.set-gesture-hint { flex-shrink: 0; margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 18px; }
body[data-set-drawer="open"] .set-edge-marker, body[data-preparation] .set-edge-marker, body[data-preparation] .set-gesture-hint, body[data-full-score="hidden"] .set-edge-marker, body[data-full-score] .set-gesture-hint, body[data-quick-editor="notes"] .set-edge-marker, body[data-quick-editor="notes"] .set-gesture-hint { display: none; }
h1,h2,p { margin: 0; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 500; text-wrap: balance; }
.muted, .context { color: var(--muted); }
.context { font-size: 12px; margin-bottom: 4px; }
.list-head { padding: 8px 8px 16px; }
.list-head p { margin-top: 6px; }
ol { padding: 0; margin: 0; list-style: none; }
.song-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: center; height: 72px; margin-bottom: 8px; padding-right: 8px; background: var(--surface); border-radius: 8px; }
.song-select { display: flex; height: 72px; min-height: 72px; align-items: center; gap: 8px; padding: 8px; background: transparent; text-align: left; white-space: normal; min-width: 0; }
.song-index { width: 18px; flex-shrink: 0; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.song-info { flex: 1; min-width: 0; }
.song-info strong { display: block; font-size: 14px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.song-info small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 14px; }
.available { color: var(--signal) !important; }
.touch-handle { display: flex; width: 48px; height: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 0; background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.touch-handle:active { cursor: grabbing; }
.screen-reader-controls { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.download { width: 100%; margin-top: 16px; }
.aside-note { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12px; }
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: 8px; outline: 0; }
.song-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.song-head .muted { margin-top: 4px; }
.status { flex-shrink: 0; color: var(--signal); margin-bottom: 12px; }
.status:empty { display: none; }
.settings { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pitch, .zoom { display: flex; align-items: center; gap: 8px; }
.pitch>span { min-width: 96px; font-size: 14px; }
.paper { flex: 1; min-height: 0; width: 100%; overflow: auto; scrollbar-gutter: stable; padding: 12px 8px 20px; background: var(--paper); color: var(--ink); border-radius: 4px 4px 0 0; touch-action: pan-y; scrollbar-color: #888 var(--paper); }
#score { width: 100%; min-width: 0; }
#score svg { display: block; }
#lyrics { max-width: 720px; margin: auto; padding: 12px; --lyrics-scale: 1; }
#lyrics p { font-size: calc(26px * var(--lyrics-scale)); line-height: 1.6; margin: 12px 0 28px; overflow-wrap: anywhere; }
#lyrics h2 { color: #555; }
.transport { display: flex; flex-shrink: 0; min-height: 72px; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 max(12px,env(safe-area-inset-bottom)); background: var(--ground); }
.click, .songnav { display: flex; align-items: center; gap: 8px; }
#tempo { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#previous { width: 48px; padding: 0; display: flex; align-items: center; justify-content: center; }
#next { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 140px; padding: 6px 10px; overflow: hidden; }
.next-action { font-size: 11px; line-height: 14px; }
.next-song { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; }
.next-song:empty { display: none; }
.beat { display: none; }
.test-states { display: none; }
.drawer-backdrop { display: none; }
body[data-set-drawer="open"] #queue { display: block; visibility: visible; transform: translateX(0); transition-delay: 0s; }
body[data-set-drawer="open"] #drawerTools { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-bottom: 8px; }
body[data-set-drawer="open"] .drawer-backdrop { display: block; position: fixed; z-index: 29; inset: 0; width: 100%; height: 100dvh; max-height: none; padding: 0; border-radius: 0; background: #0009; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 60; padding: 12px; background: var(--accent); color: #111; }
.skip:focus { top: 8px; }
body[data-preparation] .shell { height: auto; min-height: 100dvh; }
.sample-view { display: flex; flex-direction: column; width: min(100%,720px); margin: 0 auto; padding: 12px 0 32px; gap: 16px; }
.sample-caption { color: var(--muted); font-size: 12px; }
.sample-view input { width: 100%; min-width: 0; height: 48px; padding: 12px; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.sample-view select { width: 100%; border: 1px solid var(--edge); border-radius: 8px; }
.sample-view label { margin-bottom: -8px; font-size: 13px; color: var(--muted); }
.sample-button, .service-back { display: flex; height: 48px; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; background: var(--control); }
.service-back { width: max-content; }
.sample-list { display: flex; flex-direction: column; gap: 8px; }
.sample-list>div { display: flex; min-height: 72px; padding: 12px 16px; justify-content: center; flex-direction: column; gap: 4px; border-radius: 8px; background: var(--surface); }
.sample-list strong { font-size: 16px; font-weight: 500; }
.sample-list span { font-size: 13px; color: var(--muted); }
.sample-message { padding: 16px; border-radius: 8px; background: var(--surface); color: var(--muted); }
.sample-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sample-pair>div { display: flex; flex-direction: column; gap: 8px; }
.danger { background: var(--accent); color: #111; }
.structure-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.section-card { display: flex; min-height: 112px; position: relative; flex-direction: column; justify-content: center; padding: 8px; gap: 0; border-radius: 10px; background: var(--section-color); color: #101510; touch-action: pan-y; }
.section-card strong { font-size: 14px; font-weight: 600; }
.section-card small { font-size: 12px; }
.section-drag-handle { position: static; display: flex; align-items: center; justify-content: center; align-self: flex-end; width: 48px; height: 48px; min-height: 48px; padding: 0; background: transparent!important; color: #101510; touch-action: none; }
.section-card:focus-within { outline: 3px solid var(--text); outline-offset: 2px; }
.section-card[data-kind="intro"] { --section-color: #f9a8b3; }
.section-card[data-kind="verse"] { --section-color: #c6f24e; }
.section-card[data-kind="chorus"] { --section-color: #f9cd72; }
.section-card[data-kind="bridge"] { --section-color: #b3e5dc; }
.section-card[data-kind="transition"] { --section-color: #f9a8b3; }
.touch-dragging { opacity: .45; }
.gesture-active, .gesture-active * { user-select: none; -webkit-user-select: none; }
.drop-before, .drop-after { outline: 2px solid var(--accent); outline-offset: 2px; }
.pinching #score, .pinching #lyrics, .pinching #playback { transform: scale(var(--gesture-scale,1)); transform-origin: center; }
body[data-editor="true"] #score .vf-stavenote { touch-action: none; }
.editor-palette { position: fixed; z-index: 40; bottom: auto; display: flex; width: min(600px,calc(100% - 16px)); flex-wrap: wrap; gap: 8px; max-height: 300px; overflow: auto; padding: 16px; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; }
.editor-palette button { min-width: 48px; background: var(--accent); color: #111; }
.editor-status { position: fixed; z-index: 41; left: 16px; right: 16px; bottom: 180px; padding: 8px 12px; background: var(--surface); color: var(--text); border-radius: 8px; }
.editor-status:empty { display: none; }
.editor-selected { outline: 2px solid #679200; outline-offset: 3px; }
.editor-pitch-preview { position: fixed; z-index: 60; pointer-events: none; padding: 6px 10px; background: var(--accent); color: #111; border-radius: 8px; font-size: 16px; font-weight: 600; }
body[data-full-score] .readerbar { display: flex; position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: 56px; align-items: center; gap: 12px; padding: 6px 16px; background: var(--ground); }
body[data-full-score] .paper { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100dvh; margin: 0; padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border-radius: 0; }
body[data-full-score][data-drawing-profile="native-musescore"] .paper,body[data-full-score][data-drawing-profile="original-pdf"] .paper,body[data-full-score][data-drawing-profile="transpose-preview"] .paper{touch-action:none;overscroll-behavior:contain;overflow-anchor:none;}
#score .transpose-preview-frame{position:relative;flex:none;background:var(--paper,#fff)}
#score .transpose-preview-stage{position:absolute;left:0;top:0;transform-origin:top left;background:var(--paper,#fff);color:#111}
#score .transpose-preview-stage svg{width:100%;height:auto;max-width:none;display:block}
#nativeTransposeSave{background:var(--accent,#c6f432);color:var(--ink,#111);min-width:48px;min-height:48px}
body[data-full-score] #score.native-score-pages .native-score-page{margin-left:auto;margin-right:auto;}
body[data-full-score] .song-head, body[data-full-score] .settings { display: none; }
body[data-full-score] .transport { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; padding: 12px 16px; }
body[data-full-score="shown"] .paper { padding-top: 64px; padding-bottom: 88px; }
body[data-full-score="hidden"] .readerbar, body[data-full-score="hidden"] .transport { display: none; }
.readerbar>a { display: flex; min-width: 48px; height: 48px; align-items: center; justify-content: center; padding: 10px 12px; background: var(--accent); color: #111; border-radius: 10px; }
#readerTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 500; }
#readerFocus { display: flex; }
@media(max-width:1100px) {
 .workspace { grid-template-columns: minmax(0,1fr); gap: 0; }
 .zoom { display: none; }
}
@media(max-width:760px) {
 .shell { padding: 0 16px; }
 .topbar { height: 56px; min-height: 56px; gap: 8px; }
 .topbar .brand { font-size: 22px; }
 .topbar nav a:first-child { display: none; }
 body:not([data-preparation]) .topbar { display: none; }
 body:not([data-preparation]) .readerbar { display: flex; flex-shrink: 0; height: 56px; align-items: center; gap: 12px; }
 .workspace { display: flex; min-height: 0; }
 #main { flex: 1; padding: 0; }
 .song-head { height: 28px; min-height: 28px; padding: 0 0 4px; }
 .song-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .song-head .context { display: none; }
 .song-head .muted { font-size: 13px; margin: 0; line-height: 24px; }
 #focus { height: 44px; min-height: 44px; font-size: 12px; padding: 8px 12px; }
 .pitch { width: 100%; }
 .pitch>span { flex: 1; min-width: 0; font-size: 13px; }
 .pitch button { height: 44px; min-height: 44px; padding: 8px 10px; font-size: 12px; }
 .settings { margin-bottom: 8px; }
 .paper { flex: 1; min-height: 0; padding: 8px 8px 16px; }
 .transport { min-height: 72px; }
 .click, .songnav { gap: 8px; }
 #metronome { height: 44px; min-height: 44px; padding: 8px 12px; }
 #tempo { font-size: 12px; }
 #previous { width: 44px; height: 44px; min-height: 44px; }
 #next { height: 44px; min-height: 44px; padding: 6px 10px; font-size: 13px; }
 .drawer-backdrop { position: fixed; z-index: 29; inset: 0; width: 100%; height: 100dvh; max-height: none; padding: 0; border-radius: 0; background: #0009; }
 body[data-set-drawer="open"] .drawer-backdrop { display: block; }
 .sample-view { padding-top: 12px; }
 .structure-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .editor-palette { top: auto!important; left: 0!important; right: 0!important; bottom: 0; width: 100%; height: auto; padding-bottom: max(16px,env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
 body.has-editor-palette .paper { padding-bottom: 320px; }
}
@media(prefers-reduced-motion:reduce) {
 * { scroll-behavior: auto !important; transition: none !important; }
}
body[data-full-score="hidden"] .readerbar,
body[data-full-score="hidden"] .transport { display: none; }
/* R3: one icon system, bounded stage controls, explicit preparation builders. */
#readerSet,#focus,#closeSet,#setTab,.icon-button { width:48px;min-width:48px;height:48px;min-height:48px;padding:0;display:inline-flex;align-items:center;justify-content:center; }
#metronome {width:48px;min-width:48px;padding:0;display:flex;align-items:center;justify-content:center;}
#metronome[data-playing="true"]{outline:2px solid var(--accent);outline-offset:3px;}
#metronome[data-playing="true"] .metronome-arm{transform-box:fill-box;transform-origin:bottom left;animation:pendulum .6s ease-in-out infinite alternate;}
@keyframes pendulum{from{transform:rotate(-22deg)}to{transform:rotate(22deg)}}
.set-divider{padding:18px 8px 8px;font-weight:650;font-size:16px;color:var(--text);}
.drawer-programmes-link{display:inline-flex;align-items:center;min-height:48px;margin:0 8px 8px;font-weight:600;}
.drawer-edit-link{float:right;background:var(--accent);color:#111;}
.song-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.next-song{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.processing-state{min-height:100%;padding:48px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;}
.processing-state p{max-width:30ch;}.processing-state button{color:#111;}
.processing-state[data-state="loading"] .processing-spinner{animation:processing-spin 1s linear infinite;}
@keyframes processing-spin{to{transform:rotate(360deg)}}
.playback-view{padding:16px 12px 40px;}.playback-title{font-size:28px;font-weight:650;}.playback-metadata{margin:8px 0 24px;}.playback-current{font-size:24px;font-weight:600;margin-bottom:20px;}
.playback-structure .section-card{color:#111;border:0;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;white-space:normal;}
.playback-structure .section-card[aria-pressed="true"]{outline:3px solid #111;outline-offset:-5px;}
.playback-structure{grid-template-columns:repeat(var(--structure-columns,4),minmax(48px,1fr));gap:calc(8px * var(--structure-scale,1));}
.playback-structure .section-card{min-height:max(48px,calc(112px * var(--structure-scale,1)));padding:calc(8px * var(--structure-scale,1));gap:calc(8px * var(--structure-scale,1));overflow-wrap:anywhere;}
.playback-structure .section-card strong{font-size:calc(14px * var(--structure-scale,1));}
.playback-structure .section-card small{font-size:calc(12px * var(--structure-scale,1));}
.playback-view .playback-title{font-size:calc(28px * var(--structure-scale,1));}
.playback-view .playback-metadata{font-size:calc(14px * var(--structure-scale,1));}
.playback-view .playback-current{font-size:calc(24px * var(--structure-scale,1));}
.playback-view>.sample-button{margin-top:24px;display:inline-flex;}
.user-lyrics,.user-chords,.plain-content{white-space:pre-wrap;overflow-wrap:anywhere;}.user-chords{font-weight:650;}
.builder-view{padding-bottom:64px;}.builder-view>h2{margin-top:24px;}.builder-view>button{margin:8px 8px 8px 0;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.builder-view textarea{display:block;width:100%;min-height:112px;resize:vertical;border:1px solid var(--edge);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;padding:12px;margin:8px 0 20px;}
.builder-view textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.builder-view details{margin:20px 0;}.builder-view summary{min-height:48px;cursor:pointer;}
.programme-list{display:grid;gap:16px;margin:16px 0;}.programme-card{background:var(--surface);padding:16px;border-radius:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}.programme-card h2{flex:1 0 100%;overflow-wrap:anywhere;}
.programme-entries{display:grid;gap:8px;margin:16px 0;}.programme-entry{min-height:72px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;background:var(--surface);border-radius:8px;padding:8px;}.programme-entry strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.programme-entry input{margin:0;width:100%;min-width:0;}.programme-entry[data-type="divider"]{background:var(--control);}.programme-drag-handle{width:48px;height:48px;min-height:48px;padding:0;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;background:transparent;}
.programme-library{display:grid;gap:8px;margin:12px 0 20px;}.programme-library button{text-align:left;overflow:hidden;text-overflow:ellipsis;}
#compositionStructure .section-card{height:224px;min-height:224px;display:grid;grid-template-rows:48px minmax(0,1fr) 48px;gap:12px;padding:10px 8px;position:relative;color:#111;}.builder-view .section-card label{color:#111;font-size:12px;margin:0;}.builder-view .section-card input{margin:4px 0 0;width:100%;min-width:0;background:#fff;color:#111;height:48px;}.builder-view .section-card button{font-size:11px;padding:4px;white-space:normal;width:100%;}.builder-view .section-card .section-drag-handle{position:static;width:48px;height:48px;align-self:start;background:transparent;color:#111;}#compositionStructure .section-card-header{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:start;gap:4px;min-width:0;height:48px;}#compositionStructure .section-type-trigger{display:flex;align-items:center;width:100%;min-width:0;height:48px;min-height:48px;padding:0;margin:0;}#compositionStructure .section-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;}#compositionStructure .section-title-input{margin:0;min-width:0;height:48px;padding:4px;font-size:14px;font-weight:650;}#compositionStructure .section-bars-field{display:grid;align-self:start;gap:4px;line-height:16px;}#compositionStructure .section-bars-field input{margin:0;}#compositionStructure>.section-add{height:224px;min-height:224px;}.section-card{-webkit-touch-callout:none;}.section-add{height:112px;min-height:112px;font-size:32px;background:transparent;border:1px dashed var(--edge);color:var(--accent);}.section-type-chooser{margin:16px 0;padding:16px;background:var(--surface);border-radius:12px;}.section-type-chooser button{margin:8px 8px 0 0;}.section-details{padding:16px;background:var(--surface);border-radius:12px;}.composition-preview{margin-top:24px;border-top:1px solid var(--edge);padding-top:20px;}
@media(max-width:760px){.topbar nav #standTab{display:none}.topbar nav{gap:0}.topbar nav .programmes-link{display:none}.topbar .brand{font-size:20px}.topbar{gap:8px}#readerSet,#focus,#metronome{width:48px;min-width:48px;height:48px;min-height:48px}.readerbar{gap:8px!important}.click{gap:6px}#tempo{font-size:11px}#next{width:138px}.programme-entry{grid-template-columns:48px minmax(0,1fr) 64px;gap:4px;padding:4px}.programme-entry button:not(.programme-drag-handle){padding:4px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.processing-spinner,.metronome-arm{animation:none!important}}
body[data-full-score="hidden"] .readerbar,body[data-full-score="hidden"] .transport{display:none;}
.library-song{display:flex;min-height:72px;padding:12px;flex-direction:column;gap:4px;background:var(--surface);border-radius:8px;overflow-wrap:anywhere;}.library-song span{font-size:12px;color:var(--muted)}
.icon-button{border-radius:10px;}body[data-processing="true"] #status{display:none;}
.programme-card{display:grid;grid-template-columns:minmax(0,1fr) 48px 48px;gap:8px 12px;}.programme-card h2,.programme-card>p{grid-column:1;margin:0;}.programme-card .programme-edit{grid-column:2;grid-row:1/span 2;}.programme-card .programme-open{grid-column:3;grid-row:1/span 2;}.programme-card button{width:48px;min-width:48px;height:48px;padding:0;}.playback-section-content{margin-top:16px;}.playback-current[data-kind]{display:inline-block;padding:12px;border-radius:8px;background:#c6f24e;color:#111;}.playback-current[data-kind="intro"]{background:#f9a8b3}.playback-current[data-kind="chorus"]{background:#fbd77a}.playback-current[data-kind="bridge"]{background:#b9e8dd}.playback-current[data-kind="transition"]{background:#f5a6b9}
.sample-list>.library-entry{position:relative;padding:0;display:block;isolation:isolate;overflow:hidden;background:var(--surface);}
.library-entry-content{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;background:var(--surface);transform:translateX(var(--row-swipe,0px));transition:transform .16s ease-out;touch-action:pan-y;}
.library-entry.row-actions-open{--row-swipe:-64px;}
.library-entry-content.has-melody-recording{grid-template-columns:minmax(0,1fr) auto auto}
.library-entry .library-recording{display:grid;place-items:center;width:48px;height:48px;color:var(--text)}
.library-recording svg{width:24px;height:24px}
.library-entry.row-swipe-dragging .library-entry-content{transition:none;}
.library-entry .entry-trash{top:50%;transform:translateY(-50%);}
.library-entry a:focus-visible{outline-offset:-3px;}
.library-entry .library-song{min-width:0;background:transparent;}
.library-entry .library-edit{margin-right:8px;background:var(--accent);color:#111;}
.library-entry .library-edit:hover{filter:brightness(.92);}
.library-deletion-notice{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px;margin-top:16px;border:1px solid var(--edge);border-radius:12px;background:var(--ground);}
.library-deletion-notice[hidden]{display:none;}
.library-deletion-notice p{margin:0;overflow-wrap:anywhere;}
.library-deletion-notice button{flex-shrink:0;}
.library-delete-dialog .danger{background:#BA3045;color:#fff;}
.sample-list>.archive-entry{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:12px;}
.archive-copy{display:grid;gap:4px;overflow-wrap:anywhere;}
.structure-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px;}
.structure-toolbar h2{margin:0;}
.structure-toolbar .editor-undo{position:static;margin:0;width:48px;}
@media(max-width:520px){#compositionStructure{grid-template-columns:repeat(2,minmax(0,1fr));}}
.chart-annotation{font-style:italic;}
.chart-layers{display:flex;flex-shrink:0;gap:4px;}
.chart-layers[hidden]{display:none;}
.chart-layers button{width:48px;min-width:48px;height:48px;min-height:48px;padding:0;background:var(--control);color:var(--text);}
.chart-layers button[aria-pressed=true]{background:var(--accent);color:#111;}
.chart-layers button:disabled{opacity:1;}
.chart-chords-only .chart-segment{margin-right:1ch;}
.chart-comment{display:flex;flex-wrap:wrap;align-items:flex-end;}
@media(prefers-reduced-motion:reduce){.library-entry-content{transition:none;}}
#main{grid-column:1;}#closeSet{background:var(--accent);color:#111;}
/* R4: supplied mark and grouped preparation header. */
.brand-logo{display:block;flex:none;width:32px;height:32px;object-fit:cover;border-radius:50%;}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0;}
.topbar-actions>a{border-radius:10px;}
.topbar nav{margin-left:auto;}
.builder-view{gap:12px;}.builder-view>h2{margin-top:16px;}.builder-view>button{margin:0;}.builder-view textarea{margin:6px 0 8px;}
.builder-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}.builder-actions button{flex:1;min-width:0;}
.section-content-editor{display:grid;gap:12px;margin-top:8px;}.section-content-editor>h2{margin-bottom:0;}.section-content-block{padding:12px;background:var(--surface);border-radius:10px;}.section-content-block h3{margin:0 0 8px;font-size:15px;font-weight:600;}.section-content-block textarea{margin:0;min-height:96px;}.legacy-content{margin:8px 0!important;}.legacy-content summary{display:flex;align-items:center;font-size:13px;color:var(--muted);}
.composition-attachment{margin:8px 0!important;padding:12px;background:var(--surface);border-radius:10px;}.composition-attachment summary{font-weight:600;}.composition-attachment p{margin:8px 0;color:var(--muted);font-size:13px;}
.programme-library-search{margin:0 0 8px;}
@media(max-width:760px){.topbar-actions{margin-left:auto;}.topbar nav{display:none;}.builder-actions{display:grid;grid-template-columns:1fr 1fr;}.builder-actions button{width:100%;font-size:12px;padding:8px;}}
.section-content-editor{gap:8px;}.section-content-block{padding:0 12px;}.section-content-block summary{min-height:48px;padding:12px 0;font-size:14px;font-weight:550;cursor:pointer;}.section-content-block textarea{min-height:80px;margin:0 0 12px;}.section-type-trigger{background:transparent!important;color:#111!important;font-size:14px!important;font-weight:650;text-align:left;}
.programme-part-picker{margin:12px 0;padding:16px;background:var(--surface);border-radius:12px;display:grid;gap:12px;}.programme-part-picker>button{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;}.programme-part-picker>h2{font-size:18px;}.programme-part-caption{font-size:12px;color:var(--muted);white-space:normal;}
.programme-entry-info{min-width:0;display:flex;flex-direction:column;gap:2px;}.programme-entry-info strong{display:block;}.entry-part-caption{font-size:11px;line-height:16px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.programme-part-picker h3{margin:0;font-size:18px;font-weight:600;}
.lyrics-section,.lyrics-global{margin:0 0 24px;}.lyrics-section:last-child,.lyrics-global:last-child{margin-bottom:0;}.lyrics-section p+p{margin-top:12px;}
.builder-view .section-content-block{margin:0;}
#lyrics .lyric-line-pair p,.lyric-line-pair p{white-space:pre-wrap;min-height:1em;margin:0;}.lyric-line-pair{margin:0 0 12px;}.lyric-line-pair .chord-line{font-weight:650;}.lyrics-section .lyric-line-pair p+p{margin-top:0;}
#lyrics .lyric-line-pair p,.lyric-line-pair p{margin:0;min-height:1.6em;}.lyric-line-pair{margin:0;}.lyric-line-pair.has-chords{margin-bottom:8px;}#lyrics .lyric-line-pair .chord-line,.lyric-line-pair .chord-line{line-height:1.3;min-height:1.3em;}
.song-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* Drawer entry actions remain separate from library assets. */
.song-row{display:block;padding:0;overflow:hidden;}
.song-row-content{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;height:72px;padding-right:8px;background:var(--surface);transform:translateX(var(--row-swipe,0px));transition:transform .16s ease-out;touch-action:pan-y;}
.song-row.row-actions-open{--row-swipe:-64px;}.song-row.row-swiping .song-row-content{transition:none;}
.entry-trash{position:absolute;z-index:0;right:8px;top:12px;display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:0;background:var(--accent);color:#111;pointer-events:none;}.row-actions-open .entry-trash{pointer-events:auto;}
.set-add-row{margin:0 0 8px;}.set-add-button{display:flex;width:100%;min-height:48px;align-items:center;padding:10px 12px;background:transparent;color:var(--muted);font-size:13px;text-align:left;}
.set-add-actions{display:flex;gap:8px}.set-add-actions>button{flex:1;min-width:0;width:auto;min-height:48px;padding:10px 8px;background:transparent;color:var(--muted);font-size:13px;text-align:left;white-space:nowrap}
.set-divider{display:flex;align-items:center;gap:8px}.set-divider-title{flex:1;min-width:0;min-height:48px;padding:8px 0;background:transparent;color:inherit;text-align:left;font:inherit;overflow-wrap:anywhere}.set-divider-input{flex:1;min-width:0;width:0;height:48px;padding:8px;border:1px solid var(--edge);border-radius:8px;background:var(--ground);color:var(--text);font:inherit}.set-divider>.icon-button{flex:0 0 48px;width:48px;min-height:48px;padding:8px}.set-divider-undo{background:transparent;color:var(--muted)}
.drawer-empty-note{padding:8px;font-size:13px;color:var(--muted);}.drawer-notice{font-size:12px;line-height:18px;color:var(--signal);padding:0 8px;}.drawer-notice:empty{display:none;}
.drawer-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;padding:8px;background:var(--surface);border-radius:8px;}.drawer-undo span{font-size:12px;line-height:18px;}.drawer-undo button{font-size:12px;}
.drawer-inline-picker{padding:12px;margin:0 0 12px;background:var(--surface);border-radius:10px;}.drawer-inline-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;}.drawer-inline-head h3{font-size:15px;margin:0;}.drawer-inline-picker label{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;}.drawer-inline-picker input{width:100%;height:48px;border:1px solid var(--edge);border-radius:8px;padding:12px;background:var(--ground);color:var(--text);font:inherit;}.drawer-library-results{display:grid;gap:8px;margin-top:12px;}.drawer-library-results button{width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;}.drawer-part-picker{display:grid;gap:8px;}.drawer-part-picker h3{font-size:16px;margin:0;}.drawer-part-picker p{font-size:13px;overflow-wrap:anywhere;}.drawer-library-song{font-size:13px;}
/* Light theme direction from the supplied visual reference; dark tokens remain intact. */
:root[data-theme="light"]{--ground:#f3f5fb;--surface:#fff;--control:#eaf0f8;--text:#102044;--muted:#52617b;--edge:#d7e1f1;--signal:#126f74;--paper:#fff;--ink:#102044;--turquoise:#26ddd8;}
:root[data-theme="light"] .topbar,:root[data-theme="light"] .readerbar{background:#102044;color:#fff;}
:root[data-theme="light"] .topbar{margin:0 -24px;padding:0 24px;}
:root[data-theme="light"] .programme-card,:root[data-theme="light"] .programme-entry,:root[data-theme="light"] .section-content-block,:root[data-theme="light"] .sample-list>div,:root[data-theme="light"] .sample-message,:root[data-theme="light"] .drawer-inline-picker{border:1px solid var(--edge);}
:root[data-theme="light"] .song-row,:root[data-theme="light"] .paper{outline:1px solid var(--edge);outline-offset:-1px;}
:root[data-theme="light"] .song-row.active{outline:2px solid #147d81;outline-offset:-2px;}
:root[data-theme="light"] .sample-view input,:root[data-theme="light"] .sample-view textarea{background:#fff;}
:root[data-theme="light"] input::placeholder,:root[data-theme="light"] textarea::placeholder{color:#596a86;opacity:1;}
:root[data-theme="light"] .section-content-block summary{color:#102044;}
:root[data-theme="light"] .primary,:root[data-theme="light"] #metronome,:root[data-theme="light"] #readerSet,:root[data-theme="light"] #setTab,:root[data-theme="light"] #focus,:root[data-theme="light"] #closeSet{color:#102044;}
@media(max-width:760px){:root[data-theme="light"] .topbar{margin:0 -16px;padding:0 16px;}:root[data-theme="light"] body:not([data-full-score]) .readerbar{margin:0 -16px;padding:0 16px;}}
:root[data-theme="light"]{--ground:#F4F6FB;--surface:#FFF;--text:#0B1B3F;--muted:#4B5563;--edge:#DDE3EE;--control:#EBF0FF;--accent:#C6F432;--accent-hover:#D8FA6E;--turquoise:#34E8DD;--paper:#FFF;--ink:#0B1B3F;--navy:#0B1B3F;--navy2:#132A5C;--tint:#EBF0FF;}
:root[data-theme="light"] .topbar,:root[data-theme="light"] .readerbar{background:var(--navy);}
:root[data-theme="light"] #lyrics h2{color:var(--navy2);}
:root[data-theme="light"] .primary,:root[data-theme="light"] #metronome,:root[data-theme="light"] #readerSet,:root[data-theme="light"] #setTab,:root[data-theme="light"] #focus,:root[data-theme="light"] #closeSet{color:var(--navy);}
:root[data-theme="light"] .section-content-block summary{color:var(--navy);}
:root[data-theme="light"] .topbar nav a[aria-current="page"]{color:var(--turquoise);}
:root[data-theme="light"] .primary:hover:not(:disabled){background:var(--accent-hover);}
:root[data-theme="light"] .section-card[data-kind="verse"]{--section-color:var(--accent);}
.entry-trash{background:#BA3045;color:#fff;}
:root[data-theme="light"]{--field-border:#7B8BA6;}
:root[data-theme="light"] .sample-view input,:root[data-theme="light"] .sample-view select,:root[data-theme="light"] .sample-view textarea,:root[data-theme="light"] .drawer-inline-picker input{border-color:var(--field-border);}
:root[data-theme="light"] button:focus-visible,:root[data-theme="light"] a:focus-visible,:root[data-theme="light"] select:focus-visible,:root[data-theme="light"] input:focus-visible,:root[data-theme="light"] textarea:focus-visible,:root[data-theme="light"] summary:focus-visible{outline:3px solid var(--navy2);outline-offset:3px;}
.song-row.row-swipe-dragging .song-row-content{transition:none;}
.drawer-undo{position:sticky;top:8px;z-index:4;}body[data-drawer-undo="true"] #queue{scroll-padding-top:80px;}body[data-drawer-undo="true"] .drawer-inline-picker input{scroll-margin-top:80px;}
.drawer-inline-notice{font-size:12px;line-height:18px;margin-top:8px;color:var(--signal);}.drawer-inline-notice:empty{display:none;}
:root[data-theme="light"] .section-add{color:var(--navy2);border-color:var(--field-border);}
/* Intro and custom Other share the transition group by the current brief. */
.section-card[data-kind="intro"],.section-card[data-kind="other"]{--section-color:#f9a8b3;}
.playback-current[data-kind="intro"],.playback-current[data-kind="other"]{background:#f9a8b3;}
.section-custom-name{width:100%;min-width:0;height:48px;min-height:48px;}
.section-type-chooser button[data-kind="transition"]{background:#f9a8b3;color:#111;}.section-type-chooser button[data-kind="verse"]{background:var(--accent);color:#111;}.section-type-chooser button[data-kind="chorus"]{background:#f9cd72;color:#111;}.section-type-chooser button[data-kind="bridge"]{background:#b3e5dc;color:#111;}
/* Long user section names remain within the fixed 48px type action. */
.section-type-trigger{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:18px;max-height:48px;}
/* R5: real front door and contextual edits retain the R4 palette and Inter. */
.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 24px}.home-actions .sample-button{margin:0}.example-list{display:grid;gap:12px}.example-card{padding:16px;border:1px solid var(--edge);border-radius:12px;background:var(--surface)}.example-card h3{font-size:18px;line-height:24px;margin:0 0 4px}.example-card p{font-size:13px;line-height:20px;margin:0 0 12px}.example-card .sample-button{margin:0;min-height:48px}.sample-view .home-actions+h2{margin-top:0}#readerFocus{gap:8px}#quickEdit{width:48px;min-width:48px;height:48px;padding:12px;background:var(--accent);color:#111}.song-head>#quickEdit{margin-left:auto}.quick-edit-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:16px;border:1px solid var(--edge);border-radius:12px;background:var(--ground);color:var(--text);overflow:auto;overscroll-behavior:contain}.quick-edit-dialog::backdrop{background:rgb(0 0 0/.72)}.quick-edit-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.quick-edit-header h2{margin:0;font-size:20px;line-height:28px;overflow-wrap:anywhere}.quick-edit-header .icon-button{width:48px;min-width:48px;padding:12px}.quick-editor-host{display:grid;gap:12px}.quick-editor-host label{display:block;margin:8px 0 4px}.quick-editor-host textarea{width:100%;min-height:88px;padding:12px;border:1px solid var(--edge);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;line-height:24px;resize:vertical}.quick-editor-host h3{font-size:16px;margin:12px 0 4px}.quick-notes-bar{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:8px 0}.quick-notes-bar strong{margin-right:auto;font-size:13px}.quick-notes-bar button{padding:10px 12px}.beat-count{font-size:12px;line-height:20px;font-variant-numeric:tabular-nums;min-width:24px;text-align:center}.beat-count[data-accent=true]{color:var(--accent);font-weight:700}body[data-quick-editor=notes] #score .vf-stavenote{touch-action:none}:root[data-theme=light] .quick-editor-host textarea{border-color:var(--field-border)}
@media(min-width:900px){.example-list{grid-template-columns:repeat(3,minmax(0,1fr))}.home-actions{max-width:500px}.example-card{display:flex;flex-direction:column}.example-card .sample-button{margin-top:auto;white-space:normal;text-align:center}.example-list+h2{margin-top:24px}}
@media(max-width:760px){#readerFocus{gap:8px}#readerTitle{font-size:16px}.home-actions{margin-bottom:16px}.sample-view:has(#exampleList)>h1{font-size:24px}}
.click .beat{display:none}.click{gap:6px}#tempo{white-space:nowrap}.beat-count{flex-shrink:0;min-width:24px}body[data-quick-editor=notes] .transport .songnav{opacity:.55}
@media(max-width:760px){.click{gap:4px}#tempo{font-size:10px}.beat-count{font-size:11px;min-width:22px}.songnav{gap:6px}}
.library-create-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0 20px}.library-create-actions .sample-button{margin:0}.example-card button.sample-button{width:100%;display:flex;align-items:center;justify-content:center}.example-card button.sample-button:disabled{opacity:.6}
#lyrics .chord-warning,.playback-view .chord-warning{margin:12px 0 0;font-size:12px;line-height:18px;color:#555;white-space:normal}
@media(max-width:760px){.home-actions .sample-button{font-size:14px;white-space:nowrap}}
body.reordering,body.reordering *{user-select:none!important;-webkit-user-select:none!important}.drag-lifted.touch-dragging,.drag-lifted{opacity:1!important;box-shadow:0 10px 28px rgb(0 0 0/.35);outline:2px solid var(--accent);will-change:transform;pointer-events:none!important}.drag-slot{border:1px dashed var(--muted);border-radius:10px;background:var(--surface);opacity:.5;pointer-events:none}.drag-lifted .song-row-content{background:var(--control)}
@media(prefers-reduced-motion:reduce){.drag-lifted{will-change:auto}}
.quick-editor-fields{max-height:calc(100dvh - 260px);overflow:auto;overscroll-behavior:contain;padding-right:4px;scroll-padding:8px}.quick-editor-host>[role=status]:empty{display:none}.quick-editor-host .builder-actions{margin:0;display:flex;justify-content:flex-end;gap:8px}.quick-editor-host .chord-format-help{font-size:12px;line-height:18px;margin:0 0 8px}
.material-view-row{flex-shrink:0;display:flex;align-items:center;gap:8px;margin:0 0 8px}.material-view-row[hidden]{display:none}.material-view-row label{font-size:12px;color:var(--muted)}.material-view-row select{flex:1;min-width:0;height:48px;min-height:48px;font-size:13px;padding:8px 12px}
#quickEdit:disabled,#focus:disabled{background:var(--surface);color:var(--muted);opacity:.5}
.quick-editor-fields .quick-source-context{font-size:12px;line-height:18px;color:var(--muted);margin:0 0 12px}
/* R6 notation signs are Bravura outlines, not system-font symbols. */
.notation-glyph{display:block;width:36px;height:40px;flex:none;overflow:visible}.editor-palette .notation-icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:4px;line-height:1;background:var(--control);color:var(--text)}.editor-palette .notation-icon-button[aria-pressed=true]{background:var(--accent);color:#111}.editor-palette .notation-icon-button:disabled{background:var(--surface);color:var(--muted);opacity:.5}.editor-palette .notation-icon-button .notation-glyph{pointer-events:none}
.editor-palette.notation-palette{max-height:min(360px,48dvh);align-content:flex-start;gap:8px}.notation-palette .editor-palette-toolbar{display:flex;align-items:center;gap:8px;width:100%;min-height:48px}.notation-palette .editor-selection-status{flex:1;min-width:0;font-size:12px;line-height:18px;color:var(--muted);margin:0}.notation-duration-group{display:flex;align-items:center;gap:8px;width:100%;min-width:0}.notation-duration-label{width:40px;flex:none;font-size:12px;line-height:18px;color:var(--muted)}.notation-duration-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.notation-palette .editor-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}body[data-editor-selection=range] #score .vf-stavenote{touch-action:pan-y}
@media(min-width:761px){.editor-palette.notation-palette{width:392px;max-width:calc(100% - 16px)}}
@media(max-width:360px){.editor-palette.notation-palette{padding-left:8px;padding-right:8px}.notation-duration-group{gap:6px}.notation-duration-label{width:34px;font-size:11px}.notation-duration-row{gap:4px}}
.notation-palette .notation-toolbar{display:flex;align-items:center;gap:8px;width:100%;min-height:48px}.notation-palette .notation-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}.notation-palette .editor-range-hint{width:100%;font-size:12px;line-height:18px;color:var(--muted);margin:0}
.notation-palette .editor-status{position:static;flex-basis:100%;width:100%;font-size:12px;line-height:18px;padding:0;margin:0;border-radius:0;background:transparent;color:var(--muted)}
/* R7: all three material tabs belong to one song; empty is a capability state. */
.material-view-row{display:flex;align-items:center;gap:8px;flex-shrink:0;margin:0 0 8px}.material-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;flex:1;min-width:0}.material-tabs .material-tab{width:100%;min-width:0;height:48px;min-height:48px;padding:8px 4px;font-size:12px;line-height:16px;white-space:normal;display:flex;align-items:center;justify-content:center;background:var(--control);color:var(--text)}.material-tabs .material-tab[aria-selected=true]{background:var(--accent);color:#111}.material-tabs .material-tab:disabled{opacity:.5;cursor:default}.material-empty{padding:24px 16px;color:var(--ink);min-height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px}.material-empty[hidden]{display:none}.material-empty h2{font-size:24px;line-height:30px;margin:0}.material-empty p{font-size:16px;line-height:24px;margin:0;max-width:40ch}.material-empty .sample-button{margin:0}.shared-example-caption{font-size:14px;line-height:22px;color:var(--muted);margin-top:-8px;margin-bottom:16px}
body[data-full-score] #materialViewRow{display:none}body[data-full-score=shown] .paper{padding-top:64px}
@media(max-width:760px){body[data-quick-editor=notes] .song-head,body[data-quick-editor=notes] .settings{display:none}.quick-notes-bar strong{font-size:12px;line-height:18px;white-space:normal;max-width:160px}.example-card .sample-button{font-size:14px}.shared-example-caption{font-size:13px;line-height:20px}}
body[data-full-score][data-quick-editor=notes] .quick-notes-bar{position:fixed;top:112px;left:16px;right:16px;z-index:6;background:var(--ground);padding:8px 0;margin:0;min-height:64px}body[data-full-score][data-quick-editor=notes] .paper{padding-top:184px}

.editor-undo{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:48px;min-height:48px;max-height:48px;flex-shrink:0;}.builder-view>.editor-undo{position:sticky;top:8px;z-index:8;margin:0 0 12px;background:var(--control);color:var(--text);}.quick-editor-host .builder-actions .editor-undo{flex:0 0 48px;width:48px;min-width:48px;}

#homeButton{display:inline-flex;width:48px;min-width:48px;height:48px;align-items:center;justify-content:center;border-radius:10px;background:var(--control);color:var(--text);text-decoration:none;}#drawerTools #homeButton{margin-left:auto;}#quickNotesUndo{min-width:48px;width:48px;height:48px;flex:0 0 48px;}@media(max-width:760px){.quick-notes-bar strong{max-width:105px;font-size:11px;line-height:16px}.quick-notes-bar{gap:6px}.quick-notes-bar>button{padding-inline:10px;}}

.chart-document{white-space:normal;overflow-wrap:anywhere;}.chart-row{margin:0;min-height:1.5em;line-height:1.5;white-space:pre-wrap;}.chart-chords,.chart-chord{font-weight:700;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;}.chart-inline{display:flex;flex-wrap:wrap;align-items:flex-end;}.chart-segment{display:inline-flex;flex-direction:column;white-space:pre-wrap;}.chart-lyric{white-space:pre-wrap;}.builder-view #composition-chart{width:100%;font:inherit;line-height:1.5;min-height:240px;padding:12px;border:1px solid var(--field-border,var(--edge));border-radius:10px;background:var(--surface);color:var(--text);resize:vertical;}
#lyrics.chart-document,#lyrics .chart-document{font-size:calc(26px * var(--lyrics-scale));line-height:1.6;}#lyrics .chart-chord,#lyrics .chart-chords{font-size:.85em;}
.pitch>#key[data-instrument-pitch]{display:grid;gap:2px;min-width:240px;min-height:38px;font-size:12px;line-height:18px;overflow-wrap:anywhere;}.pitch-context-label{display:block;}@media(max-width:760px){.pitch{flex-wrap:wrap;}.pitch>#key[data-instrument-pitch]{flex:0 0 100%;min-width:0;}.pitch>#key[data-instrument-pitch]~button{flex:1;}}

.score-presentation{display:flex;gap:8px;flex-shrink:0;margin:0 0 8px;}.score-presentation[hidden]{display:none}.score-presentation button{height:48px;min-height:48px;flex:1;min-width:0;font-size:12px;padding:8px}.score-presentation button[aria-pressed=true]{background:var(--accent);color:#111;}body[data-full-score=hidden] #scorePresentationRow{display:none}body[data-full-score=shown] #scorePresentationRow:not([hidden]){position:fixed;top:56px;left:16px;right:16px;z-index:5;background:var(--ground);}body[data-full-score=shown]:has(#scorePresentationRow:not([hidden])) .paper{padding-top:120px;}
body[data-full-score=shown] #scorePresentationRow:not([hidden]){left:0;right:0;width:100%;max-width:none;box-sizing:border-box;margin:0;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));gap:12px}
body[data-full-score=shown] #scorePresentationRow>button{flex:1 1 0;min-width:0}
body[data-full-score=shown]:has(#scorePresentationRow:not([hidden])) .paper{padding-top:128px}

.builder-view>.editor-undo{width:max-content;max-width:100%;}

.test-states{display:none!important;}body[data-qa-fixture] .test-states{display:block!important;}

.dirty-navigation-dialog{width:min(480px,calc(100vw - 32px));padding:20px;border:1px solid var(--edge);border-radius:12px;background:var(--ground);color:var(--text);font:inherit;}.dirty-navigation-dialog::backdrop{background:rgb(0 0 0 / .72)}.dirty-navigation-dialog h2{margin:0 0 12px;font-size:20px;line-height:28px}.dirty-navigation-dialog p{margin:0 0 16px;line-height:22px}.dirty-navigation-actions{display:grid;gap:8px}.dirty-navigation-actions button{width:100%;height:48px;min-height:48px;max-height:48px;padding:8px 12px;font-size:13px;line-height:16px;}


.background-import-status{display:grid;gap:8px;margin:16px 0 24px;min-width:0}.background-import-row{display:flex;align-items:center;gap:4px;border-radius:10px;background:var(--control);min-width:0}.background-import-link{display:flex;align-items:center;gap:12px;min-width:0;flex:1;min-height:48px;padding:12px 14px;color:var(--text);font-size:14px;line-height:22px;overflow-wrap:anywhere;text-decoration:none}.background-import-row[data-busy=true] .background-import-link:before{content:'';width:16px;height:16px;flex:none;border:2px solid var(--muted);border-top-color:var(--accent);border-radius:50%;animation:import-status-spin 1s linear infinite}.background-import-icon{width:48px;min-width:48px;height:48px;padding:12px;flex:none;touch-action:manipulation}.background-import-icon svg{width:24px;height:24px}.background-import-manage{justify-self:start;background:transparent;color:var(--muted);font-size:13px;min-height:48px}.shell>.background-import-status{margin:8px 16px}.background-import-status[hidden]{display:none}
.import-manager{width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto;overscroll-behavior:contain;background:var(--ground);color:var(--text);border:1px solid var(--edge);border-radius:16px;padding:20px}.import-manager::backdrop{background:#0009}.import-manager-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.import-manager-head h2{margin:0;font-size:22px}.import-manager-list{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:16px}.import-manager-row{padding:16px;background:var(--control);border-radius:10px;min-width:0}.import-manager-open{display:block;min-height:48px;text-decoration:none;overflow-wrap:anywhere}.import-manager-open strong,.import-manager-open span{display:block}.import-manager-open span{font-size:13px;color:var(--muted);margin-top:4px}.import-manager-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.import-manager-actions button{min-height:48px}.import-manager-error{color:var(--danger)}
@media(prefers-reduced-motion:reduce){.background-import-row[data-busy=true] .background-import-link:before{animation:none}}
@keyframes import-status-spin{to{transform:rotate(360deg)}}
.import-manager-error{color:var(--text)}

/* Shared touch editor: a bottom dock, never a floating note menu. */
.editor-palette.notation-palette{position:fixed;z-index:40;inset:auto 0 var(--note-editor-dock-bottom,0px);width:100%;max-width:none;max-height:min(460px,54dvh);display:flex;flex-direction:column;align-content:normal;flex-wrap:nowrap;gap:0;padding:0;overflow:hidden;background:var(--surface);border:0;border-top:1px solid var(--edge);border-radius:0;box-sizing:border-box}
.editor-palette[hidden],.editor-status[hidden]{display:none!important}
.editor-palette.notation-palette button:disabled{background:var(--surface);color:var(--muted);opacity:.5;cursor:default}
.notation-palette .notation-toolbar{display:flex;flex:none;align-items:center;gap:8px;width:100%;min-height:48px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}
.notation-palette .editor-selection-status{flex:1;min-width:0;font-size:12px;line-height:18px;color:var(--muted);margin:0}
.notation-palette .notation-palette-controls{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;align-items:center;gap:8px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));scrollbar-color:var(--muted) var(--surface)}
.notation-palette .notation-duration-group{display:flex;flex:none;align-items:center;gap:8px;width:auto;min-width:0}
.notation-palette .notation-duration-label{width:40px;flex:none;font-size:12px;line-height:18px;color:var(--muted)}
.notation-palette .notation-duration-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.notation-palette .notation-actions{display:flex;flex:none;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;width:auto;max-width:100%}
.notation-palette .notation-edit-actions{flex:0 1 auto}
.notation-palette .notation-edit-actions>button:not(.notation-icon-button){padding-left:10px;padding-right:10px}
.editor-palette .notation-icon-button.notation-select-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:124px;min-height:48px;height:48px;padding:4px 12px;font:600 14px/20px Inter,sans-serif;white-space:nowrap}
.notation-select-button .notation-glyph{width:28px;height:36px}
.notation-palette .editor-range-hint{flex-basis:100%;font-size:12px;line-height:18px;color:var(--muted);margin:0}
.editor-status,.notation-palette .editor-status{position:fixed;z-index:41;left:0;right:0;bottom:var(--note-editor-dock-bottom,0px);padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));margin:0;border-radius:0;background:var(--accent);color:#111;font:600 13px/18px Inter,sans-serif;overflow-wrap:anywhere}
.notation-palette .editor-status{position:static;flex:none;width:100%;box-sizing:border-box}
.editor-status:empty{display:none}
@media(max-width:360px){.notation-palette .notation-duration-group{gap:6px}.notation-palette .notation-duration-label{width:34px;font-size:11px}.notation-palette .notation-duration-row{gap:4px}}

body[data-editor=true] #main{padding-bottom:var(--note-editor-dock-height,0px)}
body.has-editor-palette .paper{padding-bottom:20px;scroll-padding-bottom:20px}
body.has-editor-palette[data-full-score] .paper{bottom:var(--note-editor-dock-height,0px);height:auto;padding-bottom:88px}
body.has-editor-palette[data-full-score] .transport{bottom:var(--note-editor-dock-height,0px)}

/* Note editing keeps task actions and the score in view at every breakpoint. */
body[data-quick-editor=notes] .topbar,
body[data-quick-editor=notes] .readerbar,
body[data-quick-editor=notes] .song-head,
body[data-quick-editor=notes] #materialViewRow,
body[data-quick-editor=notes] .settings,
body[data-quick-editor=notes] #scorePresentationRow{display:none!important}
body[data-quick-editor=notes] #main{padding-top:max(8px,env(safe-area-inset-top))}
body[data-quick-editor=notes][data-full-score] #quickNotesBar{top:env(safe-area-inset-top,0px);left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));min-height:64px}
body[data-quick-editor=notes][data-full-score] #main .paper{padding-top:calc(72px + env(safe-area-inset-top))}
