/* Terminal look for the cabinet sections Обзор, Лидеры, Партнёры, Помощь, Настройки (src/pages/Shell.tsx OCTO_SECTIONS).
   Loaded after the cabinet sheets with octo-theme.css, which gives .oc-app the terminal palette.
   Everything is scoped to .oc-app, so other cabinet and site pages keep their look. Values follow octo-terminal.css:
   graphite panels with a 1 px line, Geist 12 to 13 px, 3.84 px corners, 28 to 34 px controls, green accent. */

:root:has(.oc-app), .oc-app {
  --font-display: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 600;
  --tr-display: -0.02em;
  --lh-display: 1.2;
  --fs-small: 12px;
  --fs-micro: 10.5px;
  --ink-strong: #ffffff;
  --accent-text: #62e89b;
  --profit-soft: #173224;
  --loss-soft: #321a19;
  --warn: #e8c968;
  --warn-soft: #2b2617;
  --gold: #e8c968;
  --gold-soft: #2b2617;
  --ink-field: #0c0c0c;
  --glow: transparent;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.6);
  --radius: var(--it-radius);
  --radius-lg: var(--it-radius);
  --radius-sm: 3px;
  --radius-xs: 2px;
  --radius-button: 3px;
  --radius-field: 3px;
  --btn-h: 34px;
  --btn-h-sm: 28px;
  --field-h: 32px;
}
body:has(.oc-app) { background: var(--it-bg); color: var(--it-text); font-family: var(--font-body); }
.oc-app { font-size: 13px; line-height: 1.45; letter-spacing: -0.1px; -webkit-font-smoothing: antialiased; color: var(--it-text); background: var(--it-bg); }
.oc-app ::selection { background: #62e89b44; color: #fff; }

/* ── Top bar: the terminal header (42 px, mark, section links, tools on the right) ── */
.oc-app.app { grid-template-columns: minmax(0, 1fr); }
.oc-app .topbar { min-height: 42px; height: 42px; padding: 0 10px; gap: 12px; background: #0c0c0c; border-bottom: 1px solid #1f1f1f; }
.oc-app .topbar-brand { display: inline-flex; flex: none; }
.oc-brand { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-right: 6px; color: var(--it-text); text-decoration: none; }
.oc-brand svg { width: 25px; height: 25px; flex: none; }
.oc-brand b { font-size: 18px; font-weight: 600; letter-spacing: -1px; }
.oc-nav { display: none; align-items: center; gap: 13px; height: 100%; white-space: nowrap; }
.oc-nav a { display: inline-flex; align-items: center; height: 100%; font-size: 12px; color: var(--it-muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.oc-nav a:hover { color: var(--it-text); }
.oc-nav a[aria-current="page"] { color: var(--it-text); box-shadow: inset 0 -2px 0 var(--it-buy); }
.oc-app .search { flex: 0 1 160px; max-width: 160px; min-height: 28px; height: 28px; padding: 0 8px; gap: 6px; border: 1px solid #2a2a2a; border-radius: 3px; background: #171717; color: #999; }
.oc-app .search svg { width: 14px; height: 14px; }
.oc-app .search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { min-height: 26px; height: 26px; padding: 0; border: 0; outline: 0; background: none; font-size: 11px; color: var(--it-text); }
.oc-app .search:focus-within { border-color: #525252; }
.oc-app .topbar-money { gap: 14px; align-items: center; }
.oc-app .topbar-money > div { display: grid; gap: 0; }
.oc-app .topbar-money dt { font-size: 9.5px; line-height: 1.2; color: var(--it-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.oc-app .topbar-money dd { font-size: 12px; line-height: 1.3; font-weight: 500; }
.oc-app .topbar-user { gap: 6px; }
.oc-buy { display: none; align-items: center; height: 28px; padding: 4px 13px; border-radius: 3px; background: #ededed; color: #111; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.oc-buy:hover { background: #fff; }
.oc-buy:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
.oc-app .user-chip { min-height: 28px; gap: 6px; padding: 0 6px; font-size: 12px; font-weight: 500; border-radius: 3px; }
.oc-app .user-chip:hover, .oc-app .icon-btn:hover { background: #ffffff0a; }
.oc-app .avatar { background: #212121; color: var(--it-text); border: 1px solid #343434; }
.oc-app .topbar .avatar { width: 24px; height: 24px; font-size: 11px; }
.oc-app .avatar-img { object-fit: cover; }
.oc-app .icon-btn { width: 28px; height: 28px; border-radius: 3px; color: var(--it-muted); }
.oc-app .icon-btn svg { width: 16px; height: 16px; }
.oc-app .lang-switch summary, .oc-app .lang-switch > button { min-height: 28px; font-size: 11px; }

@media (min-width: 1024px) {
  .oc-app.app { padding-bottom: 0; }
  .oc-nav { display: flex; }
  .oc-buy { display: inline-flex; }
}
@media (max-width: 1365px) { .oc-app .topbar-money > div:nth-child(n + 2) { display: none; } }
@media (max-width: 1199px) and (min-width: 1024px) { .oc-app .topbar-money, .oc-app .search { display: none; } }
@media (max-width: 1279px) { .oc-app .user-chip .hide-sm { display: none; } }
@media (max-width: 759px) {
  .oc-brand b { display: none; }
  .oc-app .topbar { gap: 8px; height: 48px; min-height: 48px; }
  .oc-app .search { flex: 1 1 0; max-width: none; height: 32px; min-height: 32px; }
  .oc-app .topbar-user { gap: 4px; }
  .oc-app .icon-btn, .oc-app .user-chip { width: 36px; min-height: 36px; height: 36px; justify-content: center; padding: 0; }
}

/* ── Content: full width like the terminal workbench, panels on the graphite ground ── */
.oc-app .app-content { gap: 14px; padding: 16px 10px 48px; }
@media (min-width: 760px) { .oc-app .app-content { padding: 18px 16px 56px; } }
@media (min-width: 1024px) { .oc-app .app-content { padding: 20px 20px 64px; } }
.oc-app .app-head { gap: 10px 16px; padding-bottom: 12px; border-bottom: 1px solid #1f1f1f; }
.oc-app .app-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; color: #fff; gap: 8px; }
.oc-app .app-head .lead { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--it-muted); }
.oc-app h2, .oc-app .h3, .oc-app .band h2, .oc-app .block h2 { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; line-height: 1.3; color: var(--it-text); }
.oc-app h3 { font-size: 12.5px; font-weight: 600; letter-spacing: -0.1px; color: var(--it-text); }
.oc-app p { line-height: 1.5; }
.oc-app .lead, .oc-app .hint, .oc-app .muted, .oc-app small { color: var(--it-muted); }
.oc-app .hint { font-size: 11.5px; }
.oc-app a.text-link, .oc-app .app-content p a:not(.button) { color: var(--it-buy); }
.oc-app .band-head a:not(.button) { min-height: 28px; font-size: 12px; font-weight: 500; color: var(--it-buy); }
.oc-app .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: 0; }

/* Panels: figures, bands, cards, settings blocks */
.oc-app .figs { gap: 1px; background: #292929; border: 1px solid #292929; border-radius: var(--it-radius); }
.oc-app .fig { gap: 4px; padding: 10px 12px; background: var(--it-panel); }
.oc-app .fig dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--it-muted); }
.oc-app .fig > dd.num { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.oc-app .fig-sub { font-size: 11px; color: var(--it-muted); }
.oc-app .band, .oc-app .pt-card, .oc-app .kyc-card, .oc-app .support-box { background: var(--it-panel); border: 1px solid #292929; border-radius: var(--it-radius); box-shadow: none; }
.oc-app .band { padding: 12px 14px; }
.oc-app .band-head { gap: 8px; }
.oc-app .pt-card { padding: 14px 16px; }
.oc-app .pt-card:hover { transform: none; border-color: #343434; }
.oc-app .dd-strip { margin-top: 12px; padding: 10px 12px; border-color: #292929; border-radius: var(--it-radius); background: #121212; }
.oc-app .meter { border-radius: 2px; background: #262626; }

/* Tables: dense rows, small grey heads, hairlines, as in the terminal account panel */
.oc-app .table-wrap, .oc-app .board-wrap { border: 1px solid #292929; border-radius: var(--it-radius); background: var(--it-panel); }
.oc-app .data, .oc-app .board { font-size: 12px; }
.oc-app .data th, .oc-app .board thead th { height: 28px; padding: 0 10px; font-size: 10.5px; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid #292929; background: var(--it-panel); }
.oc-app .data td, .oc-app .board td, .oc-app .board th[scope="row"] { padding: 7px 10px; border-bottom: 1px solid #1f1f1f; }
.oc-app .data tbody tr:last-child td, .oc-app .board tbody tr:last-child td, .oc-app .board tbody tr:last-child th { border-bottom: 0; }
.oc-app .data tbody tr:hover td, .oc-app .board tbody tr:hover td, .oc-app .board tbody tr:hover th { background: #ffffff06; }
.oc-app .board tr.own td, .oc-app .board tr.own th { background: #173224; }
.oc-app .data td small, .oc-app .board td small { font-size: 10.5px; }
.oc-app .data a, .oc-app .board a { color: var(--it-buy); }
.oc-app .chip, .oc-app .tag { border-radius: 2px; font-size: 10px; letter-spacing: 0.04em; padding: 2px 6px; }
.oc-app .tag { background: #62e89b22; color: var(--it-buy); }
.oc-app .tag-muted { background: #262626; color: var(--it-muted); }
.oc-app .up { color: var(--it-buy); }
.oc-app .down { color: var(--it-sell); }

/* Buttons: compact, 3 px corners, no lift; primary green with dark label, quiet graphite */
.oc-app .button { min-height: 32px; padding: 0 14px; gap: 6px; border-radius: 3px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: -0.1px; box-shadow: none; }
.oc-app .button-sm { min-height: 28px; padding: 0 12px; font-size: 11.5px; }
.oc-app .button-lg { min-height: 36px; padding: 0 18px; font-size: 13px; }
.oc-app .button svg { width: 14px; height: 14px; }
.oc-app .button:hover, .oc-app .button:active { transform: none; box-shadow: none; }
.oc-app .button:hover svg { transform: none; }
.oc-app .button-primary { background: var(--it-buy); border-color: var(--it-buy); color: #0c0c0c; }
.oc-app .button-primary:hover { background: #7af0ad; }
.oc-app .button-quiet { background: #212121; border: 1px solid #343434; color: var(--it-text); }
.oc-app .button-quiet:hover { background: #2a2a2a; border-color: #525252; }
.oc-app .button:focus-visible, .oc-app a:focus-visible, .oc-app summary:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
.oc-app .link-btn { color: var(--it-buy); }

/* Forms: 32 px fields on the darkest ground, grey line, light line on focus */
.oc-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .oc-app select, .oc-app textarea {
  min-height: 32px; padding: 6px 10px; border: 1px solid #2a2a2a; border-radius: 3px; background: #171717; color: var(--it-text); font-size: 12.5px; box-shadow: none;
}
.oc-app textarea { min-height: 96px; line-height: 1.45; }
.oc-app input:focus-visible, .oc-app select:focus-visible, .oc-app textarea:focus-visible { border-color: #525252; outline: 1px solid #aaa; outline-offset: 1px; }
.oc-app input[type="checkbox"], .oc-app input[type="radio"] { accent-color: var(--it-buy); }
.oc-app input[type="file"] { font-size: 12px; color: var(--it-muted); }
.oc-app input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 1px solid #343434; border-radius: 3px; background: #212121; color: var(--it-text); font: inherit; cursor: pointer; }
.oc-app label, .oc-app .form-field > span, .oc-app .o-field > span { font-size: 11.5px; color: var(--it-muted); }
.oc-app .filters { gap: 8px 12px; align-items: end; }
.oc-app .filters label { display: grid; gap: 4px; }
.oc-app .filters select { min-width: 160px; }
.oc-app .callout { border-radius: var(--it-radius); font-size: 12.5px; }

/* Dashboard */
.oc-app .dashboard-account select { min-height: 32px; }
.oc-app .eq-legend { font-size: 11px; color: var(--it-muted); }

/* Help: topics, questions, request form */
.oc-app .help-topic-count { color: var(--it-muted); font-size: 11px; }
.oc-app .faq details { border-bottom: 1px solid #1f1f1f; }
.oc-app .faq summary { padding: 10px 0; font-size: 12.5px; font-weight: 500; font-family: var(--font-body); }
.oc-app .faq details > p { padding-bottom: 12px; font-size: 12.5px; color: var(--it-muted); }
.oc-app .support-box { padding: 14px 16px; }

/* Settings: profile rows, channels, verification */
.oc-app .profile dt, .oc-app .settings-grid dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--it-muted); }
.oc-app .channel { padding: 10px 0; border-bottom-color: #1f1f1f; }
.oc-app .kyc-card { padding: 14px 16px 4px; }

/* Partners hub */
.oc-app .pt-hub-terms b { color: var(--it-buy); font-weight: 600; }
.oc-app .pt-hub-steps li::marker { color: var(--it-muted); }
.oc-app .pt-note { font-size: 11.5px; color: var(--it-muted); }

/* Footer: the terminal status line's size and colour */
.oc-app .app-foot { padding: 14px 20px 18px; border-top: 1px solid #1f1f1f; font-size: 11px; color: var(--it-muted); background: #0c0c0c; }
.oc-app .app-foot a, .oc-app .app-foot .link-btn { color: var(--it-muted); }
.oc-app .app-foot a:hover, .oc-app .app-foot .link-btn:hover { color: var(--it-text); }

/* Phone tab bar: the terminal's bottom navigation */
.oc-app .tabbar { background: #0c0c0c; border-top: 1px solid #262626; }
.oc-app .tabbar > a, .oc-app .tab-more summary { min-height: 52px; padding: 7px 2px 5px; font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: var(--it-muted); }
.oc-app .tabbar svg { width: 20px; height: 20px; }
.oc-app .tabbar [aria-current="page"] { color: var(--it-text); }
.oc-app .tabbar [aria-current="page"] svg, .oc-app .tabbar > a.nav-buy svg { color: var(--it-buy); }
.oc-app .tabbar > a.nav-buy { color: var(--it-buy); background: none; border: 0; box-shadow: none; margin: 0; min-height: 52px; border-radius: 0; }
.oc-app .tab-more-menu { background: #151515; border: 1px solid #292929; border-radius: var(--it-radius); }
.oc-app .tab-more-menu a { min-height: 40px; font-size: 12.5px; border-radius: 3px; }
.oc-app .tab-more-menu a:hover, .oc-app .tab-more-menu a[aria-current="page"] { background: #212121; }
@media (max-width: 1023px) { .oc-app.app { padding-bottom: calc(56px + env(safe-area-inset-bottom)); } }

/* Leaderboard: the public page's centred section becomes a full-width panel stack */
.oc-app .section-tight { padding-block: 0; }
.oc-app .section-tight > .shell { width: auto; max-width: none; margin: 0; display: grid; gap: 12px; }
.oc-app .filters { margin: 0; }
.oc-app .model-rules { border: 1px solid #292929; border-radius: var(--it-radius); background: var(--it-panel); }
@media (max-width: 559px) {
  .oc-app .filters select { min-width: 0; width: 100%; }
  .oc-app .filters label { min-width: 0; }
  .oc-app .data th, .oc-app .board thead th, .oc-app .data td, .oc-app .board td, .oc-app .board th[scope="row"] { padding-inline: 6px; }
  .oc-app .board { font-size: 11.5px; }
  .oc-app .board th[scope="row"] { white-space: normal; }
  .oc-app .board th[scope="row"] .tag { display: table; margin: 3px 0 0; }
}

/* Help: tighter topic stack, the topic head as a terminal panel toolbar */
.oc-app .help-topics { gap: 14px; margin-top: 12px; }
.oc-app .help-topic-head { padding: 10px 12px; border-left: 2px solid var(--it-buy); background: #1b1b1b; }
.oc-app .help-topic-head h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.oc-app .support-box > h3 { margin-top: 16px; }
.oc-app .support-list { margin-top: 12px; }
.oc-app .text-link { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.oc-app .pt-seg a { font-size: 12.5px; font-weight: 500; }

/* ── Академия: tiles as terminal panels, material parts as a panel band ── */
.oc-app .edu-tiles { gap: 10px; }
.oc-app .edu-tile { min-height: 120px; gap: 10px; padding: 16px 12px; background: var(--it-panel); border: 1px solid #292929; border-radius: var(--it-radius); box-shadow: none; }
.oc-app a.edu-tile:hover { border-color: #525252; background: #1a1a1a; transform: none; }
.oc-app .edu-tile svg { width: 22px; height: 22px; color: var(--it-buy); }
.oc-app .edu-tile-title { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: -0.1px; }
.oc-app .edu-tile-soon, .oc-app .edu-soon .label { font-size: 10px; letter-spacing: 0.04em; color: var(--it-muted); }
.oc-app .edu-note { font-size: 11.5px; color: var(--it-muted); }
.oc-app .edu-part { gap: 12px 24px; }
.oc-app .edu-part-band { padding: 14px 16px; background: var(--it-panel); border: 1px solid #292929; border-radius: var(--it-radius); }
.oc-app .edu-head { top: 58px; }
.oc-app .edu-list li { font-size: 12.5px; line-height: 1.5; }
@media (max-width: 759px) { .oc-app .edu-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Купить челлендж: order form, receipt and payment page in the terminal's density ── */
.oc-app .checkout .display, .oc-app .checkout .display-sub, .oc-app .pay-shell .display-sub { margin: 10px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; color: #fff; }
.oc-app .checkout-grid { gap: 16px 20px; }
.oc-app .checkout-main { gap: 16px; }
.oc-app .checkout-main h2, .oc-app .checkout .h3 { font-size: 13px; }
.oc-app .steps { gap: 6px 18px; margin-bottom: 12px; font-size: 11.5px; }
.oc-app .steps .num { width: 20px; height: 20px; font-size: 10.5px; border-color: #343434; }
.oc-app .steps li[aria-current] .num { background: var(--it-buy); border-color: var(--it-buy); color: #0c0c0c; }
.oc-app .steps li.done .num { border-color: var(--it-buy); color: var(--it-buy); }
.oc-app .pill-row { gap: 6px; }
.oc-app .pill { min-height: 32px; padding: 0 14px; border: 1px solid #343434; border-radius: 3px; background: #171717; font-size: 12.5px; font-weight: 500; }
.oc-app .pill:hover { border-color: #525252; }
.oc-app .pill:has(input:checked) { background: var(--it-buy); border-color: var(--it-buy); color: #0c0c0c; }
.oc-app .pill:has(input:focus-visible) { outline: 1px solid #aaa; outline-offset: 2px; }
.oc-app .addon-list, .oc-app .pay-methods { border: 1px solid #292929; border-radius: var(--it-radius); background: var(--it-panel); overflow: hidden; }
.oc-app .addon, .oc-app .pay-method { padding: 10px 12px; border-top: 1px solid #1f1f1f; }
.oc-app .addon:first-child, .oc-app .pay-method:first-child { border-top: 0; }
.oc-app .pay-method:last-child { border-bottom: 0; }
.oc-app .addon:has(input:checked), .oc-app .pay-method:has(input:checked) { background: #173224; box-shadow: inset 2px 0 0 var(--it-buy); }
.oc-app .addon-name { font-size: 12.5px; font-weight: 600; }
.oc-app .addon-note, .oc-app .addon-why, .oc-app .pay-method small { font-size: 11.5px; color: var(--it-muted); }
.oc-app .addon-price { font-size: 12.5px; }
.oc-app .addon input, .oc-app .pay-method input, .oc-app .check-line input { width: 16px; height: 16px; }
.oc-app .check-line { font-size: 12px; line-height: 1.5; gap: 10px; }
.oc-app .receipt, .oc-app .pay-gate { gap: 12px; padding: 14px 16px; background: var(--it-panel); border: 1px solid #292929; border-radius: var(--it-radius); }
.oc-app .receipt { top: 58px; }
.oc-app .receipt .label, .oc-app .pay-gate-head .label { font-size: 10.5px; letter-spacing: 0.04em; color: var(--it-muted); }
.oc-app .receipt-lines > div { padding-block: 6px; border-bottom: 1px solid #1f1f1f; font-size: 12px; }
.oc-app .receipt-total strong { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; color: #fff; }
.oc-app .receipt-total span { font-size: 12.5px; }
.oc-app .promo { padding: 10px 12px; border: 1px solid #292929; border-radius: var(--it-radius); background: #121212; }
.oc-app .promo-label { font-size: 11.5px; color: var(--it-muted); }
.oc-app .promo-input { min-height: 32px; padding: 6px 10px; font-size: 12.5px; border-radius: 3px; }
.oc-app .promo-row .button { min-height: 32px; }
.oc-app .callout-gold, .oc-app .callout-loss, .oc-app .callout-profit { padding: 10px 12px; border-radius: var(--it-radius); border-left-width: 2px; }
.oc-app .callout-gold { background: #1b1b1b; border-left-color: var(--it-buy); }
.oc-app .pay-shell { gap: 16px; }
.oc-app .pay-layout { gap: 20px; }
.oc-app .pay-gate-head .h2, .oc-app .pay-gate h2 { font-size: 15px; }
.oc-app .index-list li { font-size: 12.5px; }
.oc-app .eyebrow { font-size: 10.5px; letter-spacing: 0.06em; color: var(--it-muted); }
.oc-app .edu-list h3 { font-size: 13px; font-weight: 600; }
.oc-app .edu-list p { font-size: 12.5px; color: var(--it-muted); }
.oc-app .edu-list li { padding: 10px 0; border-top-color: #1f1f1f; }
.oc-app .index-list > li { padding-block: 12px; border-top-color: #292929; }
.oc-app .index-list > li:last-child { border-bottom-color: #292929; }
.oc-app .index-list > li::before { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: var(--it-buy); }
@media (min-width: 760px) { .oc-app .index-tight > li { grid-template-columns: 3rem minmax(0, 1fr); } }
.oc-app .checkout .callout { margin-bottom: 12px; }
