
:root { color-scheme: light; --paper: #f4f0e7; --surface: #ffffff; --line: #e0dcd2; --fg: #171717; --muted: #4a4a4a; --faint: #8a8a8a; --cobalt: #3155ff; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; font: 15px/1.5 'Instrument Sans', 'Helvetica Neue', Arial, system-ui, sans-serif; color: var(--fg); background: var(--paper); }
a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; letter-spacing: -0.03em; font-size: 1.1rem; }
.who { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.who nav { display: flex; gap: 16px; }
.who nav a { color: var(--fg); text-decoration: none; font-weight: 500; }
.who nav a:hover { color: var(--cobalt); }
.who form { margin: 0; }
main { max-width: 64rem; margin: 0 auto; padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; overflow-x: auto; }
.narrow { max-width: 36rem; }
h1 { font-size: 1.75rem; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 1.25rem; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.heading-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 12px 0; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; }
.field > span, legend { font-weight: 500; }
legend { padding: 0; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input:not([type]) { font: inherit; padding: 8px 10px; border: 1px solid var(--faint); border-radius: 8px; background: var(--surface); color: var(--fg); max-width: 28rem; }
.field input:focus { border-color: var(--cobalt); }
.choice { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.error { color: var(--fg); border-left: 2px solid var(--fg); padding-left: 6px; }
.button { display: inline-block; font: inherit; font-weight: 500; background: var(--cobalt); color: #ffffff; border: 1px solid var(--cobalt); border-radius: 8px; padding: 8px 14px; text-decoration: none; cursor: pointer; transition: background-color 150ms ease-out; }
.button:hover { background: var(--fg); border-color: var(--fg); }
.button-secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.button-secondary:hover { background: var(--paper); color: var(--fg); }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--cobalt); text-decoration: underline; cursor: pointer; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.notice p { margin: 4px 0; }
.notice-error { border-left: 3px solid var(--fg); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--fg); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.tag-action { border-color: var(--cobalt); color: var(--cobalt); }
.tag-alert { background: var(--fg); color: #ffffff; }
.tag-env { margin-left: 8px; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
table.ledger { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.ledger th { text-align: left; font-weight: 500; border-bottom: 1px solid var(--fg); padding: 8px 12px 8px 0; }
.ledger td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.ledger .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ledger .actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; }
details summary { cursor: pointer; color: var(--cobalt); font-weight: 500; margin-top: 8px; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.9em; }
code.link, code.key { word-break: break-all; background: var(--paper); padding: 2px 4px; border-radius: 4px; }
.qr-row { margin: 12px 0; }
.qr { width: 13rem; height: 13rem; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
