:root {
  color-scheme: dark;
  --canvas: #09090b;
  --surface: #111216;
  --surface-2: #181a20;
  --surface-3: #1f222a;
  --line: #272933;
  --line-strong: #393c4a;
  --ink: #fafafa;
  --ink-muted: #a1a1aa;
  --ink-dim: #71717a;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --crimson: #ef4444;
  --crimson-soft: rgba(239, 68, 68, 0.15);
  --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--emerald-bright); text-decoration: none; }
a:hover { color: #6ee7b7; text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 2px; }
[id] { scroll-margin-top: 84px; }
[hidden] { display: none !important; }

.shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; background: var(--canvas); }
.hero-dotgrid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}

/* Precision architectural topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--canvas); font-family: var(--mono); font-weight: 900; font-size: 0.95rem; letter-spacing: -0.04em; flex: 0 0 auto; }
.brand-mark-img { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: block; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy .eyebrow { margin: 0; font-size: 9px; letter-spacing: 0.14em; color: var(--emerald-bright); }
.brand-copy strong { font-size: 0.96rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); font-size: 0.88rem; font-weight: 550; padding: 7px 11px; border-radius: 8px; border: 1px solid transparent; transition: color 0.12s, background 0.12s, border-color 0.12s; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); border-color: var(--line); text-decoration: none; }
.nav a.nav-admin { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.nav a.nav-admin:hover, .nav a.nav-admin[aria-current="page"] { background: rgba(245, 158, 11, 0.2); color: #fef3c7; }
.nav a.nav-account { border-color: var(--line-strong); color: var(--ink); }
.nav a.nav-cta { background: var(--ink); border-color: var(--ink); color: var(--canvas); font-weight: 700; padding: 7px 14px; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: #e4e4e7; border-color: #e4e4e7; color: var(--canvas); }
.nav-session { display: inline-flex; align-items: center; gap: 8px; }
.nav-user-chip { font-family: var(--mono); font-size: 0.76rem; color: var(--emerald-bright); padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(16, 185, 129, 0.35); background: var(--emerald-soft); }

/* Container & typography */
.main { flex: 1; max-width: 1320px; width: 100%; margin: 0 auto; padding: 40px 24px 88px; }
.topbar-full .topbar-inner, .footer-full .footer-inner, .footer-full .footer-bottom { max-width: none; }
.main-full { max-width: none; padding: 24px 24px 64px; }
h1 { font-size: clamp(2.1rem, 4.1vw, 3.6rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; margin: 10px 0 18px; color: var(--ink); max-width: 880px; }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.18; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 10px; color: var(--ink); }
h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 680; margin: 0 0 8px; color: var(--ink); }
p { margin: 0 0 12px; color: var(--ink-muted); max-width: 760px; }
p:last-child { margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-bright); }
.lead { font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; color: #d4d4d8; max-width: 660px; margin: 0 0 22px; }
.text-link { color: var(--emerald-bright); font-size: 0.9rem; font-weight: 650; white-space: nowrap; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 40px; border-radius: 9px; border: 1px solid var(--ink); background: var(--ink); color: var(--canvas); font-weight: 700; font-size: 0.92rem; cursor: pointer; text-decoration: none; transition: background 0.14s, border-color 0.14s, transform 0.12s; }
.btn:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--canvas); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn-emerald { background: var(--emerald); border-color: var(--emerald); color: #04130d; }
.btn-emerald:hover { background: var(--emerald-bright); border-color: var(--emerald-bright); color: #04130d; }
.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-3); border-color: #525669; color: var(--ink); }
.btn-danger { background: var(--crimson-soft); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.28); border-color: var(--crimson); color: #fff; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 0.82rem; border-radius: 7px; }

/* Surfaces & badges */
.panel, .card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card-elevated { border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: var(--radius); padding: 22px; min-width: 0; }
.tag { display: inline-block; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink-muted); font-family: var(--mono); font-weight: 650; font-size: 11px; letter-spacing: 0.03em; align-self: flex-start; }
.tag-emerald { border-color: rgba(16, 185, 129, 0.4); background: var(--emerald-soft); color: var(--emerald-bright); }
.notice { border-left: 3px solid var(--emerald); background: var(--surface-2); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.notice p { margin: 0; max-width: none; color: #d4d4d8; font-size: 0.92rem; }

/* Original Split Hero + Live Interactive Workbench */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 40px; align-items: center; padding: 28px 0 42px; }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 999px; background: var(--emerald-soft); color: var(--emerald-bright); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); display: inline-block; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); }
.status-dot-danger { background: var(--crimson); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25); }
.hero-specs { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }

.workbench { border: 1px solid var(--line-strong); border-radius: 14px; background: #0c0d10; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); }
.workbench-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.workbench-dots { display: inline-flex; gap: 6px; }
.workbench-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; display: block; }
.workbench-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.wb-term { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; background: #070709; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: #e4e4e7; }
.wb-line-dim { color: var(--ink-dim); }
.wb-line-ok { color: var(--emerald-bright); font-weight: 700; }
.wb-line-code { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; color: #fff; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 6px 0; }
.wb-approval { border: 1px solid rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.06); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.wb-approval-resolved { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.07); }
.wb-approval-paused { border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.08); }
.wb-audit-line { font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); padding-top: 8px; border-top: 1px solid var(--line); }

/* Asymmetric Bento Grid, Pipeline Strip, Manifesto, CTA Band */
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.bento-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento-tile { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.bento-wide { grid-column: span 3; }
.pipeline-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pipeline-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pipeline-num { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--emerald-bright); }
.manifesto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cta-band { border: 1px solid var(--line-strong); border-radius: 14px; background: linear-gradient(120deg, var(--surface) 0%, #101715 100%); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Standard Layout Helpers */
.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; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Setup Configurator & Docs */
.configurator-shell { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.config-form { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.config-output { border: 1px solid var(--line-strong); border-radius: 14px; background: #0c0e12; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.seg-group { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-muted); border-radius: 8px; padding: 7px 13px; cursor: pointer; font-size: 0.85rem; font-weight: 650; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: block; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--emerald); background: rgba(16, 185, 129, 0.08); }
.radio-card small { display: block; margin-left: 22px; color: var(--ink-muted); font-weight: 400; font-size: 0.82rem; }

.ref-details { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ref-details > summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ref-details > summary::-webkit-details-marker { display: none; }
.ref-details[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ref-body { padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.ref-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ref-tab { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-muted); border-radius: 8px; padding: 7px 14px; font-size: 0.85rem; font-weight: 650; cursor: pointer; }
.ref-tab[aria-selected="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.cmd-grid, .rulebook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Products, Plans, Facts, Tables */
.product-quicklinks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.product-quicklinks a { padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 0.85rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.product-quicklinks a:hover { border-color: var(--emerald); text-decoration: none; }
.product-card { display: flex; flex-direction: column; gap: 12px; }
.featured-product { border-color: rgba(16, 185, 129, 0.55); background: linear-gradient(170deg, rgba(16, 185, 129, 0.08), var(--surface) 60%); }
.product-facts { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 12px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.84rem; margin: 4px 0 8px; }
.product-facts dt { color: var(--ink-dim); }
.product-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.product-card .btn { margin-top: auto; width: 100%; }
.price { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.price small { font-size: 0.84rem; color: var(--ink-dim); font-weight: 500; }

.table-scroll, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.product-table { min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--ink-muted); font-family: var(--mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Code & Copy */
code, pre { font-family: var(--mono); background: #070709; color: #e4e4e7; border: 1px solid var(--line); border-radius: 6px; }
code { padding: 2px 6px; font-size: 0.84em; overflow-wrap: anywhere; }
pre { margin: 0; padding: 14px; overflow-x: auto; white-space: pre; }
pre code { padding: 0; border: 0; background: transparent; font-size: 0.82rem; line-height: 1.6; }
.codebox { background: #070709; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 13px; font-family: var(--mono); font-size: 0.84rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-x: auto; }
.codebox code { border: 0; background: transparent; padding: 0; white-space: pre-wrap; word-break: break-word; }
.copy-code-wrap { position: relative; min-width: 0; }
.copy-code-wrap pre { padding-top: 44px; }
.copy-code-button { position: absolute; right: 10px; top: 9px; z-index: 1; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 650; }
.copy-code-button:hover { border-color: var(--emerald); }

/* FAQ & Accordions */
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--ink); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--emerald-bright); }
.faq-item[open] > summary::after { content: "−"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.faq-body { padding: 15px 20px 18px; color: var(--ink-muted); font-size: 0.94rem; }

/* Auth, Dashboard KPIs, Tabs, Pills, Forms, Modals */
.auth-shell { min-height: 58vh; display: grid; place-items: center; padding: 12px 0; }
.auth-card { width: min(100%, 480px); padding: 28px; }
.provider-list { display: grid; gap: 10px; }
.provider-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-weight: 650; cursor: pointer; }
.provider-btn:hover { border-color: var(--emerald); text-decoration: none; }
.provider-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--canvas); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.provider-arrow { margin-left: auto; color: var(--ink-dim); }
.auth-separator { display: flex; align-items: center; gap: 12px; color: var(--ink-dim); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.metrics-grid, .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.metric-card strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.metric-card small { font-size: 0.78rem; color: var(--ink-dim); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-family: var(--mono); font-size: 0.74rem; font-weight: 650; background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--line-strong); white-space: nowrap; }
.pill-ok { background: var(--emerald-soft); color: var(--emerald-bright); border-color: rgba(16, 185, 129, 0.35); }
.pill-warn { background: var(--amber-soft); color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); }
.pill-off { background: var(--surface-2); color: var(--ink-dim); border-color: var(--line); }
.pill-danger { background: var(--crimson-soft); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.input, .select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: #070709; color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--crimson); }
.code-input { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.18em; text-align: center; text-transform: uppercase; max-width: 280px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab { background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px; color: var(--ink-muted); cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); font-weight: 700; }

.banner { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.banner-ok { border-color: rgba(16, 185, 129, 0.45); background: var(--emerald-soft); color: #a7f3d0; }
.banner-err { border-color: rgba(239, 68, 68, 0.5); background: var(--crimson-soft); color: #fecaca; }

progress.meter { width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; appearance: none; }
progress.meter::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
progress.meter::-webkit-progress-value { background: var(--emerald); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: var(--emerald); border-radius: 999px; }

html.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60; overflow-y: auto; }
.modal { width: 100%; max-width: 580px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-close { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-muted); border-radius: 7px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.modal-close:hover { color: var(--ink); border-color: var(--emerald); }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.modal-body .row { flex-wrap: nowrap; gap: 12px; }
.modal-body .row .select { width: auto; min-width: 155px; flex-shrink: 0; }
.modal-footer { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Dedicated 2-column Admin Control Plane */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-rail { position: sticky; top: 78px; max-height: calc(100dvh - 96px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-rail-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 8px 11px; color: var(--ink-muted); font-size: 0.87rem; font-weight: 600; cursor: pointer; }
.admin-rail-btn:hover { background: var(--surface-2); color: var(--ink); }
.admin-rail-btn[aria-current="page"] { background: var(--ink); color: var(--canvas); font-weight: 700; }
.admin-rail-count { font-family: var(--mono); font-size: 0.74rem; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--ink-muted); }
.admin-rail-btn[aria-current="page"] .admin-rail-count { background: #27272a; color: #fafafa; }
.admin-stage { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-stage p { max-width: none; }
.table-entity-link { background: transparent; border: 0; padding: 0; color: var(--emerald-bright); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline dotted rgba(52, 211, 153, 0.45); text-underline-offset: 3px; }
.table-entity-link:hover { color: var(--ink); text-decoration-style: solid; }
.filter-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 165px; flex: 1; }
.filter-field label { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; }
.danger-box { border: 1px solid rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.06); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: rgba(16, 185, 129, 0.06); }

.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.mono { font-family: var(--mono); }
.list { margin: 10px 0 0; padding-left: 18px; color: var(--ink-muted); }
.list li { margin-bottom: 6px; }

/* 3-Step Connect Wizard & Method Accordion */
.connect-wizard { width: min(100%, 720px); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.wizard-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wizard-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.wizard-step { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim); font-size: 0.84rem; font-weight: 600; }
.wizard-step-num { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 800; border: 1px solid var(--line-strong); background: var(--surface-2); }
.wizard-step.is-active { border-color: var(--emerald); color: var(--ink); background: var(--surface-2); }
.wizard-step.is-active .wizard-step-num { background: var(--emerald); border-color: var(--emerald); color: #032217; }
.wizard-step.is-done { border-color: rgba(16, 185, 129, 0.4); background: var(--emerald-soft); color: var(--emerald-bright); }
.wizard-step.is-done .wizard-step-num { background: var(--emerald-bright); border-color: var(--emerald-bright); color: #032217; }

.method-accordion { display: flex; flex-direction: column; gap: 10px; }
.method-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.14s ease; }
.method-card[open] { border-color: rgba(16, 185, 129, 0.45); background: var(--surface-2); }
.method-card > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.method-card > summary::-webkit-details-marker { display: none; }
.method-head { display: flex; flex-direction: column; gap: 3px; }
.method-head strong { color: var(--ink); font-size: 0.96rem; }
.method-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.method-badge { padding: 2px 9px; border-radius: 999px; background: var(--emerald-soft); border: 1px solid rgba(16, 185, 129, 0.45); color: var(--emerald-bright); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.method-caret { font-family: var(--mono); color: var(--ink-dim); font-size: 13px; transition: transform 0.14s ease; }
.method-card[open] .method-caret { transform: rotate(180deg); color: var(--emerald-bright); }
.method-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.btn-full { width: 100%; justify-content: center; padding: 12px 18px; font-size: 0.96rem; }

/* Architectural footer */
.footer { border-top: 1px solid var(--line); background: #070709; padding: 40px 24px; color: var(--ink-dim); font-size: 0.88rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col strong { color: var(--ink); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: var(--ink-muted); font-size: 0.86rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { max-width: 1320px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.78rem; }

@media (max-width: 1080px) {
  .hero-split, .configurator-shell, .admin-shell { grid-template-columns: 1fr; }
  .admin-rail { position: static; max-height: none; overflow-y: visible; flex-direction: row; flex-wrap: wrap; }
  .admin-rail-btn { width: auto; }
  .metrics-grid, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-quicklinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bento-tile, .bento-wide { grid-column: span 6; }
  .pipeline-strip, .manifesto-grid, .grid-2, .grid-3, .cmd-grid, .rulebook-grid, .component-grid, .footer-inner { grid-template-columns: 1fr; }
  .product-quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .main { padding: 26px 16px 64px; }
  .topbar-inner { padding: 12px 16px; }
  .metrics-grid, .kpi-grid, .product-quicklinks { grid-template-columns: 1fr; }
  .modal-body .row { flex-wrap: wrap; }
  .modal-body .row .select { width: 100%; }
}
