/* SonifAi Studio — dark studio look (design canvas 2026-11-07): graphite ground, one accent - the crimson of sonifai.com
   (owner 2026-11-16 «акценты сделай как на сайте»; it was violet #A994FF), one ground for the page and the side panel,
   system font, mono for times and ids, Lucide icons from the sprite in index.html. */
:root {
  --bg: #0B0B0D; --side: #0B0B0D; --panel: #141417; --panel2: #18181C; --lane: #0F0F12; --lanehead: #16161A;
  --line: rgba(255,255,255,0.07); --line2: rgba(255,255,255,0.12); --fill: rgba(255,255,255,0.07); --fill2: rgba(255,255,255,0.12);
  --text: #F2F2F5; --text2: #D6D6DD; --muted: #A8A8B3; --muted2: #8E8E99; --faint: #6E6E78;
  --accent: #FF3D6E; --accent-ink: #FFFFFF;  /* white letters on every accent button (owner 2026-11-16 «цвет текста должен быть белым а цвет кнопки как был») */ --accent-soft: rgba(255,255,255,0.08);  /* what is chosen: a neutral ground, no tint and no side bar (owner 2026-11-16: a crimson tint read brown, a side bar «слишком ИИшн») */
  --ok: #5EC2B7; --warn: #FF9F5A; --danger: #FF6B81;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* the page's one text face; rules that name var(--sans) get it (it was never defined, and they fell back to Inter,
     which the page does not load: another typeface in the mix window, chips and the update banner, 2026-11-17) */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; }
button, .button { font: inherit; font-size: 13px; color: var(--text); background: var(--fill); border: 0; border-radius: 9px; padding: 8px 13px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; }
button:hover, .button:hover { background: var(--fill2); }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.primary:hover { background: #FF6A8E; }
.light { background: var(--fill2); color: var(--text); font-weight: 600; }  /* a second action: no white plate with dark letters (owner 2026-11-16) */
.light:hover { background: rgba(255,255,255,0.18); }
.ghost { background: transparent; }
.wide { width: 100%; justify-content: center; }
#new-btn { padding: 11px; border-radius: 10px; font-size: 14px; }
.round { width: 44px; height: 34px; padding: 0; justify-content: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
small { color: var(--muted2); }
.mono { font-family: var(--mono); }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px; background: rgba(11,11,13,0.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }  /* no line under it: one ground with the side panel (owner 2026-11-16) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.2px; }
/* The SonifAi logo in notes (static/logo.js puts the SVG in); its box is kept before it arrives. */
.brand .logo-word { display: block; height: 30px; aspect-ratio: 218 / 67; flex: none; }
.brand .logo-word svg { display: block; height: 100%; width: 100%; }
.brand__studio { font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0; }
/* The version for people (web/version.txt): small and quiet, on the baseline of «Studio». */
.brand__ver { align-self: center; margin-left: -4px; padding-top: 3px; font-weight: 500; font-size: 11px; color: var(--muted); opacity: 0.7; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; padding: 2px; background: var(--fill); border-radius: 8px; }
.seg button { background: transparent; border-radius: 6px; padding: 4px 10px; min-height: 26px; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--fill2); color: var(--text); font-weight: 600; }

/* layout */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--top-h, 53px)); }
.side { background: var(--side); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: var(--top-h, 53px); height: calc(100vh - var(--top-h, 53px)); overflow-y: auto; }
/* New track, search, the library's views and albums stay; the list of tracks below scrolls inside the panel
   (owner, 2026-11-08: "это надо фиксировать, а список ниже прокручивать") */
@media (min-width: 761px) {
  .side { overflow: hidden; }
  .side > * { flex: none; }
  .side .projects { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    scrollbar-color: var(--fill2) transparent; margin-right: -6px; padding-right: 6px; }
  .side .lib-albums { max-height: 22vh; overflow-y: auto; }
}
.side h3 { margin: 6px 6px 0; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .4px; text-transform: uppercase; }
.search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 8px; padding: 0 10px; color: var(--muted2); }
.search input { flex: 1; background: transparent; color: var(--text); border: 0; padding: 8px 0; font: inherit; font-size: 13px; outline: none; }
.projects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.link { background: none; padding: 9px 10px; text-align: left; width: 100%; border-radius: 9px; display: block; min-height: 0; }
.link:hover { background: var(--fill); }
.link.active { background: var(--accent-soft); }
.projects .title { display: block; font-weight: 500; font-size: 13px; }
.link.active .title { font-weight: 600; }
.link.active .sub { color: #B3B3BD; } .link { color: var(--text2); } .link.active { color: var(--text); }
.projects .sub { display: block; font: 11px var(--mono); color: var(--faint); margin-top: 3px; }
main { padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel h2, .panel h3 { margin: 0 0 8px; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel h2 .ic, .panel h3 .ic { color: var(--accent); width: 18px; height: 18px; }

/* create */
.field { display: block; margin-bottom: 14px; }
.field > span { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.field > span .ic { color: var(--accent); width: 15px; height: 15px; }
textarea { width: 100%; background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 11px; padding: 12px;
  font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
#edit-text { padding: 10px; border-radius: 10px; }
#edit-btn { padding: 9px 16px; }
#scenario { font: 13px/1.6 var(--mono); }
textarea:focus, input:focus { outline: 2px solid rgba(255,61,110,0.45); outline-offset: 1px; }
.ack { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; line-height: 1.5; color: var(--text2);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ack input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.job { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.job.error { border-color: var(--danger); color: var(--danger); }
/* work in progress: the text itself shimmers (owner, 2026-11-07: a sweep of light, not a blinking dot) */
.shine, .pk-note.busy, .ci-msg.busy {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 38%, #FFFFFF 50%, var(--muted) 62%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 1.8s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .shine, .pk-note.busy, .ci-msg.busy { animation: none; color: var(--text2); background: none; } }
@keyframes pulse { 50% { opacity: .2; } }

/* project head */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; background: none; border: 0; padding: 0; }
.head .ids { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
/* the track's meta chips sit in the right corner above the buttons, not in a line of their own above the
   title (owner, 2026-11-08: the corner was empty, the line cost height) */
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.head-side .ids { justify-content: flex-end; }
/* an admin on someone else's track: whose it is and the copy button */
.foreign { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 12px;
  border-radius: 12px; background: rgba(255,61,110,0.10); border: 1px solid rgba(255,61,110,0.25); font-size: 13px; }
.foreign #foreign-who { overflow-wrap: anywhere; }
.mchip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06); font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.mchip.mono { font: 500 11.5px var(--mono); color: var(--muted); }
.mchip.tok { color: var(--accent); background: rgba(255,61,110,0.12); border-color: rgba(255,61,110,0.25); cursor: help; }
.mchip.tok.none { color: var(--muted2); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
#p-title { margin: 4px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.2; }
#p-expl { margin: 6px 0 0; max-width: 760px; font-size: 14px; line-height: 1.5; }
.head > div:first-child { min-width: 0; flex: 1 1 420px; }
.actions button, .actions .button { padding: 9px 14px; font-weight: 500; } .actions .light { font-weight: 600; }
.meta { color: var(--muted2); margin: 6px 0 0; font: 12px var(--mono); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.credits { margin-top: 8px; font-size: 13px; color: var(--muted); }
.credits summary { cursor: pointer; color: var(--text2); }
.credits ul { margin: 6px 0 0 18px; padding: 0; }

/* transport + timeline */
.tl { padding: 0; overflow: hidden; }
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.clock { display: flex; align-items: baseline; gap: 10px; background: #0E0E11; border-radius: 10px; padding: 6px 12px; }
.time { font: 500 18px var(--mono); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.clock .sub { font: 12px var(--mono); color: var(--faint); }
/* the listener's own volume, beside the clock: the same slider as a part's fader, quieter in colour; a phone has its own keys */
.out-vol { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.out-vol .ic { width: 16px; height: 16px; flex: none; }
.out-vol .vol { width: 96px; height: 20px; margin: 0; }
/* a level slider drawn here, not by the browser (studio.js volFill): a 6 px track without a rim, the part up to the
   value in its colour (--c: the accent, or the part's colour on a lane), a round thumb */
input.vol, .fx-row input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --c: var(--accent); --p: 50%; }
input.vol::-webkit-slider-runnable-track, .fx-row input[type=range]::-webkit-slider-runnable-track { height: 6px; border: 0; border-radius: 3px;
  background: linear-gradient(to right, var(--c) var(--p), var(--fill2) var(--p)); }
input.vol::-moz-range-track, .fx-row input[type=range]::-moz-range-track { height: 6px; border: 0; border-radius: 3px; background: var(--fill2); }
input.vol::-moz-range-progress, .fx-row input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c); }
input.vol::-webkit-slider-thumb, .fx-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--c); }
input.vol::-moz-range-thumb, .fx-row input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--c); }
input.vol:focus-visible, .fx-row input[type=range]:focus-visible { outline: none; } input.vol:focus-visible::-webkit-slider-thumb, .fx-row input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
@media (max-width: 760px) { .out-vol { display: none; } }
.spacer { flex: 1; }
.draft { font-size: 12px; color: var(--muted); }
#to-start { width: 34px; } .transport .round + .round { margin-left: -8px; }
.seg.view button { padding: 5px 10px; font-weight: 500; } .seg.view button.on { font-weight: 500; color: var(--text); }
.seg.view button { color: var(--text); }
.timeline { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--fill2) transparent; }
.timeline::-webkit-scrollbar { height: 6px; } .timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: var(--fill2); border-radius: 3px; }
.tl-inner { position: relative; min-width: 860px; }
.ruler-row { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ruler-label { padding: 8px 14px; font-size: 11px; font-weight: 600; color: var(--faint); }
.tl-logo { display: none; }  /* phones only (below) */
.lbl-short { display: none; }  /* a short label where the row is tight: phones (below) */
.m-regen.mix-open { display: none; }  /* phones (below); a computer has Regenerate in the transport. Two classes: .mix-open, later, shows */
.ruler { position: relative; height: 34px; }
.section { position: absolute; top: 5px; padding-left: 4px; }
.section span { display: block; font-size: 11px; font-weight: 600; color: var(--text2); background: var(--fill); border-radius: 5px; padding: 3px 6px; white-space: nowrap; overflow: hidden; }
.section b { font-weight: 600; } .section i { font-style: normal; font-weight: 500; color: var(--faint); }
.lane { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,0.05); }
.lane-head { width: 260px; flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 14px; background: var(--lanehead); }
.fam { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; border: 1px solid; }
.fam .ic { width: 18px; height: 18px; }
/* the name has the whole first line, the icon and the instrument the second, the buttons and the fader the
   third (owner, 2026-11-08: a full name, more room for the volume, the row no taller than before and no gap
   after the icon: the icon is as tall as the instrument and sits in the first button's column) */
.lane-head { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); column-gap: 4px; row-gap: 5px;
  padding-top: 8px; padding-bottom: 8px;
  grid-template-areas: "name name name name" "fam instr instr instr" "mute solo lock vol"; align-items: center; }
.lane-name { display: contents; }
@media (min-width: 761px) {
  .lane-head .fam { grid-area: fam; width: 22px; height: 22px; border-radius: 6px; }
  .lane-head .fam .ic { width: 13px; height: 13px; }
  .lane-name .instr { margin-left: 2px; }
}
.lane-name .name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-name .instr { grid-area: instr; justify-self: start; align-self: center; margin-top: 0; }
.lane-btns .mute { grid-area: mute; } .lane-btns .solo { grid-area: solo; } .lane-btns .lock { grid-area: lock; }
.lane-btns .vol-wrap { grid-area: vol; margin-left: 6px; }
.lane-name .name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.instr { margin-top: 4px; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; background: var(--fill); border-radius: 6px; padding: 3px 8px;
  color: #C9C9D1; font-size: 11.5px; font-weight: 500; line-height: 1.25; min-height: 0; align-self: flex-start; }
.instr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instr .ic { width: 11px; height: 11px; }
.lane-btns { display: contents; }
.lane-btns button { width: 24px; height: 20px; min-height: 0; padding: 0; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); border-radius: 5px; }
.lane-btns .ic { width: 12px; height: 12px; }
.lane-btns .on.mute { background: var(--warn); color: #FFFFFF; } .lane-btns .on.solo { background: var(--ok); color: #FFFFFF; }  /* the button's colour as it was, white letters (owner 2026-11-16) */
.lane-btns .on.lock { background: var(--accent); color: var(--accent-ink); }
.lane-body { position: relative; flex: 1; min-height: 76px; background: var(--lane); }
.region { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; border: 1px solid; overflow: hidden; }
.region .rl { position: absolute; top: 2px; left: 6px; font-size: 9.5px; font-weight: 600; }
.region canvas { position: absolute; left: 0; right: 0; top: 14px; bottom: 2px; width: 100%; height: calc(100% - 16px); }
.lane.locked .lane-body { background: repeating-linear-gradient(45deg, var(--lane) 0 8px, #ffffff06 8px 16px); }
.playhead { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #F2F2F5; box-shadow: 0 0 8px rgba(255,255,255,0.5); left: 260px; pointer-events: none; }
.lane-body .lp { display: none; }
.secs-row .ruler-label { padding: 0; }
.secs { position: relative; height: 18px; }
.secs .tick { position: absolute; top: 0; height: 18px; padding-left: 4px; border-left: 1px solid rgba(255,255,255,0.14);
  font: 10px/18px var(--mono); color: var(--faint); white-space: nowrap; }
.timeline { cursor: default; touch-action: pan-y; } .lane-body, .ruler, .secs { cursor: ew-resize; }
#project { display: flex; flex-direction: column; gap: 16px; }

/* edit + revisions */
.grid2 { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
/* Variants of an edit: one row each — play, what changed, Before / After on the same place, Accept (2026-11-14). */
.cand-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .cand-where { margin-right: auto; color: var(--muted); font-size: 13px; }
.cand { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-top: 6px; background: var(--panel2); }
.cand.playing { border-color: var(--accent); }
.cand-main { flex: 1; min-width: 0; } .cand-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cand-bar { height: 3px; margin-top: 6px; border-radius: 2px; background: var(--fill); overflow: hidden; } .cand-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.cand-play.loading { cursor: progress; } .cand-play.loading .ic { animation: spin 0.9s linear infinite; fill: none; }
.cand .accept { flex: none; }
.cand-mark { position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; border: 1.5px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
@media (max-width: 760px) { .cand { flex-wrap: wrap; } .cand-main { flex-basis: calc(100% - 46px); } .cand-ab { flex: 1; } .cand-ab button { flex: 1; justify-content: center; min-height: 44px; } .cand .accept { min-height: 44px; } .cand-play { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .cand-play.loading .ic { animation: none; } }
.reject-all { margin-top: 10px; }
.revisions { list-style: none; padding: 0; margin: 0; max-height: clamp(180px, 40vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.revisions li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; }
.revisions li.cur { background: var(--accent-soft); }
.revisions .rev-id { font: 600 12px var(--mono); width: 28px; color: var(--muted2); }
.revisions li.cur .rev-id { color: var(--accent); }
.revisions .rev-note { flex: 1; font-size: 13px; }
.rev-when { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.revisions .rev-prompts { width: 28px; height: 28px; min-height: 0; padding: 0; justify-content: center; background: transparent; border: 0; color: var(--muted2); border-radius: 7px; }
.revisions .rev-prompts:hover { color: var(--text); background: var(--fill); }
.revisions .rev-prompts .ic { width: 15px; height: 15px; }
.pr-card { width: 640px; max-width: calc(100vw - 32px); max-height: min(720px, calc(100vh - 48px)); display: flex; flex-direction: column;
  background: rgba(28,28,32,0.98); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; }
.pr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pr-head b { font-size: 16px; }
.pr-items { overflow: auto; padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-label { font-weight: 600; font-size: 13px; }
.pr-copy { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; min-height: 0; font-size: 12px; border-radius: 7px; background: var(--fill); }
.pr-copy .ic { width: 14px; height: 14px; }
.pr-note { font-size: 12px; margin-top: 4px; }
.pr-text { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; padding: 10px 12px; background: #0E0E11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; font: 13px/1.5 var(--mono); max-height: 300px; overflow: auto; }
@media (max-width: 760px) { .pr-card { width: 100%; max-height: 100%; border-radius: 0; } .revisions .rev-prompts { width: 40px; height: 40px; } }
.revisions .back { padding: 4px 9px; min-height: 0; font-size: 12px; font-weight: 500; color: var(--text2); background: var(--fill); border-radius: 7px; }
.revisions li:not(.cur) .rev-id { font-weight: 500; } .revisions li:not(.cur) .rev-note { color: var(--text2); }
.tab-change { display: flex; flex-direction: column; gap: 10px; } .tab-change h3 { margin: 0; }
.tab-revisions h3 { margin: 0 0 6px; } .tab-revisions { display: flex; flex-direction: column; gap: 4px; }
.hint { font-size: 12px; color: var(--muted2); }
.right { display: flex; justify-content: flex-end; }
.who-menu { position: relative; }
.who-name { background: none; padding: 0; min-height: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.who-name:hover { background: none; color: var(--text); }
.pop { position: absolute; right: 0; top: calc(100% + 8px); background: #1C1C20; border: 1px solid var(--line2); border-radius: 10px; padding: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); z-index: 20; white-space: nowrap; }

/* phone */
@media (max-width: 760px) {
  .top { padding: 8px 12px; }
  .who #who { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; position: static; height: auto; }
  .side .projects { max-height: 220px; overflow: auto; }
  main { padding: 14px; }
  #p-title { font-size: 24px; }
  .grid2 { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: stretch; }
  .head-side { align-items: stretch; } .head-side .ids { justify-content: flex-start; }
  .actions .button, .actions button { flex: 1; justify-content: center; min-height: 44px; }
  .transport { position: sticky; bottom: 0; }
  .transport .round { width: 52px; height: 44px; }
  .ruler { margin-left: 0; }
  .tl-inner { min-width: 0; }
  .lane { flex-direction: column; }
  .lane-head { width: 100%; }
  .lane-btns button { width: 44px; height: 36px; font-size: 12px; }
  .lane-body { min-height: 46px; }
  .region canvas { top: 2px; height: calc(100% - 4px); }
  .region .rl { display: none; }
  .playhead { display: none; }
  button, .button { min-height: 40px; }
}
.projects .day { margin: 0; padding: 4px 6px 0; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .4px; }
ul.credits { list-style: disc; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 30px; }
.lane-btns .vol-wrap { min-width: 0; display: flex; align-items: center; gap: 6px; }
.lane-btns .vol-track { position: relative; flex: 1; min-width: 44px; display: flex; align-items: center; }
.lane-btns .vol { flex: 1; min-width: 44px; height: 20px; margin: 0; }
/* 0 dB, the part as mixed, at three quarters of the travel (the thumb's centre runs 7 px in from each end: input.vol) */
.lane-btns .vol-zero { position: absolute; left: calc(7px + (100% - 14px) * 0.75); top: 50%; width: 1px; height: 12px;
  transform: translate(-0.5px, -50%); background: var(--faint); pointer-events: none; }
.lane-btns .vol-db { flex: none; width: 48px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .lane-btns .vol { height: 36px; } }
.seg.view button { gap: 5px; } .seg.view .ic { width: 13px; height: 13px; }

/* phone, as the design's "Phone — project" artboard */
.mobile-only { display: none !important; }
@media (max-width: 760px) {
  .mobile-only { display: flex !important; }
  .m-title { flex-direction: column; align-items: center; min-width: 0; flex: 1; text-align: center; }
  .m-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .m-title span { font-size: 10.5px; color: var(--faint); }
  body.has-project .brand, body.has-project .who { display: none; }
  body.has-project .head { display: none; }
  body:not(.has-project) #m-export { display: none !important; }
  .top #m-export { order: 3; }
  body:not(.has-project) #m-back, body:not(.has-project) .m-title, body:not(.has-project) #m-nav { display: none !important; }
  body.has-project:not(.show-list) .side { display: none; }
  body.show-list main { display: none; }
  body.has-project main { padding-bottom: 170px; }
  body.has-project .transport { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 6; flex-wrap: wrap; gap: 10px;
    background: rgba(22,22,26,0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  .transport #to-start, .transport .view-toggle, .transport .credits-btn { display: none; }
  .transport .clock { background: none; padding: 0; flex: 1; flex-wrap: wrap; }
  .transport .clock .sub { display: none; }
  .m-progress { flex-basis: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
  .m-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
  .m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
    background: rgba(22,22,26,0.96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .m-nav button { flex-direction: column; gap: 3px; background: none; border-radius: 0; min-height: 60px; font-size: 11px; color: var(--muted2); justify-content: center; }
  .m-nav button .ic { width: 22px; height: 22px; }
  .m-nav button.on { color: var(--accent); font-weight: 600; }
  body.has-project[data-tab="tracks"] .grid2 { display: none; }
  body.has-project .info-wrap { display: none; }
  body.has-project[data-tab="change"] .head, body.has-project[data-tab="change"] .tl, body.has-project[data-tab="change"] .tab-revisions { display: none; }
  body.has-project[data-tab="revisions"] .head, body.has-project[data-tab="revisions"] .tl, body.has-project[data-tab="revisions"] .tab-change { display: none; }
  body.has-project[data-tab="change"] .transport, body.has-project[data-tab="revisions"] .transport { display: flex; }
  .tl { background: none; border: 0; }
  .ruler { display: none; }
  .lane { background: var(--panel); border: 0; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
  .lane-head { background: none; }
}

/* phone, second pass against "Phone — project": section chips on top, part cards, round play with times */
@media (max-width: 760px) {
  .top { padding: 10px 14px; }
  #m-back, #m-export { width: 44px; height: 44px; border-radius: 12px; background: var(--fill); color: var(--text2); }
  .ruler-row { display: block; border: 0; margin-bottom: 10px; }
  .ruler-label { display: none; }
  .secs-row { display: none; }
  .ruler { display: block; height: 18px; }
  .section { top: 0; padding-left: 0; }
  .section span { font-size: 9.5px; color: #B3B3BD; border-radius: 4px; padding: 3px 4px; }
  .section i { display: none; }
  .lane { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px 44px; column-gap: 8px; row-gap: 8px; align-items: center;
    grid-template-areas: "fam name mute solo" "fam instr mute solo" "body body body body" "vol vol vol lock";
    background: var(--panel); border-radius: 14px; padding: 10px 10px 8px; margin-bottom: 10px; border: 0; }
  .lane-head, .lane-name, .lane-btns { display: contents; }
  .fam { grid-area: fam; width: 36px; height: 36px; border-radius: 10px; border-color: transparent !important; }
  .lane-name .name { grid-area: name; font-size: 14px; align-self: end; }
  .instr { grid-area: instr; margin-top: 0; align-self: start; justify-self: start; }
  .lane-btns .mute { grid-area: mute; } .lane-btns .solo { grid-area: solo; }
  .lane-btns .mute, .lane-btns .solo { width: 44px; height: 44px; border-radius: 12px; font-size: 12px; }
  .lane-btns .lock { grid-area: lock; width: 44px; height: 30px; border-radius: 9px; }
  .lane-btns .vol-wrap { grid-area: vol; margin-top: 0; }
  .lane-btns .vol { height: 30px; margin: 0; }
  .lane-body { grid-area: body; min-height: 0; height: 34px; border-radius: 8px; overflow: hidden; }
  .region { top: 3px; bottom: 3px; border-radius: 5px; border: 0; }
  .lane-body .lp { display: block; position: absolute; top: 0; bottom: 0; width: 1.5px; background: #F2F2F5; z-index: 3; touch-action: none; }
  /* a finger-wide grip around the line (the line itself stays 1.5 px): touched there, it is dragged in time */
  .lane-body .lp::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 34px; }
  .lane-body .lp.dragging { box-shadow: 0 0 10px rgba(255,255,255,0.7); }
  /* the player sits right on the tab bar, whose height follows the phone's bottom inset (.m-nav below: 1 px border, 56 px
     buttons, max(10px, inset)); a fixed 66 px let the bar cover half of Play once Safari hid its toolbar on scroll and the
     inset grew to ~34 px (owner's screenshot, 2026-11-17) */
  body.has-project .transport { padding: 10px 14px 6px; gap: 12px; flex-wrap: nowrap; bottom: calc(57px + max(10px, env(safe-area-inset-bottom))); }
  body.has-project main { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .transport #play { flex: none; }  /* the transport's own Play, 52 x 44 with the buttons' corners, as on a computer (owner, 2026-11-17) */
  .transport #play .ic { width: 20px; height: 20px; }
  .transport .clock { display: none; }
  .m-track { flex: 1; flex-direction: column; min-width: 0; }
  .m-times { display: flex; justify-content: space-between; font: 500 12px var(--mono); }
  .m-times span + span { color: var(--faint); }
  /* in the player's column a flex-basis of 100% is a height, which resolved to 0 and hid the bar on phones; its own 5 px */
  .m-progress { margin-top: 6px; flex: none; }
  .m-nav { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .m-nav button { min-height: 56px; padding: 8px 0; }
}

/* instrument picker, as the design's "Picker" artboard */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet { width: 712px; max-width: 100%; height: min(672px, 100%); background: rgba(28,28,32,0.96); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); display: flex; flex-direction: column; overflow: hidden;
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.pk-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-bar { width: 3px; height: 34px; border-radius: 2px; flex: none; }
.pk-part { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.pk-sub { font-size: 12px; color: var(--muted2); }
.pk-x { width: 30px; height: 30px; min-height: 0; border-radius: 50%; padding: 0; justify-content: center; background: rgba(255,255,255,0.08); color: var(--text2); }
.pk-x .ic { width: 15px; height: 15px; }
.pk-tools { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.pk-search { border-radius: 10px; background: rgba(255,255,255,0.07); }
.pk-search input { padding: 10px 0; font-size: 14px; }
.pk-filters { align-self: flex-start; border-radius: 9px; }
.pk-filters button { border-radius: 7px; padding: 6px 12px; font-weight: 500; color: var(--muted); }
.pk-filters button.on { font-weight: 500; }
.pk-list { flex: 1 1 auto; overflow: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.pk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px 28px 28px 28px auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; }
/* a favourite (favorites.py): theirs, first after the current sound, in every track */
.pk-fav { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
  justify-content: center; color: var(--muted2); }
.pk-fav .ic { width: 16px; height: 16px; }
.pk-fav[aria-pressed="true"] { color: #F2C94C; } .pk-fav[aria-pressed="true"] .ic { fill: #F2C94C; }
/* hidden (favorites.py): never picked for them, listed last under "Hidden" */
.pk-hide { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
  justify-content: center; color: var(--muted2); }
.pk-hide .ic { width: 16px; height: 16px; }
.pk-hide[aria-pressed="true"] { color: var(--danger); }
.pk-hide:disabled { opacity: 0.3; }
.pk-hidden-head { align-self: flex-start; margin: 10px 8px 4px; padding: 6px 10px; min-height: 0; border-radius: 8px; background: rgba(255,255,255,0.05);
  font-size: 12px; color: var(--muted); }
.pk-favnote { padding: 0 18px 6px; font-size: 12px; color: var(--muted2); }
.pk-row.on { background: var(--accent-soft); }
.pk-listen { width: 40px; height: 40px; min-height: 0; border-radius: 50%; padding: 0; justify-content: center; background: rgba(255,255,255,0.09); }
.pk-listen .ic { width: 15px; height: 15px; }
.pk-info { min-width: 0; cursor: pointer; }
.pk-name { font-weight: 600; font-size: 14px; }
.pk-about { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* the kind chip never stretches or breaks; the licence goes to its own line whole when there is no room beside it */
.pk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 5px; }
.pk-kind { white-space: nowrap; font-size: 10.5px; font-weight: 500; color: var(--text2); background: rgba(255,255,255,0.07); border-radius: 5px; padding: 2px 6px; }
.pk-lic { font: 10.5px var(--mono); color: var(--muted2); padding: 2px 0; }
.pk-wave { width: 120px; height: 30px; } .pk-wave path { fill: var(--accent); opacity: 0.7; }
.pk-radio { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25); color: transparent; }
.pk-radio .ic { width: 14px; height: 14px; }
.pk-row.on .pk-radio { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pk-empty { padding: 24px 8px; color: var(--muted2); font-size: 13px; } .pk-empty.error { color: var(--danger); }
.pk-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(22,22,26,0.9); }
.pk-state { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.pk-note { font-size: 12px; color: var(--muted2); } .pk-note.error { color: var(--danger); }
.pk-btns { display: flex; gap: 8px; } .pk-btns button { padding: 9px 14px; } .pk-btns .primary { padding: 9px 16px; }
@media (max-width: 760px) {
  .modal { padding: 0; align-items: stretch; }
  .sheet { width: 100%; height: 100%; border-radius: 0; }
  /* the flag too: the thumbs-down only hides (owner, 2026-11-18: «почему на мобилке нет второго?») */
  .pk-row { grid-template-columns: 44px minmax(0, 1fr) 40px 40px 40px 30px; gap: 6px; }
  .pk-fav, .pk-hide { width: 40px; height: 44px; }
  .pk-wave { display: none; }
  .pk-listen { width: 44px; height: 44px; }
  .pk-foot { flex-direction: column; align-items: stretch; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .pk-btns button { flex: 1; justify-content: center; min-height: 44px; }
  .pk-filters { align-self: stretch; overflow-x: auto; }
}

/* skeletons: the picker while the library is searched, the mix balance while the parts are measured */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.pk-skel .sk-dot { width: 40px; height: 40px; border-radius: 50%; }
.pk-skel .sk-lines { display: flex; flex-direction: column; gap: 6px; }
.pk-skel .sk-l1 { width: 55%; height: 13px; } .pk-skel .sk-l2 { width: 80%; height: 10px; } .pk-skel .sk-l3 { width: 30%; height: 12px; margin-top: 2px; }
.pk-skel .sk-wave { width: 120px; height: 22px; } .pk-skel .sk-radio { width: 28px; height: 28px; border-radius: 50%; }
@media (max-width: 760px) { .pk-skel .sk-wave { display: none; } }

/* loading the parts: spinner on Play, a bar under the transport, shimmering regions */
.transport { position: relative; }
#play.loading { opacity: 1; background: rgba(255,61,110,0.35); cursor: progress; }
#play.loading .ic { animation: spin 0.9s linear infinite; fill: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgba(255,255,255,0.06); }
.load-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
/* the track's status in the middle of the transport; the line under the transport is its progress */
.t-status { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: baseline; gap: 10px; font: 12px var(--mono); }
.t-status:not(.on) { visibility: hidden; }
/* the stage is what matters: the time estimate gives up its room first (owner, 2026-11-09: "writing variants: 1 of 3
   ready, atte…" cut in the middle by an estimate that never shrank); the whole text stays in the title */
#ts-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 0 auto; max-width: 100%; }
#ts-left { color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1000 auto; }
.timeline.loading .region::after, .timeline.fetching .region::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%); background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #play.loading .ic, .timeline.loading .region::after, .timeline.fetching .region::after { animation: none; } }
@media (max-width: 760px) {
  /* phone: the status is a line above the player */
  body.has-project .transport .t-status { position: absolute; left: 0; right: 0; bottom: 100%; padding: 6px 14px; justify-content: space-between;
    background: rgba(22,22,26,0.94); border-top: 1px solid var(--line); display: flex !important; }
  body.has-project .transport .t-status:not(.on) { display: none !important; }
  .load-bar { top: -1px; bottom: auto; }
}

/* New track, as the design's "New track" artboard */
.create { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.create-text { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.create .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
/* the label never breaks; the hint takes the rest of the line, or the next line whole when there is no room */
/* New track: the idea shown in the empty fields and its two buttons (2026-11-14) */
.idea-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.how-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.how-row .view-toggle { padding: 7px 12px; font-size: 13px; border-radius: 10px; } .how-row .view-toggle .ic { width: 14px; height: 14px; color: var(--accent); }
.how-variants { display: grid; gap: 10px; margin-top: 10px; }
.how-way { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); padding: 10px 12px; min-width: 0; }
.how-way-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.how-way-h .view-toggle { padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.how-way-t { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.45; max-height: 220px; overflow-y: auto; }
.idea-genre { background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; max-width: 220px; }
.idea-gift { margin-left: auto; }
.idea-row .view-toggle { padding: 7px 12px; font-size: 13px; border-radius: 10px; } .idea-row .view-toggle .ic { width: 14px; height: 14px; color: var(--accent); }
.idea-genre { padding: 7px 10px; }
@media (max-width: 760px) { .idea-genre { flex: 1 1 100%; max-width: none; font-size: 15px; background: #141417; } .idea-gift { margin-left: 0; } }
.flabel { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; font-weight: 600; font-size: 13px; }
.flabel > span:not(.fhint) { white-space: nowrap; }
.flabel > .fhint { flex: 1 1 auto; min-width: 0; }
.flabel .ic { color: var(--accent); width: 15px; height: 15px; }
.fhint { font-weight: 400; color: var(--muted2); }
/* how free the studio is (interpret.FREEDOM_DEFAULT) */
.freedom { padding-top: 12px; border-top: 1px solid var(--line); gap: 12px !important; }
.fr-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 52px; gap: 6px 12px; align-items: center; }
.fr-label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text2); }
.fr-label .ic { width: 13px; height: 13px; color: var(--muted2); }
.fr-row input[type=range] { width: 100%; accent-color: var(--accent); }
.fr-v { text-align: right; font: 500 13px var(--mono); color: #FF9DB5; }
.fr-hint { grid-column: 1 / -1; font-size: 12px; line-height: 1.45; color: var(--muted2); }
.fr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text2); cursor: pointer; }
.fr-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.fr-check > span { display: flex; flex-direction: column; gap: 2px; }
.fr-take { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted2); }
.fr-chip { font: 500 12px var(--mono); color: var(--text2); background: var(--fill); border-radius: 6px; padding: 2px 8px; }
.regen-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(255,61,110,0.08); border: 1px solid rgba(255,61,110,0.27);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.regen-note .ic { width: 15px; height: 15px; color: #FF9DB5; } .regen-note span { flex: 1; min-width: 200px; }
.regen-note button { flex: none; padding: 5px 10px; min-height: 0; font-size: 12px; background: transparent; border: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 760px) { .fr-row { grid-template-columns: minmax(0, 1fr) 52px; } .fr-row input[type=range] { grid-column: 1 / -1; grid-row: 2; } }
.create-instr { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ci-body { display: flex; flex-direction: column; gap: 4px; }
.ci-head { padding: 0 8px 6px; } .ci-head h2 { margin: 0; font-weight: 600; font-size: 16px; }
.ci-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted2); }
.ci-list { display: flex; flex-direction: column; gap: 4px; }
.ci-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 11px; }
.ci-row .fam { width: 34px; height: 34px; border-radius: 9px; }
.ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-name { font-weight: 600; font-size: 13px; }
.ci-what { font-size: 12px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-change { background: rgba(255,255,255,0.08); border-radius: 7px; padding: 6px 10px; font-size: 12px; font-weight: 500; gap: 4px; min-height: 0; flex: none; }
.ci-change .ic { width: 12px; height: 12px; }
.ci-add { margin: 6px 8px 0; justify-content: center; gap: 6px; background: transparent; color: #FF9DB5; border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 10px; padding: 10px; font-weight: 500; }
.ci-add:hover { background: rgba(255,61,110,0.08); } .ci-add .ic { width: 15px; height: 15px; }
.ci-addbox { display: flex; gap: 8px; margin: 6px 8px 0; }
.ci-addbox input { flex: 1; min-width: 0; background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13px; }
.ci-msg { padding: 8px; font-size: 12.5px; color: var(--muted2); line-height: 1.45; }
.ci-msg.error { color: var(--danger); } .ci-msg.stale { color: var(--warn); }
.ci-retry { margin: 0 8px; align-self: flex-start; }
.ci-skel .sk-fam { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.ci-skel .sk-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ci-skel .sk-l1 { width: 45%; height: 12px; } .ci-skel .sk-l2 { width: 70%; height: 10px; }
.ci-skel .sk-btn { width: 74px; height: 26px; border-radius: 7px; flex: none; }
.create .ack { margin: 0; background: var(--panel); border-color: rgba(255,255,255,0.06); }
.create .job { margin: 0; }
.create-go { gap: 8px; }
/* the running track's time and stage in the button: one line, the stage cut with an ellipsis, digits that do not jump */
.create-go.go-live { max-width: 100%; min-width: 0; } .create-go.go-live > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-variant-numeric: tabular-nums; }

/* phone: "Phone — new track" */
@media (max-width: 760px) {
  body.creating .brand, body.creating .who, body.creating #m-export { display: none !important; }
  body.creating #m-back, body.creating .m-title { display: flex !important; }
  body.creating .m-title b { font-size: 16px; } body.creating #m-when { display: none; }
  body:not(.creating) #m-lang { display: none !important; }
  .m-lang { width: auto; min-width: 44px; height: 44px; border-radius: 12px; background: var(--fill); color: var(--text2); font-size: 12px; font-weight: 600; order: 3; }
  body.creating:not(.show-list) .side { display: none; }
  body.creating main { padding-bottom: 110px; }
  .create { padding: 0; gap: 12px; }
  .create-text { background: none; border: 0; padding: 0; gap: 12px; flex: none; }
  .create textarea { background: #141417; border-radius: 12px; }
  #style { font-size: 15px; line-height: 1.45; } #scenario { font-size: 14px; }
  .create-instr { background: none; border: 0; padding: 0; flex: none; }
  .ci-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: #141417; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 12px; text-align: left; font-weight: 500; font-size: 14px; }
  .ci-toggle .ci-fam { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,61,110,0.13); color: var(--accent); border: 0; }
  .ci-tt { flex: 1; display: flex; flex-direction: column; } .ci-tt small { font-size: 12px; color: var(--muted2); }
  .ci-toggle > .ic { color: var(--muted2); transition: transform .2s; }
  .create-instr:not(.open) .ci-body { display: none; }
  .create-instr.open .ci-toggle > .ic { transform: rotate(180deg); }
  .create-instr.open .ci-body { margin-top: 8px; background: #141417; border-radius: 12px; padding: 8px 4px; }
  .create-instr .ci-head { display: none; }
  .create .ack { background: none; border: 0; padding: 0; }
  .create .ack input { width: 22px; height: 22px; margin: 0; }
  .create-go-row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 14px max(20px, env(safe-area-inset-bottom));
    background: rgba(22,22,26,0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  body:not(.creating) .create-go-row { display: none; }
  .create-go { width: 100%; justify-content: center; padding: 15px; border-radius: 13px; font-size: 16px; }
}

/* waiting, one look everywhere: the pressed button shimmers and is locked; icon-only buttons spin */
button.waiting, .button.waiting { cursor: progress; opacity: 1; }
button.waiting > span, .button.waiting > span, .link.waiting .title, .link.waiting .sub {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 38%, #FFFFFF 50%, var(--muted) 62%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.8s linear infinite; }
.primary.waiting > span, .light.waiting > span {  /* white letters on these buttons: the shimmer runs from dimmed white to white */
  background-image: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.55) 38%, #FFFFFF 50%, rgba(255,255,255,0.55) 62%, rgba(255,255,255,0.55) 100%); }
/* only the loader spins, never a button's own icon */
.ic.spin, .pk-listen.waiting .ic { animation: spin 0.9s linear infinite; fill: none !important; }
@media (prefers-reduced-motion: reduce) { button.waiting > span, .button.waiting > span, .link.waiting .title, .link.waiting .sub { animation: none; color: var(--text2); background: none; } .ic.spin { animation: none; } }

/* what changed: a note at the bottom and a short glow on the part */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 60; max-width: min(560px, calc(100vw - 32px));
  background: rgba(36,36,42,0.96); color: var(--text); border: 1px solid var(--line2); border-left: 3px solid var(--ok); border-radius: 12px;
  padding: 11px 16px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); opacity: 0; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* the page's code is older than the server's: stays until the page is loaded anew */
.ui-new { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px;
  max-width: min(560px, calc(100vw - 32px)); padding: 8px 8px 8px 14px; border-radius: 10px; background: #26262C;
  border: 1px solid rgba(255,61,110,0.45); box-shadow: 0 12px 32px rgba(0,0,0,0.5); font-size: 13px; color: #EDEDF2; }
/* the page's own accent button (.primary), only smaller; it had a font of its own, Inter, which the page does not load:
   the label came out in another typeface (owner, 2026-11-17: «кнопка обновить ... кривая текстом стилем») */
.ui-new button { flex: none; min-height: 0; padding: 6px 12px; border-radius: 8px; }
/* a phone: the whole width under the top edge, one line of text and the button beside it (owner, 2026-11-17: «длинно
   и криво для мобилки») */
@media (max-width: 760px) {
  body.create-running #create-job { display: none; }  /* the button says it while the track is made (goStatus) */
  .ui-new { left: 12px; right: 12px; top: max(10px, env(safe-area-inset-top)); transform: none; max-width: none; justify-content: space-between; }
}
.toast.error { border-left-color: var(--danger); }
.toast.plan { border-left-color: var(--accent); }
.toast a, .job a { color: var(--accent); font-weight: 600; margin-left: 4px; }
@media (max-width: 760px) {
  body.has-project .toast { bottom: 160px; } body.creating .toast { bottom: 100px; }
  /* the whole width: from the middle it shrank to half the screen, a note and its link in a narrow column (2026-11-18) */
  .toast { left: 16px; right: 16px; max-width: none; transform: translateY(12px); }
  .toast.show { transform: none; }
}
@keyframes glow { 0% { box-shadow: inset 0 0 0 2px rgba(255,61,110,0.9); background-color: rgba(255,61,110,0.16); } 100% { box-shadow: inset 0 0 0 2px rgba(255,61,110,0); background-color: transparent; } }
.flash, .flash .lane-head, .flash .lane-body { animation: glow 2.4s ease-out; }

/* picker rows keep the design's one line of description; the full text is in the tooltip */
.pk-about { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* a part whose sound is being changed */
.lane.changing .lane-body::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%); background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite; }
.lane.changing .instr { opacity: 1; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .lane.changing .lane-body::after { animation: none; } }

/* library, as the design's "Desktop — library" and "Phone — library" */
.lib-nav, .lib-albums { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; min-height: 0; border-radius: 8px;
  background: transparent; justify-content: flex-start; font-size: 13px; font-weight: 500; color: var(--text2); text-align: left; }
.nav-item .ic { width: 16px; height: 16px; color: var(--muted); }
.nav-item.on { background: rgba(255,255,255,0.08); color: var(--text); font-weight: 600; }
.nav-item.on .ic { color: var(--accent); }
.nav-item .cnt { margin-left: auto; font: 11px var(--mono); color: var(--faint); }
.nav-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.album-item .sq { margin: 0 3px; }
.albums-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 0; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .4px; }
.mini { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 6px; justify-content: center; background: rgba(255,255,255,0.06); color: var(--muted); }
.mini .ic { width: 13px; height: 13px; }
li.pi { position: relative; }
/* the star sits right after the title's last word, also when the title wraps (design: Library, Phone — library) */
.projects .title { display: block; }
.projects .title .star { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; color: #F2C94C; fill: #F2C94C; }
/* one quiet line of values, wrapping only between whole values; the album pill takes its own line below them */
.projects .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 5px; }
.projects .sub .tags { flex: 1 0 100%; min-width: 0; display: flex; }
.projects .sub .tags:not(:has(.apill, .adot)) { display: none; }
.tags span { display: inline-flex; align-items: center; gap: 3px; }
.apill { gap: 5px !important; font: 500 10.5px -apple-system, BlinkMacSystemFont, Inter, sans-serif; border-radius: 999px; padding: 2px 7px 2px 6px;
  white-space: nowrap; max-width: 100%; overflow: hidden; }
.apill .dot { width: 6px; height: 6px; border-radius: 50%; }
.adot { width: 7px; height: 7px; border-radius: 50%; }
.pi-more { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; min-height: 0; padding: 0;
  border-radius: 7px; justify-content: center; background: rgba(255,255,255,0.08); color: var(--text2); opacity: 0; }
.pi-more .ic { width: 15px; height: 15px; }
li.pi:hover .pi-more, .pi-more:focus-visible { opacity: 1; }
li.pi:hover .link:not(.active) { background: rgba(255,255,255,0.06); }
.ctx { position: fixed; z-index: 70; width: 236px; background: rgba(36,36,42,0.98); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 5px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
#ctx-sub { width: 216px; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; min-height: 0; border-radius: 7px; background: transparent;
  justify-content: flex-start; font-size: 13px; font-weight: 500; color: var(--text); text-align: left; }
.mi:hover { background: rgba(255,61,110,0.22); }
.mi .ic { width: 15px; height: 15px; color: #C9C9D1; }
/* only the label grows; the empty slot of an unchecked album keeps its 16 px (it took half the menu and broke the name) */
.mi .ml { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi .chev { width: 14px; height: 14px; color: var(--muted2); }
.mi .check { width: 14px; height: 14px; color: var(--accent); }
.mi.danger, .mi.danger .ic { color: var(--danger); }
.msep { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 6px; }
.album { display: flex; flex-direction: column; gap: 16px; }
.album-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.album-kind { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--accent); }
.album h1 { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.2; }
.al-sub { margin-top: 4px; font: 12px var(--mono); color: var(--muted2); }
.sq-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
.al-palette { display: flex; gap: 8px; }
.swatch { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.al-list { padding: 8px; display: flex; flex-direction: column; }
.al-row { display: grid; grid-template-columns: 22px 28px 1fr 70px 60px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.al-row:hover { background: #18181C; }
.al-row .grip { width: 15px; height: 15px; color: var(--faint); cursor: grab; }
.al-row .n, .al-row .r { font: 13px var(--mono); color: var(--muted2); } .al-row .r { font-size: 12px; }
.al-row .t { font-size: 14px; font-weight: 500; }
.al-row .d { font: 12px var(--mono); color: var(--muted); text-align: right; }
.al-row.dragging { opacity: .45; }
.ask-card { width: 360px; max-width: calc(100vw - 32px); background: rgba(28,28,32,0.98); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.ask-card b { font-size: 16px; }
.ask-card input { background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.ask-card .pk-btns { justify-content: flex-end; }
.sheet-bg { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,0.5); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; background: #1C1C21; border-radius: 20px 20px 0 0; padding: 8px 18px max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.sheet-card .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.2); margin: 0 auto 10px; }
.sheet-card > b { font-size: 17px; font-weight: 700; }
.sh-pills { display: flex; gap: 6px; margin: 6px 0; }
.sheet-card .mi { padding: 14px 6px; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sheet-card .mi .ic { width: 20px; height: 20px; color: var(--text2); }
.sheet-card .mi.danger .ic { color: var(--danger); }
.m-filters { gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fpill { display: inline-flex; align-items: center; gap: 6px; flex: none; border-radius: 999px; padding: 8px 12px; min-height: 0; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.06); color: var(--text2); }
.fpill.on { background: rgba(255,255,255,0.14); color: var(--text); font-weight: 600; }
.fpill .ic { width: 13px; height: 13px; color: var(--muted); }
.fpill .ic:has(use[href="#i-star"]) { color: #F2C94C; } .fpill .sq { width: 8px; height: 8px; border-radius: 2px; }
.m-list-head { align-items: center; justify-content: space-between; padding: 2px 2px 4px; }
.m-list-head b { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.m-list-head .round { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 760px) {
  body.show-list .top, body.show-list .lib-nav, body.show-list .albums-head, body.show-list #albums, body.show-list .search, body.show-list #new-btn { display: none !important; }
  body:not(.show-list) .m-list-head, body:not(.show-list) .m-filters { display: none !important; }
  body.show-list .side { padding-top: 14px; }
  .projects { gap: 8px; }
  .projects .link { background: #141417; border-radius: 14px; padding: 12px 40px 12px 12px; }
  .projects .title .tt { font-weight: 600; font-size: 15px; }
  .projects .sub .when { font-size: 11.5px; }
  .pi-more { opacity: 1; background: none; color: var(--muted2); right: 10px; }
  .pi-more .ic { width: 18px; height: 18px; }
  .side .projects { max-height: none; }
  .album-head { flex-direction: column; align-items: flex-start; }
}

/* key and tempo in the transport: they open a choice */
.cs-btn { background: none; padding: 0 2px; min-height: 0; font: inherit; color: var(--text2); border-radius: 4px; text-decoration: underline dotted rgba(255,255,255,0.3); text-underline-offset: 3px; }
.cs-btn:hover { background: none; color: var(--text); }  /* a word: the hover only lights it, no fill the word does not fit (owner 2026-11-16 «криво») */
.ctx.keys { width: 300px; padding: 8px; }
.mhead { font-size: 11px; font-weight: 600; color: var(--faint); padding: 6px 6px 4px; letter-spacing: .3px; }
.kgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0 2px 4px; }
.kbtn { min-height: 0; padding: 7px 0; justify-content: center; font: 500 12.5px var(--mono); background: rgba(255,255,255,0.06); border-radius: 7px; }
.kbtn:hover { background: rgba(255,61,110,0.22); }
.kbtn.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* job progress: a thin bar that glides between the server's estimates */
.jbar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 6px; }
.jbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.4s linear; }
.pk-foot { position: relative; }
.pk-foot .jbar { position: absolute; top: -1px; left: 0; right: 0; margin: 0; border-radius: 0; }
.ci-list .jbar { margin: 0 8px 6px; }
.rev-cost { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }

/* length of a new track */
.len-row { display: flex; gap: 8px; align-items: center; }
.len-row select, .len-row input { background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 14px; }
.len-row select { flex: 0 1 300px; min-width: 0; } .len-row input { width: 96px; font-family: var(--mono); }
@media (max-width: 760px) { .len-row select { flex: 1; font-size: 15px; } .create .len-row select, .create .len-row input { background: #141417; } }

/* the line under a track's title: one small chip per value; room kept for the menu button */
.projects .sub .when { display: contents; }
.projects .schip { background: none; padding: 0; gap: 4px; white-space: nowrap; color: var(--faint); }
.projects .link.active .schip { background: none; color: #B3B3BD; }
.schip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 5px; border-radius: 999px; background: rgba(255,255,255,0.06);
  font: 500 10.5px var(--mono); color: var(--muted); line-height: 16px; }
.schip .ic { width: 11px; height: 11px; color: var(--faint); }
.transport .schip.lufs { font-size: 12px; padding: 2px 8px 2px 6px; line-height: 18px; cursor: help; }
.transport .schip.lufs .ic { width: 13px; height: 13px; }
.link.active .schip { background: rgba(255,255,255,0.09); color: #C9C9D6; }
.projects .link { padding-right: 40px; }
@media (max-width: 760px) { .schip { font-size: 11px; } }

/* the owner's listening check of the library (/listen, studio/listen.py) */
.listen { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.listen h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.4px; }
.listen-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 10px; }
.listen-error { color: var(--danger); }
.listen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ls-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ls-row.now { border-color: var(--accent); background: var(--accent-soft); }
.ls-n { width: 28px; color: var(--faint); font-size: 12px; text-align: right; }
.ls-verdicts { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.ls-verdicts button { min-height: 44px; min-width: 64px; justify-content: center; }
.ls-verdicts button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ls-verdicts button.busy { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 38%, #FFFFFF 50%, var(--muted) 62%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.8s linear infinite; opacity: 1; }
.listen-summary { margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.listen-summary h2 { margin: 0 0 6px; font-size: 18px; }
.listen-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-family: var(--mono); font-size: 13px; }
.listen-table th, .listen-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.listen-table tr.passes td { color: var(--text); background: var(--accent-soft); }
.listen-sounds { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* admin page (studio/plans.py): plans and accounts; on a phone each row is a card with its labels */
.admin h2 { margin: 28px 0 6px; font-size: 18px; }
.admin input, .admin select { width: 100%; min-width: 0; background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 9px 10px; font: 14px var(--mono); }
.admin td { vertical-align: middle; }
.admin .table-wide { overflow-x: auto; }
.admin .table-wide table { min-width: 1180px; }
.admin input[type=checkbox] { width: 20px; height: 20px; }
.admin .ad-save { min-height: 40px; white-space: nowrap; }
.admin .ad-save.busy { opacity: 0.6; }
.admin .lib-warn { color: #FF8A8A; font-weight: 600; }
.admin #lib-rows a { color: inherit; }
.admin tr.pal-gap td { color: #FF8A8A; } .admin tr.pal-thin td:first-child { color: #FFC46B; }
.lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 12px 0; }
.lib-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.lib-card.on { border-color: var(--accent); background: var(--accent-soft); }
.lib-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.lib-card .mono { font-size: 12px; }
.lib-card small.lib-warn { color: #FF8A8A; }
.lib-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; }
.lib-tools input[type=search] { flex: 1 1 260px; width: auto; }
.lib-check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lib-check input { width: auto; }
.lib-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.lib-table th.sorted::after { content: " " attr(data-dir); color: var(--accent); }
.lib-table .num { text-align: right; }
.lib-row { cursor: pointer; }
.lib-row:hover td { background: rgba(255,255,255,0.03); }
.lib-why td { color: var(--muted); font-family: var(--sans, inherit); font-size: 13px; line-height: 1.45; background: rgba(255,255,255,0.02); }
.lib-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid var(--line); }
.lib-badge.lib-ok { color: #8CE0A4; border-color: rgba(140,224,164,0.35); }
.lib-badge.lib-credit { color: #A9C8FF; border-color: rgba(169,200,255,0.35); }
.lib-badge.lib-risk, .lib-badge.lib-unknown { color: #FFC46B; border-color: rgba(255,196,107,0.35); }
.lib-badge.lib-no { color: #FF8A8A; border-color: rgba(255,138,138,0.35); }
@media (max-width: 760px) {
  .admin table, .admin tbody, .admin tr, .admin td { display: block; width: 100%; }
  .admin thead { display: none; }
  .admin .table-wide table { min-width: 0; }
  .admin tr { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .admin td { border: 0; padding: 4px 0; }
  .admin td[data-label]::before { content: attr(data-label); display: block; color: var(--faint); font-size: 11px; margin-bottom: 3px; }
  .admin .ad-save { width: 100%; justify-content: center; margin-top: 4px; }
}

/* the person's plan and tokens this month, in the menu under their name (plans.py) */
.who-plan { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 6px; min-width: 220px; }
.who-plan-name { color: var(--text); font-size: 13px; font-weight: 600; }
.who-allowance { color: var(--muted); font-size: 12px; }
#who-pop:not(.hidden) { display: flex; flex-direction: column; gap: 2px; }
#who-pop .button, #who-pop button { width: 100%; justify-content: flex-start; }

/* melody by voice on New track (design "Create", 2026-11-08; studio/melody.py) */
.voice { display: flex; flex-direction: column; gap: 8px; }
.voice-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-rec { background: rgba(255,61,110,0.13); color: #FF9DB5; border: 1px solid rgba(255,61,110,0.33); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13px; gap: 7px; }
.voice-rec.on { background: rgba(255,90,90,0.14); color: #FF9A9A; border-color: rgba(255,90,90,0.4); }
.voice-rec.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF5A5A; }
.voice-up { background: transparent; color: #D6D6DD; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px 14px; font-size: 13px; gap: 7px; }
.voice-note { font-size: 12px; color: var(--muted); margin-top: -2px; }
.voice-card { background: #0E0E11; border: 1px solid rgba(255,255,255,0.08); border-radius: 11px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.vrow { display: flex; align-items: center; gap: 10px; }
.vlab { flex: none; width: 74px; font-size: 12px; font-weight: 500; color: #A8A8B3; }
.vplay { flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.08); justify-content: center; }
.vplay .ic { width: 13px; height: 13px; }
.vstrip { flex: 1; min-width: 0; height: 32px; background: rgba(255,255,255,0.03); border-radius: 7px; }
/* a piece of the recording (design "Create", 2026-11-08): band, dimmed outside, a grip at each edge */
.vsel { padding: 0 6px; }
.vsel-in { position: relative; height: 32px; }
.vcanvas { display: block; width: 100%; height: 32px; }
#voice-strip .vsel-in { cursor: crosshair; touch-action: none; }
.vsel-band { position: absolute; top: 0; bottom: 0; box-sizing: border-box; background: rgba(255,61,110,0.18);
  border-left: 2px solid #FF3D6E; border-right: 2px solid #FF3D6E; cursor: grab; }
.vsel-dim { position: absolute; top: 0; bottom: 0; background: rgba(14,14,17,0.62); pointer-events: none; }
.vsel-l { left: 0; } .vsel-r { right: 0; }
.vsel-h { position: absolute; top: 0; width: 14px; height: 32px; min-height: 0; margin-left: -7px; padding: 0; border: 0;
  background: transparent; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.vsel-h span { width: 6px; height: 20px; border-radius: 3px; background: #FF3D6E; box-shadow: 0 0 0 2px #0E0E11; }
.vsel-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 0 124px; }
.vsel-row .mono { font: 500 12px var(--mono); color: #FF9DB5; }
.vsel-row .voice-up { flex: none; padding: 4px 10px; font-size: 12px; border-radius: 8px; font-weight: 500; }
.vsel-hint { margin: -4px 0 0 124px; font-size: 12px; line-height: 1.5; color: #8E8E99; }
.vrow-scope .vlab { line-height: 1.3; }
.voice-explain { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.voice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-chips span { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 4px 10px; font: 500 12px var(--mono); color: #D6D6DD; }
.voice-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; line-height: 1.5; color: #A8A8B3; }
.voice-foot .voice-up { flex: none; padding: 6px 12px; font-size: 12px; border-radius: 8px; }
@media (max-width: 760px) { .voice .seg { flex: 1; } .voice .seg button { flex: 1; justify-content: center; min-height: 44px; } .vplay { width: 44px; height: 44px; }
  .vsel-h { width: 24px; height: 44px; margin-left: -12px; top: -6px; } .vsel-h span { height: 24px; }
  .vsel-row, .vsel-hint { margin-left: 0; } .vsel-row .voice-up { min-height: 44px; }
  .vrow-scope { flex-direction: column; align-items: stretch; gap: 6px; } .vrow-scope .vlab { width: auto; } }

/* ---------------- mix balance (design "Main", 2026-11-08): what each band holds against released tracks ---------------- */
.tracks-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mix-open { display: flex; align-items: center; gap: 5px; min-height: 0; background: rgba(255,255,255,0.06); color: #D6D6DD;
  border: 0; border-radius: 6px; padding: 3px 8px; font: 500 11.5px var(--sans, Inter), sans-serif; }
.mix-open .ic { width: 12px; height: 12px; }
.mix-open .mix-ok { display: none; color: var(--ok); stroke-width: 3; }  /* the auto-mix is applied in full (studio.js markBalance) */
.mix-open.applied .mix-ok { display: block; }
.mix-open[aria-expanded="true"] { background: rgba(255,61,110,0.16); color: #FF9DB5; }
/* compact (owner, 2026-11-11: "окно гигантское, в нём много лишнего текста"): the picture, one note line,
   the hints, the tone folded */
.mix-win { position: fixed; right: 36px; top: 300px; z-index: 40; width: 460px; max-width: calc(100% - 40px);
  max-height: calc(100vh - 320px); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; background: #1C1C20;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.mix-grab, .mix-scrim { display: none; }
.mix-head { display: flex; align-items: center; gap: 12px; }
.mix-title { flex: 1; min-width: 0; }
.mix-title h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.mix-title h2 .ic { width: 16px; height: 16px; color: #FF3D6E; }
.mix-close { flex: none; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 8px; border: 0;
  background: rgba(255,255,255,0.07); justify-content: center; color: #D6D6DD; }
.mix-close .ic { width: 14px; height: 14px; }
.mix-bands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 4px; }
.mix-band { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mix-state { height: 14px; display: flex; align-items: center; gap: 2px; font: 600 11px var(--sans, Inter), sans-serif; }
.mix-state .ic { width: 12px; height: 12px; }
.mix-state.thin { color: #F5C451; } .mix-state.heavy { color: #FF7A7A; }
.mix-plot { position: relative; width: 100%; height: 104px; background: rgba(255,255,255,0.025); border-radius: 6px; }
.mix-corr, .mix-med { position: absolute; left: 50%; width: 36px; margin-left: -18px; }
.mix-corr { background: rgba(255,255,255,0.09); border-radius: 4px; }
.mix-med { height: 1px; background: rgba(242,242,245,0.55); }
.mix-seg { position: absolute; left: 50%; width: 16px; margin-left: -8px; box-sizing: border-box; border-top: 1px solid #1C1C20; }
.mix-name { text-align: center; min-width: 0; width: 100%; }
.mix-name b { display: block; font: 600 10.5px var(--sans, Inter), sans-serif; color: #D6D6DD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the wait, what the auto-mix changed, or what failed */
.mix-note { font-size: 12px; line-height: 1.4; color: #A8A8B3; }
.mix-note.ok { color: #FF9DB5; } .mix-note.error { color: var(--danger); }
.mix-note.shine { color: transparent; }
.mix-plot.sk { background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%; }
.mix-hints { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.mix-hints:empty { display: none; }
.mix-hint { display: flex; align-items: center; gap: 10px; }
.mix-hint > .ic { width: 14px; height: 14px; flex: none; }
.mix-hint.thin > .ic { color: #F5C451; } .mix-hint.heavy > .ic { color: #FF7A7A; }
.mix-hint span { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; color: #D6D6DD; }
.mix-hint button { flex: none; min-height: 0; background: transparent; color: #D6D6DD; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 4px 10px; font: 500 12px var(--sans, Inter), sans-serif; }
.mix-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06); }
.mix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1 1 180px; min-width: 0; }
.mix-legend > span { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--sans, Inter), sans-serif; color: #A8A8B3; }
.mix-legend i { width: 8px; height: 8px; border-radius: 2px; }
.mix-legend .corr { color: #8E8E99; }
.mix-legend .corr i { position: relative; width: 14px; height: 10px; background: rgba(255,255,255,0.12); }
.mix-legend .corr i::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 1px; background: rgba(242,242,245,0.55); }
.mix-acts { display: flex; gap: 8px; flex: none; }
.mix-undo, .mix-auto { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; min-height: 0; font-size: 13px; }
.mix-undo { background: rgba(255,255,255,0.08); color: #F2F2F5; padding: 8px 12px; font-weight: 500; }
/* a plan that does not mix: the controls are there and do not move, the way up is said beside them (2026-11-16) */
.mix-paid { padding: 6px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); } .mix-paid a { color: var(--accent); }
.lane.mix-locked .vol, .lane.mix-locked .mute, .lane.mix-locked .solo { opacity: .4; cursor: not-allowed; }
.mix-auto:disabled { opacity: .4; cursor: not-allowed; }
.mix-auto { gap: 7px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font-weight: 600; }
.mix-undo .ic, .mix-auto .ic { width: 14px; height: 14px; }
/* the panorama strip and the width meters (owner, 2026-11-11) */
.mix-stereo { display: flex; flex-direction: column; gap: 6px; }
.mix-pan-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
.mix-st-label, .mix-w-name { font: 600 11px var(--sans, Inter), sans-serif; color: #A8A8B3; }
.mix-pan { position: relative; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.025); }
.mix-pan-c { position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1px; background: rgba(242,242,245,0.35); }
.mix-pan-l, .mix-pan-r { position: absolute; top: 50%; transform: translateY(-50%); font: 500 10px var(--mono); color: #8E8E99; }
.mix-pan-l { left: 6px; } .mix-pan-r { right: 6px; }
.mix-pan-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  border: 1px solid #1C1C20; }
.mix-width { display: flex; flex-direction: column; gap: 4px; }
.mix-w { display: grid; grid-template-columns: 76px minmax(0, 1fr) 54px; align-items: center; gap: 8px; }
.mix-w-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.025); }
.mix-w-corr { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(255,255,255,0.09); }
.mix-w-mark { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #FF3D6E; }
.mix-w-state { font: 600 11px var(--sans, Inter), sans-serif; text-align: right; }
.mix-w.narrow .mix-w-state { color: #F5C451; }
.mix-w.narrow .mix-w-mark { background: #F5C451; } .mix-w.wide .mix-w-mark { background: #FF7A7A; }
.mix-w.wide .mix-w-state { color: #FF7A7A; }

/* the tone of the parts and the bus, folded: one line until opened */
.mix-tone { padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.mix-tone-head { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.mix-tone-head::-webkit-details-marker { display: none; }
.mix-tone-head .ic { width: 12px; height: 12px; color: #8E8E99; transition: transform 0.15s; }
.mix-tone[open] .mix-tone-head .ic { transform: rotate(90deg); }
.mix-tone-head b { font-size: 12px; font-weight: 600; color: #A8A8B3; }
.mix-tone-n { font-size: 11px; color: #8E8E99; }
.mix-tone-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
/* a row: the part's name, its filters under it (they wrap, the window never widens), "Flat" at the right */
.mix-tone-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name flat" "vals flat";
  column-gap: 10px; row-gap: 2px; align-items: center; }
.mix-tone-name { grid-area: name; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #D6D6DD;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-tone-name i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.mix-tone-vals { grid-area: vals; min-width: 0; padding-left: 16px; font-size: 12px; line-height: 1.45; color: #8E8E99;
  white-space: normal; overflow-wrap: anywhere; }
.mix-tone-row button { grid-area: flat; min-height: 0; background: transparent; border: 0; color: #FF9DB5; padding: 2px 6px; font-size: 12px; }
@media (max-width: 760px) {
  .mix-tone-rows { gap: 4px; }
  .mix-tone-row button { min-height: 44px; padding: 0 12px; }
}
@media (max-width: 760px) {
  /* the free space left of «Mix balance»: the SonifAi word, which plays while the studio works, as in the computer's
     header (logo.js; owner, 2026-11-17) */
  .tracks-head { display: flex !important; justify-content: space-between; padding: 0 0 10px; }
  .tracks-head > span { display: none; }
  .tracks-head .tl-logo { display: block; height: 30px; aspect-ratio: 218 / 67; flex: none; margin-left: 14px; }  /* off the panel's edge, as the button is off the right one */
  .tracks-head .tl-logo svg { display: block; height: 100%; width: 100%; }
  .mix-open .lbl-long { display: none; } .mix-open .lbl-short { display: inline; }  /* «Balance»: the row also holds the logo */
  /* Regenerate, hidden with the transport's other buttons on a phone, sits here beside Balance (owner, 2026-11-17) */
  .tracks-head .m-regen.mix-open { display: flex; margin-left: auto; margin-right: 8px; }
  .mix-open { min-height: 44px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
  .mix-scrim:not(.hidden) { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.5); }
  .mix-win { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 720px; border-radius: 18px 18px 0 0;
    border-bottom: 0; padding: 8px 16px 20px; }
  .mix-grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); margin: 0 auto; }
  .mix-close { width: 44px; height: 44px; }
  .mix-plot { height: 96px; } .mix-corr, .mix-med { width: 30px; margin-left: -15px; } .mix-seg { width: 12px; margin-left: -6px; }
  .mix-name b { font-size: 10px; white-space: normal; }
  .mix-hint button { min-height: 44px; }
  .mix-acts { flex-direction: column-reverse; width: 100%; }
  .mix-undo, .mix-auto { width: 100%; min-height: 44px; justify-content: center; }
}

/* The track's title, explanation, chips and buttons live in the header (owner, 2026-11-08: "для экономии высоты
   заголовок отдать в заголовок прямо выше"), and the project fits the screen's height: the stems and the panels
   below scroll inside themselves ("держим все в пределах высоты экрана"). Phones keep their own layout. */
.top .t-head { display: none; }
@media (min-width: 761px) {
  body.has-project .top .t-head { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: nowrap; margin: 0 8px; }
  /* the brand takes the sidebar's width, so the track's title starts over the project, never left of the
     sidebar's edge (owner, 2026-11-08); the title lines up with the panels under it (main's 20px padding) */
  body.has-project .top .brand { flex: 0 0 auto; width: calc(260px - 20px); box-sizing: border-box; }
  body.has-project .top .t-head { margin: 0 8px 0 8px; }
  .t-head .t-main { position: relative; min-width: 0; flex: 1 1 auto; }
  .t-head #p-title { margin: 0; font-size: 18px; letter-spacing: -0.3px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t-head #p-expl { margin: 2px 0 0; max-width: none; font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
  .t-head .credits { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: min(640px, 70vw); max-height: 50vh; overflow: auto;
    background: rgba(28,28,32,0.98); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
  .t-head .head-side { flex: none; flex-direction: row; align-items: center; gap: 10px; }
  .t-head .ids { flex-wrap: nowrap; }
  .t-head .actions { flex-wrap: nowrap; }
  .t-head .actions button, .t-head .actions .button { padding: 7px 12px; font-size: 13px; }
  body.has-project:not(.show-list) .layout { height: calc(100vh - var(--top-h, 64px)); min-height: 0; }
  body.has-project:not(.show-list) main { height: 100%; min-height: 0; overflow: hidden; box-sizing: border-box; }
  body.has-project #project { flex: 1 1 auto; min-height: 0; }
  body.has-project .tl { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; }
  body.has-project .timeline { flex: 1 1 auto; min-height: 0; overflow: auto; }
  body.has-project .revisions { max-height: none; overflow: visible; }
}
@media (min-width: 761px) and (max-width: 1400px) {
  /* narrower screens: the buttons show their icons only (their names stay as tooltips), the chips stay */
  .t-head .actions span { display: none; }
  .t-head .actions button, .t-head .actions .button { padding: 7px 9px; }
}

/* one view switch, CREDITS in the transport (its list in a window), LUFS with the track's chips, the language in the
   profile menu (owner, 2026-11-08: "не очень аккуратно обошёлся с местом") */
.view-toggle, .credits-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; min-height: 0; font-size: 12px; font-weight: 500;
  background: var(--fill); color: var(--text); border-radius: 8px; }
.view-toggle .ic, .credits-btn .ic { width: 13px; height: 13px; }
.mchip.lufs { gap: 5px; cursor: help; font: 500 11.5px var(--mono); color: var(--muted); }
.mchip.lufs .ic { width: 12px; height: 12px; }
.t-head .ids { display: flex; align-items: center; gap: 6px; }
.who-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
#credits .credits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.cr-about { margin: 0 0 4px; font-size: 13px; }

/* One vertical scrollbar look everywhere: thin, the same thumb (owner, 2026-11-08: "прокрутка вертикальная едина везде") */
* { scrollbar-width: thin; scrollbar-color: var(--fill2) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--fill2); border-radius: 3px; }
/* the sections and the time ruler stay on top while the stems scroll under them ("это надо закреплять при прокрутке") */
.tl-inner > .rulers { position: sticky; top: 0; z-index: 4; background: var(--panel); }
.playhead { z-index: 5; }
@media (min-width: 761px) {
  /* Revisions: its title stays, the list scrolls under it; Change in words keeps its title on top too */
}
/* the account: initials in a circle; the name and e-mail open with the menu */
.who-name { width: 32px; height: 32px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,61,110,0.18); color: #FF9DB5; font: 600 12px var(--sans, Inter), sans-serif; letter-spacing: .3px; }
.who-name:hover { background: rgba(255,61,110,0.28); color: #F2F2F5; }
.who-full { display: block; padding: 8px 10px 0; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* A revision in two lines (owner, 2026-11-08: the note broke word by word beside fixed numbers): its note across the
   row, under it the cost and the time as chips; the words icon and Restore on the right */
.revisions li { align-items: center; }
.revisions .rev-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.revisions .rev-note { flex: none; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.revisions .rev-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.revisions .rev-meta .rev-cost, .revisions .rev-meta .rev-when { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.05); font: 11px var(--mono); color: var(--muted2); white-space: nowrap; }
.revisions .rev-id { flex: none; align-self: flex-start; padding-top: 1px; }
.revisions .rev-prompts, .revisions .back { flex: none; }

/* The project's lower part (owner, 2026-11-08, design v36, "да"): Change in words is one line under the stems — its
   title, the field, the button — with the job and the variants under it when there are some; Revisions is a drawer on
   the right, the whole height under the header, opened from the transport. Phones keep their tabs. */
@media (min-width: 761px) {
  body.has-project .grid2 { display: block; flex: 0 0 auto; }
  body.has-project .tab-change { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: 10px 10px 10px 14px; border-radius: 14px; max-height: 45vh; overflow: auto; }
  .tab-change > h3 { grid-column: 1; margin: 0; font-size: 13px; white-space: nowrap; cursor: help; }
  .tab-change > .hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tab-change > #edit-text { grid-column: 2; height: 40px; min-height: 40px; max-height: 120px; resize: none; box-sizing: border-box; padding: 9px 12px; }
  .tab-change > .right { grid-column: 3; }
  .tab-change > .right #edit-btn { height: 40px; white-space: nowrap; }
  .tab-change > #edit-job, .tab-change > #candidates { grid-column: 1 / -1; }
  .tab-change > #candidates:empty { display: none; }
  body.has-project .tab-revisions { position: fixed; top: var(--top-h, 64px); right: 0; bottom: 0; z-index: 30; width: 400px; max-width: 92vw;
    margin: 0; border-radius: 0; border-width: 0 0 0 1px; background: var(--panel2); box-shadow: -18px 0 48px rgba(0,0,0,0.45);
    display: flex; flex-direction: column; padding: 14px 10px 12px; transform: translateX(105%); transition: transform .18s ease; visibility: hidden; }
  body.has-project.rev-open .tab-revisions { transform: none; visibility: visible; }
  .tab-revisions > .rev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 8px; }
  .tab-revisions > .rev-head h3 { margin: 0; }
  .tab-revisions #revisions { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  .rev-btn .mono { color: #FF9DB5; }
  .rev-btn[aria-pressed="true"] { background: var(--accent-soft); }
}
@media (max-width: 760px) { .rev-head .pk-x, .transport .rev-btn { display: none; } }
/* the track's facts behind one info icon (owner: "всё это в иконку инфо, и будет счастье") */
.info-wrap { position: relative; flex: none; }
.info-btn { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; background: var(--fill); color: var(--text2); }
.info-btn .ic { width: 16px; height: 16px; }
.info-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 300px; box-sizing: border-box; background: #1C1C20;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; }
.info-row > :first-child { color: var(--muted2); }
.info-row > :last-child { font: 12.5px var(--mono); color: var(--text); text-align: right; overflow-wrap: anywhere; }
.info-row.tok > :last-child { color: #FF9DB5; cursor: help; }
.info-pop > #p-ids { display: contents; }
/* AI load speedometer (owner, 2026-11-09: "как спидометр, зелёный-красный, реальная стрелочка"), canvas v38 */
.load-wrap { position: relative; flex: none; }
.load-btn, .load-btn:hover { height: 32px; min-height: 0; padding: 0 8px; border-radius: 16px; justify-content: center; background: transparent; }  /* the needle alone, no pill (owner 2026-11-16) */
.load-needle { transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.load-btn.static { cursor: default; pointer-events: none; }  /* a person sees the needle only (owner, 2026-11-11) */
.load-btn.nodata .load-needle path { stroke: var(--muted2); }
.load-word { font-weight: 600; font-size: 13px; }
.load-word.free { color: #3DDC84; } .load-word.busy { color: #F5C542; } .load-word.full { color: #FF5A5F; } .load-word.nodata { color: var(--muted2); }
.load-note { font-size: 12px; color: var(--muted2); }
/* Export sits right of the Change-in-words button; New track takes its place in the header (owner, 2026-11-09) */
.tab-change > .right { display: flex; align-items: center; gap: 8px; }
.tab-change > .right #export { height: 40px; box-sizing: border-box; white-space: nowrap; padding: 0 14px; font-size: 13px; }
@media (max-width: 760px) { #head-new, .tab-change > .right #export { display: none; } }
/* owner, 2026-11-09: the phrase "Change in words" is the button itself (no label left of the field); New track lives
   only in the header, in the accent colour, with its name on every desktop width */
@media (min-width: 761px) {
  body.has-project .tab-change { grid-template-columns: minmax(0, 1fr) auto; }
  .tab-change > h3 { display: none; }
  .tab-change > #edit-text { grid-column: 1; }
  .tab-change > .right { grid-column: 2; }
  #new-btn { display: none; }
  .t-head .actions #head-new span { display: inline; }
  .t-head .actions #head-new { padding: 7px 14px; }
}
/* The freedom sliders as tick scales (owner's reference, 2026-11-09): a card per slider, 11 ticks, a pill thumb, the
   value on the right (orange at the maximum), the zone's name over the thumb while it is touched, a reset off the norm */
.fr-row { grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 64px; background: var(--panel2); border-radius: 14px; padding: 12px 16px; position: relative; }
.fr-label { color: var(--text); font-size: 14px; }
.fr-track { position: relative; height: 36px; display: flex; align-items: center; }
.fr-track::before { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; bottom: 9px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 10%); background-size: calc(100% + 2px) 100%; }
.fr-row input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 36px; margin: 0; position: relative; z-index: 1; cursor: pointer; }
.fr-row input[type=range]::-webkit-slider-runnable-track { height: 36px; background: transparent; }
.fr-row input[type=range]::-moz-range-track { height: 36px; background: transparent; }
.fr-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 34px; margin-top: 1px; border-radius: 7px; background: var(--accent); border: 0; box-shadow: 0 0 0 3px rgba(255,61,110,0.18); }
.fr-row input[type=range]::-moz-range-thumb { width: 14px; height: 34px; border-radius: 7px; background: var(--accent); border: 0; }
.fr-row input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255,61,110,0.5); }
.fr-v { font: 500 14px var(--mono); color: var(--text); }
.fr-v.max { color: #FF7A45; }
.fr-reset { position: absolute; left: 132px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; background: transparent; color: var(--muted2); }
.fr-reset .ic { width: 15px; height: 15px; }
.fr-reset[hidden] { display: none; }
.fr-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-zone { position: absolute; bottom: calc(100% - 4px); transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap;
  background: #26262B; color: var(--text); font-size: 13px; padding: 6px 12px; border-radius: 9px; box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  opacity: 0; transition: opacity .12s; }
.fr-track:hover .fr-zone, .fr-track:focus-within .fr-zone { opacity: 1; }
@media (max-width: 760px) { .fr-row { grid-template-columns: minmax(0, 1fr) 64px; } .fr-track { grid-column: 1 / -1; grid-row: 2; } .fr-reset { left: auto; right: 84px; top: 26px; } }
/* New track built like the stems screen (owner, 2026-11-09: "экран генерации выглядит недоделанным — по образу
   стемов, с таким же заголовком"; canvas v39): the title in the header, one panel with a bar on top (length,
   melody by voice), the words on the left, parts and sliders on the right, a command row at the bottom; the
   screen fits the window and its columns scroll inside themselves. Phones keep their own order: the wrappers
   dissolve there (display: contents) and each field keeps its old place. */
@media (min-width: 761px) {
  body.creating .top .t-head { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap; margin: 0 8px; }
  body.creating .top .brand { flex: 0 0 auto; width: calc(260px - 20px); box-sizing: border-box; }
  body.creating .t-head .info-wrap, body.creating .t-head .actions { display: none; }
  body.creating:not(.show-list) .layout { height: calc(100vh - var(--top-h, 64px)); min-height: 0; }
  body.creating:not(.show-list) main { height: 100%; min-height: 0; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }
  body.creating #create { flex: 1 1 auto; min-height: 0; }
  .create-panel { flex: 1 1 auto; min-height: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; }
  .cr-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .cr-bar .field { flex-direction: row !important; align-items: center; gap: 10px !important; }
  .cr-bar .flabel { margin: 0; white-space: nowrap; }
  .cr-bar .fhint { display: none; }
  .cr-bar .len-row select { padding: 6px 10px; font-size: 13px; }
  .cr-bar .voice-acts { display: flex; gap: 8px; }
  .cr-bar .voice-acts button { padding: 6px 11px; min-height: 0; font-size: 12.5px; }
  .cr-bar .voice-note { display: none; }
  .cr-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
  .cr-body .create-text { min-height: 0; overflow: auto; padding: 14px; border-right: 1px solid var(--line); background: none; border-radius: 0; display: flex; flex-direction: column; gap: 12px; }
  .cr-body .create-text > .field:nth-child(2) { flex: 1 1 auto; min-height: 160px; }
  .cr-body .create-text > .field:nth-child(2) textarea { flex: 1 1 auto; min-height: 0; resize: none; }
  .voice-more:not(:has(> :not(.hidden))) { display: none; }
  .create-side { min-height: 0; display: flex; flex-direction: column; }
  .create-side .create-instr { flex: 1 1 auto; min-height: 0; overflow: auto; background: none; border: 0; border-radius: 0; padding: 10px 6px; }
  .create-side .ci-head h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted2); margin: 0; }
  .create-side .ci-head p { margin: 2px 0 0; }
  .create-side .freedom { flex: none; padding: 12px 14px 14px; border-top: 1px solid var(--line); gap: 6px !important; }
  .create-side .fr-row { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 56px; padding: 6px 14px; border-radius: 12px; }
  .create-side .fr-reset { left: 104px; }
  .create-side .fr-take { display: none; }
  .cr-cmd { flex: none; display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 10px 10px 10px 14px; }
  .cr-cmd .ack { flex: 1 1 auto; min-width: 0; background: none !important; border: 0 !important; padding: 0 !important; font-size: 13px; }
  .cr-cmd .create-go-row { flex: none; }
  .cr-cmd .create-go { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
  body.creating #create > .job { flex: none; }
}
@media (max-width: 760px) {
  .create-panel, .cr-bar, .cr-body, .create-side, .voice-more, .cr-cmd { display: contents; }
  .create-panel > .cr-body > .create-text { display: contents; }
  #create { display: flex; flex-direction: column; }
  #create .create-text > .field:nth-child(1) { order: 1; } #create .create-text > .field:nth-child(2) { order: 2; }
  #create .cr-bar > .field.voice { order: 3; } #create .voice-more { order: 3; }
  #create .cr-bar > .field:not(.voice) { order: 4; } #create .freedom { order: 5; } #create .create-instr { order: 6; }
  #create > .job { order: 8; } #create .ack { order: 7; } #create .create-go-row { order: 9; }
}
@media (min-width: 761px) { .create-side .freedom .fhint { display: none; } }
/* New track at narrower windows (owner, 2026-11-09, "не круто" at ~900 px: a fixed 440 px column left the words 154 px):
   the columns share the width; under 1150 px the parts and sliders go under the words and the panel scrolls */
@media (min-width: 761px) {
  .cr-body { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .create-panel { overflow: auto; }
  .cr-body { flex: none; grid-template-columns: minmax(0, 1fr); }
  .cr-body .create-text { overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .cr-body .create-text > .field:nth-child(2) textarea { min-height: 220px; }
  .create-side .create-instr { overflow: visible; }
}
/* "i" in the transport, where CREDITS was (owner, 2026-11-09): one window with the track's facts and its
   credits folded under them */
.info-t { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--text2); }
.info-t .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .transport .info-t { display: none; } }
#credits .info-rows { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 12px; }
#credits #p-ids { display: contents; }
.cr-details { border-top: 1px solid var(--line); padding-top: 10px; }
.cr-details > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 2px; }
.cr-details > summary::-webkit-details-marker { display: none; }
.cr-details > summary .ic { width: 14px; height: 14px; color: var(--text2); }
.cr-details > summary .mono { color: var(--muted2); font-weight: 500; }
.cr-details > summary .chev { margin-left: auto; transition: transform .15s; }
.cr-details[open] > summary .chev { transform: rotate(180deg); }
.cr-details > .cr-about { margin: 8px 2px; }
/* the reset follows the slider's name, whatever its length or language (owner, 2026-11-09: it sat on "Style influence") */
.fr-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.fr-name .fr-label { min-width: 0; }
.fr-row .fr-reset, .create-side .fr-reset { position: static; transform: none; left: auto; right: auto; top: auto; flex: none; }
.fr-name .fr-label { white-space: nowrap; }
/* the slider keeps its room whatever the width of the side column (owner, 2026-11-09: in the 360-440 px column a 172 px
   name and the value left it 52-132 px): one line while the block holds a slider of 200 px, else the name and the
   value over a slider across the whole row; decided by the block's own width, not the window's */
.create-side .freedom { container-type: inline-size; }
@media (min-width: 761px) { .create-side .fr-row { grid-template-columns: 172px minmax(0, 1fr) 56px; } }
@container (max-width: 480px) {
  .create-side .fr-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .create-side .fr-track { grid-column: 1 / -1; grid-row: 2; }
}
.info-row.worst > :first-child, .info-row.worst > :last-child { color: #F5C542; }

/* instruments people upload (uploads.py): the Mine tab of the picker, the mark on one's own rows, the upload form */
.pk-yours { white-space: nowrap; font-size: 10.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 2px 6px; }
.pk-row.mine { box-shadow: inset 3px 0 0 var(--accent); }
.pk-mine { padding: 12px 14px; margin: 0 0 8px; border-radius: 12px; background: rgba(255,61,110,0.08); border: 1px solid rgba(255,61,110,0.25); }
.pk-mine-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pk-mine-top .up-open { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.up-reward, .up-bonus { font-size: 12px; margin-top: 3px; }
.up-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.up-item { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.up-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-what { font-size: 12px; margin-top: 2px; }
.up-problems { margin: 4px 0 0 16px; padding: 0; font-size: 12px; color: #FF8A8A; }
.up-status.up-admitted { color: #7FE0A0; } .up-status.up-refused, .up-status.up-rejected { color: #FF8A8A; }
.up-card { width: 640px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; }
.up-fields { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.up-field { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; margin: 0; font-size: 13px; }
.up-field legend { padding: 0; margin-bottom: 5px; }
.up-field input:not([type=checkbox]):not([type=radio]), .up-field select, .up-field textarea { width: 100%; min-width: 0; background: #0E0E11; color: var(--text);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 11px; font: inherit; }
.up-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; line-height: 1.4; }
.up-check input { margin-top: 3px; flex: none; }
.up-bar { position: relative; height: 4px; border-radius: 2px; }

/* admin: the review of uploaded instruments */
.admin .upr-reward { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0 14px; }
.admin .upr-reward label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; width: 200px; }
.admin .upr-item { padding: 14px; margin-bottom: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.admin .upr-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.admin .upr-facts { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 10px 0; font-size: 13px; }
.admin .upr-facts dt { color: var(--faint); } .admin .upr-facts dd { margin: 0; white-space: pre-wrap; }
.admin .upr-prog { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; }
.admin .upr-sentence { width: 100%; margin: 8px 0; background: #0E0E11; color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 11px; font: inherit; }
.admin .upr-btns { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) { .admin .upr-facts { grid-template-columns: 1fr; } .admin .upr-reward label { width: 100%; } }

/* reports on sounds (reports.py): the flag in each picker row, the report window, the notifications bell */
.pk-flag { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
  justify-content: center; color: var(--muted2); }
.pk-flag .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .pk-flag { width: 40px; height: 44px; } }  /* as its neighbours on a phone */
.rp-card { width: 560px; }
.note-wrap { position: relative; }
.note-btn { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
.note-btn .ic { width: 18px; height: 18px; }
.note-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #DC2F2F; color: #FFFFFF; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
.note-pop { right: 0; left: auto; width: 320px; max-height: 420px; overflow-y: auto; }
.note-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.note-list li { font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.note-list li.new { background: var(--accent-soft); }
.note-list time { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }

/* the community (/community, /community/<post>, /u/<author>; community.js) */
.cm-nav { display: flex; align-items: center; gap: 10px; }
.cm-navlink { color: var(--text2); text-decoration: none; font-size: 13px; }
.cm-navlink:hover { color: var(--text); }
.cm { max-width: 820px; margin: 0 auto; padding: 24px 16px 80px; }
.cm a { color: var(--accent); }
.cm a.button { color: var(--text); } .cm a.button.primary { color: var(--accent-ink); }  /* a link drawn as a button keeps the button's ink */
.cm h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.4px; line-height: 1.2; }
.cm h2 { font-size: 18px; margin: 24px 0 10px; }
.cm-head { margin-bottom: 14px; }
.cm-kinds { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 14px; }
.cm-kinds .button { background: transparent; color: var(--muted); min-height: 30px; padding: 5px 12px; font-size: 13px; }
.cm-kinds .button.on { background: var(--fill2); color: var(--text); }
.cm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; }
.cm-posts, .cm-tracks, .cm-list-plain { list-style: none; margin: 0; padding: 0; }
.cm-post-title { margin: 6px 0 4px; font-size: 17px; }
.cm-post-title a { color: var(--text); text-decoration: none; }
.cm-post-title a:hover { color: var(--accent); }
.cm-excerpt { margin: 0 0 8px; color: var(--text2); white-space: pre-line; overflow-wrap: anywhere; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); }
.cm-meta time { color: var(--faint); }
.cm-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cm-who a { color: var(--text); text-decoration: none; } .cm-who a:hover { color: var(--accent); }
.cm-who b { color: var(--text); font-weight: 600; }
.cm-ai b { color: var(--accent); }
.cm-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--text2); white-space: nowrap; }
.cm-team { border-color: rgba(255,61,110,0.5); color: var(--accent); }
.cm-kind-question { border-color: rgba(94,194,183,0.5); color: var(--ok); }
.cm-kind-complaint { border-color: rgba(255,107,129,0.5); color: var(--danger); }
.cm-kind-idea { border-color: rgba(255,159,90,0.5); color: var(--warn); }
.cm-reg { white-space: nowrap; }
.cm-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; }
.cm-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.cm-tr { color: var(--faint); font-size: 12px; }
.cm-post .cm-body-text { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.cm-like.on { background: rgba(255,107,129,0.16); color: var(--danger); }
.cm-like.on .ic { fill: currentColor; }
.cm-status { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--text2); }
.cm-st-pending { background: var(--accent-soft); color: var(--accent); }
.cm-st-rejected { background: rgba(255,107,129,0.14); color: var(--danger); }
.cm-st-review, .cm-st-private { background: rgba(255,159,90,0.14); color: var(--warn); }
.cm-why { margin: 6px 0; font-size: 13px; color: var(--text2); border-left: 2px solid var(--danger); padding-left: 10px; }
.cm-comments h2 { display: flex; gap: 8px; align-items: baseline; }
.cm-comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-comment .cm-text { margin-top: 4px; overflow-wrap: anywhere; }
.cm-c-ai { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; border-bottom: 0; margin: 6px 0; }
.cm-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cm-form label, .cm-mypage label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cm input, .cm textarea, .cm select { font: inherit; font-size: 14px; color: var(--text); background: var(--lane); border: 1px solid var(--line2); border-radius: 9px; padding: 9px 11px; width: 100%; }
.cm textarea { resize: vertical; }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end; }
.cm-rules { font-size: 12.5px; margin: 0; }
.cm-write h2 { margin-top: 0; }
.cm-mine { margin-top: 14px; }
.cm-mine h3 { font-size: 14px; margin: 0 0 6px; }
.cm-mine-item { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cm-mypage { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: block; }
.cm-mypage summary { cursor: pointer; font-weight: 600; }
.cm-mypage[open] { display: flex; flex-direction: column; gap: 10px; }
.cm-pages { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.cm-author h1 { margin-bottom: 8px; }
.cm-about { margin: 10px 0 0; white-space: pre-line; }
.cm-track-row { display: flex; align-items: center; gap: 10px; }
.cm-track-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-track.now { border-color: var(--accent); }
.cm-progress { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--fill); cursor: pointer; overflow: hidden; }
.cm-progress-in { height: 100%; width: 0; background: var(--accent); }
.cm-track-comments { margin-top: 10px; }
.cm-credits { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cm-credits ul { margin: 6px 0 0; padding-left: 18px; }
.cm-orig.on { color: var(--accent); }
.cm-replyto { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cm-replying { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cm-replying.hidden { display: none; }
.cm-reply { min-height: 28px; padding: 4px 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) {
  .top { padding: 10px 16px; }
  .cm-nav .cm-navlink { display: none; }
  .cm h1 { font-size: 22px; }
  .cm-card { padding: 12px; }
}
.cm-head-link { position: relative; background: transparent; color: var(--text2); }
.cm-head-link.has-new::after { content: ""; position: absolute; top: 6px; left: 20px; width: 8px; height: 8px; border-radius: 50%;
  background: #DC2F2F; box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 760px) { .cm-head-link span { display: none; } }

/* the screen of the address (SonifAi URL standard): the server sets <body data-view>, so before any script only that
   screen is drawn; studio.js keeps data-view with every change of screen */
body[data-view="track"] #create, body[data-view="track"] #album,
body[data-view="create"] #project, body[data-view="create"] #album,
body[data-view="library"] #project, body[data-view="library"] #album,
body[data-view="album"] #create, body[data-view="album"] #project { display: none !important; }

/* blocks of a part (out/blocks_mockup.html) */
.selbox { position: absolute; top: 4px; bottom: 4px; z-index: 2; border: 2px solid var(--accent); background: rgba(255,61,110,0.22); border-radius: 8px; cursor: ew-resize; }
.sel-h { position: absolute; top: 50%; width: 8px; height: 26px; margin-top: -13px; background: var(--accent); border-radius: 3px; cursor: ew-resize; }
.sel-h.a { left: -5px; } .sel-h.b { right: -5px; }
.sel-h { touch-action: none; }  /* a finger on a handle moves the edge, not the page */
@media (max-width: 760px) { .lane-body { overflow: visible; } .selbox { top: 1px; bottom: 1px; } .sel-h { width: 14px; height: 30px; margin-top: -15px; } .sel-h.a { left: -8px; } .sel-h.b { right: -8px; } }
.blk-bar, .blk-curve, .fx-win { position: fixed; z-index: 70; background: #26262F; border: 1px solid #3A3A46; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.blk-bar { display: flex; gap: 6px; padding: 6px; }
.blk-bar button { display: flex; align-items: center; gap: 6px; background: #30303B; border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; color: var(--text); }
.blk-bar button:hover { background: #3A3A46; }
.blk-bar button.danger { color: #FCA5A5; }
.blk-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.blk-curve { display: grid; grid-template-columns: repeat(4, 104px); gap: 8px; padding: 10px; }
.blk-curve .segs { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.blk-curve .segs button, .fx-beats button { background: #30303B; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--text2); }
.blk-curve .segs button.on, .fx-beats button.on { background: var(--accent); color: var(--accent-ink); }
.blk-curve .curve { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: #30303B; border-radius: 8px; padding: 6px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--text2); }
.blk-curve .curve:hover:not(:disabled) { outline: 2px solid var(--accent); color: var(--text); }
.blk-curve .curve:disabled { opacity: 0.35; cursor: default; }
.blk-curve .curve svg { width: 80px; height: 44px; display: block; margin: 0 auto 4px; }
.blk-curve .curve path { fill: none; stroke: var(--accent); stroke-width: 3; }
/* the part's effects: an icon (owner 2026-11-16 «иконку может быть? … делай»), a square of the sound picker's fill and
   height next to it, the same on a phone (36 px there stood taller than the picker and ran into its name: «треш»); the word stays in the title and for screen readers */
.fx-open { width: 24px; height: 20px; min-height: 0; padding: 0; justify-content: center; border-radius: 6px; background: var(--fill); color: var(--muted); }
.fx-open:hover { background: var(--fill2); color: var(--text); }
.fx-open .ic { width: 13px; height: 13px; }
.fx-win { width: 380px; padding: 12px; }  /* the lengths of the echo and «no echo» on one row, «left 15 %» in its column */
.fx-win h3 { margin: 0 0 8px; font-size: 14px; }
.fx-row { display: grid; grid-template-columns: 90px 1fr 80px; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; color: var(--text2); }
.fx-row input { width: 100%; }
.fx-row input:disabled { opacity: 0.35; }
.fx-row output { text-align: right; white-space: nowrap; }
.fx-beats { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 98px; }  /* under the sliders: the echo's length */
.fx-beats button { min-height: 28px; padding: 4px 8px; }
.fx-beats .fx-beat-off { margin-left: auto; background: transparent; color: var(--muted); }  /* not a length: apart */
.fx-beats .fx-beat-off.on { background: var(--accent); color: var(--accent-ink); }
.fx-note { font-size: 11px; color: var(--muted); margin: 8px 0; }
.fx-win .right { display: flex; justify-content: flex-end; gap: 8px; }
/* the effects icon shares the instrument's cell, at its end (both grids: computer and phone) */
.lane .fx-open { grid-area: instr; justify-self: end; align-self: center; } .lane .lane-name .instr { max-width: calc(100% - 32px); }
@media (max-width: 760px) {
  .blk-curve { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(100vw - 16px); }
  .blk-bar { flex-wrap: wrap; max-width: calc(100vw - 16px); } .blk-bar button { padding: 6px 8px; font-size: 12px; }
  .fx-win { max-width: calc(100vw - 16px); }
}

/* the ask for browser notifications at the first track (studio.js, pushes) */
.push-ask { justify-content: space-between; flex-wrap: wrap; }
.push-ask-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.push-ask-text b { font-weight: 600; }
.push-ask-text span { color: var(--muted); font-size: 12px; }
.who-push { padding: 6px 10px; cursor: pointer; }
.who-push input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: none; }

/* Plan and subscription (/account, account.js): the plan, when it renews, and a plain «Cancel subscription» */
.account { max-width: 680px; margin: 0 auto; padding: 32px 16px 60px; }
.account h1 { margin: 0 0 20px; font-size: 26px; letter-spacing: -0.4px; }
.acc-card { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 22px; }
.acc-card > .muted { margin: 0; }
.acc-plan { margin: 4px 0 6px; font-size: 30px; letter-spacing: -0.5px; }
.acc-status { margin: 0 0 18px; color: var(--text2); }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-cancel { background: transparent; border: 1px solid var(--danger); color: var(--danger); font-weight: 600; }
.acc-cancel:hover { background: rgba(255,107,129,0.12); }
.acc-note { margin: 14px 0 0; font-size: 13px; }
.acc-done { margin: 0 0 14px; color: var(--ok); }
.acc-dialog { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 14px; padding: 22px; max-width: 420px; }
.acc-dialog::backdrop { background: rgba(0,0,0,0.6); }
.acc-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.acc-dialog p { margin: 0 0 18px; color: var(--text2); }

/* the other language: one quiet link (owner 2026-11-16) — in the profile menu of the studio, at the foot elsewhere */
.lang-foot { text-align: center; padding: 28px 16px 40px; }
.lang-foot .lang-other { color: var(--muted2); font-size: 13px; text-decoration: none; }
.lang-foot .lang-other:hover { color: var(--text2); text-decoration: underline; }
.side .lang-foot { justify-content: center; padding: 18px 0 8px; }

/* Training data and the author model (admin: trainfeed.py) */
.admin .tf-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.admin .tf-card { padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.admin .tf-card b { display: block; margin-bottom: 4px; }
.admin .tf-card .tf-stage { font-size: 1.05em; }
.admin .tf-card .tf-detail { margin-top: 6px; white-space: pre-wrap; }
.admin .tf-up { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.admin .tf-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0; }
.admin .tf-bar.small { height: 6px; margin-top: 8px; }
.admin .tf-fill { height: 100%; width: 0; background: var(--accent, #6b8cff); transition: width .3s; }
.admin .tf-live { font-weight: 600; }
