@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #111410; --surface: #181c16; --surface-2: #1e231b; --surface-3: #252c21;
  --line: #30362a; --line-soft: #262c21; --line-bright: #505c43;
  --text: #edf0e6; --muted: #a3ac98; --quiet: #96a18b;
  --accent: #c0ef7a; --accent-hover: #d6ff9f; --accent-ink: #1a290b; --accent-line: #738953;
  --orange: #e8a174; --blue: #8dbee1; --violet: #c0a2db; --red: #ffaaa1;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --row: 44px; --strip: 172px;
  font: 14px/1.5 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); display: flex; flex-direction: column; min-width: 320px; }
button, select, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* top bar and sections */
.top { display: flex; align-items: center; gap: 16px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--surface);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; height: 52px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand img { color: #e1d8f0; }
.tabs { display: flex; flex: 1; min-width: 0; height: 52px; order: 2; }
.account { order: 3; display: flex; align-items: center; }
.account:empty { display: none; }
.tabs a { display: grid; place-items: center; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs a[data-code] { margin-left: auto; }
@media (max-width: 700px) {
  .top { gap: 0; padding: 0; padding-top: env(safe-area-inset-top); }
  .brand { padding: 0 16px; height: 44px; }
  .tabs { flex-basis: 100%; height: 44px; border-top: 1px solid var(--line-soft); order: 3; }
  .account { order: 2; margin-left: auto; padding-right: 16px; }
  .tabs a { flex: 1; padding: 0 2px; font-size: 13px; }
  .tabs a[data-code] { margin-left: 0; }
}
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow: auto; }
.page { max-width: 1100px; width: 100%; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-size: 20px; margin: 0; font-weight: 700; }
.page h2 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.lead { color: var(--muted); margin: 4px 0 0; max-width: 680px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.error { color: var(--red); }

/* controls */
.btn { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:not(:disabled):hover { background: var(--surface-3); border-color: var(--line-bright); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:not(:disabled):hover { background: var(--accent-hover); }
.btn.small { height: 32px; padding: 0 10px; font-size: 12px; }
.btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); }
.btn svg { flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.input, select.input { height: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13px; width: 100%; min-width: 0; }
.input:focus { border-color: var(--line-bright); outline: none; }
input[type=range] { accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; max-width: 100%; align-self: flex-start; scrollbar-width: none; }
.seg button { height: 38px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); white-space: nowrap; flex-shrink: 0; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.play .i-pause, .play.playing .i-play { display: none; }
.play.playing .i-pause { display: block; }
.play:not(:disabled):hover { background: var(--accent-hover); }
.drop { border: 1px dashed var(--line-bright); border-radius: 10px; padding: 22px 16px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats div { background: var(--surface); padding: 12px 14px; }
.stats b { display: block; font: 500 18px var(--mono); }
.stats span { font-size: 12px; color: var(--muted); }
.progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr.off td { color: var(--quiet); }
.toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-bright);
  color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 13px; max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 50; }
.toast.show { opacity: 1; }
.toast.error { border-color: #7a4a44; color: var(--red); }

/* studio */
.bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.tool { height: 44px; min-width: 44px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; padding: 0 10px; }
.tool:not(:disabled):hover { background: var(--surface-3); color: var(--text); }
.tool.text { font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.tool[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); }
.tool.rec[aria-pressed="true"] { color: var(--red); border-color: #7a4a44; background: #2a1d1b; }
.time { min-width: 84px; padding: 0 4px; line-height: 1.2; }
.time strong { display: block; font: 400 20px var(--mono); letter-spacing: -.04em; }
.time span { font: 11px var(--mono); color: var(--quiet); }
.songrow { display: flex; gap: 8px; flex: 1; min-width: 0; max-width: 520px; }
.songpick { flex: 1; min-width: 0; justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.bpm { width: 84px; }
.note { padding: 8px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.note:empty { display: none; }
.note.error { color: var(--red); }
.arr { flex: 1; min-height: 120px; overflow: auto; display: grid; grid-template-columns: var(--strip) minmax(0, 1fr); align-content: start; }
.strips { padding-top: 24px; border-right: 1px solid var(--line); background: var(--surface); position: sticky; left: 0; z-index: 2; }
.strip { height: var(--row); display: grid; grid-template-columns: 30px 30px minmax(0, 1fr); align-items: center; gap: 4px; padding: 0 8px 0 6px; border-bottom: 1px solid var(--line-soft); }
.strip.sel { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--tone, var(--accent)); }
.strip button { height: 30px; border-radius: 6px; font: 500 11px var(--mono); color: var(--quiet); border: 1px solid var(--line); }
.strip button[aria-pressed="true"].m { background: #3a2f27; color: var(--orange); border-color: #6b5140; }
.strip button[aria-pressed="true"].s { background: #2f3a22; color: var(--accent); border-color: #5d7341; }
.strip .meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.strip .name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; border: 0; height: auto; padding: 0;
  font-family: inherit; color: var(--text); }
.strip input[type=range] { width: 100%; height: 14px; margin: 0; }
.strip .meter { height: 3px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.strip .meter i { display: block; height: 100%; width: 0; background: var(--tone, var(--accent)); }
.lanes { position: relative; min-width: 0; }
.lanes canvas { display: block; width: 100%; }
.ruler { height: 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 1; cursor: pointer; }
.lanes canvas.tracks { cursor: pointer; touch-action: pan-y; }
.rangebar { background: var(--surface-2); gap: 6px; }
.head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); left: 0; pointer-events: none; z-index: 1; }
.status { padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--quiet); background: var(--surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor { border-top: 1px solid var(--line-bright); background: var(--bg); display: flex; flex-direction: column; height: 46%; min-height: 220px; }
.editor.tall { height: 62%; }
/* on a phone the Sound view covers the song (under the tabs) so the wave and the knobs have room; the editor's x closes it */
@media (max-width: 700px) { .editor.tall { position: fixed; left: 0; right: 0; bottom: 0; top: calc(88px + env(safe-area-inset-top)); height: auto; min-height: 0; z-index: 15; } }
.editor .bar { padding: 6px 16px; }
.editor .name { font-weight: 700; font-size: 13px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roll { flex: 1; min-height: 0; overflow: auto; position: relative; touch-action: none; }
.roll canvas { display: block; }
.menu { position: relative; }
.menu-list { position: fixed; background: var(--surface-2); border: 1px solid var(--line-bright); border-radius: 8px; padding: 4px; min-width: 200px; z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.menu-list button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 13px; }
.menu-list button:hover { background: var(--surface-3); }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (min-width: 900px) { :root { --strip: 260px; } }
@media (max-width: 520px) { .songrow { order: 9; flex-basis: 100%; max-width: none; } .time { min-width: 76px; } }

/* video */
.stage { background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.stage canvas { max-width: 100%; max-height: 60vh; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ctl { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: rgba(17,20,16,.85); }
.thumb .ctl button { width: 32px; height: 28px; color: var(--text); font-size: 13px; }
.thumb b { position: absolute; top: 4px; left: 6px; font: 500 11px var(--mono); background: rgba(17,20,16,.8); padding: 0 4px; border-radius: 4px; }
.wave { width: 100%; height: 64px; display: block; background: var(--surface-2); border-radius: 8px; cursor: pointer; touch-action: none; }
.cloudstate { font: 11px var(--mono); color: var(--quiet); white-space: nowrap; }
.cloudstate:empty { display: none; }
.cloudstate.error { color: var(--red); }
.askpanel { border-bottom: 1px solid var(--line); background: var(--surface); padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 40vh; }
.asklog { overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.askrow { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface-2); font-size: 13px; }
.askhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.askhead .tool { height: 30px; min-width: 30px; }
.askok { color: var(--text); white-space: pre-wrap; }
.askbad { color: var(--red); white-space: pre-wrap; }

/* Sound view: the synth's controls and the track's effects */
.soundpanel { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 16px; }
.soundpanel section { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.soundpanel h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.samplewave { display: block; width: 100%; height: 72px; margin: 8px 0 2px; border-radius: 6px; border: 1px solid var(--line-soft); }
.soundpanel p { margin: 10px 0 0; font-size: 13px; max-width: 640px; }
.ctls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; }
.ctl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ctl label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.ctl .val { font-family: var(--mono); color: var(--text); white-space: nowrap; }
.ctl input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; height: 24px; }
.ctl input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0; }
.ctl select.input { height: 32px; }

/* mixer: channel strips (tracks, returns, master) above the selected effect's editor */
.mixer { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.mx-strips { display: flex; overflow-x: auto; overflow-y: hidden; flex: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line-bright); }
.mx { flex: 0 0 108px; display: flex; flex-direction: column; gap: 6px; padding: 9px 6px 8px; border-right: 1px solid var(--line-soft); position: relative; box-shadow: inset 0 3px 0 var(--tone, var(--line-bright)); }
.mx.ret { background: #161a14; }
.mx.master { flex-basis: 124px; background: var(--surface-2); }
.mx.addret { flex-basis: 96px; justify-content: flex-start; align-items: stretch; box-shadow: none; }
.mx-name { height: 24px; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-rhead { display: grid; grid-template-columns: 14px minmax(0, 1fr) 20px; align-items: center; gap: 4px; height: 24px; }
.mx-rhead .rid { font: 500 11px var(--mono); color: var(--quiet); }
.mx-rhead .x { height: 20px; color: var(--quiet); display: grid; place-items: center; border-radius: 4px; }
.mx-rname { min-width: 0; width: 100%; padding: 0; background: none; border: 0; border-bottom: 1px solid transparent; font-size: 12px; font-weight: 700; }
.mx-rname:focus { outline: none; border-bottom-color: var(--accent-line); }
.mx-fx { display: flex; flex-direction: column; gap: 3px; height: 132px; overflow-y: auto; }
.mx-dev { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px; height: 26px; padding: 0 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; flex: 0 0 auto; }
.mx-dev.sel { background: var(--surface-3); border-color: var(--accent-line); }
.mx-dev .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-bright); }
.mx-dev .dot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.mx-dev .dn { height: 24px; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-add { width: 100%; height: 26px; font-size: 11px; color: var(--muted); border: 1px dashed var(--line-bright); border-radius: 6px; }
.mx-sends { display: flex; flex-direction: column; gap: 2px; min-height: 52px; }
.mx-sends label { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 4px; font: 500 10px var(--mono); color: var(--quiet); }
.mx-sends input, .mx-pan input { width: 100%; height: 16px; margin: 0; accent-color: var(--accent); }
.mx-pan { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 4px; font-size: 10px; color: var(--quiet); }
.mx-fade { display: flex; justify-content: center; gap: 8px; height: 168px; }
.mx-rail { position: relative; width: 30px; height: 100%; touch-action: none; cursor: ns-resize; border-radius: 6px; }
.mx-rail.off { opacity: .3; cursor: default; }
.mx-rail b { position: absolute; top: 4px; bottom: 4px; left: 13px; width: 4px; border-radius: 2px; background: var(--line); }
.mx-rail i { position: absolute; left: 2px; width: 26px; height: 14px; border-radius: 4px; background: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.mx-meter { width: 14px; height: 168px; border-radius: 2px; }
.mx-ms { display: flex; justify-content: center; gap: 4px; min-height: 28px; }
.mx-ms button { width: 38px; height: 28px; border-radius: 6px; font: 500 11px var(--mono); color: var(--quiet); border: 1px solid var(--line); }
.mx-ms button[aria-pressed="true"].m { background: #3a2f27; color: var(--orange); border-color: #6b5140; }
.mx-ms button[aria-pressed="true"].s { background: #2f3a22; color: var(--accent); border-color: #5d7341; }
.mx-lim { height: 26px; border: 1px solid var(--line); border-radius: 6px; font: 500 11px var(--mono); color: var(--muted); }
.mx-lim.sel { border-color: var(--accent-line); color: var(--text); }
.mx-note { margin: 0; font-size: 12px; color: var(--muted); }
.mx-panel { flex: 1; min-height: 0; overflow: auto; padding: 8px 16px 16px; }
.mx-hint { color: var(--muted); font-size: 13px; max-width: 640px; }
.mx-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0 10px; }
.mx-ph .tool { height: 34px; min-width: 34px; }
.mx-gr { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); color: var(--muted); }
.mx-gr::before { content: 'Gain reduction'; font-family: 'Manrope', sans-serif; }
.mx-gr i { display: block; width: 0; max-width: 120px; height: 6px; border-radius: 3px; background: var(--orange); }
.mx-eq { display: block; width: 100%; height: 180px; border: 1px solid var(--line); border-radius: 6px; touch-action: none; cursor: grab; }
.mx-bands { display: grid; gap: 8px; margin-top: 12px; }
.mx-band { display: grid; grid-template-columns: 14px 52px 112px repeat(auto-fit, minmax(120px, 1fr)); gap: 6px 12px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.mx-band.off .ctl { opacity: .55; }
.mx-band select.input { height: 32px; }
@media (max-width: 640px) { .mx-band { grid-template-columns: 14px 52px minmax(0, 1fr); } .mx-band .ctl { grid-column: 2 / -1; } }
.mx-band > b { font: 500 11px var(--mono); color: var(--quiet); align-self: center; }
.ctl .lab { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.mx-pop { position: absolute; top: 100%; left: 0; z-index: 30; display: grid; gap: 4px; min-width: 220px; max-height: min(70vh, 520px); overflow: auto; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-bright); border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mx-pop .grp { display: grid; }
.mx-pop b { padding: 4px 8px 2px; font-size: 11px; color: var(--quiet); }
.mx-pop button { padding: 7px 8px; border-radius: 6px; font-size: 13px; text-align: left; }
.mx-pop button:hover { background: var(--surface-3); }
.mx.master .mx-pop, .mx.ret .mx-pop { left: auto; right: 0; }
@media (max-width: 640px) { .mx { flex-basis: 98px; } .mx-fade, .mx-meter { height: 140px; } .mx-fx { height: 108px; } }

/* playlist: clip toolbar above the timeline */
.clipbar { gap: 6px; padding: 6px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
.clipbar .tool { height: 32px; min-width: 32px; font-size: 18px; font-weight: 600; }
.input.small { height: 32px; font-size: 12px; width: auto; padding: 0 8px; }
.lanes canvas.tracks { touch-action: pan-y; cursor: default; }
#view-studio { position: relative; }

/* the owner's sample library, beside the timeline (a sheet on phones) */
.libpanel { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; z-index: 25; display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line-bright); box-shadow: -2px 0 8px rgba(0, 0, 0, .25); }
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line-soft); }
.lib-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px; }
.lib-filters input[type=search] { grid-column: 1 / -1; }
.lib-near { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lib-near input { accent-color: var(--accent); }
.lib-search { grid-column: 1 / -1; display: flex; gap: 8px; }
.lib-search input { flex: 1; min-width: 0; }
.lib-countbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 6px 0; }
.lib-countbar .lib-count { padding-bottom: 0; }
.lib-like { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.lib-like:hover { color: var(--text); }
.lib-words { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.lib-words .btn.small { flex: none; height: 30px; padding: 0 10px; font-size: 12px; }
.lib-words .btn.small[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lib-count { padding: 0 16px 6px; font-size: 12px; }
.lib-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 16px; }
.lib-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.lib-play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line-bright); }
.lib-play.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lib-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { font: 400 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-actions { display: flex; gap: 4px; }
.lib-actions .btn.small { height: 28px; padding: 0 8px; font-size: 11px; }
@media (max-width: 640px) { .libpanel { top: auto; height: 72%; width: 100%; border-left: 0; border-top: 1px solid var(--line-bright); } }

/* Synth 3.0: the wave you draw, its tools and frames, Mutate's takes, the modulation rows */
.wavebox { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.wavedraw { display: block; width: 100%; height: 110px; border-radius: 6px; border: 1px solid var(--line-soft); touch-action: none; cursor: crosshair; }
.wavetools, .wavechips, .varrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wavechips .seg button { height: 32px; font-size: 12px; }
.small-note { font-size: 12px; }
.playwith .ctls { margin-bottom: 10px; }
.varrow + .varrow { margin-top: 8px; }
.varrow > .muted { font-size: 12px; margin-right: 4px; }
.modrows { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.modrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
.modrow .arrow { color: var(--muted); }
.modamt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.modamt input { flex: 1; min-width: 0; }
.modamt .val { font-size: 12px; color: var(--muted); min-width: 52px; text-align: right; }
@media (max-width: 620px) { .modrow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .modamt { grid-column: 1 / -1; } }
/* step effects: a bar per step to draw on */
.mx-stepbox { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.mx-stepbox .muted { font-size: 12px; }
.mx-steps { display: block; width: 100%; height: 96px; border: 1px solid var(--line-soft); border-radius: 6px; touch-action: none; cursor: crosshair; }
/* meters: a sheet over the bottom of the screen */
.meters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line-bright); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.met-c { display: block; width: 100%; height: 200px; border: 1px solid var(--line-soft); border-radius: 6px; }
.met-row { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 10px; align-items: stretch; }
.met-c.small { height: 140px; }
.met-c.sq { width: 140px; }
.met-nums { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.met-num { font: 12px var(--mono); color: var(--text); }
@media (max-width: 620px) { .met-row { grid-template-columns: 1fr 120px; } .met-c.sq { width: 120px; height: 120px; } .met-nums { grid-column: 1 / -1; } }
/* the Play panel: a sheet over the bottom of the screen with pads */
.playpad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-top: 1px solid var(--line-bright); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow: auto; }
.playpad .seg { align-self: center; }
.ppads { display: grid; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: none; }
.ppads.keyrow { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.ppads.chordrow { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ppad { min-height: 64px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ppad strong { font-size: 14px; }
.ppad span { font-size: 11px; color: var(--muted); }
.ppad.root { border-color: var(--accent-line); }
.ppad.down, .ppad:active { background: var(--surface-3); border-color: var(--accent); }
.ppad.tap { min-height: 96px; width: 100%; }
.piano { position: relative; height: 150px; user-select: none; touch-action: none; }
.piano .ppad { position: absolute; top: 0; border-radius: 0 0 6px 6px; min-height: 0; justify-content: flex-end; padding-bottom: 6px; }
.piano .ppad.white { height: 100%; background: #dfe5d6; border-color: #9aa58e; }
.piano .ppad.white strong { color: #2a3122; font-size: 11px; }
.piano .ppad.white.down { background: var(--accent); }
.piano .ppad.black { height: 60%; background: #20261c; border-color: #0d100b; z-index: 1; }
.piano .ppad.black.down { background: var(--accent-line); }
.moods { display: flex; flex-direction: column; gap: 4px; }
.mood { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.mood .muted { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.make h4 { margin: 10px 0 2px; font-size: 13px; }
.make label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
@media (max-width: 620px) { .ppads.chordrow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mood { grid-template-columns: 96px 1fr auto auto; } .ppad { min-height: 56px; } }
.playpad .input { width: auto; max-width: 100%; }
.playpad > .varrow:first-child { position: sticky; top: -10px; z-index: 2; background: var(--surface); padding: 6px 0; margin-top: -6px; }
/* the Mix doctor, in the mixer's panel */
.doctor { display: flex; flex-direction: column; gap: 10px; }
.doc-view { display: flex; flex-direction: column; gap: 6px; }
.doc-cv { display: block; width: 100%; height: 180px; border: 1px solid var(--line-soft); border-radius: 6px; }
.doc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.doc-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.doc-item p { margin: 0; font-size: 12px; }
.doc-item.kept { border-color: var(--accent-line); }
.doc-item.skipped { opacity: 0.6; }
.doc-fix { font-size: 12px; color: var(--text); margin-right: 6px; }
.svc { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 13px; }
.svc b { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.svc div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
/* movement (2.13.0): drawn envelopes, steps, macro knobs, drag to modulate, range bands, folded sections */
.drawn { display: flex; flex-direction: column; gap: 6px; }
.drawn-cv { display: block; width: 100%; height: 130px; border: 1px solid var(--line-soft); border-radius: 6px; touch-action: none; cursor: crosshair; }
.steps-cv { display: block; width: 100%; height: 96px; border: 1px solid var(--line-soft); border-radius: 6px; touch-action: none; cursor: pointer; margin-bottom: 8px; }
.knobs8 { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.knobcell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bigknob { --v: 0; width: 64px; height: 64px; border-radius: 50%; position: relative; touch-action: none; cursor: ns-resize;
  background: conic-gradient(from 225deg, var(--accent) calc(var(--v) * 270deg), var(--surface-3) calc(var(--v) * 270deg) 270deg, transparent 270deg); }
.bigknob::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.bigknob::after { content: attr(data-v); position: absolute; inset: 0; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--text); }
.knobname { width: 100%; max-width: 110px; height: 26px; border-radius: 6px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); font-size: 12px; text-align: center; padding: 0 4px; }
.knobcell input[type=range] { width: 90px; }
.srcchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.srcchip { cursor: grab; touch-action: none; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; }
.dragghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -140%); padding: 5px 10px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.ctl.droppable { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 6px; }
.modring { position: relative; height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: -2px; }
.modring i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--orange); opacity: 0.85; }
details.more { border-top: 1px solid var(--line-soft); padding: 8px 0; }
details.more > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
details.more[open] > summary { color: var(--text); margin-bottom: 10px; }
.gmods { display: flex; flex-direction: column; gap: 10px; }
.gm { border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.gm.focus { border-color: var(--accent-line); }
.gm-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.gm-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.gm-f .input { width: auto; min-width: 120px; }
.gm-targets { display: flex; flex-direction: column; gap: 6px; }
.gm-target { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(80px, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 620px) { .gm-target { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .gm-target input[type=range] { grid-column: 1 / -1; grid-row: 2; } }
/* phones: the strips are taller than what is left of the screen, so the whole mixer scrolls (strips, then the panel)
   instead of spilling over the status line */
@media (max-width: 700px) { .mixer { overflow-y: auto; } .mx-panel { flex: none; overflow: visible; min-height: 0; } }
/* 2.15.0: live input, the six-operator table, drawn harmonics, the vector pad, the picture */
.mx-ms:has(.in) button { width: 32px; }
.mx-ms button[aria-pressed="true"].in { background: #22303a; color: var(--blue); border-color: #48627a; }
.ctl.wide { grid-column: 1 / -1; }
.ctl.wide .muted { font-size: 12px; }
.dx-glob { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 8px 0; }
.dx-glob strong { width: 100%; font-size: 13px; }
.dx-glob .input.num, .dx-row .input.num, .dx-ks .input.num { width: 52px; min-width: 0; padding: 4px; }
.dx-ops { overflow-x: auto; display: flex; flex-direction: column; gap: 2px; margin: 6px 0; padding-bottom: 4px; }
.dx-row { display: grid; grid-template-columns: 28px 24px 24px repeat(14, 52px); gap: 3px; align-items: center; min-width: max-content; }
.dx-row.car > span:first-child { color: var(--accent); font-weight: 600; }
.dx-head span { font-size: 11px; color: var(--muted); }
.dx-ks { margin: 0 0 4px 28px; font-size: 12px; min-width: max-content; }
.dx-ks summary { color: var(--muted); cursor: pointer; }
.hbars, .imgpad, .vpad { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; touch-action: none; }
.hbars { width: 100%; max-width: 640px; height: auto; aspect-ratio: 4 / 1; }
.imgpad { width: 100%; max-width: 640px; height: auto; aspect-ratio: 256 / 96; image-rendering: pixelated; }
.vpad { width: 240px; height: 240px; max-width: 100%; }
/* 2.16.0: racks, the tuner, presets */
.rack-chain { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; background: var(--surface); }
.rack-chain .varrow { align-items: flex-end; }
.rack-dev { margin: 4px 0 0; }
.rack-macros .varrow { align-items: flex-end; margin: 6px 0; }
.mx-presets { margin: 4px 0 8px; }
.tuner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.tuner-note { font: 600 28px/1 var(--mono); min-width: 72px; color: var(--accent); }
.tuner-meter { position: relative; height: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.tuner-meter::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-bright); }
.tuner-meter i { position: absolute; top: 1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 3px; background: var(--accent); left: 50%; }
/* 2.17.0: the step bar, finger drum pads */
.bar.stepbar { flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.fpads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fpad { aspect-ratio: 1 / 1; min-height: 64px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 600 13px/1.2 var(--body, inherit); padding: 6px; touch-action: none; user-select: none; }
.fpad.down { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 700px) { .fpads { gap: 6px; } .fpad { min-height: 56px; font-size: 12px; } }
@media (max-width: 700px) { .bar.stepbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .bar.stepbar > * { flex: none; } }
/* 2.18.0: chop and flip */
.chop { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--surface); border: 1px solid var(--line-bright); border-radius: 10px; padding: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.chop-wave { display: block; width: 100%; height: 140px; margin: 10px 0 6px; border-radius: 6px; border: 1px solid var(--line); touch-action: none; }
.chop-pads, .chop-steps { display: grid; gap: 6px; margin: 8px 0; }
.chop-pads { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.chop-steps { grid-template-columns: repeat(16, minmax(0, 1fr)); }
.chop-pad, .chop-step { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font: 600 12px/1 var(--mono); }
.chop-pad[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chop-step.beat { border-color: var(--line-bright); }
@media (max-width: 700px) { .chop-pads { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chop-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* ---- 2.21.0: the beginner layer (history, paint, morph, learn, recipes, goals, moving pictures, chooser) ---- */
.hist-ab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.hist-ab .muted { font-size: 12px; }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-bottom: 1px solid var(--line-soft); }
.hist-row.now { border-left: 3px solid var(--accent); }
.hist-text { display: grid; gap: 2px; min-width: 0; }
.hist-what { font-size: 13px; font-weight: 600; }
.hist-when { font-size: 11px; }
.paint { display: grid; gap: 8px; }
.paint-canvas { width: 100%; height: 200px; touch-action: none; border-radius: 8px; background: var(--surface, #181c16); cursor: crosshair; }
.morphbox { display: grid; gap: 8px; }
.morph { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--surface, #181c16); touch-action: none; cursor: grab; }
.morph:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.morph-dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35); pointer-events: none; }
.morph-c { position: absolute; font-size: 12px; color: var(--muted); padding: 8px; }
.morph-c.c0 { left: 0; top: 0; } .morph-c.c1 { right: 0; top: 0; } .morph-c.c2 { left: 0; bottom: 0; } .morph-c.c3 { right: 0; bottom: 0; }
.learn { position: relative; display: inline-flex; margin-left: 6px; vertical-align: middle; }
.learn-q { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-bright); background: transparent; color: var(--muted); font: 600 12px/1 var(--body, system-ui); cursor: pointer; }
.learn-q:hover, .learn-q[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.learn-tip { position: absolute; z-index: 30; top: 28px; left: -8px; width: min(280px, 80vw); display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-bright); border-radius: 8px; background: var(--panel, #1b2018); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); font-size: 13px; font-weight: 400; }
.learn-tip p { margin: 0; color: var(--text); }
.learn-tip .btn.on, .learn-dev .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.learn-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0 8px; }
.learn-dev p { margin: 0; flex: 1 1 220px; font-size: 13px; }
.rg-body { display: grid; gap: 10px; padding: 10px 16px 16px; overflow-y: auto; }
.rg-recipe { display: grid; gap: 2px; text-align: left; padding: 12px; border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.rg-recipe:hover { border-color: var(--accent); }
.rg-recipe .muted { font-size: 12px; }
.rg-crumbs { font-size: 12px; }
.rg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rg-opt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; color: var(--text); font: 600 14px/1.2 var(--body, system-ui); cursor: pointer; text-align: left; }
.rg-opt[aria-pressed="true"] { border-color: var(--accent); }
.rg-opt.on svg { color: var(--accent); }
.rg-opt.busy { opacity: 0.7; }
.goal-looks { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.goal-look { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.goal-look[aria-pressed="true"] { border-color: var(--accent); }
.goal-look:disabled { opacity: 0.5; cursor: default; }
.goal-swatch { width: 14px; height: 14px; border-radius: 4px; }
.goal-list { list-style: none; margin: 0; padding: 0; }
.goal { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.goal div { display: grid; gap: 2px; }
.goal .muted { font-size: 12px; }
.goal-mark { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-bright); display: grid; place-items: center; font-size: 12px; color: var(--accent-ink); }
.goal.done .goal-mark { background: var(--accent); border-color: var(--accent); }
.live-pic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-wave, .live-spec { width: 100%; height: 90px; border-radius: 8px; background: var(--surface, #181c16); }
.fold > summary { cursor: pointer; font: 700 15px/1.3 var(--body, system-ui); padding: 8px 0; }
@media (max-width: 640px) {
  .rg-opts { grid-template-columns: 1fr; }
  .live-pic { grid-template-columns: 1fr; }
}
/* phone first: on a touch screen every control is at least 44 px tall and the track rows grow to fit them */
@media (pointer: coarse) {
  :root { --row: 56px; }
  .btn.small { height: 44px; min-width: 44px; padding: 0 12px; font-size: 13px; }
  .input.small { height: 44px; }
  .strip { grid-template-columns: 44px 44px minmax(0, 1fr); }
  .strip button { height: 44px; }
  .strip .name { min-height: 22px; }
  .strip input[type=range] { height: 22px; }
  .lib-play, .lib-like { width: 44px; height: 44px; }
  .lib-actions .btn.small { height: 44px; }
  .lib-words .btn.small { height: 40px; }
  .learn-q { width: 32px; height: 32px; }
  .input, .btn.songpick, input.bpm { min-height: 44px; }
  .clipbar .tool, .tool { min-height: 44px; min-width: 44px; }
  .tabs a { min-height: 44px; }
  .strip .name { min-height: 24px; }
  .strip input[type=range] { height: 24px; }
}
.link-made { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(480px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--panel, #1b2018); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); font-size: 13px; }
.link-made .input { width: 100%; }

/* ---- 3.0.0: the easy studio and the one question before it ---- */
.welcome { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 7, 0.78); }
.welcome-card { width: min(440px, 100%); display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line-bright); border-radius: 12px; background: var(--panel, #1b2018); }
.welcome-card h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.welcome-card p { margin: 0; font-size: 13px; }
.welcome-card .btn { min-height: 48px; justify-content: flex-start; text-align: left; font-size: 15px; }
.easy { max-width: 880px; margin: 0 auto; padding: 12px 16px 96px; }
.easy-screen { display: grid; gap: 12px; }
.easy-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.easy-top h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.easy-right { display: flex; gap: 8px; align-items: center; }
.easy-screen h3 { margin: 6px 0 0; font-size: 14px; }
.easy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.easy-chips .btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.easy-genres { max-height: none; }
.easy-genre.picked { border-left: 3px solid var(--accent); }
.easy-pick { display: grid; gap: 2px; text-align: left; min-width: 0; background: transparent; border: 0; color: var(--text); padding: 4px 0; cursor: pointer; }
.easy-tag { font-size: 12px; color: var(--accent); }
.easy-bottom { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line-soft); }
.easy-bottom .btn.primary { margin-left: auto; }
.easy-len { display: flex; align-items: center; gap: 10px; }
.easy-len input { flex: 1; }
.easy-map { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.easy-sec { flex: 1 0 64px; display: grid; gap: 2px; min-height: 52px; padding: 6px 8px; text-align: left; border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.easy-sec[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
.easy-sec span { color: var(--muted); }
.easy-sechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.easy-part { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); cursor: pointer; }
.easy-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--tone); }
.easy-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.easy-tabbtn { flex: none; min-height: 44px; padding: 0 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 14px/1 var(--body, system-ui); cursor: pointer; }
.easy-tabbtn[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.easy-tab { display: grid; gap: 10px; }
.easy-gridbox { overflow-x: auto; }
.easy-grid { display: grid; grid-template-columns: 64px repeat(var(--steps), minmax(22px, 1fr)); gap: 2px; min-width: calc(64px + var(--steps) * 24px); }
.easy-rowname { font-size: 12px; color: var(--muted); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.easy-cell { height: 32px; border-radius: 4px; border: 1px solid var(--line-soft); background: var(--surface); cursor: pointer; }
.easy-cell.beat { border-color: var(--line-bright); }
.easy-cell[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.easy-inline { position: static; width: auto; height: auto; max-height: none; border: 1px solid var(--line-soft); border-radius: 8px; }
.easy .lib-play.busy { opacity: 0.6; }
@media (pointer: coarse) { .easy-cell { height: 40px; } }
.easy .lib-meta { white-space: normal; font: 400 13px/1.4 var(--body, system-ui); }
.easy .lib-row.noplay { grid-template-columns: minmax(0, 1fr) auto; }
