@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #e7e7e3; --surface: #f7f6f2; --ink: #20201f; --muted: #65655f;
  --line: rgba(32,32,31,.2); --rule: rgba(32,32,31,.72); --accent: #c83d34;
  --accent-dark: #9f3029; --danger: #a9251e; --warn: #7c5600;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 "Geist", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1000px, 100%); margin: 0 auto; padding: 0 24px 64px; }

/* Signal Studio product shell */
.product-shell { width: min(1480px, calc(100% - 64px)); min-height: 100dvh; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.product-side { border-right: 2px solid var(--ink); padding: 28px 20px 28px 0; display: flex; min-width: 0; flex-direction: column; }
.side-brand { color: var(--ink); font-weight: 730; font-size: 18px; letter-spacing: -.04em; }
.side-brand span { color: var(--accent); }
.side-kicker { margin-top: 38px; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.side-nav { margin-top: 15px; display: grid; gap: 7px; }
.side-nav a { color: var(--muted); padding: 8px 0; font-weight: 540; }
.side-nav a:hover { color: var(--ink); }
.side-nav a.active { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.side-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; color: var(--muted); font: 11px var(--mono); overflow-wrap: anywhere; }
.side-logout { appearance: none; width: max-content; border: 0; padding: 0; background: transparent; color: var(--ink); font: 11px var(--mono); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.product-workspace { min-width: 0; padding: 34px 0 56px 38px; overflow: hidden; }

h1 { margin: 0 0 30px; font-size: 42px; line-height: .95; letter-spacing: -.055em; font-weight: 650; }
h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.05; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 15px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.spacer-v { height: 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Editorial metric blocks */
.cards { display: grid; grid-template-columns: 1.35fr .75fr 1fr; gap: 16px; margin-bottom: 30px; }
.card { min-width: 0; background: var(--surface); border: 0; border-top: 4px solid var(--ink); padding: 23px; margin-bottom: 22px; overflow-x: auto; }
.cards .card { min-height: 150px; margin: 0; }
.cards .card:first-child { color: white; background: var(--accent); border-top-color: var(--accent); }
.cards .card:first-child .stat-label { color: rgba(255,255,255,.74); }
.stat-label { color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.stat-value { margin-top: 16px; font: 610 34px var(--mono); letter-spacing: -.055em; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 8px; text-align: left; border-bottom: 2px solid var(--ink); color: var(--muted); font: 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }

/* Forms and controls */
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
fieldset { margin: 14px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--rule); border-radius: 0; padding: 11px 12px; background: var(--surface); color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 0; box-shadow: inset 3px 0 0 var(--accent); }
.btn { border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: #fff; padding: 10px 17px; cursor: pointer; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn.secondary:hover { color: var(--bg); background: var(--ink); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.danger:hover { color: #fff; background: var(--danger); }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: 10.5px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.error-text { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.flash { margin-bottom: 18px; border: 1px solid var(--accent); border-left-width: 5px; padding: 14px 16px; background: rgba(200,61,52,.07); }

/* Data and utility */
.grid-2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.grid-2 > * { min-width: 0; }
.grid-2.topup-grid { grid-template-columns: 1fr; }
.grid-2.topup-grid.active { grid-template-columns: minmax(0, 1fr); }
.topup-grid.active #invoice-card { width: 100%; }
.badge { display: inline-block; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.badge.ok { color: #78231e; border-color: #78231e; }
.badge.err { color: var(--danger); border-color: var(--danger); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
pre, code { font-family: var(--mono); overflow-wrap: anywhere; }
pre { overflow-x: auto; border: 1px solid var(--line); padding: 14px; background: var(--surface); font-size: 12px; line-height: 1.65; }
.secretbox { border: 1px solid var(--accent); border-left-width: 5px; background: var(--surface); padding: 13px 15px; font: 12px/1.6 var(--mono); word-break: break-all; }
.denoms { display: flex; flex-wrap: wrap; gap: 8px; }
.denom[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.providers-stack { display: grid; gap: 24px; }
.provider-card { overflow-x: auto; }
.provider-table, .provider-keys-table { table-layout: auto; min-width: 760px; }
.provider-table th:first-child, .provider-table td:first-child { width: 16%; }
.provider-table th:nth-child(2), .provider-table td:nth-child(2) { width: 45%; }
.provider-table th:nth-child(3), .provider-table td:nth-child(3) { width: 12%; }
.provider-table th:nth-child(4), .provider-table td:nth-child(4) { width: 12%; }
.provider-table td:first-child, .provider-keys-table td:first-child { overflow-wrap: normal; word-break: normal; }
.provider-table td:nth-child(2) code { word-break: break-all; }
.provider-table th:last-child, .provider-table td:last-child,
.provider-keys-table th:last-child, .provider-keys-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.provider-table .badge, .provider-keys-table .badge { white-space: nowrap; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 0; border-top: 5px solid var(--accent); border-radius: 0; padding: 26px; color: var(--ink); background: var(--surface); box-shadow: 0 18px 60px rgba(32,32,31,.28); }
dialog::backdrop { background: rgba(32,32,31,.58); }

/* Usage monitoring */
.usage-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.usage-heading h1 { margin-bottom: 8px; }
.usage-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.range-switch, .usage-tabs { display: flex; padding: 4px; background: rgba(32,32,31,.08); }
.range-switch button, .usage-tabs button { appearance: none; border: 0; padding: 9px 15px; color: var(--muted); background: transparent; cursor: pointer; font: 11px var(--mono); letter-spacing: .04em; }
.range-switch button.active, .usage-tabs button.active { color: #fff; background: var(--ink); }
.usage-tabs { width: max-content; margin: 18px 0 30px; }
.analytics-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.analytics-cards article { min-height: 132px; padding: 20px; border-top: 4px solid var(--ink); background: var(--surface); display: flex; flex-direction: column; }
.analytics-cards article:nth-child(2) strong { color: var(--accent); }
.analytics-cards article:nth-child(3) strong { color: #2456b8; }
.analytics-cards article:nth-child(4) strong { color: #147542; }
.analytics-cards article.cost { color: #fff; border-color: var(--accent); background: var(--accent); }
.analytics-cards span, .panel-heading span { color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.analytics-cards .cost span, .analytics-cards .cost small { color: rgba(255,255,255,.72); }
.analytics-cards strong { margin-top: auto; font: 620 clamp(22px, 2.2vw, 34px) var(--mono); letter-spacing: -.05em; }
.analytics-cards small { margin-top: 4px; color: var(--muted); font: 10px var(--mono); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .7fr); gap: 18px; }
.topology-panel, .recent-panel { min-width: 0; min-height: 520px; padding: 24px; border: 1px solid var(--line); background: rgba(247,246,242,.58); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-heading h2 { margin-top: 6px; }
.panel-heading i { color: #147542; font: 10px var(--mono); font-style: normal; text-transform: uppercase; }
.panel-heading i::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: currentColor; }
.panel-heading button { appearance: none; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; background: transparent; cursor: pointer; font: 10px var(--mono); }
.topology { min-height: 405px; display: grid; grid-template-columns: minmax(125px,1fr) 60px 150px 60px minmax(125px,1fr); align-items: center; gap: 7px; }
.topology-side { display: grid; gap: 12px; }
.topology-node, .router-node { position: relative; padding: 13px 15px; border: 1px solid var(--line); background: var(--surface); }
.topology-node span, .router-node span { display: block; margin-bottom: 4px; color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.topology-node b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.topology-node small, .router-node small { display: block; margin-top: 4px; color: var(--muted); font: 9px var(--mono); }
.router-node { border: 2px solid var(--accent); padding: 24px 17px; color: #fff; background: var(--accent); text-align: center; }
.router-node span, .router-node small { color: rgba(255,255,255,.7); }
.router-node b { font: 620 18px/1 var(--mono); }
.topology-lines { display: grid; gap: 32px; }
.topology-lines i { height: 1px; background: var(--line); transform: rotate(8deg); transform-origin: right; }
.topology-lines i:nth-child(2) { background: var(--accent); transform: rotate(0); }
.topology-lines i:nth-child(3) { transform: rotate(-8deg); }
.topology-lines.out i { transform: rotate(-8deg); transform-origin: left; }
.topology-lines.out i:nth-child(2) { transform: rotate(0); }
.topology-lines.out i:nth-child(3) { transform: rotate(8deg); }
.recent-list { margin-top: 22px; border-top: 2px solid var(--ink); max-height: 420px; overflow-y: auto; }
.recent-row { display: grid; grid-template-columns: 7px minmax(100px,1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.request-health { width: 7px; height: 7px; background: var(--muted); }
.request-health.ok { background: #1ba65a; }
.request-health.err { background: var(--accent); }
.recent-row b, .recent-row small { display: block; }
.recent-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--mono); }
.recent-row small { margin-top: 3px; color: var(--muted); font: 9px var(--mono); }
.recent-row code { white-space: nowrap; font-size: 10px; }
.recent-row code em { color: var(--accent); font-style: normal; }
.recent-row code i { color: #147542; font-style: normal; }
.recent-row strong { white-space: nowrap; font: 10px var(--mono); }
.analytics-empty { align-self: center; justify-self: center; display: grid; gap: 5px; max-width: 280px; margin: auto; color: var(--muted); text-align: center; }
.analytics-empty strong { color: var(--ink); }
.topology.is-empty { grid-template-columns: minmax(140px,1fr) 70px 150px 70px minmax(140px,1fr); grid-template-rows: 1fr auto; align-content: center; padding: 52px 24px 30px; }
.topology-empty-node { padding: 16px; border: 1px dashed var(--rule); background: rgba(247,246,242,.35); }
.topology-empty-node span { display: block; margin-bottom: 7px; color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.topology-empty-node b { font: 600 13px var(--mono); }
.topology-empty-node small { display: block; margin-top: 6px; color: var(--muted); font: 9px var(--mono); }
.empty-router { box-shadow: 7px 7px 0 rgba(200,61,52,.15); }
.empty-connector { display: flex; align-items: center; }
.empty-connector i { display: block; width: 100%; border-top: 1px dashed var(--rule); }
.topology-empty-copy { grid-column: 1 / -1; max-width: 470px; margin: 52px auto 0; text-align: center; }
.topology-empty-copy strong, .topology-empty-copy span { display: block; }
.topology-empty-copy strong { font-size: 18px; }
.topology-empty-copy span { margin-top: 6px; color: var(--muted); }
.topology-empty-copy a { display: inline-block; margin-top: 18px; border-bottom: 1px solid var(--accent); color: var(--accent-dark); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.usage-details-card { margin-top: 0; }

/* Admin console */
.console-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.console-heading > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.console-icon { grid-row: 1 / 3; display: grid; width: 30px; height: 25px; place-items: center; color: #fff; background: var(--accent); font: 700 16px var(--mono); }
.console-heading h1 { margin: 0; }
.console-heading p { grid-column: 2; margin: 7px 0 0; color: var(--muted); }
.console-controls { display: flex; align-items: center; gap: 8px; }
.console-state { margin-right: 6px; color: #147542; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.console-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: currentColor; }
.console-shell { padding: 22px; background: #242422; color: #eee; border-top: 5px solid var(--accent); }
.console-toolbar { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 16px; }
.console-filters { display: flex; }
.console-filters button { border: 1px solid #474744; border-right: 0; padding: 8px 12px; color: #aaa; background: transparent; cursor: pointer; font: 10px var(--mono); text-transform: uppercase; }
.console-filters button:last-child { border-right: 1px solid #474744; }
.console-filters button.active { color: #fff; background: #44443f; }
.console-toolbar label { margin: 0; }
.console-toolbar input[type="search"] { border-color: #555550; color: #eee; background: #181817; }
.console-follow { display: flex; align-items: center; gap: 7px; color: #aaa; font: 10px var(--mono); text-transform: uppercase; }
.console-follow input { width: auto; }
.console-output { height: min(62dvh, 650px); min-height: 420px; overflow: auto; border: 1px solid #393936; padding: 15px 18px; color: #d8ded8; background: #080908; font: 12px/1.65 var(--mono); scrollbar-color: #555 #111; }
.console-line { display: grid; grid-template-columns: 78px 52px minmax(160px, auto) minmax(0, 1fr); gap: 10px; align-items: start; }
.console-line time { color: #777f78; }
.console-line b { font-size: 10px; font-weight: 600; }
.console-line span { color: #f1f1ed; }
.console-line code { color: #75e59d; white-space: pre-wrap; word-break: break-word; }
.console-line.level-error b, .console-line.level-error code { color: #ff6c62; }
.console-line.level-warn b, .console-line.level-warn code { color: #edbf43; }
.console-line.level-info b { color: #62a8ff; }
.console-empty { display: grid; height: 100%; place-items: center; color: #777; }
.console-foot { display: flex; justify-content: space-between; margin-top: 12px; color: #8d8d87; font: 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* Models and playground */
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.page-heading-row h1 { margin-bottom: 8px; }
.page-heading-row p { margin: 0; }
.model-catalog { display: grid; gap: 12px; }
.model-card { display: grid; grid-template-columns: 76px minmax(180px,1fr) minmax(250px,.8fr) auto; align-items: center; gap: 22px; padding: 20px; border-top: 3px solid var(--ink); background: var(--surface); }
.model-symbol { display: grid; width: 62px; height: 62px; place-items: center; color: #fff; background: var(--accent); font: 620 17px var(--mono); }
.model-main > span, .model-price span, .setting-kicker { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.model-main h2 { margin: 8px 0 5px; font: 620 22px var(--mono); }
.model-main p { margin: 0; color: var(--muted); }
.model-price { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 12px; }
.model-price strong { font: 550 13px var(--mono); text-align: right; }
.model-action { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.model-empty { min-height: 300px; display: grid; place-content: center; gap: 6px; border-top: 4px solid var(--ink); background: var(--surface); text-align: center; }
.model-empty span { color: var(--muted); }
.playground-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); min-height: 680px; border: 1px solid var(--rule); background: var(--surface); }
.playground-settings { padding: 24px; border-right: 1px solid var(--rule); background: var(--bg); }
.setting-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.play-stream { display: flex; align-items: center; gap: 8px; }
.play-stream input { width: auto; }
.playground-estimate { margin: 24px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.playground-estimate span, .playground-estimate strong { display: block; }
.playground-estimate span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.playground-estimate strong { margin-top: 7px; font: 600 21px var(--mono); }
.playground-chat { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.playground-status { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.play-messages { height: 520px; overflow-y: auto; padding: 26px; }
.play-empty { height: 100%; display: grid; place-content: center; gap: 6px; color: var(--muted); text-align: center; }
.play-empty strong { color: var(--ink); font-size: 18px; }
.play-message { max-width: 78%; margin-bottom: 20px; }
.play-message > span { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.play-message > div { margin-top: 6px; padding: 14px 16px; border-left: 4px solid var(--ink); background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.play-message.user { margin-left: auto; }
.play-message.user > span { display: block; text-align: right; }
.play-message.user > div { color: #fff; border-left: 0; border-right: 4px solid var(--accent-dark); background: var(--accent); }
.play-message.pending > div::after { content: "_"; animation: play-blink .8s steps(1) infinite; }
.play-composer { padding: 18px; border-top: 1px solid var(--rule); background: var(--bg); }
.play-composer textarea { min-height: 76px; background: var(--surface); }
.play-composer > div { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.play-composer .error-text { display: block; margin: 7px 0 0; }
@keyframes play-blink { 50% { opacity: 0; } }
.qr-wrap { padding: 10px; text-align: center; }
.qr-wrap img { width: 240px; max-width: 100%; height: auto; aspect-ratio: 1; padding: 10px; border: 1px solid var(--line); background: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .side-nav a { transition: color .15s ease, background-color .15s ease, transform .15s ease; }
  .btn:active { transform: translateY(1px); }
}
@media (max-width: 820px) {
  .product-shell { width: 100%; grid-template-columns: 1fr; }
  .product-side { border-right: 0; border-bottom: 2px solid var(--ink); padding: 16px; }
  .side-kicker, .side-footer { display: none; }
  .side-footer { display: flex; margin-top: 14px; padding-top: 12px; justify-content: space-between; align-items: center; }
  .side-footer #shell-account { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-nav { margin-top: 14px; grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .product-workspace { padding: 26px 16px 48px; }
  .cards, .grid-2, .grid-2.topup-grid.active { grid-template-columns: 1fr; }
  .card { scrollbar-width: thin; }
  .btn.small { min-height: 42px; }
  .usage-heading { align-items: stretch; flex-direction: column; }
  .range-switch { width: 100%; overflow-x: auto; }
  .range-switch button { flex: 1 0 auto; }
  .analytics-cards { grid-template-columns: 1fr 1fr; }
  .analytics-cards article.cost { grid-column: span 2; }
  .analytics-grid { grid-template-columns: 1fr; }
  .topology-panel, .recent-panel { min-height: auto; }
  .topology { min-height: 400px; grid-template-columns: 1fr 34px 110px 34px 1fr; }
  .topology-lines { gap: 38px; }
  .topology-node { padding: 10px; }
  .router-node { padding: 20px 8px; }
  .router-node b { font-size: 14px; }
  .console-heading { align-items: stretch; flex-direction: column; }
  .console-controls { flex-wrap: wrap; }
  .console-toolbar { grid-template-columns: 1fr; }
  .console-filters { overflow-x: auto; }
  .console-output { min-height: 480px; padding: 12px; }
  .console-line { grid-template-columns: 66px 45px minmax(0, 1fr); margin-bottom: 8px; }
  .console-line code { grid-column: 1 / -1; padding-left: 0; }
  .page-heading-row { align-items: stretch; flex-direction: column; }
  .model-card { grid-template-columns: 62px minmax(0,1fr); }
  .model-price { grid-column: 1 / -1; }
  .model-action { grid-column: 1 / -1; align-items: center; flex-direction: row; justify-content: space-between; }
  .playground-layout { grid-template-columns: 1fr; }
  .playground-settings { border-right: 0; border-bottom: 1px solid var(--rule); }
  .play-messages { height: 480px; padding: 16px; }
  .play-message { max-width: 92%; }
}
@media (max-width: 480px) {
  .analytics-cards { grid-template-columns: 1fr; }
  .analytics-cards article.cost { grid-column: auto; }
  .topology { display: flex; min-height: auto; flex-direction: column; gap: 12px; margin-top: 24px; }
  .topology-side { width: 100%; }
  .topology-lines { width: 1px; height: 36px; background: var(--line); }
  .topology-lines i { display: none; }
  .router-node { width: 150px; }
  .topology.is-empty { display: flex; padding: 28px 4px 12px; }
  .topology.is-empty .topology-empty-node { width: 100%; text-align: center; }
  .topology.is-empty .empty-connector { width: 1px; height: 28px; border-left: 1px dashed var(--rule); }
  .topology.is-empty .empty-connector i { display: none; }
  .topology-empty-copy { margin-top: 24px; }
}
