/* Hallmark · shape: app screen · genre: atmospheric · theme: Refract (deal 3/3, seed administraci-condominio-las-gaviotas-74ae·f448b3d7·2026-12-01·r0)
 * nav: top bar, hash tabs, role pill and sign-out at the edge; unit + PIN sign-in before the app · signature: the dues ledger, units by twelve months, paid months filled with pool water · states: loading, empty, error, full · refract: water/pool
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, the light canvas is left out on an app screen; the water lives only in the ledger's paid cells and the tinted shadows */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.875rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem;
  --text-display: 1.728rem; --text-section: 1.2rem; --text-title: 1rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;
  --color-error: oklch(52% 0.19 27); --color-error-soft: oklch(95.5% 0.03 27); --color-success: oklch(50% 0.12 150);
  --container: 1280px; --gutter: 48px;
  --z-sticky-nav: 300; --z-toast: 500;
  --color-paper: oklch(98.2% 0.006 95); --color-paper-2: oklch(96.4% 0.006 95); --color-paper-3: oklch(93.6% 0.008 95);
  --color-ink: oklch(23% 0.035 245); --color-ink-2: oklch(36% 0.035 245); --color-muted: oklch(50% 0.025 240);
  --color-rule: oklch(89.5% 0.008 230); --color-rule-2: oklch(93.5% 0.006 230);
  --color-accent: oklch(50% 0.12 234); --color-accent-hi: oklch(44% 0.12 236); --color-accent-ink: oklch(99% 0.003 95); --color-accent-soft: oklch(94% 0.025 220); --color-focus: oklch(56% 0.14 234);
  --color-shade: oklch(86% 0.05 212); --color-shade-2: oklch(74% 0.07 220); --color-light: oklch(99.7% 0.004 95);
  --color-skeleton: oklch(94.5% 0.008 220);
  --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.9), inset 0 0 0 1px oklch(100% 0 0 / 0.55);
  --shadow-card: 18px 28px 48px -26px oklch(52% 0.09 220 / 0.38), 2px 3px 6px -2px oklch(40% 0.05 230 / 0.12);
  --shadow-cast: 28px 40px 70px -30px oklch(60% 0.11 212 / 0.45);
  --font-display: "Funnel Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 22px; --radius-inner: 12px; --radius-tag: 6px; --radius-pill: 999px;
  --tracking-display: -0.032em; --display-weight: 400;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: 96px; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink); }
h1 { font-size: var(--text-display); } h2 { font-size: var(--text-section); } h3 { font-size: var(--text-title); line-height: 1.25; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; max-width: 65ch; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* top bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: 1px solid var(--color-rule); }
.bar .container { display: flex; align-items: center; gap: var(--space-lg); min-height: 64px; }
.mark { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: var(--space-xs); }
.mark svg { width: 22px; height: 22px; color: var(--color-accent); }
.tabs { display: flex; gap: var(--space-2xs); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); text-decoration: none; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.tabs a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.tabs a[aria-current="page"] { background: var(--color-accent-soft); color: var(--color-accent-hi); }
.role { flex: none; font-size: var(--text-xs); color: var(--color-muted); padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-tag); white-space: nowrap; }

main { padding-block: var(--space-xl) var(--space-3xl); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.head p { color: var(--color-muted); margin-top: var(--space-2xs); }
.head .tools { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 500; font-size: var(--text-sm); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--edge-light); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: var(--color-light); color: var(--color-ink); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn--quiet[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-accent-hi); box-shadow: inset 0 0 0 1px var(--color-shade-2); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.link { background: none; border: 0; padding: var(--space-2xs) var(--space-3xs); min-height: 32px; color: var(--color-muted); font-size: var(--text-sm); cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule); border-radius: 6px; }
.link:hover { color: var(--color-ink); text-decoration-color: currentColor; }
.link--danger:hover { color: var(--color-error); }
.seg { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-3); gap: var(--space-3xs); }
.seg button { min-height: 34px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; font-size: var(--text-sm); color: var(--color-ink-2); }
.seg button:hover { color: var(--color-ink); }
.seg button[aria-pressed="true"] { background: var(--color-light); color: var(--color-ink); box-shadow: var(--shadow-card); }

/* surfaces */
.clear { background: var(--color-light); border-radius: var(--radius-card); box-shadow: var(--edge-light), var(--shadow-card); padding: var(--space-lg); }
.clear + .clear, .stack-gap > * + * { margin-top: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; margin-top: var(--space-lg); }
.grid-2 > .clear + .clear { margin-top: 0; }
@media (max-width: 60rem) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* figures */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 var(--space-lg); border-top: 1px solid var(--color-rule); }
.figs > div { padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-bottom: 1px solid var(--color-rule); }
.figs > div + div { padding-left: var(--space-lg); border-left: 1px solid var(--color-rule-2); }
.figs dt { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.figs dd { margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); letter-spacing: var(--tracking-display); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 40rem) { .figs { grid-template-columns: minmax(0, 1fr); } .figs > div + div { padding-left: 0; border-left: 0; } }

/* forms */
form.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--space-md); align-items: start; }
form.fields .wide { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2xs); }
.field label, .field legend { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field small { min-height: 1lh; font-size: var(--text-xs); color: var(--color-muted); }
.field small.bad { color: var(--color-error); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 40px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-inner); background: var(--color-light); font-size: var(--text-md); transition: border-color var(--dur-micro) var(--ease-out); }
input:hover, select:hover, textarea:hover { border-color: var(--color-shade-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--color-error); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: var(--space-xs); align-items: center; min-height: 40px; font-size: var(--text-sm); }
.check input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.form-actions { grid-column: 1 / -1; display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-md); }
.panel-title p { color: var(--color-muted); font-size: var(--text-sm); }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { text-align: left; font-weight: 500; color: var(--color-muted); white-space: nowrap; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
td { padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: 1px solid var(--color-rule-2); vertical-align: middle; }
th.r, td.r { text-align: right; }
td.act { text-align: right; width: 1%; white-space: nowrap; }
.pos { color: var(--color-success); } .neg { color: var(--color-ink); }
@media (max-width: 37.5rem) {
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: var(--space-xs); border-bottom: 1px solid var(--color-rule-2); }
  .stack td { border: 0; padding: var(--space-2xs) 0 var(--space-2xs) 8em; text-align: left; display: flow-root; }
  .stack td::before { content: attr(data-l); float: left; width: 7.5em; margin-left: -8em; color: var(--color-muted); }
  .stack td:empty { display: none; }
  .stack td.act { width: auto; }
}

/* the ledger */
.ledger-wrap { box-shadow: var(--edge-light), var(--shadow-cast); padding: var(--space-lg) var(--space-lg) var(--space-md); }
.ledger { min-width: 760px; font-size: var(--text-sm); }
.ledger th, .ledger td { padding: var(--space-2xs) var(--space-3xs); border: 0; text-align: center; }
.ledger thead th { padding-bottom: var(--space-xs); }
.ledger th[scope="row"] { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--color-light); padding-right: var(--space-sm); color: var(--color-ink); font-weight: 500; min-width: 9rem; }
.ledger th[scope="row"] span { display: block; font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger td.owe { text-align: right; padding-left: var(--space-sm); font-weight: 500; }
.cell { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 3.25rem; min-height: 40px; padding: 0 var(--space-2xs); border: 0; border-radius: 10px; background: var(--color-paper-2); color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
button.cell { cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
button.cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.cell.paid { background: var(--color-shade); color: var(--color-ink); box-shadow: var(--edge-light); }
.cell.part { background: linear-gradient(to top, var(--color-shade) 50%, var(--color-accent-soft) 50%); color: var(--color-ink); }
.cell.due { background: var(--color-error-soft); color: var(--color-error); }
.cell.future { background: transparent; box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.cell.now { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend i { width: 18px; height: 12px; border-radius: 4px; display: inline-block; }

/* bars */
.bars { display: grid; gap: var(--space-sm); }
.bars .row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.bars .track { height: 12px; border-radius: var(--radius-pill); background: var(--color-paper-3); overflow: hidden; }
.bars .fill { height: 100%; border-radius: var(--radius-pill); background: var(--color-shade-2); }

/* lists */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); }
.notes li:first-child { padding-top: 0; }
.notes .meta { font-size: var(--text-xs); color: var(--color-muted); }
.notes .body { grid-column: 1 / -1; white-space: pre-wrap; color: var(--color-ink-2); max-width: 70ch; }
.pin { font-size: var(--text-xs); color: var(--color-accent-hi); background: var(--color-accent-soft); padding: 1px var(--space-xs); border-radius: var(--radius-tag); margin-left: var(--space-xs); vertical-align: 2px; font-family: var(--font-body); letter-spacing: 0; }
.lanes li { grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; }
.lanes .when { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lanes .when small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0; }
.lanes li.next { background: linear-gradient(90deg, var(--color-accent-soft), transparent 70%); border-radius: var(--radius-inner); margin-inline: calc(-1 * var(--space-sm)); padding: var(--space-md) var(--space-sm); }
@media (max-width: 37.5rem) { .lanes li { grid-template-columns: minmax(0, 1fr) auto; } .lanes .what { grid-column: 1 / -1; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }

/* states */
.state { padding: var(--space-xl) var(--space-md); text-align: center; color: var(--color-muted); display: grid; gap: var(--space-sm); justify-items: center; }
.state strong { color: var(--color-ink); font-weight: 500; }
.state.err strong { color: var(--color-error); }
.sk { display: grid; gap: var(--space-xs); }
.sk i { display: block; height: 40px; border-radius: 10px; background: var(--color-skeleton); animation: pulse 1.4s var(--ease-out) infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.5; } }
.notice { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); border-radius: var(--radius-inner); background: var(--color-accent-soft); color: var(--color-ink); }
.notice.err { background: var(--color-error-soft); }

/* gate: sign-in and unit picker */
.gate { max-width: 40rem; margin: var(--space-xl) auto; text-align: left; }
.gate h1 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); }
.gate .lead { font-size: var(--text-lg); color: var(--color-ink-2); margin-bottom: var(--space-lg); }
.gate ol { margin: 0 0 var(--space-lg); padding-left: 1.4em; display: grid; gap: var(--space-sm); font-size: var(--text-lg); }
.gate .btn { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-md); }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.units button { min-height: 72px; border: 0; border-radius: var(--radius-inner); background: var(--color-light); box-shadow: var(--edge-light), var(--shadow-card); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.units button:hover { transform: translateY(-2px); background: var(--color-accent-soft); }
.units > .state, .units > .sk { grid-column: 1 / -1; }
.units button span { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-muted); }
.hello { font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.mine { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.mine .big { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.15; }
.mine .big.ok { color: var(--color-success); } .mine .big.owe { color: var(--color-error); }
.mine p { color: var(--color-muted); }
.foot { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }

/* document viewer */
dialog.viewer { width: calc(100% - 24px); max-width: 64rem; height: min(52rem, calc(100dvh - 24px)); max-height: none; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-cast); }
dialog.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog.viewer::backdrop { background: color-mix(in oklab, var(--color-ink) 45%, transparent); }
.vhead { display: flex; gap: var(--space-sm); align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.vhead h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhead div { display: flex; gap: var(--space-xs); flex: none; }
.vbody { overflow: auto; padding: var(--space-md); background: var(--color-paper-3); display: grid; gap: var(--space-md); align-content: start; justify-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vbody canvas, .vbody img { max-width: 100%; height: auto; background: var(--color-light); box-shadow: var(--shadow-card); border-radius: 4px; }

/* activity log */
.people { list-style: none; margin: 0; padding: 0; }
.people > li { border-bottom: 1px solid var(--color-rule-2); }
.people summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, minmax(4.5rem, auto)); gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-2xs); cursor: pointer; list-style: none; border-radius: var(--radius-inner); }
.people summary::-webkit-details-marker { display: none; }
.people summary:hover { background: var(--color-paper-2); }
.people summary small { display: block; color: var(--color-muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; }
.phdr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, minmax(4.5rem, auto)); gap: var(--space-sm); padding: var(--space-xs) var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-bottom: 1px solid var(--color-rule); }
.people .detail { padding: var(--space-xs) var(--space-md) var(--space-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
.people .detail h3 { margin-bottom: var(--space-xs); }
.people .detail ul { margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.people .detail li { padding: var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule-2); display: flex; justify-content: space-between; gap: var(--space-sm); }
@media (max-width: 45rem) {
  .phdr { display: none; }
  .people summary { grid-template-columns: minmax(0, 1fr) auto; }
  .people summary > :nth-child(n+3) { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-ink-2); }
  .people summary > [data-l]::before { content: attr(data-l) " "; color: var(--color-muted); }
  .people .detail { grid-template-columns: minmax(0, 1fr); }
}

/* PIN sign-in */
.pin-box { max-width: 22rem; }
.pin-input { width: 100%; min-height: 64px !important; text-align: center; font-family: var(--font-display) !important; font-size: var(--text-3xl) !important; letter-spacing: 0.4em; padding-left: 0.4em !important; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0; }
.keypad button { min-height: 64px; border: 0; border-radius: var(--radius-inner); background: var(--color-light); box-shadow: var(--edge-light), var(--shadow-card); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.keypad button:hover { background: var(--color-accent-soft); }
.keypad button:active { transform: translateY(1px); }
.keypad .k-small { font-family: var(--font-body); font-size: var(--text-sm); }
.gate .back { margin-bottom: var(--space-md); }
.gate .err-line { min-height: 1lh; color: var(--color-error); margin-bottom: var(--space-sm); }
.gate form.fields { grid-template-columns: minmax(0, 1fr); max-width: 26rem; }
.pin-shown { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.bar .out { flex: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: var(--space-lg); z-index: var(--z-toast); transform: translate(-50%, 0); display: flex; gap: var(--space-md); align-items: center; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); min-height: 52px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-light); box-shadow: var(--shadow-cast); font-size: var(--text-sm); max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -4px); }
.toast .btn--quiet { min-height: 36px; }
.toast:not(:has(button:not([hidden]))) { padding-right: var(--space-lg); }

@media (max-width: 60rem) { :root { --gutter: 24px; } .bar .container { flex-wrap: wrap; gap: var(--space-xs) var(--space-md); padding-block: var(--space-xs); } .tabs { order: 3; flex-basis: 100%; } .mark { flex: 1; } }
@media (max-width: 40rem) { :root { --gutter: 16px; } .bar .role { display: none; } .clear { padding: var(--space-md); } .tabs a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
