/* ---------------------------------------------------------------------------
   SALTLIGHT — the design system.

   Taken from saltandlightworks.org rather than invented: their teal
   (#045D67 / #0B5C64, sampled from the logo mark), their deepest teal
   (#063F43) for the sidebar, their warm paper (#F7F5EF) as the ground, and
   the grey-green of the wordmark (#7B8989) as the muted ink. The mark itself
   is line art — thin strokes, generous air, nothing filled — so the app is
   drawn the same way: 1px rules, no shadows, no heavy chrome.

   Instrument Serif for page titles sits close to the Trajan-ish wordmark
   without pretending to be it; IBM Plex Sans carries the prose and Plex Mono
   the dates and references.

   THE FIVE STATUS COLOURS, and what they are allowed to mean:
     ok      #2F6F4F  green  — on file, current, given, safe
     soon    #8A6A1B  amber  — a date is running out
     gone    #A8453A  red    — lapsed, withdrawn, refused
     open    #315F8C  blue   — somebody is working on it
     neutral #8F9A97  grey   — nothing yet

   AND THE RULE THEY ARE UNDER. These colour PIECES OF PAPER. They never
   colour a person. There is no red Neighbor in this product and no amber one:
   a Neighbor with two documents on file is not "37% compliant", they are a
   person with two documents on file. Salt + Light's model is non-conditional
   and a palette is an easy place to smuggle a condition back in.

   Soft blue + dashed edge marks DEMO SCAFFOLDING only — machinery deleted
   before launch. The fabricated Neighbors are NOT marked; they stand in for
   real ones.
--------------------------------------------------------------------------- */

:root {
  /* Salt + Light brand, sampled from the logo and their site CSS */
  --brand:        #045D67;   /* the mark's teal */
  --brand-deep:   #063F43;   /* their darkest — the sidebar */
  --brand-mid:    #0B6268;
  --brand-ink:    #08454B;
  --brand-soft:   rgba(4, 93, 103, .09);
  --wordmark:     #7B8989;   /* the grey-green of SALT + LIGHT */

  --bg:        #F7F5EF;      /* their warm paper */
  --paper:     #FFFFFF;
  --paper-2:   #FCFBF7;
  --ink:       #1C2422;
  --ink-2:     #3A4644;
  --muted:     #5C6A67;
  --muted-2:   #7B8989;
  --muted-3:   #9AA6A3;
  --line:      rgba(28, 36, 34, .11);
  --line-soft: rgba(28, 36, 34, .06);

  --sidebar:      #063F43;
  --sidebar-ink:  #E8F0EE;
  --sidebar-link: #9CC6C4;

  --ok:      #2F6F4F;  --ok-bg:      rgba(47, 111, 79, .12);
  --soon:    #8A6A1B;  --soon-bg:    rgba(138, 106, 27, .13);
  --gone:    #A8453A;  --gone-bg:    rgba(168, 69, 58, .12);
  --open:    #315F8C;  --open-bg:    rgba(49, 95, 140, .11);
  --neutral: #8F9A97;  --neutral-bg: rgba(143, 154, 151, .17);

  --swatch:  #E3E0D8;

  --demo:      #EAF2FB;
  --demo-edge: #9DBEE4;
  --demo-ink:  #315F8C;

  --placeholder: #B6BEBB;

  --radius:    10px;
  --radius-lg: 14px;

  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

/* ---------------------------------------------------------------- shell -- */

.app { min-height: 100vh; display: flex; }

.side {
  width: 276px; flex: none;
  background: var(--sidebar); color: var(--sidebar-ink);
  padding: 26px 0 22px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side__brand { padding: 0 26px 24px; display: block; color: inherit; }
.side__brand img { width: 118px; height: auto; display: block; }
.side__brand__sub {
  font: 400 12.5px var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: rgba(232, 240, 238, .5); margin-top: 12px;
}

.side__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.side__link {
  padding: 11px 16px; border-radius: 7px; color: rgba(232, 240, 238, .74);
  font: 400 17.5px var(--sans); display: flex; align-items: center; gap: 10px;
}
.side__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side__link.is-on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; }
.side__badge { margin-left: auto; font: 500 14px var(--mono); color: #F0C99B; }

.side__sep {
  margin: 16px 26px 10px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font: 400 12px var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: rgba(232, 240, 238, .42);
}

.side__foot { margin-top: auto; padding: 18px 26px 0; }
.side__stat__label {
  font: 400 12.5px var(--mono); color: rgba(232, 240, 238, .45);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 7px;
}
.side__stat__n { font: 500 26px var(--mono); }
.side__stat__n .dim { color: rgba(232, 240, 238, .42); }
.side__stat__sub { font: 400 15px var(--sans); color: rgba(232, 240, 238, .58); margin-top: 3px; text-wrap: pretty; }

.side__me {
  margin: 18px 12px 0; padding: 13px 16px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); display: block; color: inherit;
}
.side__me__kind {
  font: 400 12px var(--mono); color: rgba(232, 240, 238, .45);
  letter-spacing: .06em; text-transform: uppercase;
}
.side__me__name { font: 500 16.5px var(--sans); margin-top: 3px; }
.side__me__out  { font: 400 14.5px var(--sans); color: var(--sidebar-link); margin-top: 5px; display: block; }
.side__me__out:hover { color: #fff; }

.side__mec { margin: 16px 26px 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 74px; flex: none; border-bottom: 1px solid var(--line);
  background: var(--paper); display: flex; align-items: center; gap: 18px;
  padding: 0 34px; position: sticky; top: 0; z-index: 40;
}
.topbar__search { flex: 1; max-width: 460px; }
.topbar__search .input { height: 45px; font-size: 17px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font: 600 14.5px var(--sans); color: var(--brand-ink); flex: none;
}
.lang-toggle {
  font: 500 14px var(--mono); letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  color: var(--muted); white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.content { flex: 1; padding: 34px; min-width: 0; max-width: 1900px; }

/* ------------------------------------------------------------ typography -- */

h1.pg, h2.pg { font: 400 38px/1.15 var(--serif); margin: 0; letter-spacing: .005em; }
h2.pg--lg { font-size: 44px; }
h3.sec { font: 400 25px/1.2 var(--serif); margin: 0 0 4px; }
.pg-sub { font: 400 17px var(--sans); color: var(--muted-2); }
.pg-lede { font: 400 18px/1.6 var(--sans); color: var(--muted); margin: 6px 0 26px; max-width: 74ch; text-wrap: pretty; }
.pg-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }

.microhead {
  font: 600 14px var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow {
  font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-3);
}

.mono { font-family: var(--mono); font-size: .92em; }
.muted   { color: var(--muted); }
.muted-2 { color: var(--muted-3); }
.xs { font-size: 15px; }
.sm { font-size: 16px; }
.grow { flex: 1; min-width: 0; }
.pretty { text-wrap: pretty; }

.t-ok   { color: var(--ok); }
.t-soon { color: var(--soon); }
.t-gone { color: var(--gone); }
.t-open { color: var(--open); }
.t-brand{ color: var(--brand); }

/* ---------------------------------------------------------------- cards -- */

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card--flush { padding: 0; overflow: hidden; }
.card--brand { border-color: rgba(4, 93, 103, .28); }
.card--dark  { background: var(--sidebar); color: var(--sidebar-ink); border: none; padding: 28px; }
.card__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card__title { font: 500 18.5px var(--sans); }
.card__foot {
  padding: 14px 22px; border-top: 1px solid var(--line-soft);
  background: var(--paper-2); font: 400 15px/1.55 var(--sans); color: var(--muted);
  text-wrap: pretty;
}

.cols { display: flex; gap: 28px; align-items: flex-start; }
.cols__side { width: 460px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.cols__side--sm { width: 400px; }
.cols__main { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--baseline { align-items: baseline; }
.wrap { flex-wrap: wrap; }

/* stat tiles */
.tiles { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.tile { flex: 1; min-width: 210px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 22px; }
.tile__label { font: 400 12.5px var(--mono); color: var(--muted-2); letter-spacing: .07em; text-transform: uppercase; }
.tile__n { font: 500 30px var(--mono); margin-top: 7px; }
.tile__sub { font: 400 15px var(--sans); color: var(--muted-2); margin-top: 3px; text-wrap: pretty; }

/* ---------------------------------------------------------------- lists -- */

.lst-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; min-width: 0; }
.lst__head {
  display: flex; align-items: center; padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  font: 600 13.5px var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.lst__row {
  display: flex; align-items: center; padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft); color: inherit;
}
.lst__row:last-child { border-bottom: none; }
a.lst__row:hover { background: var(--paper-2); color: inherit; }
.lst__empty { padding: 34px 24px; color: var(--muted-2); font: 400 17px var(--sans); text-align: center; text-wrap: pretty; }

.cell { flex: none; }
.c-name { font: 500 18px var(--sans); }
.c-note { font: 400 15px var(--sans); color: var(--muted-2); margin-top: 2px; }

.tbl__sort { color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.tbl__sort:hover, .tbl__sort.is-on { color: var(--ink); }
.tbl__sort__arr { font-size: 10.5px; }

/* ----------------------------------------------------------------- pills -- */

.pill {
  display: inline-block; font: 600 14px var(--mono); letter-spacing: .03em;
  padding: 5px 12px; border-radius: 5px; white-space: nowrap;
}
.pill.is-ok      { background: var(--ok-bg);      color: var(--ok); }
.pill.is-soon    { background: var(--soon-bg);    color: var(--soon); }
.pill.is-gone    { background: var(--gone-bg);    color: var(--gone); }
.pill.is-open    { background: var(--open-bg);    color: var(--open); }
.pill.is-neutral { background: var(--neutral-bg); color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.is-ok { background: var(--ok); } .dot.is-soon { background: var(--soon); }
.dot.is-gone { background: var(--gone); } .dot.is-open { background: var(--open); }
.dot.is-neutral { background: var(--muted-3); }

.tag {
  flex: none; font: 600 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 5px; white-space: nowrap;
}
.tag.is-ok { background: var(--ok-bg); color: var(--ok); }
.tag.is-soon { background: var(--soon-bg); color: var(--soon); }
.tag.is-gone { background: var(--gone-bg); color: var(--gone); }
.tag.is-open { background: var(--open-bg); color: var(--open); }
.tag.is-neutral { background: var(--neutral-bg); color: var(--muted); }

/* an inventory readout — counts, never a percentage. See render.php. */
.inv { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.inv__n { font: 500 20px var(--mono); }
.inv__l { font: 400 15px var(--sans); color: var(--muted-2); }
.inv__sep { color: var(--muted-3); }

/* ------------------------------------------------------------- consent -- */
/* A withdrawn consent stays on screen and says so. It is a standing fact
   about what staff may do, not an absence. */

.consent {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  font: 500 16px var(--sans); background: var(--paper);
}
.consent__s { font: 400 13.5px var(--mono); color: var(--muted-2); letter-spacing: .02em; }
.consent--on   { border-color: rgba(47, 111, 79, .38); background: rgba(47, 111, 79, .05); }
.consent--on   .consent__s { color: var(--ok); }
.consent--off  { border-color: rgba(168, 69, 58, .38); background: rgba(168, 69, 58, .05); }
.consent--off  .consent__s { color: var(--gone); }
.consent--none { border-style: dashed; color: var(--muted); }
.consent-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------- MeCentral badge -- */

.mecb { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mecb__mark { margin-right: 3px; }   /* gap fallback — see .demo-tag */
.mecb__mark { flex: none; }
.mecb__txt { font: 400 14.5px var(--sans); letter-spacing: .01em; }
.mecb__txt strong { font-weight: 600; }
.mecb--sm .mecb__txt { font-size: 12.5px; }
.mecb--lg .mecb__txt { font-size: 18px; }

.mec-note {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); padding: 17px 20px;
}
.mec-note p { margin: 9px 0 0; font: 400 16px/1.6 var(--sans); color: var(--muted); text-wrap: pretty; }

/* ------------------------------------------------------------ vault doc -- */

.vault-doc {
  display: flex; align-items: center; gap: 11px; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft); color: inherit;
}
.vault-doc:last-child { border-bottom: none; }
.vault-doc:hover { color: var(--brand); }

/* ------------------------------------------------------------- controls -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 19px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font: 500 17px var(--sans); color: var(--ink); white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn--danger { background: var(--paper); border-color: rgba(168,69,58,.5); color: var(--gone); }
.btn--danger:hover { background: var(--gone); border-color: var(--gone); color: #fff; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 15.5px; }
.btn--lg { height: 62px; padding: 0 32px; font-size: 21px; border-radius: 10px; }
.btn--block { width: 100%; }

.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font: 400 17.5px var(--sans); color: var(--ink);
}
textarea.input { height: auto; padding: 12px 15px; resize: vertical; line-height: 1.55; }
.input:focus { outline: 2px solid rgba(4, 93, 103, .3); border-color: var(--brand); }

/* A placeholder is an EXAMPLE, never a value: pale, light and italic — three
   signals, so it cannot be mistaken for something somebody typed. Every field
   carries its own <label>, so the low contrast costs nothing. */
.input::placeholder { color: var(--placeholder); font-style: italic; }
select.input:has(option[value=""]:checked) { color: var(--placeholder); font-style: italic; }

label.lbl { display: block; font: 500 15.5px var(--sans); color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 17px; }
.hint { font: 400 15px/1.5 var(--sans); color: var(--muted-2); margin-top: 5px; text-wrap: pretty; }

/* a real checkbox, big enough to hit on a tablet at a kiosk */
.check { display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  cursor: pointer; margin-bottom: 12px; }
.check:hover { border-color: var(--brand); }
.check input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--brand); }
.check__t { font: 500 18px var(--sans); }
.check__d { font: 400 16px/1.55 var(--sans); color: var(--muted); margin-top: 4px; text-wrap: pretty; }
.check.is-on { border-color: var(--brand); background: rgba(4, 93, 103, .04); }

/* flash + notes */
.flash { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font: 400 17px var(--sans); }
.flash--ok  { background: var(--ok-bg);   color: var(--ok); }
.flash--err { background: var(--gone-bg); color: var(--gone); }
.note { border-radius: 8px; padding: 14px 17px; font: 400 16px/1.55 var(--sans); text-wrap: pretty; }
.note--plain { background: #F1EFE8; color: var(--muted); }
.note--ok    { background: var(--ok-bg);   color: var(--ok); }
.note--warn  { background: var(--soon-bg); color: var(--soon); }
.note--bad   { background: var(--gone-bg); color: var(--gone); }
.note--info  { background: #EEF1F0; color: var(--muted); }

/* filter chips — a count on a chip is scoped exactly like the list beneath it. */
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid var(--line); background: var(--paper);
  font: 500 14px var(--sans); color: var(--ink-2); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__n { font: 600 12px var(--mono); color: var(--muted-2); }
.chip.is-on .chip__n { color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------------ demo -- */
/* Soft blue + dashed edge + the tag: three signals, so it still reads for
   somebody who does not register colour. DEMO SCAFFOLDING ONLY — gated on
   DEMO_MODE in PHP, so DEMO_MODE=0 removes the markup itself. */

.demo-bar {
  background: var(--demo); border-bottom: 1px dashed var(--demo-edge);
  color: var(--demo-ink); font: 400 15px var(--sans);
  padding: 9px 34px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
/* margin-right as well as the flex gap: an engine without `gap` support butts
   the tag straight against the sentence, and this bar is the one element on
   the page that has to stay legible in whatever is rendering it — including a
   print-to-image pipeline or an old kiosk browser. */
.demo-tag {
  font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--demo-ink); color: #fff; border-radius: 4px; padding: 3px 7px;
  flex: none; margin-right: 4px;
}
.demo-block {
  background: var(--demo); border: 1.5px dashed var(--demo-edge);
  border-radius: var(--radius); padding: 17px 20px; margin: 16px 0;
}
.demo-block__flag { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: var(--demo-ink); font: 500 15.5px var(--sans); }
.btn--demo { border: 1.5px dashed var(--demo-edge); background: #fff; color: var(--demo-ink); }
.btn--demo:hover { color: var(--demo-ink); border-color: var(--demo-ink); }

/* ============================================================================
   NEIGHBOR-FACING SURFACES
   ============================================================================
   /welcome, /my and /kiosk are a different product from the staff portal and
   are typed like one: bigger, quieter, one idea per screen, no sidebar and no
   density. The person reading these may be doing it on a cracked phone, in
   their second language, on the worst day of their year.
   ------------------------------------------------------------------------- */

.plain {
  min-height: 100vh; background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  padding: 0 22px 64px;
}
.plain__head { width: 100%; max-width: 680px; padding: 26px 0 8px; display: flex; align-items: center; gap: 16px; }
.plain__head img { width: 128px; height: auto; }
.plain__body { width: 100%; max-width: 680px; }

.big-title { font: 400 46px/1.12 var(--serif); margin: 22px 0 10px; letter-spacing: .005em; }
.big-lede  { font: 400 22px/1.6 var(--sans); color: var(--muted); margin: 0 0 30px; text-wrap: pretty; }
.big-step  { font: 400 15px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* The steps a Neighbor walks. One idea per card, and the card says what
   happens next in plain words — no "continue", no "submit". */
.step-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 32px; margin-bottom: 20px;
}
.step-card h2 { font: 400 30px/1.2 var(--serif); margin: 0 0 10px; }
.step-card p  { font: 400 19px/1.62 var(--sans); color: var(--muted); margin: 0 0 16px; text-wrap: pretty; }
.step-card p:last-child { margin-bottom: 0; }

/* the MeCode itself — the thing they scan */
.mecode {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 32px; background: var(--paper);
  border: 1px solid rgba(4, 93, 103, .3); border-radius: var(--radius-lg);
}
.mecode__qr { width: 260px; height: 260px; display: block; }
.mecode__qr img, .mecode__qr svg { width: 100%; height: 100%; display: block; }
.mecode__url {
  font: 500 21px var(--mono); letter-spacing: .04em; color: var(--brand-ink);
  word-break: break-all; text-align: center;
}
.mecode__hint { font: 400 16.5px/1.55 var(--sans); color: var(--muted-2); text-align: center; max-width: 42ch; text-wrap: pretty; }

/* a progress rail that counts steps rather than measuring completeness */
.rail { display: flex; gap: 8px; margin: 0 0 26px; }
.rail__seg { height: 5px; flex: 1; border-radius: 3px; background: var(--swatch); }
.rail__seg.is-done { background: var(--brand); }
.rail__seg.is-now  { background: var(--brand); opacity: .45; }

/* my-documents cards on the Neighbor app */
.mydoc {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; color: inherit;
}
.mydoc:hover { border-color: var(--brand); color: inherit; }
.mydoc__t { font: 500 19px var(--sans); }
.mydoc__s { font: 400 15.5px var(--sans); color: var(--muted-2); margin-top: 3px; }

/* who has access — the honest list */
.access-row {
  display: flex; align-items: flex-start; gap: 15px; padding: 19px 21px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  margin-bottom: 12px;
}
.access-row__who { font: 500 18.5px var(--sans); }
.access-row__why { font: 400 16px/1.55 var(--sans); color: var(--muted); margin-top: 4px; text-wrap: pretty; }

/* ---------------------------------------------------------- the verifier -- */

.verify { max-width: 780px; margin: 0 auto; padding: 34px 22px 70px; }
.verify__head {
  display: flex; align-items: center; gap: 18px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap;
}
.verify__head img { width: 132px; height: auto; }
.countdown {
  font: 500 15px var(--mono); letter-spacing: .04em;
  padding: 7px 13px; border-radius: 999px; background: var(--soon-bg); color: var(--soon);
  white-space: nowrap;
}
.countdown.is-close { background: var(--gone-bg); color: var(--gone); }

/* ---------------------------------------------------------------- signin -- */

.signin { max-width: 720px; margin: 60px auto; padding: 0 24px; }
.persona {
  display: flex; align-items: center; gap: 17px; padding: 17px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; margin-bottom: 11px;
}
.persona:hover { border-color: var(--brand); color: inherit; }
.persona__avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--brand-soft); flex: none;
  display: flex; align-items: center; justify-content: center;
  font: 600 17px var(--sans); color: var(--brand-ink);
}

/* ------------------------------------------------------------- utilities -- */

.hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.spread { display: flex; align-items: baseline; gap: 14px; }
.spread > :last-child { margin-left: auto; }

@media (max-width: 1100px) {
  .cols { flex-direction: column; }
  .cols__side, .cols__side--sm { width: auto; }
}
@media (max-width: 860px) {
  .side { display: none; }       /* the staff portal is a desk tool; the data survives */
  .content { padding: 20px; }
  .topbar { padding: 0 20px; }
  .big-title { font-size: 36px; }
  .big-lede  { font-size: 20px; }
  .step-card { padding: 24px 22px; }
  .mecode__qr { width: 220px; height: 220px; }
}

@media print {
  .side, .topbar, .demo-bar, .btn { display: none !important; }
  body { background: #fff; }
  .card, .lst-wrap { border-color: #ccc; }
}
