/* Night glass — one ribbed environment, one smoked workspace, amber for usage.
   Keep filters OFF content ancestors: lists, modals and comboboxes use position:fixed. */
.console-shell {
  --console-bg:#050606; --console-sidebar:#101213; --console-surface:#161819;
  --console-raised:#191b1c; --console-border:#363939; --console-muted:#b3bcba;
  --console-accent:#285d55; --console-accent-hover:#356f65; --console-accent-edge:#86c8b6;
  --console-accent-text:#afe1ce; --console-accent-surface:#25443d; --console-focus:#ffe0a9;
  --console-row-hover:#243b38; --night-ink:#eff6f2; --night-amber:#ffd39a; --night-amber-ink:#322519;
  --glass-base:#10191a; --glass-tint:#0d1619a3; --glass-light:linear-gradient(127deg,#c0e8dc15,transparent 44%);
  --section-rule:1px solid #c9dfd437; --action-selected:#3a3227;
  --night-rim:inset 0 1px 0 #d3f7e614,inset 1px 0 0 #d3f7e60a;
  color-scheme:dark; isolation:isolate;
}
.console-shell.bg-ink {
  background-color:var(--console-bg);
  background-image:repeating-linear-gradient(101deg,transparent 0 13px,#d4fff30b 14px,#02060755 17px,transparent 24px),linear-gradient(127deg,#080e10 4%,#102122 19%,#39615b 31%,#233f3d 37%,#112322 48%,#070d10 62%,#182526 80%,#433a30 93%,#131919);
  background-attachment:fixed;
}
.console-shell > aside {background:var(--console-sidebar);border:1px solid #e7f0ec30;box-shadow:var(--night-rim),0 8px 30px #02070b36}
.console-shell {--app-header-height:calc(48px + env(safe-area-inset-top,0px))}
.console-shell #console-navigation {padding-bottom:max(12px,env(safe-area-inset-bottom));overflow:hidden}
.console-shell #console-navigation > div:first-child {flex:none}
.console-shell .console-sidebar-nav {min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 3px 14px}
.console-shell .sidebar-account {position:relative;flex:none;padding-top:8px;border-top:1px solid #c5dace2b}
.console-shell .sidebar-account-trigger {display:grid;grid-template-columns:32px minmax(0,1fr) 14px;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 8px;text-align:left;font-size:14px;color:#d5e1da;border-radius:8px}
.console-shell .sidebar-account-trigger:hover,.console-shell .sidebar-account-trigger[aria-expanded=true] {background:#ffffff0b}
.console-shell .sidebar-account-trigger svg {transform:rotate(180deg)}
.console-shell .sidebar-account-trigger[aria-expanded=true] svg {transform:none}
.console-shell .sidebar-avatar {display:grid;place-items:center;width:32px;height:32px;border:1px solid #bcd2c93b;border-radius:50%;color:#d2eddf;background:#24302c}
.console-shell .sidebar-account #account-actions {position:absolute;z-index:1;inset:auto 0 calc(100% + 3px);padding:4px;border:1px solid #66756f;border-radius:9px;background:#18201c}
.console-shell #account-actions button {width:100%;justify-content:flex-start}
.console-shell .drawer-toggle {display:flex;width:max-content;align-items:center;height:48px;margin:env(safe-area-inset-top,0px) 0 0 6px;padding-inline:12px}
.console-shell > button[aria-label="Закрыть меню"] {z-index:29}
.console-shell .console-brand .relative {background:linear-gradient(140deg,#42655d,#18342e);border-color:#9ecabd77;border-radius:10px;box-shadow:var(--night-rim)}
.console-shell .console-brand svg {color:#d8f5e8}
.console-shell .console-sidebar-nav > div > p,.console-shell .stat-label,.console-shell .eyebrow {color:#b9ccc5;font:550 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.035em}
.console-shell .console-sidebar-nav > div > p {padding-top:3px}
.console-shell .console-nav-link {color:#c3d3ce;border:1px solid transparent;border-radius:9px}
.console-shell .console-nav-link > svg {color:var(--night-amber)}
.console-shell .console-nav-link[aria-current=page] {color:#ffe4be;background:linear-gradient(106deg,#ffcf8d23,#ffcf8d09);border-color:#ffcf8d42;box-shadow:inset 2px 0 var(--night-amber),var(--night-rim)}
.console-shell .console-nav-link:hover {color:#ffe4be;background-color:#ffcf8d0c}
.console-shell ::selection {background:#305e55;color:#f7fff8}
.console-shell #cabinet-content[data-view=page] {position:relative;margin:clamp(12px,1.6vw,24px) auto;padding:clamp(16px,2.2vw,36px);width:calc(100% - clamp(20px,3.2vw,48px));max-width:1440px;border-radius:20px;border:1px solid;border-color:#c4eadc68 #a0d2c333 #91bdb328 #d3f6e651;background:var(--glass-light),var(--glass-base);box-shadow:inset 0 1px 0 #ffffff2b,0 14px 52px #02070b55}
.console-shell #cabinet-content[data-view=page] h1 {color:var(--night-ink);font-size:clamp(1.85rem,3vw,2.9rem);line-height:1.08;font-weight:590;letter-spacing:-.046em}
.console-shell .panel {background:linear-gradient(112deg,#ebf4f008,transparent 60%),#181a1bdc;border-color:#c9d1ce30;box-shadow:var(--night-rim);border-radius:13px}
.console-shell .panel-soft {background:#131516d2;border-color:#c9d1ce28;border-radius:9px}
.console-shell #cabinet-content[data-view=page] .panel:not(.panel-static):not(.dashboard-statistics .panel):hover {border-color:#b9dbcc4a;box-shadow:var(--night-rim)}
.console-shell .text-slate-400 {color:#b1c2bc}
/* Action hierarchy: a single filled CTA, quiet outlined alternatives, text utilities. */
.console-shell :is(.button-primary,.button-secondary,.choice-button,.button-ghost) {border-radius:8px;box-shadow:none;letter-spacing:-.012em}
.console-shell .button-primary {background:var(--night-amber);color:var(--night-amber-ink);border:1px solid transparent;font-size:1rem;font-weight:650}
.console-shell .button-secondary,.console-shell .choice-button {background:transparent;border:1px solid #64716b;color:#e3eae6;font-weight:500}
.console-shell .button-ghost {color:#bac7c0;background:transparent;font-weight:500}
.console-shell .button-secondary.text-red-300 {color:#ffbab9;border-color:#775654}
@media(hover:hover) {
  .console-shell .button-primary:not(:disabled):hover {background:#ffe3bb;border-color:transparent;color:var(--night-amber-ink)}
  .console-shell :is(.button-secondary,.choice-button):not(:disabled):hover {background:#ffffff09;border-color:#9bada4}
  .console-shell .button-ghost:not(:disabled):hover {background:#ffffff09;color:#edf5ef}
  .console-shell .button-ghost[class~="hover:text-red-300"]:hover {color:#ffbab9}
}
.console-shell .button-primary:not(:disabled):active {background:#e9b87d}
.console-shell :is(.button-secondary,.choice-button,.button-ghost):not(:disabled):active {background:#ffffff16}
.console-shell :is(.button-primary,.button-secondary,.button-ghost,.choice-button):disabled {background:#202523;color:#a0aaa4;border-color:transparent;opacity:.72;cursor:not-allowed}
.console-shell .field,.console-shell .field:focus {background:#070809;border-radius:9px;color:#eef6f0;border-color:#82998e6e}
.console-shell .field:focus,.console-shell .chat-composer-field:focus-within {border-color:#b4e5d0}
.console-shell .segmented-control {padding:0;gap:0;background:transparent;border:0;border-bottom:1px solid #55615a;border-radius:0}
.console-shell .segmented-control button {border-radius:4px 4px 0 0;background:transparent;color:#b8c3bc;font-size:.8125rem;padding-inline:clamp(.5rem,.8vw,.85rem)}
.console-shell .segmented-control button[aria-pressed=true] {background:transparent;color:#ffe0ac;font-weight:650;box-shadow:inset 0 -2px var(--night-amber)}
.console-shell .console-chat-mode[aria-pressed=true] {background:var(--action-selected);color:var(--night-amber);border-color:#a48d69;box-shadow:none}
.console-shell .segmented-control button:not([aria-pressed=true]):hover {background:#ffffff09;color:#fff}
.console-shell .segmented-control button:focus-visible {outline-offset:-3px}
.console-shell .choice-button[aria-pressed=true],.console-shell .topup-preset[aria-pressed=true] {background:var(--action-selected);border-color:#a48d69;color:var(--night-amber)}
.console-shell [role=option][aria-selected=true] button svg {color:var(--night-amber)}
.console-shell .console-select-menu,.console-shell #account-actions {background:var(--console-surface);border-color:#626966;box-shadow:0 12px 32px #000b}
.console-shell [role=dialog] {background:var(--console-surface);border-color:#626966;border-radius:15px}

/* Balance sheet: one contiguous band, with three legible readings. */
.console-shell .dashboard-statistics {background:linear-gradient(110deg,#242726e3,#181b1ad9 51%,#141617d9);border-radius:12px 12px 0 0}
.console-shell .dashboard-statistics .panel {background:transparent;border-radius:0;box-shadow:none}
.console-shell .dashboard-statistics .stat-value {color:#f2f8f1;letter-spacing:-.045em;line-height:1.14;font-variant-numeric:tabular-nums;font-size:clamp(1.55rem,2.4vw,2.35rem)}
.console-shell .dashboard-statistics .stat-primary .stat-value {font-size:clamp(2rem,3.5vw,3.5rem)}
.console-shell .dashboard-statistics .stat-icon {background:#b9f0d51c;color:#dbf7e5;border:1px solid #ceffe336}
.console-shell .dashboard-statistics .stat-hint {color:#b6c6be}
.console-shell section[aria-labelledby=activity-heading] {--console-accent-edge:var(--night-amber);background:linear-gradient(145deg,#ffffff07,transparent 55%),#151718e5}
.console-shell section[aria-labelledby=activity-heading] svg[role=img] path:not([stroke]) {fill:#efc08311}
/* The original SVG stretches to fit the chart. Keep the point titles as transparent
   pointer targets for exact values, without painting stretched circles. */
.console-shell section[aria-labelledby=activity-heading] svg[role=img] circle {fill:transparent;stroke:none;pointer-events:all}
.console-shell .request-table th {color:#c6d8d0;background:#171919}
.console-shell .request-table td {font-variant-numeric:tabular-nums}
.console-shell .request-table tbody tr:hover {background:#b4e3cb08}
.console-shell .model-group summary,.console-shell .console-list-row {border-radius:6px}
.console-shell article.console-list-row h2 {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.025em}
.console-shell .topup-summary-hero {background:linear-gradient(115deg,#14201b,#0c100e)}
.console-shell .topup-summary {border-color:#749c794d}
.console-shell .setup-step > span {font-family:ui-monospace,monospace;background:#214138;color:#d7f2df}
.console-shell .faq-categories button[aria-pressed=true] {background:var(--action-selected);color:var(--night-amber)}

/* History, message stream and composer are separate reading planes. */
.console-shell #cabinet-content[data-view=chat] {padding:clamp(6px,1.2vw,20px)}
.console-shell #cabinet-content[data-view=chat] > div {position:relative;isolation:isolate;border:1px solid #c7e5d747;border-radius:16px;background:var(--glass-light),var(--glass-base)}
.console-shell aside[aria-label="История диалогов"] {background:#0a10124d;border-radius:15px 0 0 15px}
.console-shell section[aria-label="Чат с ИИ"] {background:transparent;border-radius:inherit}
.console-shell .chat-composer-field {background:#141616;border-color:#adcbbc57;box-shadow:var(--night-rim)}
.console-shell [role=log] > div:first-child > svg {color:#acd7bd}

@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .console-shell > aside {background:#101213c7;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}
  /* Empty pseudo-element: optical surface independent of focus rings and fixed menus. */
  .console-shell #cabinet-content[data-view=page],.console-shell #cabinet-content[data-view=chat] > div {background:linear-gradient(180deg,transparent,var(--glass-base) 740px)}
  .console-shell #cabinet-content[data-view=page]::before,.console-shell #cabinet-content[data-view=chat] > div::before {content:"";position:absolute;inset:0 0 auto;height:min(100%,760px);border-radius:inherit;background:linear-gradient(180deg,transparent 50%,var(--glass-base) 100%),var(--glass-light),var(--glass-tint);-webkit-backdrop-filter:blur(15px) saturate(1.15);backdrop-filter:blur(15px) saturate(1.15);pointer-events:none;z-index:-1}
}
@media(min-width:768px) {
  .console-shell .dashboard-statistics {grid-template-columns:minmax(0,1.55fr) minmax(0,1.45fr)}
  .console-shell .dashboard-secondary-statistics {grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
  .console-shell .dashboard-secondary-statistics .panel {display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
  .console-shell .dashboard-secondary-statistics .stat-value {margin-top:12px;align-self:flex-start;text-align:left}
  .console-shell .dashboard-secondary-statistics .panel + .panel {border-width:0 0 0 1px;border-style:solid;border-color:#d0f5dc24}
}
/* Size numerals to their own column, including where the desktop sidebar appears. */
@supports (container-type:inline-size) {
  .console-shell .dashboard-statistics .panel {container-type:inline-size}
  .console-shell .dashboard-statistics .stat-primary .stat-value {font-size:clamp(1.4rem,10.5cqi,3.05rem)}
  .console-shell .dashboard-secondary-statistics .stat-value {font-size:clamp(1rem,15cqi,2.15rem)}
}
@media(min-width:1024px) {
  .console-shell {--app-header-height:0px}
  .console-shell .drawer-toggle {display:none}
  .console-shell #cabinet-content[data-view=page] {max-width:none}
  .console-shell > aside {inset:14px auto 14px 12px;width:216px;border-radius:16px}
}
/* The page is the glass surface. Content sections sit on it like rows of a ledger. */
.console-shell > main {display:flow-root}
.console-shell .dashboard :is(.stat-icon,.dashboard-catalog button[aria-haspopup=dialog] > svg:first-child,.request-model,.request-cache) {color:var(--night-amber)}
.console-shell #cabinet-content[data-view=page] .panel:not([role=dialog], [role=dialog] *),
.console-shell #cabinet-content[data-view=page] .panel:not(.panel-static):not(.dashboard-statistics .panel):hover {border:0;border-radius:0;box-shadow:none;background:transparent}
.console-shell #cabinet-content[data-view=page] .panel:not(.dashboard-statistics .panel, [role=dialog] *) {border-block-start:var(--section-rule)}
/* Passive sections keep their separator (and height) as the pointer crosses them. */
.console-shell #cabinet-content[data-view=page] .panel:not(.panel-static):not(.dashboard-statistics .panel, [role=dialog] *):hover {border-block-start:var(--section-rule)}
.console-shell #cabinet-content[data-view=page] :is(.panel.p-5,.panel.px-5):not(.dashboard-statistics .panel,[role=dialog] *) {padding-inline:0}
.console-shell #cabinet-content .dashboard-statistics {border-radius:0;background:#b8d4c605;border-bottom:1px solid #c8dfd41e}
.console-shell #cabinet-content .dashboard .dashboard-statistics {background:linear-gradient(110deg,#c4e9da10,transparent 62%),#06101365;border-block:1px solid #b5d6cc38}
.console-shell .dashboard section[aria-labelledby=activity-heading] svg[role=img] path[stroke] {stroke-width:3;stroke-dasharray:11 7}
.console-shell .dashboard .usage-plot line {stroke-dasharray:3 5}
.console-shell .dashboard section[aria-labelledby=activity-heading] svg[role=img] path:not([stroke]) {fill:#ffcf8d21}
.console-shell #cabinet-content .dashboard > :is(.grid,section[aria-labelledby="model-usage-heading"],section[aria-labelledby="logs-heading"]) {margin-block-start:clamp(26px,2.7vw,40px)}
.console-shell #cabinet-content .dashboard-secondary-statistics > .panel + .panel {border-inline-start:1px solid #c8dfd424}
.console-shell #cabinet-content .topup-summary-hero {border-radius:0;background:transparent}
.console-shell #cabinet-content .topup-balance {background:transparent;border-width:0 0 0 1px;border-radius:0}
.dashboard-catalog button[data-family] {--mark-ink:#b0c3d4;letter-spacing:0}
.dashboard-catalog button[data-family=gpt] {--mark:url('/icons/clients/openai.svg');--mark-ink:#8be0bd}
.dashboard-catalog button[data-family=claude] {--mark:url('/icons/clients/claude.svg');--mark-ink:#efa17f}
.dashboard-catalog button[data-family=google] {--mark:url('/icons/clients/gemini.svg');--mark-ink:#9fc4ff}
.dashboard-catalog button[data-family=xai] {--mark:url('/icons/clients/grok.svg');--mark-ink:#d2c6fd}
.dashboard-catalog button[data-family=chinese] {--mark-ink:#ffbc82}
.dashboard-catalog button[data-family=images] {--mark-ink:#ffabcc}
.console-shell .dashboard .dashboard-catalog button[data-family] > svg:first-child {color:var(--mark-ink)}
@supports (mask-image:url('')) or (-webkit-mask-image:url('')) {
  .dashboard-catalog button:is([data-family=gpt],[data-family=claude],[data-family=google],[data-family=xai])::before {content:'';flex:none;width:21px;height:21px;background:var(--mark-ink);-webkit-mask:var(--mark) center/contain no-repeat;mask:var(--mark) center/contain no-repeat}
  .dashboard-catalog button:is([data-family=gpt],[data-family=claude],[data-family=google],[data-family=xai]) > svg:first-child {display:none}
}
.usage-plot [aria-hidden=true] {inset-block:0}
/* Emerald receipts, based on the original top-up calculator. Amber stays in the shell. */
.console-shell .topup-calculator {--pay-mint:#96ebac;--pay-grass:#4ade80;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:start;gap:clamp(20px,3vw,48px)}
.console-shell .topup-calculator .topup-step {display:inline-grid;place-items:center;width:24px;height:24px;margin-right:4px;border-radius:50%;background:#193828;color:var(--pay-mint);font:600 12px ui-monospace,monospace}
.console-shell .topup-amount-field {display:flex;align-items:baseline;gap:8px;width:fit-content;max-width:100%;border:1px solid transparent;border-radius:8px;padding:1px 6px}
.console-shell .topup-amount-field:focus-within {border-color:var(--pay-mint)}
.console-shell .topup-amount-field input {font-size:clamp(38px,4.4vw,62px);line-height:1.12;letter-spacing:-.045em;background:transparent;border:0;color:#f1faf2;font-variant-numeric:tabular-nums}
.console-shell .topup-amount-field span {color:#94a99d;font-size:30px}
.console-shell .topup-calculator #topup-slider {appearance:auto;accent-color:var(--pay-grass);width:100%;height:28px}
.console-shell .topup-presets {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.console-shell .topup-preset {min-height:64px;border:1px solid #52665973;border-radius:9px;background:#212925;color:#eef6f0}
.console-shell .topup-preset[aria-pressed=true] {background:#224333;border-color:#70bd85;color:#e9ffef}
.console-shell .topup-preset[aria-pressed=true] span:last-child {color:#a8e4b7}
.console-shell .topup-benefit,.console-shell .topup-method-selected {border:1px solid #599e707d;border-radius:10px;background:#20402c80}
.console-shell .topup-benefit {padding:12px;color:#c7eacf}.console-shell .topup-benefit strong,.console-shell .topup-benefit svg,.console-shell .topup-method-selected svg {color:var(--pay-mint)}
.console-shell .topup-method-selected span:first-child {display:grid;place-items:center;background:#284f35;border-radius:8px}
.console-shell .topup-method-selected span:last-child > svg {color:#10251a}
.console-shell .topup-method-selected span:last-child:has(> svg) {background:var(--pay-mint)}
.console-shell .topup-unavailable {display:flex;align-items:center;gap:12px;border-radius:9px;border:1px solid #ffffff19;padding:12px;text-align:left;background:transparent;color:#a8b1ac;cursor:not-allowed}
.topup-unavailable small {display:block;color:#99a29d;font-size:11px}
.console-shell #cabinet-content[data-view=page] .topup-calculator section.topup-summary.panel {padding:0;border:1px solid #639e7375;border-radius:14px;overflow:hidden;background:#111d19}
.console-shell #cabinet-content .topup-calculator .topup-summary-hero {padding:clamp(18px,2vw,30px);background:linear-gradient(115deg,#224a32,#173222 68%);color:#def8e2;border-bottom:1px solid #6ca97e54}
.topup-summary-hero p[aria-hidden=true] {color:#9bf4af;font-size:clamp(32px,3vw,48px);line-height:1.08;letter-spacing:-.045em}
.console-shell .topup-summary-hero span.rounded-full {border:1px solid #a5e6b641;padding:4px 9px;background:#10291c5c;color:#caf1d2;border-radius:999px}
.console-shell .topup-calculator .topup-summary :is(.text-green-100,.text-green-200,.text-green-300) {color:var(--pay-mint)}
.console-shell .topup-summary .button-primary:not(:disabled) {background:var(--pay-grass);color:#0b2013;border-color:transparent}
.console-shell .topup-summary .button-primary:not(:disabled):hover {background:#86efac}
@media(max-width:1100px){.console-shell .topup-calculator {grid-template-columns:1fr}.console-shell .topup-calculator .topup-summary {width:100%}}
@media(max-width:580px){.console-shell .topup-presets {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Catalog: human-readable name and the exact integration ID are separate fields. */
.catalog-columns {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1.55fr) minmax(90px,.85fr) minmax(78px,.7fr);gap:16px;align-items:center}
.console-shell .catalog-columns h2 {font-family:inherit;letter-spacing:0;overflow-wrap:anywhere}
.catalog-columns-head {color:#b7c7c0;border-block:1px solid #c5ddcf24;background:#ffffff03}
.catalog-id {display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.catalog-id code {font:12px/1.5 ui-monospace,monospace;color:#c6d4ce;overflow-wrap:anywhere}.catalog-label {display:none}
.catalog-columns [data-model-logo] {color:#b2c6ec}.catalog-columns [data-model-logo=openai] {color:#8be0bd}.catalog-columns [data-model-logo=claude] {color:#efa17f}.catalog-columns [data-model-logo=gemini] {color:#9fc4ff}.catalog-columns [data-model-logo=grok] {color:#d2c6fd}.catalog-columns :is([data-model-logo=qwen],[data-model-logo=zhipu],[data-model-logo=kimi]) {color:#c7adff}.catalog-columns :is([data-model-logo=mistral],[data-model-logo=minimax]) {color:#ffb27e}
.journal {min-width:0;container-type:inline-size}.journal-head {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 0 16px}.journal-head h2 {margin-bottom:4px}.journal-controls {display:grid;grid-template-columns:minmax(140px,1.4fr) repeat(2,minmax(120px,1fr)) 44px;gap:8px;max-width:100%}.journal-search {position:relative;min-width:0}.journal-search svg {position:absolute;left:12px;top:14px;color:#adbbb4}.journal-search .field {padding-left:34px}
.journal-table {width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-variant-numeric:tabular-nums}.journal-table th {font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#aebdb6;background:#ffffff04}.journal-table :is(th,td) {padding:12px 8px;border-top:1px solid #cad5cf21}.journal-table th:nth-child(2){width:26%}.journal-table th:nth-child(3){width:10%}.journal-table td {font-size:13px;overflow-wrap:anywhere;color:#e2ece6}.journal-table :is(th,td):nth-last-child(-n+2){text-align:right}.journal-table :is(code,strong){font-weight:570}.journal-table small {display:block;margin-top:2px;font-size:11px;color:#b1bfb8}.journal-table .journal-cache {color:#9dd9be}.journal-chip {display:inline-block;padding:2px 8px;border-radius:6px;background:#2e3733;color:#cad5ce;font-size:12px;font-weight:550}.journal-chip[data-state=ok] {background:#19382e;color:#99e1bd}.journal-chip[data-state=error] {background:#412529;color:#ffb8bc}.journal-pages {display:flex;align-items:center;justify-content:space-between;border-top:1px solid #cad5cf26;font-size:12px;color:#b1bfb8}.journal-empty {padding:28px 10px;text-align:center;color:#b8c6bf}
@container (max-width:680px){.journal-controls {grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;width:100%}.journal-search {grid-column:1/-1}.journal-head {display:grid;grid-template-columns:minmax(0,1fr)}.journal-table,.journal-table tbody {display:block}.journal-table thead {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.journal-table tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;padding:16px 0;border-top:1px solid #cad5cf26}.journal-table td,.journal-table td:nth-last-child(-n+2) {display:block;padding:0;border:0;text-align:left}.journal-table td::before {display:block;content:attr(data-label);color:#b0bfb7;font-size:11px;margin-bottom:3px}}
@media(max-width:1023px){.catalog-columns {grid-template-columns:1fr 1fr;gap:8px 16px}.catalog-columns-head {display:none}.catalog-columns > :is(:first-child,:nth-child(2)){grid-column:1/-1}.catalog-label {display:block;font-size:11px;color:#b0bfb7}.catalog-id {justify-content:flex-start}.catalog-columns h2 {font-size:16px}}
@media(min-width:1280px){
  .console-shell #cabinet-content .dashboard-catalog,.console-shell #cabinet-content .topup-summary {border-inline-start:1px solid #c8dfd42d;padding-inline-start:20px}
  .console-shell #cabinet-content[data-view=page] .dashboard > .grid > section.dashboard-catalog.panel.p-5 {border-inline-start:1px solid #c9dfd430;padding-inline-start:clamp(16px,1.5vw,24px)}
  .console-shell .dashboard {--catalog-track:max(326px,32%);--plot-row:48px;--plot-inset:12px}
  .console-shell .dashboard .dashboard-statistics {grid-template-columns:minmax(0,1.24fr) minmax(0,1fr) var(--catalog-track)}
  .console-shell .dashboard-secondary-statistics {display:contents}
  .console-shell #cabinet-content[data-view=page] .dashboard .dashboard-statistics .dashboard-secondary-statistics > .panel {border-inline-start:1px solid #c9dfd437}
  .console-shell .dashboard > .grid:has(> .dashboard-catalog) {grid-template-columns:minmax(0,1fr) var(--catalog-track);grid-template-rows:auto auto 1fr auto;column-gap:24px;row-gap:0}
  .console-shell .dashboard > .grid > section:is([aria-labelledby=activity-heading],.dashboard-catalog) {display:grid;grid-template-rows:subgrid;grid-row:span 4;grid-template-columns:minmax(0,1fr);align-content:start;row-gap:0;padding-block:20px}
  .console-shell .dashboard > .grid > section > :first-child {align-self:center}
  .console-shell .dashboard > .grid > section > :nth-child(2) {margin:8px 0 12px;align-self:end}
  .console-shell .dashboard > .grid > section > :nth-child(3) {margin:0;min-width:0}
  .dashboard .usage-plot svg[role=img] {display:block;height:calc(var(--plot-intervals) * var(--plot-row) + 2 * var(--plot-inset))}
  .dashboard-catalog .divide-y:has(> [data-family]) {margin-top:var(--plot-inset);border-bottom:1px solid #c8dfd433}
  .dashboard-catalog .divide-y > button[data-family] {box-sizing:border-box;border-radius:0;border-top:1px solid #c8dfd433;height:var(--plot-row);min-height:var(--plot-row);padding-inline:6px;font-size:14px}
}
@media(max-width:639px) {
  .console-shell :is(.button-primary,.button-secondary,.button-ghost,.choice-button,.segmented-control button,.console-chat-mode) {min-height:48px;min-width:48px}
  .console-shell #cabinet-content[data-view=page] {width:calc(100% - 12px);margin:6px auto;padding:14px 9px 24px;border-radius:13px}
  .console-shell #cabinet-content[data-view=chat] {padding:0}
  .console-shell #cabinet-content[data-view=chat] > div {border:0;border-radius:0}
  .console-shell .dashboard-statistics .panel {padding:15px 12px}
  .console-shell .stat-label {font-size:10.5px}
}
@media(prefers-reduced-transparency:reduce) {
  .console-shell.bg-ink {background:var(--console-bg)}
  .console-shell :is(.panel,.panel-soft,.dashboard-statistics,section[aria-labelledby=activity-heading],section[aria-label="Чат с ИИ"]) {background-color:var(--console-surface)}
  .console-shell #cabinet-content[data-view=page],.console-shell #cabinet-content[data-view=chat] > div,.console-shell > aside {background:var(--glass-base);-webkit-backdrop-filter:none;backdrop-filter:none}
  .console-shell #cabinet-content[data-view=page]::before,.console-shell #cabinet-content[data-view=chat] > div::before {display:none}
}
@media(forced-colors:active) {
  .console-shell #cabinet-content[data-view=chat] > div {background:Canvas;border-color:CanvasText}
  .console-shell section[aria-labelledby=activity-heading] svg[role=img] circle {opacity:0}
  .console-shell.bg-ink,.console-shell .panel,.console-shell .dashboard-statistics,.console-shell #cabinet-content[data-view=page] {background:Canvas;color:CanvasText}
  .console-shell #cabinet-content[data-view=page]::before,.console-shell #cabinet-content[data-view=chat] > div::before {display:none}
  .console-shell [aria-current=page],.console-shell [aria-pressed=true] {outline:2px solid Highlight;outline-offset:-3px}
}

.console-shell .parallel-limits{padding:20px 0;border-block-start:var(--section-rule)}.parallel-limits h2{font-weight:600}.parallel-limits p{margin:6px 0;color:#b9c7bf;font-size:13px}.parallel-limits ol{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;margin:20px 0;padding:0}.parallel-limits li{position:relative;text-align:center;display:grid;justify-items:center;gap:4px;border-top:2px solid #41524a;padding-top:12px}.parallel-limits li::before{content:'';position:absolute;top:-5px;width:8px;height:8px;border-radius:50%;background:#93ada0}.parallel-limits li[aria-current]{border-color:var(--night-amber);color:var(--night-amber)}.parallel-limits li[aria-current]::before{background:var(--night-amber)}.parallel-limits strong{font-size:22px}.parallel-limits li span{font-size:12px}.parallel-limits details{margin-top:14px}.parallel-limits form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:10px 0}

.output-guard-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 28px;align-items:center;padding:20px 0;border-block:var(--section-rule)}.output-guard-kicker{font:550 11px/1.5 ui-monospace,monospace;letter-spacing:.04em;text-transform:uppercase;color:#ffcf8d}.output-guard-copy h2{margin-top:4px;font-size:17px;font-weight:600}.output-guard-copy p{margin-top:5px;max-width:680px;color:#aebdb5;font-size:12px;line-height:1.5}.output-guard-values{display:flex;gap:28px;text-align:right}.output-guard-values dt{font-size:11px;color:#aebdb5}.output-guard-values dd{margin-top:4px;font-size:22px;font-variant-numeric:tabular-nums;color:#eff6f2}.output-guard-values dd.is-active{color:var(--night-amber)}.output-guard-scale{grid-column:1/-1;display:flex;align-items:center;gap:10px;color:#aebdb5;font:11px ui-monospace,monospace}.output-guard-scale i{position:relative;height:5px;flex:1;overflow:hidden;border-radius:99px;background:#35433d}.output-guard-scale i::before{content:'';position:absolute;inset:0;background:var(--night-amber);border-radius:inherit}@media(max-width:640px){.output-guard-card{grid-template-columns:1fr}.output-guard-values{justify-content:space-between;text-align:left}.output-guard-scale{grid-column:1}}
