/* Sign's pages in the Smitz Laboratories style (brand/README.md; brand/ui-kit/tokens.css) and the layout of Kyle's
   mockups of 12 Nov 2026: the Messages approval tiles and passkey-first sign-in. A grey stage with the mark and the
   page's name in white, a light card on it, a tracked uppercase kicker, a red badge, square corners, and buttons
   with a darker bottom edge. Tokens by name; the only raw colors are the tokens themselves. No dependencies. */
@font-face { font-family: "Smitz Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/SmitzSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Smitz Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/SmitzSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Smitz Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/SmitzSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Smitz Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/SmitzSans-Heavy.woff2") format("woff2"); }

:root {
  --grey: #58585A; --deep: #1E1E1F; --paper: #FBFAF8; --tint: #F1EFEB; --line: #DEDBD4; --grey-light: #C9C8C4;
  --red-signal: #DC1F2D; --red-lit: #E85D67; --red: var(--red-signal); --red-edge: #A8151F;
  --ok: #2E7D32; --amber: #B26A00;
  --stage-top: #BDBBB6; --stage-bottom: #5E5E60; --card: #E8E7E4; --surface: #FFFFFF;
  --font: "Smitz Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --track: 0.2em;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--tint); }
body { margin: 0; color: var(--deep); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
main { max-width: 46rem; margin: 0 auto; padding: 24px 16px 48px; }
[hidden] { display: none !important; }
a { color: var(--red); }
code, .mono { font-family: var(--mono); font-size: 0.86em; background: var(--tint); padding: 1px 6px; border-radius: 0; color: var(--grey); overflow-wrap: anywhere; }

/* The stage: the mockups' grey panel, darker toward the bottom, with a red chip naming the state. */
.stage { background: linear-gradient(170deg, var(--stage-top), var(--stage-bottom)); padding: 20px 20px 28px; margin: 0 0 20px; }
.chip { display: inline-block; margin: 0 0 14px; padding: 3px 10px; background: var(--red); color: var(--surface); font-weight: 800;
  font-size: 13px; letter-spacing: var(--track); text-transform: uppercase; }
.chip.grey { background: var(--grey); }
.chip.black { background: var(--deep); }

/* The masthead: the Smitz Laboratories mark and the page's name, white, heavy. */
.mast { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.mast img { width: 44px; height: 44px; flex: none; }
.mast h1 { margin: 0; color: var(--surface); font-weight: 800; font-size: 32px; letter-spacing: 0.005em; line-height: 1.1; }
.mast .sub { margin: 2px 0 0; color: var(--paper); opacity: 0.85; font-size: 13px; letter-spacing: var(--track); text-transform: uppercase; }

/* The card on the stage, and the white note under it with a red rule. */
.card { background: var(--card); padding: 22px 24px 20px; border-top: 3px solid var(--surface); }
.card + .card { margin-top: 14px; }
.note { background: var(--paper); margin: 14px 0 0; padding: 14px 18px; border-left: 4px solid var(--red); font-size: 14px; font-weight: 500; }
.kicker { margin: 0 0 6px; color: var(--grey); font-weight: 700; font-size: 13px; letter-spacing: var(--track); text-transform: uppercase; }
.headrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.headrow .left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge { display: inline-block; padding: 2px 8px; font-weight: 800; font-size: 12px; letter-spacing: var(--track); text-transform: uppercase;
  background: var(--red); color: var(--surface); }
.badge.grey { background: var(--grey); }
.badge.black { background: var(--deep); }
.badge.amber { background: var(--amber); }
.badge.outline { background: transparent; color: var(--ok); border: 2px solid var(--ok); }
.badge.small { font-size: 11px; padding: 1px 6px; }
.countdown { color: var(--red); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
h2.title { margin: 10px 0 6px; font-weight: 800; font-size: 23px; line-height: 1.25; color: var(--deep); }
.line { margin: 0 0 6px; color: var(--grey); font-weight: 700; font-size: 15px; }
.line.ok { color: var(--ok); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { color: var(--grey); font-weight: 700; font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }

/* Buttons: red for the one act, dark grey for the other; each with a darker bottom edge, as in the mockup. */
button { font: inherit; cursor: pointer; }
.btn { display: block; width: 100%; padding: 13px 18px; border: 0; border-bottom: 3px solid var(--red-edge); background: var(--red);
  color: var(--surface); font-weight: 700; font-size: 18px; text-align: center; }
.btn.dark { background: var(--grey); border-bottom-color: var(--deep); }
.btn.quiet { background: var(--surface); color: var(--deep); border: 1px solid var(--line); border-bottom: 3px solid var(--grey-light); font-size: 15px; padding: 9px 14px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn + .btn { margin-top: 10px; }
.actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 6px 0 14px; }
.actions .btn + .btn { margin-top: 0; }
@media (max-width: 560px) { .actions { grid-template-columns: 1fr; } }
.linkish { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; font-weight: 700; font-size: 14px; }

/* The signed panel: white, a red rule on the left, the shield, who wrote it and with which key. */
.signed { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 12px 16px; border-left: 4px solid var(--red); margin-top: 6px; }
.signed svg { width: 34px; height: 34px; flex: none; }
.signed .who { font-weight: 800; font-size: 16px; }
.signed .route { color: var(--grey); font-size: 13px; font-weight: 700; }
.signed .grow { flex: 1; min-width: 0; }

/* The seal on a decided tile. */
.seal { float: right; width: 150px; height: 150px; margin: -6px 0 8px 12px; }
.seal.center { float: none; display: block; margin: 8px auto 12px; width: 130px; height: 130px; }
@media (max-width: 560px) { .seal { float: none; display: block; margin: 0 auto 10px; } }

/* The approval ledger (approval-ledger.md §3.2): the previous block linked to this one. */
.ledger { clear: both; border: 2px dashed var(--grey-light); padding: 14px 16px; margin: 14px 0; }
.ledger .blocks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.block { background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; font-weight: 700; }
.block.this { border: 2px solid var(--red); }
.block .n { font-weight: 800; }
.block code { font-size: 12px; }
.link-icon { width: 46px; height: 24px; }
.ledger button.check { margin-top: 10px; }
.ledger .result { margin: 8px 0 0; font-weight: 700; font-size: 14px; }
.ledger .result.ok { color: var(--ok); }
.ledger .result.bad { color: var(--red); }
@media (max-width: 560px) { .ledger .blocks { grid-template-columns: 1fr; } .link-icon { margin: 0 auto; } }

/* The six words, large. */
.words { margin: 8px 0 14px; font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: 0.01em; }

/* Errors and warnings. */
.warn { margin: 10px 0; padding: 10px 14px; background: var(--surface); border-left: 4px solid var(--red); font-weight: 700; font-size: 15px; }
.cant { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); padding: 14px 16px; border-left: 4px solid var(--deep); font-weight: 700; }
.cant svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* The passkey manager: structured multi-select menus. A menu is a list of rows; each row a checkbox (or, for the
   people menu, a radio) with the passkey's name, its kind, and its record on the chain. */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.toolbar .count { color: var(--grey); font-weight: 700; font-size: 14px; }
select.menu { font: inherit; font-weight: 700; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-bottom: 3px solid var(--grey-light);
  background: var(--surface); color: var(--deep); border-radius: 0; min-width: 14rem; }
.menu-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.menu-list li { border-top: 1px solid var(--line); }
.menu-list li:first-child { border-top: 0; }
.menu-list label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; cursor: pointer; }
.menu-list label:hover { background: var(--tint); }
.menu-list input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.menu-list input:disabled + .row-main { opacity: 0.55; }
.menu-list .row-main { min-width: 0; }
.menu-list .name { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.menu-list .meta { color: var(--grey); font-weight: 700; font-size: 13px; }
.menu-list .here { color: var(--red); }
.menu-list .empty { padding: 14px; color: var(--grey); font-weight: 700; }
.menu-list li.selected label { background: var(--tint); box-shadow: inset 4px 0 0 var(--red); }
.columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
@media (max-width: 640px) { .columns { grid-template-columns: 1fr; } }
.hold { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; background: var(--surface);
  border-left: 4px solid var(--red); padding: 12px 16px; margin: 0 0 14px; font-weight: 700; }
.hold .countdown { font-size: 18px; }

/* The footer line: which site this is. */
.host { margin: 18px 0 0; color: var(--grey); font-size: 13px; font-weight: 700; }
.host strong { color: var(--deep); }
.loading { color: var(--paper); font-weight: 700; }

a.btn { text-decoration: none; }
.field { width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 3px solid var(--grey-light);
  background: var(--surface); color: var(--deep); border-radius: 0; }
.field:focus, select.menu:focus, .btn:focus-visible, .menu-list input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.approvers { list-style: none; margin: 0 0 12px; padding: 0; }
.approvers li + li { margin-top: 10px; }
.waiting-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 11px 14px; }
.waiting-row .btn { width: auto; }

/* The request's one-sentence summary (standard §15). */
.summary { margin: 10px 0; padding: 8px 14px; border-left: 4px solid var(--red); background: var(--paper); font-size: 15px; }
