/* Cueflow docs: the app's own components, redrawn in HTML (spec docs/superpowers/specs/2026-11-05-documentation-design.md).
 * Values copied from apps/web/app/globals.css and apps/web/components/cf/: when the app changes, change them here too.
 * Always dark, like the app, whatever the site's theme. Only the .ui-* classes; nothing of the site is restyled. */

@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/assets/fonts/Unbounded-Variable.woff2) format("woff2-variations"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/Manrope-Variable.woff2) format("woff2-variations"); }

/* --- the figure: the frame, its caption, the legend of the pins --- */
.ui-shot { margin: 28px 0 36px; }
.ui-shot figcaption { padding: 14px 2px 0; color: var(--grey); font-size: 15.5px; line-height: 1.55; }
.ui-shot figcaption > strong:first-child { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 650; }

.ui-frame {
  --screen: #0e0f11; --screen-2: #17191c; --screen-3: #202328; --screen-text: #f2f3ef; --screen-muted: #9a9ea6;
  --rail-bar: #3e4248; --on-cue: #131416;
  --cue-a: #b1f03f; --cue-b: #7aa7ff; --cue-c: #f5a54a; --cue-d: #ff7a85; --cue-e: #c79bff; --cue-f: #5fe0c4; --cue-g: #f2f3ef;
  --pad-relief: inset 0 -2px 0 rgba(0, 0, 0, .14);
  color-scheme: dark;
  background: var(--screen); color: var(--screen-text);
  font-family: "Manrope", system-ui, sans-serif; font-size: 14px; line-height: 1.5;
  border-radius: 12px; overflow-x: auto; overflow-y: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 30px 60px -30px rgba(19, 20, 22, .55);
}
.ui-frame * { box-sizing: border-box; }
/* beats the site's .prose p / .prose h3 margins; component rules that set a margin are prefixed .ui-frame to win */
.ui-frame.ui-frame :where(p, h3, h4, ul, ol) { margin: 0; padding: 0; }
:where(.ui-frame) :where(ul, ol) { list-style: none; }
/* the site's .prose lists (padding, li margins, bullets) must not reach into the frame */
.ui-frame.ui-frame :where(ul, ol) { padding: 0; list-style: none; }
.ui-frame.ui-frame li { margin: 0; }
.ui-frame.ui-frame li::before { content: none; }
.ui-body { padding: 26px 28px 28px; min-width: 520px; }
.ui-body.narrow { max-width: 600px; }
.ui-muted { color: var(--screen-muted); }

/* --- header (components/shell/Header.tsx): 56 px, logo, centred tabs, target, settings --- */
.ui-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--screen-3); min-width: 640px; }
.ui-logo { display: flex; align-items: center; gap: 9px; font-family: "Unbounded", "Manrope", sans-serif; font-size: 15px; font-weight: 600; }
.ui-logo img { width: 22px; height: 22px; display: block; }
.ui-header > .ui-tabs { justify-self: center; }
.ui-gear { justify-self: end; display: flex; align-items: center; gap: 8px; }
.ui-gear > i { width: 30px; height: 30px; border: 1px solid var(--screen-3); border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.ui-gear > i::before { content: ""; width: 12px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

/* --- segmented tabs (components/cf/SegmentedTabs.tsx) --- */
.ui-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--screen-2); }
.ui-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--screen-muted); white-space: nowrap; }
.ui-tab.on { background: var(--screen-text); color: var(--on-cue); }
.ui-tab small { font-size: 10.5px; font-weight: 500; }
.ui-tab em { font-style: normal; border-radius: 6px; background: var(--cue-c); color: var(--on-cue); font-size: 10px; line-height: 16px; font-weight: 760; padding: 0 6px; }

/* --- page title (eyebrow, Unbounded title, muted line) --- */
.ui-title { display: flex; flex-direction: column; gap: 8px; }
.ui-title small { font-size: 13.5px; color: var(--screen-muted); }
.ui-title h3 { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; color: var(--screen-text); }
.ui-title h3.sm { font-size: 26px; line-height: 1.15; }
.ui-title p { font-size: 15px; color: var(--screen-muted); max-width: 560px; }

/* --- buttons (components/cf/Button.tsx): primary off-white, secondary outlined; md 44 px, sm 32 px --- */
.ui-frame .ui-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--screen-3); color: var(--screen-text); font-size: 14px; font-weight: 650; white-space: nowrap; }
.ui-btn.primary { background: var(--screen-text); border-color: var(--screen-text); color: var(--on-cue); }
.ui-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ui-link { font-size: 14px; color: var(--screen-muted); text-decoration: underline; text-underline-offset: 3px; }

/* --- lists (components/cf/ListRule.tsx): a light 1.5 px rule on top, 1 px dividers --- */
.ui-frame .ui-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; }
.ui-frame .ui-h { font-size: 13.5px; font-weight: 600; color: var(--screen-muted); margin-bottom: 10px; }
.ui-rule { border-top: 1.5px solid var(--screen-text); }
.ui-rule > * { border-bottom: 1px solid var(--screen-3); }

/* --- a track line (PrepareScreen "Ready"): dot, title / artist, BPM, key chip --- */
.ui-track { display: flex; align-items: center; gap: 13px; padding: 11px 2px 11px 0; }
.ui-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--cue-a); flex: none; }
.ui-dot.listen { background: var(--cue-c); } .ui-dot.new { background: var(--cue-b); } .ui-dot.missing { background: var(--cue-d); }
.ui-track > span:not([class]) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ui-track b { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-track > span:not([class]) > span { font-size: 13.5px; color: var(--screen-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-bpm { font-size: 13.5px; color: var(--screen-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- key chip (components/cf/KeyChip.tsx): A minor saturated, B major lighter --- */
.ui-key { display: inline-flex; justify-content: center; min-width: 40px; padding: 2px 6px; border-radius: 6px; font-size: 11px; line-height: 16px; font-weight: 760; color: var(--on-cue); font-variant-numeric: tabular-nums; background: var(--screen-muted); }
.ui-key[data-key="1A"] { background: #3fd1b9; } .ui-key[data-key="2A"] { background: #5fd86a; } .ui-key[data-key="3A"] { background: #9ad43f; }
.ui-key[data-key="4A"] { background: #d9cf3a; } .ui-key[data-key="5A"] { background: #f2a33a; } .ui-key[data-key="6A"] { background: #f47a52; }
.ui-key[data-key="7A"] { background: #ef5b7e; } .ui-key[data-key="8A"] { background: #d659b4; } .ui-key[data-key="9A"] { background: #b06ae8; }
.ui-key[data-key="10A"] { background: #7f7ff0; } .ui-key[data-key="11A"] { background: #4fa3f0; } .ui-key[data-key="12A"] { background: #3fc5e0; }
.ui-key[data-key="1B"] { background: #8ce6d6; } .ui-key[data-key="2B"] { background: #9ae7a1; } .ui-key[data-key="3B"] { background: #c2e68a; }
.ui-key[data-key="4B"] { background: #e9e38a; } .ui-key[data-key="5B"] { background: #f7c78a; } .ui-key[data-key="6B"] { background: #f8ad94; }
.ui-key[data-key="7B"] { background: #f59aaf; } .ui-key[data-key="8B"] { background: #e79bd0; } .ui-key[data-key="9B"] { background: #cfa3f1; }
.ui-key[data-key="10B"] { background: #b0b0f6; } .ui-key[data-key="11B"] { background: #93c5f6; } .ui-key[data-key="12B"] { background: #8cdcec; }

/* --- a question line ("To listen"): orange left border, title + artist, the doubt, Listen --- */
.ui-asks { display: flex; flex-direction: column; gap: 10px; }
.ui-ask { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--screen-3); border-left: 3px solid var(--cue-c); border-radius: 20px; }
.ui-ask > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ui-ask b { font-size: 14.5px; font-weight: 650; }
.ui-ask b + span { color: var(--screen-muted); }
.ui-ask p { font-size: 14px; }
.ui-ask > span:last-child { font-size: 14px; font-weight: 650; }

/* --- banner and alert (components/cf/Banner.tsx, Alert.tsx): left border in the tone's colour --- */
.ui-banner { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--screen-3); border-left: 3px solid var(--cue-a); border-radius: 12px; max-width: 560px; }
.ui-banner b { font-size: 15px; font-weight: 650; }
.ui-banner p { color: var(--screen-muted); }
.ui-frame .ui-banner .ui-btns { margin-top: 2px; gap: 8px; }
.ui-alert { padding: 10px 12px; border: 1px solid var(--screen-3); border-left: 3px solid var(--cue-b); border-radius: 12px; }
.ui-banner.listen, .ui-alert.listen { border-left-color: var(--cue-c); } .ui-banner.error, .ui-alert.error { border-left-color: var(--cue-d); }

/* --- numbered steps (LinkScreen): cue-coloured square, title, muted line --- */
.ui-steps > li { display: flex; gap: 14px; padding: 15px 0; }
.ui-steps > li > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ui-steps h4 { font-size: 14.5px; font-weight: 650; }
.ui-steps p { font-size: 14px; color: var(--screen-muted); }
.ui-frame .ui-field { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ui-field > span:first-child { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--screen-3); border-radius: 12px; background: var(--screen-2); font-weight: 550; white-space: nowrap; }
.ui-field .ui-btn { height: 40px; }
.ui-frame .ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }

/* --- cue pad (components/cf/CuePad.tsx): 22 px, bold letter on the cue colour --- */
.ui-pad { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; line-height: 1; font-weight: 760; color: var(--on-cue); box-shadow: var(--pad-relief); background: var(--cue-a); flex: none; }
.ui-pad[data-cue="b"] { background: var(--cue-b); } .ui-pad[data-cue="c"] { background: var(--cue-c); } .ui-pad[data-cue="d"] { background: var(--cue-d); }
.ui-pad[data-cue="e"] { background: var(--cue-e); } .ui-pad[data-cue="f"] { background: var(--cue-f); } .ui-pad[data-cue="g"] { background: var(--cue-g); }
.ui-pad[data-cue="m"] { background: var(--screen-muted); }

/* --- a waveform with its cues (components/prepare/CueWave.tsx) --- */
.ui-cuewave { background: var(--screen-2); border-radius: 20px; padding: 13px 16px 16px; }
.ui-cuewave header { display: flex; justify-content: space-between; gap: 24px; }
.ui-cuewave h4 { font-size: 14.5px; font-weight: 650; }
.ui-cuewave header p { font-size: 13.5px; color: var(--screen-muted); text-align: right; }
.ui-frame .ui-cuewave .row { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.ui-frame .ui-play { width: 32px; height: 32px; margin-bottom: 10px; border-radius: 999px; border: 1px solid var(--screen-3); display: grid; place-items: center; flex: none; }
.ui-frame .ui-play::before { content: ""; border-left: 8px solid var(--screen-text); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.ui-wave { position: relative; height: 72px; flex: 1; min-width: 0; }
.ui-wave .ui-bars { position: absolute; inset: 26px 0 0; display: flex; align-items: center; gap: 2px; }
.ui-wave .ui-bars i { flex: 1; border-radius: 1px; background: var(--rail-bar); }
.ui-wave.muted .bars i { opacity: .55; }
.ui-wave .ui-flag { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ui-frame .ui-wave .ui-flag::after { content: ""; width: 2px; flex: 1; margin-top: 2px; background: var(--fc, var(--cue-a)); }

/* --- radio choices (HotCuesScreen) and check box --- */
.ui-frame .ui-choices { border-top: 1.5px solid var(--screen-text); margin-top: 20px; }
.ui-choices > li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--screen-3); }
.ui-frame .ui-choices > li > i { width: 18px; height: 18px; margin-top: 2px; border-radius: 999px; border: 1.5px solid var(--rail-bar); flex: none; }
.ui-choices > li.on > i { border: 5px solid var(--screen-text); }
.ui-choices > li > span { display: flex; flex-direction: column; }
.ui-choices b { font-size: 14.5px; font-weight: 650; }
.ui-choices b + span { font-size: 14px; color: var(--screen-muted); }
.ui-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.ui-check::before { content: ""; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--rail-bar); }
.ui-check.on::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23131416' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") var(--screen-text) center / 12px no-repeat; border-color: var(--screen-text); }

/* --- the player bar (components/player/PlayerBar.tsx), one line --- */
.ui-player { display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 20px; border-top: 1px solid var(--screen-3); }
.ui-player .go { width: 38px; height: 38px; border-radius: 12px; background: var(--screen-text); display: grid; place-items: center; flex: none; }
.ui-frame .ui-player .go::before { content: ""; border-left: 9px solid var(--on-cue); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.ui-player p { font-size: 12.5px; color: var(--screen-muted); }

/* --- onboarding (components/welcome/OnboardingFrame.tsx): progress dashes, language, folder rows, select --- */
.ui-frame .ui-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; font-size: 14px; color: var(--screen-muted); }
.ui-progress > span { display: flex; gap: 6px; }
.ui-progress i { width: 22px; height: 3px; border-radius: 999px; background: var(--screen-3); }
.ui-progress i.on { background: var(--cue-a); }
.ui-lang { position: absolute; top: 16px; right: 20px; display: flex; gap: 10px; font-size: 12.5px; color: var(--screen-muted); }
.ui-lang b { color: var(--screen-text); font-weight: 600; }
.ui-onb { position: relative; }
.ui-frame .ui-onb .ui-body { max-width: 640px; margin: 0 auto; padding-top: 44px; }
.ui-folders > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.ui-folders > li > span { display: flex; flex-direction: column; gap: 1px; }
.ui-folders b { font-size: 14.5px; font-weight: 650; }
.ui-folders b + span { font-size: 13px; color: var(--screen-muted); }
.ui-frame .ui-box { width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; border: 1.5px solid var(--rail-bar); flex: none; display: grid; place-items: center; }
.ui-box.on { background: var(--screen-text); border-color: var(--screen-text); }
.ui-box.on::before { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--on-cue); border-bottom: 2px solid var(--on-cue); transform: rotate(-45deg) translate(1px, -1px); }
.ui-frame .ui-select { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--screen-2); font-size: 13.5px; margin-top: 10px; }
.ui-select::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--screen-muted); border-bottom: 1.5px solid var(--screen-muted); transform: rotate(45deg) translateY(-2px); }
.ui-frame .ui-sub { font-size: 14.5px; font-weight: 650; margin-top: 26px; }
.ui-frame .ui-sub + p { font-size: 13.5px; color: var(--screen-muted); margin-top: 4px; }
.ui-frame .ui-note { font-size: 13.5px; color: var(--screen-muted); margin-top: 18px; }
.ui-back { font-size: 14.5px; font-weight: 600; color: var(--screen-muted); }
.ui-states > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.ui-states i { width: 10px; height: 10px; border-radius: 4px; background: var(--cue-a); flex: none; }
.ui-states i.listen { background: var(--cue-c); } .ui-states i.wait { background: var(--screen-3); } .ui-states i.run { background: var(--cue-b); }
.ui-states b { flex: 1; font-size: 14.5px; font-weight: 650; }
.ui-states span { font-size: 13.5px; color: var(--screen-muted); }

/* --- Check (components/verify/VerifyScreen.tsx): progress, question, two cards --- */
.ui-vprog { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--screen-muted); }
.ui-vprog > span:last-child { flex: 1; display: flex; gap: 4px; height: 3px; }
.ui-vprog > span:last-child i { flex: 1; border-radius: 999px; background: var(--screen-3); }
.ui-vprog > span:last-child i.on { background: var(--cue-a); }
.ui-vtitle { font-family: "Unbounded", "Manrope", sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
.ui-alert.q { font-size: 14.5px; font-weight: 600; padding: 12px 14px; }
.ui-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ui-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(23, 25, 28, .6); box-shadow: inset 0 0 0 1px var(--screen-3); }
.ui-card.on { box-shadow: inset 0 0 0 1.5px var(--screen-text); }
.ui-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-card h4 { font-size: 14.5px; font-weight: 600; }
.ui-tag { border-radius: 6px; background: var(--cue-a); color: var(--on-cue); padding: 2px 6px; font-size: 11px; line-height: 16px; font-weight: 760; }
.ui-card .ui-wave { height: 56px; flex: none; }
.ui-card .ui-wave .ui-bars { inset: 0 0 10px; }
.ui-card .ui-wave .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--cue-a); transform: translateX(-50%); }
.ui-card .ui-wave .ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(154, 158, 166, .5) 0 1px, transparent 1px 12.5%); }
.ui-card > p { font-size: 13.5px; color: var(--screen-muted); min-height: 2.6em; }
.ui-frame .ui-card .ui-btns { margin-top: 0; gap: 8px; }
.ui-card .ui-btn { height: 36px; padding: 0 14px; }
.ui-btn.fill { background: var(--screen-3); border-color: var(--screen-3); }
.ui-btn.chosen { background: var(--screen-text); border-color: var(--screen-text); color: var(--on-cue); }

/* --- Precise mode (components/precise/): panels, checkpoints, zoom, side panels, cues --- */
.ui-crumb { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--screen-muted); }
.ui-crumb .ui-vtitle { color: var(--screen-text); font-size: 22px; }
.ui-panel { background: var(--screen-2); border-radius: 20px; padding: 14px; }
.ui-frame .ui-panel > h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.ui-panel > h4 small { font-size: 13px; font-weight: 500; color: var(--screen-muted); }
.ui-frame .ui-cps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.ui-cps > span { display: flex; gap: 8px; align-items: baseline; padding: 9px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--screen-3); font-size: 13px; }
.ui-cps > span.on { box-shadow: inset 0 0 0 1.5px var(--screen-text); }
.ui-cps i { width: 8px; height: 8px; border-radius: 999px; background: var(--cue-a); flex: none; }
.ui-cps i.drift { background: var(--cue-c); }
.ui-cps b { display: block; font-weight: 650; } .ui-cps small { display: block; color: var(--screen-muted); font-size: 12px; }
.ui-overview { height: 30px; display: flex; align-items: center; gap: 1px; }
.ui-overview i { flex: 1; background: var(--rail-bar); border-radius: 1px; }
.ui-frame .ui-precise { align-items: start; display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 12px; margin-top: 12px; }
.ui-zoom { position: relative; height: 150px; border-radius: 12px; background: var(--screen); overflow: hidden; display: flex; align-items: center; gap: 3px; padding: 0 6px; }
.ui-zoom i { flex: 1; background: var(--rail-bar); border-radius: 1px; }
.ui-zoom i.k { background: var(--screen-text); }
.ui-zoom .bar { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cue-a); }
.ui-zoom .bar::before { content: attr(data-n); position: absolute; top: 4px; left: 5px; font-size: 10px; font-weight: 700; color: var(--cue-a); }
.ui-frame .ui-zoom-cap { font-size: 12px; color: var(--screen-muted); margin-top: 8px; text-align: center; }
.ui-side { display: flex; flex-direction: column; gap: 12px; }
.ui-side .ui-panel { padding: 13px; }
.ui-frame .ui-side .big { font-size: 22px; font-weight: 650; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.ui-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ui-mini.three { grid-template-columns: repeat(3, 1fr); }
.ui-mini > span { height: 30px; font-size: 11px !important; display: grid; place-items: center; border-radius: 10px; background: var(--screen-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ui-frame .ui-wide { margin-top: 6px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--screen-3); font-size: 12.5px; font-weight: 600; }
.ui-keyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.ui-frame .ui-keyrow + .ui-keyrow { margin-top: 6px; color: var(--screen-muted); }
.ui-cuelist { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
.ui-cuelist > li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; }
.ui-cuelist b { flex: 1; font-weight: 650; }
.ui-cuelist small { color: var(--screen-muted); font-size: 12.5px; }
.ui-headbtns { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--screen-3); }

/* --- Library (components/bibliotheque/): search, filters, table --- */
.ui-titlebar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ui-frame .ui-search { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ui-search > span:first-child { flex: 1; height: 38px; border-radius: 12px; background: var(--screen-2); display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 13.5px; color: var(--screen-muted); }
.ui-search > span:first-child::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--screen-muted); border-radius: 999px; }
.ui-frame .ui-table { margin-top: 20px; }
.ui-table .th, .ui-table .tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) 54px 50px 54px 86px; align-items: center; gap: 10px; }
.ui-table .th { font-size: 12.5px; color: var(--screen-muted); padding-bottom: 8px; border-bottom: 1.5px solid var(--screen-text); }
.ui-table .tr { padding: 9px 0; border-bottom: 1px solid var(--screen-3); font-size: 13.5px; }
.ui-table .tr > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.ui-table .tr b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-table .tr > span:nth-child(2) > span { color: var(--screen-muted); font-size: 12.5px; }
.ui-table .state { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ui-table .r { text-align: right; } .ui-table .num { font-variant-numeric: tabular-nums; }
.ui-rowplay { width: 28px; height: 28px; border-radius: 10px; background: var(--screen-2); display: grid; place-items: center; }
.ui-frame .ui-rowplay::before { content: ""; border-left: 7px solid var(--screen-text); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }

/* --- a track's page (components/bibliotheque/) --- */
.ui-frame .ui-trackwave { margin-top: 20px; background: var(--screen-2); border-radius: 20px; padding: 14px 16px 10px; display: flex; align-items: center; gap: 14px; }
.ui-trackwave .go { width: 36px; height: 36px; border-radius: 10px; background: var(--screen-text); display: grid; place-items: center; flex: none; }
.ui-frame .ui-trackwave .go::before { content: ""; border-left: 9px solid var(--on-cue); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.ui-trackwave .ui-wave { height: 70px; }
.ui-frame .ui-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; align-items: start; }
.ui-cuerows > li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.ui-cuerows b { flex: 1; font-weight: 500; }
.ui-cuerows small { color: var(--screen-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ui-info > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.ui-info > li > span:first-child { color: var(--screen-muted); }
.ui-info b { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.ui-frame .ui-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* --- History (components/history/) --- */
.ui-frame .ui-backup { margin-top: 20px; border-radius: 12px; background: var(--screen-2); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ui-backup b { display: block; font-size: 14px; font-weight: 650; }
.ui-backup div > span { font-size: 13px; color: var(--screen-muted); }
.ui-frame .ui-day { font-size: 13px; color: var(--screen-muted); margin-top: 22px; padding-bottom: 8px; border-bottom: 1.5px solid var(--screen-text); }
.ui-events > li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--screen-3); }
.ui-events time { width: 40px; font-size: 13px; color: var(--screen-muted); font-variant-numeric: tabular-nums; flex: none; }
.ui-events > li > span:not(.ui-btn) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ui-events b { font-size: 14px; font-weight: 650; }
.ui-events b + span { font-size: 13px; color: var(--screen-muted); }
.ui-events .done b { text-decoration: line-through; color: var(--screen-muted); }

/* --- Clips (components/clips/) --- */
.ui-frame .ui-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ui-drop { border-radius: 12px; padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px var(--screen-3); }
.ui-drop.main { background: var(--screen-2); outline: 1.5px dashed var(--screen-muted); outline-offset: -1.5px; box-shadow: none; }
.ui-frame .ui-drop b { font-size: 14px; font-weight: 650; margin-top: 8px; }
.ui-drop > span:not(.ui-pad) { font-size: 13px; color: var(--screen-muted); }
.ui-frame .ui-drop small { font-size: 12.5px; margin-top: 12px; }
.ui-frame .ui-moments { display: flex; gap: 14px; margin-top: 22px; }
.ui-moment { width: 118px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.ui-frame .ui-moment .pic { position: relative; height: 190px; border-radius: 12px; background: linear-gradient(160deg, #2a2440, #101a2a 60%, #0d0f13); box-shadow: inset 0 0 0 1.5px var(--screen-3); margin-bottom: 6px; overflow: hidden; }
.ui-moment.on .pic { box-shadow: inset 0 0 0 1.5px var(--screen-text); }
.ui-moment .pic .ui-pad { position: absolute; top: 8px; left: 8px; }
.ui-frame .ui-moment .pic .ui-box { position: absolute; top: 8px; right: 8px; margin: 0; }
.ui-moment .pic::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 34px; background: repeating-linear-gradient(90deg, rgba(177, 240, 63, .8) 0 3px, transparent 3px 6px); opacity: .7; }
.ui-moment b { font-weight: 650; font-size: 13px; }
.ui-moment > span:not(.ui-pinned) { color: var(--screen-muted); }
.ui-frame .ui-moment u { color: var(--screen-muted); text-underline-offset: 3px; margin-top: 4px; }
.ui-frame .ui-exportbar { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1.5px solid var(--screen-text); }
.ui-exportbar b { font-size: 13.5px; white-space: nowrap; }
.ui-exportbar { flex-wrap: wrap; }
.ui-frame .ui-exportbar .ui-btn { margin-left: auto; }
.ui-frame .ui-adjust { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: start; }
.ui-preview { background: var(--screen-2); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ui-preview .pic { width: 110px; height: 196px; border-radius: 10px; background: linear-gradient(160deg, #2a2440, #101a2a 60%, #0d0f13); }
.ui-preview .ui-tabs { font-size: 12px; }
.ui-preview .ui-tab { padding: 0 9px; height: 26px; font-size: 12px; }
.ui-preview p { font-size: 12px; color: var(--screen-muted); text-align: center; }
.ui-timeline { position: relative; height: 54px; border-radius: 10px; background: var(--screen); overflow: hidden; display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.ui-timeline i { flex: 1; background: var(--rail-bar); border-radius: 1px; }
.ui-timeline i.in { background: var(--cue-b); }
.ui-frame .ui-kv { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 10px; }
.ui-kv b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* --- Settings (app/reglages/): section menu, section heads, rows, cue names --- */
.ui-settings { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: start; }
.ui-settings aside { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.ui-settings aside > span { display: flex; align-items: center; gap: 9px; }
.ui-frame .ui-settings .ui-vtitle { margin-bottom: 8px; }
.ui-frame .ui-langsw { margin-top: 18px; font-size: 12px; color: var(--screen-muted); display: flex; flex-direction: column; gap: 8px; }
.ui-sechead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--screen-text); font-size: 14.5px; font-weight: 650; }
.ui-frame .ui-sechead + .ui-setrows { margin-bottom: 22px; }
.ui-setrows > li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--screen-3); font-size: 13.5px; }
.ui-setrows > li > span:first-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ui-setrows b { font-weight: 650; }
.ui-setrows b + span { font-size: 12.5px; color: var(--screen-muted); }
.ui-frame .ui-setrows .ui-select { margin-top: 0; min-width: 120px; gap: 12px; height: 34px; }
.ui-cuegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--screen-3); }
.ui-cuegrid > span { display: flex; align-items: center; gap: 9px; }
.ui-cuegrid > span > span:last-child { flex: 1; height: 32px; border-radius: 10px; background: var(--screen-2); display: flex; align-items: center; padding: 0 10px; font-size: 13px; }
.ui-msgs { display: flex; flex-direction: column; gap: 10px; }

/* --- the Serato page (components/prepare/SeratoScreen.tsx): the pads before / after, the empty pad, the progress bar --- */
.ui-pad.empty { background: none; box-shadow: none; border: 1px dashed var(--rail-bar); color: var(--screen-muted); }
.ui-frame .ui-pads { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 2px 24px; }
.ui-pads > div { display: flex; align-items: center; gap: 12px; }
.ui-pads > div > span:first-child { width: 56px; font-size: 13px; color: var(--screen-muted); }
.ui-pads > div > span:last-child { display: flex; gap: 6px; }
.ui-pads p, .ui-padkey { font-size: 13px; color: var(--screen-muted); }
.ui-padkey { display: flex; flex-wrap: wrap; gap: 16px; }
.ui-padkey > span { display: inline-flex; align-items: center; gap: 6px; }
.ui-tracksh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.ui-tracksh > b { font-size: 14px; font-weight: 600; color: var(--screen-muted); }
.ui-srow { padding: 11px 0; }
.ui-srow > div:first-child { display: flex; align-items: center; gap: 14px; }
.ui-srow > div:first-child > span:not([class]) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ui-srow b { font-size: 15px; font-weight: 650; }
.ui-srow > div:first-child > span:not([class]) > span { font-size: 14px; color: var(--screen-muted); }
.ui-srow > div:first-child > u { font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.ui-frame .ui-meter { height: 8px; border-radius: 999px; background: var(--screen-3); overflow: hidden; margin-top: 6px; }
.ui-meter > i { display: block; height: 100%; border-radius: 999px; background: var(--cue-a); }
.ui-cancel { position: absolute; top: 26px; right: 28px; }

/* --- the Keyboard shortcuts page: one key combination per line --- */
.prose .doc-keys { list-style: none; padding-left: 0; }
.prose .doc-keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0; }

/* --- a key on the keyboard --- */
.ui-kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 6px; border: 1px solid #2b2f35; border-bottom-width: 2px; background: #17191c; color: #f2f3ef; font: 650 12.5px/1 "Manrope", system-ui, sans-serif; vertical-align: 1px; }

/* --- places on the screen: an invisible anchor (.ui-at) in an element framed by .ui-pinned; docs.js draws a thin
 * line from that element to a short label in the margin, right of the frame, when there is room. Under the figure,
 * the legend repeats each label in bold with its explanation (the only version on narrow screens). --- */
.ui-pinned { position: relative; }
.ui-at { display: none; }
.ui-shot { position: relative; }
.ui-legend { list-style: none; margin: 16px 0 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.ui-legend li { margin: 0 !important; padding: 0 !important; font-size: 15.5px; line-height: 1.55; }
.ui-legend li::before { content: none !important; }
.ui-legend li > b { font-weight: 680; color: var(--ink); }
.ui-notes { position: absolute; inset: 0; pointer-events: none; }
.ui-notes svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ui-notes path { fill: none; stroke: var(--grey); stroke-width: 1; }
.ui-notes path.halo { stroke: #0e0f11; stroke-width: 4; opacity: .85; }
.ui-notes circle { fill: #f2f3ef; stroke: #0e0f11; stroke-width: 2; }
.ui-note { position: absolute; font-size: 13.5px; font-weight: 650; line-height: 1.25; color: var(--ink); transform: translateY(-50%); }

@media (max-width: 700px) {
  .ui-body { padding: 20px 20px 20px 34px; }
  .ui-title h3 { font-size: 28px; }
}
