/* "Tape": the look of the hosted songbox (D-44). Studio gear: dark first, one
   signal colour, small mono legends like the labels on a console, big controls
   you can hit in a dim room. Approved by Brett as mockups on 11 Nov 2026
   (docs/mockups/accounts/, #15); this file began as a copy of that folder's
   tape.css and is now the one the app serves.

   Two rules keep the look from tiring in use, which was its stated cost:
   - mono capitals are for LEGENDS only: a field's label, a section's heading,
     a state chip. Anything a person reads as a sentence is the system sans.
   - the signal colour marks the ONE thing to do next on a screen, and the
     record light. Everything else that can be pressed is quiet.

   No inline styles anywhere in web/: the app's Content-Security-Policy forbids
   them, so every bit of spacing a page needs has a class here. */

/* Dark is this look's home, so dark is the default and light is the variant. */
:root {
  --bg: #0e0f11; --panel: #17191c; --well: #0a0b0c; --ink: #f2f3f5; --ink-soft: #8d939b; --line: #2a2d32;
  --signal: #ff5a36; --signal-text: #ff7a5c; --on-signal: #0e0f11;
  --danger: #ff7a5c; --danger-soft: #2c1712; --on-danger: #0e0f11; --warn: #ffc247; --warn-soft: #2b2210; --good: #6ed39a; --good-soft: #12261b;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root {
  --bg: #f3f3f0; --panel: #ffffff; --well: #f7f7f5; --ink: #0e0f11; --ink-soft: #5d636b; --line: #d9d9d4;
  --signal: #ff5a36; --signal-text: #c2330f; --on-signal: #0e0f11;
  --danger: #b92c0b; --danger-soft: #fde9e3; --on-danger: #ffffff; --warn: #7a5600; --warn-soft: #fbf0d2; --good: #17693d; --good-soft: #e3f4ea;
  color-scheme: light;
} }

* { box-sizing: border-box; }
/* The body GROWS with the page: a min-height, never a height. The bar is
   sticky inside the body, so a body one screen tall let the bar scroll away
   once a page was scrolled further than one screen (found in the WebKit
   check, 14 Nov 2026; Chromium does the same). */
html { height: 100%; }
body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--signal-text); text-underline-offset: 3px; }
p { margin: 0 0 10px; }
.soft { color: var(--ink-soft); }
.legend { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------------------------------------------------------------- the two page shapes */

/* A page with one job and nobody signed in: sign in, accept an invite, reset. */
.screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 20px 28px; }
.screen > * { width: 100%; max-width: 380px; }
/* A level meter across the top: twenty segments, the last few unlit. */
.meter { height: 6px; margin: 22px 0 max(7vh, 30px); border-radius: 2px;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(5% - 3px), var(--bg) calc(5% - 3px) 5%),
    linear-gradient(to right, var(--ink-soft) 0 55%, var(--line) 55% 100%); }
.brand { margin-bottom: 22px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.rec { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.lede { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.foot { margin-top: 18px; color: var(--ink-soft); font-size: 0.88rem; }
.foot p { margin: 0 0 8px; }
.foot b { color: var(--ink); font-weight: 600; }

/* A page inside the app, signed in: a bar across the top, then a column. */
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
/* What a page says at its top is scrolled to with room for the bar above it,
   which is sticky and would otherwise sit on top of it. */
[role="alert"], [role="status"] { scroll-margin-top: 80px; }
.bar .wordmark { font-size: 0.95rem; gap: 8px; }
.bar .rec { width: 9px; height: 9px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; padding: 10px 10px; border-radius: 6px; }
.bar nav a[aria-current="page"] { color: var(--ink); background: var(--well); }
.column { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
.column > h1 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 4px; }
.column > .lede { margin: 0 0 22px; }

/* ---------------------------------------------------------------- cards, fields, buttons */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 18px 18px; }
.card + .card, .card + .group, .group + .card { margin-top: 16px; }
/* A sentence above the first field needs air before the legend under it. */
.card > p { margin-bottom: 14px; }
.card > p:last-child { margin-bottom: 0; }
.card > h1, .card > h2, .group > h2 { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; }
.group { margin-top: 26px; }
.group > h2 { margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.group > h2 .n { color: var(--ink); }

.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { display: block; margin-top: 6px; font-size: 0.84rem; color: var(--ink-soft); }
.field.is-bad .hint { color: var(--danger); }
.well { position: relative; display: block; }
input { width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
input[readonly] { color: var(--ink-soft); }
.field.is-bad input { border-color: var(--danger); }
/* iPhone Safari draws a native date box with its padding and border OUTSIDE
   its width (it ignores border-box), so it ran 30px past the Details sheet and
   the sheet panned sideways; and it centres the date. Without the native
   appearance it sizes like every other box. It still opens the date wheel.
   Found in the WebKit check, 14 Nov 2026. */
input[type="date"] { -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.reveal { position: absolute; right: 6px; top: 8px; height: 36px; padding: 0 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-text); background: none; border: 0; cursor: pointer; }

button { font: inherit; cursor: pointer; }
/* The one thing to do next. At most one per screen. */
.primary { width: 100%; height: 54px; margin-top: 8px; font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-signal); background: var(--signal); border: 0; border-radius: 6px; }
.primary:disabled, .primary.is-off { background: var(--line); color: var(--ink-soft); }
/* Everything else that can be pressed. 44px tall: a thumb, not a cursor. */
.quiet { min-height: 44px; padding: 0 14px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.quiet.danger { color: var(--danger); }
.quiet.wide { width: 100%; }

/* ---------------------------------------------------------------- what the screen says back */

.alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; border: 1px solid currentColor; }
.alert.bad { background: var(--danger-soft); color: var(--danger); }
.alert.wait { background: var(--warn-soft); color: var(--warn); }
.alert.good { background: var(--good-soft); color: var(--good); }

.chip { display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; vertical-align: 2px; }
.chip.live { color: var(--signal-text); border-color: currentColor; }
.chip.done { color: var(--good); border-color: currentColor; }
.chip.dead { text-decoration: line-through; }

/* A one-time link: shown once, so it is the loudest thing on the screen while it is there. */
.once { border: 1px solid var(--signal); border-radius: 8px; padding: 16px; background: color-mix(in srgb, var(--signal) 7%, var(--panel)); margin-bottom: 16px; }
.once h2 { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-text); margin: 0 0 8px; }
.once .link { display: block; font-family: var(--mono); font-size: 0.84rem; line-height: 1.45; overflow-wrap: anywhere; background: var(--well); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0 12px; user-select: all; }
.once .row { display: flex; gap: 8px; flex-wrap: wrap; }
.once .primary { margin-top: 0; flex: 1 1 180px; height: 48px; }

/* ---------------------------------------------------------------- lists: people, invites, sessions */

.rows { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.rows > li { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 12px 14px; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows .who { flex: 1 1 200px; min-width: 0; }
.rows .name { font-weight: 600; overflow-wrap: anywhere; }
.rows .meta { display: block; font-size: 0.86rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.rows .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rows .is-gone .name { color: var(--ink-soft); font-weight: 500; }

.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline .field { flex: 1 1 220px; margin-bottom: 0; }
.inline .primary { width: auto; flex: 0 0 auto; margin-top: 0; height: 52px; padding: 0 20px; }

.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 36px 20px; text-align: center; color: var(--ink-soft); }
.empty strong { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 650; margin-bottom: 6px; }

/* ---------------------------------------------------------------- small things the pages need */

/* `hidden` has to win. Several rules above give an element a display of its
   own (a flex row, a block card), and an author rule beats the browser's
   [hidden] one — the laptop app shipped a "collapsed" section that stayed
   readable for exactly this reason. */
[hidden] { display: none !important; }

.fine { font-size: 0.86rem; color: var(--ink-soft); }
.push { margin-top: 14px; }
.card.push { margin-top: 16px; }
.stack > * + * { margin-top: 8px; }
.inline .quiet { height: 52px; }
.column > .once { margin-top: 0; }
a.wordmark { color: inherit; text-decoration: none; }

/* ================================================================ the workbench

   Projects, folders and the song view (#25). Ported from the mockups Brett
   approved on 13 Nov 2026 (docs/mockups/projects/workbench.css, #21): the
   classes are the same ones, so a mockup and its screen can be compared side
   by side. Three things differ, each because the app is not a picture:
   - a width that moves (the player's position, an upload's progress, your
     space) is a custom property a script sets, not a class per percentage;
   - a row in the "move to" tree is a button, so a keyboard can reach it;
   - the version stack is `.versions`: `.stack` was already a spacing helper.

   Tape's two rules still hold. Mono capitals are for legends only. And the
   signal colour marks the one thing to do next, so most of these screens have
   no .primary at all: in a song there is no single next thing. */

/* ---------------------------------------------------------------- where you are */

/* Under the bar: the way back up. Sans, not mono: a project's name is a name,
   not a legend, and in spaced capitals a long one would not fit a phone. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0 0 14px; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; padding: 8px 0; overflow-wrap: anywhere; }
.crumbs a:first-child::before { content: "‹ "; }
.crumbs .sep { color: var(--line); }

/* A page's title, with what it is and what can be done to it. */
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; }
.head h1 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.head .acts { margin-left: auto; display: flex; gap: 8px; }
.column > .head + .lede { margin: 0 0 20px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tools .quiet { flex: 1 1 140px; }
/* `.push` is declared far above, so a later rule with a margin of its own would win without this. */
.tools.push { margin-top: 14px; }

/* The three-dot button: everything you can do to one row or one item. */
.more { flex: none; width: 44px; min-height: 44px; padding: 0; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 6px; }
.more.is-on { border-color: var(--line); color: var(--ink); background: var(--well); }

/* ---------------------------------------------------------------- lists you walk through */

/* Projects, folders and songs: the whole row is the way in, the dots are what
   else you can do. Folders first, then songs, each alphabetical. */
.rows.nav > li { padding: 0 6px 0 0; gap: 0; flex-wrap: nowrap; }
.rows.nav .go { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; color: inherit; text-decoration: none; }
.rows.nav .who { flex: 1 1 auto; }
.rows.nav .name { display: block; }
.rows.nav .chev { flex: none; color: var(--ink-soft); font-size: 1.2rem; }
.rows.nav .is-picked { background: color-mix(in srgb, var(--signal) 9%, var(--panel)); }

/* What a row is, said with a shape and not a word: a folder's tab, a song's dot. */
.kind { flex: none; width: 26px; height: 20px; position: relative; }
.kind.folder::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 5px; border: 1.5px solid var(--ink-soft); border-bottom: 0; border-radius: 3px 3px 0 0; }
.kind.folder::after { content: ""; position: absolute; left: 0; top: 4px; right: 0; bottom: 0; border: 1.5px solid var(--ink-soft); border-radius: 0 3px 3px 3px; background: var(--panel); }
.kind.song::after { content: ""; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-soft); }
.kind.project::after { content: ""; position: absolute; inset: 1px 2px; border: 1.5px solid var(--ink-soft); border-radius: 3px; background: repeating-linear-gradient(to bottom, transparent 0 4px, var(--line) 4px 5.5px); }

/* A song's status, as a chip. The colours carry meaning nowhere else. */
.chip.s-idea { color: var(--ink-soft); }
.chip.s-demo, .chip.s-tracking, .chip.s-mixing { color: var(--warn); border-color: currentColor; }
.chip.s-done { color: var(--good); border-color: currentColor; }
.chip.s-shelved { text-decoration: line-through; }

/* ---------------------------------------------------------------- space */

/* The level meter from the sign-in screen, put to work: twenty segments of
   your space. It turns amber when you are nearly out. `--used` is set by the
   page, from what the server says. */
.space { margin-top: 26px; }
.space .level { height: 8px; border-radius: 2px; margin: 0 0 8px; --lit: var(--ink-soft);
  background:
    repeating-linear-gradient(to right, transparent 0 calc(5% - 3px), var(--bg) calc(5% - 3px) 5%),
    linear-gradient(to right, var(--lit) 0 var(--used, 0%), var(--line) var(--used, 0%) 100%); }
.space .level.is-low { --lit: var(--warn); }
.space p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.space b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- a sheet: one question, asked over the page */

/* On a phone it rises from the bottom, where a thumb is. On a wide screen it
   is the same panel, centred. Naming, moving and noting all use it. */
/* Fitted to the part of the screen the on-screen keyboard leaves, which
   web/sheets.js measures while a sheet is open (#37): pinned to the page's
   own bottom, a sheet sat under an iPhone's keyboard. Without a keyboard the
   two are the same. */
.scrim { position: fixed; left: 0; right: 0; top: var(--seen-top, 0px); height: var(--seen-height, 100%); z-index: 20; background: color-mix(in srgb, #000 62%, transparent); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 86%; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 18px 16px 22px; }
.sheet > h2 { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; overflow-wrap: anywhere; }
.sheet > p { font-size: 0.95rem; }
.sheet .primary { margin-top: 6px; }
.sheet .quiet.wide { margin-top: 8px; }
.sheet .alert { margin: 0 0 12px; }
/* The button that takes something away: the signal colour's place, in the
   danger colour. Its words are white in the light theme, where the danger
   colour is dark: the signal's dark words on it read at about 3 to 1. */
.sheet .primary.danger { background: var(--danger); color: var(--on-danger); }
@media (min-width: 700px) {
  .scrim { align-items: center; }
  .sheet { border-bottom: 1px solid var(--line); border-radius: 12px; }
}
/* The page behind a sheet does not scroll under it. */
body.is-sheeted { overflow: hidden; }
/* A sheet that is a list of things to do to one row. */
.menu { list-style: none; margin: 0 0 4px; padding: 0; }
.menu button { width: 100%; min-height: 52px; text-align: left; padding: 0 4px; font-size: 1.02rem; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); }
.menu li:first-child button { border-top: 0; }
.menu .fine { display: block; margin-top: -8px; padding: 0 4px 12px; }
.menu button.danger { color: var(--danger); }

/* Where to move something: the project's folders, as a tree, one of them
   picked. Each row is a button. `--in` is how deep it sits, set by the page. */
.tree { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--well); max-height: 46vh; overflow: auto; }
.tree li + li { border-top: 1px solid var(--line); }
.tree button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 calc(12px + var(--in, 0) * 22px); text-align: left; font-size: 1rem; color: var(--ink); background: none; border: 0; }
.tree button > .label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tree button::after { flex: none; margin-left: auto; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; white-space: nowrap; }
.tree .is-picked { background: color-mix(in srgb, var(--signal) 12%, var(--well)); }
.tree .is-picked::after { content: "TO HERE"; font-weight: 600; color: var(--signal-text); }
.tree .is-self { color: var(--ink-soft); }
.tree .is-self::after { content: "IT IS HERE"; }
.tree button:disabled { color: var(--ink-soft); cursor: default; }
.tree .is-inside::after { content: "INSIDE IT"; }

/* ---------------------------------------------------------------- the song: sections */

/* Thirteen sections, every one closed when a song opens (D-20). A row is a
   button as wide as the screen; a section with nothing in it is dimmer but
   still opens, because that is where its add buttons are. */
.secs { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-top: 16px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: none; border: 0; }
.sec-head .tw { flex: none; width: 12px; color: var(--ink-soft); font-size: 0.8rem; }
.sec-head .n { margin-left: auto; color: var(--ink-soft); font-weight: 500; }
.sec.is-empty .sec-head { color: var(--ink-soft); font-weight: 500; }
.sec.is-open > .sec-head { border-bottom: 1px solid var(--line); background: var(--well); }
.sec:first-child > .sec-head { border-radius: 8px 8px 0 0; }
.sec-body { padding: 10px 8px; background: var(--bg); }
.sec:last-child > .sec-body { border-radius: 0 0 8px 8px; }
.sec-body > .fine { margin: 2px 2px 12px; }
.sec-body > .fine.push { margin-top: 12px; }
.sec-body > .alert { margin: 0 0 10px; }
.adders { display: flex; gap: 8px; margin-top: 12px; }
.adders .quiet { flex: 1 1 0; }

/* ---------------------------------------------------------------- the song: one item */

/* An item is one thing with a history: a lyric and its drafts, a mix and its
   remixes. The card shows the current version; the stack is one tap away. */
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 10px; }
.item + .item { margin-top: 10px; }
.item-head { display: flex; align-items: center; gap: 8px; margin: -4px -6px 8px 0; }
.item-title { flex: 1 1 auto; min-width: 0; font-weight: 650; font-size: 1.02rem; overflow-wrap: anywhere; }
.item-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.item-bar .quiet { min-height: 40px; padding: 0 12px; }
.item-bar .state { margin-left: auto; }
.state { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.state.is-unsaved { color: var(--warn); }
.item-bar .primary { width: auto; height: 40px; margin-top: 0; padding: 0 16px; font-size: 0.8rem; }

/* Words. Fixed-width, because a chord sits over a syllable and a tab is a
   picture made of columns: in any other face both fall apart. 16px, never
   less (#57, D-99): under 16px iPhone Safari zooms the page in when the box
   is tapped, and leaves it zoomed. */
.editor { display: block; width: 100%; min-height: 220px; padding: 12px; font: 1rem/1.55 var(--mono); color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; resize: vertical; white-space: pre-wrap; overflow: auto; }
/* Words wrap; a tab or a chord chart must not, or its columns stop lining up.
   So in Chords and the three Tabs sections a long line scrolls sideways. */
.editor.is-grid { white-space: pre; }
textarea:focus-visible, select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }

/* The file under a player, in one line: its name as it was uploaded, its size, when. */
.fileline { margin: 8px 0 0; font-size: 0.84rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.fileline b { color: var(--ink); font-weight: 500; }

/* The transport: songbox's own, not the browser's. A play button a thumb can
   find in a dim room, a track to drag, and the clock. Quiet, not signal: the
   record light is the only thing on the deck that is orange. `--at` is where
   the player is, set by the page. */
.transport { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; }
.play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; position: relative; }
.play::after { content: ""; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.play.is-playing::after { left: 17px; top: 16px; width: 5px; height: 18px; border: 0; border-left: 5px solid var(--ink); border-right: 5px solid var(--ink); }
.play:disabled { border-color: var(--line); cursor: default; }
.play:disabled::after { border-left-color: var(--line); }
/* The track is 44px tall to be grabbed, and 4px tall to look at. `touch-action`
   keeps a sideways drag from scrolling the page instead of the song. */
.track { flex: 1 1 auto; height: 44px; position: relative; touch-action: none; cursor: pointer; border-radius: 6px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: var(--line); }
.track .fill { position: absolute; left: 0; top: 20px; height: 4px; width: var(--at, 0%); border-radius: 2px; background: var(--ink); }
.track .knob { position: absolute; top: 13px; left: var(--at, 0%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); }
.track:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.clock { flex: none; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.clock b { color: var(--ink); font-weight: 600; }

/* A video keeps the browser's own player: full screen and AirPlay come with
   it, and nobody wants ours instead. A picture is shown the same way. */
.picture { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 8px; }
img.picture { aspect-ratio: auto; object-fit: contain; }

/* A file songbox cannot show: it says what it is, and hands it back. */
.opaque { display: flex; align-items: center; gap: 12px; padding: 14px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; }
.opaque .what { flex: 1 1 auto; min-width: 0; }
.opaque .what b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.opaque .what span { font-size: 0.86rem; color: var(--ink-soft); }
a.quiet { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- the versions, and notes */

.versions { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--well); }
.versions > li { padding: 10px 12px 6px; }
.versions > li + li { border-top: 1px solid var(--line); }
.versions .top { display: flex; align-items: center; gap: 8px; }
.versions .when { margin-left: auto; font-size: 0.84rem; color: var(--ink-soft); }
.versions .what { margin: 4px 0 0; font-size: 0.88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.versions .what q { color: var(--ink); quotes: "“" "”"; }
.versions .do { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -8px; }
.linkish { min-height: 40px; padding: 0 8px; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: none; border: 0; }
.linkish.danger { color: var(--danger); }
/* A link that looks like the buttons beside it: Download on a version's row (D-70). */
.versions .do a.linkish { display: inline-flex; align-items: center; text-decoration: none; }
/* The one thing to do about a message, such as "Put it back", inside it. */
.alert .linkish { min-height: 0; padding: 0 0 0 6px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.notes { margin-top: 12px; }
.notes > h3 { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; }
.notes ul { list-style: none; margin: 0; padding: 0; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.note + .note { border-top: 1px solid var(--line); }
/* The time is a button: it takes the player there. */
.at { flex: none; min-width: 52px; height: 36px; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; }
.at.none { color: var(--ink-soft); border-style: dashed; cursor: default; }
.note .say { flex: 1 1 auto; min-width: 0; padding-top: 6px; font-size: 0.95rem; overflow-wrap: anywhere; white-space: pre-wrap; }
/* Which version a note was made against, always said (D-08). A note made
   against an older one is dimmed and says so in words: a new mix moves every
   timing, so it is never quietly re-pointed. */
.note .on { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.note.is-old .say { color: var(--ink-soft); }
.note.is-old .on { color: var(--warn); }
.note .x { flex: none; width: 36px; height: 36px; color: var(--ink-soft); background: none; border: 0; font-size: 1.1rem; }
.notes .quiet { margin-top: 8px; min-height: 40px; }
textarea.plain { display: block; width: 100%; min-height: 96px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; resize: vertical; }
.field.is-bad textarea { border-color: var(--danger); }

/* ---------------------------------------------------------------- uploading */

/* Where a file is asked for. The whole box is the button; on a computer a
   file can be dropped on it too. It says the limits before you choose. */
.drop { display: block; width: 100%; padding: 22px 14px; text-align: center; color: var(--ink); background: var(--well); border: 1.5px dashed var(--line); border-radius: 8px; }
.drop b { display: block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.drop span { font-size: 0.88rem; color: var(--ink-soft); }
.drop.is-over { border-color: var(--signal); }
.drop + .fine { margin: 8px 2px 0; }
/* DAW project's Logic line comes first (D-72): apart from the limits under it, or the two read as one. */
.drop + .fine + .fine { margin: 6px 2px 0; }

/* One file on its way. The bar is the only moving thing on the screen, so it
   is the one place the signal colour is used here. `--done` is how far it has
   got, set by the page. */
.up { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.up + .up, .item + .up, .up + .item, .up + .drop, .item + .drop { margin-top: 10px; }
.up .top { display: flex; align-items: flex-start; gap: 10px; }
.up .name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.up .quiet { min-height: 40px; padding: 0 12px; }
.up .bar-out { height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.up .bar-in { height: 100%; width: var(--done, 0%); border-radius: 4px; background: var(--signal); }
.up .nums { display: flex; gap: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.up .nums b { color: var(--ink); font-weight: 600; margin-left: auto; }
.up.is-waiting .name { color: var(--ink-soft); font-weight: 500; }
.up.is-stopped { border-color: var(--danger); }
.up.is-stopped .bar-in { background: var(--danger); }
.up .alert { margin: 10px 0 0; }
.up .alert + .item-bar, .up .fine + .item-bar { margin-top: 10px; }
.up .fine { margin: 10px 0 0; }
.up .item-bar .primary { flex: 0 0 auto; }

/* ---------------------------------------------------------------- #28: a song's details, parts, tags, the trash, your space */

/* Ported from docs/mockups/projects/workbench-b.css (Mockups B, approved,
   D-53) with the same class names. Where the mockup set a width with a class
   (p-60, k-22), the page sets a custom property through the style object
   (`--done`, `--kept`, `--used`), because the Content-Security-Policy drops a
   style written into markup. */

/* The status chip under a song's title is a button: it opens the six statuses. */
.chip-btn { min-height: 32px; padding: 3px 9px; background: transparent; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; color: var(--ink-soft); }
.chip-btn.s-idea { color: var(--ink-soft); border-color: var(--line); }
.chip-btn.s-demo, .chip-btn.s-tracking, .chip-btn.s-mixing { color: var(--warn); }
.chip-btn.s-done { color: var(--good); }
.chip-btn.s-shelved { color: var(--ink-soft); border-color: var(--line); text-decoration: line-through; }

/* What a song is, at a glance. Read-only; "Details" edits them. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; margin: 14px 0 0; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.facts > div { min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.facts dd.num { font-family: var(--mono); font-size: 0.9rem; }
.facts dd.unset { color: var(--ink-soft); }
.facts .wide { grid-column: 1 / -1; }
.facts .half { grid-column: span 2; }
@media (max-width: 340px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts .half { grid-column: 1 / -1; } }

/* A song's tags: chips you read, and in the tags sheet chips you can take off. */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tag { text-decoration: none; display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 10px; font-size: 0.86rem; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 15px; overflow-wrap: anywhere; }
.tag .x { width: 30px; height: 30px; margin-right: -8px; color: var(--ink-soft); background: none; border: 0; font-size: 1rem; }
button.tag { font: inherit; font-size: 0.86rem; }
.tag.add { color: var(--ink-soft); border-style: dashed; }
.details-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.details-bar .quiet { flex: 1 1 120px; }

/* The six statuses, as a list to pick one from. */
.pick { list-style: none; margin: 0 0 6px; padding: 0; }
.pick button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 4px; text-align: left; font-size: 1.02rem; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); }
.pick li:first-child button { border-top: 0; }
.pick .chip { flex: none; width: 92px; text-align: center; }
.pick .means { flex: 1 1 auto; font-size: 0.88rem; color: var(--ink-soft); }
.pick [aria-pressed="true"]::after { content: "NOW"; flex: none; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; color: var(--signal-text); }

/* Two fields side by side in a sheet, where each is short. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* The twelve parts: a checklist, not sections. Closed when a song opens. */
.parts { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.parts > .sec-head .n b { color: var(--ink); font-weight: 600; }
.parts > .sec-head { border-radius: 8px; }
.parts.is-open > .sec-head { border-bottom: 1px solid var(--line); background: var(--well); border-radius: 8px 8px 0 0; }
.parts ul { list-style: none; margin: 0; padding: 4px 8px 8px; }
.part { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px; }
.part + .part { border-top: 1px solid var(--line); }
.part .what { flex: 1 1 auto; min-width: 0; font-size: 0.95rem; }
.part.is-na .what { color: var(--ink-soft); text-decoration: line-through; }
.part.is-done .what::before { content: "✓ "; color: var(--good); }
/* Three states, each a button, always all there: a tap never cycles past the one you meant. */
.tri { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tri button { min-width: 54px; min-height: 40px; padding: 0 8px; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 0; }
.tri button + button { border-left: 1px solid var(--line); }
.tri button[aria-pressed="true"] { color: var(--ink); background: var(--well); }
.tri button.done[aria-pressed="true"] { color: var(--good); background: var(--good-soft); }
.parts .fine { margin: 0; padding: 0 12px 12px; }

/* Part progress in one bar. `--done` is set by the page. */
.prog { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* ⚠ `.bar` is also the header's class, with padding, a border and sticky
   positioning; the mockup shared the name, so this undoes all of it. */
.prog .bar { display: block; flex: none; width: 60px; height: 6px; padding: 0; border: 0; border-radius: 2px; background: var(--line); position: relative; top: auto; z-index: auto; overflow: hidden; }
.prog .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done, 0%); background: var(--good); }

/* Every tag in one project. */
.taglist .tag { flex: none; }
.taglist .who { flex: 1 1 auto; min-width: 0; }
.taglist .meta { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.rows.taglist > li { padding: 10px 6px 10px 14px; flex-wrap: nowrap; align-items: flex-start; }
.taglist .twin { color: var(--warn); }
.taglist .quiet { flex: none; }

/* The trash, and removed projects. */
.left { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.left.soon { color: var(--warn); }
.rows.binlist > li { flex-wrap: wrap; padding: 12px 6px 12px 14px; }
.binlist .who { flex: 1 1 180px; min-width: 0; }
.binlist .name { display: flex; align-items: center; gap: 8px; }
.binlist .acts { margin-left: auto; align-items: center; }
.binlist .quiet { min-height: 40px; padding: 0 12px; }
.sum { margin: 0 0 14px; font-size: 0.92rem; color: var(--ink-soft); }
.sum b { color: var(--ink); font-weight: 600; }
.rows .bytes { flex: none; font-family: var(--mono); font-size: 0.84rem; color: var(--ink); white-space: nowrap; }

/* Your space, with the part in trashes in its own colour: still used, but
   yours to give back. `--kept` and `--used` are set by the page. */
.space .level.split { background:
    repeating-linear-gradient(to right, transparent 0 calc(5% - 3px), var(--bg) calc(5% - 3px) 5%),
    linear-gradient(to right, var(--ink-soft) 0 var(--kept, 0%), var(--warn) var(--kept, 0%) var(--used, 0%), var(--line) var(--used, 0%) 100%); }
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ink-soft); }
.key li { display: inline-flex; align-items: center; gap: 6px; }
.key li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--ink-soft); }
.key li.t::before { background: var(--warn); }
.key li.f::before { background: var(--line); }
.space.big { margin-top: 6px; }
.space.big .level { height: 12px; }
.space.big > p { font-size: 1rem; }

/* A quiet button whose sheet is open, so you can see what the sheet is about. */
.quiet.is-on { background: var(--well); border-color: var(--ink-soft); }

/* An item or a version in the trash: a piece of a song, so a small card. */
.kind.piece::after { content: ""; position: absolute; left: 5px; top: 2px; width: 14px; height: 16px; border: 1.5px solid var(--ink-soft); border-radius: 2px; background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--line) 3px 4.5px); }

/* A legend inside a sheet stays a legend, not a sentence. */
.sheet > p.legend { font-size: 0.72rem; margin: 4px 0 6px; }
.sheet > .tags { margin-bottom: 4px; }

/* ---------------------------------------------------------------- search (#29), from Mockups B's workbench-b.css */

.find { display: flex; gap: 8px; margin: 0 0 8px; }
.find input { flex: 1 1 auto; height: 52px; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }
.hits { display: grid; gap: 10px; margin-top: 12px; }
.hit { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hit > a { display: block; padding: 12px 14px 10px; color: var(--ink); text-decoration: none; }
.hit > a b { display: block; font-size: 1.02rem; font-weight: 650; }
.hit > a span { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--ink-soft); }
/* A match is its own link: it opens the song AT that match (D-24). */
.match { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); background: var(--well); }
.hit > a.match span.where { display: block; margin: 0; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.hit > a.match span.words { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--ink); overflow-wrap: anywhere; }
mark { color: var(--ink); background: color-mix(in srgb, var(--signal) 32%, transparent); border-radius: 2px; padding: 0 1px; }
.hit .more-in { display: block; padding: 8px 14px 10px; font-size: 0.82rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--well); }

/* The song opened at a match: the item it is in, outlined, the row or note it
   lands on, and the one line that says why this section is open when every
   other one is closed. */
.item.is-found { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.versions > li.is-found, .notes li.is-found { background: color-mix(in srgb, var(--signal) 10%, var(--well)); }
.found-say { margin: 12px 0 0; padding: 8px 12px; font-size: 0.9rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: 6px; }

/* ---------------------------------------------------------------- the waveform (#30), from Mockups B's workbench-b.css */

/* Under the player, the shape of the take: peaks, what has played, the
   playhead, and a mark for each note made against THIS version (D-08). Tap
   anywhere on it to go there. Drawn on a canvas (web/strip.js), where the
   mockup drew an SVG; the colours are the mockup's, read from here. */
.wave { position: relative; height: 64px; margin-top: 8px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.wave[role="slider"] { cursor: pointer; touch-action: manipulation; }
.wave[role="slider"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wave canvas { position: absolute; inset: 6px 0; width: 100%; height: calc(100% - 12px); display: block; }
/* `.playhead`, not the mockup's `.head`: that is already the page header's row. */
.wave .playhead { position: absolute; top: 0; bottom: 0; left: var(--at, 0%); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
/* A note's mark: a tick at the top edge, in the signal colour, because it is
   where something was said. Its time is in the notes list below. */
.wave .mark { position: absolute; top: 0; left: var(--at, 0%); width: 2px; height: 100%; margin-left: -1px; background: color-mix(in srgb, var(--signal) 55%, transparent); pointer-events: none; }
.wave .mark::before { content: ""; position: absolute; top: 0; left: -4px; border-style: solid; border-width: 7px 5px 0; border-color: var(--signal) transparent transparent; }
/* Waiting its turn, or being drawn: the strip is there, empty, and says so. */
.wave.is-waiting { display: grid; place-items: center; border-style: dashed; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.wave.is-drawing { background:
    repeating-linear-gradient(to right, transparent 0 3px, var(--line) 3px 4.5px) center / 100% 30% no-repeat, var(--well); }
.wave.is-waiting > span { position: relative; padding: 2px 8px; background: var(--well); border-radius: 4px; }
.wave.is-none { display: flex; align-items: center; height: auto; min-height: 44px; padding: 8px 12px; margin-bottom: 0; border-style: dashed; font-size: 0.86rem; color: var(--ink-soft); }
/* On a phone, before anything is downloaded (D-61): the button, and what it costs. */
.wave.is-ask { flex-wrap: wrap; gap: 6px 12px; }
.wave.is-ask .quiet { min-height: 40px; }
.note .on.unmarked { color: var(--warn); }

/* ---------------------------------------------------------------- a place's three views (#31), from Mockups B's workbench-b.css */

/* A folder, or a project's top, can be read three ways. The list is Mockups
   A's; the worksheet and the running orders are the laptop app's folder page,
   split so that a phone is not asked to hold a table and a running order at once. */
.views { display: flex; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.views button { flex: 1 1 0; min-height: 44px; padding: 0 6px; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 0; }
.views button + button { border-left: 1px solid var(--line); }
.views button[aria-pressed="true"] { color: var(--ink); background: var(--well); box-shadow: inset 0 -2px 0 var(--ink); }

/* The worksheet: every song in this place as a row, read down a column. On a
   phone the song's name stays put and the rest scrolls sideways. */
.ws { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ws table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 0.9rem; }
.ws th { position: sticky; top: 0; padding: 10px 12px; text-align: left; white-space: nowrap; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); background: var(--well); border-bottom: 1px solid var(--line); }
.ws td { padding: 10px 12px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ws tr:last-child td { border-bottom: 0; }
.ws th:first-child, .ws td:first-child { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 160px; white-space: normal; background: var(--panel); border-right: 1px solid var(--line); }
.ws th:first-child { background: var(--well); z-index: 2; }
.ws td:first-child a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ws:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.ws .num { font-family: var(--mono); font-size: 0.84rem; }
.ws .soft { color: var(--ink-soft); }
.ws .changes { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.ws-say { margin: 8px 2px 0; font-size: 0.84rem; color: var(--ink-soft); }
.sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sub a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 0.9rem; }
.sub .kind { width: 22px; }
/* The worksheet wants the width a computer has: the page sets .is-wide on the
   column while it is showing, and the song names stop wrapping. */
.column.is-wide { max-width: 1080px; }
@media (min-width: 760px) { .ws th:first-child, .ws td:first-child { max-width: none; white-space: nowrap; } }

/* A running order: a list of titles, in order. A title that names no song in
   this place is kept, dimmed, and says so: it is often written first. */
.order { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px 10px 12px; }
.order + .order { margin-top: 12px; }
.order-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.order-head h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.02rem; font-weight: 650; overflow-wrap: anywhere; }
.order-sum { margin: 0 0 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.order-sum .warn { color: var(--warn); }
.disc { margin: 10px 0 2px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.entries { list-style: none; margin: 0; padding: 0; counter-reset: track; }
.entries > li { counter-increment: track; display: flex; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--line); }
.entries > li:first-child { border-top: 0; }
.entries > li::before { content: counter(track); flex: none; width: 24px; text-align: right; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.entries .title { flex: 1 1 auto; min-width: 0; padding: 6px 0; overflow-wrap: anywhere; }
.entries a.title { color: var(--ink); text-decoration: none; }
.entries .is-unmatched .title { color: var(--ink-soft); }
.entries .is-unmatched .title i { display: block; font-style: normal; font-size: 0.8rem; color: var(--warn); }
.entries .is-picked { background: color-mix(in srgb, var(--signal) 9%, var(--panel)); }
.entries .more { width: 40px; min-height: 40px; }
.order > .quiet { margin-top: 6px; min-height: 40px; }
/* "+ Track": one of the songs here, one tap, or a title typed. */
.picklist { list-style: none; margin: 0 0 12px; padding: 0; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--well); }
.picklist li + li { border-top: 1px solid var(--line); }
.picklist button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; font-size: 0.98rem; color: var(--ink); background: none; border: 0; }
.picklist button span { margin-left: auto; font-size: 0.82rem; color: var(--ink-soft); }
.picklist button:disabled { color: var(--ink-soft); }

/* ---------------------------------------------------------------- comparing two versions of words (#13, D-73) */

/* Ported from docs/mockups/projects/compare.css as Brett approved it, with the
   same class names, less the two answers he did not pick (in the card; a
   switch for quote marks). `.sum` was already the trash's, so here it is
   `.compare .sum`. */

/* A sheet, wider than the one-question kind on a computer because a tab's
   lines are long. On a phone it is the same bottom sheet. Its heading stays
   put while the lines scroll under it. */
.sheet.compare { max-width: 720px; padding-top: 0; }
.compare .chead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 14px 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.compare .chead h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare .chead .linkish { flex: none; margin-right: -8px; }

/* Which two: any two of the stack. Two native pickers, so a phone gets its own wheel. */
.which { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-top: 14px; }
.which .field { margin: 0; }
.which .arrow { padding-bottom: 12px; font-family: var(--mono); color: var(--ink-soft); }
.which select { width: 100%; min-height: 44px; padding: 8px 30px 8px 10px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; appearance: none; }
/* A picker has to look like one (#37): with `appearance: none` it lost its
   own arrow, and on a real iPhone the two read as boxes of text, not things
   to tap. And 1rem, not less: iPhone Safari zooms the page into any field
   drawn under 16px when it is tapped. The arrow is text, not an image: the
   Content-Security-Policy allows no data: address. */
.which .field { position: relative; }
.which .field::after { content: '▾'; position: absolute; right: 11px; bottom: 11px; color: var(--ink-soft); pointer-events: none; }

/* The two versions being compared: name, date, and the note that says why. */
.pair-of { list-style: none; margin: 12px 0 0; padding: 0; }
.pair-of li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; font-size: 0.88rem; color: var(--ink-soft); }
.pair-of .side { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; min-width: 3.2em; }
.pair-of q { color: var(--ink); quotes: "“" "”"; }

/* One sentence of what changed, in words, before the lines. */
.compare .sum { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink); }
/* A quote mark named in a sentence, big enough to tell ' from ’. */
.compare .sum code { font: 1rem var(--mono); padding: 0 5px; background: var(--well); border: 1px solid var(--line); border-radius: 3px; }
.compare .alert { margin: 12px 0 0; }

/* The lines, in the words' own font, as in the editor. A gutter says what
   happened to each line in a symbol as well as a colour: + added, − taken
   out, ~ reworded, nothing for the same. */
.diff { margin: 12px 0 0; padding: 8px 0; background: var(--well); border: 1px solid var(--line); border-radius: 6px; font: 0.86rem/1.55 var(--mono); overflow-x: auto; }
.diff .ln { display: grid; grid-template-columns: 1.8em 1fr; padding: 0 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .ln > span:first-child { text-align: center; color: var(--ink-soft); user-select: none; }
.diff .ln.same { color: var(--ink-soft); }
.diff .ln.add { background: var(--good-soft); }
.diff .ln.add > span:first-child { color: var(--good); }
.diff .ln.out { background: var(--danger-soft); }
.diff .ln.out > span:first-child { color: var(--danger); }
.diff .ln.out > span + span { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-soft); }
.diff .ln.re > span:first-child { color: var(--warn); }
/* Inside a reworded line, the words themselves. A quote mark alone is one
   thin character, so each change gets a box that a single ’ still fills. */
.diff ins, .diff del { padding: 0 2px; border-radius: 3px; }
.diff ins { text-decoration: none; color: var(--good); background: var(--good-soft); box-shadow: inset 0 -2px 0 var(--good); }
.diff del { color: var(--danger); background: var(--danger-soft); text-decoration: line-through; }
/* A word taken out and the word put in its place, apart, so "by" and "past" never read as "bypast". */
.diff del + ins { margin-left: 3px; }
/* A blank line, the break between verses, is a change of its own and must be
   seen when it comes or goes. */
.diff .ln.add .gap, .diff .ln.out .gap { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.diff .ln.add .gap { color: var(--good); }
.diff .ln.out .gap { color: var(--danger); }
/* A chord chart or a tab must not wrap: its columns are the music. The block
   scrolls sideways instead, and a changed line is shown as it was above as it
   is, so the columns still line up. */
.diff.is-grid .ln { white-space: pre; overflow-wrap: normal; width: max-content; min-width: 100%; }
/* In a grid, a marked character must not widen its line, or the columns after
   it stop lining up; and the line as it was is read, not crossed out whole. */
.diff.is-grid ins, .diff.is-grid del { padding: 0; border-radius: 0; }
.diff.is-grid .ln.out > span + span { text-decoration: none; color: var(--ink); }

/* Nothing different: said, not drawn as an empty box. */
.nodiff { margin: 14px 0 0; padding: 18px 14px; text-align: center; background: var(--well); border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-soft); }
.nodiff b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------------------------------------------------------------- playing a running order (#12, D-74)
   Ported from docs/mockups/projects/play.css with the same class names, as
   approved; answer B's chips (a gap per join) were not taken. */

/* Under an order's name: Play, and what playing it involves. Quiet, not the
   signal colour: a place with two running orders has two of them. */
.order-play { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 8px; }
.order-play .quiet { min-height: 40px; padding: 0 14px 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.order-play .say { font-size: 0.86rem; color: var(--ink-soft); }
.order-play .quiet:disabled { color: var(--ink-soft); border-style: dashed; }
/* A small triangle, drawn, not a character: iPhone Safari turns ▶ into an emoji. */
.playglyph { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

/* Under each track's title: which recording plays, and its size; or why it is skipped. */
.entries .plays { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.entries .plays .dflt { color: var(--warn); }
.entries .is-skipped .title { color: var(--ink-soft); }
.entries .is-skipped .plays { color: var(--warn); }
/* The one playing: marked by more than a colour, its number turns into a
   bar. Not in the signal colour: on the deck, orange is the record light's. */
.entries > li.is-now { background: var(--well); }
.entries > li.is-now::before { content: ""; width: 4px; height: 22px; margin: 0 10px 0 10px; border-radius: 2px; background: var(--ink); }
.entries > li.is-now .plays { color: var(--ink); }
/* "Playing", where Play was: a legend, in the ink colour. */
.chip.on-air { color: var(--ink); border-color: currentColor; }

/* The player: pinned to the bottom of the screen, where a thumb is, for as
   long as a running order plays. The page underneath keeps working, and has
   room under its last track so the bar never sits on it. */
body.is-playing .column { padding-bottom: 220px; }
.nowbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px color-mix(in srgb, #000 30%, transparent); }
.nowbar .nb-in { max-width: 720px; margin: 0 auto; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.nowbar .nb-top { display: flex; align-items: center; gap: 8px; }
.nowbar .nb-legend { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Hearing one join: the legend in the ink colour, set apart without the signal. */
.nowbar .nb-legend.is-join { color: var(--ink); }
.nowbar .nb-top .linkish { flex: none; margin-right: -8px; }
.nowbar .nb-what { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowbar .nb-what span { font-weight: 400; font-size: 0.86rem; color: var(--ink-soft); }
.nowbar .fine { margin: 2px 0 0; }
.nowbar .fine:empty { display: none; }
.nowbar .nb-row { display: flex; align-items: center; gap: 12px; }
.nowbar .track { height: 36px; }
.nowbar .track::before, .nowbar .track .fill { top: 16px; }
.nowbar .track .knob { top: 9px; }
/* The gap is heard, so it is drawn: a bar filling as it runs out. */
.nowbar .track.is-gap { cursor: default; }
.nowbar .track.is-gap::before { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.nowbar .track.is-gap .fill { background: var(--ink-soft); }
.nowbar .track.is-gap .knob { display: none; }
.nowbar .nb-do { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.nowbar .play { width: 48px; height: 48px; }
.nowbar .play::after { left: 18px; top: 14px; }
.nowbar .play.is-playing::after { left: 15px; top: 14px; }
/* Back and next: drawn, for the same reason as the triangle above. */
.skip { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; color: var(--ink); }
.skip::before, .skip::after { content: ""; position: absolute; top: 15px; border-style: solid; }
.skip.back::before { left: 13px; width: 3px; height: 14px; border: 0; background: currentColor; }
.skip.back::after { left: 17px; border-width: 7px 11px 7px 0; border-color: transparent currentColor transparent transparent; }
.skip.next::before { right: 13px; width: 3px; height: 14px; border: 0; background: currentColor; }
.skip.next::after { right: 17px; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.gapset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.gapset .nb-legend { flex: none; }
.gapset b { min-width: 3.2em; text-align: center; font-family: var(--mono); font-size: 0.86rem; font-weight: 600; }
.step { width: 40px; height: 40px; font: 600 1.1rem var(--mono); color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; }
.step:disabled { color: var(--line); }

/* Which recording plays: the song's recordings in Bounces, one tap. */
.pick .rec-name { flex: 1 1 auto; min-width: 0; }
.pick .rec-name small { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.sheet .pick + .fine { margin: 4px 0 12px; }

/* On the song page, under the recording a running order plays. */
.item .plays-here { margin: -4px 0 8px; }

/* ---------------------------------------------------------------- A/B two takes (#11, D-75)
   Ported from docs/mockups/projects/ab.css with the same class names, but
   one: the mockup's `.match` box is `.matching` here, because `.match` is
   already a search hit's (above). The sheet borrows Compare's: `.compare
   .chead` and `.which`. */

/* No direction between two takes, so no arrow between the pickers. */
.which.is-ab { grid-template-columns: 1fr 1fr; }

/* Which take you hear: two big buttons, the one heard pressed. Big because
   this is pressed thirty times a minute, often without looking. Not the
   signal colour: the record light is the only orange thing on the deck. */
.takes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.takes button { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; text-align: left; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 8px; font: inherit; cursor: pointer; }
.takes .k { flex: none; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.takes .t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font-size: 0.86rem; }
/* The take heard: full ink, the well's colour, a bar under it, and the word,
   so it is never told by colour alone. */
.takes [aria-pressed="true"] { color: var(--ink); background: var(--well); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.takes [aria-pressed="true"] .t::after { content: "HEARING"; flex-basis: 100%; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; }

/* Two strips, one playhead. Each says which take it is in a legend drawn
   last, so it sits over the bars without a z-index (one would put it over
   the sheet's sticky header). The take not heard is drawn faint; its marks
   stay, because they are its own (D-08). */
.duo { margin-top: 10px; }
.duo .wave { margin-top: 6px; }
.wave .side { position: absolute; left: 6px; top: 5px; padding: 1px 5px; white-space: nowrap; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: none; color: var(--ink); background: color-mix(in srgb, var(--well) 82%, transparent); border-radius: 3px; pointer-events: none; }
.wave.is-waiting > .side { position: absolute; padding: 1px 5px; border-radius: 3px; color: var(--ink-soft); }
.wave.is-none .side { position: static; margin-right: 8px; }
.wave-slot.is-quiet canvas { opacity: 0.5; }
.wave-slot.is-quiet .playhead { opacity: 0.45; }
.wave-slot.is-quiet .side { color: var(--ink-soft); }
.ab .transport { margin-top: 10px; }

/* Matching: a switch, and what it did in words, with the number. */
.matching { margin-top: 12px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; }
.matching p { margin: 4px 0 0; font-size: 0.92rem; }
.matching .fine { font-size: 0.84rem; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.toggle.is-off { color: var(--ink-soft); cursor: default; }
/* On a phone, before anything is downloaded: what matching costs, said
   first, and the one tap that starts it. */
.matching.is-cost { border-style: dashed; }
.matching.is-cost .quiet.wide { margin-top: 10px; }

.ab .keys, .ab .said { margin: 8px 2px 0; font-size: 0.82rem; }
.ab .notes { margin-top: 14px; }

/* ---------------------------------------------------------------- sharing with people (#45), from Mockups C's sharing.css
   Ported with the drawings' class names, after searching this file for each
   one. One is renamed: the drawings' version stack is `.stack`, which is a
   layout class here (top of this file); the app's stack is `.versions`, so
   who made a version is `.versions .by`. Left behind: the meter widths the
   drawings' numbers needed (a page sets `--used` through the style object),
   Pick 3's answer B (`.sec.is-shut`, not chosen), and `.pickmark`, which only
   a mockup ever says. */

/* Who holds it: a line under every title, there for everyone who holds it
   (Pick 1, answer A; D-86). For an owner it opens Share; for anyone else,
   the list. */
.holders { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 4px 0 16px; padding: 6px 12px; text-align: left; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.holders .faces { flex: none; display: inline-flex; }
.holders .who { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.holders .who b { font-weight: 600; }
.holders .go { flex: none; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.holders .go::after { content: " ›"; }
.holders.is-solo .who { color: var(--ink-soft); }

/* A person, as the first letter of their name in a ring. Only ever beside the
   name in words, never instead of it: "Sam" and "Sara" are both S. */
.face { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--ink); background: var(--well); border: 1.5px solid var(--line); }
.faces .face + .face { margin-left: -8px; }
.face.is-you { border-color: var(--ink-soft); }
.face.is-invite { color: var(--ink-soft); border-style: dashed; }

/* Whose a shared thing is, and what you may do with it, in one line under
   its title. The role is a legend, so it is a chip. */
.whose { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 6px; font-size: 0.9rem; color: var(--ink-soft); }
.whose b { color: var(--ink); font-weight: 600; }

/* The roles are plain chips: a role is a fact about you, not a warning. Bar
   View only, which explains why the screen has no buttons. */
.chip.r-owner { color: var(--ink); border-color: var(--ink-soft); }
.chip.r-view { color: var(--warn); border-color: currentColor; }

/* The Share sheet: wider than a question's on a computer, for a list of people. */
.sheet.wide { max-width: 560px; }
.sheet .group { margin-top: 18px; }
.sheet .group > h2 { margin-bottom: 8px; }
.sheet .group:first-of-type { margin-top: 4px; }
.sheet > .fine { margin: 10px 0 0; }

/* Who holds it. A row an owner may change is a button; the owner of
   record's is not, because nobody changes it (D-77). */
.holdlist > li { padding: 0; flex-wrap: nowrap; }
.holdlist .row { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: inherit; text-align: left; background: none; border: 0; }
.holdlist .who { flex: 1 1 auto; min-width: 0; }
.holdlist .name { display: block; overflow-wrap: anywhere; }
.holdlist .role { flex: none; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.holdlist button.row .role::after { content: " ›"; }
.holdlist .is-invite .name { color: var(--ink-soft); font-weight: 500; }
.holdlist .is-picked { background: color-mix(in srgb, var(--signal) 9%, var(--panel)); }
.holdlist .is-new { background: color-mix(in srgb, var(--good) 10%, var(--panel)); }
.holdlist .acts { flex: none; padding-right: 8px; }
.holdlist .quiet { min-height: 40px; padding: 0 12px; }
.holdlist .rows-say { margin: 0; padding: 10px 12px; font-size: 0.86rem; color: var(--ink-soft); }

/* Adding someone: an email, the role, the button. One column even on a
   computer, so each role gets a line saying what it means. */
.addform { margin-top: 16px; padding: 14px 12px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; }
.addform > h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.addform input { background: var(--panel); }
.addform .primary { margin-top: 4px; }
.addform .quiet.wide { margin-top: 4px; }
.addform .alert { margin: 0 0 12px; }

/* Which role: three buttons, each saying what it lets them do. All three
   are always there, so a tap never cycles past the one meant. */
.roles { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.roles li + li { border-top: 1px solid var(--line); }
.roles button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; color: var(--ink); background: none; border: 0; }
.roles .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-soft); }
.roles [aria-pressed="true"] .dot { border: 6px solid var(--ink); }
.roles .what { flex: 1 1 auto; min-width: 0; }
.roles .what b { display: block; font-weight: 600; }
.roles .what span { display: block; font-size: 0.84rem; color: var(--ink-soft); }
.roles .now { flex: none; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-soft); }
.legend-row { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
/* .push comes earlier in this file, so the reset above would win without this. */
.legend-row.push { margin-top: 14px; }

/* Where bands and view-only links will go, drawn by Mockups D (#46). */
.sheet .later { margin-top: 16px; }

/* A hand-over waiting for your answer: the one thing on home to do next,
   so its Accept is the screen's one signal-coloured button. */
.offer { margin: 0 0 18px; padding: 14px; background: color-mix(in srgb, var(--signal) 6%, var(--panel)); border: 1px solid var(--signal); border-radius: 8px; }
.offer > h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-text); margin: 0 0 8px; }
.offer > p { font-size: 0.95rem; }
.offer .fine { margin-top: -4px; }
.offer .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.offer .row .primary { flex: 1 1 160px; margin-top: 0; height: 48px; }
.offer .row .quiet { flex: 1 1 120px; min-height: 48px; }
.offer .alert { margin: 12px 0 0; }

/* A shared row's second line names whose it is; your role is a chip. */
.rows.nav .meta .chip { margin-left: 2px; vertical-align: 1px; }
.group > h2 .soft { color: var(--ink-soft); font-weight: 500; letter-spacing: 0.1em; }

/* Words, read: the editor's face and wrap with no box to type in, so a
   phone never raises its keyboard over a lyric someone came to read. */
.readwords { margin: 0; padding: 4px 2px 6px; font: 0.86rem/1.55 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.readwords.is-grid { white-space: pre; overflow-x: auto; }
.secs-say { margin: 8px 2px 0; font-size: 0.84rem; color: var(--ink-soft); }

/* A part, read: its state in words where an editor has three buttons. */
.part .said { flex: none; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.part.is-done .said { color: var(--good); }

/* Who made a note or a version, in words, in the line that already says
   which version it was made against (D-08, D-81). */
.note .on b, .versions .by b, .lede b.by { color: var(--ink); font-weight: 600; }
.versions .by { margin: 2px 0 0; font-size: 0.84rem; color: var(--ink-soft); }

/* What a move changes about who can see it, said before it happens. */
.sight { list-style: none; margin: 0 0 12px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }
.sight li { display: flex; gap: 8px; padding: 3px 0; }
.sight li::before { flex: none; width: 1.2em; font-family: var(--mono); font-weight: 700; }
.sight .gain::before { content: "+"; color: var(--good); }
.sight .lose::before { content: "−"; color: var(--danger); }
.sight .same::before { content: "="; color: var(--ink-soft); }
.sight b { font-weight: 600; }
/* A picker shows its arrow (#52). */
.pickwell { position: relative; display: block; }
.pickwell select { width: 100%; height: 52px; padding: 0 40px 0 14px; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 6px; appearance: none; -webkit-appearance: none; }
.pickwell::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.tree .is-off { color: var(--ink-soft); }

/* On Your space, how much of a project someone else uploaded. */
.rows .meta .them { color: var(--ink); }

/* ---------------------------------------------------------------- bands and view-only links (#49) */
/* Ported from docs/mockups/bands-links/bands-links.css (Mockups D, D-121)
   with the same class names. `.link` was taken (the invite link's code box),
   so a link's icon is `.kind.chain`. The A/B's pickers that sheet also drew
   were already here (#52). */

/* A band, as an icon: three heads in a row, in the same line weight as a
   folder or a song. */
.kind.band::before { content: ""; position: absolute; left: 1px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-soft); box-shadow: 8px 0 0 -1.5px var(--panel), 8px 0 0 0 var(--ink-soft), 16px 0 0 -1.5px var(--panel), 16px 0 0 0 var(--ink-soft); }
.kind.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 4px; border: 1.5px solid var(--ink-soft); border-bottom: 0; border-radius: 6px 6px 0 0; }

/* A band in a list of people: its ring is square, so a band never reads as
   a person whose name starts with T. */
.face.is-band { border-radius: 7px; }

/* The people in a band, under the band's own row in a Share sheet, for an
   owner (D-86): indented, read-only there. */
.holdlist .inband { padding: 0 12px 10px 52px; font-size: 0.86rem; color: var(--ink-soft); }
.holdlist .inband b { color: var(--ink); font-weight: 600; }

/* A link, as an icon: two links of a chain. */
.kind.chain::before, .kind.chain::after { content: ""; position: absolute; top: 6px; width: 12px; height: 8px; border: 1.5px solid var(--ink-soft); border-radius: 5px; }
.kind.chain::before { left: 2px; }
.kind.chain::after { left: 10px; }
.holdlist .kind { margin: 0 1px; }

/* A link that has run out, or was stopped, stays on the list a while,
   dimmed, so whoever is told "it doesn't work" can see why. */
.holdlist .is-ended .name, .holdlist .is-ended .kind { opacity: 0.55; }
.holdlist .is-ended .meta { color: var(--warn); }

/* The add form's switch between a person and a band reuses .views (the
   folder's List / Worksheet / Running orders); here it sits inside a well. */
.addform .views { margin-bottom: 14px; background: var(--panel); }
.addform .pickwell { margin-bottom: 4px; }

/* The page a link opens is signed out, so the bar holds the wordmark and
   nothing else. */
.bar.is-bare { justify-content: flex-start; }

/* What the page is, said once under the title. A legend, so a chip. */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* The foot of every page a link opens: when it stops working, and that it
   is a copy. Never who made it or who else has it (D-90). */
.linkfoot { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-soft); }
.linkfoot b { color: var(--ink); font-weight: 600; }

/* The one answer a dead link gets, on Phase 1's signed-out card. */
.screen .card.deadlink > p { margin: 0 0 12px; }

/* ---------------------------------------------------------------- a save that met a newer copy (#70, Mockups E)
   Ported from docs/mockups/stale/stale.css with the same names, checked
   against every class here first. Pick 1 was answered A (D-145), so the
   drawings' `.clash`, said beside the thing, is not ported. */

/* A field whose value someone else changed while the sheet was open: what
   you typed stays in the box, and the line under it says what it is now.
   Amber, not red: nothing is wrong with what you typed. */
.field.is-clash input,
.field.is-clash textarea { border-color: var(--warn); }
.field.is-clash .hint { color: var(--warn); }
.field.is-clash .hint b { font-weight: 600; }

/* Words or a file kept as their own item (D-140, D-143): the new item says
   so once, in its own card, until the page is left. */
.kept { margin: 0 0 10px; font-size: 0.84rem; color: var(--ink-soft); }
.kept b { color: var(--ink); font-weight: 600; }

/* Words kept where the person can no longer see them (D-141): said on the
   page itself, with what to do. */
.went { margin-top: 18px; text-align: left; }
.went p { margin: 0 0 10px; }
.went .quiet { margin-top: 6px; }
