/* Overtable app kit: one file, no build, served as is.
 * Tokens match the public landing (flat light theme only: no dark mode, no gradients). */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/InstrumentSans.woff2?v=3faeaed6af6a) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/JetBrainsMono.woff2?v=3faeaed6af6a) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #fbfbf9;
  --bg-2: #f3f3ef;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #575c66;
  --ink-3: #8a8f98;
  --line: #e4e4df;
  --line-2: #d4d4ce;
  --acc: #0b6e69;
  --acc-2: #0f8a83;
  --acc-wash: #e3f3f1;
  --on-acc: #ffffff;
  --deny: #b42318;
  --deny-wash: #fde8e6;
  --ask: #9a6100;
  --ask-wash: #fdf1d8;
  --yel: #f6d860;
  --code-bg: #f3f3ef;
  --glass: rgba(251, 251, 249, 0.92);
  --focus: #0f8a83;
  --on-av: #ffffff;
  --link: #2f4a7a;
  --link-wash: #eef1f6;
  --bubble-in: #eef1f6;
  --bubble-out: #e2f2ef;
  --t1: #0b6e69; --t2: #0f8a83; --t3: #9a6100; --t4: #4b3f9a; --t5: #9a3d1f;
  --shadow-hair: 0 1px 1px rgba(22, 24, 29, 0.04);
  --shadow-soft: 0 1px 2px rgba(22, 24, 29, 0.04), 0 24px 48px -24px rgba(22, 24, 29, 0.18);
  --shadow-sheet: 0 -8px 40px rgba(22, 24, 29, 0.16);
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-1: 10px; --r-2: 14px; --r-3: 18px; --r-pill: 999px;
  --wrap: 720px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--acc); text-underline-offset: 3px; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; height: 52px; padding: 0 var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.mark { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.mark svg { overflow: visible; }.mark svg circle:first-child { fill: var(--acc); }.mark svg circle:last-of-type { fill: var(--yel); mix-blend-mode: multiply; }.mark svg path { display: none; }
.top-link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 15px; font-weight: 500; text-decoration: none; }

/* page */
main { max-width: var(--wrap); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-8); }
.back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); font-size: 15px; font-weight: 500; text-decoration: none; }
.back::before { content: "‹"; font-size: 22px; line-height: 1; }
.head { padding: var(--s-4) 0 var(--s-5); }
h1 { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: var(--s-3); max-width: 52ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sec { margin-top: var(--s-7); }
.head + .sec, .toast + .sec { margin-top: var(--s-4); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.count { min-width: 24px; height: 24px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--acc); color: var(--on-acc); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.45; }
.note { margin-top: var(--s-3); max-width: 60ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.prose { max-width: 60ch; text-wrap: pretty; }
.prose + .prose { margin-top: var(--s-3); }

/* cards and lists */
.card { background: var(--card); color: var(--ink); border-radius: var(--r-2); box-shadow: var(--shadow-hair), 0 0 0 1px var(--line); padding: var(--s-4); }
.card + .card { margin-top: var(--s-3); }
.card-hl { box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); }
.list { background: var(--card); color: var(--ink); border-radius: var(--r-2); box-shadow: var(--shadow-hair), 0 0 0 1px var(--line); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 60px; }
.row + .row { box-shadow: inset 0 1px var(--line); }
.row-main { flex: 1 1 200px; min-width: 0; }
.row-t { font-weight: 600; overflow-wrap: anywhere; }
.row-t a { color: var(--ink); text-decoration: none; }
.row-t a:hover { color: var(--acc); }
.row-s { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.row-act { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.row-act form { display: contents; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--on-av); font-size: 14px; font-weight: 600; background: var(--t1); }
.av-2 { background: var(--t2); } .av-3 { background: var(--t3); } .av-4 { background: var(--t4); } .av-5 { background: var(--t5); }
.chev { color: var(--line-2); font-size: 22px; }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; width: 100%; }
.inline-form input { flex: 1 1 160px; }

/* held message and exchange threads (messaging-style bubbles) */
#thread { display: flex; flex-direction: column; gap: var(--s-3); }
.held { background: var(--card); color: var(--ink); border-radius: var(--r-3); padding: var(--s-4); box-shadow: 0 0 0 1px var(--line); max-width: 100%; }
.held + .held { margin-top: 0; }
.held-meta { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.held-meta .badge { margin-left: var(--s-1); vertical-align: 1px; }
.held-to { color: var(--ink); font-size: 14px; font-weight: 600; }
.held-text { margin-top: var(--s-2); padding: 10px 14px; border-radius: 18px; background: var(--bubble-in); font: inherit; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; border-bottom-left-radius: 6px; }
.held.out { align-self: flex-end; max-width: 92%; }
.held.in { align-self: flex-start; max-width: 92%; }
.held.out .held-text { background: var(--bubble-out); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.held.in .held-text { background: var(--bubble-in); }
.held .acts { margin-top: var(--s-3); }

/* buttons */
.btn, .btn-2, .btn-q { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill); font: inherit; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease); }
.btn { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn:hover { background: #000; }
.btn-2 { background: var(--acc-wash); color: var(--acc); }
.btn-2:hover { background: var(--line); }
.btn-q { background: transparent; color: var(--ink-2); padding: 0 var(--s-3); }
.btn-q:hover { color: var(--ink); background: var(--bg-2); }
.btn-q.danger { color: var(--deny); }
.btn:active, .btn-2:active, .btn-q:active { transform: scale(0.97); }
.btn-wide { width: 100%; }
button:disabled, input:disabled, select:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (max-width: 400px) { .btn, .btn-2 { padding: 0 var(--s-4); font-size: 15px; } }
details.cats-d summary { display: flex; align-items: center; min-height: var(--tap); color: var(--acc); font-weight: 500; cursor: pointer; list-style: none; }
details.cats-d summary::-webkit-details-marker { display: none; }
details.cats-d summary::after { content: "›"; margin-left: var(--s-2); transition: transform 200ms var(--ease); }
details.cats-d[open] summary::after { transform: rotate(90deg); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.acts form { display: contents; }
.key-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* fields */
.field { display: grid; gap: var(--s-2); font-size: 15px; font-weight: 500; }
.field + .field, .field + .acts, .stack > * + * { margin-top: var(--s-4); }
input[type=text], input[type=email], input:not([type]), select { width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: var(--bg-2); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; box-shadow: inset 0 0 0 1px var(--line); }
input:focus-visible, select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-6);
  background-color: var(--bg-2);
  background-image: url(chevron.svg?v=3faeaed6af6a);
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  background-size: 16px 16px;
}
.choice { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); font-weight: 500; cursor: pointer; }
.choice + .choice { box-shadow: inset 0 1px var(--line); }
.choice input[type=radio], .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--acc); flex: none; }
.choice input:not([type=radio]) { flex: 1 1 140px; }
.check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-size: 15px; cursor: pointer; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); height: 24px; padding: 0 var(--s-2); border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-allow, .b-active { background: var(--acc-wash); color: var(--acc); }
.b-ask, .b-wait { background: var(--ask-wash); color: var(--ask); }
.b-deny { background: var(--deny-wash); color: var(--deny); }
.b-plain::before { display: none; }

/* notices (toasts) */
.toast { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--acc-wash); color: var(--ink); font-size: 15px; margin-bottom: var(--s-4); animation: toast-in 500ms var(--ease-out) both; }
.toast::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--acc); }
.toast.warn { background: var(--ask-wash); }
.toast.warn::before { background: var(--ask); }
.toast.err { background: var(--deny-wash); }
.toast.err::before { background: var(--deny); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* passkey sheet: the live #passkey-status, shown once it holds text */
.sheet-status:empty { display: none; }
.sheet-status { position: fixed; z-index: 30; left: var(--s-3); right: var(--s-3); bottom: max(var(--s-3), env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-3); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sheet), 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; animation: sheet-in 420ms var(--ease-out) both; }
.sheet-status::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--acc-wash) url(key.svg?v=3faeaed6af6a) center / 20px no-repeat; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }

/* confirmation sheet page */
.sheet { margin: var(--s-4) auto 0; max-width: 480px; padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-3); background: var(--card); box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); }
.sheet-grab { width: 36px; height: 5px; margin: 0 auto var(--s-4); border-radius: var(--r-pill); background: var(--line-2); }
.sheet-ic { width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--acc-wash); color: var(--acc); display: grid; place-items: center; }
.sheet-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet h1 { font-size: 26px; text-align: center; }
.sheet .who { margin-top: var(--s-2); text-align: center; color: var(--ink-2); font-size: 15px; }
.sheet .changes { margin-top: var(--s-4); }
.changes li { padding: var(--s-3) 0; box-shadow: inset 0 -1px var(--line); font-size: 15px; }
.sheet .btn { margin-top: var(--s-5); }
.sheet .note { text-align: center; margin-left: auto; margin-right: auto; }

/* empty states */
.empty { padding: var(--s-6) var(--s-4); border-radius: var(--r-2); background: var(--bg-2); text-align: center; }
.empty p { max-width: 45ch; margin: 0 auto; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.empty .btn, .empty .btn-2 { margin-top: var(--s-4); }

/* code with copy */
.code { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-radius: var(--r-1); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); }
.code code { flex: 1; min-width: 0; font: 14px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.code + .note, .code + .code { margin-top: var(--s-3); }
.copy { flex: none; min-height: var(--tap); padding: 0 var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--card); color: var(--acc); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-hair), 0 0 0 1px var(--line); }
.copy:active { transform: scale(0.97); }
.secret { display: block; margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-1); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); font: 14px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.doc { padding: var(--s-5) var(--s-4); border-radius: var(--r-2); background: var(--card); box-shadow: var(--shadow-hair), 0 0 0 1px var(--line); font: 14px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* rows with a top line and an action line */
.row-top { display: flex; align-items: center; gap: var(--s-3); width: 100%; }
.row-top .row-main { flex: 1 1 auto; }
.row-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; width: 100%; padding-left: 48px; }
.row-foot form { display: contents; }
.row-foot.flush { padding-left: 0; }
.card h2 { margin-bottom: var(--s-3); }
.auth > .note { text-align: center; margin-left: auto; margin-right: auto; }

/* rules editor */
.rules { display: grid; gap: var(--s-3); }
.rule-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding-bottom: var(--s-3); }
.rule-grid { display: grid; grid-template-columns: 1fr; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, 168px); align-items: center; gap: var(--s-3); padding: var(--s-2) 0; box-shadow: inset 0 1px var(--line); }
.rule-row select[data-d=allow] { color: var(--acc); background-color: var(--acc-wash); }
.rule-row select[data-d=ask] { color: var(--ask); background-color: var(--ask-wash); }
.rule-row select[data-d=deny] { color: var(--deny); background-color: var(--deny-wash); }
.rule-row select[data-d=inherit] { color: var(--ink-2); }
.rule-row span { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.cats { border-radius: var(--r-2); background: var(--bg-2); padding: var(--s-1) var(--s-4); }
.cats li { display: grid; gap: 2px; padding: var(--s-3) 0; font-size: 14px; line-height: 1.45; }
.cats li + li { box-shadow: inset 0 1px var(--line); }
.cats b { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

/* log */
.log .row { min-height: 0; padding: var(--s-3) var(--s-4); }
.log time { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* auth */
.auth { max-width: 440px; margin: 0 auto; padding-top: var(--s-6); }
.auth .head { text-align: center; }
.auth .lede { margin-left: auto; margin-right: auto; }
.auth-mark { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 18px; background: var(--acc-wash); display: grid; place-items: center; }
.auth-mark svg { width: 34px; fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; }
.or { margin: var(--s-5) 0; display: flex; align-items: center; gap: var(--s-3); color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* sign-in: icon fields, the password eye, OR, Google, the terms line */
input[type=password] { width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: var(--bg-2); color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
input[type=password]:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.auth-form { display: grid; gap: var(--s-3); }
.in { position: relative; display: flex; align-items: center; }
.in > svg { position: absolute; left: var(--s-4); width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.in input { min-height: 52px; padding-left: 46px; border-radius: var(--r-pill); }
.in input[type=password], .in .pw { padding-right: 52px; }
.eye { position: absolute; right: 6px; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye[aria-pressed=false] .eye-off, .eye[aria-pressed=true] .eye-on { display: none; }
.auth-form .btn { min-height: 52px; }
.swap { margin-top: var(--s-4); text-align: center; font-size: 15px; color: var(--ink-2); }
.swap a { font-weight: 600; text-decoration: none; }
.or-s { margin: var(--s-5) 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.btn-g { width: 100%; min-height: 52px; gap: var(--s-3); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-g:hover { background: var(--bg-2); }
.btn-g svg { width: 18px; height: 18px; }
.terms { margin-top: var(--s-5); text-align: center; font-size: 13px; color: var(--ink-2); }
.terms a { color: inherit; }
.forgot { display: block; margin-top: var(--s-2); text-align: right; font-size: 14px; }

/* account: banners, passkeys, backup codes, the QR */
.banner { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-2); background: var(--ask-wash); margin-bottom: var(--s-4); }
.banner.err { background: var(--deny-wash); }
.banner p { font-size: 15px; }
.codes { display: grid; grid-template-columns: 1fr; white-space: nowrap; letter-spacing: 0.04em; text-align: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-1); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); font: 14px/1.6 var(--font-mono); }
.qr { width: min(240px, 70vw); margin: var(--s-4) auto 0; padding: var(--s-3); border-radius: var(--r-2); background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.b-active-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-right: var(--s-1); }
.scopes { margin-top: var(--s-2); display: grid; gap: var(--s-2); }
.scopes li { display: flex; gap: var(--s-2); font-size: 15px; }
.scopes li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--acc); }

/* kit index */
.idx .row-t a::after { content: ""; position: absolute; inset: 0; }
.idx .row { position: relative; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-7); font-size: 13px; color: var(--ink-2); }

/* spacing utilities (no style attributes under the CSP) */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.jc { justify-content: center; }
.center { text-align: center; }

@media (min-width: 768px) {
  main { padding: var(--s-6) var(--s-5) var(--s-8); }
  .top-in { padding: 0 var(--s-5); }
  h1 { font-size: 44px; }
  .rule-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .sheet { margin-top: var(--s-7); padding: var(--s-6); }
  .sheet-status { bottom: var(--s-5); }
}
@media (min-width: 1200px) { :root { --wrap: 820px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.row-foot > form:last-child .btn-q, .row-foot > .btn-q:last-child { margin-left: auto; }

/* invitation: the step bar and the per-app guides */
.kicker { display: inline-flex; align-items: center; height: 26px; margin-bottom: var(--s-3); padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--acc-wash); color: var(--acc); font-size: 13px; font-weight: 600; }
.steps-bar { margin-bottom: var(--s-6); }
.step-of { font-size: 14px; font-weight: 600; color: var(--acc); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.steps li { font-size: 13px; color: var(--ink-2); text-align: center; }
.steps li::before { content: ""; display: block; height: 4px; margin-bottom: var(--s-2); border-radius: var(--r-pill); background: var(--line); }
.steps li.done::before, .steps li.on::before { background: var(--acc); }
.steps li.on { color: var(--ink); font-weight: 600; }
details.guide summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); cursor: pointer; list-style: none; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: var(--s-1); border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); transition: transform 200ms var(--ease); }
details.guide[open] summary::after { transform: rotate(45deg); }
.guide-steps { margin-top: var(--s-3); display: grid; gap: var(--s-3); counter-reset: step; }
.guide-steps > li { position: relative; padding-left: 32px; font-size: 15px; text-wrap: pretty; }
.guide-steps > li:not(.li-code) { counter-increment: step; }
.guide-steps > li:not(.li-code)::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-wash); color: var(--acc); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.code-pre code { white-space: pre-wrap; }
.mt-6 { margin-top: var(--s-6); }

/* OAuth consent: its own accent, so it never reads as the invitation */
.consent .auth-mark, .consent .kicker { background: var(--link-wash); color: var(--link); }
.consent .auth-mark svg { stroke: var(--link); }
.ask-card { display: grid; gap: var(--s-3); }
.ask-card div { display: grid; gap: 2px; }
.ask-card dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ask-card dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.request-card { box-shadow: var(--shadow-soft), 0 0 0 2px var(--ask-wash); }

/* Organisation pages: plain fieldsets for the radio and checkbox groups. */
.org fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.org legend { padding: 0; }
.org fieldset .check { margin-right: var(--s-5); }

/* Usage card: flat light card */
.usage { background: var(--card); color: var(--ink); border-radius: var(--r-2); box-shadow: 0 0 0 1px var(--line); padding: var(--s-4); }
.usage-m, .usage-d { font-size: 14px; color: var(--ink-2); }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); margin: var(--s-3) 0; }
.usage-grid div { display: grid; gap: 2px; min-width: 0; }
.usage-grid dt { font-size: 13px; color: var(--ink-2); }
.usage-grid dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) { .usage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Capability picker (connect / invitation) */
.cap-card { margin-top: 0; }
.cap-line { margin-top: var(--s-2); font-size: 15px; line-height: 1.45; }
.cap-mark { font-weight: 600; margin-right: var(--s-1); }
.cap-ok .cap-mark { color: var(--acc); }
.cap-no .cap-mark { color: var(--deny); }
.cap-action { font-weight: 500; }
.cap-panel[hidden] { display: none !important; }
.cap-plans[hidden] { display: none !important; }
[data-cap-guide][hidden] { display: none !important; }
