/* ─────────────────────────────────────────────────────────────────────
   "Screening" design system. Spec lives in CLAUDE.md → Design system.
   Loaded after the legacy inline styles in index.html, so it overrides them.
   Part 1: tokens + global re-skin. Part 2: nav. Part 3: intake.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg: #070707;
  --ink: #f4f1ea;
  --accent: #ff3d1f;
  --rule: rgba(255, 255, 255, .19);
  --dim: .55;
  --display: 'Tanker', 'Arial Narrow', sans-serif;
  --sans: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;

  /* legacy names, remapped so untouched screens follow the new palette */
  --red: var(--accent);
  --surface: var(--bg);
  --surface2: #121212;
  --border: var(--rule);
  --border2: rgba(255, 255, 255, .3);
  --text: var(--ink);
  --text2: rgba(244, 241, 234, .78);
  --text3: rgba(244, 241, 234, .5);
}

/* Square, flat, everywhere */
*, *::before, *::after { border-radius: 0 !important; box-shadow: none !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  padding: 0 20px 80px;
  align-items: stretch;
}
#main-view { display: block; }
#main-view, #profile-view { width: 100%; max-width: 520px; margin: 0 auto; }

/* label type: nav, meta, row labels, buttons */
label, .s-label, .toggle-btn, .mode-btn, .btn, .tonight-row, .tonight-opt, .tonight-q,
.suggestions-label, .suggestion-pill, .label-opt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-style: normal;
}
label { color: var(--ink); opacity: var(--dim); margin-bottom: 0; }
.label-opt { opacity: .8; margin-left: 8px; }

/* ── Nav ── */
header.s-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin: 0;
  text-align: left;
}
.s-mark {
  font: 400 26px/1 var(--display);
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
/* the record light: the one round thing in the system */
.s-mark { display: inline-flex; align-items: center; gap: 6px; }
.s-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50% !important;
  background: var(--accent);
  animation: sDotBlink 2.4s ease-in-out infinite;
}
@keyframes sDotBlink { 0%, 40%, 100% { opacity: 1; } 20% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .s-dot { animation: none; } }

.category-toggle {
  display: flex;
  gap: 16px;
  margin: 0 0 0 auto;
  padding: 0;
  background: none;
  border: 0;
  width: auto;
  max-width: none;
}
.toggle-btn {
  background: none !important;
  border: 0;
  padding: 6px 0;
  color: var(--ink);
  opacity: .5;
  flex: none;
}
.toggle-btn.active { opacity: 1; }
.toggle-btn:hover:not(.active) { opacity: .8; color: var(--ink); }
#user-avatar-wrap { position: static; flex: none; }
#user-avatar-wrap:empty { display: none; }

/* ── Intake ── */
.card {
  background: none;
  border: 0;
  padding: 0;
  max-width: none;
}
.mode-toggle {
  justify-content: flex-start;
  gap: 22px;
  margin: 6px 0 0;
  border-bottom: 0;
}
.mode-btn { padding: 0 0 8px; color: var(--ink); opacity: .5; border-bottom: 2px solid transparent; }
.mode-btn.active { opacity: 1; color: var(--ink); border-bottom-color: var(--accent); }
.mode-btn:hover { color: var(--ink); opacity: .8; }

/* signature move: three staggered slots that fill with stills */
.slivers {
  display: grid;
  grid-template-columns: repeat(var(--slots, 3), 1fr);
  gap: clamp(8px, calc(78px / var(--slots, 3)), 26px);
  height: 250px;
  padding: 0 14px;
  margin-top: 26px;
  transition: height .35s ease;
}
.slivers > div {
  border: 1px dashed rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  font: 400 44px/1 var(--display);
  color: rgba(255, 255, 255, .19);
  background-size: cover;
  background-position: center;
  transition: margin .35s ease;
}
.slivers > div:nth-child(1) { margin: 30px 0 10px; }
.slivers > div:nth-child(2) { margin: 0 0 40px; }
.slivers > div:nth-child(3) { margin: 50px 0 0; }
.slivers > div:nth-child(4) { margin: 12px 0 28px; }
.slivers > div:nth-child(5) { margin: 38px 0 4px; }
.slivers > div:nth-child(6) { margin: 4px 0 46px; }
.slivers > div.filled { border: 0; color: transparent; filter: saturate(.75); animation: sliverIn .5s ease both; }
.slivers.has-art { height: 190px; margin-top: 14px; }
@keyframes sliverIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.s-headline {
  font: 400 min(84px, 19vw)/.8 var(--display);
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 0 -3px;
  letter-spacing: 0;
}
.s-headline-sm { font-size: 52px; line-height: .86; margin-top: 34px; }
/* once titles are in, they become the headline */
#forme-pane:has(.chip) .s-headline { display: none; }

/* entered titles stack in the display face; the input is a single underline */
.chip-input-wrap {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 18px;
}
#chip-list { display: block !important; }
.chip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: none;
  border: 0;
  padding: 0;
  font: 400 34px/1.08 var(--display);
  text-transform: uppercase;
  white-space: normal;
  color: var(--ink);
}
.chip-remove { font: 400 16px/1 var(--sans); color: var(--ink); opacity: .45; padding: 8px 0 8px 16px; }
.chip-remove:hover { color: var(--accent); opacity: 1; }
.chip-text-input, #like-input {
  font: 400 24px/1.2 var(--sans) !important;
  color: var(--ink);
  background: none !important;
  border: 0 !important;
  border-bottom: 2px solid var(--ink) !important;
  padding: 10px 0 12px !important;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}
#forme-pane:has(.chip) .chip-text-input { font-size: 21px !important; }
.chip-text-input::placeholder, #like-input::placeholder, .tonight-note::placeholder { color: var(--ink); opacity: .35; font-style: normal; }
.chip-counter { font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-align: left; padding-top: 12px; color: var(--ink); opacity: var(--dim); }
.shows-hint { color: var(--accent); text-align: left; }

/* suggestions: underlined text, never pills */
.suggestions-wrap { margin-top: 10px; }
.suggestions-header { justify-content: flex-start; gap: 12px; margin-bottom: 4px; }
.suggestions-label { color: var(--ink); opacity: var(--dim); }
.suggestions-grid { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; }
.suggestion-pill {
  background: none !important;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding: 6px 0 2px;
  color: var(--ink);
  opacity: var(--dim);
}
.suggestion-pill:hover, .suggestion-pill.selected { opacity: 1; color: var(--ink); border-color: var(--ink); }

.divider { display: none; }

/* Tonight: quiet rows that open into a ruled grid */
.intake-fit { margin: 34px 0 0; }
.tonight-groups { border-top: 1px solid var(--rule); margin-top: 12px; }
.tonight-group { margin: 0; border-bottom: 1px solid var(--rule); }
.tonight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.tonight-val { opacity: .45; text-align: right; }
.tonight-val.set { opacity: 1; color: var(--accent); }
.tonight-body { display: none; padding-bottom: 16px; }
.tonight-group.open .tonight-body { display: block; }
.tonight-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.tonight-opt {
  background: none;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 6px;
  color: var(--ink);
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.tonight-opt:hover { background: rgba(255, 255, 255, .06); }
.tonight-opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tonight-opt .att-meter { display: none; }
.tonight-desc { font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: .8; margin-top: 12px; text-transform: none; letter-spacing: 0; }
.tonight-group-note { padding: 15px 0 4px; border-bottom: 0; }
.tonight-q { color: var(--ink); margin: 0; }
.tonight-note {
  font: 400 17px/1.3 var(--sans) !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rule) !important;
  padding: 12px 0 !important;
  color: var(--ink);
}
.tonight-note:focus, .chip-text-input:focus, #like-input:focus { border-bottom-color: var(--accent) !important; }
.like-trait { text-transform: none; letter-spacing: 0; font-size: 14px; }
.field-help, .like-loading { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); font-style: normal; }
.intake-extra { margin-top: 22px; }

/* buttons */
.btn { padding: 19px 0; font-weight: 600; font-size: 13px; letter-spacing: .12em; }
.btn-primary { background: var(--ink); color: var(--bg); margin-top: 26px; border: 1px solid var(--ink); }
.btn-primary.s-waiting { background: none; color: var(--ink); border-color: var(--rule); opacity: .6; }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); }

/* returning users: the Tonight door sits above intake as one quiet row */
.quick-rec-panel { margin: 8px 0 18px; padding: 0; background: none; border: 0; text-align: left; max-width: none; }
.btn-quick-rec {
  width: 100%;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 16px;
  font: 600 13px/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
}
.btn-quick-rec-sub { display: block; font-weight: 400; opacity: var(--dim); margin-top: 4px; }
.tonight-intro { text-align: left; font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: .8; }
.tonight-go { background: var(--ink); color: var(--bg); text-align: center; margin-top: 18px; }


/* ── Results ── */
#results { width: 100%; max-width: none; margin-top: 40px; }
.results-label {
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
  text-align: left;
  margin: 0 0 12px;
}

/* profile: slivers, archetype, tagline, tags as plain text */
.profile-card {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.profile-card .slivers { width: 100%; height: 240px; margin: 4px 0 26px; order: -2; }
.profile-session-badge {
  position: static;
  background: none;
  border: 0;
  padding: 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.profile-archetype {
  font: 400 min(84px, 19vw)/.8 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--accent);
  margin: 0 0 0 -3px;
  letter-spacing: 0;
}
.profile-tagline {
  font: 400 19px/1.3 var(--sans);
  font-style: normal;
  color: var(--ink);
  margin: 18px 0 0;
  max-width: 19em;
  text-align: left;
}
.profile-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin: 22px 0 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.profile-pill {
  background: none;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 12px;
  font: 500 12px/1.3 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
/* the tag grid gets a label like the notes below it; the grid's own top rule closes it */
.profile-pills-label { width: 100%; font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .6; margin-top: 28px; padding-bottom: 12px; }
.profile-pills-label + .profile-pills, .full-read .profile-pills-label + .profile-pills { margin-top: 0; }
/* what the list gives away: the part that proves it gets you */
.profile-notes { width: 100%; margin-top: 30px; }
.profile-notes-label { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .6; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.profile-note { display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.profile-note span { font: 400 26px/1 var(--display); color: var(--accent); }
.profile-note p { font: 400 18px/1.4 var(--sans); color: var(--ink); }
.profile-note:last-child p { font-weight: 500; }
.btn-share, .profile-card .btn-share {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 3px;
  margin: 18px 0 0;
  width: auto;
  font: 600 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.profile-confidence-nudge { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); text-align: left; margin-top: 14px; }

/* a pick: still bleeds to the screen edges, title sits over its lower edge */
.rec-card {
  background: none;
  border: 0;
  padding: 0 0 8px;
  margin: 56px 0 0;
  position: relative;
}
.rec-still {
  margin: 0 -20px;
  height: min(118vw, 520px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.rec-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.rec-still.is-poster { background-position: center; }
.rec-still.no-art { height: 40px; }
.rec-still.no-art::after { display: none; }
.rec-title {
  position: relative;
  font: 400 min(124px, 27vw)/.8 var(--display);
  text-transform: uppercase;
  color: var(--accent);
  margin: -.62em 0 0 -3px;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.rec-still.no-art + .rec-title { margin-top: 0; }
.rec-title-link { color: inherit; text-decoration: none; border: 0; }
.rec-title-link:hover { color: var(--ink); }
.rec-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px 14px;
  margin: 22px 0 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rec-num { font: inherit; letter-spacing: inherit; color: var(--ink); opacity: .6; background: none; padding: 0; }
.rec-platforms { gap: 12px; justify-content: flex-start; }
.rec-platform-note { font: 400 11px/1 var(--sans); letter-spacing: .04em; text-transform: none; }
.rec-platform, a.rec-platform {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  opacity: .6;
}
a.rec-platform { border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; opacity: .85; }
.rec-talent, .rec-attention { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: .6; margin-top: 10px; }
.rec-explanation { font: 400 18px/1.45 var(--sans); color: var(--ink); margin: 18px 0 0; }
.rec-explanation .exp-s1 { display: block; font: 500 21px/1.3 var(--sans); letter-spacing: -.01em; margin-bottom: 12px; }
.rec-explanation .exp-s2 { display: block; color: var(--ink); opacity: .9; }
/* the user's own titles are the evidence: mark them */
.rec-explanation strong { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent) !important; }
.rec-warning {
  background: none;
  border: 0;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 12px;
  margin-top: 16px;
  font: 400 15px/1.4 var(--sans);
  color: var(--ink);
  opacity: .85;
}
.rec-footer { border: 0; margin: 22px 0 0; padding: 0; display: block; }
.rec-footer-left { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; }
.btn-save, .btn-seen, .btn-share-rec {
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-left-width: 0;
  padding: 16px 0;
  font: 600 12px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.btn-save { background: var(--ink); color: var(--bg); border-color: var(--ink); border-left-width: 1px; }
.btn-save:hover { color: var(--bg); opacity: .85; }
.btn-save.saved { background: none; color: var(--accent); border-color: var(--accent); }
.seen-whisper-input { background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); }

/* after the picks */
.auth-nudge { background: none; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; margin-top: 34px; text-align: left; }
.auth-nudge-heading { font: 400 34px/.9 var(--display); text-transform: uppercase; color: var(--ink); }
.auth-nudge-body { font: 400 16px/1.4 var(--sans); color: var(--ink); opacity: .8; margin-top: 10px; }
.auth-nudge button {
  background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 3px; margin-top: 14px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); width: auto;
}
.try-again-btn { margin-top: 40px; animation: none; opacity: 1; }
.refine-card { background: none; border: 0; padding: 0; margin-top: 34px; }
.refine-card textarea { background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; font: 400 17px/1.4 var(--sans); }
.spinner { align-items: flex-start; font: 400 17px/1.4 var(--sans); color: var(--ink); gap: 0; width: 100%; max-width: 520px; margin: 40px auto 0; box-sizing: border-box; }
.spinner .dots { margin-bottom: 18px; }
#spinner-text, .observation-line { text-align: left; }
#spinner-text { max-width: 30em; font: 400 19px/1.4 var(--sans); letter-spacing: 0; }
.observations-reveal { align-items: flex-start; padding: 0; margin-left: 0; }
.error-card { background: none; border: 0; border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; color: var(--ink); }
.rec-title.long { font-size: min(84px, 18vw); line-height: .84; margin-top: -.9em; }
.profile-archetype, .s-headline, .swipe-card-title { overflow-wrap: normal; word-break: normal; }
.rec-still.no-art + .rec-title.long { margin-top: 0; }

/* wider screens: keep the phone-like column, let stills breathe to its edges */
@media (min-width: 600px) {
  body { padding-bottom: 120px; }
  .rec-still { margin: 0; height: 420px; }
}

/* ── Profile page ── */
#profile-view .s-nav { margin-bottom: 8px; }
.btn-back {
  background: none; border: 0; padding: 6px 0; margin: 0;
  font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink); opacity: .6;
}
.btn-back:hover { opacity: 1; color: var(--ink); }
#profile-view .results-label { margin-top: 30px; }
#profile-view .profile-card { margin-top: 12px; }
#profile-view .profile-archetype { margin-top: 4px; }
.profile-notes-label .label-opt { text-transform: none; letter-spacing: 0; font-size: 12px; opacity: .7; }
.profile-source-label { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); text-align: left; margin-top: 22px; }
.profile-section-header { display: flex; align-items: baseline; gap: 10px; margin-top: 40px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.profile-section-header .results-label { margin: 0; }
.profile-count { font: 400 22px/1 var(--display); color: var(--accent); background: none; border: 0; padding: 0; }
.profile-help { font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: .7; padding: 12px 0 2px; }
.profile-empty { font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); text-align: left; padding: 14px 0; background: none; border: 0; }
.profile-list-item {
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 12px 0; margin: 0; align-items: baseline;
}
.profile-item-title { font: 400 26px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.profile-item-meta { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .5; margin-top: 6px; }
.btn-remove { font: 400 16px/1 var(--sans); color: var(--ink); opacity: .45; padding: 4px 0 4px 16px; }
.btn-remove:hover { opacity: 1; color: var(--accent); }
.profile-add {
  font: 400 18px/1.3 var(--sans) !important; background: none !important; border: 0 !important;
  border-bottom: 1px solid var(--rule) !important; padding: 12px 0 !important; color: var(--ink); width: 100%;
}
.profile-add::placeholder { color: var(--ink); opacity: .35; font-style: normal; }
.profile-add:focus { border-bottom-color: var(--accent) !important; }
.profile-loading { font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); text-align: left; }

/* ── Seen it: reactions as words in a ruled row ── */
.seen-whisper { display: block; animation: none; opacity: 1; }
.seen-whisper-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255, 255, 255, .25); border-right: 0; }
.seen-whisper-thumb {
  background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .25);
  padding: 14px 4px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); opacity: 1; cursor: pointer;
}
.seen-whisper-thumb:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.seen-whisper-thumb.selected { background: var(--ink); color: var(--bg); }
.seen-whisper-input { width: 100%; margin-top: 10px; padding: 12px 0; font-size: 16px; }
.replacing-spinner { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); }

/* ── Account: text link + ruled menu ── */
.user-avatar {
  background: none !important; border: 0; padding: 6px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink); opacity: .6;
  display: inline-flex; align-items: center; gap: 6px;
}
.user-avatar:hover { opacity: 1; color: var(--ink); }
.user-dropdown { background: var(--bg); border: 1px solid var(--ink); padding: 0; min-width: 190px; top: calc(100% + 10px); }
.user-dropdown-item {
  font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
}
.user-dropdown-item:last-child { border-bottom: 0; }
.user-dropdown-item.muted { opacity: .55; }
.user-dropdown-item:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* ── Auth modal: a sheet, not a card ── */
.auth-overlay { background: rgba(7, 7, 7, .92); backdrop-filter: none; align-items: flex-end; }
.auth-modal {
  background: var(--bg); border: 0; border-top: 1px solid var(--ink);
  width: 100%; max-width: 520px; padding: 26px 20px 30px; text-align: left; margin: 0 auto;
}
.auth-modal h2 { font: 400 min(56px, 13vw)/.86 var(--display); text-transform: uppercase; color: var(--accent); margin: 24px 0 14px; letter-spacing: 0; }
.auth-modal p, #auth-modal-desc { font: 400 17px/1.4 var(--sans); color: var(--ink); opacity: .85; text-align: left; margin: 0; }
.auth-close {
  position: static; float: right; background: none; border: 0; padding: 4px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink); opacity: .6;
}
.social-btns { margin-top: 22px; gap: 0; border: 1px solid rgba(255, 255, 255, .25); }
.btn-social {
  background: none !important; color: var(--ink); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding: 16px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: left;
}
.btn-social:last-child { border-bottom: 0; }
.btn-social:hover { background: rgba(255, 255, 255, .06) !important; }
.auth-divider { margin: 18px 0 6px; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.auth-divider::before, .auth-divider::after { background: var(--rule); }
#auth-email {
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--ink) !important;
  padding: 12px 0 !important; font: 400 19px/1.3 var(--sans) !important; color: var(--ink); width: 100%; margin: 6px 0 0;
}
#auth-email::placeholder { color: var(--ink); opacity: .35; font-style: normal; }
.auth-modal .btn-magic {
  width: 100%; margin-top: 16px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 18px 0; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.auth-helper { text-align: left; font: 400 14px/1.4 var(--sans); opacity: var(--dim); margin-top: 10px; }
.auth-confirm { background: none; border: 0; border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; text-align: left; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.btn-skip {
  background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 3px; margin-top: 4px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .7;
}

/* ── Swipe: same language as a pick ── */
.swipe-screen { background: var(--bg); padding: 0 20px 30px; }
.swipe-header { padding: 20px 0 14px; gap: 14px; }
.swipe-close, .swipe-undo {
  background: none !important; border: 0; width: auto; height: auto; padding: 6px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink);
}
.swipe-undo:disabled { opacity: .3; }
.swipe-progress { background: var(--rule); height: 2px; }
.swipe-progress-bar { background: var(--accent); }
.swipe-card { background: var(--bg); border: 0; overflow: hidden; }
.swipe-card.behind { border: 1px solid var(--rule); }
.swipe-card-poster { background-position: center; position: relative; }
.swipe-card-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.swipe-card-poster.no-image { background: var(--bg); border-bottom: 1px solid var(--rule); }
.swipe-card-meta { padding: 0; }
.swipe-card-title { font: 400 min(56px, 13vw)/.86 var(--display); text-transform: uppercase; color: var(--accent); letter-spacing: 0; margin-top: -.5em; position: relative; }
.swipe-card-secondary { font: 500 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .6; margin-top: 12px; }
.swipe-card-pitch { font: 400 17px/1.42 var(--sans); color: var(--ink); margin-top: 10px; }
.swipe-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(255, 255, 255, .25); border-right: 0; margin-top: 18px; }
.swipe-btn {
  width: auto; height: auto; background: none; border: 0 !important; border-right: 1px solid rgba(255, 255, 255, .25) !important;
  padding: 15px 2px; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.swipe-btn:hover { transform: none; background: rgba(255, 255, 255, .06); }
.swipe-btn.swipe-btn-up { background: var(--ink); color: var(--bg); }
.swipe-hint { position: static; transform: none; background: none; border: 0; padding: 14px 0 0; max-width: none; font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); text-align: left; }
.swipe-hint.show { opacity: var(--dim); }
.swipe-checkpoint-card, .swipe-end-card { background: none; border: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; text-align: left; }
.swipe-checkpoint-copy { font: 400 18px/1.45 var(--sans); color: var(--ink); }
.swipe-checkpoint-feedback { background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; font: 400 17px/1.4 var(--sans); color: var(--ink); width: 100%; }
.swipe-action-btn {
  background: none; border: 1px solid rgba(255, 255, 255, .3); color: var(--ink);
  padding: 16px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.swipe-action-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.swipe-loading { font: 400 17px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); }

/* More like…: extras read like the Tonight rows */
.intake-extra .tonight-q { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.intake-extra .label-opt { margin: 0; opacity: .45; }

/* seen-it note row: optional text plus a Done cell */
.seen-whisper-note { display: flex; gap: 0; margin-top: 10px; border-bottom: 1px solid var(--rule); }
.seen-whisper-note .seen-whisper-input { margin: 0; border: 0; flex: 1; min-width: 0; }
.seen-whisper-done { background: none; border: 0; padding: 0 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.seen-whisper-done:hover { color: var(--accent); }
.slivers { cursor: text; }
.refine-card label { font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.refine-card textarea { line-height: 1.4; min-height: 84px; }
.profile-invite { margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
#profile-view .profile-card + .results-label { margin-top: 48px; }
#profile-view .btn-share { margin-top: 26px; }
.slivers:empty { display: none; }
#spinner-label { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .6; margin: 0 0 10px; }
#auth-error { font: 400 15px/1.4 var(--sans) !important; color: var(--accent) !important; margin-top: 12px !important; }

/* returning users: what REC already knows, above the slots */
.banked { margin: 18px 0 -8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.banked-label { display: block; font: 500 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.banked-titles { display: block; font: 400 17px/1.35 var(--sans); color: var(--ink); margin-top: 8px; }
.banked-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border: 1px solid rgba(255, 255, 255, .25); }
.banked-btn { background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .25); padding: 15px 8px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.banked-btn:last-child { border-right: 0; }
.banked-btn.primary { background: var(--ink); color: var(--bg); }
.banked-btn:not(.primary):hover { background: rgba(255, 255, 255, .06); }

/* ── Profile page: foldable sections, grouped lists ── */
.sec { margin-top: 36px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 0 0 12px; background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left; }
.sec-head .results-label { margin: 0; }
.sec-caret { margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-4px) rotate(45deg); opacity: .6; transition: transform .2s ease; }
.sec.closed .sec-caret { transform: translateY(-1px) rotate(-45deg); }
.sec.closed .sec-body { display: none; }
.sec .profile-card { margin-top: 14px; }
#profile-view .sec + .btn-share { margin-top: 26px; }
.profile-group + .profile-group { margin-top: 6px; }
.profile-group-label { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .4; padding: 12px 0 2px; }
.profile-list-item.expandable .profile-item-info { cursor: pointer; }
.profile-item-detail { display: none; margin-top: 12px; }
.profile-list-item.open .profile-item-detail { display: block; }
.profile-item-expl { font: 400 16px/1.45 var(--sans); color: var(--ink); }
.profile-item-expl .exp-s1 { display: inline; font: inherit; margin: 0; }
.profile-item-expl .exp-s2 { display: inline; opacity: .85; }
.profile-item-detail .profile-item-meta { margin-top: 10px; }
.profile-item-detail .rec-warning { margin-top: 12px; }
.profile-feedback-link { display: inline-block; background: none; border: 0; padding: 0; margin-top: 8px; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); cursor: pointer; }
.profile-list-item.open .profile-feedback-link { display: none; }
.profile-item-detail.seen-whisper .seen-whisper-row { margin-top: 2px; }
.sec + .profile-invite { border-top: 0; margin-top: 0; }
.profile-item-expl .exp-s1::after { content: " "; }
.profile-item-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border: 1px solid rgba(255, 255, 255, .25); }
.profile-item-actions button { background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .25); padding: 13px 6px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.profile-item-actions button:last-child { border-right: 0; }
.profile-item-actions button:hover { background: rgba(255, 255, 255, .06); }

/* profile hierarchy: section heads in the display face, quieter rows and add lines */
.sec-head .results-label { font: 400 30px/1 var(--display); letter-spacing: 0; text-transform: uppercase; opacity: 1; margin: 0; }
.sec-head { align-items: center; padding-bottom: 10px; }
.sec-head .profile-count { font-size: 18px; }
.sec-caret { transform: translateY(-2px) rotate(45deg); }
.profile-item-title { font-size: 24px; }
.profile-help { font-size: 14px; opacity: .55; padding-bottom: 0; }
.profile-addline { padding: 10px 0 2px; }
.profile-add-link { background: none; border: 0; padding: 4px 0; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); cursor: pointer; }
.profile-add { font-size: 17px !important; padding: 8px 0 !important; }
.profile-list-item .profile-item-info { min-width: 0; flex: 1; }
.seen-whisper-note .seen-whisper-input { width: auto !important; flex: 1; min-width: 0; }
.seen-whisper-done { flex: none; padding-left: 14px; }

/* main-page saved list (signed-out users): same language as the profile lists */
#saved-section { margin-top: 40px; max-width: none; width: 100%; }
.saved-label { font: 400 30px/1 var(--display); letter-spacing: 0; text-transform: uppercase; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin: 0; }
.saved-item { background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 0; }
.saved-item-row { align-items: baseline; }
.saved-item-title, .saved-title-link { font: 400 24px/1.05 var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.saved-item-meta { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .5; margin-top: 6px; }
.saved-platform-link { color: inherit; border-bottom: 1px solid rgba(255,255,255,.4); }
.saved-item-actions { gap: 14px; align-items: baseline; }
.btn-watched-saved { background: none; border: 0; padding: 0; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); cursor: pointer; }
.saved-watch-badge { background: none; border: 0; padding: 0; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.saved-item-explanation { padding: 10px 0 0; margin: 0; border: 0; background: none; }
.saved-item-body { font: 400 16px/1.45 var(--sans); color: var(--ink); }
.saved-item-body .exp-s1 { display: inline; font: inherit; margin: 0; }
.saved-item-body .exp-s1::after { content: " "; }
.saved-item-body .exp-s2 { display: inline; opacity: .85; }
.saved-item-talent { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .5; margin-bottom: 8px; }
.saved-item-note { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin-top: 10px; font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: .85; }
.saved-item-feedback { background: none; border: 0; padding: 8px 0 0; }

/* usability pass */
:root { --dim: .68; }
.chip-text-input::placeholder, #like-input::placeholder, .tonight-note::placeholder, .profile-add::placeholder { opacity: .45; }
.rec-platform-note, .profile-item-meta, .rec-num, .rec-platform { opacity: .7; }
footer a, footer { opacity: .7 !important; color: var(--ink) !important; }
.mode-hint { font: 400 14px/1.4 var(--sans); color: var(--ink); opacity: var(--dim); margin: 10px 0 0; }
.suggestion-pill.selected { opacity: .35; border-color: transparent; text-decoration: line-through; pointer-events: none; }
.btn-primary.s-sticky { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 0 0 12px var(--bg) !important; }
.full-read { margin-top: 56px; }
.full-read .profile-card { margin-top: 12px; }
.full-read .profile-pills { margin-top: 28px; }
.results-label + .profile-card .profile-archetype { margin-top: 0; }
.read-more-link { display: inline-block; margin-top: 16px; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .7; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; }
.read-more-link:hover { opacity: 1; color: var(--accent); border-color: var(--accent); }
.full-read { scroll-margin-top: 16px; }

/* type-ahead: real titles under the input */
.typeahead { border: 1px solid var(--ink); border-top: 0; background: var(--bg); margin-top: -1px; }
.typeahead[hidden] { display: none; }
.typeahead-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-align: left; cursor: pointer; }
.typeahead-item:last-child { border-bottom: 0; }
.typeahead-item.active, .typeahead-item:hover { background: rgba(255, 255, 255, .08); }
.typeahead-thumb { width: 30px; height: 44px; flex: none; background-size: cover; background-position: center; background-color: rgba(255, 255, 255, .06); }
.typeahead-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.typeahead-title { font: 400 22px/1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typeahead-meta { font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
/* session read: the name above the picks is a step down from the full read's headline */
#results > .profile-card:not(.profile-card-full) .profile-archetype { font-size: min(56px, 14vw); line-height: .84; }
.refine-card + .full-read { margin-top: 72px; }
/* "Did you watch it?" — returning visits, above the form */
.checkin { margin: 6px 0 30px; }
.checkin-label { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.checkin-item { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.checkin-title { font: 400 34px/.85 var(--display); text-transform: uppercase; color: var(--ink); }
.checkin-meta { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: var(--dim); margin: 10px 0 14px; }
.checkin-row { grid-template-columns: repeat(4, 1fr); }
.noted-line, .rec-noted { font: 400 17px/1.4 var(--sans); color: var(--ink); margin: 12px 0 0; }
.rec-noted:empty { display: none; }
.rec-noted { margin: 0 0 10px; }
.noted-kicker { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.using-line { font: 400 15px/1.4 var(--sans); color: var(--ink); opacity: .7; margin: -6px 0 18px; max-width: 34em; }

/* persona test fixes (Sept 24): readable fine print, "More like…" as a real link */
.rec-platform-note { font-size: 13px; color: var(--ink); opacity: .7; }
.tonight-val { opacity: .6; }
.tonight-val.set { opacity: 1; }
.to-like { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
