body.page-workspace {
  --ws-bg: #0f172a;
  --ws-side: #1e293b;
  --ws-card: #1e293b;
  --ws-input: #0f172a;
  --ws-text: #f8fafc;
  --ws-muted: #cbd5e1;
  --ws-accent: #6366f1;
  --ws-icon: #4f46e5;
  --ws-scroll: #6366f1;
  --ws-on-accent: #ffffff;
  --site-header-height: 56px;
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--ws-scroll) transparent;
}
.ws-app {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}
.ws-side {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 248px;
  height: 100vh;
  overflow: auto;
  flex: 0 0 248px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px 14px;
  background: var(--ws-side);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: var(--ws-scroll) transparent;
}
.ws-side::-webkit-scrollbar,
body.page-workspace::-webkit-scrollbar { width: 10px; height: 10px; }
.ws-side::-webkit-scrollbar-thumb,
body.page-workspace::-webkit-scrollbar-thumb {
  background: var(--ws-scroll);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.ws-logo {
  display: block;
  margin: 0 8px 12px;
  color: var(--ws-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.ws-group {
  margin: 12px 8px 4px;
  color: var(--ws-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ws-menu { display: flex; flex-direction: column; gap: 2px; }
.ws-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ws-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ws-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ws-link.is-active {
  background: color-mix(in srgb, var(--ws-accent) 18%, transparent);
  color: var(--ws-text);
  box-shadow: inset 3px 0 0 var(--ws-accent);
}
.ws-badge {
  width: 28px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--ws-icon);
  color: var(--ws-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ws-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-rule {
  display: none;
}
.ws-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ws-accent) 45%, transparent);
}
.ws-logout { margin: 0; }
.ws-version {
  margin: 8px 8px 0;
  color: var(--ws-muted);
  font-size: 11px;
  text-align: right;
}
.ws-col { flex: 1; min-width: 0; }
.ws-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px;
  background: color-mix(in srgb, var(--ws-bg) 92%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.ws-bar-email {
  margin-right: auto;
  color: var(--ws-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-menu-btn,
.ws-backdrop { display: none; }
body.page-workspace main {
  max-width: 1200px;
  width: 100%;
}
.ws-mobile-head { display: none; }
body.page-workspace .section { padding: 18px 0 28px; }
body.page-workspace .dashboard-bottom-nav { display: none; }
body.page-workspace.page-cabinet main > .section > .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
body.page-workspace .card,
body.page-workspace .screener-card,
body.page-workspace .cabinet-screener-card,
body.page-workspace .cabinet-tool-card,
body.page-workspace .tester-card,
body.page-workspace .settings-card,
body.page-workspace .stat-card,
body.page-workspace .pricing-card,
body.page-workspace .faq-item {
  background: var(--ws-card);
  border-color: rgba(255, 255, 255, 0.1);
}
body.page-workspace .cabinet-screener-card:hover {
  border-color: var(--ws-accent);
  box-shadow: none;
  transform: none;
}
body.page-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.btceth-inline-num):not(.ath-date-text):not(.ath-date-native),
body.page-workspace select,
body.page-workspace textarea {
  background: var(--ws-input);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ws-text);
  border-radius: 10px;
}
body.page-workspace input:not(.ath-date-text):not(.ath-date-native):focus,
body.page-workspace select:focus,
body.page-workspace textarea:focus {
  outline: none;
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-accent) 24%, transparent);
}
body.page-workspace .ath-date-control {
  background: var(--ws-input);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--ws-text);
}
body.page-workspace .ath-date-control:focus-within {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-accent) 24%, transparent);
}
body.page-workspace .ath-filter-field .ath-date-text,
body.page-workspace .ath-filter-field .ath-date-text:focus,
body.page-workspace .filter-field .ath-date-text,
body.page-workspace .filter-field .ath-date-text:focus,
body.page-workspace .notif-filter-date .ath-date-text,
body.page-workspace .notif-filter-date .ath-date-text:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  color: var(--ws-text);
}
body.page-workspace .ath-date-btn {
  color: var(--ws-muted);
}
body.page-workspace .ath-date-btn:hover {
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 16%, transparent);
}
body.page-workspace .ath-date-native {
  color-scheme: dark;
}
body.page-workspace .ws-style-open {
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 72%, var(--ws-text));
}
body.page-workspace .ws-style-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ws-accent);
}
body.page-workspace .ws-style-emoji svg {
  display: block;
}
body.page-workspace .cabinet-details-toggle {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 22%, transparent);
}
body.page-workspace .cabinet-details-toggle:hover {
  background: color-mix(in srgb, var(--ws-accent) 18%, var(--ws-input));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .cabinet-details-toggle[aria-pressed="false"] {
  color: var(--ws-muted);
}
body.page-workspace .cabinet-details-toggle svg {
  stroke: currentColor;
}
body.page-workspace .screener-top-pairs input.btceth-inline-num,
body.page-workspace .screener-top-pairs input.btceth-inline-num:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: 2.4ch;
  height: 1.15em;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
  font: inherit;
  color: inherit;
}
body.page-workspace .filters-pumpdump-block,
body.page-workspace .filters-row-pumpdump,
body.page-workspace .filters-cvd-row,
body.page-workspace .filters-signal-types-row,
body.page-workspace .settings-tabs {
  background: var(--ws-card);
  border-color: rgba(255, 255, 255, 0.12);
}
body.page-workspace .screener-card.screener-history-view,
body.page-workspace .screener-card.screener-history-view.techta,
body.page-workspace[data-ws-theme="classic"] .screener-card.screener-history-view,
body.page-workspace[data-ws-theme="classic"] .screener-card.screener-history-view.techta {
  border-top: none;
}
body.page-workspace .screener-top-pairs,
body.page-workspace .notify-toggle,
body.page-workspace .screener-pro-btn,
body.page-workspace .screener-pro-variant {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 48%, transparent);
}
body.page-workspace .screener-top-pairs select,
body.page-workspace .screener-top-pairs select option {
  background: var(--ws-input);
  color: var(--ws-text);
}
body.page-workspace .notify-toggle input {
  accent-color: var(--ws-accent);
}
body.page-workspace .notify-toggle:has(input:checked) {
  background: color-mix(in srgb, var(--ws-accent) 24%, var(--ws-input));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .screener-pro-btn:hover {
  background: color-mix(in srgb, var(--ws-accent) 22%, var(--ws-input));
  color: var(--ws-text);
}
body.page-workspace .screener-pro-btn.is-active {
  background: var(--ws-accent);
  color: var(--ws-on-accent, #111);
  border-color: var(--ws-accent);
}
body.page-workspace .screener-signals .ctx-btn {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 48%, transparent);
}
body.page-workspace .screener-signals .ctx-btn:hover {
  background: color-mix(in srgb, var(--ws-accent) 18%, var(--ws-input));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .sr-mode-btn.is-active,
body.page-workspace .sr-zone-style-switch .sr-mode-btn.is-active {
  background: color-mix(in srgb, var(--ws-accent) 32%, var(--ws-input));
  color: var(--ws-text);
  box-shadow: none;
}
body.page-workspace .muted,
body.page-workspace .ws-bar-email { color: var(--ws-muted); }
body.page-workspace tbody tr:hover { background: rgba(255, 255, 255, 0.045); }
/* В кабинете футер (риски / оферта) не показываем */
body.page-workspace footer,
body.page-workspace .sa-partner-footer { display: none; }
@media (min-width: 900px) {
  body.page-workspace main {
    max-width: none;
    width: 100%;
  }
}
/* Live-скринер: карточка на высоту экрана, прокрутка только у ленты сигналов */
@media (min-width: 900px) {
  html:has(body.page-workspace main > .screener-card:not(.screener-history-view) > .screener-signals),
  body.page-workspace:has(main > .screener-card:not(.screener-history-view) > .screener-signals) {
    height: 100%;
    overflow: hidden;
  }
  body.page-workspace .ws-app:has(main > .screener-card:not(.screener-history-view) > .screener-signals) {
    height: 100dvh;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }
  body.page-workspace .ws-col:has(main > .screener-card:not(.screener-history-view) > .screener-signals) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  body.page-workspace .ws-col:has(main > .screener-card:not(.screener-history-view) > .screener-signals) > main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 12px;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
  body.page-workspace main > .screener-card:not(.screener-history-view):has(> .screener-signals) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
  }
  body.page-workspace main > .screener-card:not(.screener-history-view):has(> .screener-signals) > .screener-head,
  body.page-workspace main > .screener-card:not(.screener-history-view):has(> .screener-signals) > .screener-filters-panel {
    flex: 0 0 auto;
  }
  body.page-workspace main > .screener-card:not(.screener-history-view) > .screener-signals {
    flex: 1 1 auto;
    min-height: 120px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ws-scroll) transparent;
  }
  body.page-workspace main > .screener-card:not(.screener-history-view) > .screener-signals table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ws-card, #1e293b);
  }
}
@media (max-width: 899px) {
  body.page-workspace main > .screener-card:not(.screener-history-view) > .screener-signals {
    max-height: min(55vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.cabinet-tour-target {
  position: relative;
  z-index: 230 !important;
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 12px;
  pointer-events: none;
}
.cabinet-tour-card {
  position: fixed;
  z-index: 240;
  max-width: calc(100vw - 24px);
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--ws-card, #1e293b);
  color: var(--ws-text, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--ws-text, #fff) 16%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.cabinet-tour-progress {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ws-muted, #cbd5e1);
}
.cabinet-tour-title { margin: 0 0 8px; font-size: 16px; }
.cabinet-tour-body { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.cabinet-tour-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
body.cabinet-tour-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  z-index: 210;
}
body.cabinet-tour-open .ws-side { z-index: 225; }
@media (max-width: 899px) {
  /* На телефоне только классический стиль кабинета. */
  html:has(body.page-workspace),
  body.page-workspace {
    --ws-bg: #0f172a !important;
    --ws-side: #1e293b !important;
    --ws-card: #1e293b !important;
    --ws-input: #0f172a !important;
    --ws-text: #f8fafc !important;
    --ws-muted: #cbd5e1 !important;
    --ws-accent: #6366f1 !important;
    --ws-on-accent: #ffffff !important;
    --ws-icon: #4f46e5 !important;
    --ws-scroll: #6366f1 !important;
  }
  .ws-side,
  .ws-bar,
  .ws-backdrop,
  .ws-style,
  .ws-style-panel { display: none !important; }
  body.cabinet-tour-open .ws-side {
    display: flex !important;
    position: fixed;
    z-index: 225;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    overflow: auto;
  }
  .ws-app { display: block; }
  .ws-mobile-head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ws-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
  }
  .ws-mobile-head .header-logout-icon {
    min-width: 36px;
    width: 36px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
  }
  body.page-workspace main { max-width: 1200px; }
  body.page-workspace .cabinet-screener-card.pump { border-top: 3px solid #6366f1; }
  body.page-workspace .cabinet-screener-card.oi { border-top: 3px solid #10b981; }
  body.page-workspace .cabinet-screener-card.extremes { border-top: 3px solid #f59e0b; }
  body.page-workspace .cabinet-screener-card.funding { border-top: 3px solid #22d3ee; }
  body.page-workspace .cabinet-screener-card.liquidations { border-top: 3px solid #ef4444; }
  body.page-workspace .cabinet-screener-card.longshort { border-top: 3px solid #a78bfa; }
  body.page-workspace .cabinet-screener-card.regime { border-top: 3px solid #f97316; }
  body.page-workspace .cabinet-screener-card.pulsegrid { border-top: 3px solid #22d3ee; }
  body.page-workspace .cabinet-screener-card.techta { border-top: 3px solid #c084fc; }
  body.page-workspace .cabinet-screener-card.pumpdump-tester,
  body.page-workspace .cabinet-screener-card.pd-oi-backtest { border-top: 3px solid #a855f7; }
  body.page-workspace .cabinet-screener-card.oi-tester { border-top: 3px solid #14b8a6; }
  body.page-workspace .cabinet-screener-card.pumpdump-optimizer,
  body.page-workspace .cabinet-screener-card.pd-oi-optimizer { border-top: 3px solid #8b5cf6; }
  body.page-workspace .cabinet-screener-card.oi-optimizer { border-top: 3px solid #0d9488; }
  body.page-workspace .cabinet-screener-card.pumpdump-autotrade,
  body.page-workspace .cabinet-screener-card.btceth-overview,
  body.page-workspace .cabinet-screener-card.btceth-system { border-top: 3px solid #6366f1; }
  body.page-workspace .cabinet-screener-card.oi-autotrade { border-top: 3px solid #10b981; }
  body.page-workspace .cabinet-screener-card.pd-oi-autotrade { border-top: 3px solid #2dd4bf; }
  body.page-workspace .cabinet-screener-card.btceth-backtest-group { border-top: 3px solid #8b5cf6; }
  body.page-workspace .cabinet-screener-card.btceth-autotrade-group { border-top: 3px solid #14b8a6; }
  body.page-workspace .cabinet-screener-card.promode { border-top: 3px solid #e879f9; }
}
.ws-style { position: relative; }
.ws-style-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(268px, calc(100vw - 24px));
  max-height: min(78vh, 520px);
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ws-side);
  color: var(--ws-text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}
.ws-style-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.ws-style-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ws-style-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: transparent;
  color: var(--ws-text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.ws-style-swatch-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.ws-style-swatch-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-style-swatch.is-active,
.ws-style-custom-btn.is-active {
  border-color: var(--ws-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ws-accent) 55%, transparent);
  background: color-mix(in srgb, var(--ws-accent) 14%, transparent);
}
.ws-style-custom-btn {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 0 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: transparent;
  color: var(--ws-text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.ws-style-open {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.ws-style-emoji { display: block; font-size: 16px; line-height: 1; }
.ws-style-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 12px; }
.ws-style-fields[hidden],
#wsStyleSave[hidden] { display: none !important; }
.ws-style-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ws-muted); }
.ws-style-field input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 2px;
  background: var(--ws-input);
  border-radius: 8px;
}
.ws-style-panel .btn { width: 100%; }
@media (max-width: 640px) {
  .ws-style-panel {
    position: fixed;
    top: 58px;
    right: 12px;
    left: auto;
  }
}
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pump { border-top: 3px solid #6366f1; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.oi { border-top: 3px solid #10b981; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.extremes { border-top: 3px solid #f59e0b; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.funding { border-top: 3px solid #22d3ee; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.liquidations { border-top: 3px solid #ef4444; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.longshort { border-top: 3px solid #a78bfa; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.regime { border-top: 3px solid #f97316; }
html:has(body.page-workspace) { scrollbar-width: thin; scrollbar-color: var(--ws-scroll) transparent; }
html:has(body.page-workspace)::-webkit-scrollbar { width: 10px; height: 10px; }
html:has(body.page-workspace)::-webkit-scrollbar-thumb {
  background: var(--ws-scroll);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.page-workspace .pg-nav {
  scrollbar-width: thin;
  scrollbar-color: var(--ws-scroll) transparent;
}
body.page-workspace .pg-nav::-webkit-scrollbar { height: 1px; }
body.page-workspace .pg-nav::-webkit-scrollbar-thumb {
  background: var(--ws-scroll);
  border: 0;
}

body.page-workspace .btn {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 45%, transparent);
}
body.page-workspace .btn-primary {
  background: var(--ws-accent);
  color: var(--ws-on-accent, #111);
  border-color: var(--ws-accent);
}
body.page-workspace .btn-primary:hover { filter: brightness(1.08); background: var(--ws-accent); }
body.page-workspace .btn-outline,
body.page-workspace .btn-secondary,
body.page-workspace .btn-ghost {
  background: transparent;
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 72%, var(--ws-text));
}
body.page-workspace .btn-outline:hover,
body.page-workspace .btn-secondary:hover,
body.page-workspace .btn-ghost:hover {
  background: color-mix(in srgb, var(--ws-accent) 18%, transparent);
  color: var(--ws-text);
}
body.page-workspace .signal-type-chip span,
body.page-workspace .lang-switch-menu {
  background: var(--ws-card);
  color: var(--ws-muted);
  border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent);
}
body.page-workspace .signal-type-chip input:checked + span,
body.page-workspace .lang-switch-btn.is-active,
body.page-workspace .pt-mode-toggle button.is-active,
body.page-workspace .pt-order-toggle button.is-active {
  background: color-mix(in srgb, var(--ws-accent) 28%, var(--ws-card));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .exchange-picker,
body.page-workspace .exchange-options {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 42%, transparent);
}
body.page-workspace .exchange-options,
body.page-workspace .btceth-strategy-options,
body.page-workspace .btceth-tf-options {
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  gap: 1px;
  padding: 4px;
}
body.page-workspace .exchange-options label {
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  color: var(--ws-text);
  font-size: 12px;
  line-height: 1.2;
  gap: 6px;
}
body.page-workspace .exchange-options label:hover {
  background: color-mix(in srgb, var(--ws-accent) 16%, var(--ws-input));
}
body.page-workspace .admin-layout {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .admin-topbar {
  background: var(--ws-side);
  color: var(--ws-text);
}
body.page-workspace .admin-nav-item,
body.page-workspace .admin-topbar-section,
body.page-workspace .admin-breadcrumb { color: var(--ws-muted); }
body.page-workspace .admin-nav-item.is-active,
body.page-workspace .admin-subnav-item.is-active {
  background: color-mix(in srgb, var(--ws-accent) 24%, transparent);
  color: var(--ws-text);
  box-shadow: inset 0 0 0 1px var(--ws-accent);
  border-color: var(--ws-accent);
}
body.page-workspace .admin-card,
body.page-workspace .admin-overview-card,
body.page-workspace .admin-subnav-item,
body.page-workspace .admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]),
body.page-workspace .admin-shell select,
body.page-workspace .admin-shell textarea {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 18%, transparent);
}
body.page-workspace .btceth-tf-picker .btceth-tf-options,
body.page-workspace .btceth-page .btceth-strategy-options {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 1fr;
}
body.page-workspace .help-nav {
  top: var(--site-header-height, 56px);
  background: var(--ws-card);
  border-color: color-mix(in srgb, var(--ws-text) 14%, transparent);
  box-shadow: none;
}
body.page-workspace .help-nav-link {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent);
}
body.page-workspace .help-nav-link:hover {
  border-color: var(--ws-accent);
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 18%, var(--ws-card));
}
body.page-workspace .help-page .card,
body.page-workspace .tool-guide-page .card,
body.page-workspace .btceth-guide-page .card {
  background: var(--ws-card);
}
body.page-workspace[data-ws-theme="classic"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --gray: #94a3b8;
  --light-gray: #e2e8f0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body.page-workspace[data-ws-theme="classic"] .btn-primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
body.page-workspace[data-ws-theme="classic"] .btn-primary:hover {
  background: #4f46e5;
  filter: none;
}
body.page-workspace[data-ws-theme="classic"] .btn-outline,
body.page-workspace[data-ws-theme="classic"] .btn-secondary,
body.page-workspace[data-ws-theme="classic"] .btn-ghost {
  border-color: rgba(99, 102, 241, 0.7);
  color: #f8fafc;
  background: transparent;
}
body.page-workspace[data-ws-theme="classic"] .btn-outline:hover,
body.page-workspace[data-ws-theme="classic"] .btn-secondary:hover,
body.page-workspace[data-ws-theme="classic"] .btn-ghost:hover {
  background: rgba(99, 102, 241, 0.18);
}
body.page-workspace[data-ws-theme="classic"] .card,
body.page-workspace[data-ws-theme="classic"] .screener-card,
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card,
body.page-workspace[data-ws-theme="classic"] .tester-card,
body.page-workspace[data-ws-theme="classic"] .settings-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pump { border-top: 3px solid #6366f1; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.oi { border-top: 3px solid #10b981; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.extremes { border-top: 3px solid #f59e0b; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.funding { border-top: 3px solid #22d3ee; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.liquidations { border-top: 3px solid #ef4444; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.longshort { border-top: 3px solid #a78bfa; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.regime { border-top: 3px solid #f97316; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pulsegrid { border-top: 3px solid #22d3ee; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.techta { border-top: 3px solid #c084fc; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pumpdump-tester,
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pd-oi-backtest { border-top: 3px solid #a855f7; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.oi-tester { border-top: 3px solid #14b8a6; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pumpdump-optimizer,
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pd-oi-optimizer { border-top: 3px solid #8b5cf6; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.oi-optimizer { border-top: 3px solid #0d9488; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pumpdump-autotrade,
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.btceth-overview,
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.btceth-system { border-top: 3px solid #6366f1; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.oi-autotrade { border-top: 3px solid #10b981; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.pd-oi-autotrade { border-top: 3px solid #2dd4bf; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.btceth-backtest-group { border-top: 3px solid #8b5cf6; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.btceth-autotrade-group { border-top: 3px solid #14b8a6; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.promode { border-top: 3px solid #e879f9; }
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card,
body.page-workspace[data-ws-theme="classic"] .cabinet-tool-card {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card:hover,
body.page-workspace[data-ws-theme="classic"] .cabinet-tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card.is-coming-soon:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}
body.page-workspace[data-ws-theme="classic"] .icon-badge {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.65);
  transition: transform .25s ease;
}
body.page-workspace[data-ws-theme="classic"] .cabinet-screener-card:hover .icon-badge,
body.page-workspace[data-ws-theme="classic"] .cabinet-tool-card:hover .icon-badge {
  transform: scale(1.12);
}
body.page-workspace[data-ws-theme="classic"] .help-nav {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
body.page-workspace[data-ws-theme="classic"] .help-nav-link {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}
body.page-workspace[data-ws-theme="classic"] .help-nav-link:hover {
  border-color: rgba(99, 102, 241, 0.65);
  color: #e9deff;
  background: rgba(99, 102, 241, 0.18);
}
body.page-workspace[data-ws-theme="classic"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.btceth-inline-num):not(.ath-date-text):not(.ath-date-native),
body.page-workspace[data-ws-theme="classic"] select,
body.page-workspace[data-ws-theme="classic"] textarea {
  background: #0f172a;
  border-color: rgba(140, 164, 214, 0.38);
  color: #f8fafc;
}
body.page-workspace[data-ws-theme="classic"] .ath-date-control {
  background: #0f172a;
  border-color: rgba(140, 164, 214, 0.38);
}

/* История бэктеста и оптимизатора: хром следует стилю кабинета.
   Зелёный/красный итог (плюс, минус, пары, месяцы) не перекрашиваем. */
body.page-workspace .tester-history-sort {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 35%, transparent);
}
body.page-workspace .tester-history-sort select,
body.page-workspace .tester-history-sort input:not([type="checkbox"]):not([type="radio"]) {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 45%, transparent);
  accent-color: var(--ws-accent);
  color-scheme: dark;
}
body.page-workspace .tester-history-sort select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ws-accent) 50%),
    linear-gradient(135deg, var(--ws-accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  padding-right: 28px;
}
body.page-workspace .tester-history-sort-check {
  color: var(--ws-text);
}
body.page-workspace .tester-history-sort-check input {
  accent-color: var(--ws-accent);
}
body.page-workspace .tester-history-sort .btn-ghost,
body.page-workspace .tester-history-sort .btn-outline {
  border-color: color-mix(in srgb, var(--ws-accent) 72%, var(--ws-text));
  color: var(--ws-text);
  background: transparent;
}
body.page-workspace .tester-history-card,
body.page-workspace .tester-history-inline-results,
body.page-workspace .opt-hist-detail-row td {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .tester-stat,
body.page-workspace .tester-history-mini-stat,
body.page-workspace .tester-history-chip,
body.page-workspace .tester-monthly-pnl-card,
body.page-workspace .tester-equity-chart-mount,
body.page-workspace .tester-symbol-detail > td,
body.page-workspace .tester-symbol-expand-btn,
body.page-workspace .tester-pagination-controls select,
body.page-workspace .tester-trade-outcome {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 18%, transparent);
}
body.page-workspace .tester-stat-value,
body.page-workspace .tester-history-mini-stat .v,
body.page-workspace .tester-history-date,
body.page-workspace .tester-monthly-pnl-card .v,
body.page-workspace .opt-hist-row .opt-hist-expand-btn {
  color: var(--ws-text);
}
body.page-workspace .tester-stat-label,
body.page-workspace .tester-history-mini-stat .l,
body.page-workspace .tester-history-mini-stat .sub,
body.page-workspace .tester-monthly-pnl-card .l,
body.page-workspace .tester-monthly-pnl-card .sub,
body.page-workspace .tester-monthly-pnl-title,
body.page-workspace .tester-equity-chart-title,
body.page-workspace .opt-hist-params-title {
  color: var(--ws-muted);
}
body.page-workspace .tester-history-badge {
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent);
  background: color-mix(in srgb, var(--ws-accent) 16%, var(--ws-input));
}
body.page-workspace .tester-history-card.is-pnl-pos {
  background: color-mix(in srgb, #4ade80 7%, var(--ws-card));
  border-color: color-mix(in srgb, #4ade80 32%, transparent);
}
body.page-workspace .tester-history-card.is-pnl-neg {
  background: color-mix(in srgb, #f87171 7%, var(--ws-card));
  border-color: color-mix(in srgb, #f87171 32%, transparent);
}
body.page-workspace .tester-monthly-pnl-card.is-pos {
  background: color-mix(in srgb, #4ade80 10%, var(--ws-input));
  border-color: color-mix(in srgb, #4ade80 34%, transparent);
}
body.page-workspace .tester-monthly-pnl-card.is-neg {
  background: color-mix(in srgb, #f87171 10%, var(--ws-input));
  border-color: color-mix(in srgb, #f87171 34%, transparent);
}
body.page-workspace .tester-monthly-pnl-card.is-pos .v,
body.page-workspace .tester-monthly-pnl-card.is-pos .unc { color: #86efac; }
body.page-workspace .tester-monthly-pnl-card.is-neg .v,
body.page-workspace .tester-monthly-pnl-card.is-neg .unc { color: #fca5a5; }
body.page-workspace .opt-hist-row.is-pnl-pos td {
  background: color-mix(in srgb, #4ade80 8%, var(--ws-card));
}
body.page-workspace .opt-hist-row.is-pnl-neg td {
  background: color-mix(in srgb, #f87171 8%, var(--ws-card));
}
body.page-workspace .tester-symbol-table tr.win td { background: rgba(34, 197, 94, 0.12); }
body.page-workspace .tester-symbol-table tr.loss td { background: rgba(248, 113, 113, 0.12); }
body.page-workspace .tester-symbol-table tr.win td:first-child { color: #86efac; }
body.page-workspace .tester-symbol-table tr.loss td:first-child { color: #fca5a5; }
body.page-workspace .tester-trades-table .win { color: #4ade80; }
body.page-workspace .tester-trades-table .loss { color: #f87171; }
body.page-workspace .tester-trade-outcome.is-tp { color: #86efac; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }
body.page-workspace .tester-trade-outcome.is-sl { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); }

/* Формы бэктеста, оптимизатора и автоторговли: вкладки, селекты и поля следуют стилю. */
body.page-workspace .tester-section,
body.page-workspace .tester-optimizer-setup,
body.page-workspace .tester-optimizer-config,
body.page-workspace .tester-optimizer-preset-info,
body.page-workspace .tester-optimizer-apply-preview,
body.page-workspace .at-market-filters-card,
body.page-workspace .at-balance-row,
body.page-workspace .at-enable-toggle,
body.page-workspace .oi-autotrade .at-trading-enable-toggle .at-enable-toggle,
body.page-workspace .pumpdump-autotrade .at-trading-enable-toggle .at-enable-toggle,
body.page-workspace .btceth-autotrade .at-trading-enable-toggle .at-enable-toggle,
body.page-workspace .bg-notify-panel,
body.page-workspace .bg-notify-card,
body.page-workspace .bg-notify-bell {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 35%, transparent);
}
body.page-workspace .at-enable-toggle input[type="checkbox"],
body.page-workspace .oi-autotrade .at-trading-enable-toggle .at-enable-toggle > input[type="checkbox"],
body.page-workspace .pumpdump-autotrade .at-trading-enable-toggle .at-enable-toggle > input[type="checkbox"],
body.page-workspace .btceth-autotrade .at-trading-enable-toggle .at-enable-toggle > input[type="checkbox"] {
  accent-color: var(--ws-accent);
}
body.page-workspace .tester-section-title,
body.page-workspace .tester-optimizer-setup-title,
body.page-workspace .tester-optimizer-field > span,
body.page-workspace .tester-optimizer-config-head h4,
body.page-workspace .bg-notify-panel-title,
body.page-workspace .bg-notify-title,
body.page-workspace .bg-notify-message {
  color: var(--ws-text);
}
body.page-workspace .tester-optimizer-field-hint,
body.page-workspace .tester-optimizer-rr,
body.page-workspace .bg-notify-panel-footer a {
  color: var(--ws-muted);
}
body.page-workspace .tester-mode-tab,
body.page-workspace .tester-symbol-tab,
body.page-workspace .tester-depth-tab,
body.page-workspace #optDepthTabs .tester-opt-depth-tab,
body.page-workspace .at-exchange-dd-btn,
body.page-workspace .at-exchange-dd-menu,
body.page-workspace .tester-card .filter-field.tester-field input:not([type="checkbox"]):not([type="radio"]),
body.page-workspace .tester-card .filter-field.tester-field select,
body.page-workspace .tester-card .tester-field textarea,
body.page-workspace .tester-card .tester-field select option,
body.page-workspace .btceth-page .tester-card .tester-field input:not([type="checkbox"]):not([type="radio"]),
body.page-workspace .btceth-page .tester-card .tester-field select,
body.page-workspace .pumpdump-autotrade .tester-field input:not([type="checkbox"]):not([type="radio"]),
body.page-workspace .pumpdump-autotrade .tester-field select,
body.page-workspace .oi-autotrade .tester-field input:not([type="checkbox"]):not([type="radio"]),
body.page-workspace .oi-autotrade .tester-field select,
body.page-workspace .btceth-autotrade .tester-field input:not([type="checkbox"]):not([type="radio"]),
body.page-workspace .btceth-autotrade .tester-field select,
body.page-workspace .tester-optimizer-field input,
body.page-workspace .tester-optimizer-rr input {
  background-color: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 22%, transparent);
}
body.page-workspace .tester-mode-tab.is-active,
body.page-workspace .tester-symbol-tab.is-active,
body.page-workspace .tester-depth-tab.is-active,
body.page-workspace #optDepthTabs .tester-opt-depth-tab.is-active,
body.page-workspace .at-exchange-dd-item.is-selected,
body.page-workspace .tester-optimizer-wf-explainer {
  background: color-mix(in srgb, var(--ws-accent) 28%, var(--ws-input));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .tester-mode-tab:hover,
body.page-workspace .tester-symbol-tab:hover,
body.page-workspace .tester-depth-tab:hover,
body.page-workspace #optDepthTabs .tester-opt-depth-tab:hover,
body.page-workspace .at-exchange-dd-item:hover {
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .at-exchange-dd-item {
  color: var(--ws-text);
}
body.page-workspace .tester-card .tester-field input:focus,
body.page-workspace .tester-card .tester-field select:focus,
body.page-workspace .tester-card .tester-field textarea:focus,
body.page-workspace .pumpdump-autotrade .tester-field input:focus,
body.page-workspace .pumpdump-autotrade .tester-field select:focus,
body.page-workspace .oi-autotrade .tester-field input:focus,
body.page-workspace .oi-autotrade .tester-field select:focus,
body.page-workspace .btceth-autotrade .tester-field input:focus,
body.page-workspace .btceth-autotrade .tester-field select:focus,
body.page-workspace .tester-optimizer-field input:focus,
body.page-workspace .tester-optimizer-rr input:focus,
body.page-workspace .at-exchange-dd-btn:focus {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ws-accent) 28%, transparent);
}
body.page-workspace .tester-card input[type="checkbox"],
body.page-workspace .tester-card input[type="radio"],
body.page-workspace .pumpdump-autotrade input[type="checkbox"],
body.page-workspace .pumpdump-autotrade input[type="radio"],
body.page-workspace .oi-autotrade input[type="checkbox"],
body.page-workspace .oi-autotrade input[type="radio"],
body.page-workspace .btceth-autotrade input[type="checkbox"],
body.page-workspace .btceth-autotrade input[type="radio"],
body.page-workspace .tester-optimizer-presets input,
body.page-workspace .tester-optimizer-field input[type="checkbox"] {
  accent-color: var(--ws-accent);
}
body.page-workspace .bg-notify-card.is-error,
body.page-workspace .bg-notify-card.is-autotrade.is-error {
  border-color: rgba(248, 113, 113, 0.55);
}
body.page-workspace .bg-notify-card.is-warning {
  border-color: rgba(251, 191, 36, 0.55);
}

/* Тарифы в кабинете: баннер, сравнение модулей и свой набор. */
body.page-workspace .pricing-custom-banner,
body.page-workspace .pricing-custom-cta,
body.page-workspace .custom-tariff-summary-card,
body.page-workspace .pricing-compare-modal-card,
body.page-workspace .grouped-feature-modal-card,
body.page-workspace .history-modal-card {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 42%, transparent);
  box-shadow: none;
}
body.page-workspace .history-modal-card h3 {
  color: var(--ws-text);
}
body.page-workspace .history-modal-card p,
body.page-workspace .history-modal-list {
  color: var(--ws-muted);
}
body.page-workspace .grouped-feature-option {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .grouped-feature-option:hover {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 12%, var(--ws-input));
  transform: translateY(-1px);
}
body.page-workspace .grouped-feature-option.is-disabled:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
  background: var(--ws-input);
}
body.page-workspace .grouped-feature-option-title {
  color: var(--ws-text);
}
body.page-workspace .grouped-feature-option-summary,
body.page-workspace .grouped-feature-modal-close {
  color: var(--ws-muted);
}
body.page-workspace .grouped-feature-modal-close:hover {
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 16%, transparent);
}
body.page-workspace:not([data-ws-theme="classic"]) .icon-badge {
  background: var(--ws-icon);
  border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent);
  color: var(--ws-text);
}
body.page-workspace #site-loading {
  background: color-mix(in srgb, var(--ws-bg) 78%, transparent);
}
body.page-workspace .site-loading-card {
  background: var(--ws-card);
  border-color: color-mix(in srgb, var(--ws-accent) 42%, transparent);
  box-shadow: none;
}
body.page-workspace .site-loading-spinner {
  border-color: color-mix(in srgb, var(--ws-text) 18%, transparent);
  border-top-color: var(--ws-accent);
}
body.page-workspace .site-loading-title {
  color: var(--ws-text);
}
body.page-workspace .site-loading-hint,
body.page-workspace .site-loading-note {
  color: var(--ws-muted);
}
body.page-workspace .tester-optimizer-progress-bar {
  background: var(--ws-accent);
}
body.page-workspace .pricing-custom-banner-label {
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 22%, var(--ws-input));
  border-color: color-mix(in srgb, var(--ws-accent) 45%, transparent);
}
body.page-workspace .pricing-custom-banner-btn,
body.page-workspace .pricing-compare-link,
body.page-workspace .custom-tariff-eyebrow a,
body.page-workspace .custom-tariff-row-price {
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent);
}
body.page-workspace .pricing-compare-link,
body.page-workspace .custom-tariff-eyebrow a {
  color: var(--ws-accent);
}
body.page-workspace .pricing-compare-table-wrap,
body.page-workspace .custom-tariff-row {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .custom-tariff-row:hover {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 12%, var(--ws-input));
}
body.page-workspace .custom-tariff-row:has(input:checked) {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 24%, var(--ws-input));
}
body.page-workspace .custom-tariff-row input {
  accent-color: var(--ws-accent);
}
body.page-workspace .custom-tariff-row-title,
body.page-workspace .custom-tariff-total,
body.page-workspace .pricing-compare-table thead th,
body.page-workspace .pricing-compare-table tbody th,
body.page-workspace .grouped-feature-modal-head h2 {
  color: var(--ws-text);
  background: transparent;
}
body.page-workspace .pricing-compare-table thead th {
  background: var(--ws-card);
}
body.page-workspace .pricing-compare-table td.is-included {
  color: var(--ws-accent);
}
body.page-workspace .pricing-compare-table td.is-excluded,
body.page-workspace .grouped-feature-modal-lead,
body.page-workspace .custom-tariff-summary .legal-consent-link {
  color: var(--ws-muted);
}

/* Общие настройки и страница уведомлений. */
body.page-workspace .settings-tabs {
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .settings-tab {
  background: transparent;
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 28%, transparent);
}
body.page-workspace .settings-tab:hover {
  background: color-mix(in srgb, var(--ws-accent) 14%, transparent);
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .settings-tab.is-active {
  background: var(--ws-accent);
  border-color: var(--ws-accent);
  color: var(--ws-on-accent, #111);
}
body.page-workspace .settings-section-lead,
body.page-workspace .settings-prefs-block-title,
body.page-workspace .settings-tg-bot-hint,
body.page-workspace .api-keys-hint,
body.page-workspace .api-keys-field label {
  color: var(--ws-muted);
}
body.page-workspace .settings-page-card .tester-section,
body.page-workspace .settings-info-compact,
body.page-workspace .settings-prefs-block,
body.page-workspace .settings-tg-status-bar,
body.page-workspace .settings-checkbox-master,
body.page-workspace .settings-segmented,
body.page-workspace .settings-pro-row,
body.page-workspace .settings-email-status {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 18%, transparent);
}
body.page-workspace .settings-email-status.is-verified {
  border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent);
  background: color-mix(in srgb, var(--ws-accent) 16%, var(--ws-input));
}
body.page-workspace .settings-email-status.is-verified .settings-email-status-icon {
  color: var(--ws-on-accent, #111);
  background: var(--ws-accent);
  border-color: var(--ws-accent);
}
body.page-workspace .settings-email-status.is-verified .settings-email-status-label {
  color: var(--ws-text);
}
body.page-workspace .settings-email-status.is-pending {
  border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent);
  background: color-mix(in srgb, var(--ws-accent) 10%, var(--ws-input));
}
body.page-workspace .settings-email-status.is-pending .settings-email-status-icon {
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 22%, var(--ws-input));
  border-color: color-mix(in srgb, var(--ws-accent) 45%, transparent);
}
body.page-workspace .settings-email-status.is-pending .settings-email-status-label {
  color: var(--ws-text);
}
body.page-workspace .settings-segment,
body.page-workspace .api-keys-mode-label,
body.page-workspace .settings-checkbox {
  color: var(--ws-text);
}
body.page-workspace .api-keys-mode-label,
body.page-workspace .api-keys-field input,
body.page-workspace .settings-pro-variant,
body.page-workspace .settings-totp-secret,
body.page-workspace .settings-totp-code-field input {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 22%, transparent);
}
body.page-workspace .settings-segment.is-active,
body.page-workspace .api-keys-mode-label:has(input:checked) {
  background: color-mix(in srgb, var(--ws-accent) 28%, var(--ws-input));
  border-color: var(--ws-accent);
  color: var(--ws-text);
}
body.page-workspace .settings-page-card input[type="checkbox"],
body.page-workspace .settings-page-card input[type="radio"],
body.page-workspace .api-keys-mode-label input,
body.page-workspace .notif-page-card input[type="checkbox"] {
  accent-color: var(--ws-accent);
}
body.page-workspace .settings-form-actions,
body.page-workspace .settings-email-status-email {
  border-color: color-mix(in srgb, var(--ws-text) 14%, transparent);
  color: var(--ws-muted);
}
body.page-workspace .settings-toast {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 45%, transparent);
  box-shadow: none;
}
body.page-workspace .settings-toast-sub {
  color: var(--ws-muted);
}
body.page-workspace .settings-toast-icon {
  color: var(--ws-on-accent, #111);
  background: color-mix(in srgb, var(--ws-accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--ws-accent) 50%, transparent);
}
body.page-workspace input:-webkit-autofill,
body.page-workspace input:-webkit-autofill:hover,
body.page-workspace input:-webkit-autofill:focus,
body.page-workspace textarea:-webkit-autofill,
body.page-workspace select:-webkit-autofill {
  -webkit-text-fill-color: var(--ws-text);
  caret-color: var(--ws-text);
  box-shadow: 0 0 0 1000px var(--ws-input) inset;
  transition: background-color 9999s ease-out;
}
body.page-workspace input[type="date"],
body.page-workspace input[type="datetime-local"],
body.page-workspace select {
  color-scheme: dark;
}
body.page-workspace input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.85);
  opacity: 0.9;
}
body.page-workspace .notif-row {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .notif-row:not(.notif-row-dismissed):hover {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 10%, var(--ws-input));
}
body.page-workspace .notif-row-error {
  border-color: rgba(248, 113, 113, 0.45);
}
body.page-workspace .notif-row.is-target {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 16%, var(--ws-input));
  animation: none;
}
body.page-workspace .notif-row-title {
  color: var(--ws-text);
}
body.page-workspace .notif-row-message,
body.page-workspace .notif-row-date,
body.page-workspace .notif-dismissed-mark,
body.page-workspace .notif-pager-info {
  color: var(--ws-muted);
}
body.page-workspace .notif-msg-expand {
  color: var(--ws-accent);
}
body.page-workspace .notif-msg-expand:hover {
  color: var(--ws-text);
}
body.page-workspace .notif-page-footer {
  border-top-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .notif-type-backtest,
body.page-workspace .notif-type-optimizer,
body.page-workspace .notif-type-system {
  background: color-mix(in srgb, var(--ws-accent) 18%, transparent);
  color: var(--ws-text);
}

/* Кабинет: аватар, полоска рынка, история автоторговли */
body.page-workspace .cabinet-profile-avatar {
  color: var(--ws-text);
  background: color-mix(in srgb, var(--ws-accent) 22%, var(--ws-card));
  border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent);
}
body.page-workspace .at-market-strip {
  border-color: color-mix(in srgb, var(--ws-accent) 42%, transparent);
  background: color-mix(in srgb, var(--ws-accent) 10%, var(--ws-card));
  color: var(--ws-text);
}
body.page-workspace .at-market-fold-icon {
  border-right-color: var(--ws-muted);
  border-bottom-color: var(--ws-muted);
}
body.page-workspace .at-market-strip.is-collapsed .at-market-fold-icon {
  border-left-color: var(--ws-muted);
}
body.page-workspace .ath-stat-card,
body.page-workspace .ath-chart-card,
body.page-workspace .ath-filters,
body.page-workspace .ath-table-wrap,
body.page-workspace .ath-table {
  background: var(--ws-card);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-text) 16%, transparent);
}
body.page-workspace .ath-stat-label,
body.page-workspace .ath-stat-sub,
body.page-workspace .ath-chart-title,
body.page-workspace .ath-pnl-hint,
body.page-workspace .ath-chart-legend,
body.page-workspace .ath-filter-field > span {
  color: var(--ws-muted);
}
body.page-workspace .ath-badge,
body.page-workspace .ath-btn-primary {
  background: var(--ws-accent);
  color: var(--ws-on-accent, #111);
  border-color: var(--ws-accent);
}
body.page-workspace .ath-btn-primary:hover {
  background: var(--ws-accent);
  filter: brightness(1.08);
}
body.page-workspace .ath-filters select,
body.page-workspace .ath-filters input:not([type="checkbox"]):not([type="radio"]):not(.ath-date-native),
body.page-workspace .ath-filter-field select,
body.page-workspace .ath-filter-field input:not([type="checkbox"]):not([type="radio"]):not(.ath-date-native) {
  background: var(--ws-input);
  color: var(--ws-text);
  border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent);
}
body.page-workspace .tester-mode-tab.is-active {
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 16%, transparent);
  color: var(--ws-text);
}
body.page-workspace .at-dual-side-banner.is-on {
  border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent);
  color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 10%, transparent);
}
