/* noteframe studio on kollidelabs.com. A flat instrument, like the landing page: near-black, hairlines,
   mono labels, one accent, 3–4 px corners. No gradients, glows or backdrop blur. */
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-sans.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #070808; --bg-2: #0a0b0c; --panel: #101213; --panel-2: #15181a; --panel-3: #1c2023;
  --line: rgba(236, 236, 234, .09); --line-2: rgba(236, 236, 234, .17);
  --text: #ecece9; --muted: #a0a5a5; --dim: #656b6d;
  --accent: #7fd0dc; --accent-2: #a6e2ea; --accent-ink: #04191d; --blue: #7fd0dc;
  --accent-a08: rgba(127, 208, 220, .08); --accent-a14: rgba(127, 208, 220, .14); --accent-a35: rgba(127, 208, 220, .35);
  --good: #7fd6a8; --warn: #e0a15a; --bad: #ff8f87;
  --font-display: "Instrument", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Instrument", ui-sans-serif, system-ui, sans-serif;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; --r-pill: 4px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent);
  --st-top: 52px; --st-panel-w: clamp(360px, 27vw, 430px);
  color-scheme: dark;
}
html, body { background: var(--bg); }
body.st-body { font-size: 13.5px; }
.label { font: 400 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: lowercase; color: var(--dim); }

/* brand */
.k-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.k-dot i { display: none; }
.k-word { font: 400 12.5px/1 var(--font-ui); letter-spacing: .32em; color: var(--text); }
.k-prod { font: 400 12px/1 var(--font-mono); letter-spacing: 0; color: var(--muted); text-transform: lowercase; }
@media (max-width: 720px) { .k-prod { display: none; } }

/* top bar */
.st-top { gap: 16px; padding: 0 12px 0 18px; background: var(--bg); border-bottom-color: var(--line); }
.st-top-sep { height: 18px; }
.st-proj .label { display: none; }
.st-proj-title { font: 500 14px/1.2 var(--font-ui); border-radius: 3px; }
.st-save { font: 400 10.5px/1 var(--font-mono); letter-spacing: 0; text-transform: lowercase; }
.st-cmdk-btn { min-width: 210px; height: 32px; border-radius: 3px; background: transparent; font-size: 13px; }
.st-cmdk-btn kbd { border-radius: 3px; border-bottom-width: 1px; background: transparent; }
.st-iconpair { border-radius: 3px; }
.st-iconpair .st-icon-btn { width: 32px; height: 30px; }
.st-credits { height: 32px; border-radius: 3px; padding: 0 10px; border-color: var(--line-2); background: transparent; gap: 6px; }
.st-credits i { display: none; }
.st-credits .mono { font: 500 12.5px/1 var(--font-mono); color: var(--accent); }
.st-credits .u { font: 400 11.5px/1 var(--font-mono); color: var(--dim); }
.st-credits:hover { border-color: var(--accent-a35); background: var(--accent-a08); }

/* generic controls */
.st-icon-btn { border-radius: 3px; }
.st-btn { border-radius: 3px; height: 30px; background: transparent; border-color: var(--line-2); }
.st-btn:hover { background: var(--panel-2); }
.st-btn.accent, .st-btn.primary, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.st-btn.accent:hover, .btn-primary:hover { background: var(--accent-2); }
.st-link { font: 400 11px/1 var(--font-mono); letter-spacing: 0; text-transform: lowercase; }
.st-tog { height: 28px; padding: 0 10px; border-radius: 3px; }
.st-tog[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.st-seg { border-radius: 4px; background: transparent; }
.st-seg button { border-radius: 3px; }
.st-seg button[aria-checked=true] { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.st-chip { height: 28px; padding: 0 10px; border-radius: 3px; font-size: 12.5px; }
.st-chip .n { font: 400 10.5px/1 var(--font-mono); }
.st-chip[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.st-chip[aria-pressed=true] .n { color: var(--accent-ink); opacity: .7; }
.st-input, .st-select select { border-radius: 3px; background: var(--bg-2); }
.st-switch { border-radius: 3px; }
.st-switch .knob { border-radius: 2px; }
.st-range::-webkit-slider-thumb { border-radius: 2px; width: 10px; height: 14px; margin-top: -5.5px; background: var(--text); }
.st-range::-moz-range-thumb { border-radius: 2px; width: 10px; height: 14px; }
.st-swatch .chip { border-radius: 3px; }

/* stage */
.st-stage { background: var(--bg); }
.st-viewer { grid-template-rows: 44px minmax(0, 1fr) 12px; background: var(--bg); }
.st-vbar { padding: 0 16px; }
.st-vbar .label { display: none; }
.st-vfmt { font: 400 11px/1 var(--font-mono); color: var(--dim); }
.st-vstats { visibility: hidden; }
.st-frame { border-radius: 2px; background: #000; box-shadow: 0 0 0 1px var(--line-2); }

/* empty stage: the chosen look's still + one plain drop card */
.st-empty-stage { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; }
.st-app[data-media=empty] .st-empty-stage { display: grid; }
.st-empty-stage img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.st-empty-stage img:not([src]) { display: none; }
.st-empty-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(7, 8, 8, .6); }
.st-empty-card { position: relative; z-index: 2; width: min(84%, 290px); display: grid; justify-items: start; gap: 10px; padding: 20px; text-align: left; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.st-empty-ico { display: none; }
.st-empty-card b { font: 500 20px/1.15 var(--font-display); letter-spacing: -.02em; }
.st-empty-card > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.st-empty-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 6px; padding: 0 14px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13.5px; }
.st-empty-btn:hover { background: var(--accent-2); }
.st-empty-card em { font: normal 400 11px/1.4 var(--font-mono); color: var(--dim); }

/* dock */
.st-dock { padding: 0 16px 14px; gap: 8px; background: var(--bg); border-top-color: var(--line); }
.st-transport { height: 52px; }
.st-play { width: 36px; height: 36px; border-radius: 3px; background: var(--accent); box-shadow: none; }
.st-play:hover { background: var(--accent-2); box-shadow: none; }
.st-time .tc { font-size: 17px; }
.st-time .bb { border-radius: 3px; }
.st-range-read em { color: var(--dim); opacity: 1; letter-spacing: .04em; text-transform: lowercase; font-size: 10.5px; }
.st-tl { height: 110px; border-radius: 3px; border-color: var(--line); background: var(--bg-2); }
.st-app[data-media=empty] .st-tl::after { content: "waveform appears here once you add a track"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 400 11.5px/1 var(--font-mono); pointer-events: none; background: var(--bg-2); }
.st-app[data-media=empty] .st-range-read, .st-app[data-media=empty] .st-tl-legend { opacity: .35; }

/* panel */
.st-panel { background: var(--bg); border-left-color: var(--line); grid-template-rows: 44px auto minmax(0, 1fr) auto; }
.st-panel-head { padding: 0 16px; border-bottom-color: var(--line); }
.st-panel-head .wm { font: 400 11.5px/1 var(--font-mono); color: var(--muted); }
.st-panel-head .wm em { color: var(--dim); }
.st-sec { border-bottom-color: var(--line); }
.st-sec-head { height: 46px; padding: 0 16px; gap: 10px; background: var(--bg); }
.st-sec-head:hover { background: var(--bg-2); }
.st-sec-head .n { width: auto; height: auto; border: 0; font: 400 11px/1 var(--font-mono); color: var(--dim); }
.st-sec-head .n::before { content: "0"; }
.st-sec-head .t { font: 500 13.5px/1 var(--font-ui); letter-spacing: -.005em; text-transform: none; }
.st-sec-head .sum { font: 400 11px/1 var(--font-mono); color: var(--dim); }
/* section tabs: one always-visible row that jumps to (and opens) each settings section */
.st-tabs { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 5; }
.st-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 50px; padding: 0 2px 6px; color: var(--muted); border-radius: var(--r-md) var(--r-md) 0 0; transition: color .16s var(--ease, ease), background .16s var(--ease, ease); }
.st-tab i { font-size: 18px; line-height: 1; }
.st-tab span { font: 500 11.5px/1 var(--font-ui); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-tab:hover { color: var(--text); background: var(--panel); }
.st-tab[aria-current="true"] { color: var(--accent); }
.st-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.st-tabs-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transform: translateX(0); transition: transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
/* bolder section headers: icon, bigger title, clear divider */
.st-sec-head .ic { font-size: 17px; color: var(--accent); flex: none; }
.st-sec-head .n { display: none; }
.st-sec-head { height: 52px; border-top: 1px solid transparent; }
.st-sec-head .t { font: 600 15px/1 var(--font-ui); letter-spacing: -.01em; color: var(--text); }
.st-sec.closed .st-sec-head .ic { color: var(--dim); }
.st-sec.closed .st-sec-head .t { color: var(--muted); }
.st-sec { border-bottom: 1px solid var(--line-2); }
.st-sec.flash-sec > .st-sec-head { background: var(--accent-a08); transition: background .6s; }
.st-sec-inner { padding: 0 16px; gap: 8px; }
.st-sec-inner::after { height: 16px; }
.st-lab { font-size: 13px; color: var(--muted); }
.st-drop { border-radius: 3px; padding: 14px; border-color: var(--line-2); background: transparent; }
.st-drop > i { border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.st-drop:hover { border-color: var(--accent-a35); background: var(--accent-a08); }
.st-drop .fmts { font: 400 10.5px/1.3 var(--font-mono); letter-spacing: 0; text-transform: lowercase; }
.st-file { border-radius: 3px; background: var(--bg-2); }
.st-stats, .st-summary, .st-lookhead, .st-preset, .st-last { border-radius: 3px; }
.st-stats .cell b { font: 400 16px/1 var(--font-mono); }
.st-lookhead { background: transparent; }
.st-lookhead b { font: 500 18px/1.2 var(--font-display); letter-spacing: -.015em; }
.st-lookhead .fam { font: 400 10.5px/1 var(--font-mono); letter-spacing: 0; text-transform: lowercase; color: var(--dim); }
.st-summary .r span { font-family: var(--font-mono); letter-spacing: 0; text-transform: lowercase; }
.st-preset .x.pub { color: var(--dim); border-left: 1px solid var(--line); }
.st-preset .x.pub.on { color: var(--accent); }
.st-preset .x[disabled], .st-preset .x.busy { opacity: .45; pointer-events: none; }
.st-modlist { display: grid; gap: 4px; padding: 10px; box-shadow: inset 0 0 0 1px rgba(224, 161, 90, .35); border-radius: 3px; }
.st-modlist .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }

/* looks */
.st-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; max-height: 560px; padding: 4px 2px 8px; isolation: isolate; }
.st-looks.empty::after { content: attr(data-empty); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; padding: 24px 8px; }
.st-look .pick { display: grid; gap: 6px; border-radius: 0; }
.st-look .th { border-radius: 2px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.st-look .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.st-look .th canvas { opacity: 0; transition: opacity .25s ease; }
.st-look .nm { display: flex; align-items: baseline; gap: 6px; text-align: left; color: var(--muted); font-size: 12.5px; }
.st-look .nm em { margin-left: auto; font: normal 400 10px/1 var(--font-mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.st-look .pick:hover .th { box-shadow: 0 0 0 1px var(--line-2); transform: none; }
.st-look.active .th { box-shadow: 0 0 0 2px var(--accent); }
.st-look.active .nm { color: var(--text); }
.st-look .fav { border-radius: 2px; background: rgba(7, 8, 8, .85); backdrop-filter: none; }
.st-look.live .th::after { width: 6px; height: 6px; border-radius: 0; left: 6px; bottom: 6px; background: var(--accent); box-shadow: none; }
.st-look.is-style .th { box-shadow: 0 0 0 1px var(--line-2); }
.st-look.is-style .nm::before { content: none; }
.st-look.is-community .nm em { color: var(--accent); }
.st-look.active.is-style .th, .st-look.active.is-community .th { box-shadow: 0 0 0 2px var(--accent); }
.st-commbar { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.st-commbar .dim { color: var(--dim); }
.st-app[data-media=empty] #lookHint { visibility: hidden; }

/* cover art row */
.st-cover { display: flex; align-items: center; gap: 10px; }
.st-cover-th { width: 44px; height: 44px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--dim); font-size: 18px; overflow: hidden; }
.st-cover-th canvas { width: 44px; height: 44px; display: block; }
.st-cover-tx { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }

/* export */
.st-panel-foot { padding: 12px 16px 14px; border-top-color: var(--line); background: var(--bg); }
.st-export { height: 46px; border-radius: 3px; padding: 0 16px; background: var(--accent); box-shadow: none; font: 600 14.5px/1 var(--font-ui); }
.st-export::after { display: none; }
.st-export:hover:not(:disabled) { background: var(--accent-2); box-shadow: none; }
.st-export .meta { font: 400 11px/1 var(--font-mono); opacity: .7; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-export.short, .st-app.is-exporting .st-export { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-app[data-media=empty] .st-export { opacity: .5; }
.st-progress .bar { height: 3px; border-radius: 0; }
.st-progress .bar i::after { display: none; }

/* overlays: flat, no blur */
.st-busy { background: rgba(7, 8, 8, .85); backdrop-filter: none; font: 400 11.5px/1 var(--font-mono); text-transform: lowercase; letter-spacing: 0; }
.st-veil { background: rgba(7, 8, 8, .88); backdrop-filter: none; }
.st-cmdk { background: rgba(3, 4, 4, .75); backdrop-filter: none; }
.st-cmdk-box { border-radius: 4px; }
.st-dropveil { background: rgba(7, 8, 8, .92); backdrop-filter: none; }
.st-dropveil .box { border-radius: 4px; border-width: 1px; background: transparent; }
.st-dropveil b { font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.modal-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(3, 4, 4, .8) !important; }
.modal, .menu, .toast { border-radius: 4px !important; }
.st-chip, .st-tog { transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }

/* parts shown in the video */
.st-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.st-part { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 12.5px; min-width: 0; }
.st-part .dot { width: 7px; height: 7px; border-radius: 1px; flex: none; }
.st-part .mono { margin-left: auto; font-size: 10.5px; color: var(--dim); }
.st-part[aria-pressed=true] { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--panel-2); }
.st-part[aria-pressed=false] { opacity: .45; text-decoration: line-through; }
.st-part:disabled { opacity: .3; cursor: default; }
@media (max-width: 420px) { .st-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* video section */
.st-file.video > i:first-child { color: var(--accent); }
.st-vinfo { display: flex; align-items: center; gap: 10px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 3px; }
.st-vinfo > i { font-size: 20px; color: var(--accent); }
.st-vinfo div { display: grid; gap: 3px; min-width: 0; }
.st-vinfo b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-vinfo .mono { font-size: 10.5px; color: var(--dim); }

/* ───────── phones & small tablets ───────── */
@media (max-width: 860px) {
  html { overflow-x: clip; overflow-y: auto; }
  body.st-body { overflow: visible; }
  .st-app { min-height: 100dvh; grid-template-columns: minmax(0, 1fr); }
  .st-work, .st-top { min-width: 0; }
  .st-work { grid-template-columns: minmax(0, 1fr); }
  .st-top { gap: 10px; padding: 0 10px 0 12px; position: sticky; top: 0; z-index: 20; }
  .st-top .k-word { letter-spacing: .24em; font-size: 11.5px; }
  .st-top-sep, .st-cmdk-btn, .st-save span, .st-proj .label { display: none; }
  .st-proj { flex: 1 1 auto; min-width: 0; }
  .st-proj-title { font-size: 13.5px; padding: 4px 6px; }
  .st-top-right { gap: 6px; }
  .st-credits { height: 30px; padding: 0 8px; }
  .st-credits .u { display: none; }
  .st-iconpair .st-icon-btn { width: 30px; height: 28px; }
  /* the preview + transport stay on screen while you scroll the settings */
  .st-stage { position: sticky; top: var(--st-top); z-index: 10; grid-template-rows: auto auto; background: var(--bg); border-bottom: 1px solid var(--line); }
  .st-viewer { grid-template-rows: minmax(0, 1fr); height: 44vh; height: 44svh; min-height: 250px; }
  .st-vbar, .st-vstats { display: none; }
  .st-canvas-wrap { padding: 8px 0 4px; }
  .st-dock { padding: 0 12px 10px; gap: 6px; }
  .st-transport { height: 46px; gap: 4px; }
  .st-play { width: 38px; height: 38px; }
  .st-time { margin-left: 4px; padding-left: 10px; }
  .st-time .tc { font-size: 15px; min-width: 0; }
  .st-time .bb { display: none; }
  .st-range-read, .st-vol { display: none; }
  .st-tl { height: 64px; }
  .st-tl-legend { display: none; }
  .st-empty-card { width: min(92%, 280px); padding: 14px; gap: 6px; }
  .st-empty-card b { font-size: 16px; }
  .st-empty-card > span, .st-empty-card em { display: none; }
  .st-panel { border-left: 0; grid-template-rows: auto auto; grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .st-stage { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .st-panel-scroll, .st-sec, .st-sec-inner { min-width: 0; }
  .st-panel-head { display: none; }
  .st-sec-head { position: static; }
  .st-tabs { position: sticky; top: calc(var(--st-top) + var(--st-stage-h, 0px)); z-index: 9; padding: 4px 4px 0; }
  .st-tab { height: 46px; gap: 4px; }
  .st-tab i { font-size: 17px; }
  .st-tab span { font-size: 10.5px; }
  .st-looks { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .st-chips::-webkit-scrollbar { display: none; }
  .st-look-tools .st-tog span { display: none; }
  .st-panel-foot { position: sticky; bottom: 0; z-index: 12; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .st-row { grid-template-columns: 96px minmax(0, 1fr); }
  .st-track { grid-template-columns: 10px minmax(0, 1fr) 88px 26px 26px; }
  .st-drop .tx span { display: none; }
  /* bigger touch targets */
  .st-chip, .st-tog, .st-btn { min-height: 34px; }
  .st-range::-webkit-slider-thumb { width: 16px; height: 20px; margin-top: -8.5px; }
  .st-switch { width: 38px; height: 22px; }
  .st-switch .knob { width: 16px; height: 16px; }
  .st-switch[aria-checked=true] .knob { transform: translateX(16px); }
}
@media (max-width: 380px) { .st-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-top .k-word { display: none; } }
@media (min-width: 600px) and (max-width: 860px) { .st-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .st-viewer { height: 38svh; }
  .st-tl { height: 56px; }
  .st-app[data-media=empty] .st-tl { display: none; }
}
.st-credits.empty .mono { color: var(--warn); }

/* plans + credits */
.cr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cr-plan { border: 1px solid var(--line-2); border-radius: 4px; padding: 14px; background: var(--panel-2); display: grid; gap: 10px; align-content: start; }
.cr-plan.current { grid-template-columns: 1fr auto; align-items: center; }
.cr-plan.current span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cr-plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cr-plan-top b { font-size: 15px; font-weight: 600; }
.cr-price { font: 500 20px/1 var(--font-mono); color: var(--text); }
.cr-price small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.cr-plan ul { margin: 0; padding: 0 0 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.cr-pay { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .cr-plans { grid-template-columns: 1fr; } .cr-plan.current { grid-template-columns: 1fr; } }
/* free-tier locks + out-of-credits note in the export panel */
.st-seg button.locked { opacity: .55; }
.st-seg button.locked small::after { content: " 🔒"; }
.locked .st-switch { opacity: .55; }
.st-credit-note { display: grid; gap: 6px; margin: 10px 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--warn) 8%, var(--panel)); font-size: 12.5px; line-height: 1.45; }
.st-credit-note b { color: var(--text); font-weight: 600; }
.st-credit-note span { color: var(--muted); }
.st-credit-note[hidden] { display: none; }
/* popularity on look tiles */
.st-look .th .uses { position: absolute; top: 5px; left: 5px; z-index: 2; padding: 2px 5px; border-radius: 3px; background: rgba(7, 8, 8, .78); color: var(--text); font-size: 10px; line-height: 1.3; pointer-events: none; }
.st-look.is-hot .th .uses { color: #ffb86b; }
.st-look .th .uses[hidden] { display: none; }

/* ───────── modals on short / small screens ─────────
   The modal is centred with auto margins instead of grid centring, so a modal taller than the
   window starts at the top and scrolls (grid centring pushed its top off-screen, unreachable).
   Rows in the body keep their natural height and the body scrolls instead of squashing them. */
.modal { margin-block: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.modal-head, .modal-foot { flex: none; }
.modal-body { flex: 1 1 auto; min-height: 0; grid-auto-rows: max-content; }
.modal-body > * { min-width: 0; }
@media (max-width: 560px) {
  .modal { margin-block: auto 0; max-height: 92vh; max-height: 92dvh; }
}
@media (max-height: 640px) {
  .modal-root { padding-block: 10px; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal-head { padding-top: 12px; }
  .modal-body { padding-top: 12px; padding-bottom: 14px; gap: 12px; }
  .cr-hero { padding: 12px 14px; }
}

@media (max-width: 380px) { .st-tab span { font-size: 9.5px; } .st-tab i { font-size: 16px; } }

/* segmented sub-labels never spill out of their button */
.st-seg button small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-seg button > * { max-width: 100%; }

/* tempo + key correction */
.st-tk { display: grid; gap: 6px; margin-top: 8px; }
.st-tk .tk-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-tk .label { width: 42px; font-size: 10px; }
.st-tk .tk-num { width: 70px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); font-size: 13px; }
.st-tk .tk-key { height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg, #0c0d0f); color: var(--text); font-size: 12.5px; max-width: 120px; }
.st-tk .tk-btn { height: 28px; min-width: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.st-tk .tk-btn:hover:not(:disabled) { border-color: var(--text); }
.st-tk .tk-btn:disabled, .st-tk .tk-num:disabled { opacity: .45; cursor: not-allowed; }
.st-tk .tk-src { margin-left: auto; font-size: 10.5px; color: var(--dim, #777); white-space: nowrap; }
.st-tk .tk-reset { justify-self: start; border: 0; background: none; color: var(--dim, #888); font-size: 11px; padding: 2px 0; cursor: pointer; text-decoration: underline; }
