* {
  box-sizing: border-box;
}

html {
  color: var(--ink-body);
  background: var(--surface-soft);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  min-width: 20rem;
  margin: 0;
}

a {
  color: var(--brand-primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-primary-hover);
}

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  color: var(--on-primary);
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.page,
.site-nav__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 5.5rem;
  padding-block: 0.8rem;
}

.site-logo {
  /* The wordmark is 7.3:1, where the previous asset was 3.8:1 because it
     carried the tagline underneath. Widened so the MAXBOND letters stay the
     size they were rather than shrinking to fit the shorter box. */
  width: 12rem;
  height: auto;
}

.site-title {
  padding-left: 1rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  border-left: 1px solid var(--line);
}

.site-title span,
.heading-accent {
  color: var(--brand-primary);
}

.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  min-height: 3rem;
}

.site-nav a {
  padding-block: 0.8rem 0.65rem;
  color: var(--ink-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-accent);
}

.page {
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.page--narrow {
  width: min(100% - 2rem, 36rem);
}

h1,
h2,
h3 {
  margin-block: 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin-block: 0 1rem;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--brand-accent-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-muted);
}

.card {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card + .card {
  margin-top: 1.25rem;
}

/* Vertical rhythm between the blocks a page is built from.
 *
 * Spacing used to come only from `.card + .card`, so two cards were separated
 * but anything between them was not: a button row, a disclosure, or a bare
 * section wrapping a table all ended up touching their neighbours. `.page` is
 * the element the content block renders into, so these are exactly the page's
 * top-level pieces; nothing nested inside a card or a table cell is affected.
 * Headings and paragraphs are left out deliberately, because their own rhythm
 * is already right and widening it would loosen every page header. */
.page > section,
.page > .card,
.page > .page-head,
.page > details,
.page > .button-row,
.page > .table-scroll,
.page > .table-wrap,
.page > .grid,
.page > form,
.page > ul,
.page > ol {
  margin-bottom: 1.5rem;
}
.page > :last-child {
  margin-bottom: 0;
}

/* The same inside a card. A block following a paragraph had nothing to
   separate them, because `.note` and `.muted` carry no bottom margin — which
   is how a nested card ended up fused to the element above it. */
.card > * + .button-row,
.card > * + .table-scroll,
.card > * + .inline-form,
.card > * + .stack,
.card > * + .card,
.card > * + details,
.card > * + .qr-setup,
.card > * + h3 {
  margin-top: 1.25rem;
}

.clock-hero {
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  color: var(--on-accent);
  background: var(--brand-accent);
  border-radius: var(--radius-card);
}

.clock-hero h1,
.clock-hero p {
  color: inherit;
}

.clock-time {
  display: block;
  margin-block: 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 12vw, 6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack--compact {
  gap: 0.55rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink-body);
  background: var(--surface);
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-card);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.field {
  margin-bottom: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  color: var(--on-primary);
  background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-pill);
  font: 500 0.9rem/1 var(--font-sans);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
button:hover {
  color: var(--on-primary);
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.button--accent {
  color: var(--on-accent);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.button--accent:hover {
  color: var(--on-accent);
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
}

.button--secondary {
  color: var(--brand-primary);
  background: transparent;
  border-color: var(--brand-primary);
}

.button--secondary:hover {
  color: var(--on-primary);
  background: var(--brand-primary);
}

.button--danger {
  color: var(--danger);
  background: var(--surface);
  border-color: var(--danger);
}

.button--danger:hover {
  color: var(--surface);
  background: var(--danger);
}

.clock-actions .button,
.clock-actions button {
  min-width: min(100%, 10rem);
  min-height: 3rem;
}

.notice {
  margin-block: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--brand-primary);
  background: var(--surface-tint);
}

.notice--error {
  color: var(--danger);
  background: var(--danger-soft);
  border-left-color: var(--danger);
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list > li + li {
  margin-top: 0.55rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

caption {
  padding: 0.8rem;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

/* One table treatment across both hosts, matching the dashboard. */
th,
td {
  padding: 0.56rem 0.63rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink-muted);
  font-size: 0.79rem;
  font-weight: 650;
  white-space: nowrap;
}

td {
  vertical-align: middle;
}

.status-pill {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-met { color: var(--status-met-fg); background: var(--status-met-bg); }
.status-short { color: var(--status-short-fg); background: var(--status-short-bg); }
.status-absent,
.status-incomplete { color: var(--status-absent-fg); background: var(--status-absent-bg); }
.status-leave { color: var(--status-leave-fg); background: var(--status-leave-bg); }
.status-public_holiday { color: var(--status-ph-fg); background: var(--status-ph-bg); }
.status-rest { color: var(--status-rest-fg); background: var(--status-rest-bg); }
.status-working { color: var(--status-working-fg); background: var(--status-working-bg); }
.status-public-holiday { color: var(--status-ph-fg); background: var(--status-ph-bg); }
.status-not-yet { color: var(--status-not-yet-fg); background: var(--status-not-yet-bg); }
.status-worked { color: var(--status-worked-fg); background: var(--status-worked-bg); }
.status-future { color: var(--status-future-fg); background: var(--status-future-bg); }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.metric {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  background: var(--surface-tint);
  border-radius: var(--radius-card);
}

.metric dt {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.metric dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

code {
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.secret-code {
  padding: 1rem;
  color: var(--ink);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
  text-align: center;
}

.errorlist {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  color: var(--danger);
}

@media (max-width: 40rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-title {
    padding: 0;
    border: 0;
  }

  .site-nav__inner {
    gap: 1rem;
    overflow-x: auto;
  }

  .button-row > *,
  .clock-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* ---- Workforce dashboard ---- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  /* Spacing below comes from the page rhythm, so every top-level block is
     separated by the same amount rather than each setting its own. */
}

.kpis {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/* Eight tiles across one row leaves them cramped and strands the last on a
   row of its own. Four across, two deep, gives each number room. */
@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi b { font-family: var(--font-heading); font-size: 24px; line-height: 1.1; }
.kpi span { color: var(--ink-muted); font-size: 13px; }
.kpi--alert { border-color: var(--danger); }
.kpi--alert b { color: var(--danger); }

.table-scroll { overflow-x: auto; }
/* A wide table scrolls sideways, which used to carry the row's action button
   off the edge where it could not be reached without scrolling first. Pinning
   is opt-in per side: the name column on the left so you know whose row you
   are reading, and the action column on the right where one exists. A column
   of ordinary content is not pinned -- it should scroll with the rest. */
.table-scroll--pin-first,
.table-scroll--pin-last { position: relative; }
.table-scroll--pin-first .data-table th:first-child,
.table-scroll--pin-first .data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: 8px 0 8px -8px rgb(0 0 0 / 0.35);
}
.table-scroll--pin-last .data-table th:last-child,
.table-scroll--pin-last .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: -8px 0 8px -8px rgb(0 0 0 / 0.35);
}
.table-scroll--pin-first .data-table thead th:first-child,
.table-scroll--pin-last .data-table thead th:last-child { z-index: 3; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th {
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 650;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table .num { text-align: right; }
.data-table .strip-col { min-width: 320px; }
.cell-name { display: block; font-weight: 650; }
.cell-sub { display: block; color: var(--ink-muted); font-size: 12px; }
.axis-row td { border-bottom: 0; padding-top: 0; }

.flag-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.tone--good { color: var(--status-met-fg); }
.tone--fair { color: var(--status-short-fg); }
.tone--poor { color: var(--danger); }
.tone--muted { color: var(--ink-muted); }

/* Timeline strip: geometry comes from SVG attributes because the content
   security policy forbids inline styles. */
.strip { width: 100%; height: 24px; display: block; }
.strip--axis { height: 14px; }
.strip__track { fill: var(--surface-soft); }
.strip__flex { fill: var(--surface-tint); }
.strip__work { fill: var(--status-working-fg); }
.strip__break { fill: var(--status-short-fg); }
.strip__target { fill: var(--ink-muted); }
.strip__now { fill: var(--danger); }
.strip__tick { fill: var(--ink-muted); font-size: 10px; }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 12.5px;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend__swatch { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.legend__swatch--work { background: var(--status-working-fg); }
.legend__swatch--break { background: var(--status-short-fg); }
.legend__swatch--target { width: 2px; height: 14px; background: var(--ink-muted); }
.legend__swatch--now { width: 2px; height: 14px; background: var(--danger); }

.scell { text-align: center; font-weight: 650; }
.scell--ok { color: var(--status-met-fg); background: var(--status-met-bg); }
.scell--miss { color: var(--danger); background: var(--danger-soft); }
.scell--future { color: var(--ink-muted); }

.chart { width: 100%; height: 160px; display: block; }
.chart__bar { fill: var(--status-short-fg); }
.chart__bar--met { fill: var(--status-met-fg); }
.chart-labels {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.note { color: var(--ink-muted); font-size: 12.5px; margin: 12px 0 0; }
.field__help { color: var(--ink-muted); font-size: 13px; margin: 0 0 6px; max-width: 60ch; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Clock standing and PIN pad ---- */
.clock-standing .standing-line { margin: 0 0 8px; }
.standing-figure { margin: 8px 0 0; }
.notice--leave { border-left: 4px solid var(--status-leave-fg); }
.notice--clocked-in { border-left-color: var(--brand-accent); font-size: 1.05rem; }
.card--attention { border: 2px solid var(--brand-accent); }
.qr-setup { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.qr-setup > .setup-steps { flex: 1 1 20rem; }
/* One numbered sequence ending in the box that completes it, rather than a
   list and then a separate card repeating the idea of a last step. */
.setup-steps { margin: 0; padding-left: 1.25rem; }
.setup-steps > li { margin-bottom: 0.9rem; }
.setup-steps > li:last-child { margin-bottom: 0; }
.setup-steps .inline-form { margin-top: 0.75rem; }
.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.code-grid code {
  display: block;
  padding: 8px 10px;
  text-align: center;
  background: var(--surface-tint);
  border-radius: 8px;
  letter-spacing: 0.08em;
}
/* A QR code must be dark on light to scan, whatever theme the page is using. */
.qr { background: #fff; padding: 12px; border-radius: 8px; width: 232px; flex: 0 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }

.progress { width: 100%; height: 8px; display: block; margin: 10px 0 2px; }
.progress__track { fill: var(--surface-tint); }
.progress__fill { fill: var(--status-met-fg); }

.pinpad { margin: 14px 0; max-width: 280px; }
.pinpad__dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 12px;
}
.pinpad__dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}
.pinpad__dots i.is-on { background: var(--brand-primary); border-color: var(--brand-primary); }
.pinpad__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pinpad__key {
  min-height: 52px;
  font-size: 20px;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.pinpad__key:hover { background: var(--surface-tint); }
.pinpad__key--wide { font-size: 15px; }
.cell-wrap { white-space: normal; min-width: 200px; }
.review-form { display: flex; gap: 8px; align-items: center; }
.review-form input { width: 9rem; min-width: 8rem; }
/* A destructive action sits apart from the routine ones beside it, so it is
   not reached for by muscle memory. */
.button-row--split { justify-content: space-between; width: 100%; }
.button-row .button--danger { margin-left: auto; }
/* A disclosure used for reference text, so a page opens on its controls
   rather than on three paragraphs explaining them. */
.card--quiet { background: transparent; border-style: dashed; padding: 12px 16px; }
.card--quiet summary { cursor: pointer; font-weight: 650; }
.card--quiet[open] summary { margin-bottom: 8px; }
.card--quiet p:last-child { margin-bottom: 0; }

/* Show-password toggle. The button sits inside the field's box so the input
   keeps its full width and the control never covers typed characters. */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 4.5rem; }
.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 0;
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: var(--radius-pill);
  color: var(--brand-primary);
  background: transparent;
  border: 1px solid var(--line);
}
.password-field__toggle:hover { background: var(--surface-tint); }

.theme-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-muted); }

/* Tab-style host navigation, matching the prototype's information architecture. */
.site-nav__inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__inner::-webkit-scrollbar { display: none; }
.site-nav__inner a {
  border-bottom: 3px solid transparent;
  padding: 10px 14px;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__inner a:hover { color: var(--ink); }
.site-nav__inner a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand-primary);
}

/* Horizontal average-hours chart */
.chart { width: 100%; height: auto; display: block; }
.chart__bar { fill: var(--status-short-fg); }
.chart__bar--met { fill: var(--status-met-fg); }
.chart__gridline { stroke: var(--line); stroke-width: 1; }
.chart__target {
  stroke: var(--danger);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.chart__name { fill: var(--ink); font-size: 14px; font-weight: 650; }
.chart__value { fill: var(--ink); font-size: 14px; font-weight: 700; }
.chart__axis { fill: var(--ink-muted); font-size: 12px; }
.legend__swatch--met { background: var(--status-met-fg); }
.legend__swatch--below { background: var(--status-short-fg); }
.legend__swatch--targetline { width: 2px; height: 14px; background: var(--danger); }

/* Product wordmark and the live policy line, as the mockup lays them out. */
.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.wordmark {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.site-tagline {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.site-host {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.site-host + .theme-toggle { margin-left: 0.75rem; }

@media (max-width: 48rem) {
  .site-brand { padding-left: 0; border-left: 0; }
  .site-tagline { display: none; }
}

/* Inline entry forms and toolbars.
   Fields are label-over-control; the submit button has no label, so the row
   aligns on its end edge to keep buttons level with the inputs beside them. */
.inline-form,
.toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}
.field--inline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  min-width: 9rem;
  flex: 0 1 auto;
}
.field--inline label {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink-muted);
  font-weight: 650;
  white-space: nowrap;
}
/* The free-text field in an entry row takes the slack so the button is not
   pushed onto its own line. */
.field--inline.field--grow { flex: 1 1 16rem; min-width: 12rem; }
.inline-form > button,
.toolbar__group > button { flex: 0 0 auto; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.toolbar__group {
  position: relative;
  padding: 1.5rem 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.toolbar__title {
  position: absolute;
  top: 0.45rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.button--small {
  min-height: 2.1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
}

/* One-time PIN reveal */
.pin-reveal { border-left: 4px solid var(--brand-accent); }
.pin-reveal__code {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  margin: 0.3rem 0;
  color: var(--ink);
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}
