:root {
  --site-base: #09090d;
  --site-surface: #101014;
  --site-panel-gap: 5px;
  --site-panel-radius: 8px;
  --site-text-main: #ababab;
  --site-text-muted: #ababab;
  --site-surface-2: #222227;
  color-scheme: dark;
  scrollbar-color: #4a5260 #101216;
  scrollbar-width: thin;
}

* {
  scrollbar-color: #4a5260 #101216;
  scrollbar-width: thin;
}

*::-webkit-scrollbar { width:10px; height:10px; }
*::-webkit-scrollbar-track { background:#101216; }
*::-webkit-scrollbar-thumb {
  background:#4a5260;
  border:2px solid #101216;
  border-radius:8px;
}
*::-webkit-scrollbar-thumb:hover { background:#667080; }
*::-webkit-scrollbar-corner { background:#101216; }

[data-site-layout="gap"] { gap: var(--site-panel-gap) !important; }

[data-site-layout] > :is([data-site-panel], [data-site-layout]) {
  margin-block: 0 !important;
}

[data-site-layout="stack"] > :is([data-site-panel], [data-site-layout]):not([hidden])
  ~ :is([data-site-panel], [data-site-layout]):not([hidden]) {
  margin-block-start: var(--site-panel-gap) !important;
}
[data-site-panel], .site-header { border-radius: var(--site-panel-radius) !important; }
html, body { background: var(--site-base) !important; }
body > main, #root, #settings-root { background: transparent !important; }

html, body { width:100%; max-width:100%; overflow-x:hidden; }
*, *::before, *::after { box-sizing:border-box; }
#root, #settings-root, main { width:100%; max-width:100%; min-width:0; }
:is(main, section, article, aside, header, footer, nav, form, fieldset, [data-site-panel], [data-site-layout]) { min-width:0; }
img, video, canvas { max-width:100%; }
input, select, textarea, button { max-width:100%; }

@font-face {
  font-family: Inter;
  src: url('/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.site-header {
  background: var(--site-surface);
  color: #c4c7ce;
  font-family: Inter, sans-serif;
}

.site-header-row,
.site-header-brand,
.site-header-tools,
.site-header-status,
.site-main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header-row {
  min-height: 34px;
  max-width: 100%;
  justify-content: space-between;
  padding-inline: 9px;
}

.site-header-brand, .site-header-tools { flex-shrink: 0; }
.site-header-brand { font-weight: 700; }
.site-header-market, .site-header-status, .site-header-wallet { font-size: 10px; }
.site-header-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #20b26c; }
.site-header-dot.idle { background: #ff9c2e; }
.site-main-nav { flex: 1 1 0; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.site-main-nav a { height:34px; padding: 6px 7px; white-space: nowrap; font-weight: 600; }
.site-main-nav a[aria-current="page"], .site-header a:hover { color: #fff; }
.site-header-halt { color: #ef454a; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; }
@media (max-width: 900px) {
  .site-header-row { flex-wrap: wrap; }
  .site-main-nav { order: 3; flex-basis: 100%; }
  .site-header-status { display: none; }
}

@media (max-width: 760px) {
  .site-header-row { padding-inline:6px; gap:4px; }
  .site-header-tools { margin-left:auto; }
  .site-header-wallet, .site-header-market { display:none; }
  .site-main-nav { width:100%; max-width:100%; }
  .site-main-nav a { padding-inline:7px; }
  [data-site-layout="gap"] { grid-template-columns:minmax(0,1fr) !important; }
  [data-site-panel] { max-width:100%; overflow-wrap:anywhere; }
}


/* Keep navigation and segmented selections flat across the terminal. */
body :is(
  .site-main-nav > a,
  .nav-tab,
  [role="tab"],
  .tv-modal-tab-btn,
  .oac-tab,
  .studio-nav-btn,
  .scope-btn,
  .density-btn,
  .ob-tabs > button,
  .exchange-tabs > button[aria-pressed],
  .symbol-tabs > button[aria-pressed],
  .market-alert-tabs button[aria-pressed],
  .coins-group-tabs > button[aria-pressed],
  .order-ticket-tabs > button[aria-pressed],
  .backtest-actions > button[aria-pressed],
  .style-picker-segments button[aria-pressed],
  .indicator-library nav button[aria-pressed]
) {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

body :is(
  .site-main-nav > a[aria-current="page"],
  .nav-tab[aria-current="page"],
  [role="tab"][aria-selected="true"],
  .tv-modal-tab-btn.active,
  .oac-tab[aria-selected="true"],
  .studio-nav-btn.active,
  .scope-btn[aria-pressed="true"],
  .density-btn.density-active,
  .ob-tabs > button.active,
  .exchange-tabs > button[aria-pressed="true"],
  .symbol-tabs > button[aria-pressed="true"],
  .market-alert-tabs button[aria-pressed="true"],
  .coins-group-tabs > button[aria-pressed="true"],
  .order-ticket-tabs > button[aria-pressed="true"],
  .backtest-actions > button[aria-pressed="true"],
  .style-picker-segments button[aria-pressed="true"],
  .indicator-library nav button[aria-pressed="true"]
)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: auto;
  height: 1px !important;
  border-radius: 0 !important;
  background: var(--site-accent, #ff9c12);
  transform: none;
  pointer-events: none;
}

body[data-supplied-page="dashboard"] main h1 {
  font-size: 20px;
  line-height: 1.3;
}
body[data-supplied-page="dashboard"] main :is(h2, h3) {
  font-size: 16px;
  line-height: 1.35;
}
body[data-supplied-page="dashboard"] main :is(h1, h2, h3) + p {
  margin-top: 3px;
  line-height: 1.45;
}
body[data-supplied-page="dashboard"] main :is(label, p) {
  overflow-wrap: anywhere;
}
body[data-supplied-page="dashboard"] main .grid > * {
  min-width: 0;
}
.dashboard-execution-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px !important;
  margin-top: 10px;
}
.dashboard-execution-controls :is(select, button) {
  min-height: 34px;
  max-width: 100%;
  padding: 5px 10px;
}
.dashboard-execution-controls button {
  border: 1px solid #343d4b;
  background: transparent;
}

/* Softer terminal typography without changing semantic price colors. */
html, body { color:var(--site-text-main); font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,sans-serif; font-size:12px; line-height:1.35; }
body :is([class~="text-white"], [class~="text-on-surface"], [class~="text-[#e6edf3]"], [class~="text-[#e6eaf1]"]) {
  color:var(--site-text-main) !important;
}
body :is(small, .text-muted, .terminal-muted, [class~="text-on-surface-variant"], [class~="text-[#9ca3af]"], [class~="text-[#9da7b3]"]) {
  color:var(--site-text-muted) !important;
}
