@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-primary: #121926;
  --bg-secondary: #0c111d;
  --bg-tertiary: #333741;
  --bg-elevated: #1d222d;
  --bg-hover: #333741;
  --border-primary: #85888e;
  --border-secondary: #41454f;
  --border-tertiary: #61646c;
  --text-primary: #f5f5f6;
  --text-secondary: #cecfd2;
  --text-tertiary: #94969c;
  --text-disabled: #61646c;
  --brand: #0f71f0;
  --brand-hover: #3789f2;
  --success: #2ab666;
  --success-soft: rgba(42, 182, 102, .16);
  --chip-success-bg: #1d222d;
  --error: #f97066;
  --error-soft: rgba(249, 112, 102, .16);
  --chip-error-bg: #1d222d;
  --warning: #fdb022;
  --sidebar: #191e24;
  --heat-rgb: 15, 113, 240;
  --shadow: none;
  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .625rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f2f4f7;
  --bg-tertiary: #eaecf0;
  --bg-elevated: #ffffff;
  --bg-hover: #f2f4f7;
  --border-primary: #8794a6;
  --border-secondary: #e1e4eb;
  --border-tertiary: #f2f4f7;
  --text-primary: #101828;
  --text-secondary: #344054;
  --text-tertiary: #475467;
  --text-disabled: #98a2b3;
  --brand: #0d5ec8;
  --brand-hover: #0f71f0;
  --success: #007030;
  --success-soft: rgba(0, 112, 48, .12);
  --chip-success-bg: #f4fbf7;
  --error: #d92d20;
  --error-soft: rgba(217, 45, 32, .11);
  --chip-error-bg: #fffbfa;
  --heat-rgb: 13, 94, 200;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-width: 0; max-width: 100%; margin: 0; overflow-x: hidden; }
body {
  color: var(--text-primary);
  background: var(--bg-primary);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: .8125rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.55rem); letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { margin: 0; font-size: .8125rem; font-weight: 600; }
.eyebrow { color: var(--text-tertiary); font-size: .625rem; font-weight: 650; letter-spacing: .09em; line-height: 1.2; }
.numeric, .status-strip, input, .ticker-chip { font-variant-numeric: tabular-nums; }

.app-shell { display: grid; grid-template-columns: 12.25rem minmax(0, 1fr); min-height: 100dvh; background: var(--bg-secondary); }
.sidebar { display: flex; flex-direction: column; gap: 2rem; padding: 1rem .75rem; color: #f5f5f6; background: var(--sidebar); border-right: 1px solid #333741; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: inherit; font-size: 1rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 1.75rem; height: 1.75rem; color: white; background: #0f71f0; border-radius: var(--radius-sm); place-items: center; }
.nav-list { display: grid; gap: .25rem; }
.nav-item { display: flex; justify-content: space-between; align-items: center; min-height: 2rem; padding: 0 .5rem; color: #cecfd2; border-left: 2px solid transparent; border-radius: var(--radius-sm); text-decoration: none; }
.nav-item:hover { background: #272b36; color: #fff; }
.nav-item.is-active { color: #fff; background: #2e323d; border-left-color: #0f71f0; }
kbd { padding: .08rem .25rem; color: #cecfd2; background: #41454f; border: 0; border-radius: .1875rem; font: 600 .5625rem/1 Inter, sans-serif; letter-spacing: .04em; }
.sidebar-note { margin-top: auto; color: #94969c; font-size: .625rem; line-height: 1.55; }

.main-content { min-width: 0; padding: clamp(1rem, 2vw, 2rem); }
.topbar, .dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 112.5rem; margin: 0 auto; }
.topbar { min-height: 3.25rem; }
.topbar-actions { display: flex; gap: .375rem; }
.toolbar-button, .icon-button { display: inline-flex; gap: .375rem; align-items: center; min-height: 2rem; padding: 0 .5rem; color: var(--text-secondary); cursor: pointer; background: transparent; border: 0; border-radius: var(--radius-sm); }
.toolbar-button:hover, .icon-button:hover { color: var(--text-primary); background: var(--bg-hover); }
.icon-button { justify-content: center; width: 2rem; padding: 0; font-size: 1.25rem; }

.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; max-width: 112.5rem; min-height: 2.25rem; margin: 1rem auto; padding: .375rem .625rem; color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border-secondary); border-radius: var(--radius-sm); font-size: .6875rem; }
#status-admin-details { display: contents; }
.status-dot { width: .5rem; height: .5rem; background: var(--text-disabled); border-radius: 50%; }
.status-dot.is-live { background: var(--success); box-shadow: 0 0 0 .1875rem var(--success-soft); }
.status-dot.is-alert { background: var(--warning); }
.status-divider { width: 1px; height: .875rem; background: var(--border-secondary); }

.dashboard { max-width: 112.5rem; margin: 1.75rem auto 3rem; }
.dashboard-head { margin-bottom: .75rem; }
.rows-summary { color: var(--text-tertiary); font-size: .75rem; }
.feed-warning { margin: 0 0 .75rem; padding: .5rem .625rem; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent); border-radius: var(--radius-sm); }
.groups { display: grid; gap: .75rem; }
.market-group { min-width: 0; overflow: hidden; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
.group-heading { display: flex; align-items: center; width: 100%; min-height: 2.2rem; padding: 0 .625rem; color: var(--text-secondary); cursor: pointer; background: var(--bg-secondary); border: 0; border-bottom: 1px solid var(--border-secondary); font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-align: left; }
.group-heading:hover { background: var(--bg-hover); }
.group-chevron { width: 1rem; font-size: .9rem; transition: transform .15s ease; }
.market-group.is-collapsed .group-chevron { transform: rotate(-90deg); }
.market-group.is-collapsed .table-scroll, .market-group.is-collapsed .empty-state { display: none; }
.group-count { margin-left: .5rem; padding: .06rem .3rem; color: var(--text-tertiary); background: var(--bg-tertiary); border-radius: 999px; font-size: .625rem; letter-spacing: 0; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.patterns-table { --ticker-width: 12ch; width: 100%; min-width: 55rem; border-collapse: collapse; table-layout: fixed; }
.patterns-table th { height: 1.9rem; padding: 0 .625rem; color: var(--text-tertiary); border-bottom: 1px solid var(--border-secondary); font-size: .625rem; font-weight: 500; text-align: right; white-space: nowrap; }
.patterns-table th[data-live-sort] { cursor: pointer; }.patterns-table th[data-live-sort]:hover { color: var(--text-primary); }
.patterns-table th:nth-child(1) { width: var(--ticker-width); text-align: left; }
.patterns-table th:nth-child(2) { width: 14%; }
.patterns-table th:nth-child(3) { width: 10%; }
.patterns-table th:nth-child(4) { width: 11%; }
.patterns-table th:nth-child(5) { width: 12%; }
.patterns-table th:nth-child(6) { width: 17%; }
.patterns-table th:nth-child(7) { width: 10%; }
.patterns-table th:nth-child(8) { width: 17%; }
.patterns-table td { height: 1.9rem; padding: .25rem .625rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-secondary); overflow: hidden; font-size: .75rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.patterns-table tr:last-child td { border-bottom: 0; }
.density-comfortable .patterns-table td { height: 2.45rem; }
.patterns-table tr:hover td { background: var(--bg-hover); }
.patterns-table td:first-child { text-align: left; }
.pattern-row.is-idle { opacity: .47; }
.ticker-cell { display: flex; gap: .375rem; align-items: center; overflow: visible !important; }
.ticker-chip { display: inline-block; max-width: none; padding: .125rem .3rem; overflow: visible; color: var(--text-primary); background: var(--bg-tertiary); border-radius: var(--radius-sm); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .6875rem; font-weight: 600; text-overflow: clip; vertical-align: middle; }
.side-marker { width: .45rem; height: .45rem; border-radius: 50%; }
.side-buy { color: var(--success) !important; }.side-buy .side-marker { background: var(--success); }
.side-sell { color: var(--error) !important; }.side-sell .side-marker { background: var(--error); }
.side-buy .ticker-chip { color: var(--success); background: var(--chip-success-bg); }
.side-sell .ticker-chip { color: var(--error); background: var(--chip-error-bg); }
.row-alert-button { width: 1.25rem; height: 1.25rem; padding: 0; color: var(--text-tertiary); cursor: pointer; background: transparent; border: 0; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1; }.row-alert-button:hover { color: var(--text-primary); background: var(--bg-hover); }.row-alert-button.is-active { color: var(--brand); }
.rub-cell { position: relative; color: var(--text-primary) !important; background: transparent; }
.rub-cell::after { position: absolute; z-index: 0; inset: .18rem auto .18rem 0; width: calc(var(--heat, 0) * 100%); content: ""; background: rgba(var(--heat-rgb), .32); border-radius: 0 .1875rem .1875rem 0; transition: width .28s ease; pointer-events: none; }
.rub-value { position: relative; z-index: 1; }
.delta-cell.is-up { color: var(--success) !important; }.delta-cell.is-down { color: var(--error) !important; }

.empty-state { margin: 0; padding: 1rem .625rem; color: var(--text-tertiary); font-size: .75rem; }

.history-view { max-width: 112.5rem; margin: 1.75rem auto 3rem; }.history-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin: 1rem 0 .375rem; padding: .625rem; background: var(--bg-elevated); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }.history-filter > label { min-width: 7rem; }.history-filter .primary-button { min-height: 2rem; }.period-buttons { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }.period-buttons .toolbar-button.is-selected { color: var(--text-primary); background: var(--bg-tertiary); box-shadow: inset 0 -2px var(--brand); }.history-filter-note { color: var(--text-tertiary); font-size: .6875rem; }.history-groups { margin-top: 1rem; }.history-group-heading { cursor: default; }.history-group-heading:hover { background: var(--bg-secondary); }
.admin-tokens-view { max-width: 112.5rem; margin: 1.75rem auto 3rem; }.admin-tokens-note { margin: 1rem 0 .5rem; color: var(--text-tertiary); font-size: .75rem; }.admin-tokens-table-scroll { background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }.admin-tokens-table { width: 100%; min-width: 67rem; border-collapse: collapse; font-size: .75rem; }.admin-tokens-table th { height: 1.9rem; padding: 0 .625rem; color: var(--text-tertiary); border-bottom: 1px solid var(--border-secondary); font-size: .625rem; font-weight: 500; text-align: left; white-space: nowrap; }.admin-tokens-table th.numeric, .admin-tokens-table td.numeric { text-align: right; }.admin-tokens-table td { min-height: 2.3rem; padding: .35rem .625rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-secondary); white-space: nowrap; }.admin-tokens-table tr:last-child td { border-bottom: 0; }.admin-tokens-table tr.is-disabled { opacity: .58; }.admin-token-name { display: grid; gap: .12rem; }.admin-token-name strong { color: var(--text-primary); font-weight: 600; }.admin-token-name small { color: var(--text-tertiary); }.admin-live-sessions { display: inline-grid; min-width: 1.35rem; min-height: 1.35rem; place-items: center; color: var(--success); background: var(--success-soft); border-radius: 999px; font-variant-numeric: tabular-nums; }.admin-tokens-table input { min-width: 11rem; }.admin-token-actions { display: flex; align-items: center; gap: .25rem; }.admin-token-actions select { width: auto; min-height: 2rem; padding-inline: .35rem; }.admin-token-action { min-height: 2rem; font-size: .6875rem; }.admin-token-action:disabled { cursor: not-allowed; opacity: .45; }
.history-table { width: 100%; min-width: 49rem; border-collapse: collapse; font-size: .75rem; }.history-table th { height: 1.9rem; padding: 0 .625rem; color: var(--text-tertiary); border-bottom: 1px solid var(--border-secondary); font-size: .625rem; font-weight: 500; text-align: right; white-space: nowrap; }.history-table th[data-history-sort], .history-table th[data-history-summary-sort] { cursor: pointer; }.history-table th[data-history-sort]:hover, .history-table th[data-history-summary-sort]:hover { color: var(--text-primary); }.history-table th.text-column { text-align: left; }.history-table td { min-height: 2.2rem; padding: .35rem .625rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-secondary); text-align: right; white-space: nowrap; }.history-summary-table td:first-child, .history-episodes-card .history-table td:nth-child(3) { text-align: left; }.history-table tr:last-child td { border-bottom: 0; }.history-summary-row { cursor: pointer; }.history-summary-row:hover td { background: var(--bg-hover); }.history-summary-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.split-bar { display: inline-flex; width: clamp(4rem, 7vw, 7rem); height: .38rem; overflow: hidden; vertical-align: middle; background: var(--bg-tertiary); border-radius: 999px; }.split-long { background: var(--success); }.split-short { background: var(--error); }.split-label { display: inline-block; min-width: 4.2rem; margin-left: .35rem; color: var(--text-tertiary); font-size: .625rem; }.split-label b:first-child { color: var(--success); }.split-label b:last-child { color: var(--error); }
.history-ticker-view { display: grid; gap: 1rem; }.ticker-history-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }.history-symbol { margin-top: .2rem; color: var(--text-tertiary); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .6875rem; }.history-side-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }.side-total { display: grid; gap: .25rem; padding: .75rem; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-left: 3px solid var(--border-primary); border-radius: var(--radius-md); }.side-total span { color: var(--text-tertiary); font-size: .6875rem; }.side-total strong { font-size: clamp(.95rem, .8rem + .45vw, 1.25rem); font-variant-numeric: tabular-nums; }.side-total.buy { border-left-color: var(--success); }.side-total.sell { border-left-color: var(--error); }
.history-detail-grid { display: grid; grid-template-columns: minmax(17rem, 1fr) minmax(17rem, 1fr); gap: .75rem; }.history-card { min-width: 0; padding: .875rem; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }.history-card h3 { margin-bottom: .875rem; }.bar-list { display: grid; gap: .5rem; }.bar-line { display: grid; grid-template-columns: 5.5rem minmax(3rem, 1fr) 4rem; gap: .5rem; align-items: center; color: var(--text-secondary); font-size: .6875rem; font-variant-numeric: tabular-nums; }.bar-line b { color: var(--text-primary); font-weight: 500; text-align: right; }.bar-track { height: .42rem; overflow: hidden; background: var(--bg-tertiary); border-radius: 999px; }.bar-track i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }.hour-chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: .16rem; height: 7.5rem; padding-bottom: 1.1rem; }.hour-column { position: relative; display: flex; align-items: end; height: 100%; background: color-mix(in srgb, var(--bg-tertiary) 65%, transparent); }.hour-column i { display: block; width: 100%; min-height: 1px; background: var(--brand); }.hour-column span { position: absolute; top: calc(100% + .2rem); left: 50%; color: var(--text-tertiary); font-size: .5rem; transform: translateX(-50%); }.history-episodes-card { overflow: hidden; }.history-pagination { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .75rem; }.history-side { display: inline-flex; padding: .1rem .3rem; border-radius: var(--radius-sm); font-size: .625rem; font-weight: 600; }.history-side.buy { color: var(--success); background: var(--success-soft); }.history-side.sell { color: var(--error); background: var(--error-soft); }.history-positive { color: var(--success) !important; }.history-negative { color: var(--error) !important; }

.login-view { display: grid; min-height: calc(100dvh - 9rem); place-items: center; }
.login-card { display: grid; gap: .75rem; width: min(100%, 24rem); padding: clamp(1rem, 4vw, 2rem); background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
.login-card h2 { font-size: 1.15rem; }.login-card p { color: var(--text-secondary); font-size: .75rem; }
label { display: grid; gap: .3rem; color: var(--text-secondary); font-size: .75rem; }
input, select { width: 100%; min-height: 2rem; padding: .25rem .45rem; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: var(--radius-sm); outline: none; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15,113,240,.2); }
small { color: var(--text-tertiary); font-size: .625rem; }.form-error { min-height: 1rem; color: var(--error) !important; }.toggle-label { display: flex; align-items: center; gap: .5rem; }.toggle-label input { width: auto; min-height: 0; }.settings-note { margin: 0; color: var(--text-secondary); font-size: .75rem; line-height: 1.45; }.settings-section-title { margin: .125rem 0 -.5rem; color: var(--text-primary); font-size: .6875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }.service-settings { padding: .75rem; color: var(--text-secondary); background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-sm); font-size: .6875rem; }.service-settings > p:not(.settings-section-title) { margin: .35rem 0 .6rem; }.service-settings dl { display: grid; gap: .35rem; margin: 0; }.service-settings dl div { display: flex; justify-content: space-between; gap: .5rem; }.service-settings dt { color: var(--text-tertiary); }.service-settings dd { margin: 0; color: var(--text-primary); text-align: right; font-variant-numeric: tabular-nums; }
.primary-button { min-height: 2.15rem; padding: 0 .75rem; color: white; cursor: pointer; background: var(--brand); border: 0; border-radius: var(--radius-sm); font-weight: 600; }.primary-button:hover { background: var(--brand-hover); }

.settings-panel { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto 1fr; width: min(100vw, 22rem); padding: 1rem; overflow-y: auto; background: var(--bg-elevated); border-left: 1px solid var(--border-secondary); transform: translateX(102%); transition: transform .2s ease; }.settings-panel.is-open { transform: translateX(0); }
.settings-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.25rem; }.settings-panel form { display: grid; align-content: start; gap: 1rem; }.scrim { position: fixed; z-index: 10; inset: 0; background: rgba(12,17,29,.52); }.evicted-toast { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; display: grid; gap: .2rem; max-width: 22rem; padding: .75rem; color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--error); border-radius: var(--radius-sm); }.evicted-toast span { color: var(--text-secondary); font-size: .75rem; }.notification-toast, .alert-menu { position: fixed; z-index: 31; right: 1rem; bottom: 1rem; max-width: 22rem; padding: .7rem .8rem; color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--brand); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .75rem; }.alert-menu { right: auto; bottom: auto; display: grid; gap: .625rem; width: min(calc(100vw - 1rem), 16.25rem); }.alert-menu p { color: var(--text-secondary); }.alert-delay-options, .alert-menu-actions { display: flex; flex-wrap: wrap; gap: .375rem; }.alert-delay-options button { min-width: 2.75rem; min-height: 1.85rem; color: var(--text-secondary); cursor: pointer; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-sm); }.alert-delay-options button.is-selected, .alert-delay-options button:hover { color: white; background: var(--brand); border-color: var(--brand); }

.brand-mark { overflow: hidden; background: transparent; }.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-alert-button:not(.is-active) { opacity: .45; }.row-alert-button.is-active { opacity: 1; color: var(--brand); text-shadow: 0 0 .35rem color-mix(in srgb, var(--brand) 40%, transparent); }
.ticker-threshold-button { width: 1.1rem; height: 1.1rem; padding: 0; color: var(--text-tertiary); cursor: pointer; background: transparent; border: 0; border-radius: 50%; font-size: .7rem; line-height: 1; opacity: 0; }.ticker-cell:hover .ticker-threshold-button, .ticker-threshold-button.is-custom { opacity: 1; }.ticker-threshold-button.is-custom { color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.group-thresholds { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; padding-right: .5rem; color: var(--brand); font-size: .5625rem; font-weight: 500; letter-spacing: 0; }.ticker-threshold-chip { padding: .08rem .25rem; background: color-mix(in srgb, var(--brand) 13%, transparent); border-radius: 999px; }
.admin-create-token-form { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(7rem, .45fr) minmax(8rem, .45fr) auto; gap: .5rem; align-items: end; margin: .75rem 0; padding: .625rem; background: var(--bg-elevated); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }.admin-create-token-form small { font-weight: 400; }.admin-token-once { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin: .75rem 0; padding: .625rem; color: var(--text-secondary); background: color-mix(in srgb, var(--warning) 10%, var(--bg-elevated)); border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border-secondary)); border-radius: var(--radius-md); }.admin-token-once strong { color: var(--text-primary); }.admin-token-once code { min-width: 0; overflow: hidden; color: var(--text-primary); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }.admin-token-once small { grid-column: 1 / -1; }
.ticker-threshold-menu { position: fixed; z-index: 31; display: grid; gap: .625rem; width: min(calc(100vw - 1rem), 16.25rem); padding: .7rem .8rem; color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--brand); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .75rem; }.ticker-threshold-menu p { color: var(--text-secondary); }
@media (max-width: 48rem) { .admin-create-token-form { grid-template-columns: 1fr 1fr; }.admin-create-token-form > .primary-button, .admin-token-once { grid-column: 1 / -1; }.ticker-threshold-button { opacity: 1; } }
@media (min-width: 160rem) { .topbar, .dashboard, .status-strip { max-width: 112.5rem; } }
@media (max-width: 48rem) { .app-shell { grid-template-columns: 1fr; }.sidebar { display: none; }.main-content { padding: 1rem; }.topbar { align-items: start; }.theme-label { display: none; }.status-divider { display: none; }.status-strip { gap: .25rem .6rem; }.patterns-table, .history-table, .admin-tokens-table { min-width: 0; }.patterns-table thead, .history-table thead, .admin-tokens-table thead { display: none; }.patterns-table, .patterns-table tbody, .patterns-table tr, .patterns-table td, .history-table, .history-table tbody, .history-table tr, .history-table td, .admin-tokens-table, .admin-tokens-table tbody, .admin-tokens-table tr, .admin-tokens-table td { display: block; width: 100%; height: auto; }.patterns-table tr, .history-table tr, .admin-tokens-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: .45rem .625rem; border-bottom: 1px solid var(--border-secondary); }.patterns-table tr:last-child, .history-table tr:last-child, .admin-tokens-table tr:last-child { border-bottom: 0; }.patterns-table td, .history-table td, .admin-tokens-table td { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; padding: .18rem 0; overflow: visible; border: 0; text-align: right !important; white-space: normal; }.patterns-table td::before, .history-table td::before, .admin-tokens-table td::before { flex: 0 0 auto; color: var(--text-tertiary); content: attr(data-label); font-size: .625rem; text-align: left; }.patterns-table .ticker-cell { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: .4rem; }.patterns-table .ticker-cell::before { display: none; }.rub-cell { padding-inline: .25rem !important; border-radius: .1875rem; }.dashboard, .history-view, .admin-tokens-view { margin-top: 1.25rem; }.dashboard-head { align-items: end; }.rows-summary { text-align: right; }.status-strip { font-size: .625rem; }.history-filter { display: grid; grid-template-columns: 1fr 1fr; }.history-filter .period-buttons, .history-filter .primary-button, .history-filter-note { grid-column: 1 / -1; }.history-filter > label { min-width: 0; }.history-side-totals, .history-detail-grid { grid-template-columns: 1fr; }.ticker-history-head { align-items: start; }.history-table td:nth-child(3) { text-align: right; }.history-table .ticker-chip { margin-left: auto; }.split-bar { width: 7rem; }.history-episodes-card { padding: 0; }.history-episodes-card h3 { padding: .875rem .875rem 0; }.admin-token-actions { justify-content: flex-end; flex-wrap: wrap; }.admin-tokens-table input { width: min(100%, 16rem); } }
@media (max-width: 29rem) { .patterns-table tr { grid-template-columns: 1fr; }.topbar-actions { gap: 0; }.toolbar-button { padding-inline: .35rem; }.main-content { padding-inline: .75rem; } }
