/* Veisla page-local layout. Tokens only: every colour, radius, duration and
   curve reads a var(--twe-*). shell-like classes are local (v-*); twe-* come
   from the vendored kit and are never redefined here. */

/* ---------------------------------------------------------------- shell -- */
.v-page { display: grid; min-block-size: 100dvh; grid-template-rows: auto 1fr; }
.twe-topbar {
  display: flex; align-items: center; gap: var(--twe-space-3);
  padding: var(--twe-space-2) var(--twe-space-4); border-radius: 0; border-block-start: 0; border-inline: 0;
  padding-block-start: calc(var(--twe-space-2) + env(safe-area-inset-top, 0px));
  position: sticky; inset-block-start: 0; z-index: var(--twe-z-dropdown);
}
.v-brand { display: inline-flex; align-items: center; gap: var(--twe-space-2); color: var(--twe-text); text-decoration: none; }
.v-brand svg { color: var(--twe-accent); }
.v-spacer { flex: 1 1 auto; }
.twe-main {
  overflow-y: auto; padding: var(--twe-space-6) var(--twe-space-4);
  padding-block-end: calc(var(--twe-space-8) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--twe-space-5);
}
.v-narrow { inline-size: 100%; max-inline-size: 34rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--twe-space-5); }
.v-wide { inline-size: 100%; max-inline-size: 72rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--twe-space-5); }
.v-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--twe-space-2); }
.v-row--center { justify-content: center; }
.v-scan__view--dialog { block-size: 60vh; border-radius: var(--twe-radius-md); }
.v-stack { display: flex; flex-direction: column; gap: var(--twe-space-3); }
.v-grid { display: grid; gap: var(--twe-space-4); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.v-muted { color: var(--twe-text-secondary); }
.v-fine { font-size: var(--twe-text-xs); color: var(--twe-text-secondary); line-height: var(--twe-leading-body); }
.v-hero h1 { margin: 0; font-size: var(--twe-text-2xl); line-height: var(--twe-leading-tight); }
.v-hero p { margin: var(--twe-space-2) 0 0; }
.v-code { font-family: var(--twe-font-mono); font-variant-numeric: var(--twe-nums); letter-spacing: 0.2em; font-size: var(--twe-text-xl); }
.v-qr { display: block; inline-size: min(16rem, 70vw); block-size: auto; margin-inline: auto; border-radius: var(--twe-radius); background: var(--twe-brand-paper); padding: var(--twe-space-2); }
.v-qr--large { inline-size: min(26rem, 85vw); }
.v-center { text-align: center; }
.twe-dialog:modal { position: fixed; inset: 0; margin: auto; }
@media screen { .twe-print-only { display: none; } }

/* --------------------------------------------------------------- avatars -- */
.v-avatar {
  inline-size: 3rem; block-size: 3rem; border-radius: var(--twe-radius-pill); flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--twe-accent-dim); color: var(--twe-accent-text);
  font-size: var(--twe-text-md); box-shadow: var(--twe-elev-1);
}
.v-avatar img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.v-avatar--lg { inline-size: 5rem; block-size: 5rem; font-size: var(--twe-text-xl); }

/* -------------------------------------------------------------- passport -- */
.v-slots { display: grid; gap: var(--twe-space-3); grid-template-columns: 1fr; }
.v-slot {
  display: flex; align-items: center; gap: var(--twe-space-3);
  padding: var(--twe-space-3); border-radius: var(--twe-radius-md);
  border: var(--twe-border-width) dashed var(--twe-border-strong); background: var(--twe-bg-inset);
}
.v-slot[data-stamped='true'] { border-style: solid; border-color: var(--twe-accent); background: var(--twe-bg-card); box-shadow: var(--twe-elev-1); }
.v-slot[data-stamped='false'] .v-avatar { background: var(--twe-bg-raised); color: var(--twe-text-muted); box-shadow: none; }
.v-slot__text { display: flex; flex-direction: column; min-inline-size: 0; }
.v-slot__name { font-size: var(--twe-text-md); }
.v-slot__meta { font-size: var(--twe-text-xs); color: var(--twe-text-secondary); }
.v-slot__mark { margin-inline-start: auto; }
.v-slot[data-fresh='true'] { animation: v-stamp var(--twe-dur-enter) var(--twe-ease) both; }
@keyframes v-stamp { from { transform: scale(1.06); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.v-done { text-align: center; }

/* ---------------------------------------------------------------- scanner -- */
.v-scan-body { background: var(--twe-bg); }
.v-scan { display: grid; grid-template-rows: auto 1fr auto; block-size: 100dvh; }
.v-scan__head {
  padding: calc(var(--twe-space-2) + env(safe-area-inset-top, 0px)) var(--twe-space-4) var(--twe-space-2);
  display: flex; align-items: center; gap: var(--twe-space-3); border-radius: 0; border-inline: 0; border-block-start: 0;
}
.v-scan__who { display: flex; flex-direction: column; min-inline-size: 0; }
.v-scan__who strong { font-size: var(--twe-text-md); font-weight: 400; }
.v-scan__view { position: relative; overflow: hidden; background: var(--twe-bg-inset); }
.v-scan__view video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.v-reticle {
  position: absolute; inset: 0; margin: auto; inline-size: min(64vw, 18rem); aspect-ratio: 1;
  border: calc(var(--twe-border-width) * 3) solid var(--twe-accent); border-radius: var(--twe-radius-xl);
  box-shadow: var(--twe-elev-glow); pointer-events: none;
}
.v-reticle[data-hit='true'] { border-color: var(--twe-ok); animation: v-hit var(--twe-dur-slow) var(--twe-ease) both; }
@keyframes v-hit { from { transform: scale(0.94); } to { transform: scale(1); } }
.v-scan__camera-msg { position: absolute; inset: auto var(--twe-space-4) var(--twe-space-4); }
.v-scan__panel {
  padding: var(--twe-space-3) var(--twe-space-4) calc(var(--twe-space-3) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--twe-space-3); border-radius: var(--twe-radius-xl) var(--twe-radius-xl) 0 0;
}
.v-manual { display: flex; gap: var(--twe-space-2); }
.v-manual .twe-input { flex: 1 1 auto; font-family: var(--twe-font-mono); letter-spacing: 0.2em; text-transform: uppercase; }
.v-result { display: flex; align-items: center; gap: var(--twe-space-3); }
.v-result[data-state='new'] { border-color: var(--twe-ok); }
.v-result[data-state='complete'] { box-shadow: var(--twe-elev-glow); }
.v-result__main { display: flex; flex-direction: column; min-inline-size: 0; flex: 1 1 auto; }
.v-result__name { font-size: var(--twe-text-lg); }
/* Status pills and form buttons keep their full width: on a phone a clipped
   "failed: 1" or "already stamped" cannot be read. The text beside them wraps instead. */
.v-scan__head .twe-badge, .v-result .twe-badge, #sc-r-badge { flex: 0 0 auto; }
.v-manual .twe-btn { flex: 0 0 auto; }
/* An anchor jump (#window, #new) lands below the sticky top bar, not under it. */
main [id] { scroll-margin-block-start: var(--twe-space-16); }
.v-tally { font-family: var(--twe-font-mono); font-variant-numeric: var(--twe-nums); font-size: var(--twe-text-xl); }

/* --------------------------------------------------------------- station -- */
.v-station-card { display: flex; align-items: center; gap: var(--twe-space-4); }

/* ------------------------------------------------------------------ admin -- */
.v-admin-nav { display: flex; flex-wrap: wrap; gap: var(--twe-space-1); }
.v-admin-nav a[aria-current='page'] { background: var(--twe-accent-dim); color: var(--twe-text); }
.v-table-short { --twe-table-max-h: 26rem; }
.v-form { display: grid; gap: var(--twe-space-4); }
.v-form-2 { display: grid; gap: var(--twe-space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.v-inline-form { display: inline; }
.v-copy-src { inline-size: 100%; min-inline-size: 10rem; font-size: var(--twe-text-xs); }

/* ------------------------------------------------- printable badge sheets -- */
.v-badge-page { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: var(--twe-space-3); }
.v-badge {
  display: flex; align-items: center; gap: var(--twe-space-3); padding: var(--twe-space-4);
  border: var(--twe-border-width) solid var(--twe-border-strong); border-radius: var(--twe-radius-lg);
  background: var(--twe-brand-paper); color: var(--twe-brand-navy-deep); min-block-size: 11rem;
}
.v-badge img { inline-size: 8rem; block-size: 8rem; flex: none; }
.v-badge__name { font-size: var(--twe-text-xl); line-height: var(--twe-leading-tight); }
.v-badge__co { font-size: var(--twe-text-md); color: var(--twe-brand-steel); }
.v-station-print { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--twe-space-4); }
.v-station-print .v-badge { flex-direction: column; text-align: center; min-block-size: 22rem; justify-content: center; }
.v-station-print img { inline-size: 12rem; block-size: 12rem; }
@media print {
  .twe-topbar, .v-admin-nav, .twe-no-print { display: none; }
  .twe-main { padding: 0; overflow: visible; }
  .v-badge-page { block-size: 10in; break-after: page; grid-template-rows: repeat(4, 1fr); }
  .v-badge { min-block-size: 0; box-shadow: none; }
}

/* ------------------------------------------------------------------- TV --- */
@font-face {
  font-family: 'Press Start 2P'; src: url('../fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}
/* The board is read from across a room: scale the root with the screen so every
   rem-based token grows together (1920 px wide -> about 22 px per rem). */
html[data-veisla-tv] { font-size: calc(100vw / 88); }
.v-tv {
  --_tv-display: var(--veisla-display-font, 'Press Start 2P', var(--twe-font-mono));
  position: relative; isolation: isolate;
  inline-size: 100vw; block-size: 100dvh; overflow: hidden; background: var(--twe-bg);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--twe-space-4); padding: var(--twe-space-6) var(--twe-space-8);
}
.v-tv__head { display: flex; align-items: flex-end; gap: var(--twe-space-6); }
.v-tv__title { font-family: var(--_tv-display); font-size: var(--twe-text-2xl); line-height: var(--twe-leading-snug); color: var(--twe-accent); margin: 0; }
.v-tv__sub { margin: var(--twe-space-2) 0 0; color: var(--twe-text-secondary); font-size: var(--twe-text-lg); }
.v-tv__counters { margin-inline-start: auto; display: flex; gap: var(--twe-space-4); }
.v-tv__counters .twe-kpi { min-inline-size: 10rem; }
.v-tv__counters .twe-kpi__value { font-family: var(--_tv-display); font-variant-numeric: var(--twe-nums); }
.v-tv__engs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--twe-space-4); }
.v-tv__eng { display: flex; align-items: center; gap: var(--twe-space-3); }
.v-tv__station { font-family: var(--_tv-display); font-size: var(--twe-text-xs); color: var(--twe-accent); }
.v-tv__body { display: grid; grid-template-columns: 1fr 24rem; gap: var(--twe-space-4); min-block-size: 0; }
.v-tv__wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-auto-rows: min-content; gap: var(--twe-space-3); overflow: hidden; align-content: start; }
.v-tv__lane { display: flex; flex-direction: column; gap: var(--twe-space-3); min-block-size: 0; overflow: hidden; }
.v-tv__lane h2, .v-tv__winners h2 { font-family: var(--_tv-display); font-size: var(--twe-text-sm); margin: 0; color: var(--twe-brand-key); }
.v-gcard { display: flex; flex-direction: column; gap: var(--twe-space-2); padding: var(--twe-space-3); }
.v-gcard__name { font-size: var(--twe-text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-gcard__co { font-size: var(--twe-text-sm); color: var(--twe-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-gcard[data-fresh='true'] { animation: v-pop var(--twe-dur-enter) var(--twe-ease) both; }
.v-gcard[data-done='true'] { border-color: var(--twe-brand-key); box-shadow: var(--twe-elev-glow); }
@keyframes v-pop { from { transform: translateY(var(--twe-space-2)) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.v-pips { display: flex; gap: var(--twe-space-1); }
.v-pip {
  inline-size: 1.4rem; block-size: 1.4rem; border-radius: var(--twe-radius-xs); display: grid; place-items: center;
  border: var(--twe-border-width) solid var(--twe-border-strong); background: var(--twe-bg-inset);
  font-family: var(--twe-font-mono); font-size: var(--twe-text-2xs); color: var(--twe-text-muted);
}
.v-pip[data-on='true'] { background: var(--twe-accent); border-color: var(--twe-accent); color: var(--twe-text-inverse); }
.v-pip[data-new='true'] { animation: v-stamp-pip var(--twe-dur-enter) var(--twe-ease) both; }
@keyframes v-stamp-pip { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.v-tv__foot { display: flex; align-items: center; gap: var(--twe-space-4); }
.v-tv__winners { display: flex; align-items: center; gap: var(--twe-space-3); flex-wrap: wrap; }
.v-tv__ticker { margin-inline-start: auto; color: var(--twe-text); font-size: var(--twe-text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 50%; }
.v-confetti { position: fixed; inset: 0; pointer-events: none; z-index: var(--twe-z-toast); }
.v-draw {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: var(--twe-z-dropdown);
  background: var(--twe-bg-overlay);
}
.v-draw[hidden] { display: none; }
.v-draw__box { text-align: center; padding: var(--twe-space-12) var(--twe-space-16); min-inline-size: 60vw; animation: v-pop var(--twe-dur-enter) var(--twe-ease) both; }
.v-draw__prize { font-family: var(--_tv-display, var(--twe-font-mono)); color: var(--twe-brand-key); font-size: var(--twe-text-lg); margin: 0; }
.v-draw__reel { font-family: var(--veisla-display-font, 'Press Start 2P', var(--twe-font-mono)); font-size: var(--twe-text-3xl); margin: var(--twe-space-8) 0 var(--twe-space-4); color: var(--twe-text); min-block-size: 1.5em; }
.v-draw[data-state='revealed'] .v-draw__reel { color: var(--twe-accent); }
.v-draw__co { font-size: var(--twe-text-xl); color: var(--twe-text-secondary); margin: 0; min-block-size: 1.4em; }
@supports (container-type: inline-size) { .v-tv__wall { container-type: inline-size; } }

/* Few guests in progress: fewer, larger cards instead of a corner of small ones. */
.v-tv__wall[data-density='few'] { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
.v-tv__wall[data-density='few'] .v-gcard { padding: var(--twe-space-5); gap: var(--twe-space-3); }
.v-tv__wall[data-density='few'] .v-gcard__name { font-size: var(--twe-text-2xl); }
.v-tv__wall[data-density='few'] .v-gcard__co { font-size: var(--twe-text-md); }
.v-tv__wall[data-density='few'] .v-pip { inline-size: 2.2rem; block-size: 2.2rem; font-size: var(--twe-text-sm); }
/* A crowd in progress: tighter cards so more of the room is on the board. */
.v-tv__wall[data-density='crowd'] { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: var(--twe-space-2); }
.v-tv__wall[data-density='crowd'] .v-gcard { padding: var(--twe-space-2) var(--twe-space-3); gap: var(--twe-space-1); }
.v-tv__wall[data-density='crowd'] .v-gcard__name { font-size: var(--twe-text-md); }
.v-tv__wall[data-density='crowd'] .v-gcard__co { display: none; }
/* Many finishers: names only, so twice as many fit before "+N more". */
#tv-lane[data-density='crowd'] .v-gcard__co { display: none; }
#tv-lane[data-density='crowd'] .v-gcard__name { font-size: var(--twe-text-md); }
/* Before anyone has a stamp the wall is one invitation, not an empty grid. */
.v-tv__open { grid-column: 1 / -1; align-self: center; display: flex; flex-direction: column; gap: var(--twe-space-4); padding: var(--twe-space-8); text-align: center; }
.v-tv__open-title { font-family: var(--_tv-display); font-size: var(--twe-text-2xl); line-height: var(--twe-leading-snug); color: var(--twe-accent); margin: 0; }
.v-tv__open-sub { font-size: var(--twe-text-xl); color: var(--twe-text-secondary); margin: 0; }
/* How to play: fills the Completed lane until the first guest finishes. */
.v-tv__how { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--twe-space-4); margin: 0; padding: 0; list-style: none; }
.v-tv__how li { display: flex; align-items: center; gap: var(--twe-space-3); font-size: var(--twe-text-lg); line-height: var(--twe-leading-snug); }
.v-tv__how-n {
  flex: none; inline-size: 2.4rem; block-size: 2.4rem; display: grid; place-items: center; border-radius: var(--twe-radius-pill);
  background: var(--twe-accent); color: var(--twe-text-inverse); font-family: var(--twe-font-mono); font-variant-numeric: var(--twe-nums);
}
.v-tv__winners .twe-badge { font-size: var(--twe-text-sm); }

/* Kit components set display, which beats the UA [hidden] rule. */
[hidden].twe-badge, [hidden].twe-card, [hidden].twe-empty { display: none; }
/* Completed lane: every pip is stamped, so show the name only and fit more. */
.v-tv__lane .v-pips { display: none; }
.v-tv__lane .v-gcard { padding: var(--twe-space-2) var(--twe-space-3); gap: 0; min-inline-size: 0; }
/* Two columns of finishers; tv.js trims what does not fit and says how many more. */
.v-tv__lane .v-stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--twe-space-2); align-content: start; flex: 1 1 auto; min-block-size: 0; overflow: hidden; }
.v-tv__more { grid-column: 1 / -1; font-family: var(--twe-font-mono); font-variant-numeric: var(--twe-nums); font-size: var(--twe-text-sm); color: var(--twe-text-secondary); padding: var(--twe-space-1) var(--twe-space-2); }
.v-draw__prize { font-family: var(--veisla-display-font, 'Press Start 2P', var(--twe-font-mono)); }

/* ---------------------------------------------------------------- themes -- */
/* Plate: the theme's background art, low opacity, behind the TV board only. */
.v-tv::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--veisla-plate, none); background-size: cover; background-position: center;
  opacity: 0.26;
}
.v-ambient { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: -1; pointer-events: none; }
.v-pip[data-on='true']::before, .v-theme-thumb__pip[data-on='true']::before { content: var(--veisla-stamp, '\2713'); }
.v-stamp::before { content: var(--veisla-stamp, '\2713'); }
.v-stamp { font-size: var(--twe-text-lg); color: var(--twe-accent); line-height: 1; }
/* flex: none keeps the Stamped badge whole on a phone; the name beside it wraps instead. */
.v-slot__mark { display: inline-flex; align-items: center; gap: var(--twe-space-2); flex: none; }
.v-theme-field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--twe-space-2); }
.v-theme-grid { display: grid; gap: var(--twe-space-3); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.v-theme-opt { display: flex; flex-direction: column; gap: var(--twe-space-2); padding: var(--twe-space-3); }
@supports selector(:has(a)) {
  .v-theme-opt:has(input:checked) { border-color: var(--twe-accent); box-shadow: var(--twe-elev-glow); }
}
.v-theme-opt__label { display: flex; flex-direction: column; gap: var(--twe-space-2); cursor: pointer; }
/* Thumbnail: the theme attribute scopes the accent h/s/l, so re-derive the one
   accent token here with the kit's own formula (tokens.css). */
.v-theme-thumb {
  --twe-accent: hsl(var(--twe-accent-h) var(--twe-accent-s) var(--twe-accent-l));
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; gap: var(--twe-space-2); aspect-ratio: 16 / 9; padding: var(--twe-space-2);
  border-radius: var(--twe-radius); background: var(--twe-bg); color: var(--twe-text);
  border: var(--twe-border-width) solid var(--twe-border); box-shadow: var(--twe-elev-1);
}
.v-theme-thumb::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--veisla-plate, none); background-size: cover; background-position: center; opacity: 0.4;
}
.v-theme-thumb__title {
  font-family: var(--veisla-display-font); font-size: var(--twe-text-xs); color: var(--twe-accent);
  line-height: var(--twe-leading-snug); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-theme-thumb__pips { display: flex; gap: var(--twe-space-1); }
.v-theme-thumb__pip {
  inline-size: 1.1rem; block-size: 1.1rem; border-radius: var(--twe-radius-xs); display: grid; place-items: center;
  border: var(--twe-border-width) solid var(--twe-border-strong); background: var(--twe-bg-inset);
  font-family: var(--twe-font-mono); font-size: var(--twe-text-2xs); color: var(--twe-text-muted);
}
.v-theme-thumb__pip[data-on='true'] { background: var(--twe-accent); border-color: var(--twe-accent); color: var(--twe-text-inverse); }

.v-tv__wall:has(.v-tv__open) { align-content: center; }

/* --------------------------------------------------------- check-in desk -- */
.v-checkin__grid { display: grid; gap: var(--twe-space-4); grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.v-step {
  display: inline-grid; place-items: center; inline-size: 1.75em; block-size: 1.75em; margin-inline-end: var(--twe-space-2);
  border-radius: var(--twe-radius-pill); background: var(--twe-accent-dim); color: var(--twe-text); font-size: var(--twe-text-sm);
}
.v-checkin__cam { position: relative; aspect-ratio: 4 / 3; max-block-size: 16rem; overflow: hidden; border-radius: var(--twe-radius-md); background: var(--twe-bg-inset); }
.v-checkin__cam video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.v-checkin__cam[hidden] { display: none; }
.v-checkin__badge, .v-checkin__picked {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--twe-space-3); padding: var(--twe-space-3);
  border: var(--twe-border-width) solid var(--twe-border); border-radius: var(--twe-radius-md); background: var(--twe-bg-inset);
}
.v-checkin__badge[data-state='void'] { border-color: var(--twe-danger); }
.v-checkin__no { font-family: var(--twe-font-mono); font-size: var(--twe-text-2xl); letter-spacing: 0.08em; }
.v-manual .v-checkin__search { font-family: inherit; letter-spacing: normal; text-transform: none; }
.v-checkin__results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--twe-space-1); max-block-size: 22rem; overflow: auto; }
.v-checkin__hit {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--twe-space-2); padding: var(--twe-space-3);
  border-radius: var(--twe-radius-md); color: var(--twe-text); text-decoration: none; min-block-size: 2.75rem;
}
.v-checkin__hit:hover, .v-checkin__hit:focus-visible { background: var(--twe-accent-dim); }
.v-checkin__walkin summary { list-style: none; inline-size: max-content; cursor: pointer; }
.v-checkin__walkin summary::-webkit-details-marker { display: none; }
.v-checkin__walkin[open] summary { margin-block-end: var(--twe-space-3); }
.v-checkin__done { border-inline-start: calc(var(--twe-border-width) * 3) solid var(--twe-ok); }
.v-pin { font-size: var(--twe-text-2xl); letter-spacing: 0.4em; text-align: center; }

/* ---------------------------------------------------------- device links -- */
.v-links { display: grid; gap: var(--twe-space-4); grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }
.v-link-card {
  display: flex; gap: var(--twe-space-3); align-items: flex-start; padding: var(--twe-space-3);
  border: var(--twe-border-width) solid var(--twe-border); border-radius: var(--twe-radius-md);
}
.v-link-card img { flex: none; inline-size: 9.25rem; block-size: 9.25rem; background: var(--twe-brand-paper); border-radius: var(--twe-radius-sm); }

/* ------------------------------------------------------ blank badge sheet -- */
.v-badge--blank img { inline-size: 10rem; block-size: 10rem; }
.v-badge__lines { flex: 1 1 auto; gap: var(--twe-space-1); }
.v-badge__line { display: block; block-size: 1.6rem; border-block-end: calc(var(--twe-border-width) * 2) solid var(--twe-brand-navy-deep); }
.v-badge__no { margin-block-start: var(--twe-space-2); font-family: var(--twe-font-mono); font-size: var(--twe-text-lg); letter-spacing: 0.06em; }
.v-badge .v-fine { color: var(--twe-brand-steel); }
