/* Flow MCP website + license portal. Tokens mirror the plugin's admin.css. */
:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f8fafc;
  --tint: #f0faf8;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #e6f4f1;
  --brand-line: #99d5ca;
  --accent: #0891b2;
  --grad: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  --ok: #15803d; --ok-soft: #e8f6ee;
  --warn: #b45309; --warn-soft: #fdf3e2;
  --danger: #b42318; --danger-soft: #fdeceb;
  --code-bg: #0f172a; --code-text: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -16px rgba(15, 23, 42, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --faint: #64748b;
    --line: #1e293b;
    --line-strong: #334155;
    --bg: #0b1120;
    --surface: #111a2e;
    --subtle: #0f172a;
    --tint: #0d1f22;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #0f2a2a;
    --brand-line: #1f5f58;
    --accent: #22d3ee;
    --ok: #4ade80; --ok-soft: #0f2a1b;
    --warn: #fbbf24; --warn-soft: #2a210d;
    --danger: #f87171; --danger-soft: #2d1414;
    --code-bg: #020617;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(148, 163, 184, .06), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 0 0 1px rgba(148, 163, 184, .08), 0 24px 56px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* Icons inside running text default to the text size; components size their own. */
:where(a, button, span, p) > svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--subtle); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; color: var(--ink); }
pre { background: var(--code-bg); color: var(--code-text); padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .88rem; line-height: 1.55; margin: 0 0 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.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; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.is-tight { padding: 64px 0; }
.section.is-tinted { background: var(--subtle); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lede { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 1px 2px rgba(13, 148, 136, .3), 0 6px 16px -6px rgba(8, 145, 178, .55); }
.btn-primary:hover { box-shadow: 0 1px 2px rgba(13, 148, 136, .3), 0 10px 22px -8px rgba(8, 145, 178, .7); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand-line); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--subtle); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line-strong); height: 34px; padding: 0 12px; font-size: .85rem; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); font-weight: 550; font-size: .94rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--subtle); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 8px; color: #fff; padding: 0 16px; height: 38px; }
.nav .btn:hover { background: var(--grad); color: #fff; }
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--ink); }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle summary svg { width: 24px; height: 24px; }
.menu-panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; display: grid; gap: 4px; }
.menu-panel a { padding: 12px; border-radius: 8px; color: var(--ink); font-weight: 550; }
.menu-panel a:hover { background: var(--subtle); text-decoration: none; }
.menu-panel .btn { margin-top: 8px; color: #fff; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* Messages --------------------------------------------------------------- */
.messages { padding-top: 20px; display: grid; gap: 10px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--subtle); color: var(--ink); font-size: .94rem; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.alert-success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-success svg { color: var(--ok); }
.alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-error svg { color: var(--danger); }
.alert-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.alert-warning svg { color: var(--warn); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(48% 52% at 72% 38%, color-mix(in srgb, #0891b2 20%, transparent), transparent 70%),
    radial-gradient(40% 45% at 22% 18%, color-mix(in srgb, #0d9488 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.2rem; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--brand-line); background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 550; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.pill:hover { text-decoration: none; border-color: var(--brand); }
.pill b { background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Chat mock -------------------------------------------------------------- */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .92rem; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--subtle); color: var(--muted); font-size: .8rem; font-weight: 600; }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.chat-bar span { margin-left: 8px; }
.chat-body { padding: 20px; display: grid; gap: 14px; }
.msg-user { justify-self: end; max-width: 88%; background: var(--brand-soft); color: var(--ink); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.tool { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--subtle); font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.tool .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 22%, transparent); flex: none; }
.tool small { margin-left: auto; color: var(--muted); font-family: var(--font); font-size: .75rem; }
.tool .tag { font-family: var(--font); font-size: .68rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 1px 6px; }
.msg-claude { color: var(--text); }
.msg-claude strong { color: var(--ink); }
.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview-hero { height: 74px; background: linear-gradient(120deg, #fde68a, #fca5a5 55%, #f9a8d4); position: relative; }
.preview-hero::after { content: ""; position: absolute; left: 14px; top: 18px; width: 46%; height: 10px; border-radius: 4px; background: rgba(15, 23, 42, .55); box-shadow: 0 18px 0 -2px rgba(15, 23, 42, .3), 0 34px 0 -2px rgba(15, 23, 42, .3); }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: var(--surface); }
.preview-cards i { height: 34px; border-radius: 6px; background: var(--subtle); border: 1px solid var(--line); }

/* Steps / cards ---------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .96rem; }
.icon-chip { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; border: 1px solid var(--brand-line); }
.icon-chip svg { width: 21px; height: 21px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.badge-pro { background: var(--grad); color: #fff; }
.badge-free { background: var(--subtle); color: var(--muted); border: 1px solid var(--line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--subtle); color: var(--muted); border: 1px solid var(--line); }
.card h3 .badge { margin-left: 6px; }

/* Split / trust ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
.checklist strong { color: var(--ink); }
.checklist.is-compact { gap: 10px; font-size: .94rem; }
.checklist.is-compact svg { width: 18px; height: 18px; margin-top: 3px; }

/* Comparison table ------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--subtle); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--ink); }
.compare .c { text-align: center; width: 110px; }
.compare .yes svg { width: 20px; height: 20px; color: var(--brand); margin: 0 auto; }
.compare .no { color: var(--faint); }

/* Pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.plan.is-highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); background: linear-gradient(180deg, var(--tint) 0%, var(--surface) 140px); }
.plan .ribbon { position: absolute; top: -11px; left: 24px; }
.plan h3 { margin-bottom: 4px; }
.plan .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; min-height: 1.5em; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.price b { font-size: 2.4rem; font-weight: 750; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); font-size: .95rem; }
.plan .checklist { margin: 4px 0 24px; flex: 1; }
.plan .btn { margin-top: auto; }
.plan-free { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 24px; align-items: center; margin-top: 16px; }
.plan-free .checklist { grid-template-columns: 1fr 1fr; margin: 0; }
@media (max-width: 860px) { .plan-free { grid-template-columns: 1fr; } .plan-free .checklist { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: .9rem; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--grad); color: #e6fffb; border-radius: 22px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 520px; color: rgba(236, 254, 255, .88); }
.cta-band .btn-primary { background: #fff; color: #0f766e; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }

/* Page header (inner pages) ---------------------------------------------- */
.page-head { padding: 72px 0 40px; position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 320px; z-index: -1; background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, #0d9488 13%, transparent), transparent 70%); }
.page-head.is-center { text-align: center; }
.page-head.is-center .lede { margin-inline: auto; }

/* Download --------------------------------------------------------------- */
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; }
.download-card img { width: 64px; height: 64px; border-radius: 16px; }
.download-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin: 0; }
.meta-list dt { display: none; }
.meta-list dd { margin: 0; }
@media (max-width: 720px) { .download-card { grid-template-columns: 1fr; text-align: left; } }
.hash { font-family: var(--mono); font-size: .78rem; color: var(--muted); word-break: break-all; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); margin: 0; }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { color: var(--ink); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }

/* Docs ------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; display: grid; gap: 2px; font-size: .92rem; }
.toc b { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--text); padding: 6px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 56px; padding-top: 8px; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin-bottom: 1.4em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.callout { border: 1px solid var(--brand-line); background: var(--tint); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.4em; font-size: .95rem; color: var(--ink); }
.callout.is-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; grid-template-columns: 1fr 1fr; } .toc b { grid-column: 1 / -1; } }

/* Changelog -------------------------------------------------------------- */
.timeline { max-width: 820px; margin: 0 auto 96px; display: grid; gap: 0; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.release-side b { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.release-side span { color: var(--muted); font-size: .88rem; }
.release-body { min-width: 0; }
.release-body > :first-child { margin-top: 0; }
.release-body ul { padding-left: 1.2em; }
.release-body h2, .release-body h3 { font-size: 1.05rem; margin-top: 1.2em; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* Empty state ------------------------------------------------------------ */
.empty { text-align: center; padding: 56px 24px; }
.empty .icon-chip { margin: 0 auto 16px; }
.empty p { color: var(--muted); max-width: 440px; margin-inline: auto; }

/* Account ---------------------------------------------------------------- */
.auth { max-width: 460px; margin: 0 auto; padding-block: 72px 112px; }
.auth .card { padding: 32px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.7rem; letter-spacing: -.025em; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 .95rem var(--mono); letter-spacing: .02em; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .hint { color: var(--muted); font-size: .85rem; }
.field .err { color: var(--danger); font-size: .88rem; font-weight: 550; }
.auth-foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 20px; }

.dash { padding-block: 48px 112px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: 2rem; margin-bottom: 6px; }
.dash-head .meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.dash-head form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 20px 22px; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-value { color: var(--ink); font-size: 1.7rem; font-weight: 720; letter-spacing: -.02em; line-height: 1.2; }
.stat-value small { font-size: .95rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.stat-foot { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.meter { height: 8px; background: var(--subtle); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.meter.is-full i { background: var(--warn); }
.panel { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; margin: 0; letter-spacing: -.01em; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.sites { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sites th, .sites td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sites th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--subtle); }
.sites tr:last-child td { border-bottom: 0; }
.sites .host { color: var(--ink); font-weight: 600; word-break: break-all; }
.sites .host a { color: inherit; }
.sites .sub { color: var(--muted); font-size: .84rem; }
.sites td.act { text-align: right; }
.sites form { margin: 0; }
@media (max-width: 720px) {
  .sites thead { display: none; }
  .sites tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .sites tr:last-child { border-bottom: 0; }
  .sites td { padding: 0; border: 0; }
  .sites td.host-cell { grid-column: 1 / 2; }
  .sites td.act { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .sites td.col-version, .sites td.col-seen { color: var(--muted); font-size: .84rem; }
  .sites td.col-version::before { content: "Plugin "; }
  .sites td.col-seen::before { content: "Last seen "; }
}
.help-grid { margin-top: 24px; }
.help-grid h3 { font-size: 1rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--subtle); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--brand); }
.footer-grid .about { color: var(--muted); max-width: 320px; margin-top: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
