/* SIGSHIP Cloud app styles. Same tokens as sigship.dev (site/app.css). Dark by default, light when html.light is set. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --radius: .875rem;
  /* Spacing scale. Every gap, padding and margin below is one of these. */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --side-w: 264px;
  --background: oklch(12% .007 272); --foreground: oklch(97% .003 270);
  --surface: oklch(15.8% .008 272); --surface-2: oklch(19.5% .009 272); --popover: oklch(17.5% .009 272);
  --primary: oklch(97% .003 270); --primary-foreground: oklch(14% .006 272);
  --muted: oklch(21% .008 272); --muted-foreground: oklch(70% .012 270); --accent: oklch(23% .01 272);
  --border: oklch(100% 0 0 / .08); --input: oklch(100% 0 0 / .12); --ring: oklch(66% .17 268);
  --brand: oklch(55% .21 264); --brand-2: oklch(68% .18 295);
  --go: oklch(76% .18 152); --stop: oklch(68% .21 25); --warn: oklch(81% .15 75);
  --violet: oklch(72% .17 295); --teal: oklch(78% .12 190); --amber: oklch(83% .15 80); --coral: oklch(74% .16 35); --lime: oklch(88% .19 125); --sky: oklch(76% .13 235); --pink: oklch(75% .17 350);
  --gradient-spectrum: linear-gradient(90deg, var(--violet), var(--sky), var(--teal), var(--lime), var(--amber), var(--coral));
  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-2));
  --gradient-card: linear-gradient(180deg, oklch(100% 0 0 / .045), oklch(100% 0 0 / .012));
  --edge: inset 0 1px 0 oklch(100% 0 0 / .06);
  --shadow-card: 0 1px 2px oklch(0% 0 0 / .3), 0 12px 32px -18px oklch(0% 0 0 / .7);
  --shadow-float: 0 30px 80px -30px oklch(0% 0 0 / .8), 0 0 0 1px oklch(100% 0 0 / .07);
  --aurora-a: oklch(55% .21 264 / .22); --aurora-b: oklch(68% .18 295 / .14); --aurora-c: oklch(78% .12 190 / .08);
  --grid-line: oklch(100% 0 0 / .04); --fg-04: oklch(100% 0 0 / .04); --fg-10: oklch(100% 0 0 / .10); --fg-15: oklch(100% 0 0 / .15); --fg-20: oklch(100% 0 0 / .2);
  --term: oklch(9.5% .005 272); --term-text: oklch(88% .005 270);
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
html.light {
  --background: oklch(98% .004 272); --foreground: oklch(17% .008 272);
  --surface: oklch(100% 0 0); --surface-2: oklch(96% .005 272); --popover: oklch(100% 0 0);
  --primary: oklch(17% .008 272); --primary-foreground: oklch(98% .003 270);
  --muted: oklch(95% .005 272); --muted-foreground: oklch(46% .014 272); --accent: oklch(95% .007 272);
  --border: oklch(0% 0 0 / .085); --input: oklch(0% 0 0 / .14); --ring: oklch(52% .2 264);
  --brand: oklch(52% .21 264); --brand-2: oklch(56% .2 295);
  --go: oklch(55% .17 150); --stop: oklch(55% .21 25); --warn: oklch(63% .15 70);
  --violet: oklch(52% .2 295); --teal: oklch(55% .12 190); --amber: oklch(66% .16 80); --coral: oklch(60% .17 35); --lime: oklch(60% .17 125); --sky: oklch(56% .14 235); --pink: oklch(58% .19 350);
  --gradient-card: linear-gradient(180deg, oklch(100% 0 0), oklch(99% .002 272));
  --edge: inset 0 1px 0 oklch(100% 0 0 / .9);
  --shadow-card: 0 1px 2px oklch(20% .02 272 / .06), 0 10px 30px -16px oklch(20% .02 272 / .16);
  --shadow-float: 0 30px 80px -30px oklch(0% 0 0 / .25), 0 0 0 1px oklch(0% 0 0 / .06);
  --aurora-a: oklch(70% .15 264 / .16); --aurora-b: oklch(75% .13 295 / .12); --aurora-c: oklch(85% .09 190 / .14);
  --grid-line: oklch(0% 0 0 / .06); --fg-04: oklch(0% 0 0 / .04); --fg-10: oklch(0% 0 0 / .10); --fg-15: oklch(0% 0 0 / .15); --fg-20: oklch(0% 0 0 / .2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { background: var(--background); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--foreground); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; overflow-x: clip; }
::selection { background: color-mix(in oklab, var(--violet) 40%, transparent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
h1, h2, h3, h4, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* A soft glow behind everything. Fixed, so it never scrolls or repaints with the page. */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60rem 36rem at 85% -10%, var(--aurora-a), transparent 65%), radial-gradient(48rem 30rem at -10% 10%, var(--aurora-b), transparent 60%), radial-gradient(50rem 30rem at 50% 115%, var(--aurora-c), transparent 60%); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--foreground); }
.logo svg { flex: none; width: 26.6px; height: 22px; }
.logo b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.logo .cloud { padding: 2px 8px; border-radius: 999px; background: var(--gradient-brand); color: #fff; font: 700 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Top bar: phones, tablets and the signed-out pages ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 10px 12px 0; padding-top: max(10px, env(safe-area-inset-top)); }
.navbar { position: relative; display: flex; width: 100%; max-width: 72rem; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 16px; border: 1px solid transparent; border-radius: 16px; transition: background .4s, border-color .4s, box-shadow .4s; }
.navbar.scrolled { background: color-mix(in oklab, var(--background) 72%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--border); box-shadow: var(--shadow-float); }
.nav-acts { display: flex; align-items: center; gap: 8px; }
.icon-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted-foreground); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--foreground); background: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun, html.light .icon-btn .moon { display: none; }
html.light .icon-btn .sun { display: block; }
.back { display: none; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); font-size: .8rem; white-space: nowrap; transition: color .2s, border-color .2s; }
.back:hover { color: var(--foreground); border-color: var(--fg-20); }
@media (min-width: 640px) { .back { display: inline-flex; } }

/* ---------- Sidebar: signed in, 1024 px and up ---------- */
.side { display: none; }
.ico { flex: none; width: 19px; height: 19px; }
.nav-group { display: grid; gap: 2px; }
.nav-group + .nav-group { margin-top: var(--sp-5); }
.nav-label { padding: 0 12px 6px; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); opacity: .8; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 10px; color: var(--muted-foreground); font-size: .9rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--foreground); background: var(--fg-04); }
.nav-link[aria-current="page"] { color: var(--foreground); background: var(--accent); box-shadow: var(--edge); }
.nav-link[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gradient-brand); }
.nav-link[aria-current="page"] .ico { color: var(--brand-2); }
.side-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.acct { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: background .2s; }
.acct:hover { background: var(--fg-04); }
.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: .9rem; }
.who { min-width: 0; display: grid; gap: 2px; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 600; }
.plan-chip { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted-foreground); font-size: .7rem; font-weight: 600; white-space: nowrap; }
.plan-chip.active { color: var(--go); background: color-mix(in oklab, var(--go) 14%, transparent); }
.plan-chip.trial { color: var(--sky); background: color-mix(in oklab, var(--sky) 14%, transparent); }
.plan-chip.grace { color: var(--warn); background: color-mix(in oklab, var(--warn) 16%, transparent); }
.plan-chip.locked { color: var(--stop); background: color-mix(in oklab, var(--stop) 14%, transparent); }
@media (min-width: 1024px) {
  body.authed .side { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--side-w); padding: 20px 16px 16px 24px; border-right: 1px solid var(--border); background: color-mix(in oklab, var(--background) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; }
  body.authed .side > .logo { margin: 0 0 var(--sp-6) 4px; }
  body.authed .top { display: none; }
  body.authed .frame { margin-left: var(--side-w); }
  body.authed main { padding-top: 48px; }
}

/* ---------- Bottom tab bar and the More sheet: signed in, under 1024 px ---------- */
.tabbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: color-mix(in oklab, var(--background) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.tab { display: grid; justify-items: center; gap: 3px; min-height: 50px; padding: 6px 2px 4px; border-radius: 12px; color: var(--muted-foreground); font-size: 10.5px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.tab .ico { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--foreground); }
.tab[aria-current="page"] .ico { color: var(--brand-2); }
@media (min-width: 1024px) { .tabbar { display: none !important; } }
.sheet-scrim { position: fixed; inset: 0; z-index: 70; background: oklch(0% 0 0 / .5); animation: fade .2s var(--ease); }
.mobile-menu { position: fixed; inset: auto 8px 8px; z-index: 75; padding: 10px 14px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border: 1px solid var(--border); border-radius: 22px; background: var(--popover); box-shadow: var(--shadow-float); max-height: calc(100vh - 80px); overflow: auto; animation: sheet .3s var(--ease); }
.mobile-menu .grab { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--fg-15); }
.mobile-menu .links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet-link { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font-size: .9rem; font-weight: 500; }
.sheet-link[aria-current="page"] { border-color: var(--fg-20); background: var(--accent); }
.sheet-link .ico { color: var(--muted-foreground); }
.mobile-menu .row { display: flex; gap: 8px; margin-top: 12px; }
.mobile-menu .row .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-menu, .sheet-scrim { display: none !important; } }
@keyframes sheet { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Access banner: trial ending, payment failed, plan ended ---------- */
.access-slot { max-width: 72rem; margin: 0 auto; padding: 84px var(--sp-4) 0; }
.access-slot:empty { display: none; }
.access { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px 14px 18px; border: 1px solid color-mix(in oklab, var(--c) 40%, transparent); border-radius: 16px; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 16%, var(--surface)), var(--surface)); box-shadow: var(--shadow-card); font-size: .9rem; }
.access p { flex: 1 1 18rem; min-width: 0; }
.access b { color: var(--c); }
.access.info { --c: var(--sky); } .access.warn { --c: var(--warn); } .access.stop { --c: var(--stop); }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 70% { opacity: .35; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
.access-slot:not(:empty) + main { padding-top: 24px; }
@media (min-width: 768px) { .access-slot { padding: 100px 24px 0; } }
@media (min-width: 1024px) { body.authed .access-slot { padding-top: 32px; } body.authed .access-slot:not(:empty) + main { padding-top: 24px; } }

/* ---------- Page frame ---------- */
main { max-width: 72rem; margin: 0 auto; padding: 92px var(--sp-4) 80px; overflow-wrap: anywhere; }
.mobile-menu, .toast, .offline-banner { overflow-wrap: anywhere; }
@media (min-width: 768px) { main { padding: 112px 24px 96px; } }
@media (max-width: 1023px) { body.authed main { padding-bottom: 120px; } body.authed .foot { padding-bottom: 96px; } }
@media (min-width: 1024px) { body.authed main, body.authed .foot, body.authed .access-slot { padding-left: 40px; padding-right: 40px; max-width: 78rem; } }
main.enter > * { animation: up .5s var(--ease) both; }
main.enter > *:nth-child(2) { animation-delay: .04s; } main.enter > *:nth-child(3) { animation-delay: .08s; } main.enter > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.page-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.page-h > div:first-child { min-width: 0; flex: 1 1 18rem; }
.page-h h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
@media (min-width: 768px) { .page-h h1 { font-size: 2.4rem; } }
.page-h .lead { margin-top: 8px; max-width: 42rem; color: var(--muted-foreground); }
.k { font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .85em; }
.stack { display: grid; gap: var(--sp-4); }
.stack-lg { display: grid; gap: var(--sp-5); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row > :where(div, b, p, h2, h3, .what) { min-width: 0; }
.between { justify-content: space-between; }
.grid-2, .grid-3 { display: grid; gap: var(--sp-4); }
.grid-2 > *, .grid-3 > *, .stack > *, .stack-lg > * { min-width: 0; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 560px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot { max-width: 72rem; margin: 0 auto; padding: 0 16px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted-foreground); font: 400 11px/1.6 var(--mono); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons, pills, cards, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: transform .2s, opacity .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 6px 20px -10px var(--fg-20); }
.btn-brand { background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 28px -12px color-mix(in oklab, var(--brand) 80%, transparent); }
.btn-brand:hover:not(:disabled) { transform: scale(1.03); }
.btn-primary:hover:not(:disabled) { transform: scale(1.03); }
.btn-ghost { border: 1px solid var(--border); color: var(--foreground); font-weight: 500; }
.btn-ghost:hover:not(:disabled) { background: var(--accent); }
.btn-danger { border: 1px solid color-mix(in oklab, var(--stop) 40%, transparent); color: var(--stop); font-weight: 500; }
.btn-danger:hover:not(:disabled) { background: color-mix(in oklab, var(--stop) 12%, transparent); }
.danger-card { border-color: color-mix(in oklab, var(--stop) 35%, var(--line, transparent)); }
.danger-card h2 { color: var(--stop); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: 0 28px; }
.btn-full { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .75rem; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: color-mix(in oklab, var(--c, var(--muted-foreground)) 16%, transparent); color: var(--c, var(--muted-foreground)); white-space: nowrap; }
.tag-plain { background: var(--surface-2); color: var(--muted-foreground); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--go)); }
.card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--gradient-card), var(--surface); box-shadow: var(--edge), var(--shadow-card); padding: var(--sp-5); }
.card-sm { border-radius: 16px; padding: 20px; }
.card h2, .card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.card .sub { margin-top: 6px; color: var(--muted-foreground); font-size: .9rem; }
.card-link { display: block; color: inherit; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.card-link:hover { border-color: color-mix(in oklab, var(--brand-2) 40%, var(--border)); transform: translateY(-2px); box-shadow: var(--edge), 0 18px 48px -20px color-mix(in oklab, var(--brand) 45%, transparent); }
@media (max-width: 640px) { .card { padding: 18px; border-radius: 18px; } .card-sm { padding: var(--sp-4); } .empty { padding: 40px 18px; } }
label { display: block; font-size: .875rem; font-weight: 500; }
label .hint { display: block; margin-top: 2px; color: var(--muted-foreground); font-weight: 400; font-size: .8rem; }
.input, select.input, textarea.input { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--input); border-radius: 12px; background: color-mix(in oklab, var(--background) 70%, var(--surface)); color: var(--foreground); font: inherit; transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: var(--fg-20); }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: transparent; }
.input.code { font: 600 clamp(1.15rem, 5.5vw, 1.6rem)/1 var(--mono); letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.input.code.long { font-size: 1.15rem; letter-spacing: .12em; }
.field { display: grid; gap: var(--sp-1); min-width: 0; }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields.cols { grid-template-columns: 1fr 1fr; } .fields.cols .wide { grid-column: 1 / -1; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-4); }
.msg { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; }
.msg-err { background: color-mix(in oklab, var(--stop) 12%, transparent); color: var(--stop); }
.msg-ok { background: color-mix(in oklab, var(--go) 14%, transparent); color: var(--go); }
.msg-info { background: var(--surface-2); color: var(--muted-foreground); }
.note { padding: 12px 16px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted-foreground); font-size: .875rem; }
.caveat { margin-top: 10px; color: var(--muted-foreground); font-size: .8rem; }
.codeblock { position: relative; overflow: auto; max-width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--term); color: var(--term-text); font: 400 .8rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
html.light .codeblock { background: oklch(97% .003 270); color: var(--foreground); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font: 400 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .what { min-width: 0; flex: 1 1 10rem; }
.list .what b { display: block; font-weight: 600; }
.list .what span { display: block; color: var(--muted-foreground); font-size: .85rem; overflow-wrap: anywhere; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); max-width: 100%; }
.seg button { min-height: 32px; padding: 0 14px; white-space: nowrap; border-radius: 999px; color: var(--muted-foreground); font-size: .85rem; font-weight: 500; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.seg button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar select.input { width: auto; min-width: 12rem; margin: 0; }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--fg-15); border-radius: 24px; background: var(--gradient-card); }
.empty h2 { font-size: 1.25rem; font-weight: 600; }
.empty p { margin: 8px auto 20px; max-width: 32rem; color: var(--muted-foreground); }
.spinner { flex: none; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--fg-20); border-top-color: var(--foreground); border-radius: 50%; animation: spin .8s linear infinite; }
.loading { display: flex; align-items: center; gap: 10px; padding: 32px 0; color: var(--muted-foreground); }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translateX(-50%); width: max-content; max-width: min(36rem, 100vw - 32px); padding: 10px 18px; border: 1px solid var(--border); border-radius: 20px; text-align: center; background: var(--popover); box-shadow: var(--shadow-float); font-size: .875rem; animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Verdict and score ---------- */
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; white-space: nowrap; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; background: color-mix(in oklab, var(--c, var(--muted-foreground)) 14%, transparent); color: var(--c, var(--muted-foreground)); }
.verdict.go { --c: var(--go); } .verdict.warn { --c: var(--warn); } .verdict.stop { --c: var(--stop); }
.ring { position: relative; flex: none; width: var(--size, 96px); height: var(--size, 96px); container-type: inline-size; }
@supports (aspect-ratio: 1) { .ring { height: auto; aspect-ratio: 1 / 1; } }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--fg-10); stroke-width: 7; }
.ring .arc { fill: none; stroke: var(--c, var(--go)); stroke-width: 7; stroke-linecap: round; }
.ring.go { --c: var(--go); } .ring.warn { --c: var(--warn); } .ring.stop { --c: var(--stop); } .ring.none { --c: var(--muted-foreground); }
.ring .n { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-size: calc(var(--size, 96px) * .27); font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.ring .n small { display: block; margin-top: 3px; font-size: max(8px, calc(var(--size, 96px) * .1)); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); text-align: center; }
@supports (font-size: 1cqi) { .ring .n { font-size: 27cqi; } .ring .n small { font-size: max(8px, 10cqi); } }
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.app-card > div { min-width: 0; }
.app-card .name { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.app-card .repo { color: var(--muted-foreground); font: 400 .8rem var(--mono); overflow-wrap: anywhere; }
.app-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.app-card .foot { display: block; margin-top: 12px; padding: 0; font: 400 .8rem var(--sans); color: var(--muted-foreground); }
.badge-state { --c: var(--muted-foreground); }
.badge-state.live { --c: var(--go); } .badge-state.paused { --c: var(--warn); } .badge-state.revoked { --c: var(--stop); }
.sev { --c: var(--muted-foreground); }
.sev-1 { --c: var(--stop); } .sev-2 { --c: var(--warn); } .sev-3 { --c: var(--sky); } .sev-ok { --c: var(--go); }
.group-h { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 10px; }
.group-h h2 { font-size: 1.05rem; font-weight: 600; }
.finding { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--gradient-card), var(--surface); box-shadow: var(--edge), var(--shadow-card); }
.finding.accepted { opacity: .7; }
.finding .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.finding .t b { font-weight: 600; }
.finding .where { font: 400 .8rem var(--mono); color: var(--muted-foreground); overflow-wrap: anywhere; }
.finding .where .proj { color: var(--foreground); }
.finding dl { display: grid; gap: 8px; font-size: .9rem; }
.finding dt { font: 400 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.finding dd { margin: 2px 0 0; }
.finding .fix { color: var(--foreground); }
.finding .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.finding form { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.summary { display: flex; align-items: center; gap: var(--sp-4) 20px; }
.summary > div:not(.ring) { min-width: 0; flex: 1 1 auto; }
.summary .counts { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font: 600 12px var(--mono); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; font-weight: 500; transition: border-color .2s, background .2s; }
.tools button[aria-pressed="true"] { border-color: var(--foreground); background: var(--accent); }
.proof-step { display: grid; gap: 6px; }
.proof-step code { display: block; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.badge-wrap { max-width: 100%; overflow-x: auto; padding: 4px 0 8px; }
.badge-preview { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 4px 14px 4px 6px; border: 1px solid var(--border); border-radius: 999px; background: linear-gradient(180deg, var(--m1), var(--m2)); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-float); }
.badge-preview .mk { flex: none; width: 20px; height: 20px; }
@media (max-width: 640px) { .badge-preview { font-size: .8rem; } }
.badge-preview .lvl { display: inline-flex; gap: 2px; align-items: flex-end; }
.badge-preview .lvl i { width: 3px; border-radius: 1px; background: #fff; opacity: .3; }
.badge-preview .lvl i.f { opacity: 1; }
.badge-preview .bid { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); font: 600 10px var(--mono); letter-spacing: .03em; }
.m-S { --m1: #a3aab4; --m2: #858d98; } .m-D { --m1: #eab07a; --m2: #9a5a26; } .m-C { --m1: #d9dde3; --m2: #9ba3ad; color: #1c1f24 !important; } .m-C .lvl i, .m-C .mk .st { background: #1c1f24; } .m-L { --m1: #f2cf6a; --m2: #b8891e; } .m-X { --m1: #e6e8ee; --m2: #a7adb8; color: #1c1f24 !important; } .m-T { --m1: #2c313b; --m2: #06070a; }
.streak { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.streak small { display: block; margin-top: 4px; font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.signin { max-width: 26rem; margin: 0 auto; }
.signin .card { padding: 28px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-foreground); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.device-code { display: inline-block; max-width: 100%; white-space: nowrap; padding: 10px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); font: 700 1.9rem/1 var(--mono); letter-spacing: .15em; }
.cand { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.cand .t { min-width: 0; font-weight: 600; }
.cand .src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: .8rem; }
.cand .src a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cand-new { border-left: 3px solid var(--sky); }
.stat { display: grid; gap: 2px; }
@media (max-width: 559px) { .grid-3 .stat { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; } .grid-3 .stat b { font-size: 1.35rem; } }
.stat b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted-foreground); font-size: .8rem; }
.plan-box { display: grid; gap: 4px; }
.plan-box b { font-size: 1.25rem; }
.logo-prev { flex: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 10px; object-fit: contain; background: var(--surface-2); }
.secret-once { padding: 14px 16px; border: 1px solid color-mix(in oklab, var(--warn) 50%, transparent); border-radius: 12px; background: color-mix(in oklab, var(--warn) 10%, transparent); }
.secret-once code { display: block; margin-top: 6px; font-size: .85rem; overflow-wrap: anywhere; user-select: all; }
.offline-banner { position: fixed; inset: auto 12px 12px; z-index: 80; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--popover); box-shadow: var(--shadow-float); text-align: center; font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn-primary:hover, .card-link:hover { transform: none; }
}

/* ---------- Staff panel ---------- */
.env-strip { margin-bottom: var(--sp-4); padding: 8px 14px; border: 1px solid color-mix(in oklab, var(--amber) 50%, transparent); border-radius: 12px; background: color-mix(in oklab, var(--amber) 12%, transparent); color: var(--amber); font-size: .85rem; font-weight: 600; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.subnav a { padding: 6px 12px; border-radius: 8px; color: var(--muted-foreground); font-size: .9rem; font-weight: 500; }
.subnav a:hover { color: var(--foreground); }
.subnav a[aria-current="page"] { color: var(--foreground); background: var(--accent); }
.grid-4 { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 > * { min-width: 0; }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-2.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.card.stat { align-content: start; }
.stat .sub { display: grid; gap: 6px; margin-top: 6px; color: var(--muted-foreground); font-size: .75rem; }
.tone-go { --c: var(--go); } .tone-warn { --c: var(--warn); } .tone-stop { --c: var(--stop); } .tone-sky { --c: var(--sky); } .tone-none { --c: var(--muted-foreground); }
.bar { height: 8px; border-radius: 999px; background: var(--fg-10); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--go)); }
.rows { display: grid; gap: 10px; }
.rowbar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: .875rem; }
.rowbar > span { color: var(--muted-foreground); }
.rowbar > b { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .rowbar { grid-template-columns: minmax(0, 1fr) auto; } .rowbar .bar { grid-column: 1 / -1; order: 3; } }
.spark { width: 120px; height: 30px; }
.spark polyline { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kv { display: grid; gap: 8px; margin: 14px 0 0; font-size: .9rem; }
.kv > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted-foreground); }
.kv dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { .kv > div { grid-template-columns: 1fr; gap: 0; } }
/* A staff table keeps its words whole and scrolls sideways inside its wrap when the screen is narrow. */
.table-wrap .table th, .table-wrap .table td { overflow-wrap: normal; word-break: normal; }
.table-wrap .table td.small { min-width: 6rem; }
.table th.n, .table td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td code, .kv code, .list code { font-size: .85em; white-space: nowrap; }
.nw { white-space: nowrap; }
/* A table that must fit its card (the Money screen's "Who to write to"): fixed columns whose words wrap, so the last
   column is never cut off, and on a narrow card each row turns into labelled lines. Nothing scrolls the page sideways. */
.fit-wrap { container-type: inline-size; max-width: 100%; }
.table.fit { table-layout: fixed; width: 100%; }
.table.fit th, .table.fit td { overflow-wrap: anywhere; word-break: normal; }
.table.fit th:nth-child(1) { width: 30%; } .table.fit th:nth-child(3) { width: 13%; } .table.fit th:nth-child(4) { width: 15%; } .table.fit th:nth-child(5) { width: 20%; }
.table.fit .tag { white-space: normal; text-align: left; }
.table.fit td.when { overflow-wrap: normal; }
@container (max-width: 34rem) {
  .table.fit, .table.fit tbody, .table.fit tr, .table.fit td { display: block; width: auto; }
  .table.fit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.fit tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table.fit tr:last-child { border-bottom: 0; }
  .table.fit td { display: grid; grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; text-align: left; }
  .table.fit td::before { content: attr(data-label); color: var(--muted-foreground); font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
  .table.fit td.n { text-align: left; }
}
.u { text-decoration: underline; text-underline-offset: 3px; }
.input.search { flex: 1 1 16rem; width: auto; margin: 0; }
.input.tiny { width: 5.5rem; margin: 0; }
.toolbar .input { margin-top: 0; }
label.check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: 18px; height: 18px; accent-color: var(--brand); }
label.check .hint { flex-basis: 100%; }
.act-form { display: grid; gap: 12px; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.act-form h3 { font-size: 1rem; }
.act-form .actions { margin-top: 0; }
.timeline .what b { text-transform: capitalize; }
/* A filter row with many choices wraps onto several lines, where a full pill shape would bulge. */
.seg.wrap { border-radius: 18px; }
details.marks { margin-top: 12px; font-size: .875rem; }
details.marks summary { cursor: pointer; color: var(--muted-foreground); }
.badge-preview.off { filter: grayscale(1); opacity: .7; }
.badge-preview .bid:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.chk { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.chk .t { min-width: 0; flex: 1 1 14rem; font-size: .95rem; }
.chk .seg button { min-height: 30px; padding: 0 10px; font-size: .8rem; }
.chk .seg button[data-r="fail"][aria-pressed="true"] { background: color-mix(in oklab, var(--stop) 22%, transparent); color: var(--stop); box-shadow: inset 0 0 0 1px var(--stop); }
.chk .seg button[data-r="pass"][aria-pressed="true"] { background: color-mix(in oklab, var(--go) 22%, transparent); color: var(--go); box-shadow: inset 0 0 0 1px var(--go); }
.chk label { font-size: .8rem; color: var(--muted-foreground); }
h3.area { margin-top: var(--sp-5); font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.gaps, .rule { display: grid; gap: 8px; margin-top: 12px; font-size: .9rem; }
.gaps li { padding-left: 14px; border-left: 2px solid var(--warn); }
.rule li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 8px; }
.rule li.ok > span:first-child { color: var(--go); font-weight: 700; }
.rule li.no > span:first-child { color: var(--stop); font-weight: 700; }
.decide { border-color: color-mix(in oklab, var(--sky) 45%, transparent); }

/* Beta invites */
.link { padding: 0; border: 0; background: none; color: var(--link, inherit); font: inherit; text-decoration: underline; cursor: pointer; }
.secret-box { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; padding: 12px 14px; border: 1px solid color-mix(in oklab, var(--warn) 50%, transparent); border-radius: 12px; background: color-mix(in oklab, var(--warn) 10%, transparent); }
.secret-box code { font-size: 1.1rem; letter-spacing: .06em; user-select: all; }

/* ---------- Home summary ---------- */
.hero-sum { position: relative; display: grid; gap: var(--sp-5); margin-bottom: var(--sp-6); padding: 28px; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(40rem 20rem at 100% 0%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%), var(--gradient-card), var(--surface); box-shadow: var(--edge), var(--shadow-card); overflow: hidden; }
.hero-sum.all-go { background: radial-gradient(40rem 20rem at 100% 0%, color-mix(in oklab, var(--go) 18%, transparent), transparent 70%), var(--gradient-card), var(--surface); }
.hero-sum::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--brand-2) 60%, transparent), transparent); }
.hs-main { min-width: 0; }
.hs-main h1 { margin-top: 10px; font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.hs-main .lead { margin-top: 10px; max-width: 34rem; color: var(--muted-foreground); }
.hs-main .actions { margin-top: var(--sp-5); }
.hs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.hs-stats > div { min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in oklab, var(--background) 45%, transparent); }
.hs-stats dt { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; }
.hs-stats dd { margin: 6px 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .hero-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: end; padding: 36px; } .hs-stats { grid-template-columns: 1fr 1fr; } .hs-stats > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .hero-sum { padding: 22px; border-radius: 22px; } .hs-stats dd { font-size: 1.6rem; } .hs-stats > div { padding: 12px; } }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 var(--sp-4); }
.sec-h h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted-foreground); font: 600 11px var(--mono); }

/* ---------- Sign in: brand panel beside the form ---------- */
.auth { display: grid; gap: var(--sp-6); align-items: center; max-width: 64rem; margin: 0 auto; min-height: calc(100vh - 260px); }
.auth-pitch { display: none; }
.auth-pitch h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.04; }
.auth-pitch h1 em { font-style: normal; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch .lead { margin-top: 14px; max-width: 30rem; color: var(--muted-foreground); font-size: 1.05rem; }
.ticks { display: grid; gap: 12px; margin-top: var(--sp-5); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.ticks li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in oklab, var(--go) 18%, transparent); color: var(--go); font-size: 12px; font-weight: 800; }
.auth-demo { display: flex; align-items: center; gap: 16px; margin-top: var(--sp-6); padding: 16px 18px; max-width: 26rem; border: 1px solid var(--border); border-radius: 18px; background: var(--gradient-card), var(--surface); box-shadow: var(--edge), var(--shadow-card); }
.auth-demo b { display: block; font-size: 1rem; }
.auth-demo span { color: var(--muted-foreground); font-size: .85rem; }
.auth .signin { width: 100%; }
.auth .signin .card { padding: 30px; }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(0, 1.1fr) minmax(0, 26rem); gap: 72px; } .auth-pitch { display: block; } }

/* ---------- App tiles on Home ---------- */
.app-tile { display: grid; gap: 16px; padding: 22px; }
.app-tile .t-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.app-tile .verdict { padding: 4px 12px; font-size: .78rem; }
.app-tile .meta { gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--foreground); background: color-mix(in oklab, var(--c, var(--muted-foreground)) 8%, transparent); }
.chip .dot { width: 6px; height: 6px; background: var(--c, var(--muted-foreground)); }
.chip.zero { color: var(--muted-foreground); background: none; }
.chip.zero .dot { opacity: .35; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .8rem; }
.go-to { color: var(--foreground); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s var(--ease); }
.app-tile:hover .go-to, .app-tile:focus-visible .go-to { opacity: 1; transform: none; }
@media (hover: none) { .go-to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .wide-only { display: none; } .hs-stats dt { letter-spacing: .06em; font-size: 9.5px; white-space: normal; } .hs-main .actions .btn { flex: 1 1 auto; } }
.sheet-acct { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sheet-acct:empty { display: none; }
.plan-card.grace { border-color: color-mix(in oklab, var(--warn) 45%, var(--border)); }
.plan-card.locked { border-color: color-mix(in oklab, var(--stop) 45%, var(--border)); }
input[type="file"].input { padding: 8px; font-size: .85rem; color: var(--muted-foreground); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--foreground); font: 500 .8rem var(--sans); cursor: pointer; }
.finding { position: relative; overflow: hidden; }
.finding::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c, transparent); }
.finding:has(.sev-1) { --c: var(--stop); } .finding:has(.sev-2) { --c: var(--warn); } .finding:has(.sev-3) { --c: var(--sky); }

/* Feedback card on the dashboard (app/screens.js) */
.fb-card { margin-top: 24px; display: grid; gap: 10px; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fb-rates { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-rates [aria-pressed="true"] { border-color: var(--ring); }
.fb-form { display: grid; gap: 8px; }
.fb-form[hidden] { display: none; }
.fb-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: inherit; font: inherit; }
.fb-note { margin: 0; }
