/* ============================================================
   HEAD TRIP 2026 · PLATINUM — guest itinerary microsite
   Brand: black canvas, white ink, desert-sunset amber -> rust.
   Mobile-first. Tokens match head-trip-platinum-site.
   ============================================================ */

:root {
  --bg:      #050506;
  --bg2:     #0b0b0d;
  --panel:   #121214;
  --panel2:  #18181b;
  --panel3:  #202024;
  --line:    rgba(255,255,255,.10);
  --line2:   rgba(255,255,255,.19);

  --ink:     #f6f5f3;
  --muted:   #a7a49f;
  --faint:   #6d6b67;

  --amber:   #ff9a3c;
  --amber2:  #ffc178;
  --orange:  #ff7a1a;
  --rust:    #d1442a;
  --sunset:  linear-gradient(120deg,#ffc178 0%,#ff8a2b 32%,#e5551f 66%,#a01d17 100%);

  --font-d: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 720px;
  --gutter: clamp(1.15rem, 5vw, 2rem);
  --radius: 16px;
  --radius-lg: 22px;
  --pill: 999px;
  --dock-h: 66px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* An author `display` rule beats the hidden attribute's UA style. Make hidden mean hidden. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--font-d); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
h1 b, h2 b, h3 b { font-weight: 700; }

.kicker {
  font-family: var(--font-d); font-weight: 600; font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--amber);
}
.mono {
  font-family: var(--font-d); font-weight: 500; font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.fine { color: var(--faint); font-size: .82rem; line-height: 1.6; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,6,.9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: .8rem; height: 58px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 26px; width: auto; }
.brand__tier {
  font-family: var(--font-d); font-size: .58rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(255,154,60,.4); border-radius: var(--pill); padding: .25em .7em;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.4rem, 9vw, 4rem) 0 clamp(1.8rem, 6vw, 2.6rem); position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--sunset); opacity: .55;
}
.hero__status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-d); font-size: .66rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(255,154,60,.35); background: rgba(255,154,60,.07);
  border-radius: var(--pill); padding: .42em .95em; margin-bottom: 1.4rem;
}
.hero__status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255,154,60,.55); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,154,60,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(255,154,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,154,60,0); }
}
.hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.9rem); }
.hero h1 .welcome { display: block; color: var(--muted); font-size: .46em; font-weight: 400; letter-spacing: .01em; margin-bottom: .55rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem;
  margin-top: 1.1rem; color: var(--muted); font-size: .9rem;
}
.hero__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero__intro { color: var(--muted); margin-top: 1.25rem; max-width: 56ch; }
.hero__updated { margin-top: 1.4rem; }

/* ---------- Updates ---------- */
.updates {
  border: 1px solid rgba(255,154,60,.28); background: rgba(255,154,60,.06);
  border-radius: var(--radius); padding: 1.1rem 1.15rem; margin-bottom: 1.5rem;
}
.updates h2 { font-family: var(--font-d); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: .85rem; }
.updates li { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .55rem 0; border-top: 1px solid rgba(255,154,60,.16); }
@media (min-width: 560px) {
  .updates li { grid-template-columns: auto 1fr; gap: .9rem; }
}
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates .u-date { font-family: var(--font-d); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber2); white-space: nowrap; padding-top: .28rem; }
.updates .u-msg { font-size: .93rem; color: var(--ink); }

/* ---------- Sections (collapsible) ---------- */
.sections { padding-bottom: 2.5rem; }
.sec {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); margin-bottom: .85rem; overflow: hidden;
}
.sec > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .9rem;
  padding: 1.15rem 1.15rem; user-select: none;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.sec__t { font-family: var(--font-d); font-size: 1.02rem; font-weight: 500; letter-spacing: -.005em; flex: 1; }
.sec__chev { flex: none; width: 11px; height: 11px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg) translate(-3px,-3px); transition: transform .25s var(--ease); }
.sec[open] > summary .sec__chev { transform: rotate(-135deg) translate(-2px,-2px); }
.sec[open] > summary { border-bottom: 1px solid var(--line); }
.sec__body { padding: 1.15rem; display: grid; gap: 1rem; }

/* ---------- Rows ---------- */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .68rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row dt { font-family: var(--font-d); font-size: .63rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.row dd { font-size: .98rem; color: var(--ink); }
.row dd.tbd { color: var(--faint); font-style: italic; }
@media (min-width: 560px) {
  .row { grid-template-columns: 168px 1fr; gap: 1rem; align-items: baseline; }
  .row dt { padding-top: .12rem; }
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel2); padding: 1rem 1.05rem;
}
.card--muted { background: transparent; border-style: dashed; }
.card__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card__t { font-family: var(--font-d); font-size: .95rem; font-weight: 500; }
.card .rows .row:first-child { padding-top: .1rem; }

/* ---------- Status chips ---------- */
.chip {
  font-family: var(--font-d); font-size: .58rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; border-radius: var(--pill); padding: .34em .78em;
  border: 1px solid var(--line2); color: var(--muted); white-space: nowrap;
}
.chip--confirmed { color: var(--amber); border-color: rgba(255,154,60,.45); background: rgba(255,154,60,.08); }
.chip--pending   { color: var(--muted); border-style: dashed; }
.chip--none      { color: var(--faint); border-color: var(--line); }

/* ---------- Lists ---------- */
.ticks { display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .97rem; }
.ticks li::before {
  content: ""; width: 6px; height: 6px; margin-top: .55rem; border-radius: 50%;
  background: var(--amber); opacity: .9;
}
.ticks li.is-pending::before { background: var(--faint); }
.ticks .sub { display: block; color: var(--muted); font-size: .87rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { border: 1px solid var(--line2); border-radius: var(--pill); padding: .3em .8em; font-size: .84rem; color: var(--ink); }

/* ---------- Contacts ---------- */
.contact { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2); padding: 1rem 1.05rem; }
.contact__role { font-family: var(--font-d); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.contact__name { font-family: var(--font-d); font-size: 1.05rem; font-weight: 500; margin-top: .2rem; }
.contact__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-d); font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  border-radius: var(--pill); padding: .62em 1.15em; border: 1px solid var(--line2);
  color: var(--ink); transition: border-color .2s var(--ease), background .2s var(--ease);
  min-height: 40px;
}
.btn:hover { border-color: var(--amber); }
.btn--sunset { background: var(--sunset); border-color: transparent; color: #fff; font-weight: 600; }
.escalation {
  border-left: 2px solid var(--amber); padding-left: .95rem; color: var(--muted); font-size: .93rem;
}

/* ---------- Info blocks ---------- */
.info { display: grid; gap: .95rem; }
.info__t { font-family: var(--font-d); font-size: .93rem; font-weight: 500; margin-bottom: .2rem; }
.info__b { color: var(--muted); font-size: .93rem; }

/* ---------- Empty state ---------- */
.empty { color: var(--faint); font-size: .92rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center; display: grid; gap: .8rem; justify-items: center;
}
.site-footer > * { max-width: var(--maxw); }

/* ---------- Sticky dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
  background: rgba(9,9,11,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .55rem;
}
.dock .dock-in { display: flex; align-items: center; gap: .55rem; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.dock .btn { flex: 1; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(14px);
  bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--panel3); border: 1px solid var(--line2); border-radius: var(--pill);
  padding: .6em 1.15em; font-size: .85rem; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; padding: 0; }
  .site-header, .dock, .toast, .sec__chev, .contact__acts { display: none !important; }
  .sec, .card, .contact, .updates { border-color: #ccc; background: #fff; break-inside: avoid; }
  .sec__body { display: block !important; }
  .row dt, .mono, .fine, .kicker { color: #555; }
  .row dd, .hero h1, .sec__t, .card__t, .contact__name { color: #111; }
  a { color: #111; }
}

/* On a laptop the dock does not need to be two full-width slabs. */
@media (min-width: 720px) {
  .dock .dock-in { justify-content: flex-end; }
  .dock .btn { flex: 0 0 auto; min-width: 150px; }
}

/* ---------- Credential drop-off picker ---------- */
.picker {
  border: 1px solid rgba(255,154,60,.28); background: rgba(255,154,60,.05);
  border-radius: var(--radius); padding: 1.05rem; display: grid; gap: .95rem;
}
.picker .info__b { margin-bottom: .2rem; }
.slot-day { display: grid; gap: .55rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .45rem; }
.slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: var(--pill); padding: .6em .5em;
  font-size: .82rem; text-align: center; cursor: pointer; min-height: 42px; white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.slot input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot:hover { border-color: var(--amber2); }
.slot:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.slot:has(input:checked) {
  background: var(--sunset); border-color: transparent; color: #fff; font-weight: 600;
}
.picker__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.picker__msg { font-size: .86rem; color: var(--muted); }
.picker__msg.is-bad { color: var(--amber2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { font-size: .74rem; padding: .5em 1em; min-height: 36px; }
.picker--done {
  border-style: solid; background: rgba(255,154,60,.07);
  display: grid; gap: .35rem; padding: 1.05rem;
}
@media print { .picker { display: none !important; } }

/* ---------- Text fields (roster, handover) ---------- */
.fields { display: grid; gap: .7rem; }
.field { display: grid; gap: .35rem; }
.field__l {
  font-family: var(--font-d); font-size: .62rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.field input, .creds input[type="text"] {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px;
  padding: .68em .85em; min-height: 44px;
}
.field input::placeholder, .creds input::placeholder { color: var(--faint); }
.field input:focus, .creds input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.field input:disabled, .creds input:disabled { opacity: .5; }

/* ---------- Staff handover sheet ---------- */
body.staff { padding-bottom: 3rem; }
body.staff .warn {
  border: 1px solid rgba(209,68,42,.45); background: rgba(209,68,42,.1);
  border-radius: var(--radius); padding: .9rem 1.05rem; color: var(--amber2); font-size: .88rem;
}
.warnline { color: var(--amber2); }
.creds { width: 100%; border-collapse: collapse; margin: 1.6rem 0; }
.creds th {
  text-align: left; padding: .5rem .5rem .7rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-d); font-size: .6rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.creds td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.creds .cred__pick { width: 34px; }
.creds .cred__on { width: 20px; height: 20px; accent-color: var(--orange); }
.cred__type {
  display: block; font-family: var(--font-d); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: .35rem;
}
.cred__state { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cred.is-done { opacity: .55; }
.cred.is-done .cred__type { color: var(--faint); }
.signoff {
  border: 1px solid var(--line2); border-radius: var(--radius); background: var(--panel);
  padding: 1.1rem; display: grid; gap: .9rem;
}
@media (max-width: 620px) {
  .creds, .creds tr, .creds td, .creds tbody { display: block; width: 100%; }
  .creds th { display: none; }
  .creds tr:has(th) { display: none; }
  .creds tr { border: 1px solid var(--line); border-radius: var(--radius);
              padding: .8rem; margin-bottom: .7rem; position: relative; }
  .creds td { border: 0; padding: .3rem 0; }
  .creds .cred__pick { position: absolute; top: .8rem; right: .8rem; width: auto; }
  .creds .cred__state { padding-top: .5rem; }
}

/* Upsell that does not deserve a card of its own. */
.upgrade-line { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.ulink { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* A credential blocked from release for want of its code. */
.cred.is-missing { outline: 1px solid var(--rust); outline-offset: 4px; border-radius: 10px; }
.cred.is-missing .cred__rfid { border-color: var(--rust); }

/* ============================================================
   STAFF ADMIN DASHBOARD (site/_review.html — never deployed)
   ============================================================ */
body.admin { padding-bottom: 3rem; }
.rev { max-width: 1180px; margin-inline: auto; padding: 2rem var(--gutter) 4rem; }
.rev__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 2rem; }
.rev__head img { height: 24px; width: auto; }
.rev h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.rev .lede { margin-bottom: 1.8rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
         gap: .7rem; margin-bottom: 1.6rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
        padding: 1rem 1.05rem; display: grid; gap: .3rem; }
.tile__n { font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; color: var(--amber); }
.tile__l { font-family: var(--font-d); font-size: .6rem; font-weight: 600; letter-spacing: .16em;
           text-transform: uppercase; color: var(--faint); }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
         padding: 1.2rem; margin-bottom: 1.1rem; }
.panel h2 { font-family: var(--font-d); font-size: .68rem; font-weight: 600; letter-spacing: .22em;
            text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.panel--bad { border-color: rgba(209,68,42,.5); background: rgba(209,68,42,.08); }
.panel--bad h2 { color: var(--rust); }
.panel--bad li { color: var(--amber2); font-size: .9rem; padding: .25rem 0; }

.rev table { width: 100%; border-collapse: collapse; }
.rev th, .rev td { text-align: left; padding: .75rem .6rem; border-top: 1px solid var(--line);
                   vertical-align: top; font-size: .88rem; }
.rev th { border-top: 0; font-family: var(--font-d); font-size: .6rem; font-weight: 600;
          letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.rev td a { color: var(--amber); font-weight: 500; }
.rev td a:hover { text-decoration: underline; }
.rev .slug { display: block; color: var(--faint); font-size: .72rem; margin-top: .15rem; }
.rev .gap { color: var(--amber2); font-size: .82rem; }
.rev .ok { color: var(--faint); font-size: .82rem; }
.rev tr.is-out td { opacity: .55; }
.rev .warn { border: 1px solid rgba(209,68,42,.4); background: rgba(209,68,42,.08);
             border-radius: var(--radius); padding: .9rem 1.05rem; color: var(--amber2);
             font-size: .86rem; margin-top: 1.4rem; }

/* Drop-off timeline */
.tl { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 760px) { .tl { grid-template-columns: 1fr 1fr; } }
.tl__day .mono { margin-bottom: .6rem; color: var(--amber); }
.tl__list { display: grid; gap: .25rem; }
.tl__slot { display: grid; grid-template-columns: 116px 1fr; gap: .7rem; align-items: baseline;
            padding: .42rem .6rem; border-radius: 9px; border: 1px solid transparent; }
.tl__t { font-family: var(--font-d); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tl__free { color: var(--faint); font-size: .8rem; }
.tl__slot.is-booked { background: rgba(255,154,60,.09); border-color: rgba(255,154,60,.3); }
.tl__slot.is-booked .tl__t { color: var(--amber2); }
.tl__who { font-size: .88rem; color: var(--ink); }
.tl__slot.is-clash { background: rgba(209,68,42,.14); border-color: rgba(209,68,42,.5); }
.tl__slot.is-clash .tl__who { color: var(--amber2); font-weight: 600; }
.tl__waiting { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.tl__waiting b { color: var(--amber2); font-weight: 600; }
.tag--warn { border-color: rgba(255,154,60,.45); color: var(--amber2); }

/* ---------- Admin: status pills, action list, editable group cards ---------- */
.rev__mode { font-family: var(--font-d); font-size: .58rem; font-weight: 600; letter-spacing: .16em;
             text-transform: uppercase; color: var(--faint); border: 1px solid var(--line2);
             border-radius: var(--pill); padding: .3em .8em; margin-left: auto; }
.rev__mode.is-live { color: var(--amber); border-color: rgba(255,154,60,.45);
                     background: rgba(255,154,60,.08); }
.rev__head .btn { margin-left: .6rem; }

.st { display: inline-block; font-family: var(--font-d); font-size: .56rem; font-weight: 600;
      letter-spacing: .14em; text-transform: uppercase; border-radius: var(--pill);
      padding: .34em .75em; border: 1px solid; white-space: nowrap; }
.st--ready { color: #7ad0a8; border-color: rgba(122,208,168,.45); background: rgba(122,208,168,.1); }
.st--done  { color: var(--faint); border-color: var(--line2); }
.st--wait  { color: var(--muted); border-color: var(--line2); border-style: dashed; }
.st--todo  { color: var(--amber); border-color: rgba(255,154,60,.5); background: rgba(255,154,60,.1); }
.st--check { color: #ff8b78; border-color: rgba(209,68,42,.6); background: rgba(209,68,42,.15); }
.st--off   { color: var(--faint); border-color: var(--line); }

.todo { display: grid; gap: .1rem; }
.todo li { display: grid; grid-template-columns: 118px 170px 1fr; gap: .9rem; align-items: center;
           padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.todo li:first-child { border-top: 0; }
.todo li b { font-weight: 600; }
.todo li span:last-child { color: var(--muted); }
@media (max-width: 680px) {
  .todo li { grid-template-columns: 1fr; gap: .25rem; }
}
.panel--plain { background: transparent; border: 0; padding: 0; }
.panel--plain > h2 { padding-left: .1rem; }

.gcards { display: grid; gap: .9rem; }
.gcard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
         padding: 1.1rem; }
.gcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.gcard__top h3 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; }
.gcard__why { color: var(--muted); font-size: .85rem; }
.gcard__links { margin-left: auto; display: flex; gap: .9rem; font-size: .8rem; }
.gcard__links a { color: var(--amber); }
.gcard__links a:hover { text-decoration: underline; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.fw { display: grid; gap: .3rem; }
.fw--wide { grid-column: 1 / -1; }
.fw > span { font-family: var(--font-d); font-size: .58rem; font-weight: 600; letter-spacing: .14em;
             text-transform: uppercase; color: var(--faint); }
.fld { width: 100%; font-family: inherit; font-size: .9rem; color: var(--ink);
       background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
       padding: .55em .7em; min-height: 38px; transition: border-color .15s var(--ease); }
.fld:hover:not(:disabled) { border-color: var(--line2); }
.fld:focus { outline: none; border-color: var(--amber); background: var(--panel3); }
.fld::placeholder { color: var(--faint); font-style: italic; }
.fld:disabled { opacity: .6; cursor: default; }
.fld--area { resize: vertical; line-height: 1.5; }
.fld--mono { font-family: var(--font-d); letter-spacing: .04em; }
.fld.is-saving { border-color: var(--amber2); }
.fld.is-saved  { border-color: #7ad0a8; }
.fld.is-bad    { border-color: var(--rust); }

.chks { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .2rem; }
.chk { display: flex; align-items: center; gap: .45rem; font-size: .88rem; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--orange); }
.chk--pub { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px;
            background: var(--panel2); }
.chk--pub span { font-family: var(--font-b); font-size: .85rem; letter-spacing: 0;
                 text-transform: none; color: var(--muted); }

.ctab { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.ctab th { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line);
           font-family: var(--font-d); font-size: .56rem; font-weight: 600; letter-spacing: .14em;
           text-transform: uppercase; color: var(--faint); }
.ctab td { padding: .3rem .5rem; vertical-align: middle; }
.ctab .ct { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.ctab .cs { font-size: .78rem; color: var(--faint); white-space: nowrap; }
.ctab .cs.is-out { color: #7ad0a8; }
@media (max-width: 680px) {
  .ctab, .ctab tr, .ctab td, .ctab tbody { display: block; width: 100%; }
  .ctab th { display: none; }
  .ctab tr { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; margin-top: .5rem; }
  .ctab td { padding: .2rem 0; }
}
.toast.is-bad { border-color: var(--rust); color: var(--amber2); }

/* ---------- Signature pad ---------- */
.consent {
  color: var(--muted); font-size: .88rem; line-height: 1.65;
  border-left: 2px solid var(--amber); padding-left: .95rem;
}
.sigwrap { position: relative; }
.sigpad {
  width: 100%; height: auto; aspect-ratio: 3 / 1; display: block;
  background: var(--panel3); border: 1px dashed var(--line2); border-radius: 12px;
  /* Without this a finger drag scrolls the page instead of drawing. */
  touch-action: none; cursor: crosshair;
}
.sigpad__hint {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: var(--faint); font-size: .9rem; font-style: italic;
}
.sigpad__clear {
  position: absolute; right: .55rem; bottom: .55rem;
  font-family: var(--font-d); font-size: .6rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line2); border-radius: var(--pill); padding: .4em .85em;
  background: rgba(5,5,6,.6);
}
.sigpad__clear:hover { color: var(--amber); border-color: var(--amber); }
.cred__preset {
  display: block; margin-top: .3rem; font-family: var(--font-d); font-size: .55rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.cred__rfid.is-preset { border-color: rgba(255,154,60,.45); }

/* Bulk pre-allocation */
.cbulk { margin-top: 1rem; }
.cbulk summary {
  cursor: pointer; font-family: var(--font-d); font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber); padding: .3rem 0;
}
.cbulk details[open] summary { margin-bottom: .6rem; }
.cbulk .btn { margin-top: .5rem; }

/* A recorded signature, rendered back from its stored path */
.sigshow { background: var(--panel3); border: 1px solid var(--line); border-radius: 10px;
           padding: .4rem; max-width: 320px; }
.sigshow svg { display: block; width: 100%; height: auto; }
.sigshow path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round;
                stroke-linejoin: round; }

/* A recorded handover, reproduced from its stored path */
.sigrecs { display: grid; gap: .7rem; margin-top: .3rem; }
.sigrec { display: grid; grid-template-columns: 200px 1fr; gap: .9rem; align-items: start;
          border: 1px solid var(--line); border-radius: 12px; background: var(--panel2);
          padding: .7rem; }
.sigrec__meta p { font-size: .86rem; margin-bottom: .2rem; }
.sigrec__receipt { font-family: var(--font-d); font-size: .72rem; color: var(--muted);
                   white-space: pre-wrap; margin-top: .45rem; line-height: 1.55; }
@media (max-width: 620px) { .sigrec { grid-template-columns: 1fr; } }
.lead-name { font-size: .98rem; color: var(--ink); padding: .5rem 0 .2rem; }
.lead-name .slug { display: inline; margin-left: .4rem; color: var(--faint); font-size: .8rem; }
