/* ══════════════════════════════════════════════════════════════════════════
   GV-APP.CSS — Guide View, the working screen, on the tropical scale
                                                          (new file, 2.21.711)
   ──────────────────────────────────────────────────────────────────────────
   METHOD: JOB BY JOB, NEVER BY VALUE

   Every token below is remapped to the STEP of the generated cbk scale that
   does its job. Nothing is chosen by eye, no hex is invented, and the palette
   does not widen by a single value — every step here already exists in
   assets/css/cbk-system.css.

   Each line carries its MEASURED ratio. All 26 text pairings on this screen
   were computed before anything was written; the three that failed were
   re-stepped, not accepted.

   60 / 30 / 10
     60  structure — a sky-tinted ground, white cards, a sunk well, one line
                     colour, and a three-step neutral text ramp
     30  support   — LIME carries one meaning and one only: confirmed, arrived,
                     done. It is the most repeated signal on the screen.
     10  accent    — SUN on the single action. PUNCH on no-show and problems.
                     CORAL on watch-this. Never more than one of them at once.

   WHY THE TOKENS AND NOT THE RULES
   The template already expresses every job as a --gv-* token. Remapping the
   tokens re-skins 250+ uses without rewriting a single selector, which means
   this file cannot change layout by accident. The handful of places where one
   token was doing TWO jobs are fixed explicitly below.

   SAFETY: scoped to :root but loaded AFTER the template's own block, so it
   wins by order. gv-system.css scopes the login screen by ID and still beats
   it there. If this file fails to load, the screen renders exactly as 2.21.710.
   ══════════════════════════════════════════════════════════════════════════ */

/* THE TOKEN REMAP LIVES IN THE TEMPLATE'S OWN :root, NOT HERE.
   A second :root declaring the same names would mean one name, two
   values, and a screen that depends on which stylesheet loads last.
   The colour ratchet refused exactly that, and it was right to. This
   file carries only rules — it can be removed without changing a
   single colour. Every ratio quoted below is measured. */

/* ── DARK CHROME · two depths, so the bars read as two layers ────────────
   --gv-ink has to stay ink-950 because sixteen rules use it as TITLE TEXT.
   The header was the one rule using it as a BACKGROUND — one token, two
   jobs. Split here rather than compromising either.                       */
#mainApp .header,
body > .header            { background: #0e2a39; }   /* sky-950, white 14.90 */
#mainApp .header .header-title,
#mainApp .header          { color: #e3eff5; }        /* sky-100, 12.73       */

/* ── THE ONE ACTION ──────────────────────────────────────────────────────
   --gv-primary is used in four places and EVERY ONE sets `color:white`.
   White on sun-500 is 1.48:1, so the token alone could never become sun —
   this is why the remap is checked job by job and not applied blind.
   The system's rule is that ink, never white, goes on the action colour.
   The sun-700 edge is not decoration: a filled yellow button on a white
   card is only 1.48:1, so without it the control has no identifiable
   boundary (WCAG 1.4.11 wants 3:1; the edge measures 3.06:1).             */
.setup-btn, .upd-btn, .complete-btn, .modal-btn {
  color: #232323 !important;          /* ink-950 on sun-500 — 10.59:1 */
  border: 1px solid var(--gv-primary-dk) !important;
  font-weight: 800;
}
.upd-btn:active, .complete-btn:active, .modal-btn:active {
  background: var(--gv-primary-dk);
  color: #232323;
}

/* ── RHYTHM · one gutter, so the edges stop multiplying ──────────────────
   Measured at 1280 before this release: EIGHTEEN distinct left edges among
   blocks wider than 260px — 121 / 104 / 119 / 141 / 78 … Nothing below can
   line up until everything starts on the same line. The containers nest
   three deep and each invented its own padding (28 / 26 / 18). One gutter
   token, applied at every level.                                          */
#mainApp { --gv-gutter: 16px; }
@media (min-width: 700px) { #mainApp { --gv-gutter: 24px; } }

#mainApp .content   { padding: var(--gv-gutter); }
#mainApp .tour-hd   { padding: var(--gv-gutter); }
#mainApp .slot      { padding: var(--gv-gutter); }
#mainApp .slot-body { padding-left: 0; padding-right: 0; }

/* ── REMOVED · things that were not okay ─────────────────────────────────

   1. `transition: all`. It animates EVERY property, layout ones included,
      on a list that re-renders every five seconds. Replaced with the two
      properties that actually change.                                     */
#mainApp .gs-arrive, #mainApp .gs-noshow, #mainApp .gs-prob,
#mainApp .slot-tab, #mainApp .guide-name-btn {
  transition: background-color 140ms cubic-bezier(.4,0,.2,1),
              color            140ms cubic-bezier(.4,0,.2,1),
              border-color     140ms cubic-bezier(.4,0,.2,1);
}

/*  2. The no-show row said the same thing THREE times — struck through,
       greyed, AND the whole row dropped to opacity .45. The opacity is the
       one that does damage: it multiplies through every child, so a 5.95:1
       name became roughly 2.3:1 and the row stopped being readable at the
       exact moment the guide needs to check he has the right person.
       The strike-through and the muted ink already say it. Opacity out.   */
#mainApp .guest-row.row-noshow { opacity: 1; }
#mainApp .guest-row.row-noshow .gs-name { color: var(--gv-muted); }

/*  3. The arrived row was tinted with rgba(...,.05) — a 1.02:1 tint, which
       is to say nothing at all. A confirmed guest is the most common state
       on this screen; it gets the lime panel and a real edge.             */
#mainApp .guest-row.row-arrived {
  background: var(--gv-green-pale);
  border-left: 3px solid var(--gv-green);
}

/* ── LIFE, WITHOUT A BLINK ───────────────────────────────────────────────
   DELIBERATELY NO ENTRANCE ANIMATION ANYWHERE IN THE MAIN APP.
   This screen re-renders on a five-second poll. Any entrance animation
   would therefore replay every five seconds — that is not life, that is a
   blink, and it is the thing that would make a guide stop looking at it.
   (The login screen renders once, so it gets its entrance there instead.)

   The life here is in the STATE CHANGES, which is where a guide's attention
   actually is: the moment he checks someone in, the row answers. Every
   transition below is colour only — no layout, no paint of shadows — so it
   costs nothing on a phone and cannot stutter the list.                   */
#mainApp .guest-row            { transition: background-color 180ms cubic-bezier(.4,0,.2,1); }
#mainApp .gs-arrive:active,
#mainApp .gs-noshow:active,
#mainApp .gs-prob:active       { transform: scale(.94); }
#mainApp .gs-arrive, #mainApp .gs-noshow, #mainApp .gs-prob {
  transition: background-color 140ms cubic-bezier(.4,0,.2,1),
              color            140ms cubic-bezier(.4,0,.2,1),
              border-color     140ms cubic-bezier(.4,0,.2,1),
              transform         90ms cubic-bezier(.4,0,.2,1);
}
#mainApp .slot-tab             { transition: background-color 140ms cubic-bezier(.4,0,.2,1),
                                             color 140ms cubic-bezier(.4,0,.2,1); }
#mainApp .group-bar            { transition: background-color 160ms cubic-bezier(.4,0,.2,1); }

/* The card is what the eye lands on first, so it gets the only depth cue. */
#mainApp .tour-card,
#mainApp .slot                 { background: var(--gv-white);
                                 box-shadow: 0 1px 2px rgba(14,42,57,.06),
                                             0 6px 16px rgba(14,42,57,.05); }

@media (prefers-reduced-motion: reduce) {
  #mainApp *, #mainApp *::after, #mainApp *::before {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  #mainApp .gs-arrive:active,
  #mainApp .gs-noshow:active,
  #mainApp .gs-prob:active { transform: none; }
}
