:root {
  --ink: #20211f;
  --muted: #6f716c;
  --soft: #959790;
  --line: #e4e3de;
  --line-strong: #d7d5ce;
  --canvas: #f5f5f2;
  --surface: #fff;
  --accent: #20211f;
  --accent-strong: #050505;
  --accent-soft: #efefeb;
  --green: #18875c;
  --red: #c84242;
  --shadow: 0 1px 2px rgba(20, 24, 32, .04), 0 8px 28px rgba(20, 24, 32, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, system-ui, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-frame { min-height: 100vh; border-top: 4px solid #292b31; }
.sidebar { position: fixed; inset: 4px auto 0 0; z-index: 30; width: 252px; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.brand { height: 86px; padding: 0 25px; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand small { margin-left: 4px; color: #9196a2; font-size: 19px; font-weight: 400; }
.relay-logo { width: 34px; height: 34px; flex: 0 0 auto; color: #1d2027; stroke-width: 1.9; }
.side-nav { display: flex; flex-direction: column; padding: 14px 14px; gap: 4px; }
.nav-label { padding: 13px 12px 6px; color: #a2a7b1; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.side-nav a { height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #434955; border-radius: 8px; font-weight: 500; transition: .16s ease; }
.side-nav a svg { width: 19px; }
.side-nav a:hover { color: var(--ink); background: #f7f8fa; }
.side-nav a.active { color: #1f201e; background: #efefeb; font-weight: 600; }
.nav-divider { height: 1px; margin: 12px 10px 2px; background: var(--line); }
.sidebar-account { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }
.account-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-avatar, .top-avatar { flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #484944; border-radius: 50%; font-weight: 600; }
.account-avatar { width: 36px; height: 36px; font-size: 12px; }
.account-card div { min-width: 0; flex: 1; }
.account-card b, .account-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card b { margin-bottom: 3px; font-size: 12px; }
.account-card small { color: var(--muted); font-size: 10px; }
.account-card button { padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.signin-card { display: grid; gap: 9px; }
.signin-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.workspace { min-height: calc(100vh - 4px); margin-left: 252px; }
.topbar { height: 86px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; background: rgba(245,245,242,.94); border-bottom: 1px solid transparent; }
.topbar > div:first-of-type { display: flex; align-items: baseline; gap: 11px; }
.topbar-label { display: none; color: var(--muted); font-size: 12px; }
.topbar strong { font-size: 23px; font-weight: 500; letter-spacing: -.4px; }
.topbar-actions { display: flex; align-items: center; gap: 28px; }
.landing-nav { display: none; }
.support-link { display: flex; align-items: center; gap: 8px; color: #3f4652; font-size: 12px; font-weight: 500; }
.support-link svg { width: 17px; }
.top-user { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.top-avatar { width: 38px; height: 38px; }
.top-user div span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-user div small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.mobile-menu { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }

main { width: min(1320px, 100%); padding: 38px 42px 80px; }
.page { animation: page-in .18s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(3px); } }
.page-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.page-heading h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.12; letter-spacing: -1.4px; font-weight: 600; }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.button { min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s ease; }
.button svg { width: 16px; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 5px rgba(20,20,18,.14); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { color: #303640; background: #fff; border-color: var(--line-strong); }
.button.secondary:hover { background: #f8f9fb; }
.button.compact { min-height: 34px; padding: 0 12px; }
.button.full { width: 100%; }
.button:disabled { opacity: .58; cursor: wait; }
.button-row { display: flex; gap: 10px; }
.text-button { padding: 0; border: 0; color: var(--accent); background: none; font-weight: 600; cursor: pointer; }

.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.surface-head { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.surface-head h2 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.surface-head p { margin: 0; color: var(--muted); font-size: 11px; }
.surface-head > a { color: var(--accent); font-size: 11px; font-weight: 600; }

.guest-layout { min-height: 620px; display: grid; grid-template-columns: 1fr .95fr; gap: 60px; align-items: center; }
.landing-mode .sidebar { display: none; }
.landing-mode .workspace { margin-left: 0; }
.landing-mode .topbar { height: 72px; padding: 0 max(28px, calc((100vw - 1200px) / 2)); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.landing-mode .topbar-label { display: inline; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.landing-mode .topbar strong { display: none; }
.landing-mode .landing-nav { display: flex; align-items: center; gap: 25px; }
.landing-mode .landing-nav a { position: relative; color: #686d65; font-size: 10px; font-weight: 500; }
.landing-mode .landing-nav a::after { content: ''; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .16s ease; }
.landing-mode .landing-nav a:hover { color: var(--ink); }
.landing-mode .landing-nav a:hover::after { transform: scaleX(1); }
.landing-mode .support-link { display: none; }
.landing-mode #topbar-user .button { color: #fff; background: var(--ink); border-color: var(--ink); }
.landing-mode main { width: 100%; padding: 0; }
.landing-page { overflow: hidden; background: #f8f8f5; }
.landing-hero { width: min(1200px, calc(100% - 56px)); min-height: 650px; margin: 0 auto; }
.guest-card .eyebrow i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; background: #28a66f; border: 2px solid #d9f4e8; border-radius: 50%; box-sizing: content-box; vertical-align: -2px; }
.landing-primary { padding-right: 12px; }
.landing-primary > span:last-child { width: 23px; height: 23px; display: grid; place-items: center; color: var(--ink); background: #fff; border-radius: 5px; }
.landing-proof { margin-top: 35px; display: flex; gap: 28px; }
.landing-proof span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.landing-proof b { display: block; color: var(--ink); font-size: 10px; }
.landing-code { transform: rotate(1deg); }
.landing-code > div em { margin-left: auto; color: #858d9c; font-style: normal; font-size: 8px; text-transform: uppercase; }
.landing-code footer { height: 42px; padding: 0 18px; display: flex; align-items: center; gap: 8px; color: #969eac; border-top: 1px solid #353631; font-size: 8px; }
.landing-strip { min-height: 82px; padding: 0 max(28px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #858980; background: #eeeee9; border-top: 1px solid #dfdfd8; border-bottom: 1px solid #dfdfd8; }
.landing-strip span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.landing-strip b { color: #60635d; font-size: 14px; letter-spacing: -.2px; }
.landing-workflow { width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 110px 0 40px; display: grid; grid-template-columns: minmax(330px, .75fr) minmax(500px, 1.25fr); align-items: center; gap: 75px; }
.landing-workflow-copy h2 { margin: 0 0 17px; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -2px; }
.landing-workflow-copy > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.landing-workflow-copy ol { margin: 32px 0; padding: 0; display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.landing-workflow-copy li { min-height: 68px; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.landing-workflow-copy li > span { color: #9a9e96; font-family: 'JetBrains Mono'; font-size: 8px; }
.landing-workflow-copy li b { display: block; margin-bottom: 4px; font-size: 10px; }
.landing-workflow-copy li p { margin: 0; color: var(--muted); font-size: 9px; }
.landing-workflow-copy .button span { margin-left: 8px; }
.landing-product-card { overflow: hidden; background: #fff; border: 1px solid #deded8; border-radius: 15px; box-shadow: 0 30px 80px rgba(25,28,23,.12); transform: rotate(.7deg); }
.landing-product-card > header { min-height: 54px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: #f5f5f2; border-bottom: 1px solid var(--line); }
.landing-product-card > header > div { display: flex; gap: 5px; }
.landing-product-card > header > div span { width: 7px; height: 7px; background: #b7bbb3; border-radius: 50%; }
.landing-product-card > header b { font-size: 9px; }
.landing-product-card > header small { justify-self: end; color: var(--muted); font-size: 8px; }
.landing-prompt { margin: 20px; padding: 15px 17px; background: #f5f5f2; border: 1px solid #e7e7e1; border-radius: 9px; }
.landing-prompt span { display: block; margin-bottom: 8px; color: #999d95; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.landing-prompt p { margin: 0; font-size: 10px; }
.landing-response-grid { padding: 0 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.landing-response-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.landing-response-grid article > div { min-height: 45px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.landing-response-grid i { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: #3d403a; border-radius: 6px; font-style: normal; font-size: 8px; }
.landing-response-grid article > div b { font-size: 9px; }
.landing-response-grid em { margin-left: auto; color: var(--green); font-style: normal; font-size: 7px; }
.landing-response-grid article > p { min-height: 105px; margin: 0; padding: 14px; color: #666d61; font-size: 9px; line-height: 1.7; }
.landing-response-grid footer { min-height: 35px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #91968d; background: #fafaf8; border-top: 1px solid var(--line); font-size: 7px; }
.landing-response-grid footer b { color: var(--ink); }
.landing-section { width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 100px 0 115px; }
.landing-section-head { max-width: 610px; margin-bottom: 45px; }
.landing-section-head h2, .landing-cta h2 { margin: 0 0 15px; font-size: clamp(32px, 4vw, 49px); line-height: 1.08; letter-spacing: -2px; }
.landing-section-head p, .landing-cta p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-features article { min-height: 280px; padding: 27px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.landing-features article > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: #efefeb; border-radius: 9px; }
.landing-features article h3 { margin: 27px 0 10px; font-size: 17px; }
.landing-features article p { margin: 0 0 25px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.landing-features article a { margin-top: auto; font-size: 10px; font-weight: 600; }
.landing-cta { padding: 90px 25px; text-align: center; color: #fff; background: #242521; }
.landing-cta .eyebrow { color: #b8bbb3; }
.landing-cta p { max-width: 580px; margin: 0 auto 28px; color: #b8bbb3; }
.landing-cta .button-row { justify-content: center; }
.landing-cta .button.primary { color: var(--ink); background: #fff; border-color: #fff; }
.landing-cta .text-button { color: #fff; }
.landing-footer { min-height: 150px; padding: 35px max(28px, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; background: #fff; }
.landing-footer .brand { height: auto; padding: 0; font-size: 16px; }
.landing-footer .relay-logo { width: 27px; height: 27px; }
.landing-footer p { margin: 0; color: var(--muted); font-size: 9px; }
.landing-footer nav { display: flex; gap: 22px; align-items: center; }
.landing-footer nav a, .landing-footer nav button { padding: 0; color: var(--muted); background: none; border: 0; font-size: 9px; cursor: pointer; }
.guest-card { max-width: 610px; }
.guest-card h1 { margin: 0 0 23px; font-size: clamp(44px, 5vw, 69px); line-height: 1.03; letter-spacing: -3.4px; font-weight: 600; }
.guest-card > p { max-width: 560px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.code-preview { min-width: 0; overflow: hidden; color: #deded8; background: #1e1f1d; border: 1px solid #353631; border-radius: 13px; box-shadow: 0 22px 60px rgba(20,20,18,.18); }
.code-preview > div { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; background: #282925; border-bottom: 1px solid #3a3b36; }
.code-preview > div span { width: 8px; height: 8px; background: #596174; border-radius: 50%; }
.code-preview > div b { margin-left: 7px; color: #aab3c5; font-size: 10px; font-weight: 500; }
pre { margin: 0; overflow: auto; }
code { font-family: 'JetBrains Mono', monospace; }
.code-preview pre { padding: 26px; font-size: 11px; line-height: 1.9; }
.code-preview code { color: #deded8; }

.activation-card { position: relative; min-height: 185px; margin-bottom: 25px; padding: 31px 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; overflow: hidden; background: linear-gradient(120deg, #f1f1ed 0%, #ecece7 54%, #f8f8f5 100%); border: 1px solid #deddd6; border-radius: 14px; box-shadow: var(--shadow); }
.activation-card::after { content: ''; position: absolute; right: 11%; bottom: -110px; width: 520px; height: 180px; background: rgba(255,255,255,.6); border-radius: 50%; transform: rotate(-8deg); }
.activation-card > * { position: relative; z-index: 1; }
.activation-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--accent); background: #fff; border: 1px solid #d9d8d1; border-radius: 12px; }
.activation-icon svg { width: 26px; height: 26px; }
.activation-card h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.6px; }
.activation-card p { margin: 0; color: #646d7f; }
.activation-card .eyebrow { margin-bottom: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.metric-card { min-width: 0; padding: 21px 23px; background: #fff; border: 0; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.metric-card > div svg { width: 17px; color: #9299a6; }
.metric-card strong { display: block; margin: 20px 0 7px; font-size: 27px; font-weight: 600; letter-spacing: -.7px; }
.metric-card small { color: #9aa0aa; font-size: 10px; }
.dashboard-actions { display: flex; gap: 8px; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr); gap: 18px; align-items: stretch; }
.usage-overview-panel, .quickstart-panel { min-height: 315px; }
.usage-chart { padding: 21px 23px 20px; }
.chart-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.chart-summary strong { display: block; margin-bottom: 4px; font-size: 23px; letter-spacing: -.6px; }
.chart-summary span, .chart-summary small { color: var(--muted); font-size: 9px; }
.chart-summary > small { padding: 6px 8px; display: flex; align-items: center; gap: 6px; background: #f1f1ed; border-radius: 5px; }
.chart-summary > small i { width: 6px; height: 6px; background: #30312e; border-radius: 50%; }
.chart-controls { padding: 3px; display: flex; gap: 2px; background: #efefeb; border-radius: 7px; }
.chart-controls button { min-height: 27px; padding: 0 9px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 8px; font-weight: 600; cursor: pointer; }
.chart-controls button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(20,24,32,.1); }
.usage-bars { position: relative; height: 165px; margin-top: 17px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; }
.usage-day { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; outline: 0; }
.usage-day > small { color: #9a9b95; font-size: 8px; }
.usage-bar-track { width: 100%; height: 118px; display: flex; align-items: flex-end; overflow: hidden; background: #f0f0ec; border-radius: 5px; }
.usage-bar-track svg { width: 100%; height: 100%; display: block; }
.usage-bar-fill { fill: #474941; transition: fill .15s ease; }
.usage-day:hover .usage-bar-fill, .usage-day:focus .usage-bar-fill { fill: #242520; }
.usage-day > span { color: var(--muted); font-size: 8px; }
.usage-day > b { position: absolute; z-index: 2; top: 2px; left: 50%; padding: 5px 7px; opacity: 0; color: #fff; background: #252724; border-radius: 5px; pointer-events: none; transform: translate(-50%, -4px); transition: .15s; white-space: nowrap; font-size: 8px; font-weight: 500; }
.usage-day:hover > b, .usage-day:focus > b { opacity: 1; transform: translate(-50%, 0); }
.usage-bars.empty::before { content: ''; position: absolute; inset: 45px 0 30px; z-index: 1; background: repeating-linear-gradient(to bottom, transparent 0 28px, #eee 29px 30px); }
.usage-bars.empty > p { position: absolute; inset: 0; z-index: 2; margin: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.usage-bars.empty .usage-day { opacity: .45; }
.quickstart-body { padding: 20px; }
.quickstart-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.endpoint-row { padding: 9px 9px 9px 11px; display: flex; align-items: center; gap: 8px; background: #f4f4f1; border: 1px solid #e7e6e1; border-radius: 7px; }
.endpoint-row code { min-width: 0; flex: 1; overflow: hidden; color: #4f514c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-row button { padding: 5px 7px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 8px; cursor: pointer; }
.workspace-facts { margin: 17px 0; display: grid; gap: 9px; }
.workspace-facts > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.workspace-facts b { color: var(--ink); font-size: 9px; }
.quickstart-panel .gateway-inline { margin: 0; padding: 14px 0; }
.gateway-inline small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.quickstart-docs { display: flex; justify-content: space-between; padding-top: 13px; color: var(--ink); border-top: 1px solid var(--line); font-size: 9px; font-weight: 600; }
.recent-panel { margin-top: 18px; }
.recent-panel .data-list { min-height: 205px; }
.data-list { min-height: 230px; }
.data-row { min-height: 68px; padding: 13px 22px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #eceef2; }
.data-row:last-child { border-bottom: 0; }
.data-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 8px; font-size: 11px; font-weight: 700; }
.data-icon.provider-icon-box { color: var(--ink); background: #f3f4f6; }
.data-row > div:nth-child(2) { min-width: 0; flex: 1; }
.data-row b, .data-row small { display: block; }
.data-row b { margin-bottom: 4px; font-size: 11px; }
.data-row small { color: var(--muted); font-size: 10px; }
.data-meta { text-align: right; }
.data-meta b { font-family: 'JetBrains Mono'; font-weight: 500; }
.empty-list { min-height: 210px; padding: 38px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-list svg { width: 25px; height: 25px; margin-bottom: 12px; color: #9da4b0; }
.empty-list b { margin-bottom: 6px; color: var(--ink); font-size: 12px; }
.empty-list p { max-width: 260px; margin: 0; font-size: 10px; line-height: 1.6; }
.status-dot { width: 8px; height: 8px; background: #27a66f; border: 2px solid #d9f4e8; border-radius: 50%; box-sizing: content-box; }
.gateway-inline { margin: 0 20px 19px; padding: 14px 0 0; display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line); }
.gateway-inline > div { min-width: 0; }
.gateway-inline b { display: block; margin-bottom: 5px; font-size: 10px; }
.gateway-inline code { display: block; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.balance-chip { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; color: #495162; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 10px; font-weight: 600; }
.balance-chip.live i { width: 7px; height: 7px; background: #21a26c; border-radius: 50%; }
.empty-state { min-height: 470px; padding: 60px 25px; display: grid; place-items: center; align-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.empty-state > span { width: 52px; height: 52px; margin-bottom: 19px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 12px; }
.empty-state h2 { margin: 0 0 10px; font-size: 20px; }
.empty-state p { max-width: 390px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }

.playground-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.playground-composer { position: sticky; top: 20px; padding: 22px; }
.composer-head, .model-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.composer-head { margin-bottom: 23px; }
.section-kicker { display: block; margin-bottom: 6px; color: #969b94; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.composer-head h2, .model-picker-head h2 { margin: 0; font-size: 15px; }
.model-picker-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field > span { color: #454c58; font-size: 10px; font-weight: 600; }
.field > span small { color: #9aa0aa; font-weight: 400; }
.field input, .field textarea, .field select, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; transition: .15s; }
.field input, .field select, .admin-form input, .admin-form select { height: 41px; padding: 0 12px; }
.admin-form .svg-upload input[type="file"] { height: auto; min-height: 41px; padding: 6px; cursor: pointer; }
.admin-form .svg-upload input[type="file"]::file-selector-button { height: 28px; margin-right: 10px; padding: 0 11px; color: var(--ink); background: #f1f1ed; border: 0; border-radius: 5px; cursor: pointer; font: inherit; font-weight: 700; }
.field textarea { padding: 11px 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #7e7f79; box-shadow: 0 0 0 3px rgba(30,31,28,.08); }
.admin-form textarea { min-height: 112px; padding: 10px 12px; resize: vertical; font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-form label > small { color: var(--muted); font-size: 8px; font-weight: 400; }
.field > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.prompt-field { position: relative; }
.prompt-field > small { position: absolute; right: 9px; bottom: 8px; padding: 3px 5px; background: #fff; }
.preset-row { margin: -5px 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.preset-row button, .filter-pills button { padding: 6px 9px; color: #596170; background: #f6f7f9; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 9px; cursor: pointer; }
.preset-row button:hover { color: var(--accent); border-color: #c7c6bf; }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="range"] { accent-color: var(--accent); }
.run-button { width: 100%; justify-content: space-between; }
.run-button span { opacity: .65; font-family: 'JetBrains Mono'; font-size: 9px; }
.playground-output { min-width: 0; }
.model-picker-head { margin-bottom: 16px; }
.model-selectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.model-selector { min-height: 54px; height: auto; padding: 4px 7px; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.model-selector select { max-width: 170px; border: 0; background: none; outline: 0; font-size: 10px; font-weight: 600; }
.field select, .admin-form select, .model-selector select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%236f716c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}
.field select:hover, .admin-form select:hover { border-color: #b9b8b1; background-color: #fafaf8; }
.field select:disabled, .admin-form select:disabled, .model-selector select:disabled { color: #979a94; background-color: #f1f1ee; cursor: not-allowed; }
.model-selector select { height: 38px; padding-left: 7px; background-color: transparent; background-position: right 7px center; }
.model-selector:hover { border-color: #c8c7c0; box-shadow: 0 2px 8px rgba(20,24,32,.05); }
.model-selector:focus-within { border-color: #7e7f79; box-shadow: 0 0 0 3px rgba(30,31,28,.08); }
.custom-select { position: relative; min-width: 0; width: 100%; }
.custom-select-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); }
.custom-select-trigger { width: 100%; min-height: 41px; padding: 0 11px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; text-align: left; }
.custom-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-trigger svg { width: 13px; height: 13px; flex: 0 0 auto; color: #777c74; transition: transform .16s ease; }
.custom-select-trigger:hover { background: #fafaf8; border-color: #b9b8b1; }
.custom-select.open .custom-select-trigger { border-color: #777a73; box-shadow: 0 0 0 3px rgba(30,31,28,.08); }
.custom-select.open .custom-select-trigger svg { transform: rotate(180deg); }
.custom-select-menu { position: absolute; z-index: 90; top: calc(100% + 6px); left: 0; width: max(100%, 210px); max-height: 300px; padding: 5px; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid #d9d9d3; border-radius: 10px; box-shadow: 0 18px 50px rgba(20,24,32,.18), 0 3px 10px rgba(20,24,32,.08); animation: dropdown-in .13s ease; }
.custom-select.open-up .custom-select-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.custom-select.align-right .custom-select-menu { right: 0; left: auto; }
.custom-select-menu[hidden] { display: none !important; }
.custom-select-search { height: 39px; margin-bottom: 4px; padding: 0 9px; display: flex; align-items: center; gap: 8px; background: #f5f5f2; border: 1px solid #e7e7e1; border-radius: 7px; }
.custom-select-search svg { width: 14px; height: 14px; flex: 0 0 auto; color: #959a91; }
.custom-select-search input { min-width: 0; width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 9px; }
.custom-select-search input::placeholder { color: #a0a49c; }
.custom-select-search:focus-within { background: #fff; border-color: #aaaDA5; box-shadow: 0 0 0 2px rgba(30,31,28,.06); }
.custom-select-options { max-height: 220px; display: grid; gap: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.custom-select-option { width: 100%; min-height: 37px; padding: 0 9px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #4f554d; background: transparent; border: 0; border-radius: 6px; cursor: pointer; text-align: left; font-size: 10px; }
.custom-select-option > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-option svg { width: 14px; height: 14px; opacity: 0; color: var(--ink); }
.custom-select-option:hover, .custom-select-option:focus { color: var(--ink); background: #f0f0ec; outline: 0; }
.custom-select-option[aria-selected="true"] { color: var(--ink); background: #ecece7; font-weight: 600; }
.custom-select-option[aria-selected="true"] svg { opacity: 1; }
.custom-select-option:disabled { opacity: .45; cursor: not-allowed; }
.custom-select-option[hidden], .custom-select-empty[hidden] { display: none !important; }
.custom-select-empty { margin: 0; padding: 22px 10px; color: #969b93; text-align: center; font-size: 9px; }
.model-selector .custom-select { flex: 1; }
.model-selector .custom-select-trigger { min-height: 38px; padding-left: 5px; background: transparent; border: 0; box-shadow: none; font-size: 10px; font-weight: 600; }
.model-selector .custom-select-trigger:hover { background: #f7f7f4; }
.model-selector .custom-select-menu { left: -35px; width: max(calc(100% + 43px), 220px); }
.admin-section:has(.custom-select.open) { position: relative; z-index: 20; overflow: visible; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.model-selector > button[data-remove-play-model] { padding: 3px; border: 0; color: #8e95a1; background: none; cursor: pointer; }
.provider-mark { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; }
.provider-svg { width: 18px; height: 18px; display: block; object-fit: contain; }
.provider-fallback { width: 18px; height: 18px; display: grid; place-items: center; color: #596170; background: #eef0f3; border-radius: 5px; font-size: 9px; font-weight: 700; }
.provider-brand { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: #fff; background: #34373d; border: 1px solid rgba(20,24,32,.08); border-radius: 8px; font-size: 9px; font-weight: 700; }
.provider-brand img { width: 68%; height: 68%; display: block; object-fit: contain; }
.provider-brand.provider-openai { color: #111; background: #fff; }
.provider-brand.provider-anthropic { color: #181512; background: #fff; }
.provider-brand.provider-zhipu, .provider-brand.provider-zai { color: #fff; background: #fff; }
.provider-brand.provider-zhipu img, .provider-brand.provider-zai img { width: 80%; height: 80%; }
.provider-brand.provider-gemini, .provider-brand.provider-kimi, .provider-brand.provider-minimax, .provider-brand.provider-xai, .provider-brand.provider-deepsea, .provider-brand.provider-deepseek, .provider-brand.provider-empireai, .provider-brand.provider-openrouter { color: #111; background: #fff; }
.provider-brand.provider-gemini img, .provider-brand.provider-kimi img, .provider-brand.provider-minimax img, .provider-brand.provider-xai img, .provider-brand.provider-deepsea img, .provider-brand.provider-deepseek img, .provider-brand.provider-empireai img, .provider-brand.provider-openrouter img { width: 76%; height: 76%; }
.provider-brand.provider-fallback-brand { color: #fff; background: #34373d; }
.provider-brand.provider-uploaded { color: #111; background: #fff; }
.provider-brand.provider-uploaded img { width: 76%; height: 76%; }
.provider-brand.provider-groq, .provider-brand.provider-qwen, .provider-brand.provider-meta { color: #111; background: #fff; }
.provider-brand.provider-groq img, .provider-brand.provider-qwen img, .provider-brand.provider-meta img { width: 76%; height: 76%; }
.model-logo .provider-brand { width: 34px; height: 34px; border-radius: 10px; }
.play-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 13px; align-items: start; }
.play-result { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.play-result header { min-height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.play-result header div { display: flex; align-items: center; gap: 9px; }
.play-result header b { font-size: 11px; }
.play-result header > span { color: var(--muted); font-size: 9px; }
.play-result-body { min-height: 170px; max-height: 440px; padding: 18px; overflow: auto; white-space: pre-wrap; color: #333946; font-size: 12px; line-height: 1.7; }
.play-result-body.empty { display: grid; place-items: center; color: #a0a6b0; text-align: center; }
.play-result-body.error { color: var(--red); background: #fffafa; }
.play-result footer { min-height: 39px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: #8a919e; background: #fafbfc; border-top: 1px solid var(--line); font-size: 9px; }
.result-loading { width: 19px; height: 19px; margin: auto; border: 2px solid #deded8; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.models-surface { overflow: visible; }
.models-surface .table-wrap { border-radius: 0 0 12px 12px; }
.models-surface:has(.custom-select.open) { position: relative; z-index: 30; }
.catalog-toolbar { padding: 17px 20px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.search-box { width: 300px; height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; background: #f7f8fa; border: 1px solid #e4e7eb; border-radius: 7px; }
.search-box svg { width: 16px; color: #969da8; }
.search-box:focus-within { background: #fff; border-color: #716aff; box-shadow: 0 0 0 3px rgba(99,91,255,.12); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.catalog-toolbar > .custom-select { width: 220px; flex: 0 0 220px; }
.catalog-toolbar > .custom-select .custom-select-trigger { min-height: 38px; padding: 3px 7px 3px 9px; border-radius: 7px; }
.catalog-toolbar > .custom-select .custom-select-current { gap: 8px; }
.catalog-toolbar > .custom-select .custom-select-current > .provider-brand,
.catalog-toolbar > .custom-select .custom-select-current > .custom-provider-icon { width: 28px; height: 28px; border-radius: 7px; }
.catalog-toolbar > .custom-select .custom-select-menu { right: 0; left: auto; width: max(100%, 290px); }
.custom-provider-icon.provider-filter-all { color: #687078; background: #f2f3f1; border: 1px solid #e1e3df; }
.provider-filter-all svg { width: 16px; height: 16px; fill: currentColor; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; padding: 0 18px; color: #8c939f; background: #fafbfc; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
td { height: 70px; padding: 12px 18px; border-bottom: 1px solid #eceef1; color: #4d5562; font-size: 10px; }
tr:last-child td { border-bottom: 0; }
.model-name { display: flex; align-items: center; gap: 11px; }
.model-logo { width: 34px; height: 34px; display: grid; place-items: center; color: #44516a; background: #f1f3f6; border-radius: 8px; font-weight: 700; }
.model-logo .provider-svg { width: 20px; height: 20px; }
.model-name b, .model-name code { display: block; }
.model-name b { margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.model-name code { color: #9097a3; font-size: 8px; }
.status-pill { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--green); background: #edf8f3; border-radius: 12px; font-size: 8px; font-weight: 600; }
.status-pill::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pill.degraded { color: #9a6a27; background: #fff6e8; }

.security-note { margin-bottom: 18px; padding: 15px 18px; display: flex; gap: 12px; color: #4e504b; background: #f1f1ed; border: 1px solid #dfded8; border-radius: 9px; }
.security-note svg { width: 20px; flex: 0 0 auto; color: var(--accent); }
.security-note b { display: block; margin-bottom: 4px; font-size: 11px; }
.security-note p { margin: 0; color: #74766f; font-size: 10px; }
.keys-list { min-height: 250px; }
.key-row { min-height: 74px; padding: 13px 22px; display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, .8fr) minmax(120px, .6fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid #eceef2; }
.key-row:last-child { border-bottom: 0; }
.key-row b { display: block; margin-bottom: 5px; font-size: 11px; }
.key-row code, .key-row small { color: var(--muted); font-size: 9px; }
.key-row button { padding: 7px 10px; color: var(--red); background: #fff; border: 1px solid #ead4d4; border-radius: 6px; font-size: 9px; cursor: pointer; }

.redeem-layout { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(340px, .8fr); gap: 22px; align-items: start; max-width: 1050px; }
.redeem-card { padding: 33px; }
.redeem-visual { position: relative; height: 110px; margin: -12px -12px 28px; display: grid; place-items: center; overflow: hidden; color: var(--accent); background: linear-gradient(130deg, #eeeeea, #f7f6f2); border-radius: 10px; }
.redeem-visual::before, .redeem-visual::after { content: ''; position: absolute; width: 290px; height: 110px; background: rgba(255,255,255,.55); border-radius: 50%; }
.redeem-visual::before { left: -80px; bottom: -70px; }.redeem-visual::after { right: -90px; top: -70px; }
.redeem-visual svg { position: relative; z-index: 1; width: 38px; height: 38px; }
.redeem-card h2 { margin: 0 0 10px; font-size: 24px; }
.redeem-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.redeem-card input { font-family: 'JetBrains Mono'; text-transform: uppercase; letter-spacing: .03em; }
.form-help { display: block; margin-top: 13px; color: #8e95a0; font-size: 9px; line-height: 1.5; text-align: center; }
.redeem-layout > aside { display: grid; gap: 22px; }
.reseller-card { padding: 24px; }
.reseller-card h2 { margin: 0 0 23px; font-size: 15px; }
.reseller-card ol { margin: 0; padding: 0; display: grid; gap: 22px; list-style: none; }
.reseller-card li { display: flex; gap: 13px; }
.reseller-card li > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); background: var(--accent-soft); border-radius: 50%; font-size: 9px; font-weight: 700; }
.reseller-card b { display: block; margin-bottom: 5px; font-size: 11px; }
.reseller-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.compact-list { min-height: 100px; }
.compact-list .data-row { min-height: 60px; }

.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 860px); gap: 25px; align-items: start; }
.docs-nav { position: sticky; top: 20px; display: grid; gap: 4px; }
.docs-nav > span { padding: 0 11px 8px; color: #a1a59e; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.docs-nav a { padding: 9px 11px; color: var(--muted); border-left: 2px solid transparent; font-size: 10px; }
.docs-nav a.active { color: var(--accent); background: #eeeeea; border-color: var(--accent); font-weight: 600; }
.docs-content { padding: 38px 42px 50px; }
.docs-content h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -.6px; }
.docs-content section { scroll-margin-top: 24px; }
.docs-content section + section { margin-top: 42px; padding-top: 40px; border-top: 1px solid var(--line); }
.docs-content h3 { margin: 0 0 11px; font-size: 19px; letter-spacing: -.3px; }
.docs-content p { color: #5f6877; line-height: 1.75; }
.docs-content p code { padding: 2px 5px; color: #3b4039; background: #f1f2ee; border-radius: 4px; font-size: .88em; }
.docs-content p a { color: var(--ink); border-bottom: 1px solid #aeb0aa; font-weight: 600; }
.docs-content pre { margin-top: 14px; padding: 19px; color: #dbe4ff; background: #1c2029; border-radius: 8px; font-size: 10px; line-height: 1.8; }
.endpoint-box { height: 58px; margin: 24px 0; padding: 0 14px; display: flex; align-items: center; gap: 16px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; }
.endpoint-box > span { color: var(--muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.endpoint-box code { flex: 1; font-size: 10px; }
.endpoint-box button { padding: 6px 9px; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; cursor: pointer; }
.docs-callout { margin-top: 18px; padding: 16px; display: flex; gap: 12px; color: #4e504b; background: #f1f1ed; border-radius: 8px; }
.docs-callout svg { color: var(--accent); }
.docs-callout b { display: block; margin-bottom: 3px; font-size: 10px; }
.docs-callout p { margin: 0; font-size: 9px; }
.docs-steps { margin: 25px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.docs-steps > div { padding: 15px; background: #f7f7f4; border: 1px solid var(--line); border-radius: 8px; }
.docs-steps span { width: 23px; height: 23px; margin-bottom: 12px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 8px; font-weight: 700; }
.docs-steps p { margin: 0; font-size: 9px; line-height: 1.5; }
.docs-steps b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 10px; }
.code-block { margin-top: 16px; overflow: hidden; background: #1c2029; border: 1px solid #303641; border-radius: 9px; }
.code-block > div { min-height: 37px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; color: #9fa9bb; background: #252a34; border-bottom: 1px solid #343a46; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.code-block button { padding: 5px 8px; color: #d6ddea; background: #303641; border: 0; border-radius: 4px; font-size: 8px; cursor: pointer; }
.code-block pre { margin: 0; border-radius: 0; }
.docs-parameter-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.docs-parameter-table > div { padding: 14px 16px; display: grid; grid-template-columns: 110px 145px 1fr; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.docs-parameter-table > div:last-child { border-bottom: 0; }
.docs-parameter-table b { font-size: 10px; }
.docs-parameter-table code { color: #7c8278; font-size: 8px; }
.docs-parameter-table p { margin: 0; font-size: 9px; line-height: 1.5; }
.docs-status-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.docs-status-grid > div { padding: 12px 14px; display: flex; align-items: center; gap: 12px; background: #f7f7f4; border-radius: 7px; }
.docs-status-grid code { color: var(--ink); font-size: 9px; font-weight: 700; }
.docs-status-grid span { color: var(--muted); font-size: 9px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-tabs { margin-bottom: 20px; padding: 5px; display: flex; gap: 3px; overflow-x: auto; background: #e9e9e5; border-radius: 10px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { min-height: 39px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #686b65; background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 600; cursor: pointer; }
.admin-tabs button svg { width: 15px; height: 15px; }
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(20,24,32,.1); }
.admin-panel { animation: page-in .16s ease; }
.admin-jump { margin-bottom: 14px; padding: 5px; display: flex; gap: 3px; overflow-x: auto; background: #eaeae6; border-radius: 9px; }
.admin-jump a { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; white-space: nowrap; color: #5f625d; border-radius: 6px; font-size: 9px; font-weight: 600; }
.admin-jump a:hover { color: var(--ink); background: #fff; }
.admin-stat { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.admin-stat span { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.admin-stat span svg { width: 16px; height: 16px; color: #a0a49d; }
.admin-stat strong { font-size: 23px; }
.admin-stat > small { display: block; margin-top: 7px; color: #a0a49d; font-size: 8px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; align-items: start; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .6fr); gap: 18px; align-items: start; }
.admin-tool-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr); gap: 18px; align-items: start; max-width: 1000px; }
.admin-stack { display: grid; gap: 20px; }
.admin-section { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.admin-section { scroll-margin-top: 18px; }
.admin-section > header { padding: 19px 21px; background: #fcfcfa; border-bottom: 1px solid var(--line); }
.admin-section > header h2 { margin: 0 0 4px; font-size: 14px; }
.admin-section > header p { margin: 0; color: var(--muted); font-size: 9px; }
.admin-section > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-count { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--muted); background: #f1f1ed; border-radius: 14px; font-size: 8px; font-weight: 600; }
.admin-form { padding: 20px; display: grid; gap: 13px; }
.admin-form.two { grid-template-columns: 1fr 1fr; }
.admin-form .span-two { grid-column: 1 / -1; }
.admin-form label { display: grid; gap: 7px; color: #555d69; font-size: 9px; font-weight: 600; }
.admin-form .button { align-self: end; }
.admin-form-output { margin: 0 20px 20px; padding: 13px; max-height: 180px; overflow: auto; color: #dbe4ff; background: #1e222c; border-radius: 7px; font-size: 9px; line-height: 1.7; white-space: pre-wrap; }
.admin-table td { height: 61px; }
.admin-table td b { color: var(--ink); }
.admin-table td small { color: var(--muted); }
.admin-table td > small { display: block; margin-top: 4px; }
.admin-table .button { min-height: 30px; padding: 0 10px; font-size: 8px; }
.admin-status { padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; color: #70736c; background: #f0f1ee; border-radius: 12px; white-space: nowrap; font-size: 8px; font-weight: 600; }
.admin-status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.admin-status.active, .admin-status.operational { color: var(--green); background: #edf8f3; }
.admin-status.paused, .admin-status.inactive { color: #9a6a27; background: #fff6e8; }
.admin-status.redeemed { color: #777b84; background: #f0f1f3; }
.admin-search-wrap { display: grid; justify-items: end; gap: 5px; }
.admin-search-wrap > small { color: #8a9087; font-size: 9px; }
.admin-search { width: min(320px, 44vw); height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #d9dcd6; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.admin-search:focus-within { border-color: #716aff; box-shadow: 0 0 0 3px rgba(99,91,255,.13); }
.admin-search svg { width: 16px; flex: 0 0 auto; color: #858c82; }
.admin-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.admin-search input::placeholder { color: #a0a59d; }
.admin-empty-row td { height: 130px; color: var(--muted); text-align: center; }
.health-list { padding: 7px 20px; }
.health-list > div { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eeeeea; }
.health-list > div:last-child { border-bottom: 0; }
.health-list span { color: var(--muted); font-size: 9px; }
.health-list b { font-size: 10px; }
.rank-list { min-height: 205px; padding: 8px 20px; }
.rank-list > div { min-height: 49px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #eeeeea; }
.rank-list > div:last-child { border-bottom: 0; }
.rank-list > div > span { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); background: #f0f1ed; border-radius: 6px; font-size: 8px; }
.rank-list b { font-size: 9px; }
.rank-list small { color: var(--muted); font-size: 8px; }
.admin-guidance { padding: 8px 20px; }
.admin-guidance > div { padding: 16px 0; display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.admin-guidance > div:last-child { border-bottom: 0; }
.admin-guidance svg { width: 18px; color: #7f847b; flex: 0 0 auto; }
.admin-guidance p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-guidance b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; }
.model-admin-list > div { min-height: 68px; padding: 11px 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.model-admin-list > div:last-child { border-bottom: 0; }
.model-admin-list p { min-width: 0; margin: 0; }
.model-admin-list p b, .model-admin-list p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-admin-list p b { margin-bottom: 4px; font-size: 10px; }
.model-admin-list p small { color: var(--muted); font-size: 8px; }
.host-admin-list > div { min-height: 76px; padding: 11px 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto auto auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.host-admin-list > div:last-child { border-bottom: 0; }
.host-admin-list p { min-width: 0; margin: 0; }
.host-admin-list p b, .host-admin-list p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-admin-list p b { margin-bottom: 4px; font-size: 10px; }
.host-admin-list p small, .host-stability small { color: var(--muted); font-size: 8px; }
.host-stability { min-width: 82px; text-align: right; }
.host-stability b, .host-stability small { display: block; }
.host-stability b { margin-bottom: 3px; font-size: 10px; }
.audit-list { max-height: 480px; overflow: auto; }
.audit-list > div { min-height: 58px; padding: 12px 19px; display: flex; align-items: flex-start; gap: 11px; border-bottom: 1px solid var(--line); }
.audit-list > div:last-child { border-bottom: 0; }
.audit-mark { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; background: #6f746b; border: 2px solid #e6e8e3; border-radius: 50%; box-sizing: content-box; }
.audit-list p { min-width: 0; margin: 0; }
.audit-list b { display: block; margin-bottom: 5px; font-size: 9px; text-transform: capitalize; }
.audit-list small { color: var(--muted); font-size: 8px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 25px; display: grid; place-items: center; background: rgba(20,23,30,.45); backdrop-filter: blur(4px); }
body.modal-open { overflow: hidden; }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100vh - 50px); padding: 33px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 90px rgba(18,22,31,.24); }
.modal-close { position: absolute; top: 14px; right: 15px; width: 32px; height: 32px; color: #737a86; background: #f5f6f8; border: 0; border-radius: 50%; cursor: pointer; }
.modal-logo { margin-bottom: 24px; }
.modal-logo.relay-logo { width: 32px; height: 32px; }
.key-logo { width: 43px; height: 43px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.modal h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.6px; }
.modal > div > p, .modal > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.modal form + small, .modal > div > small { display: block; margin-top: 18px; color: var(--muted); font-size: 10px; text-align: center; }
.key-result { margin-top: 20px; }
.key-result p { padding: 11px; color: #6c581d; background: #fff6d9; border-radius: 7px; font-size: 9px; line-height: 1.5; }
.key-value { margin: 11px 0 15px; padding: 11px; display: flex; align-items: center; gap: 8px; background: #f5f6f8; border: 1px solid var(--line); border-radius: 7px; }
.key-value code { flex: 1; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.key-value button { padding: 6px 8px; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; cursor: pointer; }

.toast-stack { position: fixed; top: 22px; right: 22px; z-index: 200; display: grid; gap: 8px; }
.toast { width: min(360px, calc(100vw - 44px)); padding: 13px 15px; color: #fff; background: #252932; border-radius: 8px; box-shadow: 0 12px 38px rgba(16,20,28,.2); font-size: 11px; animation: toast-in .2s ease; }
.toast.success { background: #177a55; }.toast.error { background: #a83b3b; }
.admin-form-message { margin: 0; padding: 10px 12px; border-radius: 7px; font-size: 11px; line-height: 1.45; }
.admin-form-message.error { color: #8f2727; background: #fff1f1; border: 1px solid #efc7c7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-4px); } }

/* Premium public experience */
.landing-page { --landing-accent: #635bff; --landing-ink: #111218; color: var(--landing-ink); background: #f7f7f4; }
.landing-mode .topbar { height: 76px; border-bottom-color: rgba(17,18,24,.08); }
.landing-mode .topbar-label { font-size: 20px; color: var(--landing-ink,#111218); }
.landing-mode .landing-nav a { font-size: 13px; }
.locale-switch { min-height: 34px; padding: 3px 10px 3px 4px; display: inline-flex; align-items: center; gap: 7px; color: #60645d; background: #fff; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.locale-switch span { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--landing-ink,#111218); border-radius: 50%; font-size: 9px; font-weight: 700; }
.locale-switch b { font-size: 10px; font-weight: 600; }
.landing-hero { position: relative; isolation: isolate; width: min(1240px, calc(100% - 64px)); min-height: 735px; grid-template-columns: minmax(440px,.88fr) minmax(550px,1.12fr); gap: 70px; }
.landing-hero::before { content: ''; position: absolute; z-index: -2; top: 5%; right: -18%; width: 690px; height: 690px; background: radial-gradient(circle, rgba(99,91,255,.18), rgba(99,91,255,.06) 35%, transparent 68%); filter: blur(10px); }
.landing-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(17,18,24,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,24,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent 0, black 48%, black 100%); }
.landing-page .guest-card { max-width: 650px; }
.landing-page .guest-card h1 { max-width: 11ch; margin-bottom: 26px; font-size: clamp(54px, 6vw, 78px); line-height: .98; letter-spacing: -4.5px; font-weight: 650; }
.landing-page .guest-card > p { max-width: 600px; margin-bottom: 34px; color: #60645f; font-size: 18px; line-height: 1.65; }
.landing-page .guest-card .eyebrow { color: var(--landing-accent); font-size: 12px; }
.landing-page .button { min-height: 48px; padding: 0 20px; border-radius: 10px; font-size: 13px; }
.landing-page .button.primary { background: var(--landing-ink); border-color: var(--landing-ink); box-shadow: 0 10px 25px rgba(17,18,24,.18); }
.landing-page .button.secondary { border-color: #d7d7d1; }
.landing-proof { margin-top: 42px; gap: 34px; }
.landing-proof span { font-size: 13px; }
.landing-proof b { margin-bottom: 4px; font-size: 13px; }
.landing-proof small { display: block; color: #777c74; font-size: 11px; }
.hero-stage { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero-console { width: 100%; overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(17,18,24,.12); border-radius: 22px; box-shadow: 0 1px 1px rgba(17,18,24,.05), 0 30px 90px rgba(17,18,24,.16); }
.hero-console > header { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8e8e3; background: #fbfbf9; }
.hero-console-brand, .hero-live { display: inline-flex; align-items: center; gap: 9px; }
.hero-console-brand svg { width: 18px; color: var(--landing-accent); }
.hero-console-brand b { font-size: 13px; }
.hero-live { min-height: 28px; padding: 0 10px; color: #227753; background: #ecf8f2; border-radius: 14px; font-size: 10px; font-weight: 600; }
.hero-live i { width: 6px; height: 6px; background: #24a06b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(36,160,107,.12); }
.hero-console-prompt { margin: 20px 20px 14px; padding: 16px 18px; background: #f4f4f1; border: 1px solid #e3e3dd; border-radius: 11px; }
.hero-console-prompt span, .hero-console-output > span { display: block; margin-bottom: 8px; color: #8b8f87; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-console-prompt p { margin: 0; font-size: 13px; line-height: 1.55; }
.hero-model-tabs { padding: 0 20px; display: flex; gap: 7px; }
.hero-model-tabs button { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 7px; color: #747870; background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 10px; cursor: default; }
.hero-model-tabs button.active { color: var(--landing-ink); background: #eeedff; border-color: #d8d5ff; }
.hero-model-tabs i { width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: #35373f; border-radius: 5px; font-style: normal; font-size: 7px; }
.hero-model-tabs small { color: #969a92; font-size: 8px; }
.landing-provider-logo { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: #fff; border: 1px solid rgba(24,25,30,.1); border-radius: 7px; }
.landing-provider-logo img { width: 68%; height: 68%; display: block; object-fit: contain; }
.landing-provider-logo img[src*="zai"] { width: 82%; height: 82%; }
.hero-console-output { position: relative; min-height: 155px; margin: 14px 20px 20px; padding: 19px; color: #434740; background: #fff; border: 1px solid #e2e2dc; border-radius: 11px; }
.hero-console-output p { max-width: 540px; margin: 0; font-size: 13px; line-height: 1.75; }
.hero-cursor { display: inline-block; width: 2px; height: 14px; margin-left: 2px; background: var(--landing-accent); animation: cursor-blink 1s step-end infinite; vertical-align: -2px; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero-console > footer { min-height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 20px; color: #858a81; background: #fafaf8; border-top: 1px solid #e8e8e3; font-size: 10px; }
.hero-console > footer b { margin-left: auto; color: var(--landing-ink); }
.hero-float-code, .hero-float-cost { position: absolute; display: flex; align-items: center; background: rgba(255,255,255,.96); border: 1px solid rgba(17,18,24,.12); box-shadow: 0 15px 45px rgba(17,18,24,.14); backdrop-filter: blur(12px); }
.hero-float-code { right: -32px; bottom: 21px; min-height: 48px; padding: 0 13px; gap: 9px; border-radius: 10px; }
.hero-float-code span { padding: 5px 7px; color: #fff; background: var(--landing-accent); border-radius: 5px; font-size: 8px; font-weight: 700; }
.hero-float-code code { color: #50554d; font-size: 9px; }
.hero-float-code i { color: #208258; font-style: normal; font-size: 9px; font-weight: 700; }
.hero-float-cost { top: -18px; left: -18px; min-width: 138px; padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; border-radius: 12px; }
.hero-float-cost span { grid-column: 1 / -1; color: #8b8f87; font-size: 9px; }
.hero-float-cost b { font-size: 19px; }
.hero-float-cost small { color: #21805a; font-size: 9px; }
.landing-strip { width: min(1240px, calc(100% - 64px)); min-height: 92px; margin: 0 auto; padding: 0 24px; background: #fff; border: 1px solid #e1e1dc; border-radius: 16px; box-shadow: 0 10px 35px rgba(17,18,24,.04); }
.landing-strip > span { color: #777c74; font-size: 12px; }
.landing-strip > div { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.landing-strip b { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: #454944; background: #f4f4f1; border-radius: 10px; font-size: 12px; }
.landing-strip b i { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: #34363d; border-radius: 6px; font-style: normal; font-size: 8px; }
.landing-strip .landing-provider-logo { width: 27px; height: 27px; }
.landing-workflow { padding-top: 130px; }
.landing-workflow-copy h2 { font-size: clamp(40px,4.5vw,58px); }
.landing-workflow-copy > p { font-size: 15px; }
.landing-workflow-copy li { min-height: 78px; }
.landing-workflow-copy li b { font-size: 13px; }
.landing-workflow-copy li p { font-size: 12px; }
.landing-product-card { border-radius: 20px; transform: none; box-shadow: 0 25px 70px rgba(17,18,24,.12); }
.landing-section { padding-top: 120px; }
.landing-section-head { max-width: 720px; }
.landing-section-head h2 { font-size: clamp(40px,4.5vw,58px); }
.landing-section-head p { font-size: 15px; }
.landing-features { grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 16px; }
.landing-features article { min-height: 0; padding: 30px; border-radius: 18px; }
.landing-features article h3 { margin-top: 24px; font-size: 20px; }
.landing-features article p { font-size: 13px; }
.landing-features .feature-compare { grid-row: 1 / 3; min-height: 540px; background: #17181e; color: #fff; border-color: #17181e; }
.feature-compare > span { color: #fff !important; background: rgba(255,255,255,.1) !important; }
.feature-compare > p { color: #aeb0b8 !important; }
.feature-compare > a { color: #fff; }
.feature-comparison { margin-top: 28px; display: grid; gap: 8px; }
.feature-comparison > div { min-height: 69px; padding: 0 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; background: #22232b; border: 1px solid #30313a; border-radius: 11px; }
.feature-comparison i { width: 32px; height: 32px; display: grid; place-items: center; background: #393b46; border-radius: 8px; font-style: normal; font-size: 10px; }
.feature-comparison .landing-provider-logo { width: 34px; height: 34px; border-color: rgba(255,255,255,.14); }
.feature-comparison b, .feature-comparison small { display: block; }
.feature-comparison b { margin-bottom: 5px; font-size: 12px; }
.feature-comparison small { color: #8f929e; font-size: 9px; }
.feature-comparison em { color: #71d7ab; font-style: normal; font-size: 10px; }
.feature-spend-value { margin-top: 20px; display: flex; align-items: end; justify-content: space-between; }
.feature-spend-value b { font-size: 30px; }
.feature-spend-value small { color: var(--muted); font-size: 10px; }
.feature-mini-bars { height: 85px; margin-top: 17px; display: flex; align-items: end; gap: 7px; }
.feature-mini-bars i { flex: 1; background: linear-gradient(#6b63ff,#aaa6ff); border-radius: 5px 5px 2px 2px; }
.feature-mini-bars .bar-32 { height: 32%; }
.feature-mini-bars .bar-42 { height: 42%; }
.feature-mini-bars .bar-48 { height: 48%; }
.feature-mini-bars .bar-58 { height: 58%; }
.feature-mini-bars .bar-70 { height: 70%; }
.feature-mini-bars .bar-72 { height: 72%; }
.feature-mini-bars .bar-88 { height: 88%; }
.feature-key { margin-top: 24px; padding: 12px; display: flex; align-items: center; justify-content: space-between; background: #f3f3ef; border-radius: 9px; }
.feature-key code { font-size: 10px; }
.feature-key b { color: #21805a; font-size: 9px; }
.feature-stream-line { margin-top: 24px; display: flex; align-items: center; gap: 5px; }
.feature-stream-line i { width: 7px; height: 7px; background: var(--landing-accent); border-radius: 50%; animation: stream-pulse 1.2s infinite alternate; }
.feature-stream-line i:nth-child(2) { animation-delay: .2s; }.feature-stream-line i:nth-child(3) { animation-delay: .4s; }
.feature-stream-line span { margin-left: 7px; color: var(--muted); font-size: 10px; }
.feature-stream { grid-column: 1 / -1; }
@keyframes stream-pulse { to { opacity: .25; transform: translateY(-3px); } }
.landing-cta { width: min(1240px, calc(100% - 64px)); margin: 0 auto 70px; padding: 100px 30px; overflow: hidden; border-radius: 26px; background: radial-gradient(circle at 78% 15%, rgba(99,91,255,.45), transparent 35%), #17181e; }
.landing-cta h2 { font-size: clamp(42px,5vw,62px); }
.landing-page .landing-cta .button.primary { color: #111218; background: #fff; border-color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.landing-footer { min-height: 180px; }
.locale-zh { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; line-break: strict; }

/* Command menu dropdown */
.custom-select-trigger { min-height: 46px; padding: 5px 10px; border-radius: 10px; }
.custom-select-trigger:focus-visible { border-color: #716aff; box-shadow: 0 0 0 3px rgba(99,91,255,.16); }
.custom-select-current { min-width: 0; display: flex; align-items: center; gap: 10px; }
.custom-select-current > img, .custom-select-current > .provider-brand, .custom-select-current > .provider-fallback, .custom-select-current > .custom-user-avatar, .custom-select-current > .custom-provider-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.custom-select-current > span { min-width: 0; }
.custom-select-current b, .custom-select-current small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-current b { color: #292d28; font-size: 12px; }
.custom-select-current small { margin-top: 2px; color: #858a81; font-size: 9px; font-weight: 400; }
.custom-select-chevron { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; background: #f2f2ee; border-radius: 7px; }
.custom-select-trigger > .custom-select-chevron svg { width: 12px; }
.custom-select-menu { width: max(100%, 360px); max-height: 410px; padding: 7px; border-radius: 14px; box-shadow: 0 24px 70px rgba(17,18,24,.2), 0 3px 10px rgba(17,18,24,.08); }
.custom-select-menu-head { min-height: 37px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; }
.custom-select-menu-head b { font-size: 11px; }
.custom-select-menu-head small { color: #91968d; font-size: 9px; }
.custom-select-search { height: 44px; margin-bottom: 6px; border-radius: 9px; }
.custom-select-search input { font-size: 12px; }
.custom-select-search kbd { padding: 3px 5px; color: #9a9e96; background: #fff; border: 1px solid #deded8; border-radius: 4px; font-family: Inter,sans-serif; font-size: 8px; }
.custom-select-options { max-height: 280px; gap: 3px; }
.custom-select-option { min-height: 54px; padding: 7px 9px; border-radius: 9px; font-size: 12px; }
.custom-option-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.custom-option-main > img, .custom-option-main > .provider-brand, .custom-option-main > .provider-fallback, .custom-option-main > .custom-user-avatar, .custom-option-main > .custom-provider-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.custom-option-main > span { min-width: 0; }
.custom-option-main b, .custom-option-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-option-main b { color: #333731; font-size: 12px; }
.custom-option-main small { margin-top: 3px; color: #8a8f86; font-size: 9px; font-weight: 400; }
.custom-option-check { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.custom-option-check svg { width: 14px; opacity: 0; }
.custom-select-option[aria-selected="true"] { background: #efefff; }
.custom-select-option[aria-selected="true"] .custom-option-check { color: #fff; background: var(--landing-accent,#635bff); }
.custom-select-option[aria-selected="true"] .custom-option-check svg { opacity: 1; }
.custom-user-avatar { display: grid; place-items: center; color: #fff; background: #4a4d47; border-radius: 8px; font-size: 9px; font-weight: 700; }
.custom-provider-icon { display: grid; place-items: center; color: #fff; background: #33363d; border-radius: 8px; font-size: 9px; font-weight: 700; }
.custom-provider-icon[data-provider="anthropic"] { color: #69412d; background: #f1ded1; }
.custom-provider-icon[data-provider="openai"] { color: #176c56; background: #d9eee7; }
.custom-provider-icon[data-provider="zhipu"] { color: #315a9b; background: #dfe9fa; }
.custom-select[data-variant="simple"] .custom-select-current b { padding-left: 2px; }
.custom-select[data-variant="simple"] .custom-select-option { min-height: 44px; }
.model-selector .custom-select-trigger { min-height: 44px; padding: 4px 7px; }
.model-selector > .provider-mark { display: none; }
.model-selector .custom-select-menu { left: 0; width: 370px; }

@media (max-width: 1050px) {
  .dashboard-main-grid, .redeem-layout { grid-template-columns: 1fr; }
  .playground-layout { grid-template-columns: 330px minmax(0,1fr); }
  .admin-layout, .admin-split, .admin-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-frame { border-top: 0; }
  .sidebar { inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 14px 0 40px rgba(20,24,31,.13); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; z-index: 20; background: rgba(20,23,30,.3); }
  .workspace { margin-left: 0; }
  .topbar { height: 70px; padding: 0 20px; background: #fff; border-bottom-color: var(--line); }
  .mobile-menu { display: block; }
  .topbar > div:first-of-type { margin-right: auto; }
  .topbar strong { font-size: 17px; }
  .support-link, .top-user div { display: none; }
  main { padding: 28px 20px 60px; }
  .guest-layout, .playground-layout { grid-template-columns: 1fr; }
  .guest-layout { gap: 35px; }
  .landing-mode .topbar { padding: 0 20px; }
  .landing-mode .mobile-menu { display: none; }
  .landing-mode .landing-nav { display: none; }
  .landing-hero { width: min(680px, calc(100% - 40px)); padding: 55px 0 70px; }
  .landing-code { transform: none; }
  .landing-strip { padding: 20px; overflow-x: auto; justify-content: flex-start; }
  .landing-strip > * { flex: 0 0 auto; }
  .landing-workflow { width: min(680px, calc(100% - 40px)); padding: 80px 0 20px; grid-template-columns: 1fr; gap: 50px; }
  .landing-product-card { transform: none; }
  .landing-section { width: calc(100% - 40px); padding: 75px 0; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-features article { min-height: 230px; }
  .guest-card h1 { font-size: 46px; }
  .playground-composer { position: static; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: sticky; top: 0; z-index: 5; margin: 0 -20px; padding: 8px 20px; display: flex; overflow-x: auto; background: rgba(245,245,242,.96); scrollbar-width: none; }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav > span { display: none; }
  .docs-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .docs-content section { scroll-margin-top: 65px; }
  .admin-jump { position: sticky; top: 0; z-index: 5; }
  .admin-tabs { position: sticky; top: 0; z-index: 8; margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; border-radius: 0; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  main { padding: 24px 14px 50px; }
  .page-heading { margin-bottom: 25px; align-items: flex-start; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; line-height: 1.5; }
  .page-heading .button, .page-heading .balance-chip { flex: 0 0 auto; }
  .dashboard-actions { flex-direction: column; }
  .dashboard-actions .button { min-height: 34px; padding: 0 10px; font-size: 9px; }
  .guest-layout { min-height: auto; padding-top: 35px; }
  .landing-mode .topbar { height: 62px; padding: 0 14px; }
  .landing-mode .support-link { display: none; }
  .landing-hero { width: calc(100% - 28px); padding: 35px 0 60px; }
  .guest-card h1 { font-size: 40px; letter-spacing: -2px; }
  .guest-card > p { font-size: 14px; }
  .code-preview { display: none; }
  .landing-proof { gap: 15px; flex-wrap: wrap; }
  .landing-proof span { flex: 1 1 90px; }
  .landing-section { width: calc(100% - 28px); padding: 65px 0; }
  .landing-workflow { width: calc(100% - 28px); padding: 65px 0 10px; gap: 38px; }
  .landing-workflow-copy h2 { font-size: 33px; letter-spacing: -1.2px; }
  .landing-response-grid { padding: 0 12px 12px; gap: 7px; }
  .landing-prompt { margin: 12px; }
  .landing-response-grid article > p { min-height: 120px; padding: 11px; }
  .landing-section-head h2, .landing-cta h2 { font-size: 33px; letter-spacing: -1.2px; }
  .landing-features article { min-height: 245px; padding: 22px; }
  .landing-cta { padding: 65px 18px; }
  .landing-footer { padding: 30px 20px; grid-template-columns: 1fr; text-align: center; }
  .landing-footer .brand, .landing-footer nav { justify-content: center; }
  .landing-footer nav { flex-wrap: wrap; }
  .activation-card { padding: 25px; grid-template-columns: 1fr; }
  .activation-icon { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .metric-card strong { margin-top: 13px; }
  .catalog-toolbar { flex-direction: column; }
  .search-box { width: 100%; }
  .catalog-toolbar > .custom-select { width: 100%; flex-basis: auto; }
  th:nth-child(2), td:nth-child(2), th:nth-child(5), td:nth-child(5) { display: none; }
  .key-row { grid-template-columns: 1fr auto; }
  .key-row > div:nth-child(2), .key-row > div:nth-child(3) { display: none; }
  .redeem-card, .docs-content { padding: 25px 20px; }
  .setting-grid, .admin-form.two, .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats .admin-stat { padding: 15px; }
  .modal-backdrop { padding: 12px; }
  .modal { padding: 28px 21px; }
  .button, .mobile-menu, .model-selector { min-height: 44px; }
  .custom-select-trigger, .custom-select-option { min-height: 44px; }
  .custom-select-menu { max-height: min(300px, 55vh); }
  .playground-heading { gap: 12px; }
  .playground-heading .eyebrow { margin-bottom: 7px; }
  .playground-composer { padding: 18px; }
  .composer-head { margin-bottom: 18px; }
  .prompt-field textarea { min-height: 150px; }
  .preset-row { margin-right: -18px; padding-right: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .preset-row::-webkit-scrollbar { display: none; }
  .preset-row button { min-height: 34px; flex: 0 0 auto; }
  .model-picker-head { align-items: flex-end; }
  .model-selectors { display: grid; grid-template-columns: 1fr; }
  .model-selector { width: 100%; }
  .model-selector select { max-width: none; min-width: 0; flex: 1; }
  .model-selector .custom-select-menu { right: 0; left: auto; width: min(290px, calc(100vw - 46px)); }
  .play-results { grid-template-columns: 1fr; }
  .play-result-body { min-height: 145px; max-height: 55vh; }
  .docs-heading .button { display: none; }
  .docs-nav { margin: 0 -14px; padding-right: 14px; padding-left: 14px; }
  .docs-content h2 { font-size: 24px; }
  .docs-content section + section { margin-top: 32px; padding-top: 30px; }
  .docs-steps { grid-template-columns: 1fr; }
  .docs-steps > div { display: grid; grid-template-columns: 25px 1fr; gap: 11px; align-items: start; }
  .docs-steps span { margin: 0; }
  .endpoint-box { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px 12px; }
  .endpoint-box code { min-width: calc(100% - 90px); overflow-wrap: anywhere; }
  .docs-parameter-table > div { grid-template-columns: 1fr auto; }
  .docs-parameter-table p { grid-column: 1 / -1; }
  .docs-status-grid { grid-template-columns: 1fr; }
  .code-block pre { max-width: 100%; padding: 16px; font-size: 9px; }
  .admin-jump { margin-right: -14px; margin-left: -14px; border-radius: 0; }
  .admin-tabs { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .admin-tabs button { min-height: 42px; }
  .admin-layout { gap: 14px; }
  .admin-stack { gap: 14px; }
  .admin-form { padding: 16px; }
  .admin-section > header { padding: 16px; }
  .admin-table th, .admin-table td { padding-right: 13px; padding-left: 13px; white-space: nowrap; }
  .admin-section > header { align-items: flex-start; }
  .admin-search-wrap { width: 48%; justify-items: stretch; }
  .admin-search { width: 100%; }
  .model-admin-list > div { grid-template-columns: auto minmax(0,1fr) auto; }
  .model-admin-list .admin-status { display: none; }
  .host-admin-list > div { grid-template-columns: auto minmax(0,1fr) auto auto auto; }
  .host-admin-list .admin-status, .host-stability { display: none; }
}

@media (max-width: 380px) {
  .topbar { height: 62px; padding: 0 10px; }
  .topbar strong { font-size: 15px; }
  .topbar-actions { gap: 6px; }
  main { padding: 20px 10px 42px; }
  .page-heading { gap: 10px; }
  .page-heading h1 { font-size: 25px; letter-spacing: -.8px; }
  .page-heading p { font-size: 11px; }
  .playground-heading { display: grid; grid-template-columns: 1fr; }
  .landing-response-grid { grid-template-columns: 1fr; }
  .landing-response-grid article > p { min-height: 82px; }
  .playground-heading .balance-chip { justify-self: start; }
  .setting-grid, .admin-form.two, .admin-stats { grid-template-columns: 1fr; }
  .playground-composer { padding: 15px; border-radius: 10px; }
  .model-picker-head { align-items: flex-start; }
  .model-picker-head .button { padding: 0 10px; font-size: 9px; }
  .play-result header, .play-result footer { padding-right: 12px; padding-left: 12px; }
  .play-result-body { padding: 14px; font-size: 11px; }
  .docs-nav { margin: 0 -10px; padding-right: 10px; padding-left: 10px; }
  .docs-content { padding: 22px 15px; border-radius: 10px; }
  .docs-content pre { font-size: 8px; }
  .endpoint-box > span { width: 100%; }
  .endpoint-box code { min-width: 0; font-size: 8px; }
  .docs-callout { padding: 13px; }
  .admin-jump { margin-right: -10px; margin-left: -10px; }
  .admin-tabs { margin-right: -10px; margin-left: -10px; padding-right: 10px; padding-left: 10px; }
  .admin-search-wrap, .admin-search { width: 100%; }
  .admin-section > header:has(.admin-search) { display: grid; }
  .model-admin-list > div { padding: 10px 12px; gap: 8px; }
  .host-admin-list > div { padding: 10px 12px; gap: 8px; grid-template-columns: auto minmax(0,1fr) auto auto; }
  .host-admin-list [data-test-host] { display: none; }
  .admin-stat strong { font-size: 21px; }
  .modal { max-height: calc(100vh - 20px); padding: 25px 16px; }
  .toast-stack { top: 10px; right: 10px; }
  .toast { width: calc(100vw - 20px); }
}

@media (max-width: 1050px) {
  .landing-hero { width: min(760px, calc(100% - 48px)); padding: 80px 0 95px; grid-template-columns: 1fr; gap: 55px; }
  .landing-page .guest-card { max-width: 720px; }
  .landing-page .guest-card h1 { max-width: 12ch; }
  .hero-stage { width: min(720px, 100%); margin: auto; }
  .landing-strip, .landing-cta { width: min(760px, calc(100% - 48px)); }
  .landing-workflow, .landing-section { width: min(760px, calc(100% - 48px)); }
  .landing-features { grid-template-columns: 1fr; }
  .landing-features .feature-compare { grid-row: auto; min-height: 500px; }
}

@media (max-width: 820px) {
  .locale-switch b { display: none; }
  .locale-switch { padding-right: 4px; }
  .landing-page .guest-card h1 { font-size: clamp(50px,11vw,68px); }
  .landing-strip { padding: 18px; display: grid; }
  .landing-strip > div { width: 100%; margin: 0; flex-wrap: wrap; }
  .landing-strip b { flex: 1 1 135px; }
  .landing-workflow { padding-top: 95px; }
  .landing-cta { margin-bottom: 35px; }
}

@media (max-width: 600px) {
  .landing-mode .topbar { padding: 0 14px; }
  .landing-mode .topbar-actions { gap: 9px; }
  .landing-page .guest-card h1 { font-size: 46px; letter-spacing: -2.8px; }
  .landing-page .guest-card > p { font-size: 16px; }
  .landing-page .guest-card .button-row { display: grid; grid-template-columns: 1fr; }
  .landing-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-stage { min-height: 430px; }
  .hero-console { border-radius: 16px; }
  .hero-console > header { min-height: 56px; padding: 0 14px; }
  .hero-console-prompt { margin: 14px 14px 10px; }
  .hero-model-tabs { padding: 0 14px; overflow-x: auto; }
  .hero-model-tabs button { flex: 0 0 auto; }
  .hero-console-output { min-height: 140px; margin: 10px 14px 14px; padding: 15px; }
  .hero-console-output p { font-size: 12px; }
  .hero-console > footer { padding: 0 14px; gap: 10px; font-size: 8px; }
  .hero-float-cost { display: none; }
  .hero-float-code { right: -4px; bottom: 0; }
  .landing-strip, .landing-hero, .landing-workflow, .landing-section, .landing-cta { width: calc(100% - 28px); }
  .landing-strip b { padding: 0 10px; }
  .landing-workflow-copy h2, .landing-section-head h2 { font-size: 38px; }
  .landing-product-card { border-radius: 15px; }
  .landing-features article { padding: 24px; }
  .landing-features .feature-compare { min-height: 0; }
  .landing-cta { padding: 70px 20px; border-radius: 20px; }
  .landing-cta h2 { font-size: 40px; }

  body:has(.custom-select.open)::before { content: ''; position: fixed; inset: 0; z-index: 85; background: rgba(14,15,19,.46); backdrop-filter: blur(3px); }
  .custom-select.open .custom-select-menu, .custom-select.open-up .custom-select-menu, .model-selector .custom-select.open .custom-select-menu { position: fixed; z-index: 100; inset: auto 10px 10px; width: auto; max-height: 70dvh; padding: 9px; border-radius: 18px; animation: dropdown-sheet-in .2s ease; }
  .custom-select-menu-head { min-height: 44px; padding: 0 8px; }
  .custom-select-menu-head b { font-size: 13px; }
  .custom-select-menu-head small { font-size: 10px; }
  .custom-select-search { height: 48px; }
  .custom-select-search kbd { display: none; }
  .custom-select-options { max-height: calc(70dvh - 120px); }
  .custom-select-option { min-height: 58px; }
  @keyframes dropdown-sheet-in { from { opacity: 0; transform: translateY(25px); } }
}

@media (max-width: 380px) {
  .landing-page .guest-card h1 { font-size: 40px; }
  .landing-proof { grid-template-columns: 1fr; }
  .hero-model-tabs button:nth-child(3) { display: none; }
  .hero-float-code { max-width: calc(100% - 8px); }
  .hero-float-code code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
