:root {
  --ink: #f0f3ed;
  --muted: #929a8d;
  --panel: #161a16;
  --panel-deep: #101310;
  --line: #343c34;
  --acid: #c7f36b;
  --orange: #ff8157;
  --bg: #0a0d0a;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; }
button, input, select { font: inherit; }
.grain { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.document-image-pending { color: var(--muted); font-style: italic; }
main { width: min(1380px, calc(100% - 48px)); margin: auto; padding: 52px 0 24px; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--acid); font-size: 11px; letter-spacing: .17em; }
h1, h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(42px, 6vw, 82px); line-height: .85; }
h1 em { color: var(--acid); font-style: normal; }
h2 { font-size: 32px; }
.live-state { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #656a63; }
.live-state[data-state="live"] { color: var(--acid); }.live-state[data-state="live"] .pulse { background: var(--acid); box-shadow: 0 0 0 5px #c7f36b18; animation: pulse 1.6s infinite; }
.live-state[data-state="error"] { color: var(--orange); }.live-state[data-state="error"] .pulse { background: var(--orange); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent; } }

.auth-layout { margin: clamp(18px, 6vh, 80px) auto 24px; background: var(--panel); border: 1px solid var(--line); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px clamp(24px, 4vw, 52px); border-bottom: 1px solid var(--line); }.header-actions { display: flex; align-items: center; gap: 8px; }
.auth-header h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.auth-header .eyebrow { margin-bottom: 6px; }
.site-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }.site-brand > img { flex: 0 0 auto; width: auto; min-width: 50px; max-width: 112px; height: clamp(50px, 4vw, 64px); object-fit: contain; }.site-brand > img.is-rounded, .brand-preview img.is-rounded { border-radius: 10px; }.site-brand h1, .masthead .site-brand h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1; overflow-wrap: anywhere; }.brand-settings-panel .model-form { max-width: 680px; margin-top: 20px; border: 1px solid var(--line); background: var(--panel); }.brand-preview { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px; border: 1px solid var(--line); background: var(--panel-deep); }.brand-preview img { width: 58px; height: 58px; object-fit: contain; }.brand-preview span { color: var(--acid); font: 400 24px/1 Impact, sans-serif; overflow-wrap: anywhere; }
.auth-toggle { min-width: 92px; }.guide-link { display: inline-flex; align-items: center; justify-content: center; min-width: 6em; height: 42px; padding: 0 13px; color: var(--muted); border: 1px solid #454b43; text-align: center; text-decoration: none; font-size: 12px; line-height: 1.25; white-space: normal; }.guide-link:hover { color: var(--acid); border-color: var(--acid); }.guide-link-primary { flex: 0 0 auto; min-width: 122px; max-width: 100%; color: #0b0d0b; background: var(--acid); border-color: var(--acid); font-weight: 700; }.guide-link-primary:hover { color: #0b0d0b; background: #dbff8d; border-color: #dbff8d; }.guide-link-primary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.guide-header-actions, .document-route-actions { display: flex; align-items: center; gap: 8px; }.document-route-actions button { height: 38px; padding: 0 12px; font-size: 11px; }.document-route-actions button:last-child { color: #ffb29b; border-color: #6a4437; }
.auth-home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }.auth-access { display: flex; flex-direction: column; border-left: 1px solid var(--line); }.home-carousel { position: relative; min-height: 430px; overflow: hidden; background: var(--panel-deep); aspect-ratio: 16 / 10; }.home-carousel > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }.home-carousel-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px clamp(24px, 4vw, 48px) 54px; color: var(--ink); background: rgba(10, 13, 10, .78); }.home-carousel-copy h2 { font-size: 30px; }.home-carousel-copy p:last-child { max-width: 620px; margin: 13px 0 0; color: #d3d8cf; font-size: 12px; line-height: 1.75; }.home-carousel-dots { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 7px; }.home-carousel-dots button { width: 9px; height: 9px; min-width: 0; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; }.home-carousel-dots button.active { background: var(--acid); border-color: var(--acid); }
@media (max-width: 760px) { .auth-home-grid { grid-template-columns: 1fr; }.auth-access { border-top: 1px solid var(--line); border-left: 0; }.home-carousel, .home-carousel > img { min-height: 300px; }.home-carousel-copy { padding: 20px 20px 46px; }.home-carousel-copy h2 { font-size: 24px; } }
.auth-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(24px, 4vw, 52px); color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-summary p { margin: 0; }
.auth-summary span { flex: 0 0 auto; color: var(--acid); font-size: 10px; letter-spacing: .14em; }
.auth-form { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 30px clamp(24px, 4vw, 52px) 36px; border-top: 1px solid var(--line); background: var(--panel-deep); }
.form-heading { margin-bottom: 12px; }
.form-heading > span { color: var(--acid); font-size: 11px; letter-spacing: .14em; }
.form-heading p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.auth-form label { display: block; }
.auth-form .actions { margin-top: 8px; }
.auth-form .actions button { flex: 1; }
.auth-form .security-note { margin-top: 8px; line-height: 1.7; }
.control-panel { display: grid; gap: 14px; padding: 24px; margin: 24px 0; background: var(--panel); border: 1px solid var(--line); }
.key-add-config { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.saved-keys-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }.saved-keys-content[hidden], .saved-keys-content.is-collapsed { display: none !important; }.saved-keys-content > label:first-child, .saved-keys-content > label:nth-child(2), .saved-keys-content .subkey-limits, .saved-keys-content .key-actions, .saved-keys-content .key-connectivity-result, .saved-keys-content .owned-subkeys, .saved-keys-content .key-management-panel { grid-column: 1 / -1; }.saved-keys-content .subkey-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.key-connectivity-result { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }.owned-subkeys { padding-top: 14px; border-top: 1px solid var(--line); }.owned-subkey-tabs { display: flex; width: fit-content; margin: 0 0 12px; border: 1px solid var(--line); }.owned-subkey-tabs button { min-width: 102px; height: 34px; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }.owned-subkey-tabs button:last-child { border-right: 0; }.owned-subkey-tabs button.active { color: #0b0d0b; background: var(--acid); }
.model-pricing-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(5, minmax(126px, 1fr)) auto; gap: 8px; align-items: end; margin-bottom: 8px; }.model-reasoning-prices { display: grid; grid-template-columns: 1fr; gap: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.model-reasoning-title { grid-column: 1 / -1; color: var(--acid); }.model-reasoning-prices > label { display: grid; gap: 4px; min-width: 0; }.model-reasoning-prices input { min-width: 0; }.model-pricing-row > button { padding: 0 10px; }
@media (max-width: 900px) { .model-pricing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.model-pricing-row > button { grid-column: 2; } }
label > span:first-child { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.input-wrap { display: flex; }
input, select { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; outline: none; }
input:focus, select:focus { border-color: var(--acid); }
.icon-button { margin-left: -1px; border-color: #3b413a; color: var(--muted); }
button { height: 42px; padding: 0 17px; color: var(--ink); background: transparent; border: 1px solid #454b43; cursor: pointer; }
button:hover { border-color: var(--acid); color: var(--acid); }
button:disabled { opacity: .45; cursor: wait; }
button.primary { color: #0b0d0b; background: var(--acid); border-color: var(--acid); font-weight: 700; }
button.primary.running { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.actions { display: flex; align-items: flex-end; gap: 8px; }
.key-actions { flex-wrap: wrap; }
.auto-refresh-status { align-self: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.security-note { grid-column: 1 / -1; margin: 0; color: #666d64; font-size: 11px; }
.error-box { padding: 14px 18px; margin-bottom: 24px; color: #ffc0aa; background: #361910; border-left: 3px solid var(--orange); font-size: 13px; }
.key-management-panel { margin: 10px 0 0; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.key-management-heading { margin-bottom: 0; }.key-management-summary { display: flex; align-items: center; gap: 10px; }.key-management-summary > span { padding-bottom: 3px; color: var(--muted); font-size: 10px; }.panel-toggle { width: 32px; height: 32px; padding: 0; color: var(--acid); border-color: #50633a; font-size: 18px; line-height: 1; }
.key-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.key-management-block { min-width: 0; padding: 16px; border: 1px solid #2a302a; background: var(--panel-deep); }
.key-management-block h3 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.key-management-form { display: grid; gap: 12px; margin: 15px 0; }.key-management-form button { justify-self: end; }
.billing-template-editor textarea { display: block; box-sizing: border-box; width: 100%; min-height: 280px; resize: vertical; padding: 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; font: 11px/1.6 "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; }.billing-template-editor textarea:focus { border-color: var(--acid); outline: none; }
.user-search-field { display: grid; gap: 8px; }.user-search-field > span { margin-bottom: 0; }.user-search-field select { height: auto; min-height: 42px; padding: 4px; }.user-search-field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.subkey-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subkey-secret-result { margin-top: 14px; padding: 13px; color: #0b0d0b; background: var(--acid); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.subkey-secret-result strong { display: block; margin-bottom: 5px; }.subkey-secret-result code { display: block; margin-top: 7px; padding: 8px; color: var(--ink); background: #101310; word-break: break-all; }
.subkey-secret-result button { height: 30px; margin-top: 10px; padding: 0 10px; color: #0b0d0b; border-color: #0b0d0b; }
.subkey-list { margin-top: 16px; }.key-management-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.key-management-list-heading button { height: 32px; padding: 0 11px; font-size: 11px; }
.subkey-list table { font-size: 11px; }.subkey-list th, .subkey-list td { padding: 11px 12px; }.subkey-list td:last-child { white-space: nowrap; }.subkey-list td:last-child button { height: 30px; margin-left: 6px; padding: 0 9px; color: var(--orange); border-color: #6a4437; font-size: 10px; }.subkey-list td:last-child button:first-child { margin-left: 0; }.subkey-list td:last-child .delete-subkey { color: #ffb29b; border-color: #6a4437; }
.proxy-usage-guide { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.guide-summary { max-width: 760px; margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }.guide-sections { display: grid; gap: 16px; margin-top: 18px; }.guide-section { min-width: 0; padding: 18px; border: 1px solid #2a302a; background: var(--panel-deep); }.guide-section h2 { font-size: 22px; }.guide-section p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; white-space: pre; }.guide-code { margin: 14px 0 0; padding: 13px; overflow-x: auto; color: #d6ddd2; border: 1px solid var(--line); background: #0b0d0b; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.guide-code code { display: block; width: max-content; min-width: 100%; }.guide-section blockquote, .document-preview blockquote { margin: 14px 0; padding: 8px 14px; color: var(--muted); border-left: 3px solid var(--acid); background: #141914; }.guide-section hr, .document-preview hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }.guide-section table, .document-preview table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 12px; }.guide-section th, .guide-section td, .document-preview th, .document-preview td { padding: 8px; text-align: left; border: 1px solid var(--line); }.guide-section a, .document-preview a { color: var(--acid); }.math-inline, .math-block { color: var(--acid); }.math-inline { padding: 1px 4px; background: #171d15; }.math-block { margin: 14px 0; padding: 12px; overflow-x: auto; border: 1px solid #46533c; background: #10150e; }.math-block .katex-display { margin: 0; }.document-preview { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.document-preview h3 { margin: 0 0 12px; color: var(--acid); font-size: 13px; }
#documentLibrary .document-search { display: block; }#documentLibrary .document-search input { width: 100%; }#documentLibrary #documentList { display: grid; gap: 7px; max-height: 300px; margin-top: 12px; padding-right: 5px; overflow-y: auto; overscroll-behavior: contain; }#documentLibrary #documentList button { width: 100%; min-height: 38px; height: auto; padding: 8px 11px; overflow-wrap: anywhere; text-align: left; }#documentLibrary #documentList > p { margin: 0; }

.guide-section p { white-space: pre-wrap; }.guide-section img, .document-preview img { display: block; max-width: 100%; height: auto; margin: 14px 0; }
.guide-section, .document-preview, #documentPreviewContent { min-width: 0; }
.payment-methods button { display: flex; width: 100%; justify-content: space-between; padding: 10px 0; border: 0; border-top: 1px solid #282d28; color: var(--ink); font-size: 12px; text-align: left; }.payment-methods button.active { color: var(--acid); }.payment-methods button:disabled { color: var(--muted); cursor: not-allowed; }
#paymentMethods { display: block; padding: 0; border: 0; background: transparent; }
#subscriptionPaymentMethods { display: block; padding: 0; border: 0; background: transparent; }.subscription-payment-methods { margin: 0 0 18px; }
.guide-section > *, .document-preview > *, #documentPreviewContent > * { max-width: 100%; }
.document-table-wrap { max-width: 100%; margin: 14px 0; overflow-x: auto; border: 1px solid var(--line); }
.document-table-wrap table { width: max-content; min-width: 100%; margin: 0; }
.math-inline { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: text-bottom; white-space: nowrap; }
.math-block { max-width: 100%; overscroll-behavior-x: contain; }
.math-error { overflow-wrap: anywhere; white-space: normal; }
#documentContent { display: block; width: 100%; max-width: 100%; min-height: 260px; padding: 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; font: 12px/1.65 "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; resize: vertical; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr repeat(3, .56fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-card, .metric-card { min-height: 180px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.hero-card > strong { display: block; margin: 23px 0 17px; font: 400 clamp(34px, 4vw, 61px)/1 Impact, sans-serif; letter-spacing: .02em; }
.token-card > strong { color: var(--acid); }
.token-breakdown { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 10px; }.token-breakdown b { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; }
.progress-track { height: 4px; background: #333832; }.progress-track i { display: block; width: 0; height: 100%; max-width: 100%; background: var(--orange); transition: width .3s; }
.cost-card p { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-card { display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span, .metric-card small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.metric-card strong { overflow-wrap: anywhere; font: 400 clamp(24px, 3vw, 42px)/1 Impact, sans-serif; }

.period-section, .ranking-section, .history-section { margin-top: 70px; }
.account-section { margin-top: 46px; }.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 16px; }.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); }.account-summary > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }.account-summary > div:last-child { border-right: 0; }.account-summary span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }.account-summary strong { display: block; margin-top: 13px; color: var(--acid); font: 400 30px/1 Impact, sans-serif; overflow-wrap: anywhere; }.top-up-form, .account-orders { padding: 16px; border: 1px solid var(--line); background: var(--panel); }.top-up-form { display: grid; gap: 12px; }.top-up-form h3, .account-orders h3 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }.top-up-form p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.account-orders { margin-top: 16px; }.account-orders .key-management-list-heading { margin-bottom: 12px; }
.billing-page { max-width: 1240px; }.billing-user { color: var(--muted); font-size: 12px; }.billing-tabs { display: flex; width: fit-content; margin-top: 34px; border: 1px solid var(--line); }.billing-tabs button { height: 42px; min-width: 112px; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; }.billing-tabs button:last-child { border-right: 0; }.billing-tabs button.active { color: #0b0d0b; background: var(--acid); }.billing-view { margin-top: 34px; }.billing-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }.billing-heading h2 { margin: 0; font: 400 29px/1 Impact, sans-serif; }.billing-heading > span { color: var(--muted); font-size: 11px; }.recharge-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 16px; }.recharge-form-panel, .payment-panel { padding: 22px; border: 1px solid var(--line); background: var(--panel); }.balance-strip { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.balance-strip span, .quick-amounts legend, .custom-amount > span { color: var(--muted); font-size: 10px; text-transform: uppercase; }.balance-strip strong { color: var(--acid); font: 400 42px/1 Impact, sans-serif; }.quick-amounts { margin: 20px 0 0; padding: 0; border: 0; }.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }.amount-grid button { height: 38px; padding: 0 8px; border-color: #41483f; color: var(--ink); font-size: 11px; }.amount-grid button.active { color: #0b0d0b; border-color: var(--acid); background: var(--acid); }.custom-amount { display: grid; gap: 8px; margin-top: 20px; }.custom-amount > div { display: flex; align-items: center; height: 44px; border: 1px solid #41483f; background: #101310; }.custom-amount b { padding: 0 13px; color: var(--muted); font-size: 11px; font-weight: 400; }.custom-amount input { min-width: 0; height: 100%; border: 0; background: transparent; }.exchange-note, .payment-panel > p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.payment-panel h3 { margin: 0; color: var(--acid); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }.payment-panel dl { display: grid; gap: 11px; margin: 20px 0; }.payment-panel dl div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }.payment-panel dd { margin: 0; color: var(--ink); }.payment-panel dl div:last-child dd { color: var(--acid); font-size: 16px; }.payment-panel .primary { width: 100%; }.payment-methods { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.payment-methods h4 { margin: 0 0 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.payment-methods div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #282d28; color: var(--ink); font-size: 12px; }.payment-methods b { color: var(--muted); font-weight: 400; }.billing-orders { margin-top: 16px; }.subscription-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.subscription-card { display: flex; flex-direction: column; min-width: 0; padding: 19px; border: 1px solid var(--line); background: var(--panel); }.subscription-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.subscription-card h3 { margin: 0; color: var(--acid); font: 400 24px/1 Impact, sans-serif; }.subscription-card header span { color: var(--muted); font-size: 10px; }.subscription-card > p { min-height: 58px; margin: 14px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.plan-price { display: flex; align-items: baseline; gap: 7px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.plan-price strong { color: var(--ink); font: 400 31px/1 Impact, sans-serif; }.plan-price span { color: var(--muted); font-size: 11px; }.plan-limits { display: grid; gap: 7px; margin: 15px 0; color: var(--muted); font-size: 10px; }.plan-limits span { display: flex; justify-content: space-between; gap: 10px; }.plan-limits b { color: var(--ink); font-weight: 400; }.plan-limits small { color: var(--orange); }.subscription-card ul { min-height: 92px; margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }.subscription-card button { width: 100%; margin-top: auto; color: var(--acid); border-color: #50633a; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.period-tabs { display: flex; border: 1px solid var(--line); }.period-tabs button { height: 36px; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }.period-tabs button:last-child { border-right: 0; }.period-tabs button.active { color: #0b0d0b; background: var(--acid); }
.relative-settings { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px; background: #121512; color: var(--muted); font-size: 11px; }.relative-settings label { display: flex; align-items: center; gap: 10px; color: var(--ink); }.relative-settings input { width: 68px; height: 34px; }
.range-strip { display: flex; justify-content: space-between; padding: 18px 20px; background: var(--acid); color: #0b0d0b; }.range-strip div { display: flex; flex-direction: column; gap: 5px; }.range-strip div:last-child { text-align: right; }.range-strip span { font-size: 10px; text-transform: uppercase; }.range-strip strong { font-size: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid var(--line); }.summary-grid div { padding: 21px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.summary-grid span { display: block; margin-bottom: 16px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.summary-grid strong { font: 400 clamp(20px, 2.2vw, 32px)/1 Impact, sans-serif; }.summary-grid .accent-stat strong { color: var(--orange); }

.history-section .section-heading > span { color: var(--muted); font-size: 11px; }
.ranking-section .section-heading > span { color: var(--muted); font-size: 11px; }
.ranking-actions { display: flex; align-items: center; gap: 12px; }
.optimization-button { height: 34px; padding: 0 13px; color: var(--acid); border-color: var(--acid); font-size: 11px; }
.optimization-button[aria-busy="true"] { color: #0b0d0b; background: var(--orange); border-color: var(--orange); cursor: wait; }
.ranking-status { min-height: 20px; margin: -10px 0 16px; color: var(--muted); font-size: 11px; }
.optimization-panel { margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.optimization-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.optimization-heading .eyebrow { margin-bottom: 5px; }
.optimization-heading h3 { margin: 0; font-size: 20px; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.preview-badge { padding: 4px 7px; color: var(--acid); border: 1px solid #50633a; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.optimization-status { min-height: 18px; margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.optimization-results { display: grid; gap: 10px; margin-top: 14px; }
.optimization-result { padding: 13px 14px; background: var(--panel-deep); border: 1px solid #2a302a; }
.optimization-result h4 { margin: 0 0 7px; color: var(--acid); font-size: 11px; font-weight: 400; letter-spacing: .06em; }
.optimization-result p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.optimization-result ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.optimization-result .empty { display: block; text-align: left !important; }
.optimization-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.configuration-optimization { margin-top: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.configuration-note { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.configuration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.configuration-results { display: grid; gap: 10px; margin-top: 14px; }
.configuration-change { padding: 13px 14px; border: 1px solid #2a302a; background: var(--panel-deep); }
.configuration-change h5 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.configuration-change p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.configuration-change pre { max-height: 280px; margin: 11px 0 0; padding: 11px; overflow: auto; border: 1px solid var(--line); background: #0b0d0b; color: #d6ddd2; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.configuration-change .change-summary { color: var(--ink); }
.semantic-optimization { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-plan { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.budget-plan-heading .eyebrow { margin-bottom: 5px; }
.budget-plan-heading h4 { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.budget-plan-heading > span { padding-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.budget-plan-form { display: grid; gap: 14px; margin-top: 16px; }
.budget-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-json-field textarea { display: block; width: 100%; min-height: 190px; resize: vertical; padding: 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; outline: none; font: 11px/1.65 "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; }
.task-json-field textarea:focus { border-color: var(--acid); }
.plan-help { margin: -5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.plan-actions { display: flex; justify-content: flex-end; }
.plan-actions button { min-width: 116px; }
.plan-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; scroll-margin-top: 18px; }
.plan-results:focus { outline: 2px solid var(--acid); outline-offset: 3px; }
.plan-result { padding: 13px 14px; background: var(--panel-deep); border: 1px solid #2a302a; }
.plan-result.plan-summary { grid-column: 1 / -1; border-left: 3px solid var(--acid); }
.plan-result.plan-problem { grid-column: 1 / -1; border-left: 3px solid var(--orange); }
.plan-result h5 { margin: 0 0 9px; color: var(--acid); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.plan-result p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.plan-result ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.plan-result.execution-list { grid-column: 1 / -1; }
.execution-list ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--ink); }
.execution-list li { padding-left: 4px; }
.execution-list strong { color: var(--acid); font-weight: 400; }
.execution-list .assignment-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.execution-list .assignment-action { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; line-height: 1.65; }
.plan-result.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: #2a302a; }
.plan-result.metrics h5 { grid-column: 1 / -1; margin: 0; padding: 12px 13px 2px; background: var(--panel-deep); }
.plan-result.metrics div { min-width: 0; padding: 11px 12px; background: var(--panel-deep); }
.plan-result.metrics span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.plan-result.metrics strong { display: block; margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.plan-result.metrics strong.accent { color: var(--acid); }
.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ranking-panel { border: 1px solid var(--line); background: var(--panel); }
.ranking-panel h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; }
.ranking-panel .table-wrap { border: 0; }
.ranking-panel table { font-size: 11px; }
.ranking-panel th, .ranking-panel td { padding: 12px 14px; }
.ranking-unified { margin-bottom: 16px; }.ranking-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }.ranking-panel-heading h3 { border-bottom: 0; }.ranking-metric-tabs { margin: 0 14px; flex: 0 0 auto; }.ranking-metric-tabs button { min-width: 88px; }
.table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 11px; }.table-pagination button { height: 34px; padding: 0 12px; font-size: 11px; }
.admin-menu { position: relative; z-index: 4; }.admin-menu > summary { display: flex; align-items: center; justify-content: center; min-width: 58px; height: 42px; padding: 0 12px; list-style: none; color: var(--ink); border: 1px solid #454b43; cursor: pointer; font-size: 12px; }.admin-menu > summary::-webkit-details-marker { display: none; }.admin-menu > summary::after { content: "▾"; margin-left: 6px; color: var(--muted); font-size: 10px; }.admin-menu[open] > summary { color: var(--acid); border-color: var(--acid); }.admin-menu-items { position: absolute; top: calc(100% + 7px); right: 0; display: grid; min-width: 150px; padding: 6px; border: 1px solid var(--line); background: var(--panel-deep); box-shadow: 0 14px 32px rgba(0, 0, 0, .35); }.admin-menu-items .guide-link { display: block; min-width: 0; padding: 10px 12px; border: 0; color: var(--ink); text-align: left; white-space: nowrap; }.admin-menu-items .guide-link:hover { color: var(--acid); background: #171d15; }
.ranking-period-tabs { margin: 16px 0; width: fit-content; }.ranking-trend { margin: 0 0 16px; border: 1px solid var(--line); background: var(--panel); }.ranking-trend > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }.ranking-trend h3 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; }.ranking-trend span { color: var(--muted); font-size: 10px; }.ranking-trend svg { display: block; width: 100%; min-height: 190px; overflow: visible; cursor: crosshair; }.ranking-trend .trend-grid { stroke: var(--line); stroke-width: 1; }.ranking-trend .trend-cost { fill: none; stroke: var(--acid); stroke-width: 3; }.ranking-trend .trend-tokens { fill: none; stroke: #7ab6ff; stroke-width: 3; }.ranking-trend .trend-label { fill: var(--muted); font-size: 10px; }.ranking-trend .trend-legend-cost { fill: var(--acid); }.ranking-trend .trend-legend-tokens { fill: #7ab6ff; }.ranking-trend-detail { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 12px; }
.model-management-page { max-width: 1380px; }.model-catalog-section { margin-top: 52px; }.model-management-page .section-heading h2 { margin: 0; font: 400 28px/1 Impact, sans-serif; }.model-management-page .section-heading > span { color: var(--muted); font-size: 11px; }.model-upstream-section { margin-top: 38px; }.model-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }.model-dialog::backdrop { background: rgba(0, 0, 0, .72); }.model-form { display: grid; gap: 17px; padding: 22px; }.model-form header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.model-form header h2 { margin: 0; font: 400 25px/1 Impact, sans-serif; }.model-form > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.model-form fieldset, #newUpstreamFields { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); }.model-form #newUpstreamFields[hidden] { display: none; }.model-form legend { padding: 0 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.checkbox-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }.checkbox-label input { width: auto; height: auto; }.model-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.model-price-grid label:last-child { grid-column: span 2; }.upstream-model-results, .upstream-selected-models { display: flex; flex-wrap: wrap; gap: 7px; }.upstream-model-results { min-height: 34px; max-height: 124px; overflow-y: auto; }.upstream-model-results button, .upstream-selected-models button { min-height: 30px; padding: 4px 9px; font-size: 11px; }.upstream-selected-models button { color: var(--acid); border-color: #50633a; }.icon-button { width: 34px; height: 34px; padding: 0; font-size: 22px; line-height: 1; }
.model-authorization-section { margin-top: 38px; }.model-authorization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.model-inline-form { display: grid; gap: 13px; padding: 16px; }.model-inline-form > p { min-height: 16px; margin: 0; color: var(--muted); font-size: 11px; }.model-grant-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.model-issued-panel { margin-top: 16px; }.model-issued-panel .table-wrap { border: 0; }
.carousel-settings-list { display: grid; gap: 12px; }.carousel-settings-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); background: var(--panel); }.carousel-settings-item img { width: 190px; height: 118px; object-fit: cover; }.carousel-settings-item h3 { margin: 0; color: var(--acid); font-size: 15px; font-weight: 400; }.carousel-settings-item p { margin: 9px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }.carousel-settings-item .actions button { font-size: 11px; } textarea { width: 100%; min-height: 100px; padding: 11px 12px; resize: vertical; color: var(--ink); border: 1px solid #41483f; background: #101310; }
@media (max-width: 760px) { .model-price-grid, .model-authorization-grid, .model-grant-limits { grid-template-columns: 1fr; }.model-price-grid label:last-child { grid-column: auto; }.model-dialog { width: calc(100% - 20px); }.model-form { padding: 16px; } }
.ranking-subject { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.ranking-subject strong { color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
.ranking-subject small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.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; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 180px; padding: 20px 16px 24px; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(#161916 1px, transparent 1px); background-size: 100% 25%; }
.bar-wrap { flex: 1; height: 100%; min-width: 8px; display: flex; align-items: flex-end; position: relative; }.bar { width: 100%; min-height: 2px; background: var(--acid); opacity: .78; transition: height .35s; }.bar-wrap:hover .bar { opacity: 1; background: var(--orange); }.bar-wrap span { display: none; position: absolute; z-index: 2; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 5px 7px; white-space: nowrap; background: var(--ink); color: var(--bg); font-size: 9px; }.bar-wrap:hover span { display: block; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid #242824; }th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }th:first-child, td:first-child { text-align: left; }tbody tr:hover { background: #151915; }tbody tr:last-child td { border-bottom: 0; }.empty { width: 100%; align-self: center; color: var(--muted); text-align: center !important; }
footer { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.site-footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 22px; width: min(1380px, calc(100% - 48px)); margin: 48px auto 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; letter-spacing: .04em; }.site-footer-copyright { flex: 0 0 auto; }.site-footer-records { display: flex; flex: 1 1 680px; justify-content: flex-end; flex-wrap: wrap; gap: 0 10px; }.site-footer a { color: var(--muted); text-decoration: none; }.site-footer a:hover { color: var(--acid); text-decoration: underline; }.site-footer-separator { color: #555d54; }.footer-record-settings { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); }.footer-record-settings legend { padding: 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.footer-record-settings small { color: var(--muted); font-size: 10px; line-height: 1.6; }.footer-record-items { display: grid; gap: 10px; }.footer-record-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }.footer-record-item button { height: 42px; padding: 0 10px; color: #ffb29b; border-color: #6a4437; font-size: 10px; }

@media (max-width: 1050px) { .hero-grid { grid-template-columns: repeat(3, 1fr); }.hero-card { grid-column: span 3; }.summary-grid { grid-template-columns: repeat(3, 1fr); }.subscription-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { main { width: min(100% - 24px, 1380px); padding-top: 30px; }.site-footer { width: min(100% - 24px, 1380px); margin-top: 36px; }.site-footer-records { justify-content: flex-start; flex-basis: 100%; }.footer-record-item { grid-template-columns: 1fr; }.footer-record-item button { justify-self: start; }.auth-layout { margin-top: 18px; }.auth-header { align-items: flex-start; flex-wrap: wrap; padding: 20px; }.auth-header h1 { font-size: 30px; }.auth-toggle { min-width: 72px; }.header-actions, .masthead .actions, .guide-header-actions { flex-wrap: wrap; }.auth-summary { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px 20px; }.auth-form { margin: 0; padding: 28px 20px; }.masthead { align-items: flex-start; flex-wrap: wrap; gap: 20px; }.live-state { margin-top: 4px; }.control-panel { grid-template-columns: 1fr; padding: 16px; }.actions { align-items: center; }.actions button { flex: 1; }.key-actions .auto-refresh-status { flex-basis: 100%; }.hero-grid { grid-template-columns: 1fr 1fr; }.hero-card { grid-column: span 2; }.metric-card { min-height: 130px; }.metric-card:last-child { grid-column: span 2; }.section-heading { display: block; }.ranking-actions { margin-top: 14px; justify-content: space-between; }.period-tabs { margin-top: 18px; overflow-x: auto; }.period-tabs button { flex: 1; padding: 0 10px; white-space: nowrap; }.summary-grid { grid-template-columns: 1fr 1fr; }.relative-settings { align-items: flex-start; flex-direction: column; }.ranking-grid, .account-grid, .recharge-layout, .subscription-grid { grid-template-columns: 1fr; }.budget-inputs, .plan-results { grid-template-columns: 1fr; }.budget-plan-heading { align-items: flex-start; flex-direction: column; gap: 6px; }.budget-plan-heading > span { padding-top: 0; }.plan-actions button, .configuration-actions button { width: 100%; }.configuration-actions { justify-content: stretch; }.period-section, .ranking-section, .history-section, .account-section { margin-top: 48px; }.history-section .section-heading > span, .ranking-section .section-heading > span { display: block; margin-top: 8px; }.proxy-usage-guide { padding: 16px; }.guide-section { padding: 14px; }.guide-section h2 { font-size: 20px; }.guide-header-actions { width: 100%; }.guide-header-actions .guide-link { flex: 1; justify-content: center; }.document-route-actions { flex: 1; }.document-route-actions button { flex: 1; }.math-block { margin: 12px 0; padding: 10px; }.billing-heading { display: block; }.amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.billing-tabs { width: 100%; }.billing-tabs button { flex: 1; }.balance-strip { align-items: flex-start; flex-direction: column; } }
