:root {
  --ink: #0b0b0b;
  --muted: #667085;
  --faint: #667085;
  --line: #e7e1db;
  --line2: #d7cfc7;
  --bg: #f7f4f0;
  --panel: #ffffff;
  --panel2: #fbf8f5;
  --sidebar: #070707;
  --sidebar2: #161616;
  --accent: #ff4d00;
  --accent-text: #a63600;
  --accent2: #d94100;
  --good: #056b49;
  --good-bg: #e8f8f1;
  --warn: #9a6700;
  --warn-bg: #fff7df;
  --bad: #b42318;
  --bad-bg: #fff0ee;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 28px rgba(16,24,40,.06);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px;
  background: #fff; color: var(--ink); border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 680; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 660; }
h3 { font-size: 17px; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.eyebrow { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.eyebrow.light { color: #ffb08a; }
.accent-text { color: #ff8a5c; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#ff8a4d,#ff4d00); color: #0b0b0b; font-size: 15px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(255,77,0,.35); }
.brand.large { font-size: 20px; }
.brand.large .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }

/* ---------- buttons and forms ---------- */
.primary-btn, .ghost-btn, .danger-btn, .link-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; border: 1px solid transparent; padding: 9px 14px; font-weight: 650;
  font-size: 13px; cursor: pointer; transition: .15s ease; text-decoration: none; white-space: nowrap;
}
.primary-btn { background: var(--accent); color: #0b0b0b; box-shadow: 0 1px 2px rgba(38,15,5,.18), 0 4px 14px rgba(255,77,0,.16); }
.primary-btn:hover { background: #ff6a24; color: #0b0b0b; text-decoration: none; transform: translateY(-1px); }
.primary-btn.large { padding: 13px 20px; font-size: 14.5px; }
.primary-btn.full { width: 100%; padding: 12px 16px; }
.primary-btn.accent { background: var(--ink); color: #fff; }
.ghost-btn { background: #fff; border-color: var(--line2); color: var(--ink); }
.ghost-btn:hover { background: var(--panel2); text-decoration: none; }
.danger-btn { background: #fff; border-color: #f1c0ba; color: var(--bad); }
.danger-btn:hover { background: var(--bad-bg); }
.link-btn { background: none; border: 0; color: var(--muted); padding: 4px 0; font-weight: 550; }
.link-btn:hover { color: var(--ink); }
.text-link { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line2); }
.text-link:hover { border-color: var(--ink); text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: #344054; }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line2); border-radius: 8px;
  padding: 10px 12px; color: var(--ink); outline: none; transition: .15s; font-size: 13.5px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,109,242,.13); }
textarea { resize: vertical; min-height: 86px; }
.inline-form { display: inline; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.stack-form { display: grid; gap: 16px; margin-top: 22px; }
.form-hint { color: var(--faint); font-size: 11.5px; line-height: 1.5; }
.check-row { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.check-row input { width: auto; margin-top: 3px; }
.inline-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-fields > * { flex: 1 1 150px; }

/* ---------- flash ---------- */
.flash { margin: 18px 30px 0; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 550; border: 1px solid; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.flash-close { background: transparent; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.flash[hidden] { display: none; }
.flash.warn { background: var(--warn-bg); border-color: #f1dfa7; color: var(--warn); }
.flash.good { background: var(--good-bg); border-color: #b7ebd4; color: var(--good); }
.flash.bad { background: var(--bad-bg); border-color: #ffd0ca; color: var(--bad); }

/* ---------- app shell ---------- */
.app-shell { display: grid; grid-template-columns: 272px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); color: #d4d4d4; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.sidebar .brand { color: #fff; font-size: 17px; }
.workspace-picker { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 11px; }
.workspace-picker .eyebrow { color: #c49a86; margin-bottom: 6px; }
.workspace-picker select { background: var(--sidebar2); color: #f5f5f5; border-color: rgba(255,255,255,.16); padding: 8px 9px; font-size: 12px; text-overflow: ellipsis; }
.workspace-current { color: #f5f5f5; font-size: 11.5px; line-height: 1.35; margin-top: 7px; overflow-wrap: anywhere; }
.workspace-picker .muted { color: #b9b9b9; margin-top: 5px; }
.main-nav { display: grid; gap: 3px; }
.nav-label { color: #b8a096; font: 700 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 11px 10px 3px; }
.nav-label:first-child { margin-top: 0; }
.main-nav a { color: #d4d4d4; padding: 8px 10px; border-radius: 7px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 550; text-decoration: none; }
.nav-icon { width: 17px; height: 17px; flex: 0 0 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav a span { color: #9c8377; width: 15px; text-align: center; font-size: 13px; }
.main-nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.main-nav a.active { background: rgba(255,77,0,.14); color: #fff; box-shadow: inset 2px 0 0 #ff4d00; }
.main-nav a.active svg { color: #ff8a5c; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 13px; }
.sidebar-foot .admin-link { color: #d4d4d4; font-size: 12.5px; }
.sidebar-foot .admin-section-label { color: #b8a096; margin-top: 2px; }
.sidebar-foot .admin-link.active { color: #fff; }
.sidebar-foot .muted { color: #b9b9b9; font-size: 11px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.main:focus { outline: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; background: rgba(8,8,8,.94); border-bottom: 1px solid #242424; backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-context { color: #f5f5f5; font-size: 13px; font-weight: 650; letter-spacing: -.01em; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right .ghost-btn { background: #161616; border-color: #353535; color: #f5f5f5; }
.topbar-right .ghost-btn:hover { background: #222; }
.topbar .link-btn { color: #c9c9c9; }
.topbar .link-btn:hover { color: #fff; }
.menu-btn { display: none; background: #161616; border: 1px solid #353535; border-radius: 7px; padding: 6px 9px; color: #f5f5f5; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: #2b160c; color: #ffb08a; font-size: 11px; font-weight: 700; text-transform: uppercase; border: 1px solid #4b2a1a; }
.app-foot { margin-top: auto; padding: 24px 30px 20px; color: var(--faint); font-size: 11.5px; font-family: var(--mono); border-top: 1px solid var(--line); }
.page { padding: 30px; max-width: 1440px; width: 100%; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(25px, 3vw, 36px); margin-bottom: 5px; }
.page-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel.pad-lg { padding: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.stat { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 11.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.stat .value { font-size: 27px; letter-spacing: -.04em; font-weight: 680; margin: 7px 0 2px; }
.stat .sub { color: var(--faint); font-size: 11.5px; }
.stat.accent { background: linear-gradient(135deg,#121212,#24130b); border-color: #3b2416; color: #fff; }
.stat.accent .label, .stat.accent .sub { color: #d8b5a2; }
.stat.blue { background: linear-gradient(135deg,#fff1e8,#fff); border-color: #ffd4bd; }
.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); border-color: #b7ebd4; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: #f1dfa7; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: #ffd0ca; }
.pill.muted { background: #f4efea; color: var(--muted); border-color: var(--line); }
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
th { text-align: left; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 10px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; color: #344054; }
tr:last-child td { border-bottom: 0; }
td strong, td b { color: var(--ink); }
td.num, th.num { text-align: right; font-family: var(--mono); }
td .sub { display: block; color: var(--faint); font-size: 10.5px; margin-top: 2px; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.empty { color: var(--muted); text-align: center; padding: 24px 18px; font-size: 13px; }
.empty-state { border: 1px dashed var(--line2); border-radius: 10px; padding: 26px; text-align: center; color: var(--muted); margin: 14px 0; }
.split-list { display: grid; gap: 0; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.split-row:last-child { border-bottom: 0; }
.split-row .meta { color: var(--faint); font-size: 10.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.good { background: #12b76a; box-shadow: 0 0 0 3px #e7f8f0; }
.dot.warn { background: #f79009; box-shadow: 0 0 0 3px #fff5e5; }
.dot.bad { background: #f04438; box-shadow: 0 0 0 3px #fff0ee; }
.codeblock { background: #080808; color: #f1e9e4; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 11.5px/1.8 var(--mono); }
.codeblock .c { color: #a58e80; }
.codeblock .g { color: #8ee0b8; }
.tip { background: #fff4ed; border: 1px solid #ffd4bd; border-radius: 10px; padding: 13px 15px; font-size: 12.5px; color: #5b2b16; }
.tip b { color: #0b0b0b; }
.danger-zone { border-color: #f1c0ba; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 4px; }
.form-card .muted { margin-bottom: 16px; font-size: 12.5px; }
.section-gap { margin-top: 20px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; font-size: 12.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--ink); }
.note { border-left: 3px solid var(--accent); background: #fff5ef; padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 12.5px; color: #5b2b16; }
.note.warn { border-left-color: #f79009; background: #fffbf0; color: #7a5100; }
.note.good { border-left-color: var(--good); background: var(--good-bg); color: #086343; }
.scope-note { margin: 0 0 20px; padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #fff5ef; color: #5b2b16; font-size: 12.5px; }
.scope-note p { margin: 5px 0 0; }
.scope-note b { color: var(--ink); }
.check-grid { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; display: grid; gap: 9px; }
.check-grid legend { padding: 0 4px; font-size: 12.5px; font-weight: 600; color: #344054; }
.check-grid .check-row { margin: 0; font-weight: 500; }
.check-grid .check-row input { width: auto; margin-top: 2px; flex: 0 0 auto; }
.check-grid .check-row b { display: block; color: var(--ink); }
.action-drawer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); margin-top: 20px; }
.action-drawer > summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--ink); }
.action-drawer > .grid-2 { padding: 0 20px 20px; margin-top: 0; }

/* ---------- auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px,1.15fr) minmax(380px,.85fr); background: #fff; }
.auth-brand { background: radial-gradient(1200px 700px at 10% 0%, #3a1405 0%, #0a0a0a 48%, #050505 100%); color: #fff; padding: 38px 48px; display: flex; flex-direction: column; min-height: 100vh; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -190px; bottom: -210px; border-radius: 50%; border: 1px solid rgba(255,77,0,.22); box-shadow: 0 0 0 70px rgba(255,77,0,.055), 0 0 0 140px rgba(255,77,0,.035); pointer-events: none; }
.auth-copy { margin: auto 0; max-width: 620px; }
.auth-copy h1 { margin: 16px 0 20px; font-size: clamp(38px, 4.8vw, 64px); }
.auth-copy p { color: #e2c4b5; font-size: 15px; max-width: 50ch; line-height: 1.7; }
.auth-bullets { display: grid; gap: 16px; margin-top: 30px; max-width: 500px; }
.auth-bullets div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.11); }
.auth-bullets b { font-size: 12.5px; color: #fff3ed; }
.auth-bullets span { font-size: 12px; color: #c8aca0; }
.auth-foot { color: #a08579; font-size: 10.5px; font-family: var(--mono); margin-top: 28px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-inner { width: 100%; max-width: 420px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-form .eyebrow { margin-bottom: 8px; }
.auth-form h2 { margin-bottom: 5px; font-size: 30px; }
.auth-form > .muted { margin-bottom: 0; font-size: 13px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 12.5px; }
.auth-switch a { font-weight: 650; }
.auth-legal { margin-top: 34px; color: var(--faint); font-size: 10.5px; line-height: 1.6; text-align: center; }

/* ---------- marketing ---------- */
.marketing { background: #080d17; color: #eef2f8; }
.m-nav { max-width: 1240px; margin: 0 auto; padding: 24px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m-nav .brand { color: #fff; }
.m-nav nav { display: flex; gap: 24px; }
.m-nav nav a { color: #98a9c2; font-size: 12.5px; font-weight: 550; }
.m-nav nav a:hover { color: #fff; text-decoration: none; }
.m-actions { display: flex; gap: 9px; }
.m-actions .ghost-btn { background: transparent; border-color: rgba(255,255,255,.18); color: #dfe8f7; }
.m-actions .ghost-btn:hover { background: rgba(255,255,255,.06); }
.m-actions .primary-btn { background: #fff; color: #0b1220; }
.hero { max-width: 1240px; margin: 0 auto; padding: 76px 34px 66px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 60px; align-items: center; }
.hero .eyebrow { color: #7e94b6; }
.hero h1 { margin: 17px 0 22px; font-size: clamp(44px, 5.6vw, 76px); }
.hero-sub { color: #a4b4cc; font-size: 16px; line-height: 1.7; max-width: 58ch; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin: 30px 0 28px; flex-wrap: wrap; }
.hero-actions .primary-btn { background: #fff; color: #0b1220; }
.hero-actions .text-link { color: #cdd9eb; border-color: #394861; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; color: #6f84a5; font-size: 10.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.trust-row span::before { content: "✓"; color: #5fd9a8; margin-right: 5px; }
.hero-card { border-radius: 18px; background: linear-gradient(145deg,#101a2c,#0a101c); border: 1px solid #24324a; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05); padding: 9px; transform: rotate(.6deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 12px; color: #667b9a; font: 10px var(--mono); }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #334259; }
.window-bar span:first-child { background: #7a4351; }
.window-bar em { font-style: normal; margin-left: 8px; }
.mini-console { display: grid; grid-template-columns: 138px 1fr; min-height: 330px; border: 1px solid #1f2d43; border-radius: 12px; overflow: hidden; background: #0d1524; }
.mini-side { padding: 15px 12px; border-right: 1px solid #1d2a3e; display: grid; align-content: start; gap: 11px; color: #6f84a5; font-size: 9.5px; }
.mini-side b { color: #cfe0ff; font-size: 9.5px; }
.mini-main { padding: 15px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #a7b8d2; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.mini-stats div { background: #121e32; border: 1px solid #1d2c43; border-radius: 8px; padding: 9px; }
.mini-stats small { display: block; color: #6e83a4; font-size: 7.5px; text-transform: uppercase; letter-spacing: .06em; }
.mini-stats strong { display: block; margin-top: 4px; color: #f2f6ff; font-size: 15px; letter-spacing: -.03em; }
.mini-chart { margin-top: 14px; height: 104px; display: flex; align-items: end; gap: 5px; border-bottom: 1px solid #1d2c43; padding: 0 2px 6px; }
.mini-chart i { flex: 1; background: linear-gradient(180deg,#7da5ff,#3d64c9); border-radius: 3px 3px 0 0; opacity: .85; }
.mini-row { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #1d2c43; padding: 8px 0; font-size: 9px; color: #8fa2be; }
.mini-row b { color: #5fd9a8; font-weight: 500; }
.logo-strip { max-width: 1240px; margin: 0 auto; padding: 24px 34px 54px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid #1a263a; }
.logo-strip span { color: #607390; font: 9px var(--mono); letter-spacing: .12em; }
.logo-strip b { color: #7f92ae; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.feature-section { max-width: 1240px; margin: 0 auto; padding: 82px 34px; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head .eyebrow { color: #7e94b6; }
.section-head h2 { margin: 12px 0; }
.section-head p { color: #91a3bd; font-size: 14.5px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feature-card { background: linear-gradient(145deg,#0e1727,#0b1220); border: 1px solid #1d2b41; border-radius: 14px; padding: 22px; }
.feature-card.wide { grid-column: span 2; }
.feature-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(111,147,255,.12); border: 1px solid rgba(111,147,255,.25); color: #9db9ff; display: grid; place-items: center; margin-bottom: 18px; font-size: 15px; }
.feature-card h3 { color: #eef3fb; margin-bottom: 7px; font-size: 15px; }
.feature-card p { color: #8fa2bd; font-size: 12.5px; line-height: 1.7; margin-bottom: 0; }
.feature-card pre { background: #070c15; border: 1px solid #1b283d; border-radius: 8px; color: #a8bddb; padding: 12px; font: 10px/1.7 var(--mono); overflow-x: auto; margin: 16px 0 0; }
.models-band { max-width: 1240px; margin: 0 auto; padding: 76px 34px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; border-top: 1px solid #1a263a; }
.models-band .eyebrow { color: #7e94b6; }
.models-band h2 { margin: 12px 0; }
.models-band p { color: #91a3bd; font-size: 14px; line-height: 1.7; }
.models-band .primary-btn { margin-top: 10px; background: #fff; color: #0b1220; }
.model-list { display: grid; gap: 9px; }
.model-row { display: grid; grid-template-columns: 1.5fr .7fr .7fr .6fr; gap: 14px; align-items: center; background: #0e1727; border: 1px solid #1d2b41; border-radius: 10px; padding: 13px 15px; }
.model-row b { color: #eef3fb; font-size: 12.5px; display: block; }
.model-row small { color: #6f84a5; font-size: 9.5px; display: block; margin-bottom: 2px; }
.model-row > div:not(:first-child) { text-align: right; }
.cta-section { max-width: 1172px; margin: 0 auto 84px; padding: 44px 48px; border-radius: 20px; background: linear-gradient(120deg,#17294a,#101a2d); border: 1px solid #2a3e60; display: flex; justify-content: space-between; align-items: center; gap: 34px; }
.cta-section h2 { margin: 10px 0; font-size: 30px; }
.cta-section p { color: #a6b7d0; max-width: 62ch; margin-bottom: 0; line-height: 1.7; }
.cta-section .primary-btn { background: #fff; color: #0b1220; flex: 0 0 auto; }
.m-foot { max-width: 1240px; margin: 0 auto; padding: 22px 34px 36px; border-top: 1px solid #1a263a; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #607390; font: 10px var(--mono); flex-wrap: wrap; }
.m-foot .brand { color: #cdd9eb; font-size: 14px; }
.m-foot a { color: #8fa2bd; }

/* ---------- playground ---------- */
.playground-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.chat-panel { min-height: 560px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel2); }
.chat-head strong { font-size: 13px; }
.chat-log { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; max-height: 500px; min-height: 310px; background: #fdfaf7; }
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg .bubble { border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .bubble { background: #0b0b0b; color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant .bubble { background: #fff; border: 1px solid var(--line); color: #243044; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.msg .who { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #fff0e8; color: #a63600; font: 9px var(--mono); flex: 0 0 auto; }
.msg.user .who { background: #e6f7ef; color: #087a55; }
.chat-compose { border-top: 1px solid var(--line); padding: 13px 15px; display: grid; gap: 9px; background: #fff; }
.chat-compose textarea { min-height: 64px; border-color: var(--line); resize: none; }
.chat-compose .compose-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--faint); font-size: 10.5px; }
.side-stack { display: grid; gap: 14px; }
.side-stack .panel { padding: 16px; }
.metric-list { display: grid; gap: 10px; }
.metric-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.metric-list b { color: var(--ink); font-family: var(--mono); font-size: 11.5px; }
.quick-prompts { display: grid; gap: 6px; }
.quick-prompts button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; color: #475467; cursor: pointer; }
.quick-prompts button:hover { border-color: var(--line2); background: var(--panel2); }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 34px; }
.docs-nav { position: sticky; top: 96px; display: grid; gap: 5px; align-self: start; }
.docs-nav a { color: var(--muted); font-size: 12.5px; padding: 4px 0; }
.docs-nav a:hover { color: var(--ink); text-decoration: none; }
.docs-content { max-width: 820px; }
.docs-content h1 { font-size: 34px; margin-bottom: 10px; }
.docs-content h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.docs-content h3 { margin: 22px 0 7px; }
.docs-content p, .docs-content li { color: #475467; font-size: 13.5px; line-height: 1.75; }
.docs-content code { font-family: var(--mono); font-size: 11.5px; background: #f2f4f8; border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.docs-content pre { background: #0b1220; color: #d6e1f5; border-radius: 10px; padding: 15px 17px; overflow-x: auto; font: 11.5px/1.8 var(--mono); }
.docs-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.docs-content table { margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.docs-content th, .docs-content td { padding: 9px 12px; }
.docs-content th { background: var(--panel2); }
.docs-content td { color: #475467; }

/* ---------- misc ---------- */
.chart-bars { display: flex; align-items: end; gap: 7px; height: 160px; padding-top: 14px; min-width: 0; overflow: hidden; }
.chart-bars .bar { flex: 1; min-width: 3px; max-width: 48px; background: linear-gradient(180deg,#ffb08a,#ff4d00); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.chart-bars .bar:hover { background: linear-gradient(180deg,#ff8a4d,#d94100); }
.chart-labels { display: flex; gap: 7px; color: var(--faint); font: 10px var(--mono); margin-top: 7px; min-width: 0; overflow: hidden; }
.chart-labels span { flex: 1; min-width: 0; text-align: center; overflow: hidden; white-space: nowrap; }
.inline-code { font-family: var(--mono); font-size: 11.5px; background: #f4efea; border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.key-reveal { border: 1px solid #b7ebd4; background: var(--good-bg); border-radius: 12px; padding: 15px; margin-bottom: 18px; }
.key-reveal strong { display: block; color: #086343; font-size: 12px; margin-bottom: 7px; }
.key-reveal code { display: block; background: #fff; border: 1px solid #b7ebd4; border-radius: 7px; padding: 9px 11px; font: 11.5px var(--mono); color: #086343; overflow-x: auto; white-space: nowrap; }
.key-reveal p { color: #32735b; font-size: 11.5px; margin: 8px 0 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 12px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }
.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; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .playground-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-card { max-width: 680px; transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .models-band { grid-template-columns: 1fr; gap: 30px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: .2s; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  body.nav-open .sidebar { transform: translateX(0); }
  .menu-btn { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(6,12,22,.55); }
  body.nav-open .nav-backdrop { display: block; }
  .nav-close { display: inline-grid; place-items: center; position: absolute; top: 17px; right: 15px; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
  .topbar { padding: 0 18px; }
  .topbar-context { max-width: calc(100vw - 180px); }
  .page { padding: 22px 18px; }
  .flash { margin: 14px 18px 0; }
  .app-foot { padding: 20px 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 28px 20px; min-height: 100vh; align-items: flex-start; padding-top: 40px; }
  .auth-mobile-brand { display: block; }
  .hero { padding: 38px 20px 44px; }
  .m-nav { padding: 18px 20px; }
  .m-nav nav { display: none; }
  .m-actions .ghost-btn { display: none; }
  .logo-strip, .feature-section, .models-band { padding-left: 20px; padding-right: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: auto; }
  .cta-section { margin: 0 20px 56px; padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .m-foot { padding: 20px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: 1fr 1fr; }
  .model-row > div:nth-child(3) { text-align: left; }
  .model-row > div:nth-child(4) { text-align: left; }
  .page-head { flex-direction: column; }
  .table-wrap { margin: 0 -20px -20px; }
  th, td { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4 .stat { padding: 14px; }
  .grid-4 .stat .value { font-size: 21px; }
  .topbar-right .ghost-btn { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .auth-panel { padding: 26px 18px; }
  .cta-section h2 { font-size: 24px; }
  .chart-bars { height: 110px; }
}

/* ---------- dark soft-UI / magenta customer theme ---------- */
body.theme-neo {
  --ink: #f4f4f7;
  --muted: #b8b9c2;
  --faint: #a0a1ab;
  --line: #35363d;
  --line2: #484952;
  --bg: #1b1c1f;
  --panel: #25262b;
  --panel2: #2b2c31;
  --sidebar: #17181b;
  --sidebar2: #232428;
  --accent: #ff2f92;
  --accent-text: #ff9acb;
  --accent2: #b51cff;
  --good: #5be3ae;
  --good-bg: #132e24;
  --warn: #ffc06a;
  --warn-bg: #332714;
  --bad: #ff9cab;
  --bad-bg: #351a22;
  --shadow: 12px 12px 28px rgba(0,0,0,.38), -8px -8px 22px rgba(255,255,255,.022);
  --radius: 22px;
  background: var(--bg);
  color: var(--ink);
}
body.theme-neo .eyebrow { color: var(--faint); }
body.theme-neo .brand-mark {
  background: linear-gradient(145deg,#ff4fa8,#b51cff);
  color: #13000d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 22px rgba(255,47,146,.24);
}
body.theme-neo .skip-link { background: #2a2b31; color: var(--ink); box-shadow: var(--shadow); }
body.theme-neo a { color: var(--accent-text); }
body.theme-neo .topbar {
  background: rgba(23,24,27,.94);
  border-bottom-color: #303138;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
body.theme-neo .topbar-context { color: var(--ink); }
body.theme-neo .topbar-right .ghost-btn { background: #25262b; border-color: #41424b; color: var(--ink); }
body.theme-neo .topbar-right .ghost-btn:hover { background: #303138; }
body.theme-neo .topbar .link-btn { color: #c5c6cf; }
body.theme-neo .topbar .link-btn:hover { color: #fff; }
body.theme-neo .menu-btn { background: #25262b; border-color: #41424b; color: var(--ink); }
body.theme-neo .avatar { background: #33182b; color: #ffb3d9; border-color: #5b2a4d; }
body.theme-neo .sidebar {
  background: linear-gradient(180deg,#1b1c20 0%,#141518 100%);
  color: #d9d9df;
  border-right: 1px solid #2d2e34;
}
body.theme-neo .workspace-picker {
  background: linear-gradient(145deg,#28292e,#1f2024);
  border-color: #393a42;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 6px 6px 18px rgba(0,0,0,.18);
}
body.theme-neo .workspace-picker .eyebrow { color: #d9a3bf; }
body.theme-neo .workspace-picker select { background: #202126; color: var(--ink); border-color: #44454f; }
body.theme-neo .workspace-current { color: #f1f1f5; }
body.theme-neo .workspace-picker .muted { color: #b8b9c2; }
body.theme-neo .nav-label { color: #c59ab2; }
body.theme-neo .main-nav a { color: #c8c9d2; }
body.theme-neo .main-nav a:hover { background: rgba(255,47,146,.08); color: #fff; }
body.theme-neo .main-nav a.active {
  background: linear-gradient(90deg,rgba(255,47,146,.24),rgba(181,28,255,.08));
  color: #fff;
  box-shadow: inset 2px 0 0 #ff2f92;
}
body.theme-neo .main-nav a.active svg { color: #ff9acb; }
body.theme-neo .sidebar-foot { border-top-color: #303138; }
body.theme-neo .sidebar-foot .admin-link { color: #c8c9d2; }
body.theme-neo .sidebar-foot .admin-section-label { color: #c59ab2; }
body.theme-neo .sidebar-foot .muted { color: #a0a1ab; }
body.theme-neo .primary-btn {
  background: linear-gradient(135deg,#ff4fa8,#c21cff);
  border-color: transparent;
  color: #13000d;
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(255,47,146,.22), inset 0 1px 0 rgba(255,255,255,.25);
}
body.theme-neo .primary-btn:hover { background: linear-gradient(135deg,#ff6bb6,#d33cff); color: #13000d; }
body.theme-neo .primary-btn.accent { background: #25262b; color: var(--ink); border-color: #484952; }
body.theme-neo .ghost-btn {
  background: linear-gradient(145deg,#2c2d33,#232429);
  border-color: #41424b;
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
}
body.theme-neo .ghost-btn:hover { background: #33343b; }
body.theme-neo .danger-btn { background: #351a22; border-color: #6b2c3c; color: #ffb3c0; }
body.theme-neo .link-btn { color: #b8b9c2; }
body.theme-neo .text-link { color: var(--ink); border-bottom-color: #5a5b66; }
body.theme-neo input, body.theme-neo select, body.theme-neo textarea {
  background: #202126;
  border-color: #42434c;
  color: var(--ink);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28);
  border-radius: 12px;
}
body.theme-neo input::placeholder, body.theme-neo textarea::placeholder { color: #8f909a; }
body.theme-neo label { color: #d2d3dc; }
body.theme-neo .form-hint { color: var(--faint); }
body.theme-neo .panel, body.theme-neo .form-card, body.theme-neo .stat,
body.theme-neo .action-drawer, body.theme-neo .model-card, body.theme-neo [data-model-card] {
  background: linear-gradient(145deg,#292a2f 0%,#222329 100%);
  border-color: #393a42;
  box-shadow: var(--shadow);
}
body.theme-neo .panel, body.theme-neo .form-card, body.theme-neo .stat,
body.theme-neo .action-drawer { border-radius: var(--radius); }
body.theme-neo .panel-head p, body.theme-neo .muted { color: var(--muted); }
body.theme-neo .stat.accent {
  background: linear-gradient(145deg,#321a2a,#1f1720);
  border-color: #5b2b49;
  box-shadow: 12px 12px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.035);
}
body.theme-neo .stat.accent .label, body.theme-neo .stat.accent .sub { color: #e2a9c4; }
body.theme-neo .stat.blue { background: linear-gradient(145deg,#2b2330,#211f26); border-color: #46344d; }
body.theme-neo .stat .sub { color: var(--faint); }
body.theme-neo .pill.good { background: #16362a; color: #74edc0; border-color: #245943; }
body.theme-neo .pill.warn { background: #382b18; color: #ffd08a; border-color: #68502a; }
body.theme-neo .pill.bad { background: #3b1c25; color: #ffb1bd; border-color: #6a2d3d; }
body.theme-neo .pill.muted { background: #303138; color: #c5c6cf; border-color: #464751; }
body.theme-neo .table-wrap { color: var(--ink); }
body.theme-neo table { color: var(--ink); }
body.theme-neo th { background: #202126; color: #b8b9c2; border-color: #37383f; }
body.theme-neo td { color: #d7d8df; border-color: #303138; }
body.theme-neo tr:last-child td { border-bottom: 0; }
body.theme-neo .empty { color: #b8b9c2; }
body.theme-neo .flash.good { background: #15362a; border-color: #245943; color: #7beac1; }
body.theme-neo .flash.warn { background: #382b18; border-color: #68502a; color: #ffd08a; }
body.theme-neo .flash.bad { background: #3b1c25; border-color: #6a2d3d; color: #ffb1bd; }
body.theme-neo .note {
  background: #2d1c27;
  border-left-color: var(--accent);
  color: #f1c8dd;
}
body.theme-neo .note.warn { background: #332714; border-left-color: #ffc06a; color: #ffdca5; }
body.theme-neo .note.good { background: #16362a; border-left-color: #5be3ae; color: #9df0cf; }
body.theme-neo .scope-note { background: #2d1c27; color: #f1c8dd; border-color: #493044; border-left-color: var(--accent); }
body.theme-neo .tip { background: #2d1c27; border-color: #493044; color: #f1c8dd; }
body.theme-neo .tip b { color: var(--ink); }
body.theme-neo .check-grid { border-color: #42434c; background: #202126; }
body.theme-neo .check-grid legend { color: #d2d3dc; }
body.theme-neo .check-grid .check-row b { color: var(--ink); }
body.theme-neo .action-drawer > summary { color: var(--ink); }
body.theme-neo .codeblock { background: #101114; color: #f0e8f3; }
body.theme-neo .codeblock .c { color: #a58eaa; }
body.theme-neo .inline-code { background: #2d2e34; border-color: #45464f; color: #f1d0e4; }
body.theme-neo .chat-log { background: #1d1e22; }
body.theme-neo .msg.assistant .bubble { background: #2a2b31; border-color: #3b3c44; color: #e2e3ea; }
body.theme-neo .msg.user .bubble { background: linear-gradient(135deg,#ff2f92,#b51cff); color: #13000d; }
body.theme-neo .msg .who { background: #382132; color: #ffb3d9; }
body.theme-neo .msg.user .who { background: #2d352f; color: #8ee0b8; }
body.theme-neo .chart-bars .bar { background: linear-gradient(180deg,#ff8ac4,#b51cff); }
body.theme-neo .chart-bars .bar:hover { background: linear-gradient(180deg,#ff4fa8,#d33cff); }
body.theme-neo .chart-labels { color: #a0a1ab; }
body.theme-neo .app-foot { color: #a0a1ab; border-top-color: #303138; }
body.theme-neo .auth-shell { background: var(--bg); color: var(--ink); }
body.theme-neo .auth-brand { background: radial-gradient(1200px 700px at 10% 0%, #4a163a 0%, #1b111c 48%, #0d0e11 100%); }
body.theme-neo .auth-brand::after { border-color: rgba(255,47,146,.2); box-shadow: 0 0 0 70px rgba(255,47,146,.035), 0 0 0 140px rgba(181,28,255,.025); }
body.theme-neo .auth-copy p { color: #d4b6c7; }
body.theme-neo .auth-bullets b { color: #fff1f8; }
body.theme-neo .auth-bullets span { color: #c59ab2; }
body.theme-neo .auth-foot { color: #a58e9e; }
body.theme-neo .auth-panel { background: var(--bg); }
body.theme-neo .auth-legal { color: #a0a1ab; }
body.theme-neo .docs-content p, body.theme-neo .docs-content li { color: #c9cad2; }
body.theme-neo .docs-content code { background: #2d2e34; border-color: #45464f; color: #f1d0e4; }
body.theme-neo .docs-content pre { background: #101114; color: #f0e8f3; }
body.theme-neo .docs-content th { background: #202126; }
body.theme-neo .docs-content td { color: #d7d8df; }
body.theme-neo .key-reveal { background: #16362a; border-color: #245943; }
body.theme-neo .key-reveal strong, body.theme-neo .key-reveal p { color: #9df0cf; }
body.theme-neo .key-reveal code { background: #101114; border-color: #245943; color: #9df0cf; }
body.theme-neo .tabs { border-bottom-color: #37383f; }
body.theme-neo .tabs a { color: #b8b9c2; }
body.theme-neo .tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
body.theme-neo .grid-3 > .check-row { background: #202126 !important; border-color: #42434c !important; }
body.theme-neo .grid-3 > div { background: #202126 !important; border-color: #42434c !important; }
body.theme-neo .model-card:hover { border-color: #ff4fa8; }
body.theme-neo .model-card {
  background: linear-gradient(145deg,#292a2f 0%,#222329 100%) !important;
  border-color: #393a42 !important;
}
body.theme-neo [data-model-card] {
  background: linear-gradient(145deg,#292a2f 0%,#222329 100%) !important;
  border-color: #393a42 !important;
}

/* ---------- mock charcoal/orange sidebar ---------- */
.workspace-switch {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: var(--sidebar2); border: 1px solid rgba(255,255,255,.12); border-radius: 11px;
}
.workspace-avatar {
  width: 30px; height: 30px; flex: 0 0 30px; display: inline-grid; place-items: center;
  border-radius: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.workspace-form { flex: 1; min-width: 0; margin: 0; display: flex; }
.workspace-form select {
  appearance: none; -webkit-appearance: none; width: 100%; min-width: 0;
  padding: 0; border: 0; background: transparent; box-shadow: none; outline: none;
  color: #f5f5f5; font-size: 11px; font-weight: 600; line-height: 1.4;
  text-overflow: ellipsis; cursor: pointer;
}
.workspace-form select option { background: var(--sidebar2); color: #f5f5f5; }
.workspace-chevron {
  width: 12px; height: 12px; flex: 0 0 12px; color: #9a9a9a; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.workspace-role { margin-top: 5px; color: #b9b9b9; font-family: var(--mono); font-size: 8px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 4px; }
.sidebar-user-meta b { display: block; font-size: 11px; font-weight: 600; color: #f3f3f3; }
.sidebar-user-meta span {
  display: block; margin-top: 2px; font-size: 8.5px; color: #9a9a9a;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user .avatar {
  width: 32px; height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff; border: 0;
  font-size: 10px; font-weight: 700;
}
.brand-text b { display: block; font-weight: 700; line-height: 1.1; }
.brand-text small { display: block; margin-top: 3px; font-size: 9px; line-height: 1.2; color: var(--faint); }

body.theme-neo .workspace-picker {
  background: transparent; border: 0; border-radius: 0; padding: 0;
  box-shadow: none; margin: 0;
}
body.theme-neo .workspace-picker .eyebrow {
  color: #a3a3a3; font-family: var(--sans); font-size: 8px; letter-spacing: .2em;
  font-weight: 600; margin: 0 0 7px;
}
body.theme-neo .workspace-switch {
  background: #202020; border-color: #111111; border-radius: 13px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03);
}
body.theme-neo .workspace-avatar {
  background: linear-gradient(135deg,#FF4D00,#E04400 48%,#B83700);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
body.theme-neo .workspace-form select {
  color: #f3f3f3; font-family: var(--sans); font-size: 10.5px; font-weight: 600;
}
body.theme-neo .workspace-form select option { background: #202020; color: #f3f3f3; }
body.theme-neo .workspace-chevron { color: #a3a3a3; }
body.theme-neo .workspace-role {
  color: #a3a3a3; font-size: 7.5px; letter-spacing: .02em;
}
body.theme-neo .brand-text b {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #f3f3f3;
}
body.theme-neo .brand-text small {
  color: #a3a3a3; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
body.theme-neo .sidebar .brand { padding: 0 6px 20px; gap: 10px; color: #fff; }
body.theme-neo .brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  background: linear-gradient(135deg,#FF4D00,#E04400 48%,#B83700);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(184,55,0,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
body.theme-neo .sidebar {
  background: #191919; border-right: 1px solid #111111; padding: 24px 16px 18px;
  gap: 20px; color: #f3f3f3;
}
body.theme-neo .main-nav { gap: 4px; }
body.theme-neo .nav-label {
  color: #a3a3a3; font-family: var(--mono); font-size: 8px; line-height: 1.2;
  letter-spacing: .2em; margin: 14px 8px 6px;
}
body.theme-neo .nav-label:first-child { margin-top: 2px; }
body.theme-neo .main-nav a {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px;
  border-radius: 12px; color: #9a9a9a; font-family: var(--sans); font-size: 10px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; transition: .2s;
}
body.theme-neo .nav-icon { width: 15px; height: 15px; flex: 0 0 15px; color: #a3a3a3; transition: .2s; }
body.theme-neo .main-nav a:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body.theme-neo .main-nav a:hover .nav-icon { color: #9a9a9a; }
body.theme-neo .main-nav a.active {
  background: linear-gradient(135deg,#FF4D00,#E04400 48%,#B83700);
  color: #fff;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body.theme-neo .main-nav a.active .nav-icon { color: #fff; }
body.theme-neo .sidebar-foot {
  border-top: 1px solid #111111; padding-top: 18px; gap: 14px;
}
body.theme-neo .sidebar-foot .muted {
  color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; letter-spacing: .04em;
}
body.theme-neo .sidebar-user .avatar {
  background: linear-gradient(135deg,#FF4D00,#E04400 48%,#B83700);
  box-shadow: 0 8px 18px rgba(184,55,0,.26), inset 0 1px 0 rgba(255,255,255,.24);
}
@media (min-width: 821px) {
  body.theme-neo.app-shell { grid-template-columns: 232px minmax(0,1fr); }
}

body.theme-neo .workspace-switch:hover { background: #242424; border-color: rgba(255,255,255,.08); }
body.theme-neo .main-nav a:focus-visible,
body.theme-neo .workspace-form select:focus-visible { outline: 2px solid #FF4D00; outline-offset: 2px; }


body .dashboard-page { max-width: 1220px; }
.dashboard-head { align-items: flex-start; margin-bottom: 20px; }
.dashboard-head-main { min-width: 0; }
.dashboard-eyebrow-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dashboard-preview {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  border-radius: 99px; color: #ffb48f; background: rgba(255,77,0,.08);
  border: 1px solid rgba(255,77,0,.18); font: 600 7px/1 var(--mono);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.dashboard-preview i {
  width: 4px; height: 4px; border-radius: 50%; background: #ff4d00;
  box-shadow: 0 0 6px rgba(255,77,0,.7);
}
body .dashboard-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.04em; margin: 9px 0 0;
}
body .dashboard-page .page-head p {
  color: #9a9a9a; max-width: 61ch; margin-top: 7px; font-size: 11.5px; line-height: 1.65;
}
.dashboard-context {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px;
  color: #a3a3a3; font: 7.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.dashboard-context span:first-child { color: #9a9a9a; }
.dashboard-context i { width: 3px; height: 3px; border-radius: 50%; background: #4a4a4a; }
.dashboard-actions { align-items: center; }
body .dashboard-page .ghost-btn {
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 9px 13px; font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .dashboard-page .ghost-btn:hover { background: #202020; border-color: #1c1c1c; color: #f3f3f3; text-decoration: none; }
body .dashboard-page .primary-btn {
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 9px 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .dashboard-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .dashboard-page .text-link {
  color: #ff4d00; border-bottom: 0; font-size: 8px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
body .dashboard-page .text-link:hover { color: #ffb48f; text-decoration: none; }

body .dashboard-page .dashboard-kpis { gap: 16px; }
body .dashboard-page .stat {
  background: #191919; border: 1px solid #111111; border-radius: 22px;
  padding: 18px 20px; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .dashboard-page .stat.accent, body .dashboard-page .stat.blue {
  background: #191919; border-color: #111111; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .dashboard-page .stat .label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #9a9a9a; font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
body .dashboard-page .stat .value { margin-top: 12px; color: #f3f3f3; font-size: 32px; letter-spacing: -.045em; }
body .dashboard-page .stat .sub { color: #a3a3a3; font-size: 9px; margin-top: 7px; }
body .dashboard-page .pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px;
  border-radius: 5px; font-family: var(--mono); font-size: 7px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
}
body .dashboard-page .pill-usd {
  color: #ffb48f; background: rgba(255,77,0,.08); border: 1px solid rgba(255,77,0,.18);
}
body .dashboard-page .pill.good {
  color: #8fd8b0; background: rgba(87,201,139,.08); border: 1px solid rgba(87,201,139,.2);
}
body .dashboard-page .pill.warn {
  color: #e2be7e; background: rgba(217,160,62,.08); border: 1px solid rgba(217,160,62,.2);
}

body .dashboard-page .panel {
  background: #191919; border: 1px solid #111111; border-radius: 24px;
  padding: 22px 24px; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .dashboard-page .panel-head { margin-bottom: 14px; }
body .dashboard-page .panel-head h2 { color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
body .dashboard-page .panel-head p { color: #a3a3a3; margin-top: 4px; font-size: 10px; }
.dashboard-kicker {
  display: block; margin-bottom: 4px; color: #a3a3a3;
  font-size: 7px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}

body .dashboard-page .chart-bars {
  height: 202px; min-height: 202px; padding: 14px; margin-top: 2px;
  background: #151515; border: 1px solid #111111; border-radius: 14px; gap: 5px;
}
body .dashboard-page .chart-bars .bar {
  background: linear-gradient(180deg,#ffb48f,#ff4d00); border-radius: 3px 3px 0 0;
}
body .dashboard-page .chart-bars .bar:hover { background: linear-gradient(180deg,#ffc9ae,#ff6a24); }
body .dashboard-page .chart-labels { color: #a3a3a3; font-size: 6.5px; margin-top: 8px; gap: 5px; }
body .dashboard-page #usage-chart .empty { width: 100%; align-self: center; color: #a3a3a3; font-size: 10px; }
body .dashboard-page .dashboard-empty { color: #a3a3a3; padding: 16px 0 2px; text-align: left; font-size: 10px; }
body .dashboard-page .dashboard-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #222222;
  color: #a3a3a3; font-size: 7px; letter-spacing: .16em; text-transform: uppercase;
}
body .dashboard-page .split-list { margin-top: 2px; }
body .dashboard-page .split-row { border-bottom-color: #242424; padding: 11px 0; }
body .dashboard-page .split-row b { color: #dcdcdc; font-size: 11px; font-weight: 500; font-family: var(--mono); }
body .dashboard-page .split-row .meta { color: #a3a3a3; font-size: 8.5px; margin-top: 2px; }
body .dashboard-page .split-row .num { text-align: right; }

.dashboard-support { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
body .dashboard-page .dashboard-quickstart, body .dashboard-page .dashboard-routing { display: flex; flex-direction: column; }
body .dashboard-page .note {
  border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 10.5px; line-height: 1.6;
}
body .dashboard-page .note.good {
  background: #12291f; border-left: 3px solid #57c98b; color: #bfe9d3;
}
body .dashboard-page .note.good b { color: #f3f3f3; }
body .dashboard-page .note.warn {
  background: #211d15; border-left: 3px solid #d9a03e; color: #d9c49a;
}
body .dashboard-page .note.warn b { color: #f0d5a4; }
body .dashboard-page .inline-code {
  background: #202020; border: 1px solid #353535; border-radius: 4px; padding: 1px 5px;
  color: #ffb48f; font-family: var(--mono); font-size: 9px;
}
body .dashboard-page .codeblock {
  background: #0d0d0d; border: 1px solid #242424; border-radius: 12px;
  color: #c6c6c6; padding: 13px 14px; font-size: 9px; line-height: 1.7;
}
body .dashboard-page .codeblock .c { color: #a3a3a3; }
body .dashboard-page .dashboard-need-key {
  margin-top: auto; padding-top: 14px; border-top: 1px solid #222222; border-bottom: 0;
}
body .dashboard-page .dashboard-need-key .small { color: #a3a3a3; font-size: 9px; }
body .dashboard-page .kv { grid-template-columns: 125px 1fr; gap: 8px 14px; font-size: 10px; }
body .dashboard-page .kv dt { color: #a3a3a3; }
body .dashboard-page .kv dd { color: #c9c9c9; }
body .dashboard-page .dashboard-intel { margin-top: auto; padding-top: 14px; align-self: flex-start; }

body .dashboard-page .dashboard-catalog-grid { gap: 14px; margin-top: 2px; }
body .dashboard-page .catalog-card {
  display: block; min-width: 0; padding: 16px; color: inherit; text-decoration: none;
  background: #191919; border: 1px solid #111111; border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  transition: .2s;
}
body .dashboard-page .catalog-card:hover {
  border-color: rgba(255,77,0,.28); background: #1d1d1d; text-decoration: none;
  transform: translateY(-1px);
}
body .dashboard-page .catalog-card .eyebrow { color: #a3a3a3; font-size: 7.5px; letter-spacing: .14em; }
body .dashboard-page .catalog-card h3 { margin: 6px 0 3px; color: #f3f3f3; font-size: 16px; font-weight: 600; }
body .dashboard-page .catalog-sub { color: #a3a3a3; font-size: 8.5px; }
body .dashboard-page .catalog-price {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 9px;
  color: #9a9a9a; font-size: 9px;
}
body .dashboard-page .catalog-price span { color: #a3a3a3; }
body .dashboard-page .catalog-price b { color: #d6d6d6; font-family: var(--mono); font-size: 10px; font-weight: 500; }

@media (max-width: 1080px) {
  .dashboard-support { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body .dashboard-page .panel { padding: 18px; border-radius: 20px; }
  body .dashboard-page .chart-bars { height: 170px; min-height: 170px; }
  body .dashboard-page .page-head h1 { font-size: 30px; }
  body .dashboard-page .page-actions { width: 100%; }
  body .dashboard-page .page-actions .ghost-btn,
  body .dashboard-page .page-actions .primary-btn { flex: 1; justify-content: center; }
  body .dashboard-page .dashboard-kpis { gap: 12px; }
}

body .dashboard-page .chart-bars.is-empty { display: block; padding: 22px; }
body .dashboard-page .usage-empty-state {
  height: 100%; min-height: 156px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; text-align: center;
}
body .dashboard-page .usage-empty-state b { color: #f3f3f3; font-size: 13px; font-weight: 600; }
body .dashboard-page .usage-empty-state span { max-width: 48ch; color: #a3a3a3; font-size: 9.5px; line-height: 1.55; }
body .dashboard-page .usage-empty-state .text-link { margin-top: 7px; }
body .dashboard-page .usage-empty-state.error b { color: #e2be7e; }

body .dashboard-page .dashboard-catalog-table { margin-top: 2px; }
body .dashboard-page .dashboard-catalog-table table { min-width: 540px; width: 100%; border-collapse: collapse; font-size: 10px; }
body .dashboard-page .dashboard-catalog-table th {
  padding: 8px 8px 9px; border-bottom: 1px solid #242424; color: #a3a3a3;
  background: transparent; font-family: var(--mono); font-size: 6.5px;
  font-weight: 600; letter-spacing: .13em; text-transform: uppercase; text-align: left;
}
body .dashboard-page .dashboard-catalog-table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  background: transparent; font-size: 10px; vertical-align: middle;
}
body .dashboard-page .dashboard-catalog-table tr:last-child td { border-bottom: 0; }
body .dashboard-page .dashboard-catalog-table th.num,
body .dashboard-page .dashboard-catalog-table td.num { text-align: right; font-family: var(--mono); }
body .dashboard-page .dashboard-model-link { display: inline-flex; flex-direction: column; color: inherit; text-decoration: none; }
body .dashboard-page .dashboard-model-link b { color: #f3f3f3; font-size: 10.5px; font-weight: 500; }
body .dashboard-page .dashboard-model-link span { margin-top: 2px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; }
body .dashboard-page .dashboard-model-link:hover { text-decoration: none; }
body .dashboard-page .dashboard-model-link:hover b { color: #ff8a5c; }

body .dashboard-page .chart-labels { display: flex; justify-content: space-between; gap: 8px; }
body .dashboard-page .chart-labels span { flex: 0 0 auto; min-width: 0; text-align: left; overflow: visible; }
body .dashboard-page .chart-labels span:last-child { text-align: right; }

/* ---------- mock charcoal topbar ---------- */
body.theme-neo .topbar {
  background: rgba(28,27,27,.94);
  border-bottom: 1px solid #111111;
  box-shadow: none;
}
body.theme-neo .topbar-context { color: #f3f3f3; }
body.theme-neo .topbar-right .ghost-btn {
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 9px 13px; font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body.theme-neo .topbar-right .ghost-btn:hover {
  background: #202020; border-color: #1c1c1c; color: #f3f3f3; text-decoration: none;
}
body.theme-neo .topbar .link-btn { color: #9a9a9a; }
body.theme-neo .topbar .link-btn:hover { color: #f3f3f3; }
body.theme-neo .topbar .avatar {
  background: linear-gradient(135deg,#FF4D00,#E04400 48%,#B83700); color: #fff;
  border: 0; box-shadow: 0 8px 18px rgba(184,55,0,.26), inset 0 1px 0 rgba(255,255,255,.24);
}
body.theme-neo .menu-btn {
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
}
body.theme-neo .menu-btn:hover { background: #202020; color: #f3f3f3; }

/* Match the center canvas to the mock topbar */
body.theme-neo { --bg: #1C1B1B; background: #1C1B1B; }

body .dashboard-page .stat .stat-note {
  padding: 0; border: 0; background: none; color: #a3a3a3;
  font-family: var(--mono); font-size: 7px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- mock charcoal/orange playground ---------- */
body .playground-page { max-width: 1220px; }
body .playground-page .page-head { align-items: flex-start; margin-bottom: 20px; }
body .playground-page .eyebrow {
  color: #a3a3a3; font-family: var(--mono); font-size: 7.5px;
  letter-spacing: .16em; text-transform: uppercase;
}
body .playground-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.04em; margin: 9px 0 0;
}
body .playground-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 7px; font-size: 11.5px; line-height: 1.65;
}
body .playground-page .ghost-btn {
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 9px 13px; font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .playground-page .ghost-btn:hover {
  background: #202020; border-color: #1c1c1c; color: #f3f3f3; text-decoration: none;
}
body .playground-page .primary-btn {
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 9px 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .playground-page .primary-btn:hover { background: #ff6a24; color: #fff; }

body .playground-page .playground-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 18px; }
body .playground-page .panel {
  background: #191919; border: 1px solid #111111; border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .playground-page .chat-panel { padding: 0; overflow: hidden; min-height: 560px; }
body .playground-page .chat-head {
  padding: 14px 20px; border-bottom: 1px solid #111111; background: #191919;
}
body .playground-page .chat-head strong {
  color: #f3f3f3; font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
body .playground-page .chat-head .muted { color: #a3a3a3; font-size: 9px; }
body .playground-page .chat-status {
  color: #a3a3a3; background: none; border: 0; padding: 0;
  font-family: var(--mono); font-size: 7px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
body .playground-page .chat-log {
  background: #141414; border-bottom: 1px solid #111111; padding: 20px;
  min-height: 330px; max-height: 500px; gap: 14px;
}
body .playground-page .chat-log .empty {
  color: #a3a3a3; font-size: 10.5px; line-height: 1.6; text-align: center;
}
body .playground-page .msg .bubble {
  border-radius: 14px; padding: 10px 13px; font-size: 10.5px; line-height: 1.65;
}
body .playground-page .msg.assistant .bubble {
  background: #202020; border: 1px solid #292929; color: #d6d6d6;
  box-shadow: none;
}
body .playground-page .msg.user .bubble {
  background: linear-gradient(135deg,#ff4d00,#b83700); border: 0; color: #fff;
}
body .playground-page .msg .who {
  width: 24px; height: 24px; border-radius: 7px; background: #242424;
  border: 1px solid #111111; color: #9a9a9a; font-size: 8px;
}
body .playground-page .msg.user .who {
  background: rgba(255,77,0,.14); border-color: rgba(255,77,0,.2); color: #ffb48f;
}
body .playground-page .chat-compose {
  background: #191919; border-top: 1px solid #111111; padding: 14px 16px; gap: 9px;
}
body .playground-page .chat-compose textarea {
  min-height: 64px; background: #141414; border: 1px solid #292929;
  border-radius: 11px; color: #f3f3f3; font-size: 11px; box-shadow: none;
}
body .playground-page .chat-compose textarea::placeholder { color: #a3a3a3; }
body .playground-page .chat-compose .compose-row {
  color: #a3a3a3; font-family: var(--mono); font-size: 7.5px;
  letter-spacing: .04em; text-transform: uppercase;
}
body .playground-page .chat-compose .primary-btn {
  padding: 8px 16px; border-radius: 10px; font-size: 9px;
}
body .playground-page .side-stack { gap: 14px; }
body .playground-page .side-stack .panel { padding: 18px 20px; }
body .playground-page .panel-head h2 {
  color: #f3f3f3; font-size: 16px; font-weight: 600; letter-spacing: -.02em;
}
body .playground-page .panel-head p { color: #a3a3a3; font-size: 9.5px; margin-top: 3px; }
body .playground-page label {
  color: #9a9a9a; font-size: 8.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
body .playground-page select, body .playground-page textarea {
  background: #141414; border: 1px solid #292929; color: #f3f3f3;
  border-radius: 10px; font-size: 10.5px; box-shadow: none;
}
body .playground-page select { padding: 9px 11px; }
body .playground-page textarea { padding: 10px 11px; }
body .playground-page select:focus, body .playground-page textarea:focus {
  border-color: rgba(255,77,0,.55); box-shadow: 0 0 0 2px rgba(255,77,0,.1);
}
body .playground-page .metric-list { gap: 0; }
body .playground-page .metric-list div {
  padding: 8px 0; border-bottom: 1px solid #242424;
  color: #a3a3a3; font-size: 9.5px;
}
body .playground-page .metric-list div:last-child { border-bottom: 0; }
body .playground-page .metric-list b { color: #f3f3f3; font-family: var(--mono); font-size: 9.5px; }
body .playground-page .form-hint { color: #a3a3a3; font-size: 8.5px; line-height: 1.55; }
body .playground-page .quick-prompts { gap: 6px; }
body .playground-page .quick-prompts button {
  background: #191919; border: 1px solid #111111; border-radius: 10px;
  padding: 9px 10px; color: #9a9a9a; font-size: 9.5px; text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03);
  transition: .2s;
}
body .playground-page .quick-prompts button:hover {
  background: #202020; border-color: rgba(255,77,0,.25); color: #f3f3f3;
}
@media (max-width: 1080px) {
  body .playground-page .playground-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body .playground-page .panel { padding: 18px; border-radius: 20px; }
  body .playground-page .chat-panel { padding: 0; }
  body .playground-page .chat-head { padding: 13px 16px; }
  body .playground-page .chat-log { padding: 16px; }
  body .playground-page .chat-compose { padding: 12px 14px; }
  body .playground-page .page-head h1 { font-size: 30px; }
  body .playground-page .page-actions { width: 100%; }
  body .playground-page .page-actions .ghost-btn { width: 100%; justify-content: center; }
}

/* Playground focus: no magenta ring, use the mock orange treatment */
body .playground-page input:focus,
body .playground-page select:focus,
body .playground-page textarea:focus,
body .playground-page input:focus-visible,
body .playground-page select:focus-visible,
body .playground-page textarea:focus-visible {
  outline: none;
  border-color: rgba(255,77,0,.55);
  box-shadow: 0 0 0 2px rgba(255,77,0,.12);
}
body .playground-page a:focus-visible,
body .playground-page button:focus-visible {
  outline-color: #FF4D00;
}


/* Keep the chat card the same height as the side stack */
body .playground-page .playground-grid { align-items: stretch; }
body .playground-page .chat-log { max-height: none; }

/* ---------- mock charcoal/orange models page ---------- */
body .model-page { max-width: 1220px; }
body .model-page .page-head { align-items: flex-start; margin-bottom: 20px; }
body .model-page .eyebrow { color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; }
body .model-page .page-head h1 { color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04; letter-spacing: -.04em; margin: 9px 0 0; }
body .model-page .page-head p { color: #9a9a9a; max-width: 62ch; margin-top: 7px; font-size: 11.5px; line-height: 1.65; }
body .model-page .ghost-btn {
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 9px 13px; font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .model-page .ghost-btn:hover { background: #202020; border-color: #1c1c1c; color: #f3f3f3; text-decoration: none; }
body .model-page .primary-btn {
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 9px 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .model-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .model-page .panel {
  background: #191919; border: 1px solid #111111; border-radius: 24px; padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .model-page .models-panel-head { align-items: center; gap: 16px; flex-wrap: wrap; }
body .model-page .panel-head h2 { color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
body .model-page .panel-head p { color: #a3a3a3; font-size: 10px; margin-top: 4px; }
body .model-page .model-search {
  width: 260px; max-width: 100%; height: 38px;
  background: #141414; border: 1px solid #292929; border-radius: 10px;
  color: #f3f3f3; font-size: 10px; padding: 0 12px; box-shadow: none;
}
body .model-page .model-search::placeholder { color: #a3a3a3; }
body .model-page .model-search:focus,
body .model-page .model-search:focus-visible {
  outline: none; border-color: rgba(255,77,0,.55); box-shadow: 0 0 0 2px rgba(255,77,0,.12);
}
body .model-page .models-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 16px;
}
body .model-page .model-catalog-card[data-model-card] {
  display: flex; flex-direction: column; min-width: 0; padding: 16px;
  color: #f3f3f3; background: #191919 !important;
  border: 1px solid #111111 !important; border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  transition: .2s;
}
body .model-page .model-catalog-card[data-model-card]:hover {
  border-color: rgba(255,77,0,.28) !important; background: #1D1D1D !important;
}
body .model-page .model-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body .model-page .model-catalog-card .eyebrow { color: #a3a3a3; font-size: 7.5px; letter-spacing: .14em; }
body .model-page .model-catalog-card h3 { margin: 6px 0 3px; color: #f3f3f3; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
body .model-page .model-catalog-card h3 a { color: inherit; text-decoration: none; }
body .model-page .model-catalog-card h3 a:hover { color: #ff8a5c; }
body .model-page .model-slug { color: #a3a3a3; font-family: var(--mono); font-size: 8.5px; }
body .model-page .model-context { color: #9a9a9a; font-family: var(--mono); font-size: 8px; white-space: nowrap; }
body .model-page .model-prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 15px; padding: 12px 0; border-top: 1px solid #242424; border-bottom: 1px solid #242424;
}
body .model-page .model-prices span { display: block; color: #a3a3a3; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
body .model-page .model-prices b { display: block; margin-top: 4px; color: #f3f3f3; font-family: var(--mono); font-size: 13px; font-weight: 500; }
body .model-page .model-params { color: #a3a3a3; font-size: 9px; line-height: 1.5; margin-top: 10px; }
body .model-page .model-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
body .model-page .model-actions .ghost-btn, body .model-page .model-actions .primary-btn { padding: 8px 13px; }
body .model-page .empty { color: #a3a3a3; font-size: 10px; padding: 22px 0; }
body .model-page a:focus-visible, body .model-page button:focus-visible { outline-color: #FF4D00; }
@media (max-width: 720px) {
  body .model-page .panel { padding: 18px; border-radius: 20px; }
  body .model-page .page-head h1 { font-size: 30px; }
  body .model-page .page-actions { width: 100%; }
  body .model-page .page-actions .ghost-btn,
  body .model-page .page-actions .primary-btn { flex: 1; justify-content: center; }
  body .model-page .model-search { width: 100%; }
}

/* Compact mock card for the real 3-up catalog */
body .model-page .models-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
body .model-page .model-catalog-card[data-model-card] {
  padding: 16px; border-radius: 18px;
  background: #1B1B1B !important;
  border: 1px solid #111111 !important;
  border-left: 3px solid #FF4D00 !important;
}
body .model-page .model-catalog-card[data-model-card]:hover {
  background: #202020 !important; border-color: #111111 !important; border-left-color: #FF4D00 !important;
}
body .model-page .model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body .model-page .model-card-icon {
  width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px;
  border-radius: 50%; background: #242424; border: 1px solid rgba(255,77,0,.25);
  color: #FF4D00; font-size: 9px; font-weight: 700; letter-spacing: .03em;
}
body .model-page .model-card-icon img { width: 18px; height: 18px; display: block; object-fit: contain; }
body .model-page .model-card-badge {
  color: #a3a3a3; background: none; border: 0; padding: 0;
  font-family: var(--mono); font-size: 6px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
body .model-page .model-catalog-card h3 { margin: 13px 0 0; font-size: 16px; line-height: 1.2; }
body .model-page .model-catalog-card h3 a { color: #f3f3f3; }
body .model-page .model-provider {
  margin-top: 3px; color: #a3a3a3; font-size: 7px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
body .model-page .model-slug { margin-top: 3px; color: #a3a3a3; font-family: var(--mono); font-size: 8px; }
body .model-page .model-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px;
  margin-top: 11px; padding: 10px 0; border-top: 1px solid #242424; border-bottom: 1px solid #242424;
}
body .model-page .model-metrics span { display: block; color: #a3a3a3; font-size: 6px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .model-page .model-metrics b { display: block; margin-top: 3px; color: #f3f3f3; font-family: var(--mono); font-size: 9px; font-weight: 500; white-space: nowrap; }
body .model-page .model-params {
  margin-top: 9px; color: #a3a3a3; font-size: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body .model-page .model-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px;
}
body .model-page .model-card-link {
  color: #9a9a9a; font-size: 7px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
}
body .model-page .model-card-link:hover { color: #f3f3f3; text-decoration: none; }
body .model-page .model-card-link.accent { color: #ff4d00; }
body .model-page .model-card-link.accent:hover { color: #ffb48f; }
@media (max-width: 980px) {
  body .model-page .models-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  body .model-page .models-grid { grid-template-columns: 1fr; }
}


/* ---------- mock charcoal/orange API keys page ---------- */
body .keys-page { max-width: 1220px; }
body .keys-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .keys-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .keys-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .keys-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .keys-page .page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body .keys-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .keys-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .keys-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 14px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .keys-page .primary-btn:hover { background: #ff6a24; color: #fff; text-decoration: none; }
body .keys-page .primary-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body .keys-page .keys-create-btn { white-space: nowrap; }

/* stats */
body .keys-page .keys-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-bottom: 20px;
}
body .keys-page .keys-stat-card {
  display: flex; flex-direction: column; min-width: 0; position: relative;
  background: #191919; border: 1px solid #111111; border-radius: 28px; padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .keys-page .keys-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body .keys-page .keys-stat-label {
  color: #9a9a9a; font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
body .keys-page .keys-stat-dots { color: #a3a3a3; font-size: 8px; letter-spacing: .14em; }
body .keys-page .keys-stat-value {
  margin-top: 14px; color: #f3f3f3; font-size: 38px; font-weight: 700;
  line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
body .keys-page .keys-stat-value.is-muted { color: #a3a3a3; font-size: 30px; letter-spacing: 0; }
body .keys-page .keys-stat-sub {
  margin-top: 9px; color: #a3a3a3; font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4;
}

/* hygiene notice */
body .keys-page .keys-notice {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding: 20px 24px;
  background: #191919; border: 1px solid #111111; border-radius: 28px; position: relative; min-width: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .keys-page .keys-notice-orb {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(135deg,#ff4d00,#d33d00);
  color: #fff; box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .keys-page .keys-notice-orb svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
body .keys-page .keys-notice b {
  display: block; color: #f3f3f3; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
body .keys-page .keys-notice p {
  margin-top: 5px; max-width: 90ch; color: #a3a3a3; font-size: 10.5px; line-height: 1.7;
}

/* keys table */
body .keys-page .keys-table-card {
  padding: 24px; background: #191919; border: 1px solid #111111; border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
body .keys-page .keys-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #9a9a9a; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
}
body .keys-page .keys-card-dots { color: #a3a3a3; font-size: 8px; letter-spacing: .14em; }
body .keys-page .keys-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
body .keys-page .keys-search {
  display: flex; align-items: center; gap: 9px; height: 44px; flex: 1; min-width: 220px; max-width: 340px;
  padding: 0 14px; background: #181818; border: 0; border-radius: 14px;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .keys-page .keys-search:focus-within {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .keys-page .keys-search svg {
  width: 14px; height: 14px; flex: 0 0 14px; color: #a3a3a3;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
body .keys-page .keys-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0;
  background: transparent; color: #f3f3f3; font-size: 11px; box-shadow: none;
}
body .keys-page .keys-search input::placeholder {
  color: #a3a3a3; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
}
body .keys-page .keys-tool-select {
  width: auto; min-width: 146px; max-width: 180px; flex: 0 0 auto;
  height: 44px; padding: 0 34px 0 14px; border: 0; border-radius: 14px;
  background-color: #181818; color: #9a9a9a; font-family: var(--sans); font-size: 8.5px;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase; outline: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px;
}
body .keys-page .keys-tool-select:hover { color: #f3f3f3; }
body .keys-page .keys-tool-select option { background: #181818; color: #f3f3f3; }
body .keys-page .keys-toolbar-meta {
  margin-left: auto; color: #a3a3a3; font-size: 8px; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap;
}
body .keys-page .keys-toolbar-meta b { color: #bdbdbd; font-weight: 600; }
body .keys-page .keys-table-wrap { width: 100%; overflow-x: auto; margin-top: 16px; }
body .keys-page .keys-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 10px; }
body .keys-page .keys-table th {
  padding: 9px 7px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .keys-page .keys-table td {
  padding: 12px 7px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .keys-page .keys-table tbody tr { transition: background .18s; }
body .keys-page .keys-table tbody tr:hover { background: rgba(255,255,255,.022); }
body .keys-page .keys-table tbody tr:last-child td { border-bottom: 0; }
body .keys-page .keys-table tr[hidden] { display: none; }
body .keys-page .keys-name { display: block; color: #f3f3f3; font-size: 10.5px; font-weight: 500; }
body .keys-page .keys-kind {
  display: block; margin-top: 3px; color: #a3a3a3; font-size: 7px;
  letter-spacing: .09em; text-transform: uppercase;
}
body .keys-page .keys-keycell { display: inline-flex; align-items: center; gap: 5px; }
body .keys-page .keys-keycell code {
  color: #cfcfcf; font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em;
}
body .keys-page .keys-bullets { margin-left: 1px; color: #a3a3a3; letter-spacing: .1em; }
body .keys-page .keys-copy, body .keys-page .keys-revoke {
  width: 22px; height: 22px; display: grid; place-items: center; padding: 0;
  background: #242424; border: 1px solid #2b2b2b; border-radius: 7px; color: #a3a3a3;
  transition: background .18s, border-color .18s, color .18s;
}
body .keys-page .keys-copy svg, body .keys-page .keys-revoke svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
body .keys-page .keys-copy:hover, body .keys-page .keys-copy.copied {
  background: #2a1c14; border-color: rgba(255,77,0,.45); color: #ff9b84;
}
body .keys-page .keys-scope {
  display: inline-block; margin-right: 3px; padding: 3px 6px; border: 1px solid #2b2b2b;
  border-radius: 5px; background: #1a1a1a; color: #9a9a9a;
  font-family: var(--mono); font-size: 7.5px;
}
body .keys-page .keys-scope:last-child { margin-right: 0; }
body .keys-page .keys-status {
  display: inline-flex; align-items: center; gap: 6px; color: #9a9a9a;
  font-family: var(--mono); font-size: 7px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
body .keys-page .keys-status i { width: 5px; height: 5px; border-radius: 50%; flex: 0 0 5px; background: #8e8e8e; }
body .keys-page .keys-status.active { color: #bdbdbd; }
body .keys-page .keys-status.active i { background: #7fd6a4; box-shadow: 0 0 7px rgba(127,214,164,.65); }
body .keys-page .keys-status.disabled { color: #b9a17c; }
body .keys-page .keys-status.disabled i { background: #d9a03e; box-shadow: 0 0 7px rgba(217,160,62,.55); }
body .keys-page .keys-status.revoked { color: #8e8e8e; }
body .keys-page .keys-actions { width: 34px; padding-left: 0; text-align: right; }
body .keys-page .keys-actions form { display: inline-flex; margin: 0; }
body .keys-page .keys-revoke {
  width: 22px; height: 22px; display: grid; place-items: center; padding: 0;
  background: #242424; border: 1px solid #2b2b2b; border-radius: 7px; color: #a3a3a3;
  transition: background .18s, border-color .18s, color .18s;
}
body .keys-page .keys-revoke svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
body .keys-page .keys-revoke:hover { background: #2a1c1c; border-color: #5c3333; color: #ff9b84; }
body .keys-page .keys-empty-row td {
  padding: 32px 12px; text-align: center; color: #a3a3a3; font-size: 10px; letter-spacing: .04em;
}
body .keys-page .keys-table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; color: #a3a3a3; font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
}
body .keys-page .keys-table-foot b { color: #bdbdbd; font-weight: 600; }

/* create form */
body .keys-page .keys-create {
  margin-top: 20px; padding: 24px; background: #191919; border: 1px solid #111111;
  border-radius: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  scroll-margin-top: 20px;
}
body .keys-page .keys-create .panel-head h2 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .keys-page .keys-create .panel-head p { margin-top: 4px; color: #a3a3a3; font-size: 10px; }
body .keys-page .keys-create-form {
  display: flex; flex-direction: column; gap: 16px; margin-top: 18px;
}
body .keys-page .keys-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body .keys-page .keys-create-form label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
body .keys-page .keys-create-form input[type=text],
body .keys-page .keys-create-form input[type=number] {
  width: 100%; height: 42px; padding: 0 12px; background: #141414; border: 1px solid #292929;
  border-radius: 10px; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0; text-transform: none; outline: none; box-shadow: none;
}
body .keys-page .keys-create-form input::placeholder { color: #a3a3a3; }
body .keys-page .keys-create-form input:focus {
  border-color: rgba(255,77,0,.55); box-shadow: 0 0 0 2px rgba(255,77,0,.1);
}
body .keys-page .check-grid {
  border: 1px solid #292929; border-radius: 12px; background: #151515; padding: 12px;
}
body .keys-page .check-grid legend {
  padding: 0 5px; color: #9a9a9a; font-size: 8px; letter-spacing: .09em; text-transform: uppercase;
}
body .keys-page .check-row {
  display: flex; align-items: flex-start; gap: 9px; color: #9a9a9a; font-size: 9px;
  font-weight: 500; letter-spacing: 0; text-transform: none; padding: 5px 0;
}
body .keys-page .check-row input {
  width: 14px; height: 14px; flex: 0 0 14px; margin: 1px 0 0; padding: 0;
  appearance: none; -webkit-appearance: none; border: 1px solid #3a3a3a;
  border-radius: 4px; background: #1a1a1a; cursor: pointer; position: relative;
}
body .keys-page .check-row input:checked { background: #FF4D00; border-color: #FF4D00; }
body .keys-page .check-row input:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
body .keys-page .check-row b { color: #dcdcdc; font-weight: 500; }
body .keys-page .check-row .small { display: block; margin-top: 2px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; }
body .keys-page .muted { color: #a3a3a3; }
body .keys-page .keys-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body .keys-page .form-hint { color: #a3a3a3; font-size: 8px; line-height: 1.55; }
body .keys-page .keys-submit { min-height: 42px; padding: 0 18px; }
body .keys-page .note {
  margin-top: 18px; padding: 12px 14px; border-left: 3px solid #d9a03e;
  border-radius: 0 10px 10px 0; background: #1d1a15; color: #b9a17c;
  font-size: 9.5px; line-height: 1.6;
}
body .keys-page .note b { color: #e2be7e; }

/* one-time secret */
body .keys-page .key-reveal {
  margin-bottom: 18px; padding: 14px 16px; background: #12291f; border: 1px solid #245943;
  border-radius: 14px; color: #bfe9d3;
}
body .keys-page .key-reveal strong { display: block; margin-bottom: 7px; color: #9df0cf; font-size: 10px; }
body .keys-page .key-reveal code {
  display: block; padding: 9px 11px; background: #0d0d0d; border: 1px solid #245943;
  border-radius: 8px; color: #c6c6c6; font-family: var(--mono); font-size: 9px;
  overflow-x: auto; white-space: nowrap;
}
body .keys-page .key-reveal p { margin: 8px 0 0; color: #9a9a9a; font-size: 9px; }
body .keys-page .key-reveal .mono { color: #ffb48f; font-family: var(--mono); }

body .keys-page a:focus-visible, body .keys-page button:focus-visible,
body .keys-page input:focus-visible, body .keys-page select:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (max-width: 980px) {
  body .keys-page .keys-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  body .keys-page .keys-stats { grid-template-columns: 1fr; }
  body .keys-page .keys-table-card, body .keys-page .keys-create { padding: 18px; border-radius: 20px; }
  body .keys-page .keys-notice { padding: 18px; border-radius: 20px; }
  body .keys-page .keys-stat-card { padding: 18px 20px; border-radius: 20px; }
  body .keys-page .page-head h1 { font-size: 30px; }
  body .keys-page .page-actions { width: 100%; }
  body .keys-page .page-actions .ghost-btn, body .keys-page .page-actions .primary-btn { flex: 1; }
  body .keys-page .keys-search { max-width: none; flex-basis: 100%; }
  body .keys-page .keys-toolbar-meta { width: 100%; margin-left: 0; }
  body .keys-page .keys-form-row { grid-template-columns: 1fr; }
  body .keys-page .keys-form-foot { align-items: stretch; flex-direction: column; }
  body .keys-page .keys-submit { width: 100%; }
}

@media (min-width: 1200px) {
  body .keys-page .keys-stat-label { font-size: 9px; letter-spacing: .26em; }
  body .keys-page .keys-table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .keys-page .keys-table td { font-size: 11px; padding: 12px; }
  body .keys-page .keys-name { font-size: 11px; }
  body .keys-page .keys-kind { font-size: 8.5px; letter-spacing: .1em; }
  body .keys-page .keys-keycell code { font-size: 10.5px; }
  body .keys-page .keys-scope { padding: 2px 6px; font-size: 8px; }
  body .keys-page .keys-status { font-size: 8.5px; letter-spacing: .12em; }
  body .keys-page .keys-copy, body .keys-page .keys-revoke { width: 25px; height: 25px; }
  body .keys-page .keys-actions { width: 38px; }
  body .keys-page .keys-toolbar-meta { font-size: 8px; }
  body .keys-page .keys-table-foot { font-size: 8px; }
}

/* create-key dialog: mock card treatment */
body .keys-page .primary-btn { cursor: pointer; }
body .keys-page .keys-dialog {
  width: 560px; max-width: calc(100vw - 28px); max-height: calc(100vh - 36px);
  margin: auto; padding: 0; border: 1px solid #111111; border-radius: 28px;
  background: #202020; color: #f3f3f3; overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}
body .keys-page .keys-dialog::backdrop {
  background: rgba(0,0,0,.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
body .keys-page .keys-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 24px 24px 0;
}
body .keys-page .keys-dialog-kicker {
  margin-bottom: 8px; color: #9a9a9a; font-family: var(--mono); font-size: 8px;
  font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
body .keys-page .keys-dialog-head h2 {
  margin: 0; color: #f3f3f3; font-size: 22px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1;
}
body .keys-page .keys-dialog-head p {
  margin: 6px 0 0; max-width: 46ch; color: #a3a3a3; font-size: 10.5px; line-height: 1.6;
}
body .keys-page .keys-dialog-close {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #c6c6c6;
  background: linear-gradient(145deg,#313131,#2A2A2A);
  box-shadow: 0 0 0 2px #FF4D00, 5px 5px 12px #1E1E1E, -5px -5px 12px rgba(56,56,56,.55);
  transition: color .2s, box-shadow .2s;
}
body .keys-page .keys-dialog-close:hover { color: #f3f3f3; }
body .keys-page .keys-dialog-close svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
body .keys-page .keys-dialog-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px 24px;
}
body .keys-page .keys-dialog-field {
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
body .keys-page .keys-dialog-field.full { grid-column: 1 / -1; }
body .keys-page .keys-dialog-field > span,
body .keys-page .keys-dialog-models legend {
  color: #a3a3a3; font-size: 8.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase;
}
body .keys-page .keys-dialog-field input {
  width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 14px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 11px;
  letter-spacing: .03em; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .keys-page .keys-dialog-field input::placeholder { color: #a3a3a3; }
body .keys-page .keys-dialog-field input:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .keys-page .keys-dialog-field input:focus-visible { outline: none; }
body .keys-page .keys-dialog-field input[readonly] { color: #9a9a9a; }
body .keys-page .keys-dialog-models {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px;
  min-width: 0; margin: 0; padding: 0; border: 0;
}
body .keys-page .keys-dialog-models legend { padding: 0; }
body .keys-page .keys-dialog-model-box {
  padding: 8px 14px; border-radius: 14px; background: #181818;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
body .keys-page .keys-dialog-model-box .check-row { color: #9a9a9a; font-size: 9.5px; padding: 5px 0; }
body .keys-page .keys-dialog-model-box .check-row b { color: #e3e3e3; }
body .keys-page .keys-dialog-hint { margin: 0; color: #a3a3a3; font-size: 8.5px; line-height: 1.5; }
body .keys-page .keys-dialog-foot {
  grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-top: 4px;
}
body .keys-page .keys-dialog-cancel {
  height: 46px; padding: 0 20px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(145deg,#313131,#2A2A2A); color: #9a9a9a;
  font-family: var(--sans); font-size: 8.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 5px 5px 11px #1E1E1E, -5px -5px 11px rgba(56,56,56,.55);
  transition: color .2s, box-shadow .2s;
}
body .keys-page .keys-dialog-cancel:hover { color: #f3f3f3; }
body .keys-page .keys-dialog-submit {
  height: 46px; padding: 0 24px; border-radius: 16px;
  font-size: 8.5px; letter-spacing: .16em;
}
@media (max-width: 720px) {
  body .keys-page .keys-dialog { max-width: calc(100vw - 20px); }
  body .keys-page .keys-dialog-head { padding: 20px 20px 0; }
  body .keys-page .keys-dialog-form { grid-template-columns: 1fr; padding: 18px 20px 20px; }
  body .keys-page .keys-dialog-foot { flex-direction: column-reverse; align-items: stretch; }
  body .keys-page .keys-dialog-cancel, body .keys-page .keys-dialog-submit { width: 100%; }
}

/* ---------- mock charcoal/orange usage page ---------- */
body .usage-page { max-width: 1220px; }
body .usage-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .usage-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .usage-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .usage-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .usage-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .usage-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .usage-page .flash.bad {
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid #5c3333; border-radius: 14px;
  background: #2a1c1c; color: #ffb1b1; font-size: 10px; line-height: 1.5;
}

/* KPI cards */
body .usage-page .grid-4 { gap: 20px; margin-bottom: 20px; }
body .usage-page .stat {
  padding: 22px 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .usage-page .stat .label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #9a9a9a; font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
body .usage-page .stat-dots { color: #a3a3a3; font-size: 8px; letter-spacing: .14em; }
body .usage-page .stat .value {
  margin: 14px 0 0; color: #f3f3f3; font-size: 38px; font-weight: 700;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
body .usage-page .stat .sub {
  margin-top: 9px; color: #a3a3a3; font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4;
}

/* cards and panels */
body .usage-page .panel {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .usage-page .panel-head { margin-bottom: 0; }
body .usage-page .panel-head h2 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .usage-page .panel-head p { margin-top: 4px; color: #a3a3a3; font-size: 10px; }

/* usage chart */
body .usage-page .chart-bars {
  display: flex; align-items: end; gap: 6px; height: 210px; min-height: 210px;
  margin-top: 14px; padding-top: 18px; border-top: 1px solid #242424; overflow: hidden;
}
body .usage-page .chart-bars .bar {
  flex: 1; min-width: 3px; max-width: 48px; min-height: 2px;
  border-radius: 4px 4px 0 0; position: relative;
  background: linear-gradient(180deg,#ffb08a,#ff4d00);
  box-shadow: 0 0 12px rgba(255,77,0,.16);
}
body .usage-page .chart-bars .bar:hover { background: linear-gradient(180deg,#ff8a4d,#d94100); }
body .usage-page .chart-bars > .empty { margin: auto; color: #a3a3a3; font-size: 10px; }
body .usage-page .chart-bars.is-empty {
  display: flex; align-items: center; justify-content: center;
  height: 210px; min-height: 210px; padding: 24px; overflow: visible;
}
body .usage-page .usage-empty-state {
  width: 100%; max-width: 50ch; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
}
body .usage-page .usage-empty-state b { color: #f3f3f3; font-size: 13px; font-weight: 600; }
body .usage-page .usage-empty-state span { color: #a3a3a3; font-size: 9.5px; line-height: 1.6; }
body .usage-page .usage-empty-state.error b { color: #e2be7e; }
body .usage-page .usage-empty-state .text-link,
body .usage-page .usage-empty .text-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  color: #ff4d00; font-size: 8.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
}
body .usage-page .usage-empty-state .text-link:hover,
body .usage-page .usage-empty .text-link:hover { color: #ffb48f; text-decoration: none; }
body .usage-page .chart-labels {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 10px;
  color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em;
  text-transform: uppercase; overflow: hidden;
}
body .usage-page .chart-labels span {
  flex: 0 0 auto; min-width: 0; text-align: left; overflow: visible; white-space: nowrap;
}

/* recent requests */
body .usage-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .usage-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .usage-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .usage-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .usage-page table tbody tr:last-child td { border-bottom: 0; }
body .usage-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .usage-page table td b { color: #f3f3f3; font-weight: 500; }
body .usage-page table .num {
  text-align: right; color: #bdbdbd; font-family: var(--mono); font-size: 9px;
  font-variant-numeric: tabular-nums;
}
body .usage-page table th.num { text-align: right; }
body .usage-page .usage-empty {
  padding: 42px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}
body .usage-page .empty { color: #a3a3a3; }

body .usage-page a:focus-visible, body .usage-page button:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .usage-page .stat .label { font-size: 9px; letter-spacing: .26em; }
  body .usage-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .usage-page table td { font-size: 11px; padding: 12px; }
  body .usage-page table .num { font-size: 10px; }
}
@media (max-width: 720px) {
  body .usage-page .grid-4 { grid-template-columns: 1fr; }
  body .usage-page .stat { padding: 18px 20px; border-radius: 20px !important; }
  body .usage-page .panel { padding: 18px; border-radius: 20px !important; }
  body .usage-page .page-head h1 { font-size: 30px; }
  body .usage-page .page-actions { width: 100%; }
  body .usage-page .page-actions .ghost-btn { width: 100%; }
  body .usage-page .stat .value { font-size: 32px; }
  body .usage-page .chart-bars, body .usage-page .chart-bars.is-empty { height: 170px; min-height: 170px; }
}

/* ---------- mock charcoal/orange billing page ---------- */
body .billing-page { max-width: 1220px; }
body .billing-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .billing-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .billing-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .billing-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .billing-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .billing-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .billing-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 14px;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .billing-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .billing-page .primary-btn.full { width: 100%; height: 42px; }
body .billing-page .flash.bad {
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid #5c3333; border-radius: 14px;
  background: #2a1c1c; color: #ffb1b1; font-size: 10px; line-height: 1.5;
}

/* scope note */
body .billing-page .scope-note {
  margin-bottom: 20px; padding: 16px 20px; background: #191919;
  border: 1px solid #111111; border-left: 3px solid #FF4D00; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .billing-page .scope-note b {
  color: #f3f3f3; font-size: 9px; font-weight: 600; letter-spacing: .08em;
}
body .billing-page .scope-note p {
  margin-top: 5px; color: #a3a3a3; font-size: 9.5px; line-height: 1.65; max-width: 95ch;
}

/* card surfaces */
body .billing-page .grid-2 { gap: 20px; align-items: start; }
body .billing-page .panel, body .billing-page .form-card {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .billing-page .panel-head h2, body .billing-page .form-card h3 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .billing-page .panel-head p, body .billing-page .form-card > p {
  margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6;
}
body .billing-page .currency-label {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
body .billing-page .section-gap { margin-top: 20px; }

/* balance sub-card */
body .billing-page .stat, body .billing-page .stat.accent {
  margin-top: 16px; padding: 18px 20px !important; border: 1px solid #242424 !important;
  border-radius: 18px !important; background: #151515 !important; color: #f3f3f3;
  box-shadow: none !important;
}
body .billing-page .stat .label, body .billing-page .stat.accent .label {
  color: #9a9a9a; font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase;
}
body .billing-page .stat .value, body .billing-page .stat.accent .value {
  margin: 13px 0 0; color: #f3f3f3; font-size: 38px; font-weight: 700;
  letter-spacing: -.045em; line-height: 1;
}
body .billing-page .stat .sub, body .billing-page .stat.accent .sub {
  margin-top: 9px; color: #a3a3a3; font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.4;
}
body .billing-page .split-list { margin-top: 16px; border-top: 1px solid #242424; }
body .billing-page .split-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #242424;
}
body .billing-page .split-row:last-child { border-bottom: 0; }
body .billing-page .split-row b { color: #f3f3f3; font-size: 10px; font-weight: 500; }
body .billing-page .split-row .meta { margin-top: 3px; color: #a3a3a3; font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; }
body .billing-page .split-row .num { text-align: right; color: #f3f3f3; font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }
body .billing-page .split-row .num .meta { font-family: var(--sans); }
body .billing-page .note.warn {
  margin-top: 16px; padding: 12px 14px; border-left: 3px solid #d9a03e;
  border-radius: 0 10px 10px 0; background: #1d1a15; color: #b9a17c;
  font-size: 9px; line-height: 1.6;
}
body .billing-page .note.warn b { color: #e2be7e; }

/* forms */
body .billing-page .stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
body .billing-page .stack-form label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
body .billing-page .stack-form input,
body .billing-page .stack-form select {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0; text-transform: none; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .billing-page .stack-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px;
}
body .billing-page .stack-form input::placeholder { color: #a3a3a3; }
body .billing-page .stack-form input:focus, body .billing-page .stack-form select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .billing-page .stack-form input:focus-visible, body .billing-page .stack-form select:focus-visible { outline: none; }
body .billing-page .form-hint { color: #a3a3a3; font-size: 8.5px; line-height: 1.55; }
body .billing-page .muted { color: #a3a3a3; }

/* tables */
body .billing-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .billing-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .billing-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .billing-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .billing-page table tbody tr:last-child td { border-bottom: 0; }
body .billing-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .billing-page table td b { color: #f3f3f3; font-weight: 500; }
body .billing-page table .num { text-align: right; color: #bdbdbd; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
body .billing-page table th.num { text-align: right; }
body .billing-page .mono { font-family: var(--mono); font-size: 8.5px; color: #bdbdbd; }
body .billing-page .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  border-radius: 0; background: none; color: #9a9a9a; font-family: var(--mono);
  font-size: 7.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
body .billing-page .pill::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%;
  background: #8e8e8e;
}
body .billing-page .pill.good::before { background: #7fd6a4; box-shadow: 0 0 7px rgba(127,214,164,.65); }
body .billing-page .pill.warn::before { background: #d9a03e; box-shadow: 0 0 7px rgba(217,160,62,.55); }
body .billing-page .pill.bad::before { background: #e09a9a; box-shadow: 0 0 7px rgba(224,154,154,.45); }
body .billing-page .empty {
  padding: 34px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}

/* refund / dispute drawer */
body .billing-page .action-drawer {
  margin-top: 20px; overflow: hidden; background: #191919;
  border: 1px solid #111111; border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .billing-page .action-drawer > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px; color: #f3f3f3; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; list-style: none;
}
body .billing-page .action-drawer > summary::-webkit-details-marker { display: none; }
body .billing-page .action-drawer > summary::after {
  content: "+"; color: #ff4d00; font-size: 18px; font-weight: 400; line-height: 1;
}
body .billing-page .action-drawer[open] > summary { border-bottom: 1px solid #242424; }
body .billing-page .action-drawer[open] > summary::after { content: "−"; }
body .billing-page .action-drawer > .grid-2 {
  margin: 0 !important; padding: 20px 24px 24px; gap: 20px;
}
body .billing-page .action-drawer .form-card {
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
body .billing-page .action-drawer .form-card h3 { font-size: 15px; }

body .billing-page a:focus-visible, body .billing-page button:focus-visible,
body .billing-page summary:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .billing-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .billing-page table td { font-size: 11px; padding: 12px; }
  body .billing-page table .num { font-size: 10px; }
  body .billing-page .mono { font-size: 9.5px; }
}
@media (max-width: 720px) {
  body .billing-page .grid-2 { grid-template-columns: 1fr; }
  body .billing-page .panel, body .billing-page .form-card { padding: 18px; border-radius: 20px !important; }
  body .billing-page .scope-note { padding: 15px 17px; }
  body .billing-page .page-head h1 { font-size: 30px; }
  body .billing-page .page-actions { width: 100%; }
  body .billing-page .page-actions .ghost-btn { width: 100%; }
  body .billing-page .stat .value, body .billing-page .stat.accent .value { font-size: 32px; }
  body .billing-page .action-drawer > summary { padding: 18px; }
  body .billing-page .action-drawer > .grid-2 { padding: 18px; }
}

body .billing-page .pill.good,
body .billing-page .pill.warn,
body .billing-page .pill.bad { color: #9a9a9a; }

/* ---------- mock charcoal/orange team page ---------- */
body .team-page { max-width: 1220px; }
body .team-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .team-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .team-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .team-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .team-page .grid-2 { gap: 20px; align-items: start; }
body .team-page .panel, body .team-page .form-card {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .team-page .panel-head h2, body .team-page .form-card h3 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .team-page .panel-head p, body .team-page .form-card > p {
  margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6;
}
body .team-page .section-gap { margin-top: 20px; }

/* members + invitations tables */
body .team-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .team-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .team-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .team-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .team-page table tbody tr:last-child td { border-bottom: 0; }
body .team-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .team-page table td b { color: #f3f3f3; font-weight: 500; }
body .team-page .empty {
  padding: 34px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}
body .team-page .role-tag {
  display: inline-block; margin-right: 3px; padding: 3px 6px; border: 1px solid #2b2b2b;
  border-radius: 5px; background: #1a1a1a; color: #9a9a9a; font-family: var(--mono);
  font-size: 7.5px; text-transform: none;
}
body .team-page .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  border-radius: 0; background: none; color: #9a9a9a; font-family: var(--mono);
  font-size: 7.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
body .team-page .pill::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #8e8e8e;
}
body .team-page .pill.good::before { background: #7fd6a4; box-shadow: 0 0 7px rgba(127,214,164,.65); }
body .team-page .pill.warn::before { background: #d9a03e; box-shadow: 0 0 7px rgba(217,160,62,.55); }
body .team-page .pill.good, body .team-page .pill.warn, body .team-page .pill.muted { color: #9a9a9a; }

/* inline role editor */
body .team-page .inline-fields {
  display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap;
}
body .team-page .inline-fields > * { flex: 0 0 auto; }
body .team-page .inline-fields select {
  flex: 1 1 104px; min-width: 0;
  width: auto !important; height: 42px; padding: 0 28px 0 10px; border: 0;
  border-radius: 12px; background-color: #181818; color: #f3f3f3;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .02em; outline: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 8px;
}
body .team-page .inline-fields select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .team-page .inline-fields .ghost-btn,
body .team-page table .ghost-btn {
  height: 42px; padding: 0 14px; border: 1px solid #292929; border-radius: 12px;
  background: #242424; color: #9a9a9a; font-size: 8px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); white-space: nowrap;
}
body .team-page .inline-fields .ghost-btn:hover,
body .team-page table .ghost-btn:hover { background: #2a1c14; border-color: rgba(255,77,0,.4); color: #ffb48f; }

/* invite form */
body .team-page .stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
body .team-page .stack-form label, body .team-page .form-grid.two label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
body .team-page .stack-form input, body .team-page .stack-form select,
body .team-page .form-grid.two input, body .team-page .form-grid.two select {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0; text-transform: none; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .team-page .stack-form select, body .team-page .form-grid.two select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px;
}
body .team-page .stack-form input::placeholder { color: #a3a3a3; }
body .team-page .stack-form input:focus, body .team-page .stack-form select:focus,
body .team-page .form-grid.two input:focus, body .team-page .form-grid.two select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .team-page .stack-form input:focus-visible, body .team-page .stack-form select:focus-visible,
body .team-page .form-grid.two input:focus-visible, body .team-page .form-grid.two select:focus-visible { outline: none; }
body .team-page .form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body .team-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 14px;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .team-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .team-page .primary-btn.full { width: 100%; height: 42px; }
body .team-page .muted { color: #a3a3a3; }
body .team-page .form-hint { color: #a3a3a3; font-size: 8.5px; line-height: 1.55; }
body .team-page .note {
  margin-top: 16px; padding: 12px 14px; border-left: 3px solid #d9a03e;
  border-radius: 0 10px 10px 0; background: #1d1a15; color: #b9a17c;
  font-size: 9px; line-height: 1.6;
}
body .team-page .note b { color: #e2be7e; }

body .team-page a:focus-visible, body .team-page button:focus-visible,
body .team-page select:focus-visible, body .team-page input:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .team-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .team-page table td { font-size: 11px; padding: 12px; }
  body .team-page .role-tag { font-size: 8px; }
}
@media (max-width: 720px) {
  body .team-page .grid-2 { grid-template-columns: 1fr; }
  body .team-page .panel, body .team-page .form-card { padding: 18px; border-radius: 20px !important; }
  body .team-page .page-head h1 { font-size: 30px; }
  body .team-page .form-grid.two { grid-template-columns: 1fr; }
  body .team-page .inline-fields { flex-wrap: wrap; }
}

/* ---------- mock charcoal/orange workspaces page ---------- */
body .workspaces-page { max-width: 1220px; }
body .workspaces-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .workspaces-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .workspaces-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .workspaces-page .page-head p {
  color: #9a9a9a; max-width: 62ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .workspaces-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .workspaces-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .workspaces-page .grid-2 { gap: 20px; align-items: start; }
body .workspaces-page .panel, body .workspaces-page .form-card {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .workspaces-page .panel-head h2, body .workspaces-page .form-card h3 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .workspaces-page .panel-head p, body .workspaces-page .form-card > p {
  margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6;
}
body .workspaces-page .split-list { margin-top: 16px; border-top: 1px solid #242424; }
body .workspaces-page .split-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #242424;
}
body .workspaces-page .split-row:last-child { border-bottom: 0; }
body .workspaces-page .split-row > div { min-width: 0; }
body .workspaces-page .split-row b {
  display: block; color: #f3f3f3; font-size: 10.5px; font-weight: 500;
  line-height: 1.4; overflow-wrap: anywhere;
}
body .workspaces-page .split-row .meta {
  margin-top: 4px; color: #a3a3a3; font-size: 7.5px; letter-spacing: .1em;
  text-transform: uppercase;
}
body .workspaces-page .split-row form { flex: 0 0 auto; margin: 0; }
body .workspaces-page .split-row .ghost-btn {
  height: 36px; padding: 0 14px; border: 1px solid #292929; border-radius: 10px;
  background: #242424; color: #9a9a9a; font-size: 8px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); white-space: nowrap;
}
body .workspaces-page .split-row .ghost-btn:hover {
  background: #2a1c14; border-color: rgba(255,77,0,.4); color: #ffb48f;
}
body .workspaces-page .stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
body .workspaces-page .stack-form label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
body .workspaces-page .stack-form input, body .workspaces-page .stack-form select {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0; text-transform: none; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .workspaces-page .stack-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px;
}
body .workspaces-page .stack-form input::placeholder { color: #a3a3a3; }
body .workspaces-page .stack-form input:focus, body .workspaces-page .stack-form select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .workspaces-page .stack-form input:focus-visible, body .workspaces-page .stack-form select:focus-visible { outline: none; }
body .workspaces-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 0 14px;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .workspaces-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .workspaces-page .muted { color: #a3a3a3; }
body .workspaces-page a:focus-visible, body .workspaces-page button:focus-visible,
body .workspaces-page input:focus-visible, body .workspaces-page select:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}
@media (max-width: 720px) {
  body .workspaces-page .grid-2 { grid-template-columns: 1fr; }
  body .workspaces-page .panel, body .workspaces-page .form-card { padding: 18px; border-radius: 20px !important; }
  body .workspaces-page .page-head h1 { font-size: 30px; }
  body .workspaces-page .page-actions { width: 100%; }
  body .workspaces-page .page-actions .ghost-btn { width: 100%; }
}

/* ---------- mock charcoal/orange intelligence page ---------- */
body .intelligence-page { max-width: 1220px; }
body .intelligence-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .intelligence-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .intelligence-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .intelligence-page .page-head p {
  color: #9a9a9a; max-width: 66ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .intelligence-page .grid-2 { gap: 20px; align-items: start; }
body .intelligence-page .panel {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .intelligence-page .panel-head h2 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .intelligence-page .panel-head p { margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6; }
body .intelligence-page .section-gap { margin-top: 20px; }

/* status labels: text + dot, never capsules */
body .intelligence-page .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  border-radius: 0; background: none; color: #9a9a9a; font-family: var(--mono);
  font-size: 7.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
body .intelligence-page .pill::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #8e8e8e;
}
body .intelligence-page .pill.good::before { background: #7fd6a4; box-shadow: 0 0 7px rgba(127,214,164,.65); }
body .intelligence-page .pill.warn::before { background: #d9a03e; box-shadow: 0 0 7px rgba(217,160,62,.55); }
body .intelligence-page .pill.bad::before { background: #e09a9a; box-shadow: 0 0 7px rgba(224,154,154,.45); }
body .intelligence-page .pill.muted { color: #a3a3a3; }
body .intelligence-page .pill.muted::before { display: none; }
body .intelligence-page .page-head > .pill { margin-top: 8px; }

/* definition lists */
body .intelligence-page .kv {
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
  margin: 16px 0 0; border-top: 1px solid #242424;
}
body .intelligence-page .kv dt, body .intelligence-page .kv dd {
  margin: 0; padding: 10px 0; border-bottom: 1px solid #242424;
  font-size: 9.5px; line-height: 1.55;
}
body .intelligence-page .kv dt {
  padding-right: 12px; color: #a3a3a3; font-size: 7.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
body .intelligence-page .kv dd { color: #bdbdbd; overflow-wrap: anywhere; }
body .intelligence-page .kv dt:nth-last-child(2), body .intelligence-page .kv dd:last-child { border-bottom: 0; }

body .intelligence-page .note {
  padding: 12px 14px; border-left: 3px solid #d9a03e; border-radius: 0 10px 10px 0;
  background: #1d1a15; color: #b9a17c; font-size: 9px; line-height: 1.65;
}
body .intelligence-page .note b { color: #e2be7e; }
body .intelligence-page .note.warn { border-left-color: #d9a03e; }
body .intelligence-page .flash.bad {
  margin: 0 0 16px; padding: 12px 14px; border: 1px solid #5c3333; border-radius: 14px;
  background: #2a1c1c; color: #ffb1b1; font-size: 10px; line-height: 1.5;
}

/* tables */
body .intelligence-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .intelligence-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .intelligence-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .intelligence-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .intelligence-page table tbody tr:last-child td { border-bottom: 0; }
body .intelligence-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .intelligence-page table td b { color: #f3f3f3; font-weight: 500; }
body .intelligence-page table .num { text-align: right; color: #bdbdbd; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
body .intelligence-page table th.num { text-align: right; }
body .intelligence-page table .sub { display: block; margin-top: 3px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; }
body .intelligence-page .empty {
  padding: 34px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}

/* draft policy form */
body .intelligence-page .inline-fields {
  display: grid; grid-template-columns: 1.1fr .8fr 1.2fr auto; gap: 10px;
  align-items: end; margin: 20px 0 0;
}
body .intelligence-page .inline-fields > input[type=hidden] { display: none; }
body .intelligence-page .inline-fields label {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #9a9a9a;
  font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
body .intelligence-page .inline-fields input:not([type=hidden]),
body .intelligence-page .inline-fields select {
  width: 100%; height: 38px; padding: 0 11px; border: 0; border-radius: 10px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 9.5px;
  letter-spacing: 0; text-transform: none; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
body .intelligence-page .inline-fields select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
}
body .intelligence-page .inline-fields input::placeholder { color: #a3a3a3; }
body .intelligence-page .inline-fields input:focus, body .intelligence-page .inline-fields select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .intelligence-page .inline-fields input:focus-visible, body .intelligence-page .inline-fields select:focus-visible { outline: none; }
body .intelligence-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .intelligence-page .primary-btn:hover { background: #ff6a24; color: #fff; }

/* privacy rows */
body .intelligence-page .split-list { margin-top: 16px; border-top: 1px solid #242424; }
body .intelligence-page .split-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #242424;
}
body .intelligence-page .split-row:last-child { border-bottom: 0; }
body .intelligence-page .split-row > div { min-width: 0; }
body .intelligence-page .split-row b { display: block; color: #f3f3f3; font-size: 10px; font-weight: 500; }
body .intelligence-page .split-row .meta {
  margin-top: 4px; color: #a3a3a3; font-size: 8.5px; line-height: 1.55;
  letter-spacing: .01em; text-transform: none;
}
body .intelligence-page .panel-head .ghost-btn, body .intelligence-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px; border: 1px solid #292929; border-radius: 10px;
  background: #242424; color: #9a9a9a; font-size: 8px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
body .intelligence-page .ghost-btn:hover { background: #2a1c14; border-color: rgba(255,77,0,.4); color: #ffb48f; }

body .intelligence-page a:focus-visible, body .intelligence-page button:focus-visible,
body .intelligence-page input:focus-visible, body .intelligence-page select:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .intelligence-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .intelligence-page table td { font-size: 11px; padding: 12px; }
  body .intelligence-page table .num { font-size: 10px; }
}
@media (max-width: 900px) {
  body .intelligence-page .inline-fields { grid-template-columns: 1fr 1fr; }
  body .intelligence-page .inline-fields .primary-btn { width: 100%; }
}
@media (max-width: 720px) {
  body .intelligence-page .grid-2 { grid-template-columns: 1fr; }
  body .intelligence-page .panel { padding: 18px; border-radius: 20px !important; }
  body .intelligence-page .page-head h1 { font-size: 30px; }
  body .intelligence-page .kv { grid-template-columns: 92px minmax(0,1fr); }
  body .intelligence-page .inline-fields { grid-template-columns: 1fr; }
  body .intelligence-page .split-row { align-items: flex-start; }
}

/* ---------- mock charcoal/orange settings page ---------- */
body .settings-page { max-width: 1220px; }
body .settings-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .settings-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .settings-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .settings-page .page-head p {
  color: #9a9a9a; max-width: 66ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .settings-page .grid-2 { gap: 20px; align-items: start; }
body .settings-page .panel, body .settings-page .form-card {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .settings-page .panel-head h2, body .settings-page .form-card h3 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .settings-page .panel-head p, body .settings-page .form-card > p {
  margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6;
}
body .settings-page .section-gap { margin-top: 20px; }

/* forms */
body .settings-page .stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
body .settings-page .stack-form label, body .settings-page .form-grid.two label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
body .settings-page .stack-form input, body .settings-page .stack-form select,
body .settings-page .form-grid.two input, body .settings-page .form-grid.two select {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0; text-transform: none; outline: none;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
body .settings-page .stack-form select, body .settings-page .form-grid.two select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px;
}
body .settings-page .stack-form input::placeholder { color: #a3a3a3; }
body .settings-page .stack-form input:disabled {
  background: #151515; color: #a3a3a3; box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  cursor: not-allowed;
}
body .settings-page .stack-form input:focus, body .settings-page .stack-form select:focus,
body .settings-page .form-grid.two input:focus, body .settings-page .form-grid.two select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .settings-page .stack-form input:focus-visible, body .settings-page .stack-form select:focus-visible,
body .settings-page .form-grid.two input:focus-visible, body .settings-page .form-grid.two select:focus-visible { outline: none; }
body .settings-page .form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body .settings-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .settings-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .settings-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border: 1px solid #292929; border-radius: 10px;
  background: #242424; color: #9a9a9a; font-family: var(--sans); font-size: 8px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
body .settings-page .ghost-btn:hover { background: #2a1c14; border-color: rgba(255,77,0,.4); color: #ffb48f; }
body .settings-page .muted { color: #a3a3a3; }
body .settings-page .form-hint { color: #a3a3a3; font-size: 8.5px; line-height: 1.55; }

/* notes */
body .settings-page .note {
  padding: 12px 14px; border-left: 3px solid #d9a03e; border-radius: 0 10px 10px 0;
  background: #1d1a15; color: #b9a17c; font-size: 9px; line-height: 1.65;
}
body .settings-page .note b { color: #e2be7e; }
body .settings-page .note.good { border-left-color: #2f8c63; background: #13251d; color: #9ad9bb; }
body .settings-page .note.good b { color: #b9f0d5; }

/* status labels */
body .settings-page .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  border-radius: 0; background: none; color: #9a9a9a; font-family: var(--mono);
  font-size: 7.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
body .settings-page .pill::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #8e8e8e;
}
body .settings-page .pill.good::before { background: #7fd6a4; box-shadow: 0 0 7px rgba(127,214,164,.65); }
body .settings-page .pill.warn::before { background: #d9a03e; box-shadow: 0 0 7px rgba(217,160,62,.55); }
body .settings-page .pill.bad::before { background: #e09a9a; box-shadow: 0 0 7px rgba(224,154,154,.45); }
body .settings-page .pill.muted {
  display: inline-block; padding: 3px 6px; border: 1px solid #2b2b2b; border-radius: 5px;
  background: #1a1a1a; color: #9a9a9a; font-size: 7.5px; letter-spacing: .05em;
}
body .settings-page .pill.muted::before { display: none; }
body .settings-page .pill.good, body .settings-page .pill.warn, body .settings-page .pill.bad { color: #9a9a9a; }

/* credentials */
body .settings-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .settings-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .settings-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .settings-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .settings-page table tbody tr:last-child td { border-bottom: 0; }
body .settings-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .settings-page table td b { color: #f3f3f3; font-weight: 500; }
body .settings-page .mono { color: #bdbdbd; font-family: var(--mono); font-size: 8.5px; }
body .settings-page .danger-btn {
  height: 30px; padding: 0 10px; border: 1px solid #292929; border-radius: 8px;
  background: #242424; color: #d99090; font-family: var(--sans); font-size: 7.5px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
body .settings-page .danger-btn:hover { background: #2a1c1c; border-color: #5c3333; color: #ffb3b3; }
body .settings-page .empty {
  padding: 34px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}
body .settings-page .inline-fields {
  display: grid; grid-template-columns: 1fr 1fr 1.1fr auto; gap: 12px;
  align-items: end; margin: 20px 0 0;
}
body .settings-page .inline-fields > input[type=hidden] { display: none; }
body .settings-page .inline-fields label {
  display: flex; flex-direction: column; gap: 7px; color: #9a9a9a;
  font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
body .settings-page .inline-fields input, body .settings-page .inline-fields select {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: #181818; color: #f3f3f3; font-family: var(--sans); font-size: 10.5px;
  outline: none; box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
body .settings-page .inline-fields select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px;
}
body .settings-page .inline-fields input::placeholder { color: #a3a3a3; }
body .settings-page .inline-fields input:focus, body .settings-page .inline-fields select:focus {
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .settings-page .inline-fields .primary-btn { width: auto; white-space: nowrap; }
body .settings-page .inline-fields + .form-hint { margin-top: 10px; }

/* organizations + split rows */
body .settings-page .split-list { margin-top: 16px; border-top: 1px solid #242424; }
body .settings-page .split-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid #242424;
}
body .settings-page .split-row:last-child { border-bottom: 0; }
body .settings-page .split-row b { color: #f3f3f3; font-size: 10px; font-weight: 500; }
body .settings-page .split-row .meta {
  margin-top: 3px; color: #a3a3a3; font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase;
}

body .settings-page a:focus-visible, body .settings-page button:focus-visible,
body .settings-page input:focus-visible, body .settings-page select:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .settings-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .settings-page table td { font-size: 11px; padding: 12px; }
  body .settings-page .mono { font-size: 9.5px; }
}
@media (max-width: 900px) {
  body .settings-page .inline-fields { grid-template-columns: 1fr 1fr; }
  body .settings-page .inline-fields .primary-btn { width: 100%; }
}
@media (max-width: 720px) {
  body .settings-page .grid-2 { grid-template-columns: 1fr; }
  body .settings-page .panel, body .settings-page .form-card { padding: 18px; border-radius: 20px !important; }
  body .settings-page .page-head h1 { font-size: 30px; }
  body .settings-page .form-grid.two, body .settings-page .inline-fields { grid-template-columns: 1fr; }
}

body .settings-page .fingerprint {
  display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- mock charcoal/orange docs page ---------- */
body .docs-page { max-width: 1220px; }
body .docs-page .docs-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: start; }
body .docs-page .docs-nav {
  position: sticky; top: 96px; align-self: start; display: grid; gap: 2px;
  padding: 16px; background: #191919; border: 1px solid #111111; border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .docs-page .docs-nav .eyebrow {
  padding: 7px 9px 4px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
body .docs-page .docs-nav a {
  display: block; padding: 7px 9px; border-radius: 8px; color: #9a9a9a;
  font-size: 9.5px; line-height: 1.4; text-decoration: none; transition: background .18s, color .18s;
}
body .docs-page .docs-nav a:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .docs-page .docs-content {
  width: 100%; max-width: 900px; padding: 32px; background: #191919;
  border: 1px solid #111111; border-radius: 28px; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .docs-page .docs-content > .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .docs-page .docs-content h1 {
  margin: 8px 0 0; color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.04; letter-spacing: -.045em;
}
body .docs-page .docs-content h2 {
  margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid #242424;
  color: #f3f3f3; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
}
body .docs-page .docs-content h3 { margin: 22px 0 7px; color: #f3f3f3; font-size: 15px; font-weight: 600; }
body .docs-page .docs-content p, body .docs-page .docs-content li {
  color: #9a9a9a; font-size: 11.5px; line-height: 1.8;
}
body .docs-page .docs-content p { margin-top: 10px; }
body .docs-page .docs-content p:first-of-type { margin-top: 12px; }
body .docs-page .docs-content b { color: #f3f3f3; font-weight: 500; }
body .docs-page .docs-content a { color: #ff8a5c; text-decoration: none; }
body .docs-page .docs-content a:hover { color: #ffb48f; text-decoration: none; }
body .docs-page .docs-content ul, body .docs-page .docs-content ol { margin: 10px 0 0 19px; padding: 0; }
body .docs-page .docs-content li { margin: 4px 0; }
body .docs-page .docs-content code {
  padding: 2px 5px; border: 1px solid #2b2b2b; border-radius: 5px;
  background: #151515; color: #ffb48f; font-family: var(--mono); font-size: 9.5px;
}
body .docs-page .docs-content pre {
  margin: 14px 0 0; padding: 16px 18px; overflow-x: auto;
  border: 1px solid #242424; border-radius: 14px; background: #0d0d0d;
  color: #d6d6d6; font: 9.5px/1.8 var(--mono);
}
body .docs-page .docs-content pre code {
  padding: 0; border: 0; border-radius: 0; background: none; color: inherit;
  font-family: var(--mono); font-size: 9.5px;
}
body .docs-page .docs-content .inline-code {
  padding: 2px 5px; border: 1px solid #2b2b2b; border-radius: 5px;
  background: #151515; color: #ffb48f; font-family: var(--mono); font-size: 9.5px;
  white-space: nowrap;
}
body .docs-page .docs-content table {
  width: 100%; margin: 16px 0 0; border-collapse: collapse; border: 0;
  border-radius: 0; overflow: visible;
}
body .docs-page .docs-content th {
  padding: 9px 10px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left;
}
body .docs-page .docs-content td {
  padding: 11px 10px; border-bottom: 1px solid #242424; color: #9a9a9a; font-size: 10px;
}
body .docs-page .docs-content tr:last-child td { border-bottom: 0; }
body .docs-page .docs-content .note {
  padding: 13px 15px; border-left: 3px solid #d9a03e; border-radius: 0 10px 10px 0;
  background: #1d1a15; color: #b9a17c; font-size: 9.5px; line-height: 1.7;
}
body .docs-page .docs-content .note b { color: #e2be7e; }

body .docs-page a:focus-visible, body .docs-page button:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (max-width: 1080px) {
  body .docs-page .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  body .docs-page .docs-nav {
    position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px;
    border-radius: 18px;
  }
  body .docs-page .docs-nav .eyebrow { display: none; }
  body .docs-page .docs-nav a { padding: 6px 10px; font-size: 8.5px; }
}
@media (max-width: 720px) {
  body .docs-page .docs-content { padding: 22px 18px; border-radius: 20px; }
  body .docs-page .docs-content h1 { font-size: 30px; }
  body .docs-page .docs-content h2 { font-size: 18px; }
  body .docs-page .docs-content p, body .docs-page .docs-content li { font-size: 10.5px; }
  body .docs-page .docs-content pre { padding: 14px; font-size: 8.5px; }
  body .docs-page .docs-content pre code { font-size: 8.5px; }
  body .docs-page .docs-content table { display: block; overflow-x: auto; }
  body .docs-page .docs-content th, body .docs-page .docs-content td { white-space: nowrap; }
}

/* keep long documentation code/tables from widening the page */
body .docs-page .docs-layout > *,
body .docs-page .docs-content { min-width: 0; }
body .docs-page .docs-content { max-width: 900px; }
body .docs-page .docs-content pre,
body .docs-page .docs-content table { max-width: 100%; }
@media (max-width: 1080px) {
  body .docs-page .docs-content { max-width: 100%; }
}

/* ---------- mock charcoal/orange compare page ---------- */
body .compare-page { max-width: 1220px; }
body .compare-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .compare-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .compare-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .compare-page .page-head p {
  color: #9a9a9a; max-width: 66ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .compare-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .compare-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .compare-page .panel {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .compare-page .panel-head h2 { color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
body .compare-page .panel-head p { margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6; }
body .compare-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .compare-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .compare-page .grid-3 {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px;
}
body .compare-page .compare-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px; cursor: pointer;
  border: 1px solid #242424; border-radius: 12px; background: #151515;
  transition: background .18s, border-color .18s;
}
body .compare-page .compare-option:hover { background: #1d1d1d; border-color: #303030; }
body .compare-page .compare-option:has(input:checked) {
  background: rgba(255,77,0,.06); border-color: rgba(255,77,0,.48);
}
body .compare-page .compare-option input[type=checkbox] {
  width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0; padding: 0;
  appearance: none; -webkit-appearance: none; border: 1px solid #3a3a3a;
  border-radius: 4px; background: #1a1a1a; cursor: pointer; position: relative;
}
body .compare-page .compare-option input[type=checkbox]:checked {
  background: #FF4D00; border-color: #FF4D00;
}
body .compare-page .compare-option input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
body .compare-page .compare-option span { min-width: 0; }
body .compare-page .compare-option b { display: block; color: #f3f3f3; font-size: 10.5px; font-weight: 500; }
body .compare-page .compare-slug {
  display: block; margin-top: 4px; color: #a3a3a3; font-family: var(--mono);
  font-size: 8px; line-height: 1.4;
}
body .compare-page .form-hint { margin-top: 12px; color: #a3a3a3; font-size: 8.5px; line-height: 1.55; }
body .compare-page .section-gap { margin-top: 20px; }
body .compare-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .compare-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .compare-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .compare-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .compare-page table tbody tr:last-child td { border-bottom: 0; }
body .compare-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .compare-page table td b { color: #f3f3f3; font-weight: 500; }
body .compare-page table .num { text-align: right; color: #bdbdbd; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
body .compare-page table th.num { text-align: right; }
body .compare-page table .sub { display: block; margin-top: 3px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; }
body .compare-page .muted { color: #a3a3a3; }
body .compare-page .small { font-size: 8.5px; }
body .compare-page a:focus-visible, body .compare-page button:focus-visible,
body .compare-page input:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}
@media (min-width: 1200px) {
  body .compare-page .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  body .compare-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .compare-page table td { font-size: 11px; padding: 12px; }
}
@media (max-width: 720px) {
  body .compare-page .page-head h1 { font-size: 30px; }
  body .compare-page .page-actions { width: 100%; }
  body .compare-page .page-actions .ghost-btn { width: 100%; }
  body .compare-page .panel { padding: 18px; border-radius: 20px !important; }
  body .compare-page .grid-3 { grid-template-columns: 1fr; }
  body .compare-page .panel-head { flex-wrap: wrap; }
  body .compare-page .primary-btn { width: 100%; }
}

/* ---------- mock charcoal/orange model detail page ---------- */
body .model-detail-page { max-width: 1220px; }
body .model-detail-page .page-head { align-items: flex-start; margin-bottom: 20px; gap: 18px; }
body .model-detail-page .eyebrow {
  color: #9a9a9a; font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
body .model-detail-page .page-head h1 {
  color: #f3f3f3; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04;
  letter-spacing: -.045em; margin: 8px 0 0;
}
body .model-detail-page .page-head p {
  color: #9a9a9a; max-width: 66ch; margin-top: 8px; font-size: 11.5px; line-height: 1.7;
}
body .model-detail-page .page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body .model-detail-page .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #191919; border: 1px solid #111111; color: #9a9a9a;
  border-radius: 12px; padding: 10px 14px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .model-detail-page .ghost-btn:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
body .model-detail-page .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .model-detail-page .primary-btn:hover { background: #ff6a24; color: #fff; }
body .model-detail-page .inline-code {
  padding: 2px 5px; border: 1px solid #2b2b2b; border-radius: 5px;
  background: #151515; color: #ffb48f; font-family: var(--mono); font-size: 9px;
  white-space: nowrap;
}

/* KPI cards */
body .model-detail-page .grid-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-bottom: 0;
}
body .model-detail-page .stat {
  padding: 22px 24px !important; border: 1px solid #111111 !important;
  border-radius: 28px !important; background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .model-detail-page .stat .label {
  color: #9a9a9a; font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.3;
}
body .model-detail-page .stat .value {
  margin: 14px 0 0; color: #f3f3f3; font-size: 38px; font-weight: 700;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
body .model-detail-page .stat .sub {
  margin-top: 9px; color: #a3a3a3; font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4;
}
body .model-detail-page .section-gap { margin-top: 20px; }

/* cards */
body .model-detail-page .grid-2 { gap: 20px; align-items: start; }
body .model-detail-page .panel {
  padding: 24px; border: 1px solid #111111 !important; border-radius: 28px !important;
  background: #191919 !important; color: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body .model-detail-page .panel-head h2 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
body .model-detail-page .panel-head p { margin-top: 4px; color: #a3a3a3; font-size: 10px; line-height: 1.6; }

/* endpoint table */
body .model-detail-page .table-wrap { margin-top: 14px; overflow-x: auto; }
body .model-detail-page table { width: 100%; border-collapse: collapse; color: #f3f3f3; }
body .model-detail-page table th {
  padding: 10px 8px; border-bottom: 1px solid #242424; background: transparent;
  color: #a3a3a3; font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
body .model-detail-page table td {
  padding: 12px 8px; border-bottom: 1px solid #242424; color: #9a9a9a;
  font-size: 9.5px; vertical-align: middle; white-space: nowrap;
}
body .model-detail-page table tbody tr:last-child td { border-bottom: 0; }
body .model-detail-page table tbody tr:hover { background: rgba(255,255,255,.022); }
body .model-detail-page table td b { color: #f3f3f3; font-weight: 500; }
body .model-detail-page table .num { text-align: right; color: #bdbdbd; font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
body .model-detail-page table th.num { text-align: right; }
body .model-detail-page table .sub { display: block; margin-top: 3px; color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; }
body .model-detail-page .empty {
  padding: 34px 12px; color: #a3a3a3; font-size: 10px; line-height: 1.7; text-align: center;
}

/* capability list */
body .model-detail-page .kv {
  display: grid; grid-template-columns: 112px minmax(0,1fr);
  margin: 16px 0 0; border-top: 1px solid #242424;
}
body .model-detail-page .kv dt, body .model-detail-page .kv dd {
  margin: 0; padding: 10px 0; border-bottom: 1px solid #242424;
  font-size: 9.5px; line-height: 1.55;
}
body .model-detail-page .kv dt {
  padding-right: 12px; color: #a3a3a3; font-size: 7.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
body .model-detail-page .kv dd { color: #bdbdbd; overflow-wrap: anywhere; }
body .model-detail-page .kv dt:nth-last-child(2), body .model-detail-page .kv dd:last-child { border-bottom: 0; }
body .model-detail-page .mono { color: #cfcfcf; font-family: var(--mono); font-size: 8.5px; }
body .model-detail-page .note {
  padding: 12px 14px; border-left: 3px solid #d9a03e; border-radius: 0 10px 10px 0;
  background: #1d1a15; color: #b9a17c; font-size: 9px; line-height: 1.65;
}
body .model-detail-page .note b { color: #e2be7e; }
body .model-detail-page .note .inline-code { font-size: 8.5px; }

body .model-detail-page a:focus-visible, body .model-detail-page button:focus-visible {
  outline: 2px solid #FF4D00; outline-offset: 2px;
}

@media (min-width: 1200px) {
  body .model-detail-page .stat .label { font-size: 9px; letter-spacing: .26em; }
  body .model-detail-page table th { font-size: 8px; padding: 10px 12px; letter-spacing: .18em; }
  body .model-detail-page table td { font-size: 11px; padding: 12px; }
}
@media (max-width: 720px) {
  body .model-detail-page .grid-3 { grid-template-columns: 1fr; }
  body .model-detail-page .grid-2 { grid-template-columns: 1fr; }
  body .model-detail-page .stat { padding: 18px 20px !important; border-radius: 20px !important; }
  body .model-detail-page .panel { padding: 18px; border-radius: 20px !important; }
  body .model-detail-page .page-head h1 { font-size: 30px; }
  body .model-detail-page .page-actions { width: 100%; }
  body .model-detail-page .page-actions .ghost-btn, body .model-detail-page .page-actions .primary-btn { flex: 1; }
  body .model-detail-page .stat .value { font-size: 32px; }
  body .model-detail-page .kv { grid-template-columns: 92px minmax(0,1fr); }
}

/* The legacy theme forces grid-3 children to its old surface; keep the mock skin. */
body .model-detail-page .grid-3 > .stat {
  background: #191919 !important;
  border: 1px solid #111111 !important;
}
body .compare-page .grid-3 > .compare-option {
  background: #151515 !important;
  border: 1px solid #242424 !important;
}
body .compare-page .grid-3 > .compare-option:hover {
  background: #1d1d1d !important;
  border-color: #303030 !important;
}
body .compare-page .grid-3 > .compare-option:has(input:checked) {
  background: rgba(255,77,0,.06) !important;
  border-color: rgba(255,77,0,.48) !important;
}


/* ---------- accessibility pass: overview contrast and readable microtype ---------- */
body.theme-neo .brand-text small { color: #b0b0b0; font-size: 9px; }
body.theme-neo .workspace-picker .eyebrow { color: #b0b0b0; font-size: 9px; }
body.theme-neo .workspace-role { color: #b0b0b0; font-size: 9px; }
body.theme-neo .nav-label { color: #b0b0b0; font-size: 9px; }
body.theme-neo .sidebar-foot .muted { color: #b0b0b0; font-size: 9px; }
body.theme-neo .workspace-chevron { color: #b0b0b0; }
body.theme-neo .main-nav a { font-size: 10.5px; }
body.theme-neo .main-nav a.active,
body.theme-neo .main-nav a.active .nav-icon { color: #130800; }
body.theme-neo .brand-mark,
body.theme-neo .workspace-avatar,
body.theme-neo .topbar .avatar { color: #130800; }

body .dashboard-page .page-head p { font-size: 12px; }
body .dashboard-page .dashboard-context { color: #b0b0b0; font-size: 9px; }
body .dashboard-page .dashboard-context span:first-child { color: #c0c0c0; }
body .dashboard-page .dashboard-preview { font-size: 8px; }
body .dashboard-page .stat .label { color: #b8b8b8; font-size: 9.5px; }
body .dashboard-page .stat .sub { color: #aaaaaa; font-size: 10.5px; }
body .dashboard-page .stat .stat-note { color: #aaaaaa; font-size: 8.5px; }
body .dashboard-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .dashboard-page .dashboard-kicker { color: #aaaaaa; font-size: 8.5px; }
body .dashboard-page .chart-labels { color: #aaaaaa; font-size: 9px; }
body .dashboard-page #usage-chart .empty { color: #aaaaaa; font-size: 11px; }
body .dashboard-page .dashboard-list-head { color: #aaaaaa; font-size: 8.5px; }
body .dashboard-page .split-row .meta { color: #aaaaaa; font-size: 9.5px; }
body .dashboard-page .codeblock .c { color: #aaaaaa; }
body .dashboard-page .dashboard-need-key .small { color: #aaaaaa; font-size: 10px; }
body .dashboard-page .kv { font-size: 11px; }
body .dashboard-page .kv dt { color: #aaaaaa; font-size: 10.5px; }
body .dashboard-page .catalog-card .eyebrow { color: #aaaaaa; font-size: 8.5px; }
body .dashboard-page .catalog-sub { color: #aaaaaa; font-size: 9.5px; }
body .dashboard-page .catalog-price { font-size: 10px; }
body .dashboard-page .catalog-price span { color: #aaaaaa; }
body .dashboard-page .dashboard-catalog-table th { color: #aaaaaa; font-size: 9.5px; }
body .dashboard-page .dashboard-catalog-table td { color: #b8b8b8; font-size: 10.5px; }
body .dashboard-page .dashboard-model-link span { color: #aaaaaa; font-size: 8.5px; }
body .dashboard-page .usage-empty-state span { color: #aaaaaa; font-size: 10.5px; }
body .dashboard-page .pill { font-size: 8px; }
body .dashboard-page .primary-btn,
body .dashboard-page .primary-btn:hover { color: #130800; }
body .dashboard-page .text-link { color: #ff9a6b; }

/* ---------- models catalog: single-item layout and readable microtype ---------- */
body .model-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .model-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .model-page .primary-btn,
body .model-page .primary-btn:hover { color: #130800; }
body .model-page .panel-head p { color: #aaaaaa; font-size: 11.5px; }
body .model-page .model-search {
  height: 40px; color: #f3f3f3; font-size: 12px;
  border-color: #333333; border-radius: 11px;
}
body .model-page .model-search::placeholder { color: #aaaaaa; font-size: 11px; }
body .model-page .model-card-badge { color: #b0b0b0; font-size: 8px; }
body .model-page .model-provider { color: #b0b0b0; font-size: 8.5px; }
body .model-page .model-slug { color: #aaaaaa; font-size: 9.5px; }
body .model-page .model-metrics span { color: #aaaaaa; font-size: 8px; }
body .model-page .model-metrics b { color: #f3f3f3; font-size: 11px; }
body .model-page .model-params { color: #aaaaaa; font-size: 10px; }
body .model-page .model-card-link { color: #b0b0b0; font-size: 9px; }
body .model-page .model-card-link.accent { color: #ff9a6b; }
body .model-page .empty { color: #aaaaaa; font-size: 11px; }
body .model-page .models-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
body .model-page .models-grid.single { grid-template-columns: 1fr; }
body .model-page .models-grid.single .model-catalog-card[data-model-card] {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.9fr);
  column-gap: 28px; row-gap: 7px; padding: 22px;
}
body .model-page .models-grid.single .model-card-top { grid-column: 1/-1; }
body .model-page .models-grid.single .model-catalog-card h3 { grid-column: 1; grid-row: 2; margin-top: 8px; font-size: 24px; }
body .model-page .models-grid.single .model-provider { grid-column: 1; grid-row: 3; }
body .model-page .models-grid.single .model-slug { grid-column: 1; grid-row: 4; }
body .model-page .models-grid.single .model-metrics {
  grid-column: 2; grid-row: 2 / 5; align-content: start;
  grid-template-columns: 1fr; gap: 10px; margin: 0;
  padding: 0 0 0 24px; border-top: 0; border-bottom: 0; border-left: 1px solid #2a2a2a;
}
body .model-page .models-grid.single .model-metrics > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-bottom: 9px; border-bottom: 1px solid #2a2a2a;
}
body .model-page .models-grid.single .model-metrics > div:last-child { border-bottom: 0; padding-bottom: 0; }
body .model-page .models-grid.single .model-metrics span { font-size: 8.5px; }
body .model-page .models-grid.single .model-metrics b { margin-top: 0; font-size: 12px; }
body .model-page .models-grid.single .model-params { grid-column: 1; grid-row: 5; margin-top: 12px; }
body .model-page .models-grid.single .model-actions {
  grid-column: 1/-1; grid-row: 6; margin-top: 8px; padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}
body .model-page .models-empty { grid-column: 1/-1; padding: 28px 0; text-align: center; }
@media (max-width: 760px) {
  body .model-page .models-grid.single .model-catalog-card[data-model-card] { display: flex; padding: 18px; }
  body .model-page .models-grid.single .model-metrics {
    grid-column: auto; grid-row: auto; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px; margin-top: 11px; padding: 10px 0; border-left: 0;
    border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
  }
  body .model-page .models-grid.single .model-metrics > div { display: block; padding: 0; border-bottom: 0; }
  body .model-page .models-grid.single .model-actions { margin-top: 0; }
}

/* ---------- API keys accessibility pass ---------- */
body .keys-page .primary-btn,
body .keys-page .primary-btn:hover,
body .keys-page .keys-dialog-submit,
body .keys-page .keys-dialog-submit:hover { color: #130800; }
body .keys-page .keys-stat-label { color: #b8b8b8; font-size: 9px; }
body .keys-page .keys-stat-sub { color: #aaaaaa; font-size: 9.5px; }
body .keys-page .keys-notice b { color: #eeeeee; font-size: 12px; }
body .keys-page .keys-notice p { color: #b8b8b8; font-size: 11.5px; line-height: 1.65; }
body .keys-page .keys-search input { color: #f3f3f3; font-size: 12px; }
body .keys-page .keys-toolbar-meta { color: #aaaaaa; font-size: 9px; }
body .keys-page .keys-table th { color: #b0b0b0; font-size: 9px; }
body .keys-page .keys-name { font-size: 11px; }
body .keys-page .keys-kind { color: #aaaaaa; font-size: 8.5px; }
body .keys-page .keys-scope { color: #b0b0b0; font-size: 8.5px; }
body .keys-page .keys-status { color: #b0b0b0; font-size: 8.5px; }
body .keys-page .keys-empty-row td { color: #b0b0b0; font-size: 11px; }
body .keys-page .keys-table-foot { color: #aaaaaa; font-size: 9px; }
body .keys-page .keys-dialog-field > span,
body .keys-page .keys-dialog-models legend { color: #b8b8b8; font-size: 9px; }
body .keys-page .keys-dialog-hint { color: #aaaaaa; font-size: 9.5px; }
body .keys-page .keys-dialog-model-box .check-row { color: #b8b8b8; font-size: 10px; }

/* ---------- Usage accessibility pass ---------- */
body .usage-page .stat .label { color: #b8b8b8; font-size: 9.5px; }
body .usage-page .stat .sub { color: #aaaaaa; font-size: 10px; }
body .usage-page .stat-dots { color: #aaaaaa; font-size: 9px; }
body .usage-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .usage-page .usage-empty-state b { color: #f3f3f3; font-size: 14px; }
body .usage-page .usage-empty-state span { color: #b0b0b0; font-size: 11px; }
body .usage-page .usage-empty-state .text-link,
body .usage-page .usage-empty .text-link { color: #ff9a6b; font-size: 9.5px; }
body .usage-page .chart-labels { color: #aaaaaa; font-size: 9px; }
body .usage-page table th { color: #b0b0b0; font-size: 9px; }
body .usage-page table td { color: #b0b0b0; font-size: 11px; }
body .usage-page table .num { color: #c6c6c6; font-size: 10.5px; }
body .usage-page .usage-empty { color: #b0b0b0; font-size: 11.5px; }

/* ---------- Billing accessibility pass ---------- */
body .billing-page .primary-btn,
body .billing-page .primary-btn:hover { color: #130800; }
body .billing-page .ghost-btn { color: #b0b0b0; font-size: 9px; }
body .billing-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .billing-page .scope-note b { color: #f3f3f3; font-size: 10px; }
body .billing-page .scope-note p { color: #b0b0b0; font-size: 10.5px; }
body .billing-page .panel-head p,
body .billing-page .form-card > p { color: #aaaaaa; font-size: 11px; }
body .billing-page .stat .label,
body .billing-page .stat.accent .label { color: #b0b0b0; font-size: 9.5px; }
body .billing-page .stat .sub,
body .billing-page .stat.accent .sub { color: #aaaaaa; font-size: 10px; }
body .billing-page .split-row .meta { color: #aaaaaa; font-size: 8.5px; }
body .billing-page .note.warn { color: #d0b68a; font-size: 10px; }
body .billing-page .stack-form label { color: #b0b0b0; font-size: 9.5px; }
body .billing-page .stack-form input,
body .billing-page .stack-form select { color: #f3f3f3; font-size: 12px; }
body .billing-page .form-hint { color: #aaaaaa; font-size: 9.5px; }
body .billing-page table th { color: #b0b0b0; font-size: 9px; }
body .billing-page table td { color: #b0b0b0; font-size: 10.5px; }
body .billing-page table .num { color: #c6c6c6; font-size: 10px; }
body .billing-page .mono { color: #c6c6c6; font-size: 9.5px; }
body .billing-page .pill { color: #b0b0b0; font-size: 8.5px; }
body .billing-page .empty { color: #b0b0b0; font-size: 11px; padding: 24px 12px; }
body .billing-page .action-drawer > summary { font-size: 11px; }
body .billing-page .action-drawer .form-card h3 { font-size: 16px; }

/* ---------- Playground accessibility pass ---------- */
body .playground-page .primary-btn,
body .playground-page .primary-btn:hover { color: #130800; }
body .playground-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .playground-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .playground-page .ghost-btn { color: #b0b0b0; font-size: 9.5px; }
body .playground-page .chat-head .muted { color: #b0b0b0; font-size: 10px; }
body .playground-page .chat-status { color: #b0b0b0; font-size: 8.5px; }
body .playground-page .chat-log .empty { color: #b0b0b0; font-size: 12px; }
body .playground-page .msg .bubble { font-size: 12px; }
body .playground-page .msg.user .bubble { color: #130800; }
body .playground-page .chat-compose textarea { color: #f3f3f3; font-size: 12.5px; }
body .playground-page .chat-compose .compose-row { color: #aaaaaa; font-size: 9px; }
body .playground-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .playground-page label { color: #b0b0b0; font-size: 9.5px; }
body .playground-page select, body .playground-page textarea { color: #f3f3f3; font-size: 12px; }
body .playground-page .metric-list div { color: #b0b0b0; font-size: 10.5px; }
body .playground-page .metric-list b { color: #f3f3f3; font-size: 10.5px; }
body .playground-page .form-hint { color: #aaaaaa; font-size: 9.5px; }
body .playground-page .quick-prompts button { color: #b0b0b0; font-size: 10.5px; }

/* ---------- Team accessibility pass ---------- */
body .team-page .primary-btn,
body .team-page .primary-btn:hover { color: #130800; }
body .team-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .team-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .team-page .panel-head p,
body .team-page .form-card > p { color: #aaaaaa; font-size: 11px; }
body .team-page table th { color: #b0b0b0; font-size: 9px; }
body .team-page table td { color: #b0b0b0; font-size: 11px; }
body .team-page .role-tag { color: #b0b0b0; font-size: 8.5px; }
body .team-page .pill { color: #b0b0b0; font-size: 8.5px; }
body .team-page .empty { color: #b0b0b0; font-size: 11px; }
body .team-page .stack-form label,
body .team-page .form-grid.two label { color: #b0b0b0; font-size: 9.5px; }
body .team-page .stack-form input,
body .team-page .stack-form select,
body .team-page .form-grid.two input,
body .team-page .form-grid.two select,
body .team-page .inline-fields select { color: #f3f3f3; font-size: 11.5px; }
body .team-page .form-hint { color: #aaaaaa; font-size: 9.5px; }
body .team-page .note { color: #d0b68a; font-size: 10px; }

/* ---------- Workspaces accessibility pass ---------- */
body .workspaces-page .primary-btn,
body .workspaces-page .primary-btn:hover { color: #130800; }
body .workspaces-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .workspaces-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .workspaces-page .panel-head p,
body .workspaces-page .form-card > p { color: #aaaaaa; font-size: 11px; }
body .workspaces-page .split-row b { color: #f3f3f3; font-size: 12px; }
body .workspaces-page .split-row .meta { color: #aaaaaa; font-size: 9px; }
body .workspaces-page .workspace-current {
  display: inline-flex; align-items: center; padding: 5px 8px;
  border: 1px solid rgba(255,77,0,.25); border-radius: 99px;
  background: rgba(255,77,0,.08); color: #ffb08a;
  font: 700 8px var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
body .workspaces-page .stack-form label { color: #b0b0b0; font-size: 9.5px; }
body .workspaces-page .stack-form input,
body .workspaces-page .stack-form select { color: #f3f3f3; font-size: 12px; }
body .workspaces-page .form-hint { color: #aaaaaa; font-size: 9.5px; }

/* ---------- Intelligence accessibility pass ---------- */
body .intelligence-page .primary-btn,
body .intelligence-page .primary-btn:hover { color: #130800; }
body .intelligence-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .intelligence-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .intelligence-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .intelligence-page .pill { color: #b0b0b0; font-size: 8.5px; }
body .intelligence-page .kv dt { color: #aaaaaa; font-size: 8.5px; }
body .intelligence-page .kv dd { color: #c6c6c6; font-size: 10.5px; }
body .intelligence-page .note { color: #d0b68a; font-size: 10px; }
body .intelligence-page table th { color: #b0b0b0; font-size: 9px; }
body .intelligence-page table td { color: #b0b0b0; font-size: 10.5px; }
body .intelligence-page table .num { color: #c6c6c6; font-size: 10px; }
body .intelligence-page table .sub { color: #aaaaaa; font-size: 8.5px; }
body .intelligence-page .empty { color: #b0b0b0; font-size: 11px; padding: 24px 12px; }
body .intelligence-page .inline-fields label { color: #b0b0b0; font-size: 9px; }
body .intelligence-page .inline-fields input:not([type=hidden]),
body .intelligence-page .inline-fields select { color: #f3f3f3; font-size: 11.5px; }
body .intelligence-page .primary-btn { font-size: 9px; }
body .intelligence-page .split-row b { color: #f3f3f3; font-size: 11px; }
body .intelligence-page .split-row .meta { color: #aaaaaa; font-size: 9px; }
body .intelligence-page .ghost-btn { color: #b0b0b0; font-size: 9px; }

/* ---------- Settings accessibility pass ---------- */
body .settings-page .primary-btn,
body .settings-page .primary-btn:hover { color: #130800; }
body .settings-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .settings-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .settings-page .panel-head p,
body .settings-page .form-card > p { color: #aaaaaa; font-size: 11px; }
body .settings-page .stack-form label,
body .settings-page .form-grid.two label { color: #b0b0b0; font-size: 9.5px; }
body .settings-page .stack-form input,
body .settings-page .stack-form select,
body .settings-page .form-grid.two input,
body .settings-page .form-grid.two select { color: #f3f3f3; font-size: 12px; }
body .settings-page .form-hint { color: #aaaaaa; font-size: 9.5px; }
body .settings-page .note { color: #d0b68a; font-size: 10px; }
body .settings-page table th { color: #b0b0b0; font-size: 9px; }
body .settings-page table td { color: #b0b0b0; font-size: 10.5px; }
body .settings-page .mono { color: #c6c6c6; font-size: 9.5px; }
body .settings-page .pill { color: #b0b0b0; font-size: 8.5px; }
body .settings-page .empty { color: #b0b0b0; font-size: 11px; }
body .settings-page .inline-fields label { color: #b0b0b0; font-size: 9px; }
body .settings-page .inline-fields input,
body .settings-page .inline-fields select { color: #f3f3f3; font-size: 11.5px; }
body .settings-page .split-row b { color: #f3f3f3; font-size: 11px; }
body .settings-page .split-row .meta { color: #aaaaaa; font-size: 9px; }
body .settings-page .ghost-btn { color: #b0b0b0; font-size: 9px; }
body .settings-page .form-card > h2 {
  color: #f3f3f3; font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}

/* ---------- public docs shell + readability ---------- */
body.docs-public { grid-template-columns: 1fr; background: var(--bg); }
body.docs-public .sidebar,
body.docs-public .nav-backdrop,
body.docs-public .menu-button { display: none; }
body.docs-public .main { min-height: 100vh; }
body.docs-public .topbar { padding-left: 30px; }
body.docs-public .content { max-width: 1140px; }
body.docs-public .docs-page { max-width: 1140px; }
body.docs-public .docs-page .docs-content { max-width: 900px; }
body .docs-page .docs-nav .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .docs-page .docs-nav a { color: #b0b0b0; font-size: 10.5px; }
body .docs-page .docs-content > .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .docs-page .docs-content p,
body .docs-page .docs-content li { color: #b0b0b0; font-size: 12.5px; line-height: 1.75; }
body .docs-page .docs-content code,
body .docs-page .docs-content .inline-code { font-size: 10.5px; }
body .docs-page .docs-content pre,
body .docs-page .docs-content pre code { font-size: 10.5px; line-height: 1.7; }
body .docs-page .docs-content th { color: #b0b0b0; font-size: 9px; }
body .docs-page .docs-content td { color: #b0b0b0; font-size: 11px; }
body .docs-page .docs-content .note { color: #d0b68a; font-size: 10.5px; }
@media (max-width: 720px) {
  body.docs-public .topbar { padding: 0 18px; }
  body.docs-public .content { padding-left: 18px; padding-right: 18px; }
}
body.docs-public.app-shell { grid-template-columns: 1fr; }

/* ---------- Model detail readability pass ---------- */
body .model-detail-page .primary-btn,
body .model-detail-page .primary-btn:hover { color: #130800; }
body .model-detail-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .model-detail-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .model-detail-page .ghost-btn { color: #b0b0b0; font-size: 9px; }
body .model-detail-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .model-detail-page .stat .label { color: #b0b0b0; font-size: 9.5px; }
body .model-detail-page .stat .sub { color: #aaaaaa; font-size: 10px; }
body .model-detail-page table th { color: #b0b0b0; font-size: 9px; }
body .model-detail-page table td { color: #b0b0b0; font-size: 10.5px; }
body .model-detail-page table .num { color: #c6c6c6; font-size: 10px; }
body .model-detail-page table .sub { color: #aaaaaa; font-size: 8.5px; }
body .model-detail-page .kv dt { color: #aaaaaa; font-size: 9px; }
body .model-detail-page .kv dd { color: #c6c6c6; font-size: 10.5px; }
body .model-detail-page .mono { color: #c6c6c6; font-size: 9.5px; }
body .model-detail-page .note { color: #d0b68a; font-size: 10px; }

/* ---------- Compare readability and insufficient-catalog state ---------- */
body .compare-page .primary-btn,
body .compare-page .primary-btn:hover { color: #130800; }
body .compare-page .primary-btn:disabled {
  opacity: .48; cursor: not-allowed; transform: none; box-shadow: none;
}
body .compare-page .eyebrow { color: #b0b0b0; font-size: 8.5px; }
body .compare-page .page-head p { color: #b0b0b0; font-size: 12px; }
body .compare-page .ghost-btn { color: #b0b0b0; font-size: 9px; }
body .compare-page .panel-head p { color: #aaaaaa; font-size: 11px; }
body .compare-page .compare-option b { color: #f3f3f3; font-size: 11.5px; }
body .compare-page .compare-slug { color: #aaaaaa; font-size: 9.5px; }
body .compare-page .form-hint { color: #aaaaaa; font-size: 10px; }
body .compare-page table th { color: #b0b0b0; font-size: 9px; }
body .compare-page table td { color: #b0b0b0; font-size: 10.5px; }
body .compare-page table .num { color: #c6c6c6; font-size: 10px; }
body .compare-page table .sub { color: #aaaaaa; font-size: 8.5px; }
body .compare-page .muted,
body .compare-page .small { color: #aaaaaa; font-size: 9.5px; }

/* ---------- additional model card styles: gradient + outline (existing flat card unchanged) ---------- */
body .model-page .model-catalog-card.style-gradient[data-model-card] {
  background: linear-gradient(135deg, #FF4D00 0%, #E04400 48%, #B83700 100%) !important;
  border: 1px solid #111111 !important;
  border-left-width: 1px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff;
}
body .model-page .model-catalog-card.style-gradient[data-model-card]:hover {
  background: linear-gradient(135deg, #FF4D00 0%, #E04400 48%, #B83700 100%) !important;
  border-color: #111111 !important;
}
body .model-page .style-gradient .model-card-icon {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
  box-shadow: none;
}
body .model-page .style-gradient .model-card-icon img { filter: brightness(0) invert(1); }
body .model-page .style-gradient .model-card-badge {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: 3px 6px; border-radius: 5px;
  font-size: 7px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
}
body .model-page .style-gradient h3,
body .model-page .style-gradient h3 a { color: #fff; }
body .model-page .style-gradient .model-provider { color: rgba(255,255,255,.62); }
body .model-page .style-gradient .model-slug { color: rgba(255,255,255,.55); }
body .model-page .style-gradient .model-metrics {
  border-top-color: rgba(255,255,255,.18);
  border-bottom-color: rgba(255,255,255,.18);
}
body .model-page .style-gradient .model-metrics span { color: rgba(255,255,255,.55); }
body .model-page .style-gradient .model-metrics b { color: #fff; }
body .model-page .style-gradient .model-params { color: rgba(255,255,255,.86); }
body .model-page .style-gradient .model-card-link { color: #fff; }
body .model-page .style-gradient .model-card-link.accent { color: #fff; }
body .model-page .style-gradient .model-card-link:hover { color: rgba(255,255,255,.72); }

body .model-page .model-catalog-card.style-outline[data-model-card] {
  position: relative;
  background: #181818 !important;
  border: 1px solid rgba(255,77,0,.26) !important;
  border-left-width: 1px !important;
  box-shadow: none;
}
body .model-page .model-catalog-card.style-outline[data-model-card]:hover {
  background: #181818 !important;
  border-color: rgba(255,77,0,.26) !important;
}
body .model-page .style-outline::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #FF4D00, transparent);
  opacity: .9;
}
body .model-page .style-outline .model-card-icon {
  background: #111111;
  border-color: rgba(255,77,0,.3);
  border-radius: 50%;
  color: #FF4D00;
}
body .model-page .style-outline .model-card-badge {
  color: #FF4D00;
  background: transparent;
  border: 1px solid rgba(255,77,0,.32);
  padding: 3px 6px; border-radius: 5px;
  font-size: 7px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
}
body .model-page .style-outline .model-metrics {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.1);
  border-bottom: 0;
}
body .model-page .style-outline .model-metrics b { margin-top: 2px; font-size: 9px; }
body .model-page .style-outline .model-card-link { color: #FF4D00; }


/* ---------- dark viewport + sidebar scrollbars for the console ---------- */
html.theme-dark { color-scheme: dark; background: #1b1c1f; }
html.theme-dark body { background: #1b1c1f; }

html.theme-dark::-webkit-scrollbar { width: 12px; height: 12px; }
html.theme-dark::-webkit-scrollbar-track { background: #141518; }
html.theme-dark::-webkit-scrollbar-thumb {
  background: #3a3b42; border-radius: 8px; border: 3px solid #141518;
  background-clip: padding-box;
}
html.theme-dark::-webkit-scrollbar-thumb:hover {
  background: #4d4e57; border: 3px solid #141518; background-clip: padding-box;
}
html.theme-dark::-webkit-scrollbar-corner { background: #141518; }

body.theme-neo { scrollbar-color: #3a3b42 #141518; scrollbar-width: thin; }

body.theme-neo .sidebar::-webkit-scrollbar { width: 8px; }
body.theme-neo .sidebar::-webkit-scrollbar-track { background: transparent; }
body.theme-neo .sidebar::-webkit-scrollbar-thumb {
  background: #3a3b42; border-radius: 8px;
}
body.theme-neo .sidebar::-webkit-scrollbar-thumb:hover { background: #4d4e57; }

/* Auth pages share the dark inner-page DNA with orange primary actions. */
body.auth-shell { background: #0f1011; color: #f4f4f7; }
body.auth-shell .auth-panel { background: #111214; color: #f4f4f7; }
body.auth-shell .auth-form h2 { color: #fff; }
body.auth-shell .auth-form > .muted,
body.auth-shell .auth-switch,
body.auth-shell .auth-legal { color: #a0a1ab; }
body.auth-shell .auth-switch a { color: #ff9a66; }
body.auth-shell label { color: #d2d3dc; }
body.auth-shell input {
  background: #202126; color: #f4f4f7; border-color: #3b3c44;
}
body.auth-shell input::placeholder { color: #8f909a; }
body.auth-shell input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,0,.2);
}
body.auth-shell .primary-btn {
  background: linear-gradient(135deg,#ff8a4d,#ff4d00);
  color: #0b0b0b;
}
body.auth-shell .primary-btn:hover {
  background: linear-gradient(135deg,#ff9d68,#d94100);
}
body.auth-shell .flash.good { background:#15362a; border-color:#245943; color:#7beac1; }
body.auth-shell .flash.bad { background:#3b1c25; border-color:#6a2d3d; color:#ffb1bd; }
body.auth-shell .auth-mobile-brand .brand { color:#fff; }

/* Auth pages use the same app shell and page DNA as the authenticated console. */
body.auth-app .auth-page {
  min-height: calc(100vh - 66px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 30px;
}
body.auth-app .auth-card {
  width: 100%; max-width: 560px; padding: 34px 38px;
}
body.auth-app .auth-form .eyebrow { margin-bottom: 9px; }
body.auth-app .auth-form h2 { font-size: 32px; letter-spacing: -.035em; }
body.auth-app .auth-form > .muted { font-size: 13px; margin-bottom: 22px; }
body.auth-app .auth-form .full { width: 100%; }
body.auth-app .auth-switch { margin-top: 20px; }
body.auth-app .auth-legal { margin-top: 26px; }
@media (max-width: 640px) {
  body.auth-app .auth-page { padding: 24px 18px; align-items: flex-start; }
  body.auth-app .auth-card { padding: 26px 22px; }
}

/* Auth actions inherit the orange inner-page accent, not the customer pink. */
body.auth-app .auth-card .primary-btn {
  background: linear-gradient(135deg,#ff8a4d,#ff4d00);
  color: #0b0b0b;
  box-shadow: 0 1px 2px rgba(38,15,5,.18), 0 4px 14px rgba(255,77,0,.2);
}
body.auth-app .auth-card .primary-btn:hover {
  background: linear-gradient(135deg,#ff9d68,#d94100);
}
body.auth-app .auth-card a { color: #ff9a66; }
body.auth-app .auth-card .auth-switch { color: #a0a1ab; }

/* Focused auth page using the inner-page surface, type and action DNA. */
body.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(255,77,0,.10), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(255,77,0,.06), transparent 65%),
    #1b1c1f;
}
.auth-page-inner {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; align-items: center;
}
.auth-top-brand {
  align-self: center; margin-bottom: 26px; color: #f4f4f7;
}
.auth-top-brand .brand-text b { color: #f4f4f7; }
.auth-top-brand .brand-text small { color: #b8b9c2; }
body.auth-page .auth-card {
  width: 100%; padding: 34px 36px;
}
body.auth-page .auth-form .eyebrow { margin-bottom: 9px; }
body.auth-page .auth-form h2 {
  color: #fff; font-size: 32px; line-height: 1.05; letter-spacing: -.04em;
}
body.auth-page .auth-form > .muted { color: #a0a1ab; font-size: 13px; margin-bottom: 22px; }
body.auth-page .auth-form .full { width: 100%; }
body.auth-page .auth-card a { color: #ff9a66; }
body.auth-page .auth-switch { margin-top: 20px; color: #a0a1ab; }
body.auth-page .auth-card .primary-btn {
  background: linear-gradient(135deg,#ff8a4d,#ff4d00); color: #0b0b0b;
  box-shadow: 0 1px 2px rgba(38,15,5,.18), 0 4px 14px rgba(255,77,0,.22);
}
body.auth-page .auth-card .primary-btn:hover {
  background: linear-gradient(135deg,#ff9d68,#d94100);
}
.auth-page-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 22px; color: #8f909a; font-family: var(--mono); font-size: 10.5px;
}
.auth-page-legal {
  margin: 10px 0 0; max-width: 420px; text-align: center;
  color: #777984; font-size: 10.5px; line-height: 1.6;
}
@media (max-width: 600px) {
  body.auth-page { padding: 28px 16px; align-items: flex-start; }
  body.auth-page .auth-card { padding: 26px 22px; }
  .auth-top-brand { margin: 12px 0 22px; }
}

/* Focused auth page using the API Keys page DNA: warm page, dark card, orange action. */
body.auth-light {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 48px 20px; background: #f7f4f0; color: #0b0b0b;
}
.auth-light .auth-page-inner { width: 100%; max-width: 560px; }
.auth-light .auth-top-brand { align-self: center; margin-bottom: 28px; color: #0b0b0b; }
.auth-light .auth-top-brand .brand-text b { color: #0b0b0b; }
.auth-light .auth-top-brand .brand-text small { color: #667085; }
.auth-light .auth-card {
  width: 100%; padding: 34px 36px;
  background: #191919; border: 1px solid #111111; border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-light .auth-form .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
.auth-light .auth-form h2 {
  color: #f3f3f3; font-size: 34px; line-height: 1.06; letter-spacing: -.04em;
}
.auth-light .auth-form > .muted { color: #a3a3a3; font-size: 12px; margin-bottom: 24px; }
.auth-light .auth-form label {
  color: #b8b8b8; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
}
.auth-light .auth-form input {
  height: 48px; padding: 0 16px; background: #181818; border: 0; border-radius: 14px;
  color: #f3f3f3; font-size: 12px;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
  transition: box-shadow .2s;
}
.auth-light .auth-form input::placeholder { color: #a3a3a3; font-size: 10px; }
.auth-light .auth-form input:focus {
  border: 0; outline: 0;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
.auth-light .auth-card .primary-btn {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700);
  color: #130800; font-size: 9px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.auth-light .auth-card .primary-btn:hover { background: #ff6a24; color: #fff; }
.auth-light .auth-card a { color: #ff9a66; }
.auth-light .auth-switch { margin-top: 20px; color: #a3a3a3; font-size: 11px; }
.auth-light .auth-page-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 22px; color: #667085; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
}
.auth-light .auth-page-legal {
  margin: 10px 0 0; max-width: 420px; text-align: center;
  color: #8a8f98; font-size: 10.5px; line-height: 1.6;
}
@media (max-width: 600px) {
  body.auth-light { padding: 28px 16px; align-items: flex-start; }
  .auth-light .auth-card { padding: 26px 22px; border-radius: 20px; }
  .auth-light .auth-top-brand { margin: 12px 0 22px; }
}

/* Auth split: keys-page model catalog on the left, focused login on the right. */
body.auth-light { display: block; padding: 32px 20px; }
.auth-light-inner { width: 100%; max-width: 1240px; margin: 0 auto; }
.auth-grid {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(380px,.85fr);
  gap: 24px; align-items: start;
}
.auth-grid.single { display: block; max-width: 560px; margin: 0 auto; }
.auth-catalog {
  display: flex; flex-direction: column; min-width: 0; max-height: 760px;
  padding: 24px; background: #191919; border: 1px solid #111111; border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-catalog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.auth-catalog-head .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 9px;
}
.auth-catalog-head h2 {
  margin: 0; color: #f3f3f3; font-size: 32px; line-height: 1.04; letter-spacing: -.04em;
}
.auth-catalog-count {
  color: #a3a3a3; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.auth-catalog-list { margin-top: 18px; overflow: auto; padding-right: 4px; }
.auth-catalog-list::-webkit-scrollbar { width: 8px; }
.auth-catalog-list::-webkit-scrollbar-thumb { background: #333333; border-radius: 999px; }
.auth-catalog-row {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px;
  align-items: center; padding: 11px 4px; border-top: 1px solid #242424;
}
.auth-catalog-row:first-child { border-top: 0; }
.auth-catalog-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 10px; background: #242424; color: #ff9a66;
  font-size: 10px; font-weight: 700;
}
.auth-catalog-name { min-width: 0; }
.auth-catalog-name b { display: block; color: #f3f3f3; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-catalog-name small { display: block; color: #a3a3a3; font-size: 9px; margin-top: 2px; }
.auth-catalog-price {
  color: #d0d0d0; font-family: var(--mono); font-size: 9px;
  text-align: right; white-space: nowrap;
}
.auth-catalog-price small { display: block; color: #777777; font-size: 7.5px; margin-top: 2px; }
.auth-login { min-width: 0; }
.auth-login .auth-top-brand { align-self: flex-start; margin: 8px 0 18px 4px; }
.auth-light .auth-card { width: 100%; }
@media (max-width: 980px) {
  .auth-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .auth-login { order: 1; }
  .auth-catalog { order: 2; max-height: 420px; margin-top: 22px; }
  .auth-catalog-head h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  body.auth-light { padding: 24px 14px; }
  .auth-catalog { border-radius: 20px; padding: 18px; }
  .auth-catalog-row { grid-template-columns: 28px minmax(0,1fr); }
  .auth-catalog-price { display: none; }
}

/* Auth catalog uses the exact Models page cards on a white page. */
body.auth-light { background: #ffffff; }
.auth-models {
  min-width: 0; max-height: 760px; overflow: auto; padding-right: 2px;
}
.auth-models .models-panel { margin: 0; }
.auth-models .models-grid { margin-top: 14px; }
.auth-models::-webkit-scrollbar { width: 8px; }
.auth-models::-webkit-scrollbar-thumb { background: #333333; border-radius: 999px; }
@media (max-width: 980px) {
  .auth-models { max-height: 440px; margin-top: 22px; }
}

/* Catalog rail: dark models-page surface, three cards per row. */
.auth-grid { max-width: 1400px; grid-template-columns: minmax(0,1.9fr) minmax(360px,.8fr); }
.auth-models {
  background: #191919; border: 1px solid #111111; border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-models .models-panel {
  background: #191919; border-radius: 28px; box-shadow: none;
}
.auth-models .models-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px;
}
.auth-models .model-catalog-card[data-model-card] {
  padding: 14px; border-radius: 16px;
}
.auth-models .model-catalog-card h3 { font-size: 18px; line-height: 1.05; }
.auth-models .model-catalog-card .model-provider,
.auth-models .model-catalog-card .model-slug { font-size: 8px; }
.auth-models .model-catalog-card .model-metrics {
  grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px;
}
.auth-models .model-catalog-card .model-metrics span { font-size: 7px; }
.auth-models .model-catalog-card .model-metrics b { font-size: 10.5px; }
.auth-models .model-catalog-card .model-params { font-size: 8px; }
.auth-models .model-catalog-card .model-actions { padding-top: 10px; }
@media (max-width: 760px) {
  .auth-models .models-grid { grid-template-columns: 1fr; }
}

/* Keep the auth catalog at three cards per row against the models-page grid. */
body .auth-models .models-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}

/* Compact three-column catalog cards: keep the model-page card language readable. */
body .auth-models .model-catalog-card .model-metrics {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 0;
}
body .auth-models .model-catalog-card .model-metrics > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  padding: 0; border: 0;
}
body .auth-models .model-catalog-card .model-metrics span { font-size: 6.5px; white-space: nowrap; }
body .auth-models .model-catalog-card .model-metrics b { font-size: 10px; white-space: nowrap; }
body .auth-models .model-catalog-card .model-slug {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body .auth-models .model-catalog-card .model-params { display: none; }

/* Polished dark auth: model catalog left, secure access right. */
body.auth-dark {
  min-height: 100vh; margin: 0; padding: 26px 28px 34px;
  background:
    radial-gradient(1100px 650px at 8% -5%, rgba(255,77,0,.10), transparent 58%),
    radial-gradient(800px 600px at 100% 110%, rgba(255,77,0,.055), transparent 62%),
    #0b0b0b;
  color: #f3f3f3;
}
.auth-nav {
  width: 100%; max-width: 1400px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.auth-nav-brand { color: #f3f3f3; }
.auth-nav-brand .brand-text b { color: #f3f3f3; }
.auth-nav-brand .brand-text small { color: #a3a3a3; }
.auth-docs {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; border-radius: 12px;
  background: #191919; border: 1px solid #2a2a2a; color: #b8b8b8;
  font-size: 8.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
}
.auth-docs:hover { background: #202020; color: #f3f3f3; text-decoration: none; }
.auth-dark-inner { width: 100%; max-width: 1400px; margin: 0 auto; }
.auth-dark .auth-grid {
  display: grid; grid-template-columns: minmax(0,1.9fr) minmax(360px,.8fr);
  gap: 20px; align-items: start;
}
.auth-dark .auth-grid.single { display: block; max-width: 520px; margin: 0 auto; }
.auth-dark .auth-models {
  min-width: 0; max-height: calc(100vh - 190px); overflow: auto;
  background: #131313; border: 1px solid #242424; border-radius: 28px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}
.auth-dark .auth-models .models-panel {
  background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 22px 24px;
}
.auth-dark .auth-models .models-panel-head { align-items: flex-start; }
.auth-dark .auth-models .models-panel-head h2 { color: #f3f3f3; font-size: 20px; }
.auth-dark .auth-models .models-panel-head p { color: #a3a3a3; font-size: 10px; }
.auth-dark .auth-models .models-panel-head .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px;
}
.auth-catalog-status {
  color: #b8b8b8; font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 10px; border: 1px solid #303030; border-radius: 999px;
}
body .auth-dark .auth-models .models-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 12px;
}
body .auth-dark .auth-models .model-catalog-card[data-model-card] {
  padding: 14px; border-radius: 16px; background: #191919 !important; border-color: #2a2a2a !important;
}
body .auth-dark .auth-models .model-catalog-card h3 { font-size: 17px; line-height: 1.06; }
body .auth-dark .auth-models .model-provider,
body .auth-dark .auth-models .model-slug { font-size: 8px; color: #a3a3a3; }
body .auth-dark .auth-models .model-slug { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .auth-dark .auth-models .model-catalog-card .model-metrics {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 0;
}
body .auth-dark .auth-models .model-catalog-card .model-metrics > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  padding: 0; border: 0;
}
body .auth-dark .auth-models .model-catalog-card .model-metrics span { font-size: 6.5px; white-space: nowrap; }
body .auth-dark .auth-models .model-catalog-card .model-metrics b { font-size: 10px; white-space: nowrap; }
body .auth-dark .auth-models .model-catalog-card .model-params { display: none; }
body .auth-dark .auth-models .model-catalog-card .model-actions { padding-top: 10px; }
.auth-dark .auth-models::-webkit-scrollbar { width: 8px; }
.auth-dark .auth-models::-webkit-scrollbar-thumb { background: #333333; border-radius: 999px; }
.auth-dark .auth-login { min-width: 0; }
.auth-dark .auth-card {
  width: 100%; padding: 32px 34px;
  background: #191919; border: 1px solid #2a2a2a; border-radius: 28px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-dark .auth-form .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
.auth-dark .auth-form h2 { color: #f3f3f3; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.auth-dark .auth-form > .muted { color: #a3a3a3; font-size: 12px; margin-bottom: 24px; }
.auth-dark .auth-form label { color: #b8b8b8; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.auth-dark .auth-form input {
  height: 48px; padding: 0 16px; background: #181818; border: 0; border-radius: 14px;
  color: #f3f3f3; font-size: 12px;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
.auth-dark .auth-form input::placeholder { color: #a3a3a3; font-size: 10px; }
.auth-dark .auth-form input:focus {
  outline: 0; border: 0;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
.auth-dark .auth-card .primary-btn {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700);
  color: #130800; font-size: 9px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.auth-dark .auth-card .primary-btn:hover { background: #ff6a24; color: #fff; }
.auth-dark .auth-card a { color: #ff9a66; }
.auth-dark .auth-switch { margin-top: 20px; color: #a3a3a3; font-size: 11px; }
.auth-dark .auth-page-foot {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
  color: #8a8a8a; font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
}
.auth-dark .auth-page-legal { margin: 8px 0 0; color: #777777; font-size: 10.5px; line-height: 1.6; }
.auth-dark-foot {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #242424;
  color: #777777; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
@media (max-width: 1100px) {
  .auth-dark .auth-grid { grid-template-columns: minmax(0,1.55fr) minmax(340px,.85fr); }
}
@media (max-width: 900px) {
  body.auth-dark { padding: 20px 16px 28px; }
  .auth-dark .auth-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .auth-dark .auth-login { order: 1; }
  .auth-dark .auth-models { order: 2; max-height: 460px; margin-top: 20px; }
  .auth-dark .auth-models .models-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 620px) {
  .auth-dark .auth-models .models-grid { grid-template-columns: 1fr !important; }
  .auth-dark .auth-card { padding: 26px 22px; border-radius: 20px; }
  .auth-nav { margin-bottom: 16px; }
}

/* Auth pages inside the canonical console shell. */
body .auth-page.auth-page { max-width: 860px; padding-top: 34px; padding-bottom: 34px; }
body .auth-page .auth-card {
  width: 100%; max-width: 540px; margin: 0 auto; padding: 34px 36px;
}
body .auth-page .auth-form .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
body .auth-page .auth-form h2 { color: #f3f3f3; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
body .auth-page .auth-form > .muted { color: #a3a3a3; font-size: 12px; margin-bottom: 24px; }
body .auth-page .auth-form label { color: #b8b8b8; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
body .auth-page .auth-form input {
  height: 48px; padding: 0 16px; background: #181818; border: 0; border-radius: 14px;
  color: #f3f3f3; font-size: 12px;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
body .auth-page .auth-form input::placeholder { color: #a3a3a3; font-size: 10px; }
body .auth-page .auth-form input:focus {
  outline: 0; border: 0;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35);
}
body .auth-page .auth-card .primary-btn {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700);
  color: #130800; font-size: 9px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body .auth-page .auth-card .primary-btn:hover { background: #ff6a24; color: #fff; }
body .auth-page .auth-card a { color: #ff9a66; }
body .auth-page .auth-switch { margin-top: 20px; color: #a3a3a3; font-size: 11px; }

/* Minimal auth page: only the GateVia mark and the login card. */
body.auth-minimal {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background: #0b0b0b; color: #f3f3f3;
}
.auth-minimal-inner { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.auth-minimal-brand { margin-bottom: 26px; color: #f3f3f3; align-self: center; }
.auth-minimal-brand .brand-text b { color: #f3f3f3; }
.auth-minimal-brand .brand-text small { color: #a3a3a3; }
body.auth-minimal .auth-card {
  width: 100%; padding: 34px 36px; background: #191919;
  border: 1px solid #242424; border-radius: 28px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
body.auth-minimal .auth-form .eyebrow {
  color: #b8b8b8; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
body.auth-minimal .auth-form h2 { color: #f3f3f3; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
body.auth-minimal .auth-form > .muted { color: #a3a3a3; font-size: 12px; margin-bottom: 24px; }
body.auth-minimal .auth-form label { color: #b8b8b8; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
body.auth-minimal .auth-form input {
  height: 48px; padding: 0 16px; background: #181818; border: 0; border-radius: 14px;
  color: #f3f3f3; font-size: 12px;
  box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A;
}
body.auth-minimal .auth-form input::placeholder { color: #a3a3a3; font-size: 10px; }
body.auth-minimal .auth-form input:focus { outline: 0; border: 0; box-shadow: inset 4px 4px 9px #0C0C0C, inset -4px -4px 9px #2A2A2A, 0 0 0 1px rgba(255,77,0,.35); }
body.auth-minimal .auth-card .primary-btn {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700);
  color: #130800; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
body.auth-minimal .auth-card .primary-btn:hover { background: #ff6a24; color: #fff; }
body.auth-minimal .auth-card a { color: #ff9a66; }
body.auth-minimal .auth-switch { margin-top: 20px; color: #a3a3a3; font-size: 11px; }
@media (max-width: 600px) { body.auth-minimal { padding: 24px 14px; align-items: flex-start; } body.auth-minimal .auth-card { padding: 26px 22px; border-radius: 20px; } }

/* Minimal auth brand: wordmark only, larger. */
body.auth-minimal .auth-minimal-brand .brand-text b {
  font-size: 30px; line-height: 1; letter-spacing: -.045em;
}
body.auth-minimal .auth-minimal-brand .brand-text small {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- public landing page ---------- */
body.landing {
  background: #0b0b0b; color: #f3f3f3; min-height: 100vh;
}
body.landing a { color: inherit; }
body.landing h1, body.landing h2, body.landing h3 { color: #f3f3f3; }
body.landing ::selection { background: #ff4d00; color: #130800; }

.landing-nav {
  max-width: 1400px; margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.landing-brand { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.landing-brand:hover { text-decoration: none; }
.landing-brand b { color: #f3f3f3; font-size: 24px; line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.landing-brand span { color: #777; font-family: var(--mono); font-size: 7px; letter-spacing: .18em; text-transform: uppercase; }
.landing-links { display: flex; align-items: center; gap: 30px; }
.landing-links a { color: #9a9a9a; font-size: 11px; font-weight: 500; text-decoration: none; transition: color .15s; }
.landing-links a:hover { color: #f3f3f3; }
.landing-actions { display: flex; align-items: center; gap: 8px; }
.landing-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 1px solid transparent; border-radius: 10px;
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 18px rgba(184,55,0,.28), inset 0 1px 0 rgba(255,255,255,.22);
  transition: .15s ease;
}
.landing-btn:hover { background: #ff6a24; color: #fff; text-decoration: none; transform: translateY(-1px); }
.landing-btn.ghost {
  background: #181818; border-color: #292929; color: #c3c3c3;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.landing-btn.ghost:hover { background: #202020; border-color: #383838; color: #fff; }
.landing-btn.large { padding: 14px 20px; font-size: 10px; border-radius: 12px; }

.landing-hero {
  max-width: 1400px; margin: 0 auto; padding: 88px 32px 78px;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.85fr);
  gap: 72px; align-items: center;
}
.landing-eyebrow {
  color: #ff8a5c; font-family: var(--mono); font-size: 8px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.landing-hero h1 {
  margin: 24px 0 0; font-size: clamp(50px, 6.8vw, 94px); line-height: .91;
  letter-spacing: -.065em; font-weight: 650;
}
.landing-hero h1 span { color: #ff6a24; }
.landing-hero-copy > p { max-width: 54ch; margin: 28px 0 0; color: #9a9a9a; font-size: 14px; line-height: 1.8; }
.landing-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.landing-text-link { color: #c3c3c3 !important; font-size: 11px; font-weight: 600; border-bottom: 1px solid #333; padding-bottom: 3px; text-decoration: none !important; }
.landing-text-link:hover { color: #fff !important; border-color: #ff4d00; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; }
.landing-trust span { color: #777; font-family: var(--mono); font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.landing-trust span::before { content: "·"; color: #ff4d00; margin-right: 6px; font-size: 12px; }

.landing-hero-panel {
  background: #151515; border: 1px solid #242424; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 65px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.035);
}
.landing-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px; border-bottom: 1px solid #222;
  color: #777; font-family: var(--mono); font-size: 7px; letter-spacing: .16em; text-transform: uppercase;
}
.landing-panel-head > span:last-child { color: #9a9a9a; letter-spacing: .08em; }
.landing-live { color: #ff8a5c !important; }
.landing-model-list { padding: 6px 10px; }
.landing-model-row {
  display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 16px 10px; border-bottom: 1px solid #202020;
}
.landing-model-row:last-child { border-bottom: 0; }
.landing-model-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: #242424; border: 1px solid rgba(255,77,0,.25);
  color: #ff4d00; font-family: var(--mono); font-size: 9px; font-weight: 700;
}
.landing-model-name { min-width: 0; }
.landing-model-name b { display: block; color: #f3f3f3; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-model-name small { display: block; margin-top: 3px; color: #777; font-size: 8px; }
.landing-model-price { color: #f3f3f3; font-family: var(--mono); font-size: 10px; text-align: right; }
.landing-model-price small { display: block; margin-top: 3px; color: #666; font-family: var(--mono); font-size: 6px; letter-spacing: .08em; text-transform: uppercase; }
.landing-panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-top: 1px solid #222;
  color: #666; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase;
}
.landing-panel-foot a { color: #ff8a5c; text-decoration: none; }
.landing-panel-foot a:hover { color: #fff; }

.landing-strip {
  max-width: 1400px; margin: 0 auto; padding: 25px 32px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  border-top: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c;
}
.landing-strip > span { color: #555; font-family: var(--mono); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.landing-strip b { color: #8f8f8f; font-size: 12px; font-weight: 500; letter-spacing: -.01em; }
.landing-strip b:first-of-type { color: #c3c3c3; }

.landing-section { max-width: 1400px; margin: 0 auto; padding: 100px 32px; border-top: 1px solid #1c1c1c; }
.landing-section-head { max-width: 710px; }
.landing-section-head h2 { margin: 18px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -.045em; font-weight: 640; }
.landing-section-head p { max-width: 60ch; margin: 18px 0 0; color: #8f8f8f; font-size: 13px; line-height: 1.8; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 44px; }
.landing-feature {
  min-width: 0; padding: 24px; background: #141414; border: 1px solid #222; border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: .18s ease;
}
.landing-feature:hover { border-color: #333; background: #171717; }
.landing-feature.wide { grid-column: span 2; }
.landing-feature-icon {
  width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 9px; background: rgba(255,77,0,.1); border: 1px solid rgba(255,77,0,.22);
  color: #ff8a5c; font-family: var(--mono); font-size: 14px;
}
.landing-feature h3 { margin: 0 0 8px; color: #f3f3f3; font-size: 17px; font-weight: 590; letter-spacing: -.02em; }
.landing-feature p { margin: 0; color: #8f8f8f; font-size: 12px; line-height: 1.7; }
.landing-feature pre {
  margin: 18px 0 0; padding: 14px 16px; overflow-x: auto;
  background: #0b0b0b; border: 1px solid #272727; border-radius: 10px;
  color: #b8b8b8; font: 10px/1.85 var(--mono); white-space: pre;
}

.landing-catalog { padding-bottom: 100px; }
.landing-catalog-head {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.landing-catalog-head > div { max-width: 710px; }
.landing-model-page { max-width: 1400px !important; width: 100%; margin: 38px auto 0; }
.landing-model-page .panel {
  padding: 26px !important; background: #101010 !important; border-color: #202020 !important; border-radius: 24px !important;
}
.landing-model-page .models-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 16px !important; margin-top: 0 !important; }
.landing-model-page .model-catalog-card[data-model-card] {
  border-left: 0 !important; background: #181818 !important; border-color: #242424 !important;
}
.landing-model-page .model-catalog-card[data-model-card]:hover {
  border-color: rgba(255,77,0,.28) !important; background: #1c1c1c !important;
}

.landing-developers { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.landing-code-card { min-width: 0; background: #111; border: 1px solid #242424; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 55px rgba(0,0,0,.35); }
.landing-code-card pre {
  margin: 0; padding: 25px 24px; overflow-x: auto;
  color: #d3d3d3; font: 11px/1.9 var(--mono); white-space: pre;
}
.landing-code-card .s { color: #ff9a66; }
.landing-code-card .c { color: #ff4d00; }
.landing-code-foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid #242424; color: #666; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.landing-developer-copy h2 { margin: 18px 0 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.01; letter-spacing: -.05em; }
.landing-developer-copy > p { max-width: 52ch; margin: 20px 0 0; color: #8f8f8f; font-size: 13px; line-height: 1.8; }
.landing-steps { list-style: none; margin: 28px 0 32px; padding: 0; }
.landing-steps li { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid #242424; color: #c3c3c3; font-size: 12px; }
.landing-steps li:last-child { border-bottom: 1px solid #242424; }
.landing-steps span { color: #ff6a24; font-family: var(--mono); font-size: 9px; }

.landing-cta {
  max-width: 1400px; margin: 0 auto 84px; padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: radial-gradient(circle at 0% 0%, rgba(255,77,0,.12), transparent 40%), #151515;
  border: 1px solid #2a2a2a; border-radius: 26px;
}
.landing-cta h2 { margin: 18px 0 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.01; letter-spacing: -.05em; }
.landing-cta p { max-width: 48ch; margin: 0 0 22px; color: #9a9a9a; font-size: 13px; line-height: 1.8; }
.landing-foot {
  max-width: 1400px; margin: 0 auto; padding: 24px 32px 40px; border-top: 1px solid #1c1c1c;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: #666; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase;
}
.landing-foot .landing-brand b { font-size: 19px; }
.landing-foot a { color: #9a9a9a; text-decoration: none; }
.landing-foot a:hover { color: #fff; }

@media (max-width: 1080px) {
  .landing-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .landing-hero-panel { max-width: 640px; }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .landing-feature.wide { grid-column: span 2; }
  .landing-developers { grid-template-columns: 1fr; gap: 40px; }
  .landing-cta { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .landing-nav { padding: 20px 20px; gap: 16px; }
  .landing-links { display: none; }
  .landing-actions .ghost { display: none; }
  .landing-hero, .landing-section { padding-left: 20px; padding-right: 20px; }
  .landing-strip, .landing-foot { padding-left: 20px; padding-right: 20px; }
  .landing-catalog-head { align-items: flex-start; }
  .landing-model-page .models-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 620px) {
  .landing-hero { padding-top: 44px; padding-bottom: 52px; }
  .landing-hero h1 { font-size: clamp(44px, 14vw, 68px); }
  .landing-section { padding-top: 68px; padding-bottom: 68px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature.wide { grid-column: span 1; }
  .landing-model-page .models-grid { grid-template-columns: 1fr !important; }
  .landing-model-page .panel { padding: 16px !important; }
  .landing-cta { margin-bottom: 52px; padding: 28px 22px; }
  .landing-foot { align-items: flex-start; flex-direction: column; }
}

/* Keep the hero two-up on standard laptop widths. */
@media (min-width: 901px) and (max-width: 1080px) {
  .landing-hero { grid-template-columns: minmax(0,1.05fr) minmax(0,.85fr); gap: 44px; }
}

/* ---------- serious public landing page ---------- */
body.site {
  background: #0b0b0b; color: #f3f3f3;
  font-size: 14px; line-height: 1.6;
}
body.site a { color: inherit; }
body.site h1, body.site h2, body.site h3 { color: #f3f3f3; }
body.site ::selection { background: #ff4d00; color: #130800; }
body.site .inline-code {
  background: #1a1a1a; border: 1px solid #2c2c2c; color: #d8d8d8;
  font-family: var(--mono); font-size: 10px; padding: 1px 5px; border-radius: 4px;
}
body.site .skip-link { background: #fff; color: #0b0b0b; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,11,.9); border-bottom: 1px solid #1f1f1f;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-brand { display: inline-flex; flex-direction: column; gap: 1px; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.site-brand b { font-size: 21px; line-height: 1; letter-spacing: -.05em; color: #f3f3f3; }
.site-brand span { font-family: var(--mono); font-size: 6.5px; letter-spacing: .18em; color: #747474; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #8f8f8f; font-size: 11px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: #f3f3f3; }
.site-actions { display: flex; align-items: center; gap: 16px; }
.site-signin { color: #b8b8b8; font-size: 11px; font-weight: 600; text-decoration: none; }
.site-signin:hover { color: #fff; text-decoration: none; }

.site-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 15px; border: 1px solid transparent; border-radius: 7px;
  background: #ff4d00; color: #140800; font-size: 11px; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: .15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 16px rgba(255,77,0,.14);
}
.site-button:hover { background: #ff6a24; color: #140800; text-decoration: none; transform: translateY(-1px); }
.site-button.large { padding: 13px 18px; font-size: 11.5px; }
.site-button.ghost {
  background: #151515; border-color: #2b2b2b; color: #d0d0d0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.site-button.ghost:hover { background: #1c1c1c; border-color: #3a3a3a; color: #fff; }
.site-text-link { color: #b8b8b8 !important; font-size: 11.5px; font-weight: 600; border-bottom: 1px solid #333; padding-bottom: 2px; text-decoration: none !important; }
.site-text-link:hover { color: #fff !important; border-color: #ff4d00; }

.site-hero {
  max-width: 1240px; margin: 0 auto; padding: 80px 32px 58px;
  display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 56px; align-items: center;
}
.site-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #a3a3a3; font-family: var(--mono); font-size: 7.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.site-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d00; box-shadow: 0 0 0 3px rgba(255,77,0,.12); }
.site-hero h1 {
  margin: 22px 0 0; font-size: clamp(46px, 5.3vw, 72px); line-height: .98;
  letter-spacing: -.055em; font-weight: 650;
}
.site-lead { max-width: 58ch; margin: 24px 0 0; color: #9a9a9a; font-size: 15px; line-height: 1.8; }
.site-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.site-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; }
.site-hero-meta span { color: #777; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.site-hero-meta span::before { content: "·"; color: #ff4d00; margin-right: 6px; font-size: 12px; }

.site-panel {
  min-width: 0; background: #101010; border: 1px solid #242424; border-radius: 14px;
  overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.025);
}
.site-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #222;
  color: #777; font-family: var(--mono); font-size: 7px; letter-spacing: .16em; text-transform: uppercase;
}
.site-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  border: 1px solid rgba(255,77,0,.3); border-radius: 4px; background: rgba(255,77,0,.07);
  color: #ff8a5c; font-family: var(--mono); font-size: 6.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.site-spec-list { margin: 0; padding: 4px 16px; }
.site-spec-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #1f1f1f; }
.site-spec-list > div:last-child { border-bottom: 0; }
.site-spec-list dt { color: #777; font-size: 9px; }
.site-spec-list dd { margin: 0; color: #d8d8d8; font-size: 9.5px; text-align: right; }
.site-spec-list dd.mono { font-family: var(--mono); font-size: 8.5px; }
.site-panel-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #222; background: #0d0d0d; }
.site-panel-stats div { padding: 13px 12px; border-right: 1px solid #222; }
.site-panel-stats div:last-child { border-right: 0; }
.site-panel-stats b { display: block; color: #f3f3f3; font-family: var(--mono); font-size: 19px; font-weight: 500; line-height: 1; }
.site-panel-stats span { display: block; margin-top: 5px; color: #6f6f6f; font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase; }
.site-panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid #222;
  color: #666; font-family: var(--mono); font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase;
}
.site-panel-foot a { color: #ff8a5c; text-decoration: none; white-space: nowrap; }
.site-panel-foot a:hover { color: #fff; }

.site-band {
  max-width: 1240px; margin: 0 auto; padding: 20px 32px;
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  border-top: 1px solid #1f1f1f; border-bottom: 1px solid #1f1f1f;
}
.site-band div { padding: 0 18px; border-left: 1px solid #1f1f1f; }
.site-band div:first-child { padding-left: 0; border-left: 0; }
.site-band span { display: block; color: #666; font-family: var(--mono); font-size: 6.5px; letter-spacing: .16em; text-transform: uppercase; }
.site-band b { display: block; margin-top: 5px; color: #b8b8b8; font-size: 11px; font-weight: 500; }

.site-section { max-width: 1240px; margin: 0 auto; padding: 88px 32px; border-top: 1px solid #1f1f1f; }
.site-section-head { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.8fr); gap: 48px; align-items: end; }
.site-eyebrow { color: #ff8a5c; font-family: var(--mono); font-size: 7.5px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.site-section-head h2 { margin: 17px 0 0; font-size: clamp(31px, 3.5vw, 44px); line-height: 1.03; letter-spacing: -.045em; font-weight: 640; }
.site-section-head > p { max-width: 58ch; margin: 0 0 2px; color: #8f8f8f; font-size: 13px; line-height: 1.8; }

.site-values { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 46px; border-top: 1px solid #242424; }
.site-values article { padding: 22px 24px 0 0; border-right: 1px solid #242424; }
.site-values article:not(:first-child) { padding-left: 24px; }
.site-values article:last-child { border-right: 0; }
.site-index { color: #ff6a24; font-family: var(--mono); font-size: 8px; }
.site-values h3 { margin: 18px 0 8px; color: #f3f3f3; font-size: 15px; font-weight: 590; letter-spacing: -.02em; }
.site-values p { margin: 0; color: #8a8a8a; font-size: 11.5px; line-height: 1.75; }

.site-architecture { margin-top: 44px; background: #101010; border: 1px solid #242424; border-radius: 14px; padding: 24px; }
.site-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.site-flow-node { min-width: 0; padding: 15px 14px; background: #151515; border: 1px solid #2a2a2a; border-radius: 8px; }
.site-flow-node.active { border-color: rgba(255,77,0,.35); background: #17120f; }
.site-flow-node span { display: block; color: #6f6f6f; font-family: var(--mono); font-size: 6.5px; letter-spacing: .13em; text-transform: uppercase; }
.site-flow-node b { display: block; margin-top: 8px; color: #e8e8e8; font-size: 12px; font-weight: 600; }
.site-flow-node small { display: block; margin-top: 5px; color: #777; font-size: 8.5px; line-height: 1.5; }
.site-flow-arrow { align-self: center; color: #4a4a4a; font-family: var(--mono); font-size: 14px; }
.site-support-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.site-support-grid div { min-width: 0; padding: 11px 12px; background: #0d0d0d; border: 1px solid #202020; border-radius: 7px; }
.site-support-grid span { display: block; color: #666; font-family: var(--mono); font-size: 6px; letter-spacing: .14em; text-transform: uppercase; }
.site-support-grid b { display: block; margin-top: 4px; color: #a8a8a8; font-size: 9px; font-weight: 500; }
.site-invariants { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 28px; margin-top: 26px; padding: 22px 24px; border: 1px solid #242424; border-radius: 10px; background: #0f0f0f; }
.site-invariants > b { color: #d8d8d8; font-size: 11px; }
.site-invariants ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.site-invariants li { position: relative; padding-left: 14px; color: #8a8a8a; font-size: 10px; line-height: 1.6; }
.site-invariants li::before { content: "—"; position: absolute; left: 0; color: #ff4d00; }

.site-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 44px; }
.site-capability { min-width: 0; padding: 21px; background: #121212; border: 1px solid #242424; border-radius: 10px; }
.site-capability:hover { border-color: #333; background: #151515; }
.site-cap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-cap-num { color: #ff6a24; font-family: var(--mono); font-size: 8px; }
.site-cap-tag { color: #666; font-family: var(--mono); font-size: 6.5px; letter-spacing: .12em; }
.site-capability h3 { margin: 22px 0 8px; color: #f3f3f3; font-size: 15px; font-weight: 590; letter-spacing: -.02em; }
.site-capability p { margin: 0; color: #8a8a8a; font-size: 11px; line-height: 1.75; }
.site-capability ul { display: grid; gap: 5px; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid #222; padding-top: 12px; }
.site-capability li { color: #777; font-size: 9px; line-height: 1.5; }
.site-capability li::before { content: "·"; color: #ff4d00; margin-right: 6px; font-size: 12px; }

.site-models-head { align-items: end; }
.site-models-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.site-models-summary span { padding: 5px 9px; border: 1px solid #292929; border-radius: 4px; color: #8a8a8a; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.site-model-page { max-width: 1240px; width: 100%; margin-top: 16px; }
.site-model-page .panel { padding: 18px !important; background: #0f0f0f !important; border-color: #242424 !important; border-radius: 14px !important; }
.site-model-page .models-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 12px !important; margin-top: 0 !important; }
.site-model-page .model-catalog-card[data-model-card] { border-left: 0 !important; background: #151515 !important; border-color: #262626 !important; box-shadow: none !important; }
.site-model-page .model-catalog-card[data-model-card]:hover { border-color: rgba(255,77,0,.26) !important; background: #191919 !important; }
.site-fineprint { margin: 18px 0 0; color: #6f6f6f; font-size: 10px; line-height: 1.7; }

.site-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.site-security-grid article { padding: 22px; background: #121212; border: 1px solid #242424; border-radius: 10px; }
.site-security-grid span { color: #ff8a5c; font-family: var(--mono); font-size: 6.5px; letter-spacing: .14em; text-transform: uppercase; }
.site-security-grid h3 { margin: 17px 0 8px; color: #f3f3f3; font-size: 15px; font-weight: 590; letter-spacing: -.02em; }
.site-security-grid p { margin: 0; color: #8a8a8a; font-size: 11px; line-height: 1.75; }
.site-boundaries { margin-top: 18px; border: 1px solid #2a2a2a; border-radius: 10px; background: #0f0f0f; }
.site-boundaries summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; color: #d0d0d0; font-size: 11px; font-weight: 600; list-style: none; }
.site-boundaries summary::-webkit-details-marker { display: none; }
.site-boundaries summary span { color: #ff6a24; font-family: var(--mono); font-size: 14px; }
.site-boundaries[open] summary span { transform: rotate(45deg); }
.site-boundary-body { padding: 0 18px 18px; }
.site-boundary-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-boundary-body li { position: relative; padding-left: 14px; color: #8a8a8a; font-size: 10.5px; line-height: 1.65; }
.site-boundary-body li::before { content: "—"; position: absolute; left: 0; color: #ff4d00; }

.site-evidence-grid { display: grid; grid-template-columns: repeat(6,1fr); margin-top: 44px; border-top: 1px solid #242424; border-bottom: 1px solid #242424; }
.site-evidence-grid div { min-width: 0; padding: 20px 16px; border-left: 1px solid #242424; }
.site-evidence-grid div:first-child { padding-left: 0; border-left: 0; }
.site-evidence-grid b { display: block; color: #f3f3f3; font-family: var(--mono); font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.site-evidence-grid span { display: block; margin-top: 8px; color: #b8b8b8; font-size: 9.5px; font-weight: 600; }
.site-evidence-grid small { display: block; margin-top: 4px; color: #6f6f6f; font-size: 8px; line-height: 1.5; }

.site-developers-section { border-top: 1px solid #1f1f1f; }
.site-dev-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.site-code-panel { min-width: 0; background: #101010; border: 1px solid #242424; border-radius: 14px; overflow: hidden; }
.site-code-panel pre { margin: 0; padding: 22px; overflow-x: auto; color: #cfcfcf; font: 10.5px/1.85 var(--mono); white-space: pre; }
.site-code-panel .s { color: #ff9a66; }
.site-code-panel .c { color: #ff6a24; }
.site-live { color: #ff8a5c !important; }
.site-code-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid #242424; color: #666; font-family: var(--mono); font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase; }
.site-dev-copy h2 { margin: 17px 0 0; font-size: clamp(31px, 3.5vw, 44px); line-height: 1.03; letter-spacing: -.045em; font-weight: 640; }
.site-dev-copy > p { max-width: 54ch; margin: 18px 0 0; color: #8f8f8f; font-size: 12.5px; line-height: 1.8; }
.site-steps { list-style: none; margin: 28px 0 30px; padding: 0; }
.site-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 13px 0; border-top: 1px solid #242424; }
.site-steps li:last-child { border-bottom: 1px solid #242424; }
.site-steps > li > span { color: #ff6a24; font-family: var(--mono); font-size: 8px; padding-top: 2px; }
.site-steps b { display: block; color: #d8d8d8; font-size: 11px; font-weight: 600; }
.site-steps small { display: block; margin-top: 4px; color: #777; font-size: 9.5px; line-height: 1.55; }
.site-dev-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.site-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 40px; }
.site-faq details { border-top: 1px solid #242424; }
.site-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; cursor: pointer; color: #d0d0d0; font-size: 11.5px; font-weight: 600; list-style: none; }
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary span { color: #ff6a24; font-family: var(--mono); font-size: 14px; }
.site-faq details[open] summary span { transform: rotate(45deg); }
.site-faq p { margin: 0 0 16px; color: #8a8a8a; font-size: 10.5px; line-height: 1.7; }

.site-cta {
  max-width: 1240px; margin: 0 auto 76px; padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  background: radial-gradient(circle at 0% 0%, rgba(255,77,0,.1), transparent 42%), #121212;
  border: 1px solid #2a2a2a; border-radius: 14px;
}
.site-cta h2 { margin: 17px 0 0; font-size: clamp(31px, 3.5vw, 44px); line-height: 1.03; letter-spacing: -.045em; font-weight: 640; }
.site-cta p { max-width: 54ch; margin: 18px 0 0; color: #8f8f8f; font-size: 12px; line-height: 1.75; }
.site-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-cta-note { color: #666; font-family: var(--mono); font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase; }
.site-cta-actions .site-button { width: 100%; }

.site-footer { border-top: 1px solid #1f1f1f; background: #090909; }
.site-footer-grid { max-width: 1240px; margin: 0 auto; padding: 48px 32px 34px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 42px; }
.site-footer-brand p { max-width: 34ch; margin: 16px 0 15px; color: #777; font-size: 10px; line-height: 1.7; }
.site-footer-grid > div:not(.site-footer-brand) { display: grid; align-content: start; gap: 7px; }
.site-footer-grid > div > b { margin-bottom: 5px; color: #b8b8b8; font-family: var(--mono); font-size: 7px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-footer-grid a { color: #777; font-size: 10px; text-decoration: none; }
.site-footer-grid a:hover { color: #f3f3f3; }
.site-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 15px 32px 30px; border-top: 1px solid #1f1f1f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #5f5f5f; font-family: var(--mono); font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 10px; }
  .site-hero { grid-template-columns: minmax(0,1fr) 360px; gap: 40px; }
  .site-values { grid-template-columns: 1fr 1fr; }
  .site-values article:nth-child(2) { border-right: 0; }
  .site-values article:nth-child(3), .site-values article:nth-child(4) { border-top: 1px solid #242424; padding-top: 22px; }
  .site-values article:nth-child(3) { padding-left: 0; }
  .site-capabilities { grid-template-columns: 1fr 1fr; }
  .site-evidence-grid { grid-template-columns: repeat(3,1fr); }
  .site-evidence-grid div:nth-child(4) { border-left: 0; padding-left: 0; }
  .site-evidence-grid div:nth-child(n+4) { border-top: 1px solid #242424; }
}
@media (max-width: 900px) {
  .site-header-inner { height: 64px; padding: 0 20px; }
  .site-nav { display: none; }
  .site-hero { grid-template-columns: 1fr; padding: 54px 20px 44px; gap: 34px; }
  .site-panel { max-width: 520px; }
  .site-band { grid-template-columns: repeat(3,1fr); padding: 16px 20px; gap: 14px 0; }
  .site-band div { padding: 0 12px; }
  .site-band div:nth-child(4) { border-left: 0; padding-left: 0; }
  .site-section { padding: 64px 20px; }
  .site-section-head { grid-template-columns: 1fr; gap: 18px; }
  .site-architecture { padding: 16px; }
  .site-flow { grid-template-columns: 1fr; gap: 8px; }
  .site-flow-arrow { justify-self: center; transform: rotate(90deg); }
  .site-support-grid { grid-template-columns: 1fr 1fr; }
  .site-invariants { grid-template-columns: 1fr; gap: 12px; }
  .site-invariants ul { grid-template-columns: 1fr; }
  .site-dev-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-faq { grid-template-columns: 1fr; }
  .site-cta { grid-template-columns: 1fr; gap: 28px; margin: 0 20px 52px; padding: 30px 24px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 20px 26px; gap: 30px; }
  .site-footer-bottom { padding: 14px 20px 24px; }
}
@media (max-width: 620px) {
  .site-actions .site-signin { display: none; }
  .site-actions .site-button { padding: 9px 12px; font-size: 10px; }
  .site-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .site-lead { font-size: 13.5px; }
  .site-band { grid-template-columns: 1fr 1fr; }
  .site-band div:nth-child(3) { border-left: 0; padding-left: 0; }
  .site-band div:nth-child(5) { grid-column: span 2; border-left: 0; padding-left: 0; border-top: 1px solid #1f1f1f; padding-top: 12px; }
  .site-values { grid-template-columns: 1fr; }
  .site-values article, .site-values article:not(:first-child) { padding: 18px 0 0; border-right: 0; border-top: 1px solid #242424; }
  .site-capabilities { grid-template-columns: 1fr; }
  .site-security-grid { grid-template-columns: 1fr; }
  .site-evidence-grid { grid-template-columns: 1fr 1fr; }
  .site-evidence-grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .site-evidence-grid div:nth-child(n+3) { border-top: 1px solid #242424; }
  .site-model-page .models-grid { grid-template-columns: 1fr !important; }
  .site-model-page .panel { padding: 12px !important; }
  .site-fineprint { font-size: 9.5px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 980px) {
  .site-model-page .models-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 620px) {
  .site-model-page .models-grid { grid-template-columns: 1fr !important; }
}

/* Section-head copy that sits inside a wrapper, and non-stretched header actions. */
.site-section-head > div > p {
  max-width: 58ch; margin: 14px 0 0; color: #8f8f8f;
  font-size: 13px; line-height: 1.8;
}
.site-models-head > .site-button { justify-self: end; }
@media (max-width: 900px) {
  .site-models-head > .site-button { justify-self: start; }
}

/* ---------- landing uses the same charcoal/orange DNA as the console ---------- */
body.site { background: #0b0b0b; }

.site-header-inner,
.site-hero,
.site-band,
.site-section,
.site-cta,
.site-footer-grid,
.site-footer-bottom { max-width: 1220px; }

.site-brand { flex-direction: row; align-items: center; gap: 10px; }
.site-brand > .brand-mark {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  flex: 0 0 28px; border-radius: 9px;
  background: linear-gradient(145deg,#ff8a4d,#ff4d00); color: #0b0b0b;
  font-family: var(--sans); font-size: 15px; font-weight: 800;
  letter-spacing: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(255,77,0,.35);
}
.site-brand > .site-brand-text { display: inline-flex; flex-direction: column; gap: 1px; }
.site-brand > .site-brand-text b { color: #f3f3f3; font-size: 21px; line-height: 1; letter-spacing: -.05em; }
.site-brand > .site-brand-text > span {
  color: #747474; font-family: var(--mono); font-size: 6.5px;
  letter-spacing: .18em; text-transform: uppercase;
}
.site-footer .site-brand > .site-brand-text b { font-size: 19px; }

.site-eyebrow { color: #a3a3a3; font-size: 7.5px; letter-spacing: .16em; }
.site-kicker { color: #a3a3a3; }
.site-text-link { color: #ff8a5c !important; border-bottom-color: rgba(255,77,0,.35); }
.site-text-link:hover { color: #ffb48f !important; border-color: #ff4d00; }

.site-button {
  background: linear-gradient(135deg,#ff4d00,#e04400 48%,#b83700); color: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 9px 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(184,55,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.site-button:hover { background: #ff6a24; color: #fff; }
.site-button.large { padding: 12px 18px; font-size: 10px; border-radius: 12px; }
.site-button.ghost {
  background: #191919; border: 1px solid #111; color: #9a9a9a; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.site-button.ghost:hover { background: #202020; border-color: #1c1c1c; color: #f3f3f3; }

.site-panel,
.site-architecture,
.site-code-panel {
  background: #191919; border-color: #111;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.site-cta {
  background: radial-gradient(circle at 0% 0%, rgba(255,77,0,.1), transparent 42%), #191919;
  border-color: #111; border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.site-capability,
.site-security-grid article {
  background: #1b1b1b; border-color: #111; border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.site-capability:hover { background: #202020; border-color: #111; }
.site-flow-node { background: #1b1b1b; border-color: #111; border-radius: 14px; }
.site-flow-node.active { background: #1d1714; border-color: rgba(255,77,0,.35); }
.site-support-grid div { background: #141414; border-color: #242424; border-radius: 10px; }
.site-invariants { background: #141414; border-color: #242424; border-radius: 14px; }
.site-boundaries { background: #191919; border-color: #111; border-radius: 18px; }
.site-panel-stats { background: #151515; }
.site-panel-head, .site-panel-foot, .site-spec-list > div,
.site-panel-stats, .site-panel-stats div { border-color: #242424; }
.site-spec-list dd { color: #f3f3f3; }
.site-spec-list dt { color: #a3a3a3; }
.site-panel-foot { color: #a3a3a3; }
.site-panel-head { color: #a3a3a3; }
.site-badge { border-radius: 999px; font-size: 6.5px; }
.site-fineprint, .site-section-head > div > p { color: #a3a3a3; }

.site-model-page .panel {
  padding: 22px !important; background: #191919 !important; border: 1px solid #111 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.site-model-page .model-catalog-card[data-model-card] { background: #1b1b1b !important; border-color: #111 !important; }
.site-model-page .model-catalog-card[data-model-card]:hover { background: #202020 !important; border-color: #111 !important; }

.site-footer { background: #070707; border-top-color: #1c1c1c; }
.site-band span, .site-models-summary span, .site-evidence-grid small, .site-fineprint { color: #a3a3a3; }
.site-evidence-grid b { color: #f3f3f3; }
.site-section-head h2, .site-dev-copy h2, .site-cta h2 { color: #f3f3f3; }

.site-brand > .site-brand-text { text-transform: none; }
