/* review.css: Review (ideas) and Today. Uses the shell's tokens only. Phone first; two columns from 1100px. */

/* ---------- the idea card ---------- */
.flash {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-weight: 600;
  background: var(--good-tint); color: var(--text-primary); border: 1px solid var(--good);
  overflow-wrap: anywhere;
}
.idea {
  display: grid; gap: 18px; padding: 18px 16px; margin-bottom: 18px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.idea[aria-busy="true"] { opacity: 0.85; }
.idea.held { border-style: dashed; }
.ihead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.ihead .place { color: var(--text-tertiary); font-size: 13px; font-variant-numeric: tabular-nums; }
.ititle { margin: 0 0 14px; font: 700 22px/1.2 var(--font-display); letter-spacing: -0.012em; overflow-wrap: anywhere; }

.facts { margin: 0 0 16px; display: grid; gap: 10px; }
.fact { display: grid; gap: 1px; }
.fact dt { margin: 0; }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.fact .claim { display: block; font-weight: 600; }
.fact .src { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 13px; }
.fact .src .label { display: inline; margin-right: 6px; }
.fact .srctext { overflow-wrap: anywhere; }
.quiet { color: var(--text-tertiary); }

/* the three hooks: a radio each, the whole block is the tap target */
.hooks { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.hooks legend { padding: 0; margin-bottom: 8px; }
.hook { display: block; cursor: pointer; }
.hook input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hookbody {
  display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--surface-solid); min-height: 48px;
}
.hook input:checked + .hookbody { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.hook input:focus-visible + .hookbody { outline: 2px solid var(--accent); outline-offset: 2px; }
.hookhead { display: flex; gap: 10px; align-items: baseline; }
.letter {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-sunken); font-weight: 700; font-size: 13px;
}
.hook input:checked + .hookbody .letter { background: var(--accent-strong); color: var(--bg-elevated); }
.said { font-weight: 600; overflow-wrap: anywhere; }
.hookline { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.hookline .label { margin: 0; padding-top: 2px; }

/* the Critic */
.critic { padding: 14px; border-radius: 14px; background: var(--surface-sunken); display: grid; gap: 8px; }
.crow { display: flex; justify-content: space-between; align-items: baseline; }
.crow .label, .critic p { margin: 0; }
.crow .total { font-weight: 700; font-variant-numeric: tabular-nums; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sc { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--border); }
.sc .n { font-weight: 700; font-size: 17px; line-height: 1.1; }
.sc .w { font-size: 10.5px; color: var(--text-tertiary); }
.sc.s2 .n { color: var(--good); }
.sc.s1 .n { color: var(--warn); }
.sc.s0 { background: var(--bad-tint); }
.sc.s0 .n { color: var(--bad); }
.predict { color: var(--text-secondary); }
.weak { display: grid; gap: 2px; overflow-wrap: anywhere; }

/* the decision */
.decide { display: grid; gap: 12px; }
.decide .label { margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent-tint-strong); border-color: var(--accent); color: var(--accent-strong); }
.wordsbox { display: grid; gap: 4px; }
.wordsbox .label { margin: 0; }
.words, .asknote { font-family: inherit; }
.words {
  width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); font-size: 16px; /* 16px: no zoom on iPhone */ line-height: 1.4; resize: vertical;
}
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v { min-height: 54px; padding: 8px 6px; font-size: 16px; font-weight: 700; }
.v.approve { background: var(--good-tint); border-color: var(--good); }
.v.rework { background: var(--warn-tint); border-color: var(--warn); }
.v.reject { background: var(--bad-tint); border-color: var(--bad); }
.v[disabled], .chip[disabled], .linkbtn[disabled] { opacity: 0.6; cursor: wait; }
.status { min-height: 0; overflow-wrap: anywhere; }
.status:not(:empty) { padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.status.bad { background: var(--bad-tint); }
.status.good { background: var(--good-tint); }
.status .btn { display: block; margin-top: 8px; }
.minor { margin: 0; color: var(--text-secondary); font-size: 13px; }
.linkbtn {
  min-height: 40px; padding: 4px 0; border: 0; background: none; color: var(--accent-strong);
  font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.heldfold { margin: 0 0 18px; }
.heldfold summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 650; }
.heldfold .idea { margin-top: 12px; }

/* a script, storyboard, video or carousel card: same card, same side panel */
.inline { margin: 0 0 12px; }
/* the row of chips at the top: one per kind that waits, with its count; a tap moves to the first card of that kind */
.jump { display: grid; gap: 6px; margin: 0 0 14px; }
.jump .label { margin: 0; }
.jumprow { display: flex; flex-wrap: wrap; gap: 8px; }
.jumpchip { display: inline-flex; align-items: center; gap: 6px; }
.jumpn { font-variant-numeric: tabular-nums; font-weight: 700; }
.jumpnote { margin: 0 0 14px; padding: 12px 16px; font-size: 14px; }
.work .sp { --sp-reserve: 300px; }
.work .markbox { display: grid; gap: 6px; }
.markrow { display: flex; flex-wrap: wrap; gap: 8px; }
.markrow:empty { display: none; }
.markchip { font-variant-numeric: tabular-nums; border-color: var(--accent); color: var(--accent-strong); }
.preview:empty { display: none; }
.preview { overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; background: var(--surface-sunken); }

@media (min-width: 1100px) {
  .idea { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 32px; padding: 26px; align-items: start; }
  /* a storyboard is judged by its pictures: they get most of the width */
  .idea.work.storyboard { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.6fr); }
  .side { position: sticky; top: 76px; display: grid; gap: 18px; }
  .ititle { font-size: 28px; }
}

/* ---------- Today ---------- */
.block h2 { margin: 0 0 4px; font: 700 20px/1.2 var(--font-display); }
.block { padding: 18px 16px; }
.waitlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.waitrow {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
}
.waitrow .count { font: 700 22px/1 var(--font-display); font-variant-numeric: tabular-nums; margin-right: 8px; }
.waitrow .sub { color: var(--text-secondary); font-size: 13.5px; }
.tobtn { display: inline-flex; align-items: center; margin-top: 14px; text-decoration: none; background: var(--accent-tint); border-color: var(--accent); color: var(--text-primary); }
.agentlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.agent { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; }
.agent .head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.agent .who { font-weight: 650; }
.agent .meta { color: var(--text-tertiary); font-size: 13px; }
.agent .text { color: var(--text-secondary); overflow-wrap: anywhere; font-size: 13.5px; }
.agent.trouble { border-color: var(--warn); background: var(--warn-tint); }
.cardlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cardrow { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; }
.cardrow a { font-weight: 650; overflow-wrap: anywhere; }
.cardrow .meta { color: var(--text-tertiary); font-size: 13px; }
@media (min-width: 900px) { .todaygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .todaygrid .wide { grid-column: 1 / -1; } }

/* ---------- the counts, the list he can skim, Previous / Next / Skip, the recommended hook, "Makes" ---------- */
.counts { margin: 0 0 12px; font-weight: 650; overflow-wrap: anywhere; }
.nextwrap { margin: -6px 0 14px; }
/* "Makes": three toggle pills (Video, Carousel, Post), then the length while Video is on. A pill that is off is an outline. */
.makes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -6px 0 14px; }
.makes .makeslabel { margin: 0; }
.makepills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.makepill {
  min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-secondary);
  font-size: 14px; font-weight: 650; cursor: pointer;
}
.pill.makepill[aria-pressed="true"].kind-video { background: var(--kind-video-tint); border-color: var(--kind-video); color: var(--kind-video); }
.pill.makepill[aria-pressed="true"].kind-carousel { background: var(--kind-carousel-tint); border-color: var(--kind-carousel); color: var(--kind-carousel); }
.pill.makepill[aria-pressed="true"].kind-post { background: var(--kind-post-tint); border-color: var(--kind-post); color: var(--kind-post); }
.pill.makepill[aria-pressed="true"]::before { content: '\2713\00a0'; }
.makepill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.makeslen { color: var(--text-secondary); font-weight: 600; }
.makeshint { flex: 1 1 100%; color: var(--text-secondary); font-size: 13px; }
.hook.recommended .hookbody { border-color: var(--good); }
.hook.recommended input:checked + .hookbody { border-color: var(--accent); }
.hookhead .pill { margin-left: auto; flex: none; }
.hookwhy { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13.5px; color: var(--text-primary); overflow-wrap: anywhere; }
.hookwhy .label { margin: 0; padding-top: 2px; }

.skim { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); }
.skim summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 650; }
.skim .whenopen { display: none; }
.skim[open] .whenopen { display: inline; }
.skim[open] .whenclosed { display: none; }
.skimlist { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 4px; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.skimrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; width: 100%; text-align: left;
  min-height: 48px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: inherit; font: inherit; cursor: pointer;
}
.skimrow:hover { background: var(--surface-sunken); }
.skimrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.skimrow.closed { cursor: default; opacity: 0.7; }
.skimrow.closed .rtitle { text-decoration: line-through; text-decoration-thickness: 1px; }
.skimitem.here .skimrow { border-color: var(--accent); background: var(--accent-tint); }
.rtitle { font-weight: 600; overflow-wrap: anywhere; grid-column: 1; }
.rmeta { grid-column: 1; color: var(--text-secondary); font-size: 13px; }
.rmark { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.stepbar { display: grid; grid-template-columns: 1fr auto 1fr 1fr; align-items: center; gap: 8px; margin: 0 0 12px; }
.stepbtn { min-height: 48px; padding: 8px 6px; font-weight: 650; }
.stepbtn[disabled] { opacity: 0.45; cursor: default; }
.steppos { font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 6px; text-align: center; white-space: nowrap; }
.stepbar + .idea + .stepbar { margin: -6px 0 18px; }
@media (min-width: 900px) {
  .stepbar { grid-template-columns: auto auto auto auto; justify-content: start; }
  .stepbtn { padding: 8px 18px; }
}

/* the kind pills of a row of the list (Video, Carousel, Post), above its title */
.rkinds { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.rkinds .pill { font-size: 11.5px; padding: 1px 8px; }

/* ---------- the tabs: one per section (Ideas, Scripts, ..., Held back) ---------- */
.rtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rtab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text-secondary); font: inherit; font-weight: 650; cursor: pointer;
}
.rtab[aria-selected="true"] { background: var(--accent-tint-strong); border-color: var(--accent); color: var(--text-primary); }
.rtab.heldtab { border-style: dashed; }
.rtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sectionhelp { margin: -4px 0 12px; }

/* ---------- what he said about the version before ---------- */
.before { margin: -4px 0 14px; padding: 10px 14px; border-left: 3px solid var(--good); border-radius: 0 12px 12px 0; background: var(--good-tint); }
.before .label { margin: 0 0 2px; }
.beforewords { margin: 0; overflow-wrap: anywhere; }
.heldwhy { margin: -6px 0 12px; }

/* ---------- the decision bar: stays at the bottom of the screen while its card is in view ---------- */
.actbar {
  /* on a phone it sits just above the bottom bar of the site; from 900px wide there is no bottom bar */
  position: sticky; bottom: calc(var(--bar-height) + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 8px;
  margin: 0 -16px -18px; padding: 10px 16px;
  background: var(--surface-solid); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: 0 -8px 18px -12px rgba(0, 0, 0, 0.35);
}
.actbar .v { min-height: 48px; }
@media (min-width: 900px) { .actbar { bottom: 0; } }
@media (min-width: 1100px) {
  /* centred under the whole card: in the side column alone it looked pushed to the right, with nothing on the left */
  .actbar { grid-column: 1 / -1; margin: 0 -26px -26px; padding: 12px 26px; justify-items: center; }
  .actbar .status, .actbar .verdicts { width: min(100%, 640px); }
  .actbar .status { text-align: center; }
  .side { max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- design pass, 18 Nov 2026 ---------- */
/* the tabs read as navigation (an underline), not as buttons */
.rtabs { gap: 2px; padding-bottom: 0; margin-bottom: 10px; }
.rtab { min-height: 44px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-secondary); margin-bottom: -1px; }
.rtab:hover { color: var(--text-primary); }
.rtab[aria-selected="true"] { background: none; border-color: var(--accent); color: var(--text-primary); }
.rtab.heldtab { border-style: solid; border-color: transparent; }
.rtab.heldtab[aria-selected="true"] { border-color: var(--accent); }
.rtab .jumpn { font-weight: 600; color: var(--text-tertiary); }
.rtab[aria-selected="true"] .jumpn { color: var(--accent-strong); }
/* one row: the list on the left (a quiet link that opens), where he is and the arrows on the right */
.rnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.rnav .skim { flex: 1 1 auto; margin: 0; border: 0; background: none; min-width: 0; }
.rnav .skim summary { min-height: 44px; padding: 0 4px; color: var(--text-secondary); font-weight: 600; font-size: 13.5px; }
.rnav .skim summary:hover { color: var(--text-primary); }
.rnav .skim[open] { flex-basis: 100%; order: 2; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); }
.rnav .stepbar { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; }
.rnav .stepbtn { min-height: 44px; min-width: 44px; padding: 4px 10px; font-size: 18px; line-height: 1; }
.rnav .stepbtn.step-skip { font-size: 14px; border-color: transparent; color: var(--text-secondary); }
.rnav .steppos { font-size: 13.5px; color: var(--text-secondary); padding: 0 4px; }
/* Today: rows with lines between, not boxes */
.waitlist { gap: 0; }
.waitrow { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 12px 0; }
.waitlist > .waitrow:first-child { border-top: 0; }
.cardlist, .agentlist { gap: 0; }
.cardrow, .agent { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 10px 0; }
.cardlist > .cardrow:first-child, .agentlist > .agent:first-child { border-top: 0; }
.agent.trouble { padding: 10px 12px; border-radius: 10px; border-top: 0; }
.tobtn { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Today: the agents' line under Start review */
.todayagents { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* the way to the story's history, from a card: easy to find, never in the way */
a.historylink { font-weight: 650; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
a.historylink:hover { text-decoration: underline; }
