/* giftsong's own pages: login, your films, a new film, progress. Warm paper,
   plum ink, rounded type; mobile first (375 px up), dark with the system. */
@font-face { font-family: Fredoka; src: url(/engine/fonts/fredoka-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/engine/fonts/fredoka-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #F6F2EA; --ink: #2A2231; --muted: #6E6873; --card: #FFFFFF; --line: #E2DBCF;
  --accent: #E8503A; --accent-ink: #FFFFFF; --soft: #FBE7E1;
  --good: #2F8F5B; --good-soft: #E1F1E7; --bad: #C2413A; --bad-soft: #FBE3E1;
  --warn: #7A5200; --warn-soft: #FFF3D6; --warn-line: #F1D9A0;
  --shadow: 0 1px 2px rgba(42, 34, 49, .05), 0 6px 20px rgba(42, 34, 49, .06);
  --round: Fredoka, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1F1B22; --ink: #F1ECE4; --muted: #B5ADA4; --card: #2A2530; --line: #3A3440;
    --accent: #F0715D; --accent-ink: #1F1B22; --soft: #3A2A2C;
    --good: #6CC08F; --good-soft: #1E3327; --bad: #F08A80; --bad-soft: #3D2226;
    --warn: #F2C46B; --warn-soft: #332A1A; --warn-line: #54462A;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px calc(56px + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
h1, h2, h3, .btn, .brand, .name, .chip, .num { font-family: var(--round); font-weight: 600; }
h1 { font-size: 32px; line-height: 1.12; margin: 10px 0 6px; letter-spacing: -.005em; }
h2 { font-size: 21px; line-height: 1.25; margin: 0; }
h3 { font-size: 18px; margin: 0 0 6px; }
h2 em, .l em { font-style: normal; color: var(--muted); font-weight: 400; font-family: system-ui, sans-serif; font-size: .8em; }
p { margin: 0; }
.sub { color: var(--muted); margin: 0 0 20px; }
.meta { color: var(--muted); font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; text-align: center; }
.hint { color: var(--muted); font-size: 15px; }
.stack > * + * { margin-top: 14px; }

/* header */
.top { display: flex; align-items: center; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 19px; line-height: 1.2;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); font-size: 17px; min-height: 52px; }
.btn[disabled] { opacity: .6; cursor: default; }
.linkish { background: none; border: 0; padding: 12px; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 28px 18px; margin-top: 20px; }
.empty .btn { margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 11px; border-radius: 999px; font-size: 14px; line-height: 1.5; background: var(--soft); color: var(--accent); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.lock { background: var(--ink); color: var(--paper); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* login */
.center main { min-height: 100svh; display: grid; align-items: center; }
.login { text-align: center; }
.login .logo { width: 72px; height: 72px; margin: 0 auto 4px; display: block; }
.login h1 { font-weight: 700; }
.login form { text-align: left; margin: 8px 0 18px; }

/* the films list */
.films { list-style: none; padding: 0; margin: 22px 0 0; }
.films li + li { margin-top: 12px; }
.film { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 12px; color: inherit; text-decoration: none; }
.thumb { width: 104px; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--soft) center / cover no-repeat; display: grid; place-items: center; color: var(--accent); }
.info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.name { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.info .meta { font-size: 14px; }
.more { display: inline-block; margin: 2px 0 0 12px; padding: 6px 0; font-size: 14px; color: var(--muted); }
.signout { text-align: center; margin-top: 28px; }

/* the form */
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 16px; vertical-align: 2px; }
.field { display: block; }
.field .l { display: block; font-weight: 600; margin-bottom: 6px; }
.field small, .check small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.4; }
input[type=text], input[type=password], textarea {
  display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; -webkit-appearance: none; appearance: none; }
textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
textarea[name=lyrics] { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; min-height: 220px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.drop .ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); }
.drop .what { display: flex; flex-direction: column; min-width: 0; }
.drop strong { font-weight: 600; overflow-wrap: anywhere; }
.drop small { color: var(--muted); font-size: 14px; }
.drop.picked { border-style: solid; border-color: var(--good); }
.drop.picked .ico { background: var(--good-soft); color: var(--good); }
.drop.bad { border-color: var(--bad); }
.drop:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.thumbs img.bad { outline: 3px solid var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
.check.needed { background: var(--warn-soft); }
.submit { margin-top: 22px; }
.error { color: var(--bad); font-weight: 600; }
.error-box { border-color: var(--bad); background: var(--bad-soft); }
.error-box ul { margin: 6px 0 0; padding-left: 20px; }
.upload .bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.upload .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s; }
.upload .meta { margin-top: 8px; text-align: center; }

/* progress */
.status h2 { font-size: 23px; }
.status > .meta { margin-top: 4px; }
.status > .btn, .status > form { margin-top: 16px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.step > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.step .name { font-size: 18px; line-height: 1.3; }
.step .meta { overflow-wrap: anywhere; }
.step.waiting .name { color: var(--muted); }
.dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--line); color: #fff; }
.step.done .dot { background: var(--good); border-color: var(--good); }
.step.failed .dot { background: var(--bad); border-color: var(--bad); }
.step.running .dot { border-color: var(--soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin-top: 14px; background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink); }
.notice h3 { color: var(--warn); }
.notice ul { margin: 6px 0 10px; padding-left: 20px; }
.notice li + li { margin-top: 4px; }
.details { margin-top: 14px; font-size: 14px; }
.details summary { cursor: pointer; color: var(--muted); padding: 10px 0; }
.details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 360px; overflow: auto; }
.aside { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.aside .btn { margin-top: 12px; }

@media (min-width: 700px) {
  main { padding-top: 28px; }
  h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .step.running .dot { animation-duration: 3s; }
  .pulse { animation: none; }
}
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; margin-top: 6px; }

/* ── the intake by kind ─────────────────────────────────────────────────── */
fieldset { margin: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); }
.types { display: grid; gap: 10px; }
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; }
.tc-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 52px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); position: relative; }
.tc-body::before { content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.tc-title { font: 600 19px/1.25 var(--round); }
.tc-blurb { color: var(--muted); font-size: 15px; line-height: 1.35; }
.type-card input:checked + .tc-body { border-color: var(--accent); background: var(--soft); }
.type-card input:checked + .tc-body::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--card); }
.type-card input:focus-visible + .tc-body { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two.narrow-first { grid-template-columns: 7rem 1fr; }
.two > * { min-width: 0; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.row-card .two:first-of-type, .row-card > .two:first-child { padding-right: 34px; }
.rowx { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.rowx:hover { background: var(--line); }
.row-card input[type=text], .row-card textarea { background: var(--card); }
.btn.add { min-height: 48px; font-size: 16px; }
.drop.small { min-height: 56px; padding: 8px 12px; background: var(--card); }
.drop.small .ico { width: 38px; height: 38px; border-radius: 11px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 16px; }
.pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.after-type[hidden] { display: none; }
[hidden] { display: none !important; }

/* ── the week ───────────────────────────────────────────────────────────── */
.week { margin-top: 14px; }
.weeklist { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.wk { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.wk:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 34px; bottom: -6px; width: 2px; background: var(--line); }
.wk.done:not(:last-child)::after { background: var(--good); }
.wdot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--card); display: grid; place-items: center; color: #fff; }
.wdot svg { width: 14px; height: 14px; }
.wk.done .wdot { background: var(--good); border-color: var(--good); }
.wk.now .wdot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); background: var(--accent); }
.wtext { display: flex; flex-direction: column; }
.wlabel { font: 600 17px/1.25 var(--round); }
.wlabel em { font: 600 12px/1 var(--round); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.wk.next .wlabel { color: var(--muted); }
.wdate { font-size: 14px; color: var(--muted); }

/* ── the family's holding page and song picker ──────────────────────────── */
.for-name { font: 600 18px/1.2 var(--round); color: var(--accent); margin: 18px 0 0; }
.holding { text-align: center; padding: 26px 20px; margin-top: 10px; }
.hold-art { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px; background: var(--soft); color: var(--accent); display: grid; place-items: center; animation: breathe 3s ease-in-out infinite; }
.hold-art svg { width: 36px; height: 36px; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.holding h2 { font-size: 24px; margin-bottom: 8px; }
.intro { margin: 14px 0 12px; }
.intro h2 { font-size: 24px; margin-bottom: 4px; }
.song header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.song header h3 { font-size: 21px; margin: 0; flex: 1 1 60%; }
.song-n { font: 600 12px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 5px 9px; border-radius: 99px; }
.song audio, .song-row audio { width: 100%; }
.lyrics { margin: 12px 0; }
.lyrics summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--accent); }
.lyrics .verse { margin: 10px 0; }
.lyrics h4 { font: 600 12px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.lyrics p { margin: 0; line-height: 1.45; }
.lyrics pre { white-space: pre-wrap; font: 14px/1.45 ui-monospace, Menlo, monospace; background: var(--paper); padding: 10px; border-radius: 10px; max-height: 280px; overflow: auto; }
.songs { margin-top: 6px; }

/* ── the director's desk ────────────────────────────────────────────────── */
.chips-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.accent { background: var(--accent); color: var(--accent-ink); }
.chips-top + h1 { margin-top: 8px; }
.links { margin-bottom: 14px; }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.linkrow .l { grid-column: 1 / -1; font-weight: 600; font-size: 14px; color: var(--muted); }
.linkrow .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mini { min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1 var(--round); cursor: pointer; }
.mini-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; min-height: 36px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btnrow > * { flex: 1 1 140px; }
.btnrow form .btn { width: 100%; }
#review, #songs, #gift, #family { margin-top: 14px; }
#live { margin-top: 14px; }
.flash { background: var(--good-soft); border-color: var(--good); color: var(--ink); margin-bottom: 14px; }
.song-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 0; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.inline-form .field { flex: 1; }
.inline-form .btn { width: auto; min-height: 50px; }
input[type=date] { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 14px; }
#gift video, .row-card video { display: block; width: 100%; border-radius: 12px; background: #1B1520; }
#gift h3 { margin-top: 8px; }
ul.plain { margin: 0; padding-left: 18px; }
.autorel .check { padding-left: 0; }

/* ── the films list, by family ──────────────────────────────────────────── */
.family { margin-top: 26px; }
.fam-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fam-head h2 { font-size: 20px; }
.family .films { margin-top: 10px; }
.kind { font: 600 12px/1 var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ── the dashboard ──────────────────────────────────────────────────────── */
.wide main { max-width: 1180px; }
input[type=tel], input[type=email] { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; -webkit-appearance: none; appearance: none; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-head .sub { margin-bottom: 8px; }
.dash-head .btn { width: auto; flex: none; margin-bottom: 14px; }
.late-text { color: var(--bad); font-weight: 600; }
.lanes { display: grid; gap: 18px; }
@media (min-width: 900px) { .lanes { grid-template-columns: repeat(3, 1fr); align-items: start; } .lane-us { grid-row: span 2; } }
.lane h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 6px 0 10px; }
.lane .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--line); font-size: 14px; }
.lane-us .count { background: var(--accent); color: var(--accent-ink); }
.lane-empty { padding: 4px 2px 8px; }
.job { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px; margin-bottom: 10px; }
.job.late { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad), var(--shadow); }
.job-main { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.job-fam { font-size: 13px; color: var(--muted); font-weight: 600; }
.job-title { font: 600 18px/1.25 var(--round); overflow-wrap: anywhere; }
.job-meta { font-size: 14px; color: var(--muted); }
.due { align-self: start; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--accent); }
.due.is-late { background: var(--bad); color: #fff; }
.job-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.btn.small { width: auto; min-height: 44px; padding: 10px 18px; font-size: 16px; }
.textrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.now .textrow { margin-top: 12px; }
.now .textrow .btn { flex: 1 1 auto; }
.families { margin-top: 28px; }
.families h2 { font-size: 19px; margin-bottom: 10px; }
.fams { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .fams { grid-template-columns: repeat(2, 1fr); } }
.fam { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; }
.fam > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam .btn { flex: none; }

/* ── the desk: now, turnaround, the brief ───────────────────────────────── */
.now { margin-bottom: 14px; }
.now.late { border-color: var(--bad); }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.now-stage { font: 600 21px/1.2 var(--round); }
.turnaround { margin-top: 14px; }
.turnaround summary { cursor: pointer; font-weight: 600; }
.hist { margin: 10px 0 0; padding-left: 20px; }
.hist li { margin: 4px 0; }
.hist li span + span { display: block; }
#intake, #brief, #production { margin-top: 14px; }
#production video { display: block; width: 100%; border-radius: 12px; background: #1B1520; }
code { font-size: .9em; overflow-wrap: anywhere; }
.brief h2 { font-size: 26px; margin: 0 0 8px; }
.brief h3 { font-size: 20px; margin: 20px 0 6px; }
.brief h4 { font-size: 17px; margin: 14px 0 4px; }
.brief p, .brief li { font-size: 16px; }
.brief p { margin: 6px 0; }
.tablewrap { overflow-x: auto; }
.brief table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.brief th, .brief td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.thumbs.big { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs.big a { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.draft video { display: block; width: 100%; border-radius: 12px; background: #1B1520; }
.draft { padding: 8px; margin-bottom: 14px; }

/* ── round 3: consent, alerts, deletion, the legal drafts ───────────────── */
.texted { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--good); font-weight: 600; }
.texted svg { width: 14px; height: 14px; }
.inbox { margin: 0 0 18px; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inbox-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.inbox-head .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.alerts { list-style: none; margin: 8px 0 6px; padding: 0; }
.alert { display: flex; flex-direction: column; gap: 1px; padding: 9px 0 9px 14px; border-top: 1px solid var(--line); position: relative; }
.alert a { color: var(--ink); text-decoration: none; }
.alert.unread a { font-weight: 600; }
.alert.unread::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.alert.ev-failed.unread::before, .alert.ev-disk.unread::before, .alert.ev-held.unread::before { background: var(--bad); }
.alert .meta { font-size: 13px; }
.fine-left { font-size: 13px; }
.signout { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 4px; }
.signout form { display: inline; }
.consent-list { list-style: none; padding: 0; }
.consent-list li { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.consent-list svg { flex: none; margin-top: 4px; }
#consent, #lyrics, #data, #hold { margin-top: 14px; }
#hold { margin-bottom: 14px; }
.danger summary { cursor: pointer; color: var(--bad); font-weight: 600; padding: 8px 0; }
.btn.danger-btn { background: var(--bad); color: #fff; }
.pulse { display: inline-block; vertical-align: 1px; margin-right: 4px; color: var(--accent); }
.draft-banner { margin: 14px 0 6px; font-size: 15px; }
.legal section { margin-top: 14px; }
.legal section ul { margin: 6px 0 0; padding-left: 20px; }
.legal section li + li { margin-top: 6px; }
.legal .fine { margin-top: 22px; }
/* the intake: permission, person by person */
.ages { display: flex; flex-wrap: wrap; gap: 6px; }
.ages .pick span { min-height: 38px; padding: 6px 10px; font-size: 15px; }
.pconsent { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pconsent .l { font-weight: 600; font-size: 15px; }
.pconsent .check { padding: 4px 0; }
.pconsent.needed { background: var(--warn-soft); border-color: var(--warn-line); }
.guardian { display: flex; flex-direction: column; gap: 6px; }
.consent-card .check { border: 1px solid var(--line); }
.consent-card .check.needed { border-color: var(--warn-line); }
.consent-card .links { margin: 0; font-size: 15px; }
.thumbs img.wait { opacity: .45; }
.left { text-align: left; }
.bad-text { color: var(--bad); }

/* the desk: voice notes, the song desk, the look step */
.voice-note audio { width: 100%; }
.voice-note textarea { background: var(--card); }
.song-desk { border-top: 1px solid var(--line); padding-top: 14px; }
.song-desk h3 { margin: 0; }
.suno .l { display: block; font-weight: 600; font-size: 14px; color: var(--muted); }
.style-prompt { font: 15px/1.4 ui-monospace, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; }
.btnrow.tight { gap: 8px; }
.btnrow.tight > * { flex: 1 1 auto; }
.look-takes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.look-take { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; }
.look-take:has(input:checked) { border-color: var(--accent); }
.look-take.chosen { box-shadow: 0 0 0 3px var(--good); }
.look-take input { position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; accent-color: var(--accent); }
.look-take img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--line); }
.lt-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.25; }
.lt-meta .chip { align-self: flex-start; font-size: 12px; }
.sheet-img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* the intake: voice notes */
.voice .l { font-weight: 600; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.voice-actions .btn { flex: 1 1 160px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.recording { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bad-soft); color: var(--bad); font: 600 20px/1 var(--round); }
.recording #recTime { flex: 1; font-variant-numeric: tabular-nums; }
.recording .btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bad); color: #fff; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s ease-in-out infinite; }
.voice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.voice-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.voice-list .vn-name { font-weight: 600; }
.voice-list .vn-state { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.voice-list .vn-state.bad { color: var(--bad); }
.voice-list audio { grid-column: 1 / -1; width: 100%; height: 40px; }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* production on lock: the draft, the studio's verdict, the master (desk) */
.good-text { color: var(--good); }
.produce-job h3 { margin: 0; }
.produce-job .upload { margin-top: 2px; }
.review-form textarea { min-height: 76px; }
details.by-hand { border-top: 1px dashed var(--line); padding-top: 10px; }
details.by-hand summary { cursor: pointer; color: var(--muted); font-size: 15px; }
details.by-hand[open] summary { margin-bottom: 10px; }
details.logs summary { cursor: pointer; color: var(--muted); font-size: 15px; }
details.logs pre { max-height: 260px; overflow: auto; white-space: pre-wrap; }
/* the family's notes on their first cut, on a timeline */
.timeline { position: relative; height: 34px; margin: 6px 14px 0; border-bottom: 3px solid var(--line); }
.timeline .tick { position: absolute; bottom: -12px; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); background: var(--accent); color: var(--accent-ink); font: 600 13px/1 var(--round); padding: 0; cursor: pointer; }
.timeline .end { position: absolute; right: -10px; top: -2px; font-size: 12px; color: var(--muted); }
.marks { margin: 10px 0 0; padding-left: 22px; }
.marks li { margin: 6px 0; }
.marks .mini { margin-right: 6px; }
/* the review log */
.review-log { margin: 10px 0 0; padding: 0; list-style: none; }
.review-line { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.review-line .chip { font-size: 12px; padding: 1px 8px; vertical-align: 1px; }
.review-line .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.review-line .thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--line); }
/* the family's first cut: notes at moments */
.moment { display: flex; flex-direction: column; gap: 8px; }
.moment .btn { width: 100%; }
.moment-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.moment-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.moment-list .at { font: 600 15px/1.4 var(--round); color: var(--accent); min-width: 40px; }
.moment-list .txt { flex: 1; overflow-wrap: anywhere; }
.moment-list button { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; }
.moment-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--soft); }
.moment-edit[hidden] { display: none; }


/* the desk's inquiries (from the public site's form) */
.inquiries .inquiry { padding: 12px 0; border-top: 1px solid var(--line); }
.inquiries .inquiry.read { opacity: 0.6; }
.inquiry-head { display: flex; justify-content: space-between; gap: 12px; }
.inquiry-story { white-space: pre-wrap; color: var(--ink-2); font-size: 15px; margin: 6px 0; }
form.inline { display: inline; }
