/* Narwhal's Crafted — Helm (checklists & task management)
   All brand values come from brand-spec.md (single source of truth).
   Admin pages are desktop-first but iPad-usable; the /app page is
   iPad-FIRST: touch targets ≥44px, nothing depends on hover. */

/* ---------- fonts (self-hosted copies of the brand webfonts) ---------- */
@font-face {
  font-family: "kisnaregular";
  src: url("/webfonts/kisna-regular-webfont.woff2") format("woff2"),
       url("/webfonts/kisna-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "tay_sweetheartregular";
  src: url("/webfonts/taysweetheart-webfont.woff2") format("woff2"),
       url("/webfonts/taysweetheart-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (brand-spec.md §11) ---------- */
:root {
  /* color — verified */
  --ink:   #093543;
  --deep:  #06495e;
  --navy:  #204a5e;
  --cyan:  #40b9d0;
  --slate: #598c9f;
  --foam:  #fef6f6;
  --red:   #ef4440;   /* universal hover / alert / flagged */
  --beige: #F0E6E6;

  /* color — internal derived */
  --cyan-tint: #e3f3f7;
  --cyan-dim:  #2a98ae;
  --line: rgba(9, 53, 67, .14);
  --text-main:  #0d2a35;
  --text-muted: #4a6870;

  /* status colors (brand-spec §1 seasonal palette) */
  --green: #0eaa4e;   /* completed */
  --gold:  #CD9B06;   /* in progress / late window */
  --orange: #e18326;  /* late badge */

  /* type — production names */
  --font-title:  "kisnaregular", "Arial Rounded MT Bold", sans-serif;
  --font-accent: "tay_sweetheartregular", "Brush Script MT", cursive;
  --font-body:   acumin-variable, "DM Sans", system-ui, sans-serif;
  --font-mono:   "DM Mono", ui-monospace, monospace;

  /* layout — verified */
  --radius-btn: 0.25rem;
  --radius-card: 6px;
  --shadow-btn: 0 0.625rem 1.25rem rgba(0, 0, 0, .15);
  --shadow-card: 0 0.625rem 1rem rgba(0, 0, 0, .05);

  /* layout — this app */
  --touch: 44px;             /* minimum touch target */
  --content-max: 1100px;     /* admin pages */
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--foam) url("/img/bkg_tex.png") repeat;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  font-variation-settings: "slnt" 0, "wdth" 67.5, "wght" 300;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

/* iPad: kill double-tap-to-zoom app-wide. `manipulation` keeps panning AND
   pinch-zoom (the accessibility gesture survives); it only drops double-tap.
   Belt and braces on every tappable element too — WebKit has been
   inconsistent about honouring touch-action on the root/body.
   (Full war story: Reservations CLAUDE.md.) */
body.app-page, body.login-page { touch-action: manipulation; }
button, a, label, summary, input, select, textarea,
.card, .modal-backdrop, .run-card, .cl-row, .titem {
  touch-action: manipulation;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: normal;
  color: var(--navy);
  margin: 0 0 .5rem;
  line-height: 1.15;
}
h1 { font-size: 2.3125rem; letter-spacing: .095rem; }   /* fs-700 */
h2 { font-size: 1.875rem;  letter-spacing: .034rem; }   /* fs-550 */
h3 { font-size: 1.375rem;  letter-spacing: .0275rem; }  /* fs-485 */
h4 { font-size: 1.25rem;   letter-spacing: .07rem; }    /* fs-450 */

p { margin: 0 0 1rem; letter-spacing: .02em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--red); }

strong, b { font-weight: 500; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

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

/* ---------- buttons (4px radius, float shadow, NO hover transition) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.0625rem;
  letter-spacing: .07rem;
  min-height: var(--touch);
  padding: .75rem 1.25rem;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--navy);
  color: var(--foam);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: none;
  text-align: center;
}
.btn:hover { background: var(--red); color: var(--foam); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: var(--red); color: var(--foam); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--slate);
  box-shadow: none;
}
.btn-ghost:hover { background: transparent; color: var(--red); border-color: var(--red); }

.btn-danger { background: var(--red); }
.btn-danger:hover { background: var(--ink); }
/* destructive buttons arm on the first tap ("Tap again…") and fire on the
   second — the armed state goes ink so the change is unmissable */
.btn-danger.armed { background: var(--ink); }

.btn-small { font-size: .9rem; padding: .5rem .8rem; min-height: 40px; }

/* ---------- forms ---------- */
label { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: .25rem; }

input[type="text"], input[type="password"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"], input[type="email"],
select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;   /* never smaller — iOS auto-zooms fields under 16px */
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .6rem .7rem;
  min-height: var(--touch);
  margin-bottom: .9rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-tint);
}
textarea { min-height: 5rem; resize: vertical; }

.field-row { display: flex; gap: .75rem; }
.field-row > * { flex: 1; min-width: 0; }

/* store-scope picker: one touch-sized checkbox row per store */
.scope-checks {
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  max-height: 14rem;
  overflow-y: auto;
  margin-bottom: .9rem;
}
.scope-checks label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .55rem .7rem;
  min-height: var(--touch);
  font-size: 1rem;
  color: var(--text-main);
}
.scope-checks label + label { border-top: 1px solid var(--line); }
.scope-checks input { width: 1.15rem; height: 1.15rem; accent-color: var(--cyan); }

.form-error {
  background: #fdecec;
  border: 1px solid var(--red);
  border-radius: var(--radius-btn);
  color: var(--red);
  font-weight: 400;
  font-size: .9rem;
  padding: .5rem .75rem;
  margin-bottom: 1rem;
}
.form-error:empty { display: none; }

/* ---------- connection banner (api.js netBanner) ---------- */
#net-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;   /* above modals — connection trouble outranks everything */
  background: var(--red);
  color: var(--foam);
  font-weight: 400;
  text-align: center;
  padding: .45rem .75rem;
}
#net-banner.show { display: block; }

/* ---------- header ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--navy);
  color: var(--foam);
  padding: .5rem 1.25rem;
  min-height: 58px;
}
.app-header img.logo { height: 40px; filter: drop-shadow(0 0 .625rem rgba(0, 0, 0, .15)); }
.app-header .app-title {
  font-family: var(--font-title);
  font-size: 1.375rem;
  letter-spacing: .0275rem;
  color: var(--foam);
  margin: 0;
}
.app-header .spacer { flex: 1; }
.app-header .whoami { font-size: .875rem; color: var(--cyan-tint); }
.app-header .btn-small { box-shadow: none; }

/* admin nav links in the header band */
.app-nav { display: flex; gap: .15rem; flex-wrap: wrap; }
.app-nav a {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: .034rem;
  color: var(--cyan-tint);
  padding: .45rem .7rem;
  border-radius: var(--radius-btn);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}
.app-nav a:hover { color: var(--red); }
.app-nav a.active { background: var(--deep); color: var(--foam); }

/* ---------- page shells ---------- */
body.app-page, body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.app-page .app-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem;
}
body.login-page .login-wrap { flex: 1; min-height: 0; }

/* ---------- login page ---------- */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-btn);
  padding: 2.25rem 2rem;
  text-align: center;
}
.login-card img.logo { height: 84px; margin-bottom: .75rem; }
.login-card h1 { font-size: 1.875rem; letter-spacing: .034rem; }
.login-tagline {
  font-family: var(--font-accent);
  color: var(--slate);
  font-size: 1.35rem;
  margin: -.25rem 0 1.5rem;
}
.login-card form { text-align: left; }
.login-card .btn { width: 100%; margin-top: .25rem; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: auto;
  padding-top: 56px;
  background: url("/img/wave_section_break-navy-flip.svg") center top no-repeat;
}
@media screen and (min-width: 1400px) {
  .site-foot { background-size: 100% 59px; }
}
.foot-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  background: var(--navy);
  color: var(--foam);
  padding: .1rem 1.25rem .9rem;
}
.foot-narly { font-family: var(--font-accent); font-size: 1.55rem; color: var(--cyan); }

/* ---------- modal (iPad-big: ≥52px fields, ≥56px actions) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 73, 94, .5);   /* brand deep-teal scrim */
  display: flex;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 50;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;   /* centers, yet still scrolls when taller than the screen */
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-btn);
  padding: 2rem 2.25rem 2.25rem;
}
.modal-close {
  position: absolute;
  top: .4rem;
  right: .4rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
  padding: .7rem .9rem;   /* generous touch target */
}
.modal-close:hover { color: var(--red); }
.modal h2 { margin-bottom: 1.25rem; }
.modal label { font-size: 1rem; }
.modal input[type="text"], .modal input[type="password"], .modal input[type="tel"],
.modal input[type="number"], .modal input[type="date"], .modal input[type="time"],
.modal input[type="email"], .modal select, .modal textarea {
  min-height: 52px;
  font-size: 1.1rem;
  padding: .7rem .85rem;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal-actions .push-left { margin-right: auto; }
.modal-actions .btn { min-height: 56px; font-size: 1.15rem; padding: .9rem 1.6rem; }
.modal-actions .btn-cyan { flex: 1 1 auto; max-width: 55%; }
.hidden { display: none !important; }

/* ---------- small utilities ---------- */
.muted { color: var(--text-muted); }
/* label with an inline checkbox (e.g. "Active") */
.check-line { display: flex; align-items: center; gap: .6rem; min-height: var(--touch);
  font-size: 1rem; color: var(--text-main); margin-bottom: .9rem; }
.check-line input { width: 1.15rem; height: 1.15rem; accent-color: var(--cyan); }

/* ---------- page head row (title + primary action) ---------- */
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-head .spacer { flex: 1; }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .75rem;
  letter-spacing: .034rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--beige);
  color: var(--navy);
  vertical-align: middle;
}
.badge.on   { background: var(--green); color: #fff; }
.badge.off  { background: var(--slate); color: #fff; }
.badge.gold { background: var(--gold); color: #fff; }
.badge.red  { background: var(--red); color: #fff; }

/* ---------- list tables (users, rosters, outbox) ---------- */
.list-table { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden; }
.list-table th {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: .9rem;
  letter-spacing: .034rem;
  text-align: left;
  color: var(--text-muted);
  padding: .6rem .8rem;
  border-bottom: 2px solid var(--beige);
}
.list-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.list-table tr:last-child td { border-bottom: none; }
.list-table td.actions { text-align: right; white-space: nowrap; }
.list-table td.actions .btn-small { margin-left: .4rem; }
.list-table .muted { color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

/* PIN chip: monospace so 0/O never ambiguous on a printout */
.pin-chip {
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--cyan-tint);
  border-radius: var(--radius-btn);
  padding: .1rem .45rem;
}

/* roster add-row inside the modal */
.roster-add { display: flex; gap: .6rem; align-items: flex-end; margin-top: 1rem; }
.roster-add .f-name { flex: 2; }
.roster-add .f-pin { flex: 1; }
.roster-add input { margin-bottom: 0; }
.roster-add .btn { white-space: nowrap; }

/* ---------- checklist builder ---------- */
.group-head {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: .034rem;
  color: var(--slate);
  margin: 1.5rem 0 .6rem;
  border-bottom: 3px solid var(--beige);
  padding-bottom: .25rem;
}
.group-head:first-child { margin-top: 0; }

.cl-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: .8rem 1.1rem;
  margin-bottom: .6rem;
  cursor: pointer;
  min-height: var(--touch);
}
.cl-row:active { background: var(--cyan-tint); }
.cl-row .cl-name { font-family: var(--font-title); font-size: 1.15rem; color: var(--navy); }
.cl-row .cl-sub { color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.cl-row .spacer { flex: 1; }

/* weekday chips (Sun..Sat toggles) */
.day-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.day-chip {
  font-family: var(--font-title);
  font-size: .95rem;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: .3rem .6rem;
  background: #fff;
  border: 1px solid var(--slate);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
}
.day-chip.active { background: var(--navy); border-color: var(--navy); color: var(--foam); }

/* item editor rows */
.item-row {
  display: grid;
  grid-template-columns: auto 9.5rem 1fr auto;
  gap: .5rem .75rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: .7rem .9rem;
  margin-bottom: .6rem;
}
.item-row input, .item-row select { margin-bottom: 0; }
.item-row .i-move { display: flex; flex-direction: column; gap: .25rem; }
.item-row .i-move button {
  min-width: 40px; min-height: 34px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: #fff; color: var(--navy); cursor: pointer; font-size: 1rem;
}
.item-row .i-move button:disabled { opacity: .3; }
.item-row .i-main { display: flex; flex-direction: column; gap: .5rem; }
.item-row .i-flags {
  grid-column: 2 / -1;
  display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center;
}
.item-row .i-flags .check-line { margin-bottom: 0; min-height: 36px; }
.item-row .i-temp { display: flex; gap: .5rem; align-items: center; }
.item-row .i-temp input { width: 6.5rem; }
.item-row .i-temp .muted { font-size: .85rem; }

/* recipients rows */
.rcpt-row { display: flex; gap: .9rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.rcpt-row .r-email { flex: 1; min-width: 14rem; font-weight: 400; }
.rcpt-row .check-line { margin-bottom: 0; }

/* editor section panels */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.panel > h3 { border-bottom: 3px solid var(--beige); padding-bottom: .35rem; margin-bottom: 1rem; }

/* sticky save bar at the bottom of the editor */
.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  padding: .75rem 0;
  background: linear-gradient(transparent, var(--foam) 35%);
}
.save-bar .btn { min-height: 52px; font-size: 1.1rem; }
.save-bar .save-note { color: var(--text-muted); font-size: .9rem; margin-right: auto; }

/* ---------- reports ---------- */
.filter-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-row input, .filter-row select { width: auto; margin-bottom: 0; }
.filter-row .day-chips { margin-bottom: 0; }
.warn-text { color: var(--gold); font-weight: 500; }
.bad-text { color: var(--red); font-weight: 500; }

/* ================= iPad app (/app) =================
   The store-floor surface: bigger everything, status color-coding,
   nothing depends on hover. */

.tapp-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tapp-head h2 { margin: 0; }
.tapp-head .tapp-date { color: var(--text-muted); font-size: 1rem; }

/* today view: one card per run */
.run-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 10px solid var(--slate);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
  min-height: 84px;
  cursor: pointer;
}
.run-card:active { background: var(--cyan-tint); }
.run-card .rc-name { font-family: var(--font-title); font-size: 1.35rem; color: var(--navy); }
.run-card .rc-sub { color: var(--text-muted); font-size: .95rem; font-weight: 400; }
.run-card .spacer { flex: 1; }
.run-card .rc-state { font-family: var(--font-title); font-size: 1.05rem; white-space: nowrap; }

.run-card.upcoming { border-left-color: var(--slate); opacity: .6; cursor: default; }
.run-card.available { border-left-color: var(--cyan); }
.run-card.available .rc-state { color: var(--cyan-dim); }
.run-card.in_progress { border-left-color: var(--gold); }
.run-card.in_progress .rc-state { color: var(--gold); }
.run-card.late_window { border-left-color: var(--orange); }
.run-card.late_window .rc-state { color: var(--orange); }
.run-card.completed, .run-card.completed_late { border-left-color: var(--green); }
.run-card.completed .rc-state, .run-card.completed_late .rc-state { color: var(--green); }
.run-card.missed { border-left-color: var(--red); }
.run-card.missed .rc-state { color: var(--red); }

/* run view */
.run-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.run-head h2 { margin: 0; }

.titem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.15rem;
  margin-bottom: .7rem;
}
.titem.done { border-left: 8px solid var(--green); }
.titem.flagged { border-left: 8px solid var(--red); background: #fdf4f4; }
.titem .t-label { font-family: var(--font-title); font-size: 1.25rem; color: var(--navy); }
.titem .t-label .badge { margin-left: .4rem; }
.titem .t-note { color: var(--text-muted); font-size: .95rem; font-weight: 400; margin-top: .1rem; }
.titem .t-controls { display: flex; gap: .75rem; align-items: center; margin-top: .75rem; flex-wrap: wrap; }
.titem .t-controls input { margin-bottom: 0; min-height: 56px; font-size: 1.2rem; max-width: 14rem; }
.titem .t-controls .btn { min-height: 56px; font-size: 1.1rem; }
.titem .t-done-line { display: flex; gap: .75rem; align-items: center; margin-top: .6rem; flex-wrap: wrap;
  color: var(--text-muted); font-size: .95rem; font-weight: 400; }
.titem .t-done-line .who { color: var(--green); font-weight: 500; }
.titem .t-flag-note { color: var(--red); font-weight: 500; }
.titem img.t-thumb { height: 72px; border-radius: var(--radius-card); border: 1px solid var(--line); }

/* the big check toggle */
.check-btn {
  min-width: 84px;
  min-height: 56px;
  font-size: 1.6rem;
  border: 2px solid var(--slate);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--slate);
  cursor: pointer;
}
.titem.done .check-btn { border-color: var(--green); background: var(--green); color: #fff; }

/* sticky finish bar */
.finish-bar {
  position: sticky;
  bottom: 0;
  background: var(--foam);
  border-top: 3px solid var(--beige);
  padding: .8rem 0 max(.8rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track { flex: 1; height: 14px; background: var(--beige); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--cyan); border-radius: 999px; transition: width .2s; }
.finish-bar .btn { min-height: 60px; font-size: 1.2rem; padding: .9rem 2rem; }
.finish-bar .p-text { font-weight: 400; color: var(--text-muted); white-space: nowrap; }

/* identify sheet */
.ident-chip {
  font-family: var(--font-title);
  font-size: .95rem;
  background: var(--deep);
  color: var(--foam);
  border: none;
  border-radius: 999px;
  min-height: var(--touch);
  padding: .35rem 1rem;
  cursor: pointer;
}
.ident-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.ident-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  min-height: 64px;
  background: #fff;
  border: 1px solid var(--slate);
  border-radius: var(--radius-card);
  color: var(--navy);
  cursor: pointer;
  padding: .5rem;
}
.ident-name.active { background: var(--navy); color: var(--foam); border-color: var(--navy); }

.pin-dots { display: flex; gap: .8rem; justify-content: center; margin: .75rem 0 1rem; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--slate); }
.pin-dot.full { background: var(--navy); border-color: var(--navy); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 320px; margin: 0 auto; }
.pin-key {
  font-family: var(--font-title);
  font-size: 1.6rem;
  min-height: 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--navy);
  cursor: pointer;
}
.pin-key:active { background: var(--cyan-tint); }
.pin-error { color: var(--red); text-align: center; font-weight: 500; min-height: 1.4em; margin-bottom: .25rem; }

/* ---------- cards (admin home tiles, store cards) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.4rem;
}
.card h3 { margin-bottom: .25rem; }
.card .card-sub { color: var(--text-muted); font-size: .9rem; }
