/* THE guest card's look (src/core/guest-card.js) — ONE stylesheet for the website (index.html links it) and the extension (the build
   copies it to lib/guest-card.css). Uses only the tokens both define: --surface --surface-2 --ink --ink-2 --line --line-strong
   --brand --brand-soft --brand-text --ok --ok-bg --warn --warn-bg --bad --bad-bg --radius --radius-s. T-98: one compact row per guest,
   ONE open at a time; T-61: motion ≤ 200 ms on transform/opacity only, none under reduced motion. */
.gc-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.gc-list:empty { display: none; }
.gcard { position: relative; min-width: 0; }
.gcard + .gcard { border-top: 1px solid var(--line); }
.gcard .g-row { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(40%, 1fr) auto 16px; gap: 10px; align-items: center;   /* T-128: the name keeps 40 % — the chips wrap before the name does */
  width: 100%; min-height: 48px; padding: 7px 10px 7px 12px; cursor: pointer; color: var(--ink); font-size: 14px; line-height: 1.35; }
.gcard .g-row.sel { grid-template-columns: 20px minmax(0, 1fr) auto; }
.gcard .g-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-s); }
@media (hover: hover) { .gcard .g-row:hover { background: var(--surface-2); } }
.gcard.open .g-row { background: var(--surface-2); }
.gcard.picked .g-row { background: var(--brand-soft); }
.gcard .g-check { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-text); }
.gcard .g-main { display: grid; min-width: 0; }
.gcard .g-name { font-weight: 600; overflow-wrap: anywhere; }
.gcard .g-meta { font-size: 12.5px; color: var(--ink-2); white-space: normal; overflow-wrap: normal; font-variant-numeric: tabular-nums; }   /* T-187 C5: lines break only BETWEEN bits ("anywhere" split "·" from its date) */
.gcard .g-meta .prop { overflow-wrap: anywhere; white-space: normal; }   /* a long property name may still wrap inside itself */
.gcard .g-meta .dates, .gcard .g-meta .g-bit { white-space: nowrap; }   /* T-187 C5: "· 9425" never splits from its dot */   /* "9 Oct → 13 Oct" moves as one piece, never split across two lines */
.gcard .g-meta .pno { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.gcard .g-meta .prop.blocked { color: var(--bad); text-decoration: line-through; }
.gcard .g-why { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; white-space: normal; overflow: visible; text-overflow: clip; }
.gcard .g-why:empty { display: none; }
.gcard .g-why.t-bad { color: var(--bad); font-weight: 600; }
.gcard .g-why.t-warn { color: var(--warn); font-weight: 600; }
/* the QR redesign part 2, slice C: "From your phone · 21:04" under the row's words (sketch 17 / 19) */
.gcard .g-from { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--ink-2); }
.gcard .g-from svg { width: 12px; height: 12px; flex: none; }
/* T-99 #4: a photo being read is ONE line — its name and "Reading… 40%" side by side, a 2 px bar along the row's foot */
.gcard .g-row.one .g-main { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.gcard .g-row.one .g-name { font-weight: 500; }
.gcard .g-bar { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.gcard .g-bar > span { display: block; height: 100%; width: 100%; background: var(--brand-text); transform: scaleX(0); transform-origin: left center; transition: transform .2s ease-out; }
.gcard .g-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; align-items: center; }   /* T-128: a timing chip + the pill may take two lines on a phone */
@media (max-width: 480px) { .gcard .t-chip, .gcard .pill { font-size: 11px; padding-left: 6px; padding-right: 6px; } }   /* …and a touch smaller there, so the widest chip ("File now — may be late") never pushes the chevron out of the row */
/* T-95: the "AI read" tag */
/* names2 item 2: "Full name from the passport page" under the row's details (the approved sketch: the brand's soft chip) */
.gcard .g-full { justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.2; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); }
/* his answer 14 Oct (Q6): the "1 name" tag wears the AI tag's look */
.gcard .ai-tag { font-size: 11px; font-weight: 650; letter-spacing: .02em; line-height: 1; padding: 4px 6px; border-radius: 5px; white-space: nowrap; background: var(--brand-soft); color: var(--brand-text); border: 1px solid color-mix(in srgb, var(--brand-text) 35%, transparent); }
.gcard .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 6px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.gcard .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gcard .pill.ok { background: var(--ok-bg); color: var(--ok); }
.gcard .pill.check { background: var(--warn-bg); color: var(--warn); }
.gcard .pill.bad { background: var(--bad-bg); color: var(--bad); }
.gcard .pill.sent { background: var(--brand-soft); color: var(--brand-text); }
.gcard .pill.hold { background: var(--surface-2); color: var(--ink-2); }   /* T-187: "Waiting" — ready, its check-in ahead (the due chip beside it carries the date) */
@media (max-width: 420px) { .gcard .g-row { gap: 6px; padding-left: 10px; padding-right: 8px; } .gcard .pill { padding-left: 5px; padding-right: 5px; gap: 4px; } }   /* 15 Oct, measured: on a small phone (360 px) the amber pill's "To check" (79 px; it was "Draft", 55) left the name 159 px, so a long name took 3 lines and its meta wrapped (122 px, the limit is 110). The row's gaps and padding + the pill give the name 19 px back (rows 67/51/87 px at 360); the words stay. 0.3.32 (t352-ext, the run waiting for her Save): the rule ended at 380 px, so the name column LOST 7 px at 400 and a card's meta went to 3 lines there (the page 29 px TALLER at a wider width: 380→400); it now ends at 420, where the row's own room is past that cliff. It sits AFTER the pill's own rule: an equal rule before it loses (as the 480 px one above does) */
/* T-128 / T-130: the timing chip before the pill — held (neutral, dashed: waiting for its day) · may be late (amber) · late (red) */
.gcard .t-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 5px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-strong); }
.gcard .t-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.gcard .t-chip.check { background: var(--warn-bg); color: var(--warn); border-color: transparent; padding: 5px 8px; }
.gcard .t-chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; padding: 5px 8px; }
.gcard .t-chip.check::before, .gcard .t-chip.bad::before { border: 0; background: currentColor; }
/* ONE MAIN BADGE (his real-phone test 9007): the timing is a small line UNDER the card's one status pill (guest-card.js tags), never a
   second badge: a row of its own in the tags (flex-basis 100%), right-aligned under the pill, no box, its tone's colour (amber may be
   late, red late, grey due), 11.5 px (11 px at 480 px and under, as the pill's text). Higher specificity than every .t-chip rule above */
.gcard .g-tags .t-chip.t-line, .gcard .g-tags .t-chip.t-line.check, .gcard .g-tags .t-chip.t-line.bad { flex: 0 0 100%; justify-content: flex-end; gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 11.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.gcard .g-tags .t-chip.t-line { color: var(--ink-2); }
.gcard .g-tags .t-chip.t-line.check { color: var(--warn); }
.gcard .g-tags .t-chip.t-line.bad { color: var(--bad); }
.gcard .g-tags .t-chip.t-line::before { width: 5px; height: 5px; }
@media (max-width: 480px) { .gcard .g-tags .t-chip.t-line { font-size: 11px; padding: 0; } }
.gcard .field input[data-time] { max-width: 11em; }   /* T-130 / T-143: the expected arrival — a 24-hour text field ("15:00"), never the device's own time input */
.gcard .chev { width: 16px; height: 16px; color: var(--ink-2); transition: transform .2s ease-out; }
.gcard .g-row[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* the ONE open guest */
.gcard .g-detail { display: grid; gap: 10px; padding: 8px 12px 12px; background: var(--surface); font-size: 14px; }
.gcard .g-top { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.gcard .g-thumb-btn { flex: none; padding: 0; margin: 0; border: 0; background: none; border-radius: 4px; cursor: pointer; line-height: 0; font: inherit; }
.gcard .g-thumb-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gcard .g-thumb { flex: none; width: 72px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--surface-2); }
.gcard .g-notice { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-s); font-size: 13.5px; line-height: 1.4; background: var(--surface-2); color: var(--ink-2); }
.gcard .g-notice.ok { background: var(--ok-bg); color: var(--ok); }
.gcard .g-notice.warn { background: var(--warn-bg); color: var(--warn); }
.gcard .g-notice.bad { background: var(--bad-bg); color: var(--bad); }
.gcard .g-title { font-weight: 650; }
.gcard .g-notice small { font-size: 12.5px; font-weight: 400; }
.gcard .g-notice .g-tip { margin: 0; font-size: 13px; font-weight: 550; }   /* T-58: why the photo can't be read */
/* T-113b: the AI is reading — an indeterminate bar (transform only) */
.gcard .g-wait { position: relative; display: block; height: 3px; margin: 4px 0 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gcard .g-wait > span { position: absolute; inset: 0; width: 35%; background: var(--brand-text); border-radius: 2px; animation: g-wait 1.2s ease-in-out infinite; }
@keyframes g-wait { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .gcard .g-wait > span { animation: none; width: 100%; opacity: .5; } }
.gcard .notice-list { margin: 2px 0 0; padding-left: 1.2em; font-weight: 450; }
/* T-172: the AI and this device read differently — "Keep AI reading" (main) / "Use original scan", one tap each, under the readings */
.gcard .g-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* T-65: a Thai national's "Include anyway" / "Included by you." + Undo — the note sits on the button's line */
.gcard .g-thai { align-items: center; }
.gcard .g-thai-note { font-weight: 600; color: var(--ink); }
/* T-99 #2: every field at least 150 px, so a date shows its whole year ("08/10/2026", never "08/10/202…") */
.gcard .g-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; }   /* his call 13 Oct: the open card keeps its compact two columns (the audit's 168 px made it one long column — "way too spaced apart") */
.gcard .field { display: grid; gap: 3px; align-content: start; font-size: 12px; font-weight: 550; color: var(--ink-2); min-width: 0; }
.gcard .field input, .gcard .field select { font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.2; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line, var(--line-strong)); border-radius: var(--radius-s);
  padding: 8px 9px; min-height: 42px; width: 100%; min-width: 0; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.gcard .field input[type="date"] { padding-right: 4px; }
.gcard .field input:focus, .gcard .field select:focus { border-color: var(--brand-text); outline: 2px solid var(--focus); outline-offset: 1px; }   /* T-187 E4: a focus ring you can see */
.gcard .field .unsure { border-color: var(--warn); background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn); }
.gcard .field .hint { font-size: 11.5px; font-weight: 400; color: var(--ink-2); min-height: 0; }
.gcard .field .hint:empty { display: none; }
.gcard .field .bad-hint:not(:empty) { color: var(--warn); font-weight: 600; }
/* T-277: a character the reader could not read ("?"): the field's value again with the "?" marked, and the words, in amber */
.gcard .field .g-unread { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12px; font-weight: 600; color: var(--warn); }
.gcard .field .g-unread-num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.gcard .field .g-unread-ch { background: var(--warn-bg); color: var(--warn); font-weight: 800; outline: 2px solid var(--warn); outline-offset: -1px; border-radius: 3px; padding: 0 2px; }
/* T-91: the one-tap name fix, right under the amber name */
.gcard .g-suggest { grid-column: 1 / -1; justify-self: start; font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--brand-text); background: var(--brand-soft);
  border: 1px dashed var(--brand-text); border-radius: var(--radius-s); padding: 8px 12px; min-height: 44px; cursor: pointer; text-align: left; }
.gcard .g-suggest::before { content: "↺ "; }
/* T-312: THE one-tap accept, one look on every surface (the website + extension card, and the phone page, which loads this file for it):
   "Looks right" under a plain amber field, a suggestion on the phone page; her check, never the reader's */
.g-accept { grid-column: 1 / -1; justify-self: start; font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--brand-text);
  background: var(--brand-soft, var(--tint)); border: 1px solid var(--brand-text); border-radius: var(--radius-s, 8px); padding: 8px 12px; min-height: 44px; cursor: pointer; text-align: left; }
.g-accept.g-looks::before { content: "✓ "; }
.g-accept:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* T-320: "All correct" — the same button, first in the fields, its note beside it (under it when there is no room) */
.g-allok { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.g-allok .g-accept { grid-column: auto; }
/* the field + its "Correct" in one grid cell, the button under the field */
.gcard .g-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gcard .g-cell .g-accept { align-self: flex-start; }
/* T-354: an offer in its field's cell: under the field, never wider than its column (long words wrap) */
.gcard .g-cell .g-suggest { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; }
.g-allleft { font-size: 13px; color: var(--warn, var(--ink-2)); font-weight: 600; }
/* T-314: the two-AI tag ("Code lines covered: double-check") wears the full-name tag's look, in amber words so it is read */
.gcard .g-covered, .gcard .g-twoais { color: var(--warn, var(--brand-text)); }
/* T-496 (his review 17 Nov 11:08: "with a tag or in another shade that has "already submitted""): the "Already submitted" tag, its OWN shade
   (tokens.css --done-bg / --done-ink: never the brand's, the green of Ready or the amber of To check) */
.gcard .g-full.g-done { background: var(--done-bg); color: var(--done-ink); }
.gcard .g-note { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.gcard .g-msg { color: var(--warn); }
.gcard .enh-offer { display: grid; gap: 4px; justify-items: start; }
.gcard .g-corr { font-size: 12.5px; color: var(--ink-2); }
.gcard .g-corr summary { cursor: pointer; }
.gcard .g-corr ul { margin: 4px 0 0; padding-left: 1.2em; }
/* T-99 #3: the actions sit in ONE foot row — "Report a misread" is a small link there, never alone in an empty area */
.gcard .g-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gcard .g-foot .spacer { flex: 1; }
.gcard .g-detail .btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-s);
  font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--brand-text); background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; text-align: center; }
.gcard .g-detail .btn:disabled { opacity: .55; cursor: default; }
.gcard .g-detail .btn:focus-visible, .gcard .g-detail .link:focus-visible, .gcard .g-suggest:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .gcard .g-detail .btn:not(:disabled):hover { background: var(--surface-2); } }
.gcard .g-detail .link { all: unset; box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; cursor: pointer; font-size: 13px; color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.gcard .g-detail .link.danger-link { color: var(--bad); }
.gcard .g-detail .link:disabled { opacity: .55; cursor: default; }
/* T-122: an unreadable card — "New photo" is the MAIN button, the AI offer a small link under it; T-124: "Type the details in" is the
   main button once the card's AI tries are used up (and one line says so) */
.gcard .g-detail .btn.main { background: var(--btn); color: var(--btn-ink); border-color: transparent; }   /* T-512 Q1: an ordinary filled button is black (white in dark) */
@media (hover: hover) { .gcard .g-detail .btn.main:not(:disabled):hover { background: var(--btn-hover); } }
.gcard .g-retake { display: grid; gap: 2px; justify-items: start; }
.gcard .enh-offer.enh-link { gap: 0; }
.gcard .enh-offer.enh-link .g-note { font-size: 12px; }
.gcard .g-used { color: var(--warn); font-weight: 600; }
/* T-149: a free trial's AI reads used up — ONE line where the AI's answer would land + "Choose a plan" */
.gcard .g-trial { color: var(--warn); font-weight: 600; }
.gcard .g-trial .g-plans { color: var(--brand-text); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.gcard .report { display: grid; gap: 6px; }
.gcard .report-text { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px; resize: vertical; }
.gcard .report .btn { justify-self: start; }

/* T-98: the summary bar and the filters */
.gc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.gc-sum { margin: 0; font-weight: 600; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gc-filters { display: flex; flex-wrap: wrap; gap: 4px; }
/* T-517 pick 6 B (his pick 19 Nov): the chips left, the surface's links (Select · Clear List) right on the same row; no room → the links take
   their own line, at the right. The sentence is read out but not seen while there are guests (the chips carry the count) */
.gc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1 1 100%; }
.gc-row > .gc-links { margin-left: auto; }
/* 0.3.31 T-575 (his 22 Nov, the Mac day): THE section header row, every surface: the heading on the left, its actions (Select · Clear List)
   on the right, ONE line; only when they cannot fit beside it do the actions go under it, at the right. No empty row: nothing has a min-height */
.gc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-width: 0; min-height: 0; }
.gc-head > h2 { margin: 0; min-width: 0; }
.gc-head > .gc-links { margin-left: auto; }
.gc-sum.gc-sum-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gc-filters button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); background: var(--surface); font-variant-numeric: tabular-nums; }
.gc-filters button[hidden] { display: none; }   /* T-411 U-11: a chip at 0 (not the chosen one) is out of the row */
.gc-filters button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); border-color: transparent; }   /* T-512: the filter that is on, powder blue with black words (both themes) */
.gc-filters button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-filters button .n { font-weight: 500; opacity: .85; }
.gc-empty { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.gc-types { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.gc-refused:not(:empty) { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bad); }

/* audit #2 F-03: the ONE pop-up before Download / Submit (GuestCard.popup) — a native <dialog>, the same look on both surfaces */
.gc-pop { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 0; max-width: min(92vw, 420px); width: calc(100% - 32px); box-sizing: border-box; box-shadow: var(--shadow-pop); }
.gc-pop::backdrop { background: var(--scrim-pop); }
.gc-pop[open]:not(:modal) { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; }   /* an old browser without showModal */
.gc-pop-box { display: grid; gap: 12px; padding: 18px 18px 16px; }
.gc-pop-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.gc-pop-list { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.45; display: grid; gap: 6px; color: var(--ink); }
.gc-pop-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gc-pop-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-s); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--brand-text); background: var(--surface); border: 1px solid var(--line-strong); text-align: center; }
.gc-pop-btn.gc-pop-go, .gc-pop-btn.main { background: var(--btn); color: var(--btn-ink); border-color: transparent; }   /* T-512 Q1: the pop-up's Yes, black (white in dark) */
.gc-pop-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .gc-pop-btn:not(.gc-pop-go):not(.main):hover { background: var(--surface-2); } .gc-pop-btn.gc-pop-go:hover, .gc-pop-btn.main:hover { background: var(--btn-hover); } }
/* T-481 wider (his words 16 Nov 10:39, "a few more CTA buttons"): the yes-button of the box before a submit or a download (data-popup "file":
   "Submit 3 guests", "Download") is magenta: the page behind is inert, so it is the one action, and it confirms a magenta press. Only that
   kind: a pop-up of another kind (History's delete, the uploads) keeps the purple, so a Delete is never magenta. Its own hover */
.gc-pop[data-popup="file"] .gc-pop-btn.gc-pop-go { background: var(--action); color: var(--action-ink); border-color: transparent; }
@media (hover: hover) { .gc-pop[data-popup="file"] .gc-pop-btn.gc-pop-go:not(:disabled):hover { background: var(--action-hover); } }
/* T-512 (round 5): the main button's slight fall to --action-2, a fine inner edge and a soft red shadow (the hover is flat --action-hover) */
.gc-pop[data-popup="file"] .gc-pop-btn.gc-pop-go:not(:disabled):not(:hover) { background-image: linear-gradient(180deg, var(--action), var(--action-2)); }
.gc-pop[data-popup="file"] .gc-pop-btn.gc-pop-go:not(:disabled) { box-shadow: inset 0 1px 0 var(--action-shine), inset 0 0 0 1px var(--action-edge), 0 14px 28px -14px var(--action-glow); }
@media (max-width: 420px) { .gc-pop-row { flex-direction: column-reverse; } .gc-pop-btn { width: 100%; } }
/* T-496 (his review 17 Nov 11:08): the "Already submitted" box's three SHORT buttons stay on ONE line, in their order (Remove · Keep · Cancel),
   at 1280 px and in a 360 px side panel or phone; they wrap only when they cannot fit. Never the stacked column of the pop-ups above. Its
   coloured button is the .main one (Remove, or Cancel alone): the others are plain */
.gc-pop[data-popup="took"] .gc-pop-row { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.gc-pop[data-popup="took"] .gc-pop-btn { width: auto; flex: 0 1 auto; padding-left: 14px; padding-right: 14px; white-space: nowrap; }
@media (max-width: 420px) { .gc-pop[data-popup="took"] .gc-pop-btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; } }
/* …Keep (.gc-pop-go, its yes answer) is a PLAIN button here, never the brand's purple: a second filing is not the suggested action */
.gc-pop[data-popup="took"] .gc-pop-btn.gc-pop-keep:not(.main) { background: var(--surface); color: var(--brand-text); border-color: var(--line-strong); }
@media (hover: hover) { .gc-pop[data-popup="took"] .gc-pop-btn.gc-pop-keep:not(.main):hover { background: var(--surface-2); } }

@media (prefers-reduced-motion: no-preference) {
  .gcard.row-in { animation: gcIn .2s ease-out both; }
  .gcard .g-detail { animation: gcOpen .18s ease-out both; }
}
@keyframes gcIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes gcOpen { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gcard .g-bar > span, .gcard .chev { transition: none; } }

/* ── T-187 D: hover, press and the small moments (the audit's motion spec) — colour changes always; movement only for people who have not
   asked their device for less motion ─────────────────────────────────────────────────────────────────────────────────────────── */
.gc-filters button, .gcard .g-suggest, .gcard .g-detail .btn, .gc-pop-btn { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 80ms ease-out; }
@media (hover: hover) {
  .gc-filters button:not([aria-pressed="true"]):hover { background: var(--surface-2); color: var(--ink); }
  .gcard .g-suggest:hover { background: color-mix(in srgb, var(--brand-text) 12%, var(--surface)); }
  .gcard .g-detail .link:not(:disabled):hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .gc-filters button:active, .gcard .g-suggest:active { transform: scale(.97); }
  .gcard .g-detail .btn:active:not(:disabled), .gc-pop-btn:active { transform: scale(.98); }
  .gc-pop:modal { animation: gcPopIn 160ms cubic-bezier(.2, .7, .2, 1); }
  .gc-pop:modal::backdrop { animation: gcFade 160ms ease-out; }
  /* a card that has just turned green settles: its row glows green and fades, the pill's dot pops (the page adds .just-ready ~700 ms) */
  .gcard.just-ready .g-row { animation: gcSettle 700ms ease-out; }
  .gcard.just-ready .pill::before { animation: gcDotPop 300ms cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes gcPopIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes gcFade { from { opacity: 0; } }
@keyframes gcSettle { from { background: var(--ok-bg); } to { background: transparent; } }
@keyframes gcDotPop { from { transform: scale(0); } }
/* T-171 (short list R4): the Change dates dialog — the F-03 pop-up's box with two of THE date controls side by side.
   T-521 (his find 19 Nov: the box "laid on top of" the page's own dates, its calendar under it; "needs better ux/ui and design"): the cleaner
   look. A narrow screen (the side panel, the phone app tab, a phone) gets a SHEET from the bottom edge, so the page's own dates at the top stay
   in view behind the scrim; a wide screen a centred box. Title · the two dates side by side (always) · the one-line note (no bullet) · one row:
   Cancel quiet on the left, Change Dates red (--action, the one main action) on the right, equal widths. Its calendar opens inside the box
   (TM30Date: a control in an open <dialog> lifts its pop-up there), so it is drawn above the box and takes the click */
.gc-pop.gc-dates { max-width: min(92vw, 440px); }
.gc-dates .gc-pop-box { gap: 14px; }
.gc-dates .gc-dates-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gc-dates .gc-pop-list { list-style: none; padding: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); gap: 4px; }
.gc-pop.gc-dates .gc-pop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-direction: row; }
.gc-pop.gc-dates .gc-pop-btn { width: 100%; }
.gc-pop.gc-dates .gc-pop-btn.gc-pop-back { color: var(--ink); }
.gc-pop.gc-dates .gc-pop-btn.gc-pop-go { background: var(--action); color: var(--action-ink); border-color: transparent; }
.gc-pop.gc-dates .gc-pop-btn.gc-pop-go:not(:disabled):not(:hover) { background-image: linear-gradient(180deg, var(--action), var(--action-2)); }
.gc-pop.gc-dates .gc-pop-btn.gc-pop-go:not(:disabled) { box-shadow: inset 0 1px 0 var(--action-shine), inset 0 0 0 1px var(--action-edge), 0 14px 28px -14px var(--action-glow); }
@media (hover: hover) { .gc-pop.gc-dates .gc-pop-btn.gc-pop-go:not(:disabled):hover { background: var(--action-hover); } }
@media (max-width: 560px) {
  .gc-pop.gc-dates:modal { margin: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100% - 24px); border-radius: var(--radius) var(--radius) 0 0; border-width: 1px 0 0; }
  .gc-dates .gc-pop-box { padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) { .gc-pop.gc-dates:modal { animation: gcSheetIn 200ms cubic-bezier(.2, .7, .2, 1); } }
@keyframes gcSheetIn { from { transform: translateY(24px); opacity: 0; } }
.gc-dates .field { display: grid; gap: 3px; align-content: start; font-size: 12px; font-weight: 550; color: var(--ink-2); min-width: 0; }
.gc-dates .field input { font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.2; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line, var(--line-strong)); border-radius: var(--radius-s);
  padding: 8px 9px; min-height: 42px; width: 100%; min-width: 0; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.gc-dates .field input:focus { border-color: var(--brand-text); outline: 2px solid var(--focus); outline-offset: 1px; }
.gc-dates .field .hint { font-size: 11.5px; font-weight: 400; color: var(--ink-2); }
.gc-dates .field .hint:empty { display: none; }
.gc-dates .gc-dates-refused { margin: 0; font-size: 14px; font-weight: 600; color: var(--warn); }
.gc-dates .gc-dates-refused:empty { display: none; }
.gc-pop-btn:disabled { opacity: .5; cursor: default; }
/* T-171 (R4): where the old TM30 stands, on a guest to submit again */
.gcard .g-refile { margin: 6px 0 0; }
/* his idea (15 Oct; short list plan §10d): THE usage bar — GuestCard.usageBar, the same on the Plan tab, /account and the extension's
   Settings (tokens only: light and dark follow the page's theme). The warning colour when full; the next plan up under it from 75% */
.gc-usage { display: grid; gap: 6px; margin: 6px 0; }
.gc-usage[hidden] { display: none; }
.gc-meter { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.gc-meter[hidden] { display: none; }
.gc-meter > .gc-meter-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand-text); transition: width .4s ease; }
.gc-meter.full > .gc-meter-fill { background: var(--warn); }
/* T-363 (item 43): "Confirm your email to start your free AI trial" + Resend the email (GuestCard.confirmNote; the shared tokens only) */
.gc-confirm { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gc-confirm[hidden] { display: none; }
.gc-confirm-text { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 1.4; }
.gc-confirm-resend { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.gc-confirm-resend:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-confirm-said { margin: 0; flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.gc-confirm-said:empty { display: none; }
.gc-usage-offer { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.gc-usage-link { color: var(--brand-text); font-weight: 600; text-underline-offset: 2px; }
.gc-usage-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .gc-meter > .gc-meter-fill { transition: none; } }
/* 0.3.32 P6 A3 (T-591, the approved mock-up E1): the lead's LEAD (Records' tag) and every other guest's quiet "Make Lead Guest" link under
   its row (a stay of 2+ only; never a step). Tokens only */
.gcard .g-leadtag { display: inline-block; width: max-content; margin-left: 6px; vertical-align: 1px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral); }
.gcard .g-leadrow { padding: 0 14px 8px; margin-top: -4px; }
.gcard .g-mklead { border: 0; background: none; padding: 4px 0; min-height: 28px; color: var(--brand-text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gcard .g-mklead:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sg .sg-leadnote { margin: 4px 14px 10px; font-size: 13px; color: var(--ink-2); }
