/* SOUNDAR design system (context/brand.md). Tokens first, then components, then screens.
   Everything sits on the 8px grid; one radius scale, one shadow scale, light and dark. */

/* ------------------------------------------------------------------ fonts (served by SOUNDAR, OFL)
   One type system for the whole product (round 11, context/brand.md): Bricolage Grotesque for page titles and big
   headings, Geist for UI text, Geist Mono for numbers, data, timecodes and labels, Archivo for the wordmark only.
   The same faces as static/public-fonts.css (the public pages), so the browser loads each file once. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/static/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/static/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/static/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/static/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ tokens */
:root {
  /* brand */
  --ink: #111114; --paper: #F5F3EE; --signal: #FF5B2E; --signal-hi: #FF6B40; --signal-lo: #F2511F; --pulse: #3D3BF3;
  /* surfaces and text (light) */
  --bg: var(--paper); --card: #FFFFFF; --text: var(--ink); --graphite: #55555C; --muted: var(--graphite);
  --line: #E4E1DA; --line-strong: #CFCBC2; --soft: #EEEBE4; --soft-2: #E7E3DA; --on-signal: var(--ink);
  --link: var(--pulse); --up: #1F7A4A; --down: #B3372A; --warn: #8A5300; --warn-soft: #FBEFD9;
  --ok-soft: #E3F1E8; --bad-soft: #FBE7E3; --signal-soft: #FFE5DC; --pulse-soft: #E7E7FE; --signal-text: #B23A12;
  --wave-off: #C9C6BE; --wave-on: var(--signal);
  /* 8px spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* radius scale */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  /* shadows: a tight one plus a wide, faint one */
  --shadow-1: 0 1px 2px rgba(17, 17, 20, .06), 0 6px 20px -6px rgba(17, 17, 20, .08);
  --shadow-2: 0 2px 4px rgba(17, 17, 20, .07), 0 16px 36px -10px rgba(17, 17, 20, .16);
  --shadow-3: 0 4px 10px rgba(17, 17, 20, .08), 0 28px 64px -12px rgba(17, 17, 20, .26);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .45);
  /* type */
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;   /* numbers, data, timecodes, labels (tabular) */
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif; /* page titles and big headings */
  --font-brand: "Archivo", "Geist", system-ui, sans-serif;               /* the SOUNDAR wordmark only */
  /* motion */
  --t-fast: 150ms; --t: 180ms; --ease: cubic-bezier(.2, .7, .3, 1);
  --page: 1200px; --gutter: var(--s5);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--ink); --card: #1E1E23; --text: var(--paper); --graphite: #B9B7B0; --muted: var(--graphite);
  --line: #2E2E35; --line-strong: #3F3F48; --soft: #26262C; --soft-2: #2E2E35;
  --link: #9A99FF; --up: #5FD08F; --down: #FF8A7A; --warn: #F2B85C; --warn-soft: #3A2F1C;
  --ok-soft: #1D3428; --bad-soft: #3C2220; --signal-soft: #3D231B; --pulse-soft: #24244A; --signal-text: #FF8F6E;
  --wave-off: #4A4A53;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px -10px rgba(0, 0, 0, .65);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, .5), 0 30px 70px -12px rgba(0, 0, 0, .75);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .28);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink); --card: #1E1E23; --text: var(--paper); --graphite: #B9B7B0; --muted: var(--graphite);
    --line: #2E2E35; --line-strong: #3F3F48; --soft: #26262C; --soft-2: #2E2E35;
    --link: #9A99FF; --up: #5FD08F; --down: #FF8A7A; --warn: #F2B85C; --warn-soft: #3A2F1C;
    --ok-soft: #1D3428; --bad-soft: #3C2220; --signal-soft: #3D231B; --pulse-soft: #24244A; --signal-text: #FF8F6E;
    --wave-off: #4A4A53;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px -10px rgba(0, 0, 0, .65);
    --shadow-3: 0 4px 12px rgba(0, 0, 0, .5), 0 30px 70px -12px rgba(0, 0, 0, .75);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, .28);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { overflow-anchor: none; }          /* live updates keep the reader's place themselves (static/live.js) */
body { font-family: var(--font-ui); font-size: 15px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--text); }
h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 300; letter-spacing: -0.03em;
  font-optical-sizing: auto; }
h2 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 var(--s3); }
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.035em; font-optical-sizing: auto;
  font-size: 32px; line-height: 1.1; }
.display .acc, h1 .acc { font-weight: 800; }          /* the key word(s) of a title */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
::selection { background: var(--signal-soft); }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ the blip (symbol), and the blip loader */
:root { --blip-1: .60; --blip-2: .35; --blip-3: .18; }
:root[data-theme="dark"] { --blip-1: .55; --blip-2: .30; --blip-3: .14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --blip-1: .55; --blip-2: .30; --blip-3: .14; } }
.mark { width: 28px; height: 28px; flex: none; display: block; overflow: visible; }
.blip .b-dot { fill: var(--signal); }
.blip .b-r { fill: none; stroke: var(--signal); }
.blip .b-r1 { stroke-opacity: var(--blip-1); } .blip .b-r2 { stroke-opacity: var(--blip-2); } .blip .b-r3 { stroke-opacity: var(--blip-3); }
/* the loader: rings grow from the dot to the outer ring and fade, staggered, 1.6 s a cycle */
.blip-loader { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s3); color: var(--muted); }
.blip-loader .blip-anim { width: 48px; height: 48px; overflow: visible; }
.bl-sm { flex-direction: row; gap: var(--s2); } .bl-sm .blip-anim { width: 18px; height: 18px; }
.bl-lg .blip-anim { width: 96px; height: 96px; }
.bl-text { font-size: 14px; text-align: center; max-width: 34ch; }
.ba-dot { fill: var(--signal); }
.ba-r { fill: none; stroke: var(--signal); stroke-width: 3; transform-box: fill-box; transform-origin: center;
  opacity: 0; animation: blip-ring 1.6s cubic-bezier(.2, .6, .35, 1) infinite; }
.ba-r:nth-child(2) { animation-delay: .53s; } .ba-r:nth-child(3) { animation-delay: 1.07s; }
.bl-sm .ba-r { stroke-width: 6; }
@keyframes blip-ring { 0% { transform: scale(.26); opacity: .75; } 100% { transform: scale(1); opacity: 0; } }
/* reduced motion: the rings stay, still; the dot fades gently in and out */
@media (prefers-reduced-motion: reduce) {
  .ba-r { animation: none; opacity: 1; }
  .ba-r:nth-child(1) { transform: scale(.478); stroke-opacity: var(--blip-1); }
  .ba-r:nth-child(2) { transform: scale(.739); stroke-opacity: var(--blip-2); }
  .ba-r:nth-child(3) { transform: none; stroke-opacity: var(--blip-3); }
  .ba-dot { animation: blip-dot 2s ease-in-out infinite; }
}
@keyframes blip-dot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* waiting: hidden for the first ~300 ms, so instant things never flicker (static/skout.js) */
[data-wait] { opacity: 0; transition: opacity 200ms var(--ease); }
[data-wait].shown { opacity: 1; }
/* a button that is sending: the small blip replaces its icon (and the button doesn't fade) */
.btn.is-busy:disabled { opacity: 1; cursor: progress; }
.btn .blip-loader.bl-sm { color: inherit; }
.btn .blip-loader .ba-dot { fill: currentColor; } .btn .blip-loader .ba-r { stroke: currentColor; }
.empty.wait { padding-top: var(--s7); }
.empty.wait .blip-loader { margin-bottom: var(--s3); }
.scanning { margin: 0 0 var(--s4); }
.no-wave .blip-loader { color: var(--muted); }
.modal-wait { display: grid; place-items: center; min-height: 220px; }
.page-wait { position: fixed; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent);
  z-index: 90; pointer-events: none; }
/* the bell: one quick ring pulse when something new arrives */
.bell summary { position: relative; }
.bell summary.ping::before { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 2px solid var(--signal); animation: bell-ping 900ms cubic-bezier(.2, .6, .35, 1) 1 both; pointer-events: none; }
@keyframes bell-ping { from { transform: scale(.4); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bell summary.ping::before { animation: none; opacity: 0; } }

/* ------------------------------------------------------------------ buttons */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--h); padding: 0 var(--s4); border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  color: var(--text); background: transparent; position: relative; user-select: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease),
              border-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
/* primary: solid Signal, Ink text, a 1px top highlight and a small soft shadow; pressed moves down 1px */
.btn.primary, .btn:not(.secondary):not(.quiet):not(.ghost):not(.icon):not(.danger) {
  color: var(--on-signal); border-color: var(--signal-lo); background: var(--signal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(17, 17, 20, .14); font-weight: 600; }
.btn.primary:hover:not(:disabled), .btn:not(.secondary):not(.quiet):not(.ghost):not(.icon):not(.danger):hover:not(:disabled) {
  background: var(--signal-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(17, 17, 20, .16); }
.btn.primary:active:not(:disabled), .btn:not(.secondary):not(.quiet):not(.ghost):not(.icon):not(.danger):active:not(:disabled) {
  background: var(--signal-lo); box-shadow: inset 0 1px 2px rgba(17, 17, 20, .2); }
/* secondary: outline */
.btn.secondary, .btn.ghost { border-color: var(--line-strong); background: var(--card); box-shadow: 0 1px 1px rgba(17, 17, 20, .04); }
.btn.secondary:hover:not(:disabled), .btn.ghost:hover:not(:disabled) { border-color: var(--text); }
/* quiet: text only */
.btn.quiet { color: var(--muted); padding: 0 var(--s3); }
.btn.quiet:hover:not(:disabled) { color: var(--text); background: var(--soft); }
.btn.danger { color: var(--down); border-color: var(--line-strong); background: var(--card); }
.btn.icon { width: var(--h); padding: 0; color: var(--muted); border-color: var(--line-strong); background: var(--card);
  box-shadow: 0 1px 1px rgba(17, 17, 20, .04); flex: none; }
.btn.icon:hover { color: var(--text); border-color: var(--text); }
.btn.icon.on { color: var(--text); }
.btn.is-done:disabled { opacity: 1; color: var(--up); background: var(--ok-soft); border-color: transparent; box-shadow: none; }
.btn.is-done svg { width: 16px; height: 16px; }
/* tooltips: [data-tip] shows its words on hover and keyboard focus (the same words are the aria-label) */
.tip { position: relative; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  padding: 7px 9px; border-radius: 8px; pointer-events: none; opacity: 0; z-index: 40;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
details[open] > .tip::after { opacity: 0; }
@media (hover: none) { .tip:hover::after { opacity: 0; } }
:root[data-theme="dark"] .tip::after { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip::after { background: var(--paper); color: var(--ink); } }
button.link.danger { color: var(--down); }
button.link svg, a.link svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
a.link { font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; }
a.link:hover { text-decoration: underline; }
.btn.big { --h: 52px; font-size: 16px; padding: 0 var(--s5); border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.small { --h: 36px; font-size: 14px; padding: 0 var(--s3); }
button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--link);
  cursor: pointer; min-height: 0; }
button.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ inputs */
label.field { display: block; font-weight: 500; font-size: 14px; margin: var(--s4) 0 var(--s2); color: var(--text); }
label.field .opt, .opt { color: var(--muted); font-weight: 400; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.field-row a { font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--card); width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 var(--s3); min-height: 48px;
  box-shadow: inset 0 1px 2px rgba(17, 17, 20, .04); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
textarea { padding: var(--s3); resize: vertical; line-height: 1.55; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355555C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pulse); box-shadow: 0 0 0 3px var(--pulse-soft); }
.hint { color: var(--muted); font-size: 13px; margin: var(--s2) 0 0; }
.error, .notice { display: flex; gap: var(--s2); align-items: flex-start; border-radius: var(--r-sm); padding: var(--s3) var(--s4);
  font-size: 14px; margin: 0 0 var(--s4); }
.error { background: var(--bad-soft); color: var(--down); }
.notice { background: var(--ok-soft); color: var(--text); }
.check { display: flex; align-items: center; gap: var(--s3); font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--signal); margin: 0; flex: none; }

/* switch (toggle): one component everywhere (ui.switch in _ui.html). The knob sits in a flex track, so it is
   centred by layout, not by pixel offsets; 3px of track shows on every side. Grey off, Signal on. */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; font-weight: 500;
  user-select: none; min-height: 44px; min-width: 44px; -webkit-tap-highlight-color: transparent; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.switch-track { box-sizing: border-box; display: inline-flex; align-items: center; flex: none; width: 48px; height: 28px; padding: 3px;
  border-radius: var(--r-pill); background: var(--line-strong); transition: background-color var(--t) var(--ease); }
.switch-knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .28), 0 2px 6px rgba(17, 17, 20, .12); transition: transform var(--t) var(--ease); }
.switch:hover .switch-track { background: color-mix(in srgb, var(--line-strong) 80%, var(--text)); }
.switch input:checked + .switch-track { background: var(--signal); }
.switch:hover input:checked + .switch-track { background: var(--signal-hi); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--pulse); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .45; }
.switch:has(input:disabled) { cursor: not-allowed; }
.switch-label { line-height: 1.3; }
.switch-list { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); margin-top: var(--s2); }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-knob { transition: none; } }

/* segmented control (New | Watchlist, To review | Answered, the look) */
.segmented { display: inline-flex; background: var(--soft); border-radius: var(--r-pill); padding: var(--s1);
  box-shadow: inset 0 1px 2px rgba(17, 17, 20, .06); }
.segmented a, .segmented label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4);
  border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.segmented a.on, .segmented label:has(input:checked) { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.segmented .n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--pulse); outline-offset: 2px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.chip.on .n { color: inherit; opacity: .7; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: 12px;
  font-weight: 500; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--up); }
.tag.radar { background: var(--warn-soft); color: var(--warn); }
.dot-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--signal); color: var(--on-signal); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 500; line-height: 1; }

/* surfaces */
.panel, .surface { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.panel { padding: var(--s5); margin-bottom: var(--s4); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.panel-head p { margin: var(--s1) 0 0; }

/* skeleton loaders */
.skel { position: relative; overflow: hidden; background: var(--soft); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); } }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 14px; margin: 0 0 var(--s3); }
.skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; } .skel-line.w40 { width: 40%; }
.skel-box { height: 220px; border-radius: var(--r-sm); }

/* empty states: the mark and a friendly line */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s8) var(--s5);
  background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
.empty .mark { width: 56px; height: 56px; margin-bottom: var(--s2); }
.empty strong { color: var(--text); font-size: 17px; font-weight: 600; }
.empty p { margin: 0; max-width: 420px; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); }
/* The lockups (context/brand.md): the symbol is 1.35 x the cap height (Archivo's capitals are .686 em), the gap
   .3 x the symbol; the wordmark always Archivo 125 / 800, normal spacing, "AR" in Signal. */
.logo { --cap: .686em; display: inline-flex; align-items: center; gap: calc(.3 * 1.35 * var(--cap)); color: var(--text);
  text-decoration: none; justify-self: start; min-height: 44px; font-size: 22px; line-height: 1; }
.logo .mark { width: calc(1.35 * var(--cap)); height: calc(1.35 * var(--cap)); }
.word { font-family: var(--font-brand); font-stretch: 125%; font-weight: 800; letter-spacing: normal; color: var(--text); }
.word .ar { color: var(--signal); }
.logo.stacked { flex-direction: column; gap: calc(.3 * 2.2 * var(--cap)); }
.logo.stacked .mark { width: calc(2.2 * var(--cap)); height: calc(2.2 * var(--cap)); }
.tabs { display: flex; gap: var(--s1); background: var(--soft); padding: var(--s1); border-radius: var(--r-pill); }
.tabs a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill);
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.top-right { display: flex; align-items: center; gap: var(--s2); justify-self: end; }
/* Greg only: a slim, quiet line under the top bar (test mode and the data source) */
.admin-banner { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; padding: 3px var(--s3); line-height: 18px; }
.admin-banner a { color: inherit; text-decoration: none; }
.admin-banner a:hover { color: var(--text); }

/* bell and user menu */
.bell, .bubble { position: relative; }
.bell summary, .bubble summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); position: relative; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.bell summary::-webkit-details-marker, .bubble summary::-webkit-details-marker { display: none; }
.bell summary:hover, .bell[open] summary { background: var(--soft); color: var(--text); }
.bell summary svg { width: 22px; height: 22px; }
.bell .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--signal); color: var(--on-signal); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 500; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: var(--ink); color: var(--paper); overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
:root[data-theme="dark"] .avatar { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: var(--paper); color: var(--ink); } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; right: 0; top: 52px; min-width: 260px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: var(--s2); z-index: 30; transform-origin: top right;
  animation: pop var(--t) var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu .who { padding: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); display: flex; gap: var(--s3); align-items: center; }
.menu .who strong { display: block; font-weight: 600; }
.menu a, .menu > form > button, .menu .menu-item { display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left; min-height: 44px;
  padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--text); text-decoration: none; background: none; border: 0; font: inherit;
  font-size: 15px; cursor: pointer; }
.menu a:hover, .menu > form > button:hover, .menu .menu-item:hover { background: var(--soft); }
.menu a svg, .menu button svg { width: 18px; height: 18px; color: var(--muted); }
.menu form { margin: var(--s2) 0 0; border-top: 1px solid var(--line); padding-top: var(--s2); }
.menu.notes { width: min(380px, calc(100vw - 24px)); padding: var(--s2); }
.notes-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3) var(--s3);
  border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.menu .notes-head form { margin: 0; padding: 0; border: 0; }
.menu a.note { align-items: flex-start; padding: var(--s3); min-height: 0; position: relative; }
.note .note-t { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.note.unread .note-t { color: var(--text); font-weight: 500; }
.note .note-when { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.note-ic { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.note-ic svg { width: 18px; height: 18px; }
.note.unread .note-ic { background: var(--signal-soft); color: var(--text); }
.note.unread::after { content: ""; position: absolute; right: var(--s3); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--signal); }
.notes-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s5) var(--s4); margin: 0; }
.notes-empty .mark { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ page */
.page { max-width: var(--page); margin: 0 auto; padding: var(--s6) var(--gutter) var(--s8); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head p { margin: var(--s2) 0 0; color: var(--muted); }
.footer { max-width: var(--page); margin: 0 auto; padding: var(--s5) var(--gutter) var(--s6); color: var(--muted); font-size: 12px;
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer a { color: inherit; }
.section-title { font-family: var(--font-num); font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 var(--s3); }

/* the Autopilot bar on the Artists tab */
.autopilot-bar { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: var(--s3) var(--s3) var(--s3) var(--s5); margin-bottom: var(--s5); }
.autopilot-bar .what { flex: 1; min-width: 220px; color: var(--muted); font-size: 14px; }
.autopilot-bar .what strong { color: var(--text); font-weight: 600; }
details.peek > summary { list-style: none; cursor: pointer; color: var(--link); font-weight: 500; font-size: 14px; min-height: 44px;
  display: inline-flex; align-items: center; gap: var(--s2); }
details.peek > summary::-webkit-details-marker { display: none; }
details.peek > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--t) var(--ease); }
details.peek[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.autopilot-bar details.peek { flex-basis: 100%; }
.autopilot-bar details.peek:not([open]) { flex-basis: auto; }
.example { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); padding: var(--s4); font: inherit;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; margin: 0; max-height: 420px; overflow: auto; }

.autopilot-bar:has(+ .contacted-line) { margin-bottom: var(--s3); }
.contacted-line { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s5) var(--s5); font-size: 14px; color: var(--muted); }
.contacted-line .mono { color: var(--text); font-weight: 500; }
.people-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.people-list li { display: flex; align-items: center; gap: var(--s3); min-height: 60px; border-bottom: 1px solid var(--line); }
.people-list li:last-child { border-bottom: 0; }
.people-list strong { display: block; font-weight: 500; }

/* ------------------------------------------------------------------ pictures */
.pic { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 19px;
  color: #fff; background: hsl(var(--hue, 20) 30% 38%); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.small { width: 40px; height: 40px; font-size: 14px; }
.pic.tiny { width: 28px; height: 28px; font-size: 11px; }

/* ------------------------------------------------------------------ artist cards: one fixed structure */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: var(--s5); align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card.gone { opacity: 0; transform: scale(.98); }
.cover { position: relative; aspect-ratio: 16 / 9; flex: none; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--hue, 20) 30% 26%), hsl(calc(var(--hue, 20) + 40) 35% 40%)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.loading::before { content: ""; position: absolute; inset: 0; background: var(--soft); }
.cover.loading::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shimmer 1.3s infinite; }
.cover-initials { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 40px; opacity: .9; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 36%), linear-gradient(0deg, rgba(0, 0, 0, .12), transparent 30%); }
.cover-tags { position: absolute; left: var(--s3); top: var(--s3); right: var(--s3); display: flex; gap: var(--s2); z-index: 1; }
/* One badge style ("Taking off", "Back on the radar", the watchlist date): same shape and size, a dot says which */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--text); }
.badge.hot::before, .badge.radar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.badge.hot::before { background: var(--signal); }
.badge.radar::before { background: var(--graphite); }
.cover-tags .badge { background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.cover-tags .badge.radar::before { background: #55555C; }
.badge.decided { background: var(--soft); color: var(--muted); }
.badge.decided.accept { background: var(--ok-soft); color: var(--up); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s4) var(--s4) var(--s4); gap: var(--s4); }
.card .who { height: 48px; min-width: 0; }
.card .who h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
.card .who .meta { font-size: 14px; line-height: 24px; color: var(--muted); margin: 0; }
/* highlight chips: at most 2, short copy that always fits (same size and contrast on demo cards) */
.highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.card .highlights { height: calc(28px * 2 + var(--s2)); }
.highlights li { display: inline-flex; align-items: center; gap: var(--s2); height: 28px; padding: 0 var(--s3); border-radius: var(--r-pill);
  background: var(--soft); color: var(--text); font-size: 13px; font-weight: 500; align-self: flex-start; white-space: nowrap; }
.highlights li svg { width: 14px; height: 14px; flex: none; color: var(--graphite); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  height: 76px; align-items: center; }
.stats > div { padding: 0 var(--s2); min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: var(--s2); }
.stats .chg { display: block; margin: 2px 0 0; line-height: 16px; }
.stats dd:not(:has(.chg))::after { content: ""; display: block; height: 18px; }   /* same height with or without a change */
.stats > div:first-child { padding-left: 0; }
.stats dt { font-family: var(--font-num); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: var(--muted); line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats dd { margin: var(--s1) 0 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; line-height: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; margin-left: var(--s1); }
.up { color: var(--up); } .down { color: var(--down); }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s3); }
.watch-note { font-size: 13px; color: var(--muted); margin: 0; height: 20px; }

/* The actions, on one line: Listen (solid Signal) · Contact (outline) · bookmark · × · ⋯ (square, same height).
   A card too narrow for that (a phone) gets two even rows: Listen and Contact, then the three icons
   spread across the width. Never a half-empty row. */
.card-body { container-type: inline-size; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) repeat(3, 44px); gap: var(--s2); }
.card-actions .btn { min-width: 0; padding: 0 var(--s2); gap: 6px; }
.card-actions .btn .lbl { overflow: hidden; text-overflow: ellipsis; }
.card-actions .more > summary { width: 44px; }
@container (max-width: 330px) {
  .card-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-actions > .btn:not(.icon) { grid-column: span 3; }
  .card-actions > .btn.icon, .card-actions > .more { grid-column: span 2; width: auto; }
  .card-actions .more > summary { width: 100%; }
}
.listen-btn { position: relative; overflow: hidden; }
.listen-btn svg { width: 12px; height: 12px; }
.listen-btn .i-pause { display: none; }
.listen-btn.playing .i-play { display: none; } .listen-btn.playing .i-pause { display: block; }
.listen-btn .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ink); opacity: .45; transition: width .25s linear; }
/* tooltips at the card's right edge open to the left, so they stay inside the card */
.card-actions .tip::after { left: auto; right: 0; transform: translateY(4px); }
.card-actions .tip:hover::after, .card-actions .tip:focus-visible::after { transform: translateY(0); }
.card-actions .more .menu { left: auto; right: 0; transform-origin: bottom right; }
.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more .menu { top: auto; bottom: 52px; left: 0; right: auto; min-width: 240px; transform-origin: bottom left; }

/* ------------------------------------------------------------------ modal and toast */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 48px);
  background: var(--card); color: var(--text); box-shadow: var(--shadow-3); }
dialog.modal[open] { animation: rise var(--t) var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }
dialog.modal::backdrop { background: rgba(17, 17, 20, .48); backdrop-filter: blur(3px); }
.modal-in { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.modal-head .x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; flex: none; }
.modal-head .x:hover { color: var(--text); }
.modal-head .x svg { width: 18px; height: 18px; }
.modal .to { font-size: 14px; color: var(--muted); margin: 0; }
.modal .to strong { color: var(--text); font-weight: 500; }
.modal textarea.body { min-height: 280px; font-size: 15px; }
.modal .row, .row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row .grow, .grow { flex: 1; min-width: 0; }
.modal .fine { font-size: 13px; color: var(--muted); margin: 0; }
.modal-loading { display: flex; flex-direction: column; gap: var(--s3); }
.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); background: var(--ink); color: var(--paper);
  padding: var(--s3) var(--s4) var(--s3) var(--s5); border-radius: var(--r-pill); display: flex; gap: var(--s4); align-items: center; z-index: 50;
  box-shadow: var(--shadow-3); max-width: calc(100vw - 32px); font-size: 14px; min-height: 48px; animation: rise var(--t) var(--ease); }
:root[data-theme="dark"] .toast { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--paper); color: var(--ink); } }
.toast button { background: none; border: 0; color: var(--signal); font: inherit; font-weight: 600; cursor: pointer; min-height: 36px; padding: 0 var(--s2); }

/* ------------------------------------------------------------------ Demos */
.demo-list { display: flex; flex-direction: column; gap: var(--s5); }
.artist-demos { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden;
  transition: opacity var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.artist-demos.gone { opacity: 0; }
.ad-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s5); border-bottom: 1px solid var(--line); }
.ad-head .pic { width: 64px; height: 64px; }
.ad-head h2 { font-size: 20px; }
.ad-head .meta { margin: var(--s1) 0 0; color: var(--muted); font-size: 14px; }
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(88px, auto)); gap: 0; margin: 0; }
.ad-stats > div { padding: 0 var(--s4); min-width: 0; }
.ad-stats > div + div { border-left: 1px solid var(--line); }
.ad-stats dt { font-family: var(--font-num); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.ad-stats dd { margin: var(--s1) 0 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; white-space: nowrap; }
.ad-body { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.ad-extra { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.their-note { margin: 0; padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-sm); white-space: pre-wrap; font-size: 14px; position: relative; }
.their-note .lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.tracks, .playlist { display: flex; flex-direction: column; gap: var(--s3); }
.track { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); display: grid; gap: var(--s3);
  grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center;
  background: var(--card); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t) var(--ease); }
.track.gone { opacity: 0; }
.track > .wave-wrap, .track > .t-comments, .track > .t-note, .track > .add-note { grid-column: 1 / -1; }
.add-note { justify-self: start; display: inline-flex; align-items: center; gap: var(--s1); color: var(--muted) !important; font-size: 13px !important;
  min-height: 32px !important; margin: calc(-1 * var(--s1)) 0; }
.add-note svg { width: 14px; height: 14px; margin: 0 !important; }
.add-note:hover { color: var(--text) !important; }
.track.playing { border-color: color-mix(in srgb, var(--signal) 55%, var(--line)); box-shadow: 0 0 0 3px var(--signal-soft); }
.track .t-head { min-width: 0; }
.is-shortlist .track { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.track .t-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice svg, .error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.track .t-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.track .t-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .t-meta { font-size: 12px; color: var(--muted); font-family: var(--font-num); font-variant-numeric: tabular-nums; margin-top: 2px; }
.track .t-tools { display: flex; align-items: center; gap: var(--s2); }
.t-tools .more .menu { top: 52px; bottom: auto; left: auto; right: 0; transform-origin: top right; }
.t-tools .tip::after { left: auto; right: 0; transform: translateY(4px); }
.t-tools .tip:hover::after, .t-tools .tip:focus-visible::after { transform: translateY(0); }
.artist-demos.is-shortlist { overflow: visible; }          /* so a track's ⋯ menu is never cut */
.artist-demos.is-shortlist > .ad-head { border-radius: var(--r-md) var(--r-md) 0 0; }
.artist-demos.is-shortlist > .reply-to { border-radius: 0 0 var(--r-md) var(--r-md); }
.track .wave-wrap { display: flex; align-items: center; gap: var(--s3); }
.track input.note { font-size: 14px; min-height: 44px; }
.time { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 84px; text-align: right; }
.time .cur { color: var(--text); }
/* round play/pause */
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 3px rgba(17, 17, 20, .22);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease); }
.play:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(17, 17, 20, .26); }
:root[data-theme="dark"] .play { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .play { background: var(--paper); color: var(--ink); } }
.play:active { transform: translateY(1px); }
.play svg { width: 18px; height: 18px; }
.play .i-pause { display: none; }
.play .i-play { margin-left: 2px; }
.playing .play .i-play, .play.on .i-play { display: none; }
.playing .play .i-pause, .play.on .i-pause { display: block; }
/* the waveform: thin rounded bars, Graphite unplayed, Signal played */
.wave { position: relative; flex: 1; height: 56px; cursor: pointer; touch-action: none; border-radius: 6px; min-width: 0; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave .w-off rect { fill: var(--wave-off); }
.wave .w-on rect { fill: var(--wave-on); }
.wave .w-on { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wave:hover .w-off rect { fill: color-mix(in srgb, var(--wave-off) 75%, var(--text)); }
.wave .head { position: absolute; top: 4px; bottom: 4px; left: var(--p, 0%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); opacity: 0;
  transition: opacity var(--t) var(--ease); }
.track.playing .wave .head, .wave:hover .head { opacity: .7; }
.wave:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; }
/* the team's comments, pinned to moments. The team's page: a small, quiet tick under the bars (low contrast, no
   bold line). The A&R's shortlist: the teammate's initials in a small dot under the bars (hover or tap: the bubble). */
.wave .marks { position: absolute; inset: 0; pointer-events: none; }
.wave .mk { position: absolute; bottom: -9px; width: 16px; height: 12px; margin-left: -8px; pointer-events: auto; cursor: pointer; }
.wave .mk::after { content: ""; position: absolute; left: 6px; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--graphite); opacity: .45; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.wave .mk:hover::after, .wave .mk.on::after { opacity: .9; transform: scale(1.25); }
.wave .marks-avatar .mk.av { bottom: -13px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: .02em; color: #fff; background: hsl(var(--hue, 240) 38% 46%);
  box-shadow: 0 0 0 2px var(--card), 0 1px 3px rgba(17, 17, 20, .25); transition: transform var(--t-fast) var(--ease); }
.wave .marks-avatar .mk.av::after { display: none; }
.wave .marks-avatar .mk.av:hover, .wave .marks-avatar .mk.av.on { transform: scale(1.18); z-index: 2; }
/* the team's tally and comments (Shortlist) */
.tally { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-pill); white-space: nowrap;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; background: var(--pulse-soft); color: var(--text); }
.tally.none { background: var(--soft); color: var(--muted); font-family: var(--font-ui); }
.t-comments { list-style: none; margin: 0; padding: var(--s1) 0 0; display: flex; flex-direction: column; gap: var(--s2);
  border-top: 1px solid var(--line); padding-top: var(--s3); }
.t-comments li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: baseline; font-size: 14px; line-height: 1.45; }
.t-comments strong { font-weight: 600; margin-right: var(--s1); }
.t-comments .at { border: 0; background: var(--pulse-soft); color: var(--link); border-radius: var(--r-pill); height: 24px; padding: 0 8px;
  font-size: 12px; font-weight: 500; cursor: pointer; }
.t-comments .at:hover { background: var(--pulse); color: #fff; }
.no-wave { flex: 1; color: var(--muted); font-size: 14px; }
.decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 50%, var(--card)); }
.decide.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-extra .highlights { flex-direction: row; flex-wrap: wrap; }
/* Share with team */
.share { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.share-ic { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--pulse-soft); color: var(--link); display: grid; place-items: center; align-self: start; }
.share-ic svg { width: 22px; height: 22px; }
.share h2 { font-size: 16px; }
.share p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.share-off, .share-on { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; min-width: 0; }
.share-on { display: none; }
.share.on .share-off { display: none; }
.share.on .share-on { display: flex; }
.share-make { display: flex; gap: var(--s2); align-items: center; }
.share-make select { width: auto; min-height: 44px; font-size: 14px; }
.share-link { display: flex; gap: var(--s2); flex: 1 1 360px; min-width: 0; }
.share-link input { min-height: 44px; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.share-more { display: flex; gap: var(--s4); flex-basis: 100%; }
.share-more .link { font-size: 14px; }
/* the reply window: tick the team's comments to include */
.team-pick { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s2) var(--s3) var(--s3); margin: 0; max-height: 220px; overflow: auto; }
.team-pick legend { font-size: 13px; font-weight: 500; padding: 0 var(--s1); }
.team-pick .check { align-items: flex-start; min-height: 0; padding: var(--s2) 0; font-size: 14px; gap: var(--s3); }
.team-pick .check input { margin-top: 2px; }
.team-pick .who { display: block; font-size: 12px; color: var(--muted); }
.team-pick .fine { margin-top: var(--s2); }
.reply-to { font-size: 13px; color: var(--muted); padding: 0 var(--s5) var(--s4); margin: 0; background: color-mix(in srgb, var(--soft) 50%, var(--card)); }
.when { font-size: 13px; color: var(--muted); margin: 0; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ History */
.filters { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s5); }
.filters .segmented { flex: none; }
/* the "Status" dropdown (several can be ticked) */
.pick { position: relative; flex: none; }
.pick > summary { list-style: none; gap: var(--s2); }
.pick > summary::-webkit-details-marker { display: none; }
.pick > summary .chev { width: 16px; height: 16px; color: var(--muted); }
.pick.on > summary { border-color: var(--text); }
.pick-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--text); color: var(--bg);
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 11px; display: inline-grid; place-items: center; }
.pick-menu { left: 0; right: auto; top: 52px; min-width: 260px; transform-origin: top left; }
.pick-item { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); cursor: pointer; }
.pick-item:hover { background: var(--soft); }
.pick-item input { width: 18px; height: 18px; accent-color: var(--signal); margin: 0; }
.pick-item .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.pick-foot { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s2) var(--s1) var(--s3);
  border-top: 1px solid var(--line); margin-top: var(--s2); }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.search { flex: 1; min-width: 160px; max-width: 360px; margin-left: auto; padding-left: 40px !important;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355555C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px; }
.history { display: flex; flex-direction: column; gap: var(--s3); }
.h-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.h-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 20px; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s5); min-height: 72px; }
.h-item summary::-webkit-details-marker { display: none; }
.h-item summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); justify-self: center; transition: transform var(--t) var(--ease); }
.h-item[open] summary::after { transform: rotate(-135deg); }
.h-item summary:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.h-item .name { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-item .last { color: var(--muted); font-size: 13px; }
/* status pills: soft tints (a light background, coloured text); Contacted is an outline; only Signed is solid Ink. Signal = a demo to
   act on, Pulse = with the team, green = accepted, grey = declined; "Found" stays quiet (no pill) */
.status { display: inline-flex; align-items: center; height: 26px; font-size: 12px; font-weight: 600; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--soft); color: var(--muted); white-space: nowrap; }
.status.found { background: none; padding: 0; font-weight: 500; }
.status.contacted { background: none; box-shadow: inset 0 0 0 1px var(--graphite); color: var(--text); font-weight: 500; }
.status.demo, .status.shortlisted { background: var(--signal-soft); color: var(--signal-text); }
.status.team { background: var(--pulse-soft); color: var(--link); }
.status.accepted { background: var(--ok-soft); color: var(--up); }
.status.declined, .status.feedback { background: var(--soft); color: var(--muted); font-weight: 500; }
.status.signed { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .status.signed { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.signed { box-shadow: inset 0 0 0 1px var(--line-strong); } }
.h-day { font-size: 13px; font-weight: 600; color: var(--muted); margin: var(--s4) 0 0 var(--s1); }
.h-day:first-child { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: var(--s3) var(--s5) var(--s2) calc(var(--s5) + 56px + var(--s4)); border-top: 1px solid var(--line); }
.timeline li { position: relative; padding: var(--s2) 0 var(--s2) var(--s5); font-size: 14px; display: flex; justify-content: space-between; gap: var(--s3); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--text); }
.timeline li:first-child::before { background: var(--signal); border-color: var(--signal); }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 28px; bottom: -8px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline .t { color: var(--muted); font-size: 12px; font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-actions { display: flex; gap: var(--s2); padding: var(--s3) var(--s5) var(--s5) calc(var(--s5) + 56px + var(--s4)); flex-wrap: wrap; }

/* ------------------------------------------------------------------ simple pages: login, onboarding */
.simple { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: var(--s6) var(--s4) var(--s7);
  background: radial-gradient(1200px 600px at 50% -200px, color-mix(in srgb, var(--signal) 10%, transparent), transparent 70%); }
.simple > .logo { margin-bottom: var(--s6); font-size: 26px; }
.simple > .logo.stacked { align-self: center; margin-left: auto; margin-right: auto; display: flex; width: max-content; }
.sheet { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: var(--s6); }
.sheet.wide { max-width: 600px; }
.sheet h1 { margin-bottom: var(--s2); }
.sheet .display { font-size: 26px; margin-bottom: var(--s2); }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 var(--s5); }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 0 var(--s2); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.progress { width: 100%; max-width: 520px; margin-bottom: var(--s4); }
.progress:has(+ .sheet.wide) { max-width: 600px; }
.progress .label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: var(--s2); display: flex; justify-content: space-between; }
.progress .label .mono { color: var(--text); }
.progress .bar { height: 6px; background: var(--soft-2); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(17, 17, 20, .08); }
.progress .bar span { display: block; height: 100%; background: var(--signal); border-radius: 3px;
  transition: width .4s var(--ease); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.nav-row .btn.big { min-width: 160px; }
.options { display: flex; flex-direction: column; gap: var(--s3); }
.options.grid2, .options.sizes { display: grid; grid-template-columns: 1fr 1fr; }
.option { position: relative; display: flex; gap: var(--s3); align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: var(--s4); min-height: 56px; cursor: pointer; background: var(--card);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.option:hover { border-color: var(--muted); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option .t { font-weight: 600; display: block; }
.option .d { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }
.option:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text), var(--shadow-1); }
.option:has(input:focus-visible) { outline: 2px solid var(--pulse); outline-offset: 2px; }
.option .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; background: var(--card); }
.option:has(input:checked) .radio { border-color: var(--text); }
.option:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.check-option .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; background: var(--card);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.check-option:has(input:checked) .box { background: var(--text); border-color: var(--text); }
.check-option:has(input:checked) .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px); }
.sub-q { font-weight: 600; margin: var(--s5) 0 var(--s1); }
.countries { display: flex; flex-wrap: wrap; gap: var(--s2); }
.countries .option { padding: 0 var(--s4); min-height: 44px; border-radius: var(--r-pill); }
.countries .option .t { font-weight: 500; font-size: 14px; }
.gmail-box { display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; padding: var(--s4) 0 var(--s2); }
.gmail-box .g { width: 64px; height: 64px; border-radius: var(--r-md); background: var(--soft); display: grid; place-items: center; box-shadow: var(--shadow-1); }
.gmail-box .g svg { width: 30px; height: 30px; }
.done-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--s4);
  background: var(--signal); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 6px rgba(17, 17, 20, .14); }
.done-check svg { width: 34px; height: 34px; }
.autopilot-offer { width: 100%; max-width: 520px; margin-top: var(--s4); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.autopilot-offer .top { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.settings .autopilot-offer { max-width: none; margin-top: 0; border-radius: var(--r-md); }

/* ranking (drag to reorder) */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.rank-item { display: flex; align-items: center; gap: var(--s3); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s3) var(--s3) var(--s3) var(--s4);
  background: var(--card); cursor: grab; user-select: none; touch-action: none; position: relative; min-height: 72px;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .04); transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.rank-item:hover { border-color: var(--muted); }
.rank-item:first-child { border-color: var(--text); box-shadow: 0 0 0 1px var(--text), var(--shadow-1); }
.rank-item.dragging { z-index: 2; cursor: grabbing; box-shadow: var(--shadow-3); transition: none; }
.rank-item .t { font-weight: 600; display: block; }
.rank-item .d { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }
.rank-item .grow { flex: 1; min-width: 0; }
.rank-item .icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--soft); display: grid; place-items: center; flex: none; color: var(--text); }
.rank-item .icon svg { width: 20px; height: 20px; }
.rank-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 13px;
  background: var(--soft); color: var(--text); }
.rank-item:first-child .rank-n { background: var(--signal); color: var(--on-signal); }
.rank-move { display: flex; flex-direction: column; gap: 2px; }
.rank-move .mv { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; width: 36px; height: 22px;
  cursor: pointer; padding: 0; display: grid; place-items: center; }
.rank-move .mv svg { width: 14px; height: 14px; }
.rank-move .mv:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }
.rank-move .mv:disabled { opacity: .35; cursor: default; }
.grip { color: var(--muted); display: grid; place-items: center; width: 24px; height: 44px; flex: none; cursor: grab; }
.grip svg { width: 16px; height: 16px; }

.code-input { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 30px !important; letter-spacing: .4em; text-align: center; font-weight: 500; min-height: 64px !important; }
.resend { margin-top: var(--s3); text-align: center; }
.sub-h { font-size: 17px; margin-top: var(--s6); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.sig-preview { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-sm); }
.sig-preview pre, pre.sig { margin: var(--s1) 0 0; font: inherit; font-size: 14px; white-space: pre-wrap; }
.sig-preview .sig { margin-top: var(--s1); font-size: 14px; line-height: 1.5; }
/* About your label: Instagram or website */
.link-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.link-choice legend.field { padding: 0; }
.link-field { margin-top: var(--s3); }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.prefixed:focus-within { outline: 2px solid var(--pulse); outline-offset: 1px; }
.prefixed .prefix { display: flex; align-items: center; padding: 0 var(--s3); background: var(--soft); color: var(--muted); font-weight: 500; border-right: 1px solid var(--line); }
.prefixed input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
.hint.bad { color: var(--down); }
.hint.good { color: var(--muted); }
pre.sig { margin: 0; }

/* "Is this your label?" */
.label-pick .option { align-items: flex-start; }
.label-pick .lp-name { font-weight: 600; display: flex; gap: var(--s2); align-items: center; }
.label-pick .lp-rel { color: var(--muted); font-size: 13px; margin-top: var(--s1); display: block; }
.label-pick .lp-rel span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-pick .lp-text { min-width: 0; flex: 1; }
.label-pick .lp-ic { width: 44px; height: 44px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center; font-family: var(--font-display);
  font-stretch: 125%; font-weight: 800; color: #fff; background: hsl(var(--hue, 20) 30% 34%); font-size: 15px; }
.label-pick .none .lp-ic { background: var(--soft); color: var(--muted); }

/* the email template editor */
.tpl-editor { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s1); }
.tpl-editor textarea { font-size: 14px; line-height: 1.6; min-height: 340px; }
.ph-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.ph { border: 1px dashed var(--line-strong); background: var(--soft); color: var(--text); border-radius: var(--r-pill); min-height: 32px; padding: 0 var(--s3);
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.ph:hover { border-style: solid; border-color: var(--text); background: var(--card); }
.tpl-warnings { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.tpl-warnings li { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: var(--s2) var(--s3); font-size: 13px; }
.tpl-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.tpl-actions .grow { flex: 1; }
.tpl-preview { margin-top: var(--s3); }

/* two-handle range slider (ui.range_slider): the live values sit above the handles, tap one to type it */
.slider-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5) var(--s3); }
.slider-title { display: flex; align-items: center; gap: var(--s2); font-weight: 600; margin: 0; }
.slider-title svg { width: 18px; height: 18px; color: var(--graphite); }
.rs { --a: 0; --b: 1; padding-top: var(--s2); }
.rs-track { position: relative; height: 92px; }
.rs-bubble { position: absolute; top: 8px; left: 0; display: flex; }
.rs-val { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; color: var(--text);
  background: var(--soft); border: 1px solid transparent; border-radius: var(--r-pill); min-height: 36px; padding: 0 var(--s3); cursor: text;
  white-space: nowrap; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.rs-val:hover { background: var(--soft-2); border-color: var(--line-strong); }
.rs-val:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
.rs-input { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 15px; width: 112px; min-height: 36px; padding: 0 var(--s3); border-radius: var(--r-pill); }
.rs-rail, .rs-fill { position: absolute; top: 63px; height: 6px; border-radius: 3px; }
.rs-rail { left: 14px; right: 14px; background: var(--soft-2); box-shadow: inset 0 1px 2px rgba(17, 17, 20, .12); }
.rs-fill { left: calc(14px + var(--a) * (100% - 28px)); width: calc((var(--b) - var(--a)) * (100% - 28px)); background: var(--signal);
  transition: opacity var(--t) var(--ease); }
.rs input[type=range] { position: absolute; left: 0; width: 100%; top: 44px; height: 44px; margin: 0; pointer-events: none;
  -webkit-appearance: none; appearance: none; background: none; }
.rs input[type=range]::-webkit-slider-runnable-track { height: 44px; background: none; }
.rs input[type=range]::-moz-range-track { background: none; }
.rs input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 28px; height: 28px; margin-top: 8px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(17, 17, 20, .25), 0 2px 6px rgba(17, 17, 20, .12); cursor: grab;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.rs input[type=range]::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(17, 17, 20, .25), 0 4px 10px rgba(17, 17, 20, .15); cursor: grab; }
.rs input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
/* No box around the slider, ever (the general input focus style doesn't apply here). Only a keyboard user gets a
   ring, on the handle itself (:focus-visible; and not after a drag, see [data-input] in skout.js). */
.rs input[type=range], .rs input[type=range]:hover, .rs input[type=range]:focus, .rs input[type=range]:active {
  outline: none; border: 0; box-shadow: none; -webkit-tap-highlight-color: transparent; }
:root:not([data-input="pointer"]) .rs input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--pulse-soft), 0 0 0 2px var(--pulse); }
:root:not([data-input="pointer"]) .rs input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--pulse-soft), 0 0 0 2px var(--pulse); }
.rs-scale { display: flex; justify-content: space-between; margin: -10px 14px 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.rs-scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.social-rows { display: flex; flex-direction: column; gap: var(--s3); }
.social-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.social-head .unit { color: var(--muted); font-size: 13px; }
.social-row.off .rs { opacity: .45; }
.social-row.off .rs-fill { background: var(--graphite); }
.rule { font-size: 14px; color: var(--muted); margin: var(--s3) 0 0; }
.rule strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .slider-block { padding: var(--s3) var(--s4) var(--s2); } }

/* genre picker */
.genre-pick { display: flex; flex-direction: column; }
.genre-pick .chosen { margin-top: var(--s4); font-size: 14px; color: var(--muted); padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-sm); }
.genre-pick .chosen strong { color: var(--text); font-weight: 600; }

/* settings and preferences */
.settings { max-width: 720px; margin: 0 auto; }
.qa { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.qa li { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.qa .q { color: var(--muted); font-size: 14px; }
.qa .a { font-weight: 500; }
.photo-row { display: flex; align-items: center; gap: var(--s4); }
.photo-row .avatar { width: 64px; height: 64px; font-size: 22px; }
.roster { list-style: none; margin: var(--s4) 0 0; padding: 0; max-height: 360px; overflow: auto; border-top: 1px solid var(--line); }
.roster li { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--line); padding: 0 var(--s1); }
.roster .name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .src { font-size: 12px; color: var(--muted); }
.count-badge { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ reduced motion: everything still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .card:hover { transform: none; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 760px) {
  :root { --gutter: var(--s4); }
  .topbar-in { grid-template-columns: 1fr auto; height: auto; padding: var(--s2) var(--gutter); row-gap: var(--s2); }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; margin-bottom: var(--s2); }
  .topbar-gap { display: none; }
  .tabs a { flex: 1; justify-content: center; padding: 0 var(--s2); }
  .bell .menu.notes { position: fixed; left: var(--s3); right: var(--s3); top: 64px; width: auto; }
  .page { padding: var(--s5) var(--gutter) var(--s7); }
  .display { font-size: 27px; }
  h1 { font-size: 24px; }
  .page-head { margin-bottom: var(--s4); }
  .page-head .segmented { width: 100%; }
  .page-head .segmented a { flex: 1; justify-content: center; }
  .cards { grid-template-columns: 1fr; gap: var(--s4); }
  .autopilot-bar { padding: var(--s3) var(--s4); gap: var(--s1) var(--s3); }
  .autopilot-bar .what { min-width: 100%; }
  .ad-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4); }
  .ad-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: var(--s3); }
  .ad-stats > div { padding: 0 var(--s2); } .ad-stats > div:first-child { padding-left: 0; }
  .ad-body { padding: var(--s4); }
  .track { padding: var(--s3); grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s2) var(--s3); }
  .track .play { width: 44px; height: 44px; }
  .time { min-width: 0; }
  .decide { grid-template-columns: 1fr 1fr; padding: var(--s4); }
  .decide .btn.primary { grid-column: 1 / -1; }
  .decide.two .btn.primary { grid-column: auto; }
  .share { grid-template-columns: 1fr; padding: var(--s4); gap: var(--s3); }
  .share-ic { display: none; }
  .share-make, .share-make .btn { flex: 1; }
  .share-link { flex-basis: 100%; }
  .share-link .btn { flex: none; }
  .is-shortlist .track { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .is-shortlist .track .tally { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .contacted-line { margin-left: var(--s1); }
  .reply-to { padding: 0 var(--s4) var(--s4); }
  .h-item summary { padding: var(--s3) var(--s4); gap: var(--s3); grid-template-columns: auto minmax(0, 1fr) auto; }
  .h-item summary::after { display: none; }
  .timeline, .h-actions { padding-left: var(--s4); padding-right: var(--s4); }
  .timeline li { flex-direction: column; gap: 0; }
  .filters { flex-wrap: wrap; }
  .filters .segmented { flex: 1; }
  .filters .segmented a { flex: 1; justify-content: center; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .pick-menu { left: auto; right: 0; transform-origin: top right; }
  .simple { padding-top: var(--s5); }
  .sheet { padding: var(--s5) var(--s4); border-radius: var(--r-md); }
  .options.grid2 { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .rank-item { padding: var(--s3); gap: var(--s2); }
  .rank-item .icon { display: none; }
  .rank-item .d { font-size: 13px; }
  .tpl-editor textarea { min-height: 380px; }
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-in { padding: var(--s4); }
  .modal textarea.body { min-height: 240px; }
  .qa li { grid-template-columns: 1fr; gap: var(--s1); }
  .nav-row .btn.big { min-width: 0; flex: 1; }
  .footer { padding: var(--s4) var(--gutter) var(--s6); }
}
.label-pick .none .lp-rel span { white-space: normal; }

/* invites: the read-only email on the welcome page, the admin's invite list */
input.readonly { background: var(--soft); color: var(--muted); }
.hint svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--up); }

/* ------------------------------------------------------------------ Demos, per track (walkthrough round 2) */
.track { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.track > .t-foot, .track > .t-comments-box, .track > .t-said { grid-column: 1 / -1; }
.track .wave-wrap { padding-bottom: 10px; }                          /* room for the comment dots under the bars */
.t-foot { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-height: 36px; }
.t-foot .t-note { flex: 1 1 240px; min-width: 0; }
.t-foot .add-note { margin: 0; }
.t-decide { display: flex; gap: var(--s2); margin-left: auto; }
.t-decide .btn { min-width: 112px; }
.t-said { margin: 0; font-size: 13px; color: var(--muted); }
.t-comments-box:empty { display: none; }
.t-comments-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px;
  font-weight: 500; color: var(--muted); min-height: 32px; }
.t-comments-more > summary::-webkit-details-marker { display: none; }
.t-comments-more > summary svg { width: 15px; height: 15px; }
.t-comments-more > summary:hover { color: var(--text); }
.t-comments-more .t-comments { margin-top: var(--s2); }
/* a track's state, as a small quiet chip: Accepted (green), Declined (grey), Shortlisted (Signal), To review (outline) */
.tk { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: 12px;
  font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--muted); }
.tk-accept, .tk.tk-accept { background: var(--ok-soft); color: var(--up); }
.tk-shortlist, .tk.tk-shortlist { background: var(--signal-soft); color: var(--signal-text); }
.tk.tk-review { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); font-weight: 500; }
.tk.tk-due { background: var(--signal-soft); color: var(--signal-text); }
/* "Also sent: …" (the artist's other tracks of the moment, collapsed) */
.also { border-top: 1px dashed var(--line); padding-top: var(--s3); font-size: 14px; }
.also > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2); color: var(--muted); min-height: 32px; min-width: 0; }
.also > summary::-webkit-details-marker { display: none; }
.also > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: var(--s1); border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform var(--t) var(--ease); }
.also[open] > summary::after { transform: rotate(-135deg); }
.also-l { font-weight: 500; color: var(--text); flex: none; }
.also ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.also li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-width: 0; }
.reply-to { padding-top: var(--s3); border-top: 1px solid var(--line); }
/* Answered: one collapsed row per artist (photo, name, each track's decision, date); click for the full card */
.answered-list { gap: var(--s3); }
details.answered > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 20px; gap: var(--s4);
  align-items: center; padding: var(--s3) var(--s5); }
details.answered > summary::-webkit-details-marker { display: none; }
details.answered > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); justify-self: center; transition: transform var(--t) var(--ease); }
details.answered[open] > summary::after { transform: rotate(-135deg); }
details.answered > summary:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
details.answered[open] > summary { border-bottom: 1px solid var(--line); }
.an-row .pic { width: 44px; height: 44px; }
.an-who { min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.an-name { font-weight: 600; font-size: 16px; }
.an-tracks, .h-tracks, .reply-tracks { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); list-style: none; margin: 0; padding: 0; min-width: 0; }
.an-t, .h-tracks li, .reply-tracks li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 26px;
  padding: 0 var(--s2) 0 10px; border-radius: var(--r-pill); font-size: 12px; background: var(--soft); color: var(--text); }
.an-t .clamp1, .h-tracks .clamp1, .reply-tracks .clamp1 { max-width: 220px; }
.tk-word { font-weight: 600; color: var(--muted); white-space: nowrap; }
.an-t.tk-accept .tk-word, .h-tracks .tk-accept .tk-word, .reply-tracks .tk-accept .tk-word { color: var(--up); }
.an-t.tk-accept, .h-tracks .tk-accept, .reply-tracks .tk-accept { background: var(--ok-soft); }
.h-tracks .tk-shortlist .tk-word { color: var(--signal-text); }
.an-when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.an-body .ad-head { border-top: 0; }
.decide.one { display: flex; align-items: center; gap: var(--s4); grid-template-columns: none; }
.decide.one p { margin: 0; font-size: 14px; color: var(--muted); }
.reply-sent { padding: 0 var(--s5) var(--s4); font-size: 14px; }
.reply-sent > summary { cursor: pointer; color: var(--link); font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; }
.reply-sent pre { white-space: pre-wrap; font-family: var(--font-ui); background: var(--soft); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin: var(--s2) 0 0; }
.reply-tracks { margin-bottom: var(--s3); }
/* History: each artist's tracks of the moment, under the name */
.h-item summary .h-tracks { grid-column: 2 / -1; margin-top: calc(-1 * var(--s2)); }
/* comment pop-ups on the shortlist: one bubble for hover/tap, and the ones that pop up while a track plays */
.popups-row { display: flex; justify-content: flex-end; margin: calc(-1 * var(--s3)) 0 var(--s3); }
.small-switch { font-size: 13px; color: var(--muted); }
.small-switch .switch-track { width: 40px; height: 24px; }
.small-switch .switch-knob { width: 18px; height: 18px; }
.small-switch input:checked + .switch-track .switch-knob { transform: translateX(16px); }
/* The bubble: white with Ink text (light), Ink with Paper text (dark); the time in bold Ink (light) or Signal (dark).
   Contrast: Ink on white 18.9:1, Paper on Ink 17.4:1, Signal on Ink 6.6:1 (AA). */
.c-bubble { position: absolute; z-index: 30; max-width: min(320px, calc(100vw - 32px)); padding: var(--s2) var(--s3); border-radius: 12px;
  background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; box-shadow: var(--shadow-3);
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.c-bubble.show { opacity: 1; transform: none; }
.c-bubble strong { font-weight: 600; }
.c-bubble .c-at { display: inline; margin: 0 0 0 var(--s2); padding: 0; background: none; box-shadow: none; border-radius: 0;
  font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.c-bubble p { margin: 2px 0 0; }
.c-bubble::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; border: inherit; border-top: 0; border-left: 0; transform: rotate(45deg); border-radius: 0 0 2px 0; }
:root[data-theme="dark"] .c-bubble { background: var(--ink); color: var(--paper); border-color: #3F3F48; }
:root[data-theme="dark"] .c-bubble .c-at { color: var(--signal); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-bubble { background: var(--ink); color: var(--paper); border-color: #3F3F48; }
  :root:not([data-theme="light"]) .c-bubble .c-at { color: var(--signal); }
}
/* live updates: what arrives fades in, nothing jumps */
.live-new { animation: live-in 600ms var(--ease) both; }
@keyframes live-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.live-flash { animation: live-flash 1.2s var(--ease); }
@keyframes live-flash { 0% { background-color: var(--signal-soft); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .live-new, .live-flash { animation: none; } .c-bubble { transition: none; } }
@media (max-width: 720px) {
  .track { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .is-shortlist .track .tally { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .t-foot { gap: var(--s2); }
  .t-decide { width: 100%; margin-left: 0; }
  .t-decide .btn { flex: 1; min-width: 0; }
  details.answered > summary { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--s3) var(--s4); gap: var(--s3); }
  details.answered > summary::after { display: none; }
  .an-t .clamp1, .h-tracks .clamp1 { max-width: 150px; }
  .decide.one { flex-direction: column; align-items: stretch; }
  .reply-sent { padding: 0 var(--s4) var(--s4); }
  .popups-row { justify-content: flex-start; margin-top: 0; }
}

/* ------------------------------------------------------------------ feedback with revisions (round 5) */
.vers { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--soft); flex: none; }
.ver-b { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); height: 24px; min-width: 32px;
  padding: 0 8px; border-radius: var(--r-pill); cursor: pointer; font-variant-numeric: tabular-nums; }
.ver-b:hover { color: var(--text); }
.ver-b.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(17, 17, 20, .12); }
.track > .convo { grid-column: 1 / -1; }
.convo { list-style: none; margin: 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s2); }
.convo li { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) var(--s3); border-radius: 12px; max-width: 88%; font-size: 14px; line-height: 1.45; }
.convo li.c-cont { margin-top: calc(-1 * var(--s1)); }
.convo .c-ar { align-self: flex-end; background: var(--pulse-soft); }
.convo .c-artist { align-self: flex-start; background: var(--soft); }
.c-who { font-size: 12px; font-weight: 600; color: var(--muted); }
.c-text { display: block; }
.c-at { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; margin-right: var(--s2); border-radius: var(--r-pill);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tk.tk-feedback, .tk-feedback { background: var(--pulse-soft); color: var(--link); }
.an-t.tk-feedback .tk-word, .h-tracks .tk-feedback .tk-word { color: var(--link); }
.fb-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.fb-note { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: var(--s2); align-items: center; }
.fb-note input { min-height: 44px; font-size: 15px; }
.fb-note .fb-at { text-align: center; padding: 0 var(--s2); }
.fb-note .btn.icon { --h: 44px; }
@media (max-width: 720px) {
  .t-decide { flex-wrap: wrap; }
  .t-decide .btn { flex: 1 1 30%; }
  .convo li { max-width: 100%; }
}

/* ------------------------------------------------------------------ admin (Greg only): same system, a sidebar */
.admin-top { grid-template-columns: auto 1fr auto; }
.admin-brand { display: inline-flex; align-items: center; gap: var(--s3); }
.admin-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: 11px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.admin-shell { max-width: var(--page); margin: 0 auto; padding: var(--s6) var(--gutter) var(--s8); display: grid;
  grid-template-columns: 208px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.admin-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.admin-side a, .admin-menu nav a { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border-radius: 12px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.admin-side a svg, .admin-menu svg { width: 18px; height: 18px; flex: none; }
.admin-side a:hover, .admin-menu nav a:hover { color: var(--text); background: var(--soft); }
.admin-side a.on, .admin-menu nav a.on { color: var(--text); background: var(--card); box-shadow: var(--shadow-1); }
.admin-side a.back, .admin-menu nav a.back { margin-top: var(--s4); font-size: 14px; }
.admin-menu { display: none; }
.admin-main { min-width: 0; }
.admin-main > .notice { margin-top: 0; }
.admin-main > .page-head { flex-wrap: nowrap; align-items: flex-start; }
.admin-main > .page-head > div:first-child { flex: 1; min-width: 0; }
.admin-main > .page-head .head-actions { flex: none; margin-top: var(--s2); }
.head-actions:empty { display: none; }
.head-actions { display: flex; gap: var(--s2); align-items: center; }
.warn-text { color: var(--warn); }
.status.failed { background: var(--bad-soft); color: var(--down); }
.tag.live { background: var(--signal-soft); color: var(--signal-text); }
.tag.call-tag { background: var(--warn-soft); color: var(--warn); text-decoration: none; width: fit-content; }
.ramp-note { margin-bottom: var(--s3); }
.ramp-note svg { color: var(--link); }
.mode-note { display: flex; gap: var(--s3); align-items: flex-start; background: var(--warn-soft); color: var(--text); border-radius: var(--r-sm);
  padding: var(--s3) var(--s4); font-size: 14px; line-height: 1.45; margin: 0 0 var(--s4); }
.mode-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--warn); }
.mode-note.bad { background: var(--bad-soft); } .mode-note.bad svg { color: var(--down); }
.panel h2 { margin: 0; }
.panel > h2 + p, .panel > h2 + ul, .panel > h2 + .muted { margin-top: var(--s2); }
.details summary, .details-panel > summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
.details summary:hover { color: var(--text); }
.details code { display: block; margin-top: var(--s2); font-size: 12px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }

/* Overview */
.attention { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.attention h2 { display: flex; align-items: center; gap: var(--s2); font-size: 17px; }
.attention h2 svg { width: 20px; height: 20px; color: var(--warn); }
.attention ul { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.attention li a { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: var(--s2) 0; color: var(--text); text-decoration: none;
  border-top: 1px solid var(--line); font-size: 15px; }
.attention li a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.attention li.bad a::before { background: var(--down); }
.attention li a:hover { color: var(--link); }
.attention .chev { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--muted); flex: none; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.ov-card { display: flex; flex-direction: column; gap: var(--s3); margin: 0; color: var(--text); text-decoration: none; min-height: 220px;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.ov-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.ov-card h2 { font-family: var(--font-num); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ov-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin: 0; }
.ov-stats dt { font-size: 13px; color: var(--muted); }
.ov-stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 600; line-height: 1.15; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.of { font-size: 14px; font-weight: 400; color: var(--muted); }
.ov-big { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; }
.ov-big .status { font-size: 14px; height: 30px; padding: 0 14px; }
.ov-card p.small { margin: 0; }
.ov-link { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--link); }
.ov-link::after { content: " →"; }
.ov-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: 15px; }
.ov-checks li { display: flex; gap: var(--s2); align-items: flex-start; line-height: 1.4; }
.ov-checks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ov-checks .ok svg { color: var(--up); } .ov-checks .warn svg { color: var(--warn); } .ov-checks .bad svg { color: var(--down); }
.ov-wait { margin: calc(-1 * var(--s1)) 0 0; }
.meter { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--soft-2); overflow: hidden; }
.meter > span, .meter > b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.meter > span { background: var(--text); z-index: 1; }
.meter > b { background: color-mix(in srgb, var(--text) 22%, transparent); }
.meter > i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--card); z-index: 2; }
.meter.l80 > span { background: var(--warn); } .meter.l95 > span { background: var(--down); }
.meter.big { height: 14px; margin-top: var(--s4); }
.meter.small { height: 6px; width: 120px; flex: none; }
.meter-key { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s2); }
.meter-key .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.meter-key .sw.used { background: var(--text); } .meter-key .sw.proj { background: color-mix(in srgb, var(--text) 22%, transparent); }

/* Labels */
.lab-list { padding: var(--s2) 0; }
.lab-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1.1fr) 104px 64px; gap: var(--s4); align-items: center;
  padding: var(--s3) var(--s5); color: var(--text); text-decoration: none; border-top: 1px solid var(--line); min-height: 64px;
  transition: background-color var(--t) var(--ease); }
.lab-row:first-of-type, .lab-headrow + .lab-row { border-top: 0; }
a.lab-row:hover, a.lab-row.on { background: var(--soft); }
.lab-headrow { min-height: 0; padding-top: var(--s2); padding-bottom: var(--s2); font-size: 12px; font-weight: 500; color: var(--muted); }
.lab-who, .lab-status { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lab-status { flex-direction: row; align-items: center; gap: var(--s2); }
.lab-row .n { text-align: right; }
.lab-k { display: none; }
.side-wrap { position: fixed; inset: 0; z-index: 40; }
.side-wrap[hidden] { display: none; }
.side-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 20, .28); animation: fade-in var(--t) var(--ease); }
.side-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--card); box-shadow: var(--shadow-3);
  overflow-y: auto; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); animation: slide-in 220ms var(--ease); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .side-panel, .side-backdrop { animation: none; } }
body.side-open { overflow: hidden; }
.side-wait { display: grid; place-items: center; min-height: 240px; }
.side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.side-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; outline: none; }
.side-head p { margin: 2px 0 0; }
.side-head .x { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: none; }
.side-head .x:hover { color: var(--text); }
.side-head .x svg { width: 18px; height: 18px; }
.side-status { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.side-action { margin: 0; }
.side-sec { border-top: 1px solid var(--line); padding-top: var(--s4); }
.side-sec h3 { font-family: var(--font-num); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--s3); }
.side-sec .row { margin-top: var(--s3); }
.side-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: 0; }
.side-form .form-grid input { min-height: 44px; }
.side-form .form-grid label { justify-content: flex-end; }
.side-form .field { font-size: 13px; }
.side-dl { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.side-dl > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--s3); font-size: 14px; line-height: 1.45; }
.side-dl dt { color: var(--muted); }
.side-dl dd { margin: 0; }
.run-mini, .run-list, .fail-list, .mail-list, .code-list, .usage-list, .mini-list, .checks-list { list-style: none; margin: 0; padding: 0; }
.run-mini li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: 14px; }
.run-mini li:first-child { border-top: 0; }

/* Emails */
.filters-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.field-inline { display: inline-flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--muted); }
.field-inline select { min-height: 40px; width: auto; min-width: 160px; }
.mail-list li a { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
.mail-list li:last-child a { border-bottom: 0; }
.mail-list li a:hover strong { color: var(--link); }
.ml-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-main strong { font-weight: 500; }
.ml-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.code-list { margin-top: var(--s3); }
.code-list li { display: flex; align-items: center; gap: var(--s4); padding: var(--s2) 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.code-list .code { letter-spacing: .18em; font-size: 18px; }

/* Searches */
.run-form { display: flex; gap: var(--s2); align-items: center; }
.run-form select { min-height: 44px; width: auto; min-width: 160px; }
.scanning-panel { display: flex; justify-content: center; padding: var(--s5); }
.fail-list { margin-top: var(--s3); }
.fail-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.fail-list p { margin: var(--s1) 0 0; }
.ok-ic { width: 16px; height: 16px; color: var(--up); vertical-align: -3px; }
.run-list { margin-top: var(--s3); }
.run-list li { display: grid; grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: var(--s4); align-items: center;
  padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: 15px; }
.rl-day { display: flex; flex-direction: column; }
.rl-more { grid-column: 1 / -1; margin-top: calc(-1 * var(--s2)); }
.rl-more ul { margin: var(--s2) 0 0; padding-left: var(--s4); }

/* Data & costs */
.plan-form select { min-width: 300px; }
.usage-list li { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.usage-list li:first-child { border-top: 0; margin-top: var(--s2); }
.usage-list .pct { width: 56px; text-align: right; font-size: 14px; }
.usage-list .total { border-top: 1px solid var(--line-strong); }
.details-panel > summary { list-style: none; display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.details-panel > summary::-webkit-details-marker { display: none; }
.details-panel > summary h2 { font-size: 17px; color: var(--text); }
.details-panel > summary h2::before { content: "▸"; display: inline-block; margin-right: var(--s2); color: var(--muted); transition: transform var(--t) var(--ease); }
.details-panel[open] > summary h2::before { transform: rotate(90deg); }
.details-panel h3 { font-size: 15px; margin: var(--s5) 0 var(--s2); }
.tbl-wrap { overflow-x: auto; margin-top: var(--s4); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-size: 12px; font-weight: 500; color: var(--muted); }
.tbl tfoot th { font-weight: 600; border-bottom: 0; }
.tbl .n { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Settings */
.admin-settings .panel-head .status { flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.form-grid label { display: flex; flex-direction: column; }
.form-grid .field { margin: 0 0 var(--s2); font-weight: 500; font-size: 14px; }
.form-grid .hint { margin-top: var(--s1); }
.inline-form { margin-top: var(--s2); }
.sub-title { font-size: 14px; font-weight: 600; margin: var(--s4) 0 0; }
.panel-sub { font-size: 13px; }
.danger-row { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.mini-list { margin-top: var(--s4); }
.mini-list li { display: flex; gap: var(--s3); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.checks-list li { display: flex; gap: var(--s2); align-items: center; padding: var(--s1) 0; font-size: 15px; }
.checks-list svg { width: 18px; height: 18px; }
.checks-list .ok svg { color: var(--up); } .checks-list .bad svg { color: var(--down); }
.check-line { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s4); font-size: 15px; }
.confirm-panel { max-width: 640px; }
.confirm-panel h2 { margin-top: var(--s2); font-size: 17px; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s4); }
  .admin-side { display: none; }
  .admin-menu { display: block; position: relative; }
  .admin-menu summary { list-style: none; display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-weight: 600; cursor: pointer; }
  .admin-menu summary::-webkit-details-marker { display: none; }
  .admin-menu[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .admin-menu nav { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: var(--s2); box-shadow: var(--shadow-2);
    position: absolute; left: 0; right: 0; z-index: 15; display: flex; flex-direction: column; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-card { min-height: 0; }
}
@media (max-width: 640px) {
  .admin-main > .page-head { flex-wrap: wrap; }
  .admin-top .admin-badge { height: 20px; font-size: 10px; }
  .page-head .head-actions { width: 100%; }
  .page-head .head-actions > .btn, .run-form { width: 100%; }
  .run-form select { flex: 1; min-width: 0; }
  .lab-headrow { display: none; }
  .lab-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); padding: var(--s3) var(--s4); }
  .lab-who { grid-column: 1 / -1; }
  .lab-status { grid-column: 1 / -1; }
  .lab-last, .lab-row .n { font-size: 13px; color: var(--muted); text-align: left; }
  .lab-row .n { text-align: left; }
  .lab-k { display: inline; }
  .lab-row { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
  .side-panel { width: 100vw; padding: var(--s4); }
  .side-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .run-list li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); }
  .rl-label { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; }
  .rl-what { grid-column: 1 / -1; font-size: 14px; }
  .run-list .status { grid-column: 2; grid-row: 1; }
  .plan-form, .plan-form .field-inline, .plan-form select { width: 100%; min-width: 0; }
  .plan-form .field-inline { flex-direction: column; align-items: stretch; }
  .usage-list .meter.small { width: 64px; }
  .filters-row .field-inline { width: 100%; } .filters-row select { flex: 1; min-width: 0; }
  .mail-list li a { align-items: flex-start; }
}

/* Admin, "See their Artists page": read-only, with why each card ranks where it does */
.viewing-as { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  font-size: 14px; background: var(--pulse-soft); color: var(--text); border-top: 1px solid var(--line); }
.viewing-as svg { width: 18px; height: 18px; color: var(--link); flex: none; }
.viewing-as a { font-weight: 500; white-space: nowrap; }
[inert] .card-actions, [inert] .autopilot-bar .switch { opacity: .55; }
.why-rank { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: var(--s3); display: flex; flex-direction: column; gap: 6px;
  background: var(--soft); }
.why-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 2px; font-size: 13px; font-weight: 600; }
.why-head strong { font-size: 16px; }
.why-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 44px; gap: var(--s2); align-items: center; font-size: 13px; }
.why-row .meter.small { width: 72px; }
.why-row .num { text-align: right; color: var(--muted); }
.why-reasons { margin: 2px 0 0; }

/* Onboarding, Gmail step: "Is this email address brand new?" (Yes shows the two-week build-up, in plain words) */
.ramp-q { border: 0; padding: 0; margin: var(--s5) 0 0; }
.ramp-q legend { font-weight: 500; font-size: 15px; margin-bottom: var(--s2); padding: 0; }
.ramp-hint { display: none; }
.ramp-q:has(input[value="yes"]:checked) .ramp-hint { display: block; }

/* Production: a label without its own Gmail can't send yet */
.gmail-needed { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); margin: 0 0 var(--s4);
  border-radius: var(--r-sm); background: var(--warn-soft, var(--soft)); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.gmail-needed svg { width: 18px; height: 18px; flex: none; }
.gmail-needed .grow { flex: 1 1 240px; }

/* Admin → Settings → Deliverability test */
.dt-result { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.dt-checks { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s1); font-size: 13px; }
.dt-checks li { display: flex; gap: var(--s2); align-items: flex-start; color: var(--muted); }
.dt-checks li svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.dt-checks li.ok svg { color: var(--up); }
.dt-checks li.bad { color: var(--down); }

/* Demos: the A&R's notes while listening (pinned to the playhead) and the team's comments, one list per track */
.track > .t-notes-box { grid-column: 1 / -1; }
.t-notes-box:empty { display: none; }
.t-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.t-notes li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; font-size: 14px; line-height: 1.45;
  padding: var(--s1) var(--s2); border-radius: var(--r-sm); min-height: 40px; }
.t-notes li:hover { background: var(--soft); }
.t-notes .at { border: 0; justify-self: start; border-radius: var(--r-pill); height: 24px; padding: 0 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; background: var(--signal-soft); color: var(--signal-text); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.t-notes .at:hover { background: var(--signal); color: var(--on-signal); }
.t-notes .at.none { background: var(--soft); color: var(--muted); cursor: default; }
.t-notes .n-team .at { background: var(--pulse-soft); color: var(--link); }
.t-notes .n-team .at:hover { background: var(--pulse); color: #fff; }
.t-notes .n-body { min-width: 0; overflow-wrap: anywhere; }
.t-notes .n-who { font-weight: 600; margin-right: var(--s2); }
.t-notes .n-src { display: inline-block; margin-left: var(--s1); padding: 0 6px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
  background: var(--soft); color: var(--muted); vertical-align: 1px; }
.t-notes .n-tools { display: flex; gap: 2px; opacity: .55; transition: opacity var(--t) var(--ease); }
.t-notes li:hover .n-tools, .t-notes li:focus-within .n-tools { opacity: 1; }
.t-notes .n-tools .btn.icon { --h: 32px; width: 32px; }
.t-notes .n-tools svg { width: 15px; height: 15px; }
.t-notes .n-edit { min-height: 36px; font-size: 14px; }
@media (hover: none) { .t-notes .n-tools { opacity: 1; } }
.t-add-note { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: var(--s2); }
.t-add-note .at { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; }
.t-add-note .at svg { width: 13px; height: 13px; }
.t-add-note .at.set { background: var(--signal-soft); color: var(--signal-text); }
.t-add-note input.note { flex: 1; min-width: 0; }
/* A&R's own notes on the waveform: a small Signal pin under the bars (team comments keep their initials) */
.wave .marks-avatar .mk.av.mine { width: 14px; height: 14px; margin-left: -7px; bottom: -10px; background: var(--signal);
  border: 2px solid var(--card); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.wave .marks-avatar .mk.av.mine:hover, .wave .marks-avatar .mk.av.mine.on { transform: rotate(-45deg) scale(1.2); }
/* Send feedback / Reply: the boxes to tick team notes (or a declined track's notes) in */
.fb-team { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s2) var(--s3) var(--s3); margin: 0; display: flex; flex-direction: column; gap: var(--s1); }
.fb-team legend { font-size: 14px; font-weight: 600; padding: 0 var(--s1); }
.fb-team .check { align-items: flex-start; font-size: 14px; }
.fb-team .at { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: var(--r-pill); background: var(--pulse-soft); color: var(--link); }
@media (max-width: 720px) {
  /* phone: Decline and Accept side by side, "Send feedback" on its own full-width row above them */
  .t-decide { display: grid; grid-template-columns: 1fr 1fr; }
  .t-decide [data-track-feedback] { grid-column: 1 / -1; order: -1; }
  .t-decide .btn { min-width: 0; white-space: nowrap; }
  .t-notes li { grid-template-columns: 46px minmax(0, 1fr) auto; gap: var(--s2); padding: var(--s1) 0; }
  .t-notes .n-tools .btn.icon { --h: 36px; width: 36px; }
  .t-add-note .at { min-width: 0; padding: 0 8px; }
}
.link-choice { margin-top: var(--s4); }
.link-choice legend.field { margin: 0 0 var(--s2); }

/* Preferences → Radars and the daily limit (round 9) */
.radar-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.radar-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto auto; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.radar-dot { width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--hue, 20) 70% 55%); }
.radar-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.radar-share { white-space: nowrap; }
.radar-share .num { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.radar-row .switch { margin: 0; }
.num-input { max-width: 110px; font-variant-numeric: tabular-nums; }
.split { border: 0; padding: 0; margin: 0; }
.split legend.field { padding: 0; margin-bottom: var(--s2); }
.split-rows { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: var(--s3); align-items: center; font-size: 15px; }
.hint.bad { color: var(--down); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips-field { border: 0; padding: 0; margin: var(--s4) 0 0; }
.chips-field legend.field { padding: 0; margin-bottom: var(--s2); }
.chip:has(input) { position: relative; cursor: pointer; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:has(input:focus-visible) { outline: 2px solid var(--pulse); outline-offset: 2px; }
/* a radar's name, small, on cards and demos */
.radar-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; background: var(--soft); color: var(--muted); max-width: 100%; }
.radar-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--hue, 20) 70% 55%); flex: none; }
.radar-filter { margin: 0 0 var(--s4); }
@media (max-width: 720px) {
  .radar-row { grid-template-columns: 12px minmax(0, 1fr) auto; row-gap: var(--s2); }
  .radar-row .radar-share { grid-column: 2; }
  .radar-row .btn { grid-column: 3; grid-row: 1; }
  .radar-row .switch { grid-column: 3; grid-row: 2; justify-self: end; }
}
.radar-filter { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.radar-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--hue, 20) 70% 55%); flex: none; }
.who .meta .radar-tag { vertical-align: 1px; margin-right: 4px; }
/* honeypot: off screen for people, still in the form for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Admin → New signups and Admin → Calls (round 9) */
.su-list, .call-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.su-list { padding: 0; }
.su-row, .call-row { display: grid; gap: var(--s4); align-items: center; padding: var(--s4); border-top: 1px solid var(--line); }
.su-row:first-child, .call-list .call-row:first-child { border-top: 0; }
.su-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; }
.su-who, .call-who, .call-when { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.su-steps { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.new-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: var(--signal);
  color: var(--on-signal); font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
.call-row { grid-template-columns: 220px minmax(0, 1fr) auto; padding: var(--s3) 0; }
.call-actions { display: flex; gap: var(--s2); align-items: center; }
.hours { display: flex; flex-direction: column; gap: var(--s2); }
.hours-row { display: grid; grid-template-columns: 150px 130px max-content 130px; justify-content: start; gap: var(--s3); align-items: center; }
.hours-row input[type=time] { min-height: 40px; font: inherit; font-size: 15px; color: var(--text); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 var(--s2); }
.admin-side .side-badge { margin-left: auto; }
@media (max-width: 720px) {
  .su-row, .call-row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .hours-row { grid-template-columns: 1fr 1fr auto 1fr; }
  .hours-row .check { grid-column: 1 / -1; }
}
.review-note { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); margin: 0 0 var(--s4);
  border-radius: var(--r-sm); background: var(--pulse-soft); color: var(--text); font-size: 14px; border: 1px solid var(--line); }
.review-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--link); }

/* ------------------------------------------------------------------ Preferences → Gmail and your data (round 11) */
.data-rows { display: flex; flex-direction: column; margin-top: var(--s4); border-top: 1px solid var(--line); }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0;
  border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
.data-row p { margin: var(--s1) 0 0; max-width: 60ch; }
.data-row > form, .data-row > .btn { flex: none; }
details.data-row { display: block; }
details.data-row > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); cursor: pointer;
  list-style: none; }
details.data-row > summary::-webkit-details-marker { display: none; }
details.data-row > summary > span:first-child { display: flex; flex-direction: column; gap: var(--s1); }
details.data-row[open] > summary .btn { visibility: hidden; }
.close-form { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--bad-soft); }
.close-form input[type="password"] { max-width: 360px; }
.check-row { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s3); font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--signal); }
@media (max-width: 760px) {
  .data-row, details.data-row > summary { flex-direction: column; align-items: stretch; }
  .data-row > form .btn, .data-row > .btn, details.data-row > summary .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ Admin → Artists (round 12) */
.artist-search { gap: var(--s2); flex-wrap: nowrap; }
.artist-search input { flex: 1; min-width: 0; }
.erase-list, .admin-log, .erase-what { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; }
.erase-list li { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.erase-list p { margin: var(--s1) 0 0; }
.erase-what li { padding: var(--s2) 0; }
.admin-log li { display: grid; grid-template-columns: 150px 1fr auto; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .erase-list li { flex-direction: column; align-items: stretch; }
  .admin-log li { grid-template-columns: 1fr; gap: var(--s1); }
}
