/* folfol kitchen video
 *
 * Built for a manager holding a phone in a kitchen, under fluorescent light,
 * usually because somebody just complained. That environment drives most of what
 * follows: a light surface rather than a dark one, type that survives a glance,
 * and touch targets a thumb can hit without looking.
 *
 * The palette comes off the camera itself -- the steel prep counter, tungsten
 * light, and the ingredient bins in frame. Saffron is the one loud colour and it
 * is spent on a single thing: the footage.
 */

:root {
  --paper:     #EEF1F2;   /* cool, not cream: a warm page yellows under kitchen light */
  --surface:   #FFFFFF;
  --ink:       #14181B;
  --steel:     #5C666E;   /* secondary text, rail line */
  --edge:      #D3D9DC;
  --saffron:   #E39A0C;   /* rice, saj, turmeric. The single accent. */
  --saffron-d: #A86E00;   /* the same hue at text contrast */
  --observed:  #146B5A;   /* a station with a camera */
  --strike:    #A32A1C;   /* a removal: "Non Oignon" */

  --gap: 1.25rem;
  --measure: 34rem;       /* ~70 characters at this size */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  /* Every clock, duration and receipt id on this page is a figure that gets
   * compared against another one directly above it. */
  font-variant-numeric: tabular-nums;
}

h1, h2 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--saffron-d);
  outline-offset: 2px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* -- chrome --------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* A lit KDS screen, which is the object this whole system is about. */
.mark__screen {
  width: 1.15rem;
  height: 0.8rem;
  border-radius: 1px;
  background: var(--saffron);
  box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.22);
  flex: none;
}

.top__nav { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; }
.top__nav a { text-decoration: none; opacity: 0.85; }
.top__nav a:hover, .top__nav a[aria-current] { opacity: 1; text-decoration: underline; }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; opacity: 0.85; text-decoration: underline;
}
.linkish:hover { opacity: 1; }

.page { padding: 1.5rem 1rem 5rem; margin: 0 auto; max-width: 46rem; }
.page--narrow { max-width: 26rem; }

/* -- sign in -------------------------------------------------------------- */

.gate { padding-top: 2.5rem; }
.gate__head { font-size: 1.6rem; }
.gate__lede { color: var(--steel); margin: 0.35rem 0 1.75rem; max-width: var(--measure); }
.gate__form { display: grid; gap: 0.5rem; }
.gate__form label { font-weight: 500; }

.gate__form input {
  font: inherit;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--surface);
  color: inherit;
  width: 100%;
}

.gate__error {
  border-left: 3px solid var(--strike);
  background: var(--surface);
  padding: 0.7rem 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--strike);
}

.gate__fine { color: var(--steel); font-size: 0.9rem; margin-top: 1.25rem; }
.gate__again { margin-top: 1.5rem; }

/* -- buttons -------------------------------------------------------------- */

.btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 2px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  /* A thumb, not a mouse. */
  min-height: 2.9rem;
}

.btn--go { background: var(--ink); color: var(--paper); }
.btn--go:hover { background: #000; }

/* The one loud thing on the page is the way to the footage. */
.btn--watch { background: var(--saffron); color: var(--ink); }
.btn--watch:hover { background: #F0A916; }
.btn--watch[disabled] { background: var(--edge); color: var(--steel); cursor: progress; }

.btn--keep {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--edge);
  font-weight: 500;
}
.btn--keep:hover { border-color: var(--steel); }

/* -- search --------------------------------------------------------------- */

.find { margin-bottom: 2rem; }
.find__label { display: block; font-weight: 600; font-size: 1.35rem; margin-bottom: 0.6rem; }
.find__row { display: flex; gap: 0.5rem; }

.find__input {
  font: inherit;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--surface);
  color: inherit;
}
.find__input:focus { border-color: var(--steel); }

.find__hint { color: var(--steel); font-size: 0.9rem; margin: 0.6rem 0 0; max-width: var(--measure); }

.recent__head, .lede__head { font-size: 1.05rem; margin-bottom: 0.75rem; }
.lede { margin-bottom: 1.5rem; }
.lede p { color: var(--steel); margin: 0.2rem 0 0; }

.orders { list-style: none; margin: 0; padding: 0; }

.order + .order { border-top: 1px solid var(--edge); }

/* Deliberately not cards. A result list is something you run your eye down, so
 * it reads as rows with one shared rule between them. */
.order__hit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.9rem 0.25rem;
  text-decoration: none;
  align-items: baseline;
}
.order__hit:hover { background: var(--surface); }

.order__who  { font-weight: 600; grid-column: 1; }
.order__when { grid-column: 2; grid-row: 1; text-align: right; color: var(--steel); font-size: 0.9rem; }
.order__day  { margin-right: 0.4rem; }
.order__where { grid-column: 1; color: var(--steel); font-size: 0.9rem; }
.order__meta { grid-column: 2; text-align: right; color: var(--steel); font-size: 0.9rem; }
.order__id   { grid-column: 1 / -1; color: var(--steel); font-size: 0.85rem; }

.nothing { max-width: var(--measure); color: var(--steel); }
.nothing__head { color: var(--ink); font-weight: 600; margin-bottom: 0.4rem; }

/* -- one order ------------------------------------------------------------ */

.back { display: inline-block; margin-bottom: 1.25rem; color: var(--steel); font-size: 0.95rem; }

.ticket { margin-bottom: 1.75rem; }
.ticket__who { font-size: 1.7rem; }

.ticket__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0.75rem 0 0;
}
.ticket__facts div { display: flex; gap: 0.4rem; align-items: baseline; }
.ticket__facts dt { color: var(--steel); font-size: 0.9rem; }
.ticket__facts dd { margin: 0; font-weight: 500; }

.rail__intro { color: var(--steel); max-width: var(--measure); margin: 0 0 1.25rem; }

/* The rail: the order moving through the kitchen. The line is information --
 * each node is a screen the ticket appeared on, and they are in the order it
 * reached them. A single-station order gets no line, because there is no
 * journey to draw. */
.rail { list-style: none; margin: 0; padding: 0; position: relative; }

.rail::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--edge);
}
.rail--single::before { display: none; }

.stop { position: relative; padding: 0 0 1.75rem 1.9rem; }
.rail--single .stop { padding-left: 0; }

.stop__mark {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--steel);
}
.rail--single .stop__mark { display: none; }

/* Filled means there is footage. Hollow means the ticket passed through a
 * screen nobody is watching -- which is most of them. */
.stop--observed .stop__mark { background: var(--observed); border-color: var(--observed); }
.stop--blind .stop__mark { background: var(--paper); border-color: var(--edge); }

.stop__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.85rem; }
.stop__where { font-size: 1.15rem; }

.stop__clock { margin: 0; color: var(--steel); font-size: 0.95rem; }
.stop__arrowless { margin: 0 0.25rem; }
.stop__prep { color: var(--ink); font-weight: 600; margin-left: 0.5rem; }
.stop__screen { width: 100%; margin: 0; color: var(--steel); font-size: 0.85rem; }

.build { list-style: none; margin: 0.85rem 0 0; padding: 0; }
.build--none { color: var(--steel); font-style: italic; }
.build__item + .build__item { margin-top: 0.5rem; }

.build__qty {
  display: inline-block;
  min-width: 1.6rem;
  font-weight: 700;
  color: var(--steel);
}
.build__name { font-weight: 500; }

.mods { list-style: none; margin: 0.15rem 0 0 1.6rem; padding: 0; }
.mod { font-size: 0.95rem; color: var(--steel); }

/* A removal is the error case worth hunting, so it is the only thing on the
 * ticket allowed to shout. */
.mod--remove { color: var(--strike); font-weight: 600; }
.mod--extra { color: var(--saffron-d); font-weight: 600; }

.stop__subset {
  margin: 0.75rem 0 0;
  color: var(--steel);
  font-size: 0.9rem;
  border-left: 2px solid var(--edge);
  padding-left: 0.6rem;
  max-width: var(--measure);
}

.blind { margin: 0.9rem 0 0; color: var(--steel); font-size: 0.95rem; }

/* -- the footage ---------------------------------------------------------- */

.watch { margin-top: 1rem; }
.watch__note { margin-left: 0.75rem; color: var(--steel); font-size: 0.95rem; }

/* The one elevated surface in the whole interface. Comparing the ticket against
 * what actually happened is the entire product, so this is where the weight
 * goes. */
/* Wins over any later rule that sets display on the same element. Without the
 * !important this ties on specificity with a two-class selector and is decided
 * by source order, which is too fragile for "is the player visible". */
.watch__stage[hidden], .keep[hidden] { display: none !important; }
.watch__stage {
  margin-top: 0.9rem;
  background: var(--ink);
  padding: 0.5rem;
  border-radius: 2px;
}

.watch__stage video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 1px;
}

.stage__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.55rem 0.35rem 0.2rem;
  color: var(--paper);
  font-size: 0.9rem;
}
.stage__span { color: #AFB8BE; }

.stage__earlier {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 1px solid #3A4248;
  color: var(--paper);
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  min-height: 2.25rem;
}
.stage__earlier:hover { border-color: var(--saffron); color: var(--saffron); }
.stage__earlier[disabled] { opacity: 0.45; cursor: default; }

.keep { margin-top: 0.75rem; }
.watch__saved { margin: 0.6rem 0 0; color: var(--observed); font-size: 0.9rem; font-weight: 500; }

.watch__fail {
  margin-top: 0.75rem;
  border-left: 3px solid var(--strike);
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  color: var(--strike);
  max-width: var(--measure);
}

/* -- saved ---------------------------------------------------------------- */

.keeps { list-style: none; margin: 0; padding: 0; }
.keep-row { padding: 1.25rem 0; }
.keep-row + .keep-row { border-top: 1px solid var(--edge); }
.keep-row__who { font-size: 1.15rem; }
.keep-row__where { margin: 0.2rem 0 0; font-weight: 500; }
.keep-row__when { margin: 0.2rem 0 0; color: var(--steel); font-size: 0.9rem; }
.keep-row__by { display: block; }
.keep-row__note { margin: 0.5rem 0 0; max-width: var(--measure); }
.keep-row__gone { color: var(--strike); }

.keep-row__video {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  background: #000;
  border-radius: 2px;
}

/* -- wider than a phone --------------------------------------------------- */

@media (min-width: 46rem) {
  .page { padding-left: 2rem; padding-right: 2rem; }
  .ticket__who { font-size: 2rem; }

  .keep-row { display: grid; grid-template-columns: 1fr 22rem; gap: 1.5rem; align-items: start; }
  .keep-row__video { margin-top: 0; }
}

/* -- filters --------------------------------------------------------------
 *
 * The page carries two jobs now: find one order, or audit a night's worth. The
 * filters fold away by default so the first job still opens on a search box,
 * and spring open whenever something is actually narrowing the list -- the
 * state you can be in without noticing is the one worth showing.
 */

.panel { border: 1px solid var(--edge); background: var(--surface); border-radius: 2px;
         margin-bottom: 0.9rem; }

.panel__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 2.9rem;          /* a thumb, not a mouse */
}
.panel__toggle::-webkit-details-marker { display: none; }
.panel__toggle::after { content: "⌄"; color: var(--steel); margin-left: auto; }
.panel[open] .panel__toggle::after { content: "⌃"; }
.panel__count { color: var(--steel); font-weight: 400; font-size: 0.9rem; }

.panel__body {
  border-top: 1px solid var(--edge);
  padding: 0.85rem;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 40rem) {
  .panel__body { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.75rem; }
}

.group__head { font-size: 0.85rem; font-weight: 700; color: var(--steel);
               margin: 0 0 0.45rem; letter-spacing: 0.03em; }
.group__note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--steel);
               max-width: var(--measure); }

.picks { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Each option carries its count, so you can see what a filter will do before
 * spending a tap on it. */
.pick {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  border: 1px solid var(--edge); border-radius: 2px;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--paper);
  min-height: 2.1rem;
}
.pick:hover { border-color: var(--steel); }
.pick__label { display: inline-flex; align-items: center; gap: 0.3rem; }
.pick__n { color: var(--steel); font-size: 0.8rem; }

.pick--on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick--on .pick__n { color: #B9C2C7; }

/* Zero-count options stay clickable. An option that vanishes the moment it has
 * no matches makes the control lie about what exists. */
.pick--empty { opacity: 0.55; }
.pick--empty:hover { opacity: 1; }

/* The same filled/hollow language as the rail on the order page. */
.pick__cam { width: 7px; height: 7px; border-radius: 50%; background: var(--observed); }
.pick--on .pick__cam { background: var(--saffron); }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--ink); color: var(--paper);
  border-radius: 2px; padding: 0.3rem 0.5rem;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.chip span { opacity: 0.6; }
.chip:hover span { opacity: 1; }
.chip--flag { background: var(--strike); }
.chip--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--edge); }
.chip--soft span { color: var(--steel); }

/* Once you are filtering, the count is the answer to half the questions you
 * would otherwise scroll to work out. */
.tally {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem;
  border-block: 1px solid var(--edge);
  padding: 0.6rem 0.1rem;
  margin-bottom: 0.2rem;
}
.tally div { display: flex; align-items: baseline; gap: 0.3rem; }
.tally b { font-size: 1.05rem; font-weight: 700; }
.tally i { font-style: normal; font-size: 0.85rem; color: var(--steel); }
.tally__flag b { color: var(--strike); }

.hidden-note {
  margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--steel);
  border-left: 2px solid var(--edge); padding-left: 0.6rem;
  max-width: var(--measure);
}

.day {
  font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: 1.5rem 0 0.1rem; padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--ink);
}
.day span { font-weight: 400; color: var(--steel); }

/* -- enriched result rows -------------------------------------------------- */

.order__lines { margin: 0.25rem 0 0; font-size: 0.9rem; }
.order__qty { font-weight: 700; color: var(--steel); }
.order__more { color: var(--steel); }

.order__flags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.35rem 0 0; }
.flag { font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.35rem; border-radius: 2px; }
.flag--remove { color: var(--strike); background: #F7E9E7; }
.flag--extra  { color: var(--saffron-d); background: #FBF1DC; }

.order__stations { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.4rem 0 0; }

/* Filled means a camera watched it; hollow means the ticket passed a screen
 * nobody is recording -- which is most of them. */
.pip {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  font-size: 0.75rem; color: var(--steel);
  border: 1px solid var(--edge); border-radius: 2px;
  padding: 0.1rem 0.35rem; background: var(--surface);
}
.pip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid var(--edge); align-self: center;
}
.pip--cam { color: var(--ink); border-color: #BFD4CE; }
.pip--cam::before { background: var(--observed); border-color: var(--observed); }
.pip i { font-style: normal; color: var(--steel); }

/* The result row is no longer a single link: it holds a link plus detail, so
 * the hover target is the heading rather than the whole block. */
.order { padding-bottom: 0.7rem; }
.order__hit { padding-bottom: 0.15rem; }

/* -- AI scoring ------------------------------------------------------------
 *
 * A second action on a station that already has one. Saffron stays spent on
 * footage, so this takes the outlined treatment: it is the quieter control, and
 * it costs about twelve cents a press rather than nothing.
 *
 * The result has FOUR tones, not two. "Looked wrong" and "looked fine" are the
 * obvious pair; "the camera never saw this being made" is its own state because
 * roughly a quarter of orders are that, and a page that renders them as silence
 * invites a manager to read them as approval.
 */

.score { margin-top: 1rem; }
.score__actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.score__note { color: var(--steel); font-size: 0.9rem; }
.score__locked { color: var(--steel); font-size: 0.9rem; margin: 0; }

.btn--score {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--score:hover { background: var(--ink); color: var(--paper); }
.btn--score[disabled] { border-color: var(--edge); color: var(--steel); cursor: progress; }

.btn--tiny {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--edge);
  padding: 0.2rem 0.55rem; font-size: 0.85rem; font-weight: 600;
}
.btn--tiny:hover { border-color: var(--steel); }

/* -- preflight ------------------------------------------------------------ */

.score__preflight[hidden] { display: none !important; }
.score__preflight {
  margin-top: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  /* clip, not hidden: `hidden` makes the panel a scroll container, which pins
   * the picker's sticky bar to the panel instead of the screen. */
  overflow: clip;
}
.pf__head {
  display: flex; justify-content: space-between; gap: 0.75rem;
  align-items: baseline; flex-wrap: wrap;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--edge);
}
.pf__title { font-weight: 600; }
.pf__meta { color: var(--steel); font-size: 0.85rem; }
.pf__body { padding: 0.9rem; }

.pf__strip {
  display: grid; gap: 0.35rem; margin: 0 0 0.9rem;
  /* Big enough to answer the question the strip exists to answer: did the
   * camera see a build at all? At 76px these were thumbnails you could count
   * but not read, which defeats the point of looking before paying. ~120px
   * gives three across a phone and still shows an empty counter at a glance. */
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.pf__frame { margin: 0; }
.pf__frame img {
  display: block; width: 100%; border-radius: 3px; border: 1px solid var(--edge);
  background: var(--paper);
  /* Reserve the shape before the bytes arrive. Without this the grid collapses
   * to a row of 2px slivers while twelve 300 KB stills download, and the panel
   * reflows under the reader's eyes as each one lands. 16:9 is the camera. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pf__frame figcaption {
  font-size: 0.7rem; color: var(--steel); text-align: center; margin-top: 0.1rem;
}

/* The full prompt, shown rather than summarised. It is the only way anyone can
 * tell that the thing about to be paid for is asking what they think it is. */
.pf__prompt {
  margin: 0; padding: 0.7rem 0.8rem;
  background: var(--paper); border: 1px solid var(--edge); border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  max-height: 22rem; overflow: auto;
}
.pf__cost {
  display: flex; gap: 1.3rem; flex-wrap: wrap;
  margin: 0.85rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--edge);
}
.pf__cost > div { display: grid; gap: 0.1rem; }
.pf__cost dt {
  font-size: 0.7rem; color: var(--steel);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pf__cost dd { margin: 0; font-weight: 600; }
.pf__go { display: flex; gap: 0.55rem; margin-top: 0.9rem; flex-wrap: wrap; }

/* -- the picker: sixty thumbnails, choose up to twelve -------------------- */

/* Smaller than the old twelve-still strip. On a phone the strip is ~280px
 * wide after the rail's indent, and at a 96px minimum that is two across --
 * thirty rows for sixty stills. 84px gives three (twenty rows) and still
 * shows whether a build is on the board, which is the question a pick
 * answers; the corner link opens the full still. */
.pf__strip--pick { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

.pf__pick {
  display: block; width: 100%; padding: 0; position: relative;
  border: 0; border-radius: 4px; background: none; cursor: pointer;
}
.pf__pick img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--edge); background: var(--paper);
}
/* Selected has to read at a glance across sixty, so it is the accent ring
 * plus a tick, not a subtle border change. */
.pf__pick[aria-pressed="true"] img {
  outline: 3px solid var(--saffron); outline-offset: -3px; border-color: var(--saffron);
}
.pf__pick[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 3px; right: 3px;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--saffron); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.pf__pick:focus-visible { outline: 2px solid var(--saffron-d); outline-offset: 2px; }
/* At the limit the rest fade, so "why won't this select" answers itself. */
.pf__frame--off .pf__pick img { opacity: 0.45; }

.pf__strip--pick figcaption {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0.1rem;
}
.pf__strip--pick figcaption a {
  color: var(--steel); text-decoration: none; font-size: 0.8rem; padding: 0 0.15rem;
}
.pf__strip--pick figcaption a:hover { color: var(--ink); }

.pf__bar {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  background: var(--surface); border-top: 1px solid var(--edge);
}
.pf__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf__spacer { flex: 1; }
.btn--go[disabled] { background: var(--edge); color: var(--steel); cursor: not-allowed; }

/* -- the verdict ---------------------------------------------------------- */

.verdict {
  margin-top: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  overflow: hidden;
}
.verdict__head {
  display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap;
  padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--edge);
}
.verdict__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.verdict__label { font-size: 1rem; font-weight: 700; margin: 0; }
.verdict__conf { color: var(--steel); font-size: 0.85rem; margin-left: auto; }

.verdict--clear .verdict__dot  { background: var(--observed); }
.verdict--clear .verdict__label { color: var(--observed); }
.verdict--flag  .verdict__dot  { background: var(--strike); }
.verdict--flag  .verdict__label { color: var(--strike); }
.verdict--unsure .verdict__dot { background: var(--saffron); }
.verdict--unsure .verdict__label { color: var(--saffron-d); }
.verdict--blind .verdict__dot  { background: var(--steel); }
.verdict--blind .verdict__label { color: var(--steel); }

.checks { list-style: none; margin: 0; padding: 0; }
.check {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--edge);
}
.check:last-child { border-bottom: 0; }
.check__mark { font-weight: 700; }
.check--ok .check__mark     { color: var(--observed); }
.check--no .check__mark     { color: var(--strike); }
.check--unsure .check__mark { color: var(--steel); }
.check__what { display: grid; gap: 0.12rem; min-width: 0; }
.check__line {
  font-size: 0.72rem; color: var(--steel);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.check__label { font-weight: 600; }
.check__ev { font-size: 0.85rem; color: var(--steel); }
.check__conf { font-size: 0.85rem; color: var(--steel); white-space: nowrap; }

.verdict__summary {
  margin: 0; padding: 0.8rem 0.9rem;
  background: var(--paper); font-size: 0.92rem;
  border-top: 1px solid var(--edge);
}
.verdict__foot {
  display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center;
  padding: 0.65rem 0.9rem; border-top: 1px solid var(--edge);
  color: var(--steel); font-size: 0.8rem;
}
.verdict__stale { color: var(--saffron-d); font-weight: 600; }
.agree { display: flex; gap: 0.4rem; align-items: center; margin-left: auto; }

.score__fail { color: var(--strike); font-size: 0.9rem; margin: 0.6rem 0 0; }

/* A phone is the common case. The confidence column drops under the label
 * rather than squeezing the evidence text into a two-word column. */
@media (max-width: 560px) {
  .check { grid-template-columns: auto 1fr; }
  .check__conf { grid-column: 2; }
  .verdict__conf { margin-left: 0; width: 100%; }
}
