/* Motif customer app (motif-join.asv-labs.com): the same design language as motif.asv-labs.com.
   Built from Motif's own guidance: saas-app-shell-side-navigation, saas-first-signed-in-dashboard,
   web-two-plan-free-versus-paid-pricing, web-cta-copyable-command, saas-oauth-consent-screen-for-agent-clients,
   saas-passwordless-email-codes-and-passkeys, web-developer-technical-dark-surface. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --stage: #07080c;
  --vault: #0e1017;
  --vault2: #131622;
  --vault3: #191d2b;
  --line: rgba(236, 235, 230, 0.09);
  --line2: rgba(236, 235, 230, 0.16);
  --paper: #edebe6;
  --mist: #a3a9b6; /* 7.9:1 on --stage */
  --dim: #858b9b; /* 5.2:1 on --stage, 4.9:1 on --vault */
  --web: #ff6b3d; --app: #ffc24a; --pwa: #7ce38b; --saas: #4cc9f0; --system: #8c9bff; --motion: #d77bff; --lessons: #ff7ab6;
  --ok: #7ce38b; --warn: #ffc24a; --bad: #ff8a7a;
  --spectrum: linear-gradient(90deg, var(--web), var(--app), var(--pwa), var(--saas), var(--system), var(--motion), var(--lessons));
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --t-fast: 150ms; --t: 250ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--stage); color: var(--paper); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--paper); text-decoration-color: rgba(237, 235, 230, 0.35); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--saas); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.92em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: #0a0b10; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--mist); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line2); }
.lede { color: var(--mist); font-size: 17px; max-width: 60ch; }
.h1 { font-size: clamp(30px, 1.6rem + 1.6vw, 44px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.h1 em, .display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--mist); }
.h2 { font-size: 20px; line-height: 1.2; font-weight: 650; }
.h3 { font-size: 16px; line-height: 1.3; font-weight: 650; }
.fine { color: var(--dim); font-size: 13px; line-height: 1.5; }
.fine a { color: var(--mist); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(236, 235, 230, 0.3); }
.btn-primary { color: #0a0b10; background: var(--paper); border-color: transparent; position: relative; isolation: isolate; }
.btn-primary::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--spectrum); filter: blur(10px); opacity: 0.45; z-index: -1; transition: opacity var(--t) var(--ease); }
.btn-primary:hover { background: #fff; }
.btn-primary:hover::before { opacity: 0.8; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-quiet { background: none; border-color: transparent; color: var(--mist); }
.btn-quiet:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); border-color: transparent; }
.btn-danger { color: #1a0906; background: var(--bad); border-color: transparent; }
.btn-danger-quiet { background: none; border-color: rgba(255, 138, 122, 0.35); color: var(--bad); }
.btn-danger-quiet:hover { background: rgba(255, 138, 122, 0.1); border-color: var(--bad); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn, .btn-primary::before { transition: none; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 550; font-size: 14px; }
.hint { color: var(--dim); font-size: 14px; }
input[type="email"], input[type="text"], input:not([type]), textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--paper);
  background: var(--vault); border: 1px solid var(--line2); border-radius: var(--r-sm);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--saas); outline-offset: 1px; border-color: transparent; }
.otp { font: 500 28px/1 var(--mono); letter-spacing: 0.35em; text-align: center; max-width: 14ch; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 550; font-size: 14px; margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--mist); }
.check:has(input:checked) { color: var(--paper); border-color: var(--paper); background: rgba(255, 255, 255, 0.05); }
.check input { accent-color: var(--paper); }
.form-stack { display: grid; gap: 18px; }
.form-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.form-row .field { flex: 1 1 260px; }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--vault); font-size: 15px; }
.banner strong { font-weight: 650; }
.banner-success { border-color: rgba(124, 227, 139, 0.35); background: rgba(124, 227, 139, 0.06); }
.banner-error { border-color: rgba(255, 138, 122, 0.4); background: rgba(255, 138, 122, 0.07); }
.banner-warning { border-color: rgba(255, 194, 74, 0.4); background: rgba(255, 194, 74, 0.07); }
.banner-info { border-color: rgba(76, 201, 240, 0.35); background: rgba(76, 201, 240, 0.06); }
.banner .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--saas); }
.banner-success .dot { background: var(--ok); }
.banner-error .dot { background: var(--bad); }
.banner-warning .dot { background: var(--warn); }

/* ---------- surfaces ---------- */
.panel { background: var(--vault); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 28px); display: grid; gap: 16px; min-width: 0; align-content: start; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-sub { color: var(--mist); font-size: 15px; max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list .meta { color: var(--dim); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--mist); }
.badge-ok { color: var(--ok); border-color: rgba(124, 227, 139, 0.4); }
.badge-accent { color: #0a0b10; background: var(--paper); border-color: transparent; }

/* ---------- meters ---------- */
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.meter { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--vault2); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter-label { font-size: 14px; color: var(--mist); }
.meter-value { font: 600 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.meter-value small { font: 400 13px/1 var(--sans); color: var(--dim); }
.meter-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--paper); }
.meter-warn .meter-fill { background: var(--warn); }
.meter-full .meter-fill { background: var(--bad); }
.meter-note { font-size: 13px; color: var(--dim); }

/* ---------- code / command rows (web-cta-copyable-command) ---------- */
.cmd { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: var(--r); background: #05060a; overflow: hidden; }
.cmd pre { margin: 0; flex: 1; min-width: 0; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.6 var(--mono); color: var(--paper); }
.cmd pre .p { color: var(--dim); user-select: none; }
.cmd pre .k { color: var(--saas); }
.cmd pre .s { color: var(--app); }
.cmd pre .c { color: var(--dim); }
.cmd .copy { flex: none; align-self: stretch; border: 0; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--mist); min-width: 88px; padding: 0 14px; font: 600 13px/1 var(--sans); cursor: pointer; }
.cmd .copy:hover { color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.cmd-multiline pre { white-space: pre; overflow-wrap: normal; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.pair-card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pair-card h3 { font: 600 15px/1.3 var(--sans); letter-spacing: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps > li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); font: 500 12px/1 var(--mono); color: var(--mist); margin-top: 1px; }

/* ---------- client picker (segmented radio group) ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.picker label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mist); font: 500 14px/1 var(--sans); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.picker label:hover { color: var(--paper); }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker label:has(input:checked) { color: #0a0b10; background: var(--paper); border-color: var(--paper); }
.picker label:has(input:focus-visible) { outline: 2px solid var(--saas); outline-offset: 2px; }
.client-pane { display: grid; gap: 16px; }
.next-note { display: flex; gap: 10px; align-items: center; color: var(--mist); font-size: 14px; }
.next-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- app shell (saas-app-shell-side-navigation) ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.side { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: 24px; padding: 22px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--vault), var(--stage)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--paper); padding: 4px 8px; }
.mark { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, var(--web), var(--app), var(--pwa), var(--saas), var(--system), var(--motion), var(--lessons), var(--web)); -webkit-mask: radial-gradient(circle at 50% 50%, transparent 5px, #000 5.5px); mask: radial-gradient(circle at 50% 50%, transparent 5px, #000 5.5px); }
.nav { display: grid; gap: 2px; }
.nav-group { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 16px 12px 8px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--paper); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 12px 4px; border-top: 1px solid var(--line); }
.who { display: grid; gap: 2px; min-width: 0; }
.who b { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 13px; color: var(--dim); }
.main { min-width: 0; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 56px) 64px; }
.main-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 8px; }
.page-head .titles { display: grid; gap: 10px; max-width: 68ch; }
.topbar { display: none; }
.foot { max-width: 1080px; margin: 48px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.foot a { color: var(--dim); }
@media (max-width: 1023.98px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; background: rgba(7, 8, 12, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar details { position: static; }
  .topbar summary { list-style: none; cursor: pointer; }
  .topbar summary::-webkit-details-marker { display: none; }
  .topbar .drawer { position: absolute; left: 0; right: 0; top: 56px; padding: 12px 16px 20px; background: var(--vault); border-bottom: 1px solid var(--line2); display: grid; gap: 12px; }
  .topbar .nav a[aria-current="page"]::before { left: -4px; }
}

/* ---------- auth / focused layouts (no shell) ---------- */
.focus { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.focus-art { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid var(--line); background: radial-gradient(60% 50% at 20% 80%, rgba(140, 155, 255, 0.14), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(255, 107, 61, 0.1), transparent 70%), var(--stage); }
.focus-art .display { font: 700 clamp(36px, 1.5rem + 3vw, 64px)/0.98 var(--display); letter-spacing: -0.035em; max-width: 13ch; }
.focus-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--mist); max-width: 46ch; }
.focus-art li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.focus-art li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--c, var(--saas)); box-shadow: 0 0 12px var(--c, var(--saas)); }
.focus-form { display: grid; align-content: center; justify-items: center; padding: clamp(28px, 5vw, 64px) 16px; }
.focus-card { width: min(420px, 100%); display: grid; gap: 22px; }
.focus-card .h1 { font-size: clamp(28px, 1.4rem + 1vw, 36px); }
.center-card { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; }
.center-card > .panel { width: min(560px, 100%); }
@media (max-width: 860px) {
  .focus { grid-template-columns: minmax(0, 1fr); }
  .focus-art { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .focus-art ul { display: none; }
}

/* ---------- plans (web-two-plan-free-versus-paid-pricing) ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line2); background: var(--vault); }
.plan-paid { background: linear-gradient(180deg, var(--vault3), var(--vault)); border-color: rgba(236, 235, 230, 0.34); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.plan-name { font: 600 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 700 56px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span { color: var(--mist); }
.plan-for { color: var(--mist); font-size: 15px; }
.plan-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.plan-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan-rows li span { color: var(--mist); }
.plan-rows li b { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.plan-rows li.soon b { color: var(--dim); font-weight: 450; }
.plan .cta { margin-top: auto; display: grid; gap: 8px; }
.plan .fine { color: var(--dim); font-size: 13px; text-align: center; }
.objections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .objections { grid-template-columns: minmax(0, 1fr); } }
.objections h3 { font: 600 15px/1.35 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.objections p { color: var(--mist); font-size: 15px; }

/* comparison table (web-pricing-page-structure) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.compare caption { text-align: left; padding: 14px 16px; color: var(--mist); font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); background: var(--vault2); border-top: 0; }
.compare tbody th { font-weight: 500; color: var(--mist); width: 38%; }
.compare .group th { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 18px; }
.compare td { font-variant-numeric: tabular-nums; }

/* ---------- checklist (saas-onboarding-checklist-and-activation) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); }
.checklist .done .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #07080c; border-bottom: 2px solid #07080c; transform: rotate(-45deg) translate(1px, -1px); }
.checklist .done .t { color: var(--mist); text-decoration: line-through; text-decoration-color: var(--dim); }
.checklist .t b { font-weight: 550; }
.checklist .t small { display: block; color: var(--dim); font-size: 13px; }

/* ---------- activity ---------- */
.activity { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.activity li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.activity code { background: none; border: 0; padding: 0; color: var(--paper); }
.activity .ok { color: var(--ok); }
.activity .no { color: var(--warn); }

/* ---------- consent ---------- */
.consent-id { display: flex; gap: 14px; align-items: center; }
.consent-id .ico { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--vault2); display: grid; place-items: center; font: 700 20px/1 var(--display); color: var(--mist); flex: none; }
.consent-id > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.scopes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scopes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.scopes li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ok); }
.scopes li.no::before { background: var(--dim); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 16px; }

/* ---------- misc ---------- */
details.disclose > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); font: 500 14px/1 var(--mono); color: var(--mist); }
details.disclose[open] > summary::before { content: "−"; }
details.disclose > .body { display: grid; gap: 16px; padding: 8px 0 4px; }
.token-once { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(255, 194, 74, 0.45); background: rgba(255, 194, 74, 0.05); }
.inline-form { display: inline; }
.proposal { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--vault2); }
.proposal:target { border-color: var(--saas); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { display: grid; gap: 10px; padding: 20px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--mist); }

.c-saas { --c: var(--saas); } .c-pwa { --c: var(--pwa); } .c-app { --c: var(--app); } .c-web { --c: var(--web); }
.w0 { width: 0%; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; } 

/* client panes: CSS-only switching via :has(), JS only remembers the pick */
[data-client] { display: none; }
.connect:has(input[value="claude-code"]:checked) [data-client="claude-code"] { display: grid; }
.connect:has(input[value="claude-app"]:checked) [data-client="claude-app"] { display: grid; }
.connect:has(input[value="chatgpt"]:checked) [data-client="chatgpt"] { display: grid; }
.connect:has(input[value="cursor"]:checked) [data-client="cursor"] { display: grid; }
.connect:has(input[value="vscode"]:checked) [data-client="vscode"] { display: grid; }
.connect:has(input[value="codex"]:checked) [data-client="codex"] { display: grid; }
.connect:has(input[value="gemini"]:checked) [data-client="gemini"] { display: grid; }
.connect:has(input[value="windsurf"]:checked) [data-client="windsurf"] { display: grid; }
.connect:has(input[value="other"]:checked) [data-client="other"] { display: grid; }

/* Narrow screens: the command gets the full width; Copy sits underneath as a full-width row. */
@media (max-width: 520px) {
  .cmd { flex-direction: column; }
  .cmd pre { font-size: 13px; padding: 12px 14px; }
  .cmd .copy { border-left: 0; border-top: 1px solid var(--line); min-height: 44px; width: 100%; }
}

/* Template library (/account/library) */
.tpl-grid { align-items: stretch; }
.tpl-card { align-content: start; }
.tpl-card .actions { margin-top: auto; }
.tpl-kv { font-size: 14px; }
.tpl-kv dd { min-width: 0; overflow-wrap: anywhere; }
.sha { font-size: 12px; word-break: break-all; }
.tpl-confirm { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mist); }
.tpl-confirm input { margin-top: 3px; accent-color: var(--paper); }
