@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --floor: #f2f3f5;
  --ink: #17181c;
  --slate: #5f6672;
  --line: #e3e5e9;
  --line-strong: #c9cdd4;
  --focus: #2f6be8;
  --good: #15803d; --good-tint: #e3f6ea; --good-ink: #0f5e2e;
  --hold: #b45309; --hold-tint: #fdf1dc; --hold-ink: #7c3a06;
  --stop: #b91c1c; --stop-tint: #fbe5e5; --stop-ink: #8a1515;
  --mute-tint: #eceef1;
  --hover: #f7f8fa;
  --shadow: 0 1px 2px rgba(23, 24, 28, .06), 0 8px 24px rgba(23, 24, 28, .08);
  --r-card: 12px; --r-ctl: 8px; --r-pill: 999px;
  --nav-w: 248px; --nav-w-min: 68px;
  --font: "Plex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--floor); color: var(--ink); font: 400 16px/1.5 var(--font); min-height: 100dvh; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
th { text-align: left; font-weight: 500; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::placeholder { color: #6b717c; opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* Type helpers */
.page-title { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.page-sub { color: var(--slate); font-size: 15px; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-sub .icon { width: 16px; height: 16px; }
.h2 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }
.muted { color: var(--slate); }
.meta { color: var(--slate); font-size: 13px; line-height: 1.45; }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.prose { max-width: 64ch; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }

/* App shell */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100dvh; }
.nav { background: var(--paper); border-right: 1px solid var(--line); min-width: 0; }
.nav-inner { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 16px 12px; gap: 12px; }
.nav-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; border-radius: var(--r-ctl); padding: 0 4px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.brand-mark .icon { width: 20px; height: 20px; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-collapse { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-ctl); color: var(--slate); cursor: pointer; border: 1px solid var(--line); flex: none; text-decoration: none; }
.nav-collapse:hover { background: var(--floor); color: var(--ink); }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-link:hover { background: var(--floor); }
.nav-link[aria-current="page"] { background: var(--mute-tint); }
.nav-link .icon { color: var(--slate); }
.nav-link[aria-current="page"] .icon { color: var(--ink); }
.nav-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.sample { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--hold-ink); background: var(--hold-tint); border-radius: var(--r-pill); padding: 3px 10px; margin: 0 4px; white-space: nowrap; }
.sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hold); }
.me { display: flex; align-items: center; gap: 10px; padding: 2px 4px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mute-tint); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; text-transform: uppercase; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; flex: 1; }
.who { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font-size: 12px; color: var(--slate); }
.me-out { margin: 0; flex: none; }
.account { position: relative; flex: 1; min-width: 0; }
.account-btn { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px; border-radius: var(--r-ctl); cursor: pointer; min-width: 0; }
.account-btn::-webkit-details-marker { display: none; }
.account-btn:hover, .account[open] .account-btn { background: var(--floor); }
.account-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: 272px; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.account-menu form { margin: 0; }
.account-email { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; margin-top: -6px; }
.account-role { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--floor); font-size: 14px; }
.account-role .icon { width: 18px; height: 18px; margin-top: 1px; }
.me-out .btn { width: 40px; min-height: 40px; padding: 0; color: var(--slate); }

.app.is-min { grid-template-columns: var(--nav-w-min) minmax(0, 1fr); }
.app.is-min .nav-inner { padding-left: 12px; padding-right: 12px; align-items: center; }
.app.is-min .brand-name,
.app.is-min .nav-link span,
.app.is-min .me-text,
.app.is-min .sample { display: none; }
.app.is-min .nav-brand { flex-direction: column; align-items: center; gap: 8px; }
.app.is-min .nav-links { width: 100%; }
.app.is-min .nav-link { justify-content: center; padding: 0; }
.app.is-min .nav-foot { align-items: center; width: 100%; }
.app.is-min .me { flex-direction: column; padding: 0; }
.app.is-min .account { flex: none; }

.work { min-width: 0; padding: 28px 32px 56px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head-main { min-width: 0; }
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 6px -6px; padding: 0 8px 0 4px; border-radius: 6px; color: var(--slate); font-size: 14px; font-weight: 500; text-decoration: none; }
.crumb:hover { background: var(--paper); color: var(--ink); }
.crumb .icon { width: 16px; height: 16px; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.work-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-body { display: flex; flex-direction: column; gap: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cols-wide { grid-template-columns: minmax(0, 1fr) 320px; }
.main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabbar { display: none; }

/* Cards and panels */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card-float { background: var(--paper); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .meta { font-size: 13px; }
.card-flush { padding: 0; overflow: clip; }
.card-flush > .card-head { padding: 16px 20px 0; margin-bottom: 12px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.card-sub { margin-top: -8px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--slate); }
.kv dd { font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid transparent; font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; background: var(--paper); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #2c2e35; border-color: #2c2e35; }
.btn-secondary { border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--floor); }
.btn-ghost { background: transparent; color: var(--slate); padding: 0 10px; }
.btn-ghost:hover { background: var(--floor); color: var(--ink); }
.btn-danger { background: transparent; color: var(--stop); border-color: transparent; }
.btn-danger:hover { background: var(--stop-tint); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { background: var(--mute-tint); color: #6b717c; border-color: var(--mute-tint); cursor: not-allowed; }
.btn-primary[disabled]:hover { background: var(--mute-tint); }
.confirm-form { margin: 0; }
.confirm-form button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; }
.confirm-form button:hover { background: #2c2e35; }
.confirm-form button:disabled { background: var(--mute-tint); color: #6b717c; border-color: var(--mute-tint); cursor: not-allowed; }
.confirm-form-sm button { width: auto; min-height: 36px; font-size: 14px; font-weight: 500; }

/* Chips, dots, tags */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1.2; background: var(--mute-tint); color: var(--ink); white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip-good { background: var(--good-tint); color: var(--good-ink); }
.chip-hold { background: var(--hold-tint); color: var(--hold-ink); }
.chip-stop { background: var(--stop-tint); color: var(--stop-ink); }
.chip-mute { background: var(--mute-tint); color: var(--slate); }
.chip-line { background: var(--paper); border: 1px solid var(--line); color: var(--slate); }
.chip-code { font-variant-numeric: tabular-nums; font-weight: 500; background: var(--floor); color: var(--slate); border: 1px solid var(--line); min-height: 22px; font-size: 12px; padding: 0 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); flex: none; }
.dot-good { background: var(--good); }
.dot-hold { background: var(--hold); }
.dot-stop { background: var(--stop); }
.dot-mute { background: #b4b9c2; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate); white-space: nowrap; }
.tag .icon { width: 12px; height: 12px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 500; }
.hint { font-size: 13px; color: var(--slate); font-weight: 400; }
.input, .select, .field select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--paper); font-size: 16px; }
.input:hover, .select:hover, .field select:hover, .textarea:hover { border-color: #a9afb9; }
.input:focus-visible, .select:focus-visible, .field select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input[readonly] { background: var(--floor); color: var(--slate); }
.select, .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-size: 5px 5px, 5px 5px; background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-repeat: no-repeat; }
.textarea { resize: vertical; line-height: 1.5; }
.textarea-msg { min-height: 188px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--stop); }
.file { display: block; width: 100%; min-height: 44px; padding: 7px 8px; border: 1px dashed var(--line-strong); border-radius: var(--r-ctl); background: var(--floor); font-size: 14px; color: var(--slate); }
.file::file-selector-button { font: inherit; font-weight: 500; min-height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); margin-right: 10px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.form-actions-end { justify-content: flex-end; }
.inline-form { display: inline; margin: 0; }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.notice > .icon { margin-top: 1px; width: 18px; height: 18px; }
.notice-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.notice-ok { background: var(--good-tint); border-color: transparent; color: var(--good-ink); }
.notice-hold { background: var(--hold-tint); border-color: transparent; color: var(--hold-ink); }
.notice-stop { background: var(--stop-tint); border-color: transparent; color: var(--stop-ink); }
.notice .strong { font-weight: 600; }
.notice ul { padding-left: 18px; list-style: disc; }
.notice .btn { margin-top: 6px; align-self: flex-start; }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 32px 28px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--paper); }
.empty-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--floor); display: grid; place-items: center; color: var(--slate); margin-bottom: 6px; }
.empty-title { font-size: 18px; font-weight: 600; }
.empty .meta { max-width: 52ch; font-size: 14px; }
.empty .row { margin-top: 10px; }
.empty-flat { border: 0; padding: 28px 20px; }

/* Tables */
.table-wrap { overflow: visible; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--paper); font-size: 13px; color: var(--slate); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table th.num, .table td.num { text-align: right; }
.table .k { display: none; }
.table .cell-main { font-weight: 500; font-size: 15px; }
.table .cell-sub { color: var(--slate); font-size: 13px; }
.table tr.is-out td:first-child { box-shadow: inset 3px 0 0 var(--stop); }
.table tr.is-out .cell-main { color: var(--slate); }

/* Lists of tickets */
.list { display: flex; flex-direction: column; }
.list-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 20px; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; min-height: 60px; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--hover); }
.list-row .cell-main { font-weight: 500; }
.list-row .cell-sub { color: var(--slate); font-size: 13px; }
.list-row .cell-when { color: var(--slate); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row > .icon { color: #9aa0ab; }
.day-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.day-row:first-child { border-top: 0; }
.day-row .who-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-row .cell-main { font-weight: 500; text-decoration: none; }
.day-row .cell-main:hover { text-decoration: underline; text-underline-offset: 3px; }
.day-row .day-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.day-row .reasons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.day-row .reasons a { text-decoration: none; }
.day-row .reasons a:hover .chip { text-decoration: underline; }
.chip-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty-row { padding: 0 20px 18px; }
.day-pick { flex-wrap: nowrap; }
.day-pick .input { width: 176px; }

/* The ticket ledger */
.ledger table { table-layout: fixed; }
.ledger th { position: sticky; top: 0; z-index: 1; background: var(--paper); font-size: 13px; color: var(--slate); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 14px 16px 12px; vertical-align: top; font-size: 15px; border-top: 1px solid var(--line); }
.ledger tbody:first-of-type td { border-top: 0; }
.ledger tbody:hover td { background: var(--hover); }
.ledger .col-state { width: 148px; }
.ledger .col-qty { width: 64px; }
.ledger .col-unit { width: 84px; }
.ledger .col-price { width: 120px; }
.ledger th.num { text-align: right; }
.ledger .raw { font-weight: 500; }
.replaces { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; font-size: 13px; color: var(--slate); }
.replaces .icon { margin-top: 2px; }
.ledger .item { font-weight: 500; }
.ledger .item-sub { color: var(--slate); font-size: 13px; margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ledger .cell-qty, .ledger .cell-price { text-align: right; font-variant-numeric: tabular-nums; }
.ledger .k { display: none; }
.price-stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ledger .blank { color: #6b717c; }
.ledger .line-body td { padding-top: 0; border-top: 0; }
.ledger tbody:has(.line-body) .line-head td { padding-bottom: 6px; }
.ledger .line-body .inner { display: flex; flex-direction: column; gap: 12px; padding: 2px 0 6px; }
.ledger tbody.is-quiet td { color: var(--slate); }
.ledger tbody.is-quiet .raw { text-decoration: line-through; text-decoration-color: #b4b9c2; }
.ledger tbody:target td { background: #eef3fd; }
.ledger-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choices-label { font-size: 13px; color: var(--slate); }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-row form { margin: 0; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font-size: 14px; font-weight: 500; text-align: left; }
.choice:hover { border-color: var(--ink); }
.choice .icon { width: 16px; height: 16px; color: var(--slate); }
.choice-pack { color: var(--slate); font-weight: 400; white-space: nowrap; }
.choice .money { color: var(--ink); }
.subs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); }
.sub-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.sub-opt:first-child { border-top: 0; }
.sub-opt .sub-name { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-opt .sub-pack { color: var(--slate); font-weight: 400; }
.sub-opt .money { text-align: right; }
.opt-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.opt-n.opt-out { background: var(--mute-tint); color: var(--slate); }
.sub-opt.is-out .sub-name, .sub-opt.is-out .money { color: var(--slate); }
.add-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.line-tools { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: flex-start; }
.line-tools > details[open] { flex-basis: 100%; order: 1; }
.field-error { color: var(--stop-ink); font-size: 14px; font-weight: 500; padding: 4px 0; }
.notice-link { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.row-edit summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; margin-left: -10px; border-radius: 6px; color: var(--slate); font-size: 14px; font-weight: 500; cursor: pointer; }
.row-edit summary::-webkit-details-marker { display: none; }
.row-edit summary:hover { background: var(--floor); color: var(--ink); }
.row-edit summary .icon { width: 16px; height: 16px; transition: transform 120ms ease; }
.row-edit[open] summary .icon { transform: rotate(90deg); }
.row-edit .edit-body { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 8px 0 4px; }
.row-edit .edit-body form { margin: 0; }
.edit-fields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.edit-fields .field { width: 120px; }
.unit-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--hold-tint); color: var(--hold-ink); font-size: 14px; }
.unit-ask form { margin: 0; }
.unit-ask .btn { background: var(--paper); }
.unit-ask-plain { display: block; }
.removed summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--slate); font-size: 14px; font-weight: 500; border-top: 1px solid var(--line); }
.removed summary::-webkit-details-marker { display: none; }
.removed summary:hover { color: var(--ink); background: var(--hover); }
.removed summary .icon { width: 16px; height: 16px; transition: transform 120ms ease; }
.removed[open] summary .icon { transform: rotate(90deg); }

/* Next step card */
.next { display: flex; flex-direction: column; gap: 14px; }
.next-head { display: flex; align-items: flex-start; gap: 12px; }
.next-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--mute-tint); color: var(--ink); }
.next-mark-good { background: var(--good-tint); color: var(--good); }
.next-mark-hold { background: var(--hold-tint); color: var(--hold); }
.next-mark-stop { background: var(--stop-tint); color: var(--stop); }
.next-kicker { font-size: 13px; color: var(--slate); }
.next-title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.next-say { font-size: 14px; color: var(--slate); }
.blockers { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.blocker { display: grid; grid-template-columns: 8px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; font-size: 14px; border-top: 1px solid var(--line); margin: 0; }
.blocker:first-child { border-top: 0; }
a.blocker:hover { background: var(--hover); }
.blocker .b-why { font-weight: 500; }
.blocker .b-what { display: block; color: var(--slate); font-size: 13px; margin-top: 1px; }
.blocker > .icon { width: 16px; height: 16px; color: #9aa0ab; }
.next-actions { display: flex; flex-direction: column; gap: 8px; }
.next-actions form { margin: 0; }
.next-actions .btn { width: 100%; }
.next-foot { font-size: 13px; color: var(--slate); }
.next-links { display: flex; gap: 4px 16px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.next-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; color: var(--slate); text-decoration: none; font-weight: 500; }
.next-links a:hover { color: var(--ink); }
.next-links .icon { width: 16px; height: 16px; }
.next-links .btn-link { min-height: 32px; padding: 0; font-size: 14px; color: var(--slate); }
.next-links .btn-link:hover { background: transparent; color: var(--ink); }

/* The message thread with the chef */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.bubble { border-radius: 18px; padding: 10px 14px; white-space: pre-wrap; font-size: 15px; line-height: 1.45; max-height: 280px; overflow: auto; }
.msg-in .bubble { background: var(--floor); border-bottom-left-radius: 6px; }
.msg-out .bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg-out.is-old .bubble { background: var(--mute-tint); color: var(--slate); }
.msg-meta { font-size: 12px; color: var(--slate); padding: 0 6px; }
.composer { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.composer form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.composer .textarea { min-height: 96px; border-radius: 14px; }
.composer-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.next .composer-form .btn { width: 100%; }

/* The ask step */
.ask-phone { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-card); background: var(--floor); }
.ask-to { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ask-to .avatar { background: var(--paper); }
.ask-bubble { field-sizing: content; display: block; width: 100%; min-height: 120px; padding: 14px 16px; border: 0; border-radius: 20px; border-bottom-right-radius: 6px; background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1.5; resize: none; }
.ask-bubble:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ask-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-note { font-size: 14px; color: var(--good-ink); min-height: 1.45em; }
.copy-note:empty { display: none; }
.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; }
.step::before { counter-increment: step; content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mute-tint); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step { position: relative; }
.step.is-done::before { content: ""; background: var(--good-tint); }
.step.is-done::after { content: ""; position: absolute; left: 10px; top: 7px; width: 7px; height: 12px; border: solid var(--good); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.step.is-done .step-title { color: var(--slate); text-decoration: line-through; text-decoration-color: #b4b9c2; }
.step-title { font-weight: 500; }
.step-link { align-items: center; }
.step-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 8px; margin: -4px -8px; border-radius: var(--r-ctl); text-decoration: none; }
.step-row:hover { background: var(--floor); }
.step-row > span { display: flex; flex-direction: column; }
.step-row > .icon { width: 16px; height: 16px; color: #9aa0ab; }
.step .meta { margin-top: 2px; }

/* Paste card */
.paste { display: flex; flex-direction: column; gap: 16px; }
.paste-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.examples .chip { font-weight: 400; background: var(--floor); color: var(--slate); }

/* Skeletons */
.skel { background: linear-gradient(90deg, var(--mute-tint), #f6f7f9, var(--mute-tint)); background-size: 200% 100%; border-radius: 6px; height: 14px; animation: shimmer 1.4s ease-in-out infinite; }
.skel-lg { height: 22px; width: 40%; }
.skel-row { display: grid; grid-template-columns: 110px 1.2fr 1fr 60px 90px; gap: 16px; padding: 18px 16px; border-top: 1px solid var(--line); }
.skel-row:first-child { border-top: 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Login and other bare pages */
.bare { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 24px 16px; }
.bare-card { width: 100%; max-width: 400px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.bare-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bare-brand .brand { padding: 0; }
.bare-card form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.bare-card .btn { width: 100%; }
.bare-foot { padding: 16px; font-size: 13px; color: var(--slate); text-align: center; }
.bare-split { display: grid; grid-template-columns: 400px 440px; gap: 56px; align-items: center; }
.bare-split-single { grid-template-columns: minmax(0, 400px); }
.preview { display: flex; flex-direction: column; gap: 18px; }
.preview-msg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.preview-from { font-size: 13px; color: var(--slate); }
.preview-msg .bubble { background: var(--paper); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(23, 24, 28, .06); }
.preview-ticket { background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: clip; }
.preview-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.preview-row:first-child { border-top: 0; }
.preview-item { font-weight: 500; }
.preview-note { font-size: 13px; color: var(--slate); }
.preview-points { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--slate); }
.preview-points li { display: flex; align-items: center; gap: 10px; }
.preview-points .icon { width: 18px; height: 18px; color: var(--ink); }
@media (max-width: 960px) { .bare-split { grid-template-columns: minmax(0, 400px); } .preview { display: none; } }

/* Audit timeline */
.timeline { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.event-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--floor); color: var(--slate); }
.event-mark .icon { width: 18px; height: 18px; }
.event-mark-good { background: var(--good-tint); color: var(--good); }
.event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-head h2 { font-weight: 600; font-size: 15px; }
.event-when { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }
.event-body { margin-top: 8px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.event-body .bubble { max-width: 560px; }
.event .msg-out .bubble { background: var(--mute-tint); color: var(--ink); }
.change { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.change .from { color: var(--slate); text-decoration: line-through; text-decoration-color: #b4b9c2; }
.change .icon { width: 14px; height: 14px; color: #9aa0ab; }
.mini-lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.mini-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.mini-line:first-child { border-top: 0; }
.mini-line .ml-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-line .ml-src { grid-column: 1 / -1; font-size: 12px; color: var(--slate); }
.mini-line:target { background: #eef3fd; }

/* Book */
.book-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.book-tools form { display: contents; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Customers */
.cust { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.cust-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cust-name { font-size: 17px; font-weight: 600; }
.cust-facts { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; color: var(--slate); margin-top: 2px; }
.cust-facts span { display: inline-flex; align-items: center; gap: 6px; }
.cust-facts .icon { width: 15px; height: 15px; }
.names { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.name-row:first-child { border-top: 0; }
.name-row:target { background: #eef3fd; }
.name-phrase { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; flex-wrap: wrap; }
.name-phrase .icon { width: 16px; height: 16px; color: #9aa0ab; }
.name-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.name-edit form { display: flex; gap: 8px; align-items: center; margin: 0; }
.name-edit .input { width: 176px; min-height: 40px; padding: 8px 10px; }
.name-edit .btn { min-height: 40px; }
.add-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.add-name-wide { grid-template-columns: minmax(0, 1fr); }
.details-plain summary { list-style: none; cursor: pointer; }
.details-plain summary::-webkit-details-marker { display: none; }
.details-plain[open] summary .btn { background: var(--floor); }
.details-plain .details-body { padding-top: 14px; }
.jump { display: flex; flex-direction: column; }
.jump a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 10px; margin: 0 -10px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; }
.jump a:hover { background: var(--floor); }
.jump .meta { font-weight: 400; }

/* The recall check (openFDA) */
.recall { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--slate); }
.recall h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.recall h3 { font-size: 14px; font-weight: 600; color: var(--ink); text-transform: capitalize; margin-top: 4px; }
.recall ul { display: flex; flex-direction: column; gap: 8px; }
.recall li { padding: 10px 12px; border-radius: var(--r-ctl); background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.recall section { display: flex; flex-direction: column; gap: 8px; }
.recall-hits { background: var(--paper); }
.recall-hits h2 { color: var(--ink); }
.recall-fold summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 10px; align-items: center; min-height: 44px; }
.recall-fold summary::-webkit-details-marker { display: none; }
.recall-fold summary > .icon { width: 16px; height: 16px; color: var(--slate); transition: transform 120ms ease; }
.recall-fold[open] summary > .icon { transform: rotate(90deg); }
.recall-sum { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 14px; }
.recall-sum > .icon { color: var(--hold); }
.recall-sum .icon { width: 18px; height: 18px; margin-top: 1px; }
.recall-sum .meta { display: block; margin-top: 2px; }
.recall-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.recall-mini { margin-top: 8px; }
.recall-mini summary { list-style: none; cursor: pointer; display: inline-flex; }
.recall-mini summary::-webkit-details-marker { display: none; }
.recall-mini .recall { margin-top: 10px; padding: 14px; border-radius: var(--r-ctl); background: var(--floor); max-width: 640px; }

/* Phone and narrow */
@media (max-width: 1180px) {
  .cols, .cols-wide { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side-first { order: -1; }
  .ticket > .side { display: contents; }
  .ticket > .side > .next-card { order: -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { position: sticky; top: 0; z-index: 5; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-inner { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 12px; overflow: visible; gap: 8px; }
  .nav-brand { padding: 0; }
  .nav-collapse, .nav-links, .nav-sep { display: none; }
  .nav-foot { margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 6px; }
  .sample { margin: 0; font-size: 12px; padding: 2px 8px; }
  .sample::before { display: none; }
  .brand-name { display: none; }
  .me-text { display: flex; }
  .me-text .who { display: none; }
  .me-role { font-size: 12px; font-weight: 500; color: var(--ink); }
  .account-btn { gap: 8px; padding: 4px 8px 4px 4px; }
  .account-menu { top: calc(100% + 8px); bottom: auto; left: auto; right: -52px; width: min(300px, calc(100vw - 24px)); }
  .me { padding: 0; gap: 2px; }
  .app.is-min { grid-template-columns: minmax(0, 1fr); }
  .app.is-min .sample { display: inline-flex; }
  .app.is-min .me-text { display: flex; }
  .app.is-min .nav-inner { align-items: center; padding: 8px 12px; }
  .app.is-min .nav-brand, .app.is-min .me { flex-direction: row; }
  .app.is-min .nav-foot { width: auto; }
  .work { padding: 20px 16px 112px; }
  .work-head { margin-bottom: 18px; align-items: flex-start; }
  .page-title { font-size: 22px; }
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 6; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 6px; gap: 2px; }
  .tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 14px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--slate); }
  .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tab .icon { width: 20px; height: 20px; }
  .tab[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .card, .card-float { padding: 16px; }
  .card-flush { padding: 0; }
  .card-flush > .card-head { padding: 14px 16px 0; }
  .card-foot { padding: 12px 16px; }
  .ledger thead { display: none; }
  .ledger table, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger tbody { border-top: 1px solid var(--line); padding: 14px 16px; }
  .ledger tbody:first-of-type { border-top: 0; }
  .ledger td { padding: 0; border: 0; }
  .ledger tbody:hover td { background: transparent; }
  .ledger .line-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "raw state" "item item" "nums nums"; gap: 6px 12px; }
  .ledger .cell-raw { grid-area: raw; }
  .ledger .cell-state { grid-area: state; justify-self: end; }
  .ledger .cell-item { grid-area: item; }
  .ledger .cell-qty, .ledger .cell-unit { display: none; }
  .ledger .cell-price { grid-area: nums; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; }
  .price-stack { flex-direction: row; align-items: baseline; gap: 8px; }
  .ledger .cell-price .k { display: inline; color: var(--slate); font-size: 14px; font-variant-numeric: tabular-nums; }
  .ledger .line-body .inner { padding-top: 12px; }
  .table-stack thead { display: none; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: auto; }
  .table-stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { padding: 0; border: 0; font-size: 14px; }
  .table-stack td.num { text-align: right; }
  .table-stack .k { display: inline; color: var(--slate); font-size: 13px; margin-right: 6px; }
  .table-stack td.blank { display: none; }
  .table-stack td.span { grid-column: 1 / -1; }
  .table-stack tr.is-out td:first-child { box-shadow: none; }
  .table-stack tr.is-out { box-shadow: inset 3px 0 0 var(--stop); }
  .list-row { grid-template-columns: 10px minmax(0, 1fr) 20px; grid-template-areas: "dot main go" "dot sub go"; padding: 12px 16px; row-gap: 6px; }
  .list-row .dot { grid-area: dot; align-self: start; margin-top: 8px; }
  .list-row .cell-body { grid-area: main; }
  .list-row .cell-chip { grid-area: sub; justify-self: start; }
  .list-row .cell-when { display: none; }
  .list-row > .icon { grid-area: go; }
  .day-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .day-row .day-actions { justify-content: flex-start; }
  .inline-fields, .add-name, .add-sub, .book-tools { grid-template-columns: minmax(0, 1fr); }
  .name-row { grid-template-columns: minmax(0, 1fr); }
  .name-edit { justify-content: flex-start; }
  .name-edit .input { width: 100%; flex: 1; }
  .name-edit form { flex: 1 1 100%; }
  .skel-row { grid-template-columns: 1fr 1fr; }
  .ask-phone { padding: 16px; }
  .msg { max-width: 100%; }
  .event { padding: 16px; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .event-mark { width: 32px; height: 32px; }
}
@media (max-width: 900px), (pointer: coarse) {
  .btn-sm, .confirm-form-sm button, .crumb, .next-links a, .row-edit summary, .removed summary, .name-edit .input, .name-edit .btn, .jump a, .recall-mini summary, .next-links .btn-link { min-height: 44px; align-items: center; }
  .link { display: inline-flex; align-items: center; min-height: 44px; }
  .day-row .reasons a, .day-row .cell-main { display: inline-flex; align-items: center; min-height: 44px; }
  .me-out .btn { width: 44px; min-height: 44px; }
  .nav-collapse { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .sample { display: none; }
}

/* Accounts: people rows, the one-time password, the narrow password form */
.person-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.person-row .cell-body { display: flex; flex-direction: column; min-width: 0; }
.person-row .cell-main { font-weight: 500; }
.otp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .04em; background: var(--paper); color: var(--ink); border-radius: var(--r-ctl); padding: 8px 12px; margin: 6px 0; }
.form-narrow { max-width: 480px; }
@media (max-width: 640px) {
  .person-row { padding: 12px 16px; grid-template-columns: 34px minmax(0, 1fr); }
  .person-row form { grid-column: 2; }
}