/* The Front Door design: the same pink, Fraunces and Figtree, pill buttons and cards, copied from
   docs/design/screens/*.dc.html. Values are the screens' own; only the fixed 390×844 frame became a
   page that fills the phone. */
:root {
  --bg: #FFF8FA; --door: #FCE4EC; --ink: #2A1B2E; --accent: #C2185B; --deep: #AD1457; --hover: #880E4F;
  --muted: #6B4E62; --pale: #F8BBD0; --mid: #E57BA3; --white: #FFFFFF;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Figtree', system-ui, sans-serif;
}
html, body { margin: 0; background: var(--bg); }
body.door { background: var(--door); }
a { color: var(--deep); }
a:hover { color: var(--hover); }
textarea::placeholder { color: var(--muted); }
button { font-family: var(--sans); cursor: pointer; }
[hidden] { display: none !important; }

.screen {
  box-sizing: border-box; position: relative; overflow: hidden; min-height: 100dvh; max-width: 480px; margin: 0 auto;
  font-family: var(--sans); color: var(--ink); padding: 48px 24px 32px; display: flex; flex-direction: column; gap: 16px;
}
.screen.tight { gap: 12px; }
.screen > * { position: relative; }

/* the soft circles */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.inner { top: -90px; right: -60px; width: 220px; height: 220px; background: var(--door); }
.blob.door { top: -120px; right: -120px; width: 320px; height: 320px; background: var(--pale); }
.blob.dot { top: 70px; right: 56px; width: 44px; height: 44px; background: var(--accent); }
.blob.low { bottom: -16px; left: -110px; width: 300px; height: 300px; background: var(--pale); }
.blob.ring { top: -60px; right: -60px; width: 180px; height: 180px; background: var(--door); border: 2px solid var(--accent); }

.brand { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--deep); }
.kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--deep); }
.tag { align-self: flex-start; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.title { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); }
.title.m { font-size: 38px; }
.title.s { font-size: 36px; line-height: 1.08; }
.title.xs { font-size: 30px; line-height: 1.08; }
.title em { font-style: italic; font-weight: 600; color: var(--accent); }
.lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.center { align-items: center; text-align: center; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); }
.hint { margin: 0; font-size: 13px; text-align: center; color: var(--muted); }
.fine { margin: 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--deep); }
.msg { margin: 0; font-size: 14px; line-height: 1.4; text-align: center; color: var(--deep); min-height: 0; }
.msg:empty { display: none; }
.link { align-self: center; font-size: 14px; font-weight: 600; color: var(--deep); background: none; border: 0; padding: 0; }
.spacer { margin-top: auto !important; }

.code {
  box-sizing: border-box; width: 100%; height: 60px; border-radius: 16px; border: 1.5px solid var(--accent); background: var(--white);
  font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 8px; text-align: center; color: var(--ink);
}
.code:focus { outline: 2px solid var(--deep); outline-offset: 2px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--white); font-family: var(--sans); font-size: 17px; font-weight: 700; text-decoration: none; width: 100%;
}
.btn:hover { color: var(--white); }
.btn.secondary { height: 50px; background: var(--white); border: 1.5px solid var(--pale); color: var(--deep); font-size: 16px; }
.btn.secondary:hover { color: var(--hover); }
.btn:disabled { opacity: 0.6; cursor: default; }

.note-card { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--pale); border-radius: 16px; padding: 12px 14px; }
.note-card svg { flex-shrink: 0; margin-top: 1px; }
.note-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.key-icon { align-self: center; margin-top: 24px; width: 168px; height: 168px; border-radius: 44px; background: var(--door); display: flex; align-items: center; justify-content: center; }
.icon-box { align-self: center; width: 120px; height: 120px; border-radius: 34px; display: flex; align-items: center; justify-content: center; }
.icon-box.pale { background: var(--door); }
.icon-box.white { background: var(--white); }

/* the helper's header and orb (screen 3) */
.helper-head { display: flex; align-items: center; justify-content: space-between; }
.helper-head .who { display: flex; align-items: center; gap: 10px; }
.helper-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
.helper-head .name { display: flex; flex-direction: column; }
.helper-head .name b { font-size: 15px; font-weight: 700; }
.helper-head .name span { font-size: 12px; color: var(--muted); }
.sound { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pale); background: var(--white); display: flex; align-items: center; justify-content: center; padding: 0; }
.orb { align-self: center; margin-top: 56px; width: 220px; height: 220px; border-radius: 50%; background: var(--door); display: flex; align-items: center; justify-content: center; }
.orb .mid { width: 168px; height: 168px; border-radius: 50%; background: var(--pale); display: flex; align-items: center; justify-content: center; }
.orb .core { width: 116px; height: 116px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.quote { margin: 28px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.35; font-weight: 500; text-align: center; color: var(--ink); }

/* the share checklist (screen 4) */
.checklist { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.checklist div { display: flex; align-items: center; gap: 10px; }
.checklist span { font-size: 15px; font-weight: 600; }
.checklist .never span { color: var(--muted); }

/* the desk's line on the shelf (screens 5, 5b) */
.desk-line { display: flex; gap: 10px; align-items: flex-start; background: var(--door); border-radius: 16px; padding: 12px 14px; }
.desk-line .dot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.desk-line p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); }

/* a track card */
.track { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.track .row { display: flex; align-items: center; gap: 12px; }
.play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--accent); display: flex; align-items: center; justify-content: center; padding: 0; }
.play:disabled { background: var(--pale); cursor: default; }
.track .meta { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.track .titles { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.track .name { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.track .length { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: var(--pale); position: relative; cursor: pointer; }
.bar .fill { width: 0%; height: 6px; border-radius: 999px; background: var(--accent); }
.bar::after { content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.track .notes { display: flex; gap: 8px; align-items: stretch; }
.track textarea {
  box-sizing: border-box; flex: 1 1 auto; min-width: 0; resize: none; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--pale);
  background: var(--white); font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--ink);
}
.chip { flex-shrink: 0; height: 40px; align-self: center; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pale); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.track .missing { margin: 0; font-size: 13px; color: var(--muted); }

/* the "welcome back" card (screen 12) */
.thing { margin-top: 16px; background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.thing:hover { color: var(--ink); }
.thing .icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.thing .text { display: flex; flex-direction: column; gap: 2px; }
.thing .text b { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.thing .text span { font-size: 13px; color: var(--muted); }

.sharing { display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sharing a { font-weight: 600; }

/* behind the desk: the listening page (Listen.dc.html) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-flex; align-items: center; text-decoration: none; }
.chips .chip[aria-pressed="true"] { color: var(--white); }
.who-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.who-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--white); }
.who-avatar.outline { background: var(--white); border: 1.5px solid var(--pale); box-sizing: border-box; color: var(--accent); }
.who-text { display: flex; flex-direction: column; }
.who-name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.who-sub { font-size: 12px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.track .plays { margin: 0; font-size: 14px; line-height: 1.4; }
.parts { display: flex; gap: 2px; }
.parts div { flex: 1 1 0; height: 14px; border-radius: 3px; }
.track .stopped { margin: 0; font-size: 12px; color: var(--muted); }
.owner-listening { display: grid; gap: 6px; }
.owner-listening .uncounted { font-size: 17px; line-height: 1.45; }
.owner-listening .small-line, .owner-listening .stopped { margin: 0; min-height: 1.45em; font-size: 15px; line-height: 1.45; color: var(--muted); }
.owner-listening .owner-legend { flex-wrap: wrap; gap: 8px 14px; font-size: 15px; }
[data-owner-parts][data-known="no"] { opacity: 0.45; }
[data-owner-parts] [data-shade="0"] { background: var(--pale); }
[data-owner-parts] [data-shade="1"] { background: var(--mid); }
[data-owner-parts] [data-shade="2"] { background: var(--accent); }
.note-line { display: flex; gap: 10px; align-items: flex-start; background: var(--door); border-radius: 14px; padding: 10px 12px; }
.note-line.centered { align-items: center; }
.note-avatar { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--white); }
.note-avatar.outline { background: var(--white); border: 1.5px solid var(--accent); box-sizing: border-box; }
.note-line .said { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.note-line .none { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.note-line .good { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.note-line svg { flex-shrink: 0; }
.final-card { background: var(--accent); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--white); }
.final-card .name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--white); }
.final-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--white); }
.final-card .inline { margin: 0; }
.final-card .owner-listening .uncounted,
.final-card .owner-listening .small-line,
.final-card .owner-listening .stopped,
.final-card .owner-listening .legend { color: var(--white); }
.final-card .owner-listening [data-owner-parts] { background: var(--white); padding: 3px; border-radius: 6px; }
.final-card .owner-listening .legend i { outline: 1px solid var(--white); outline-offset: 1px; }
.link.white { color: var(--white); align-self: flex-start; font-size: 13px; text-decoration: underline; }

/* the approve button (Approve.dc.html) */
.what { background: var(--white); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.what div { display: flex; align-items: flex-start; gap: 10px; }
.what svg { flex-shrink: 0; }
.what p { margin: 0; font-size: 15px; line-height: 1.4; }

/* the final, with Keep it (Final.dc.html) */
.pill { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--pale); border-radius: 999px; padding: 8px 16px 8px 8px; }
.pill span { font-size: 15px; font-weight: 700; }
.final-player { background: var(--accent); border: 0; border-radius: 28px; padding: 28px 24px; gap: 18px; color: var(--white); }
.final-title { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--white); }
.final-sub { margin: 0; font-size: 14px; color: var(--white); }
.final-player .row { gap: 16px; }
.play.big { width: 64px; height: 64px; background: var(--white); }
.play.big:disabled { background: var(--mid); }
.bar.white { background: var(--mid); }
.bar.white .fill { background: var(--white); }
.final-player .meta { gap: 8px; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--white); }
.missing.white { color: var(--white); }

/* notes both ways (TracksNotes.dc.html, ListenNotes.dc.html, BackNotes.dc.html) */
.convo { display: flex; flex-direction: column; gap: 10px; }
.convo:empty { display: none; }
.tnote { display: flex; gap: 10px; align-items: flex-start; background: var(--door); border-radius: 14px; padding: 10px 12px; }
.tnote.owner { background: var(--white); border: 1.5px solid var(--pale); }
.note-avatar.ring { background: var(--white); border: 1.5px solid var(--accent); box-sizing: border-box; color: var(--accent); }
.note-avatar.q { color: var(--accent); }
.tnote-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tnote .said { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.tnote-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tnote-foot.split { justify-content: space-between; align-items: baseline; }
.moment { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--white); color: var(--deep); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; box-sizing: border-box; }
.link-btn { background: none; border: 0; padding: 0; font: 600 12px var(--sans); color: var(--deep); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--hover); }
.new { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: var(--accent); color: var(--white); padding: 3px 8px; border-radius: 999px; }
.new-from { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--deep); }
.new-from .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tnote-edit { display: flex; flex-direction: column; gap: 8px; background: var(--door); border-radius: 14px; padding: 10px 12px; }
.tnote-edit textarea { width: 100%; border-color: var(--accent); }
.tnote-edit .row-end { display: flex; gap: 8px; justify-content: flex-end; }
.tnote-gone { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border: 1.5px dashed var(--pale); border-radius: 14px; padding: 10px 12px; }
.tnote-gone p { margin: 0; font-size: 13px; color: var(--muted); }
.tnote-gone .link-btn { font-size: 14px; font-weight: 700; }
.send-note { flex-shrink: 0; height: 40px; align-self: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--white); font-size: 14px; font-weight: 600; }
.send-note:disabled { border-color: var(--pale); background: var(--pale); cursor: default; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills:not(:has(.chip:not([hidden]))) { display: none; }
.mini { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--door); }
.mini .bar { flex: 1 1 auto; }
.mini .now { font-size: 12px; color: var(--muted); }
.play.small { width: 32px; height: 32px; }
.uncounted { margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.chips .chip { position: relative; }
.chip-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.news { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.news-line { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.news-line:hover { color: var(--ink); }
.news-line .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.news-line .text b { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.news-line .text span { font-size: 13px; color: var(--muted); }
.news-line .chevron { flex-shrink: 0; margin-left: auto; }
.tnote-foot .mine { white-space: nowrap; }

/* adding tracks and people from the phone (AddTrack, AddTrackSent, TakeOff, ListenAdd, AddPerson, PersonAdded, TakePersonOff) */
.field { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1 1 auto; }
.add-chip { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; background: transparent; color: var(--deep); font-weight: 700; text-decoration: none; }
.chips .add-chip, .chips .add-chip:hover { color: var(--deep); }
.chips button.chip[aria-checked="true"], .pills-row .chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.pills-row { display: flex; gap: 8px; }
.chip.big { height: 44px; padding: 0 18px; font-size: 15px; }
.small-line { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.said-line { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.thing.choose { margin-top: 0; cursor: pointer; }
.files { display: flex; flex-direction: column; gap: 8px; }
.files:empty { display: none; }
.file-card { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.file-card .top { display: flex; align-items: center; gap: 12px; }
.num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--white); }
.file-card .about { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.file-card .about b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.file-card .about span { font-size: 12px; color: var(--muted); }
.file-card .title-box { box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--pale); background: var(--bg); font-family: var(--sans); font-size: 17px; color: var(--ink); width: 100%; }
.link-strong { background: none; border: 0; padding: 0; font: 700 14px var(--sans); color: var(--deep); text-decoration: underline; cursor: pointer; }
.link-strong:hover { color: var(--hover); }
.link-strong:disabled { opacity: 0.5; cursor: default; }
.link-strong.center { align-self: center; text-align: center; }
.link-strong.big { font-size: 16px; }
.dashed { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; border: 1.5px dashed var(--pale); background: transparent; color: var(--deep); font: 700 15px var(--sans); }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-head { margin: 0; font-size: 14px; font-weight: 700; }
.progress .bar { cursor: default; }
.progress .bar::after { display: none; }
.card-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--door); }
.card-foot a { font-size: 14px; font-weight: 700; }
.card-foot.white { border-top-color: var(--mid); }
.card-foot.white a, .card-foot a.white { color: var(--white); }
.card-foot.end { border-top-color: var(--pale); }
.off-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border: 1.5px dashed var(--pale); border-radius: 14px; padding: 10px 12px; }
.off-line p { margin: 0; font-size: 13px; color: var(--muted); }
.off-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.off-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--pale); border-radius: 14px; padding: 10px 12px; }
.off-text { display: flex; flex-direction: column; min-width: 0; }
.off-name { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.off-sub { font-size: 12px; color: var(--muted); }
form.inline { margin: 0; flex-shrink: 0; }
.num-card { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.num-row { display: flex; align-items: center; gap: 12px; }
.num-text { display: flex; flex-direction: column; }
.num-name { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.num-sub { font-size: 12px; color: var(--muted); }
.code-card { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.code-row { display: flex; justify-content: space-between; align-items: baseline; }
.code-row span { font-size: 14px; color: var(--muted); }
.code-row b { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
.btn.small { height: 46px; font-size: 15px; }
.name-box { box-sizing: border-box; height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--pale); background: var(--white); font-family: var(--sans); font-size: 17px; color: var(--ink); width: 100%; }
.name-box:focus, .title-box:focus { outline: none; border-color: var(--accent); }
.invite-card { background: var(--white); border: 1.5px solid var(--pale); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.invite-card > div { display: flex; flex-direction: column; gap: 2px; }
.invite-link { margin: 0; font-size: 16px; font-weight: 600; word-break: break-all; }
.invite-code { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 4px; color: var(--accent); }
/* TASK-17: Behind the desk on Welcome back, Change the title next to Take off, Erase for good under Off the shelf */
.desk-card .chevron { flex-shrink: 0; margin-left: auto; }
.desk-card .text { min-width: 0; }
.card-foot.split { justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.off-row.stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.off-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.name-box.edit { border-color: var(--accent); }
/* the progress bar can be slid along with a finger, not only tapped; the page still scrolls up and down over it */
.bar { touch-action: pan-y; }

/* TASK-30: readable optional reactions; a reserved result row keeps playback controls steady. */
.track-reaction { display: flex; flex-direction: column; gap: 6px; }
.reaction-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.reaction-choice.chip, .reaction-retry.chip { min-height: 48px; height: auto; padding: 10px 14px; font-size: 17px; }
.reaction-choice:disabled { cursor: wait; }
.track-reaction[aria-busy="false"] .reaction-choice:disabled { cursor: default; }
.reaction-result { display: flex; align-items: center; gap: 10px; min-height: 70px; }
.reaction-status { flex: 1; font-size: 17px; line-height: 1.3; color: var(--muted); }
.comments-label { font-size: 19px; font-weight: 600; }
body[data-page="shelf"] .write textarea { font-size: 17px; }
body[data-page="shelf"] .send-note { min-height: 48px; font-size: 17px; }

/* TASK-31: optional collections use the shelf's existing pink tokens. */
.collection-screen { gap: 16px; }
.collection-screen .title { overflow-wrap: anywhere; }
.collection-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; }
.collection-copy, .collection-error { margin: 0; font-size: 17px; line-height: 1.45; }
.collection-copy { color: var(--muted); }
.collection-error { color: var(--deep); }
.collection-nav { display: flex; flex-direction: column; gap: 10px; }
.collection-choice { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--pale); border-radius: 16px; background: var(--white); color: var(--deep); font-size: 17px; font-weight: 600; text-decoration: none; }
.collection-choice > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.collection-choice[aria-current="page"] { border-color: var(--accent); background: var(--door); }
.collection-count { flex-shrink: 0; font-size: 17px; font-weight: 400; color: var(--muted); }
.collection-song-list { margin: 0; padding-left: 26px; font-size: 17px; }
.collection-song-list li { padding-left: 2px; }
.collection-song-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--pale); text-decoration: none; }
.collection-song-list a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.library-song { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; border-bottom: 1px solid var(--pale); }
.library-song a { border: 0; }
.library-song a:first-child { flex: 1 1 9em; }
.library-song a:first-child > span:not([aria-hidden]) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.library-song a:last-child { font-weight: 600; text-decoration: underline; }
.media-cover { display: block; flex: none; width: 56px; height: 56px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--bg); }
.titles:has(> .media-cover) { display: flex; gap: 10px; align-items: center; }
.titles > .media-cover + .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.off-row > .media-cover + .off-text { flex: 1; }
.final-player > .media-cover, .cover-editor > .media-cover { width: min(100%, 260px); height: auto; }
.cover-editor input[type="file"] { width: 100%; min-height: 44px; font: inherit; font-size: 17px; }
.cover-editor input::file-selector-button { padding: 10px 14px; margin-right: 8px; border: 1px solid var(--pale); border-radius: 12px; color: var(--deep); background: var(--white); font: inherit; cursor: pointer; }
.cover-frame { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cover-frame legend { padding: 0 0 8px; font-size: 19px; font-weight: 600; }
#cover-preview { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 1 / 1; background: var(--white); outline: 1px solid var(--pale); cursor: grab; touch-action: none; }
#cover-preview:active { cursor: grabbing; }
.frame-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; font-size: 17px; }
.frame-slider output { font-variant-numeric: tabular-nums; }
.frame-slider input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--accent); }
.frame-position summary, #cover-reset { width: fit-content; min-height: 44px; align-content: center; cursor: pointer; color: var(--deep); font: 600 17px var(--sans); }
.frame-position summary:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
#cover-status:empty { display: none; }
.cover-removal { margin-top: 8px; border-top: 1px solid var(--pale); }
.cover-removal summary { padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; color: var(--deep); }
.cover-removal summary:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.collection-editor { display: flex; flex-direction: column; gap: 14px; }
.collection-title-label, .collection-members legend { font-size: 19px; font-weight: 600; }
.collection-members { display: flex; flex-direction: column; gap: 14px; border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.collection-members legend { padding: 0 0 12px; }
.collection-bulk, .collection-order { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-bulk button, .collection-order button { min-height: 44px; border: 1.5px solid var(--pale); border-radius: 999px; padding: 8px 14px; font-family: var(--sans); font-size: 17px; background: var(--white); color: var(--deep); }
.collection-order button:disabled { opacity: 0.45; cursor: default; }
.collection-member-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.collection-member { padding: 10px 12px; border: 1.5px solid var(--pale); border-radius: 16px; background: var(--white); }
.collection-member label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; line-height: 1.4; cursor: pointer; }
.collection-member label > span:not(.collection-position) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.collection-member input[type="checkbox"] { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.collection-position { min-width: 18px; color: var(--muted); text-align: right; }
.collection-order { padding-top: 8px; }
.collection-order-status { min-height: 48px; margin: 0; font-size: 17px; line-height: 1.4; color: var(--muted); }
.collection-editor .btn.secondary { font-size: 17px; }
.collection-choice:focus-visible, .collection-back:focus-visible, .collection-song-list a:focus-visible, .collection-editor button:focus-visible, .collection-editor input:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
body[data-page="desk"] .library-link { display: flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box; padding: 10px 16px; border: 1.5px solid var(--pale); border-radius: 16px; background: var(--white); color: var(--deep); font-size: 17px; font-weight: 600; text-decoration: none; }
body[data-page="desk"] .library-link:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }

/* TASK-96: Download under a track's player; the owner's line saying who can download; the choice on the Add page */
.get-it { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--deep); color: var(--deep); font-size: 15px; font-weight: 700; text-decoration: none; }
.get-it:hover { color: var(--hover); border-color: var(--hover); }
.download-line { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.download-line p { margin: 0; font-size: 14px; color: var(--muted); }
.download-all { display: flex; justify-content: flex-end; }
.file-card .get-row { display: flex; gap: 8px; flex-wrap: wrap; }
.file-card .get-row .chip { height: 36px; font-size: 13px; }
.file-card .get-row .chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.file-card .video-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.downloaded { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.downloaded b { color: var(--ink); }
/* TASK-21: Pass it on, under the player; the same pill as Download. */
.pass-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
button.get-it { background: none; font: 700 15px var(--sans); cursor: pointer; }

/* The same line breaks are kept in the editor, the shelf, and the standalone lyric reader. */
.lyric-generation, .lyric-editor, .lyric-reader { gap: 16px; }
.lyric-generation { display: grid; }
#lyric-mode { box-sizing: border-box; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--pale); border-radius: 12px; background: var(--white); color: var(--ink); font: 17px var(--sans); }
.lyric-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lyric-review-player { display: block; width: 100%; }
.lyric-actions .lyric-range { min-height: 44px; height: auto; font-size: 17px; cursor: pointer; }
#lyric-candidate { max-height: 16rem; overflow: auto; }
#lyric-replace { height: auto; min-height: 50px; padding-block: 8px; }
#lyric-progress:empty { display: none; }
#lyric-draft { box-sizing: border-box; width: 100%; min-height: 14em; padding: 12px; resize: vertical; border: 1px solid var(--pale); border-radius: 12px; background: var(--white); color: var(--ink); font: 17px/1.6 var(--sans); }
.lyric-disclosure { margin: 6px 0; }
.lyric-disclosure a, .lyric-toggle, .lyric-latest summary { color: var(--deep); font: 600 17px var(--sans); cursor: pointer; }
.lyric-toggle { min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; }
.lyric-words { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font: 20px/1.65 var(--serif); }
.lyric-disclosure .lyric-words, .lyric-latest .lyric-words { margin: 8px 0 12px; }
.library-song > a:not(:first-child) { font-weight: 600; text-decoration: underline; }
