:root {
  --ink: #000000;
  --deck: #101113;
  --deck-2: #1b1c20;
  --deck-3: #26282d;
  --well: #000000;
  --hair: rgba(255, 255, 255, 0.08);
  --paper: #f3f4f6;
  --mist: #a4a7ae;
  --haze: #6d7077;
  --blue: #2f7bf6;
  --blue-hover: #4a8dff;
  --blue-tint: rgba(47, 123, 246, 0.22);
  --brass: #fff200;
  --gain: #39ff14;
  --loss: #ff1a1a;
  --warn: #fff200;
  --vwap: #b9a8ff;
  --r-big: 12px;
  --r-ctl: 7px;
  --gap: 16px;
  --wide: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
input, select, textarea, button { font-family: inherit; }
html, body { margin: 0; background: var(--ink); color: var(--paper); color-scheme: dark; }
html, body { overscroll-behavior-y: none; }
body {
  font-family: var(--wide);
  font-size: 14px;
  font-weight: 420;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h2 { font-size: 22px; font-weight: 640; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--paper); }
h4 { font-weight: 600; }
p { margin: 0; }
a { color: var(--paper); text-decoration-color: var(--haze); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--paper); }
.muted { color: var(--mist); }
.narrow { max-width: 72ch; margin: 4px 0 16px; }
.small { font-size: 12.5px; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.warn { color: var(--warn); }
.faint { color: var(--haze); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.head {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--hair);
}
html { scroll-padding-top: calc(var(--head-h, 90px) + 12px); }
.top {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
}
.brand { display: flex; flex-direction: column; min-width: 180px; }
.brand-name { font-weight: 680; font-size: 16px; letter-spacing: -0.005em; }
.brand-sub { color: var(--mist); font-size: 12px; }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font: inherit; font-weight: 500; color: var(--mist); background: transparent; border: 0;
  padding: 8px 13px; border-radius: var(--r-ctl); cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { color: #fff; background: var(--blue); }
.view-pick { display: none; }
.profile { position: relative; flex: none; }
.profile-btn {
  font: inherit; font-weight: 560; color: var(--paper); background: var(--deck-2); border: 0; border-radius: var(--r-ctl);
  padding: 8px 30px 8px 12px; cursor: pointer; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.profile-btn:hover { background-color: var(--deck-3); }
.profile-btn[aria-expanded="true"] { background-color: var(--blue); color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 250px;
  background: var(--deck-2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column;
}
.profile-menu[hidden] { display: none; }
.pm-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; box-shadow: inset 0 -1px 0 var(--hair); margin-bottom: 6px; }
.pm-name { font-weight: 600; }
.pm-sub { color: var(--mist); font-size: 12.5px; }
.profile-menu button, .profile-menu a {
  font: inherit; text-align: left; color: var(--paper); background: transparent; border: 0; border-radius: var(--r-ctl);
  padding: 9px 12px; cursor: pointer; text-decoration: none; display: block;
}
.profile-menu button:hover, .profile-menu a:hover, .profile-menu button:focus-visible, .profile-menu a:focus-visible { background: var(--deck-3); outline: none; }
.profile-menu a#pm-logout { color: var(--loss); margin-top: 6px; box-shadow: inset 0 1px 0 var(--hair); border-radius: 0 0 var(--r-ctl) var(--r-ctl); }
.profile-menu [hidden] { display: none; }
.notify-panel { display: flex; flex-direction: column; gap: 8px; }
.notify-panel h4 { margin: 0; }
.notify-state { font-size: 16px; font-weight: 580; }
.notify-state.on { color: var(--gain); }
.notify-steps { margin: 4px 0 0; padding-left: 20px; color: var(--paper); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.set-list { margin: 0; display: flex; flex-direction: column; }
.set-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; box-shadow: inset 0 1px 0 var(--hair); font-size: 13.5px; }
.set-row:first-child { box-shadow: none; padding-top: 2px; }
.set-row dt { color: var(--mist); }
.set-row dd { margin: 0; }
.set-row a { color: var(--paper); }
.run-pick { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13px; }
select {
  font: inherit; color: var(--paper); background-color: var(--deck-2); border: 0; border-radius: var(--r-ctl);
  padding: 8px 30px 8px 11px; max-width: 340px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
main { padding: 24px 28px 8px; max-width: 1520px; margin: 0 auto; }
.view { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.view > *, .session-grid > *, .main-col > *, .side > * { min-width: 0; }
.btn {
  font: inherit; font-size: 13px; font-weight: 520; color: var(--paper); background: var(--deck-2); border: 0;
  border-radius: var(--r-ctl); padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--deck-3); }
.btn.icon { padding: 3px 11px; font-size: 18px; line-height: 1.25; }
.btn.primary { background: var(--blue); color: #fff; font-weight: 620; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.danger { background: #8f2f2a; color: #fff; }
.btn.danger:hover { background: #a63831; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.seg { display: inline-flex; background: var(--well); border-radius: var(--r-ctl); padding: 3px; flex-wrap: wrap; gap: 2px; }
.seg button {
  font: inherit; font-size: 13px; color: var(--mist); background: transparent; border: 0;
  border-radius: 5px; padding: 5px 10px; cursor: pointer;
}
.seg button:hover { color: var(--paper); }
.seg button.on { background: var(--blue); color: #fff; }
select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
option:checked { background: var(--blue); color: #fff; }
.pick { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13px; }
.panel .pick select, .chart-head select { background-color: var(--deck-2); }
#day-pick { min-width: 172px; font-weight: 540; }
#tf-pick { min-width: 84px; font-weight: 540; }
.ticker {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 0; padding: 4px 0 2px; align-items: stretch;
}
.tk.tk-read { background: var(--deck); border-radius: 10px; padding: 12px 16px; box-shadow: none; margin: -6px 12px -6px 4px; gap: 3px; }
.tk.tk-read + .tk { box-shadow: none; }
.tk-read-title { font-size: 19px; font-weight: 620; line-height: 1.2; color: var(--paper); }
.tk-read-detail { color: var(--mist); font-size: 12.5px; line-height: 1.4; }
.tk-read-detail .cdc { color: var(--paper); font-weight: 600; }
.tk { display: flex; flex-direction: column; gap: 2px; padding: 0 24px; min-width: 0; box-shadow: -1px 0 0 var(--hair); }
.tk:first-child { padding-left: 0; box-shadow: none; }
.tk-label { color: var(--mist); font-size: 12.5px; }
.tk-big {
  font-size: 46px; line-height: 1.02; font-weight: 600; letter-spacing: -0.02em;
  white-space: nowrap; transition: color 0.5s ease;
}
.tk-mid { font-size: 28px; line-height: 1.12; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; margin-top: 8px; }
.tk-note { color: var(--mist); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-big.tick-up { color: var(--gain); transition: color 0.15s ease; }
.tk-big.tick-down { color: var(--loss); transition: color 0.15s ease; }
.tk-news.soon .tk-cd { color: var(--warn); }
.mk-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.mk {
  all: unset; box-sizing: border-box; cursor: pointer; min-width: 0;
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--deck);
}
.mk:hover { background: var(--deck-2); }
.mk:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; }
.mk.on, .mk.on:hover { background: var(--blue); }
.mk.on .mk-name, .mk.on .mk-note, .mk.on .gain, .mk.on .loss { color: #fff; }
.mk-name { font-size: 12.5px; color: var(--mist); }
.mk-price { font-size: 22px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.mk-line { display: flex; gap: 10px; font-size: 13px; white-space: nowrap; min-height: 17px; }
.mk-note { font-size: 12px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .mk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .mk { padding: 10px 12px; }
  .mk-price { font-size: 18px; }
}
.alert { color: var(--mist); font-size: 13.5px; max-width: 100ch; padding: 2px 0; }
.alert.bad { color: var(--warn); }
.rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { padding: 9px 12px 10px; border-radius: var(--r-ctl); min-width: 0; }
.rail .step { font-size: 11.5px; color: var(--haze); }
.rail .name { font-weight: 560; color: var(--mist); }
.rail .detail { font-size: 12px; color: var(--haze); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail li.done .name { color: var(--paper); }
.rail li.done .detail { color: var(--mist); }
.rail li.now { background: var(--deck-2); }
.rail li.now .step { color: var(--paper); }
.rail li.now .name { color: var(--paper); }
.rail li.now .detail { color: var(--paper); }
.rail li.miss .name { color: var(--haze); text-decoration: line-through; text-decoration-color: rgba(157, 176, 195, 0.45); }
.panel { background: var(--deck); border-radius: var(--r-big); padding: 18px; min-width: 0; }
.panel.flush { padding: 6px 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.session-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.side, .main-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.chart-panel { padding: 14px 14px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 0 2px 12px; flex-wrap: wrap; }
.day-nav { display: flex; align-items: center; gap: 8px; }
.chart { height: 520px; width: 100%; position: relative; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--haze); z-index: 3; pointer-events: none; text-align: center; padding: 24px; }
.chart.short { height: 300px; }
.ohlc {
  position: absolute; left: 8px; top: 6px; z-index: 4; pointer-events: none;
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mist);
  background: rgba(16, 17, 19, 0.88); border-radius: 6px; padding: 3px 8px;
}
.ohlc:empty { display: none; }
.price-tag {
  position: absolute; right: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  padding: 2px 0 3px; border-radius: 2px; color: #fff;
  font-size: 12px; font-weight: 520; line-height: 15px; letter-spacing: 0.01em;
}
.price-tag.up { background: var(--gain); color: #000; }
.price-tag.down { background: var(--loss); color: #fff; }
.price-tag .pt-cd { font-weight: 480; opacity: 0.95; }
.confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.win-toast {
  position: fixed; top: calc(var(--head-h, 90px) + 20px); left: 50%; transform: translateX(-50%); z-index: 51;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  background: var(--deck-2); border-radius: 12px; padding: 14px 26px 15px; min-width: 280px; max-width: calc(100vw - 32px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.35s ease-out;
}
.win-toast .wt-head { font-size: 13px; color: var(--mist); }
.win-toast .wt-big { font-size: 30px; font-weight: 640; letter-spacing: -0.01em; color: var(--gain); line-height: 1.15; }
.win-toast .wt-note { font-size: 13px; color: var(--mist); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ohlc b { font-weight: 560; color: var(--paper); margin-left: 3px; }
.ohlc .t { color: var(--paper); font-weight: 560; }
.chart-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 10px 2px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mist); font-size: 12px; }
.lg::before { content: ""; display: inline-block; width: 16px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid; }
.lg-or::before { border-color: var(--brass); }
.lg-vwap::before { border-color: var(--vwap); }
.lg-pd::before { border-top-style: dashed; border-color: #d7e0ea; }
.lg-on::before { border-top-style: dotted; border-color: #8fa6bd; }
.lg-plan::before { border-color: var(--paper); }
.lg-fvg::before { border-top-style: dashed; border-color: #5ec8e5; }
.tf-note { color: var(--haze); font-size: 12px; }
.tf-note:empty { display: none; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; border-radius: var(--r-big); overflow: hidden; }
.figures:empty { display: none; }
.figures div { background: var(--deck); padding: 13px 15px; }
.figures dt { color: var(--mist); font-size: 12px; }
.figures dd { margin: 3px 0 0; font-size: 18px; font-weight: 560; }
.figures dd small { display: block; font-size: 12px; color: var(--mist); font-weight: 420; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; }
.levels td { padding: 7px 0; box-shadow: inset 0 1px 0 var(--hair); }
.levels tr:first-child td { box-shadow: none; }
.levels td:nth-child(2), .levels td:nth-child(3) { text-align: right; }
.levels td:nth-child(2) { font-weight: 540; }
.levels td:nth-child(3) { color: var(--mist); width: 78px; }
.levels .lvl-or td:first-child { color: var(--brass); }
.levels .lvl-vwap td:first-child { color: var(--vwap); }
.levels tr.lvl-price td { color: var(--paper); font-weight: 600; }
.levels tr.lvl-price td:first-child { color: var(--mist); font-weight: 420; }
.src { color: var(--haze); font-size: 12px; }
.news-next { padding: 0 0 12px; }
.news-next .kicker { color: var(--mist); font-size: 12px; margin-bottom: 2px; }
.news-next .title { font-weight: 560; }
.news-next .meta { color: var(--mist); font-size: 12px; margin-top: 1px; }
.news-next .cd { font-size: 32px; font-weight: 580; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.1; }
.news-next.soon .cd { color: var(--warn); }
.news-next .none { color: var(--mist); }
.news-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.news-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 3px 10px; padding: 8px 0; box-shadow: inset 0 1px 0 var(--hair); }
.news-list li.past { color: var(--haze); }
.news-list li.past .imp { color: var(--haze); }
.news-list time { color: var(--mist); }
.news-list .ev { min-width: 0; }
.news-list .fp { grid-column: 2 / 3; color: var(--haze); font-size: 12px; }
.news-list .when { text-align: right; color: var(--mist); white-space: nowrap; }
.news-list li.soon .when { color: var(--warn); }
.news-list .empty { display: block; color: var(--haze); box-shadow: none; }
.news-list .list-head { display: block; color: var(--mist); font-size: 12px; font-weight: 560; padding: 2px 0 6px; box-shadow: none; }
.imp { font-size: 12px; font-weight: 560; }
.imp-high { color: var(--loss); }
.imp-medium { color: var(--warn); }
.imp-low, .imp-holiday { color: var(--haze); }
.grid tr.past td { color: var(--haze); }
.grid tr.day-row td { color: var(--mist); font-weight: 560; padding-top: 18px; box-shadow: none; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.table-wrap { overflow-x: auto; }
.grid { font-size: 13px; }
.grid th {
  text-align: left; font-weight: 520; color: var(--mist); padding: 9px 12px;
  white-space: nowrap; position: sticky; top: 0; background: var(--deck);
}
.grid td { padding: 9px 12px; box-shadow: inset 0 1px 0 var(--hair); white-space: nowrap; }
.grid td.wrap { white-space: normal; min-width: 260px; max-width: 460px; color: var(--mist); }
.grid .num { text-align: right; }
.grid.clickable tbody tr { cursor: pointer; }
.grid.clickable tbody tr:hover td { background: var(--deck-2); }
.grid tr.sel td, .grid.clickable tbody tr.sel:hover td { background: var(--blue-tint); }
.panel > .table-wrap .grid th:first-child, .panel > .table-wrap .grid td:first-child { padding-left: 0; }
.panel.flush .grid th:first-child, .panel.flush .grid td:first-child { padding-left: 18px; }
.empty-note { color: var(--mist); padding: 16px 18px; box-shadow: none !important; white-space: normal !important; }
.log { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 340px; overflow-y: auto; }
.log.long { max-height: none; }
.log li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 7px 0; box-shadow: inset 0 1px 0 var(--hair); }
.log li:first-child { box-shadow: none; }
.log time { color: var(--haze); }
.log li.warn span { color: var(--warn); }
.log li.error span { color: var(--loss); }
.run-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.run-head p { margin-top: 3px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; border-radius: var(--r-big); overflow: hidden; }
.kpis div { background: var(--deck); padding: 15px 16px; min-width: 0; }
.kpis .label { color: var(--mist); font-size: 12px; }
.kpis .value { font-size: 23px; font-weight: 580; margin-top: 3px; white-space: nowrap; }
.kpis .note { color: var(--haze); font-size: 12px; margin-top: 2px; }
.sub-head { margin-top: 10px; font-size: 18px; }
.funnel { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.funnel .row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.funnel .row .track { grid-column: 1 / -1; height: 6px; background: var(--well); border-radius: 3px; overflow: hidden; }
.funnel .row .fill { height: 100%; background: var(--mist); border-radius: 3px; }
.funnel .row:last-child .fill { background: var(--gain); }
.funnel .n { color: var(--mist); }
.dist svg { width: 100%; height: auto; display: block; }
.dist text { fill: var(--mist); font-size: 11px; font-family: inherit; }
.nt p + p { margin-top: 10px; }
.big-line { font-size: 28px; font-weight: 580; }
.group-table td, .group-table th { padding: 8px 8px; }
.group-table td:first-child, .group-table th:first-child { padding-left: 0; white-space: normal; }
.group-table .num { text-align: right; }
.ctl-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--gap) 24px; align-items: start; }
.ctl-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--head-h, 60px) + 24px); }
.ctl-nav button {
  font: inherit; font-weight: 520; text-align: left; color: var(--mist); background: transparent; border: 0;
  border-radius: var(--r-ctl); padding: 10px 14px; cursor: pointer;
}
.ctl-nav button:hover { color: var(--paper); background: var(--deck); }
.ctl-nav button[aria-current="true"] { color: #fff; background: var(--blue); }
.ctl-pick { display: none; }
.ctl-body { min-width: 0; }
.ctl-sec { display: flex; flex-direction: column; gap: var(--gap); }
.sec-head { display: flex; flex-direction: column; gap: 3px; }
.sec-head h3 { font-size: 18px; font-weight: 620; margin: 0; }
.ctl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ctl-sec h4 { margin: 0 0 10px; font-size: 14px; }
.ctl-state { font-size: 17px; font-weight: 560; margin: 2px 0 6px; }
.ctl-state.warn { color: var(--warn); }
.ctl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ctl-actions:empty { display: none; }
.test-result:empty { display: none; }
.test-result { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.test-head { font-size: 17px; font-weight: 600; }
.test-head.ok { color: var(--gain); }
.test-head.bad { color: var(--loss); }
.test-head.busy { color: var(--paper); }
.test-steps { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.test-steps li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 6px 0; box-shadow: inset 0 1px 0 var(--hair); }
.test-steps li:first-child { box-shadow: none; }
.test-steps time { color: var(--haze); }
.test-steps li.bad span { color: var(--loss); }
.test-figs { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--mist); }
.test-figs b { color: var(--paper); font-weight: 560; }
.user-card { box-shadow: inset 0 1px 0 var(--hair); padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
#users-list:empty { display: none; }
.user-card:first-child { box-shadow: none; padding-top: 4px; }
.user-card h4 { margin: 0; font-size: 14px; }
.user-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.user-head .name { font-weight: 600; }
.user-head .meta { color: var(--haze); font-size: 12px; }
.user-card.off .name { color: var(--haze); }
.perms { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.perms legend { color: var(--mist); font-size: 12px; padding: 0; margin-bottom: 8px; }
.perm { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-size: 13px; cursor: pointer; }
.perm input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.perm small { display: block; color: var(--haze); font-size: 12px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.field-row label { display: flex; flex-direction: column; gap: 5px; color: var(--mist); font-size: 12px; flex: 1 1 200px; }
.new-user .btn.primary { align-self: flex-start; }
.view input[type=text], .view input[type=password] {
  font: inherit; font-size: 15px; color: var(--paper); background: var(--ink); border: 0;
  border-radius: var(--r-ctl); padding: 9px 11px; box-shadow: inset 0 0 0 1px var(--hair);
}
.view input[type=text]:focus-visible, .view input[type=password]:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--mist); }
.form-msg { font-size: 13px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--gain); }
.form-msg.bad { color: var(--loss); }
.new-user { display: flex; flex-direction: column; gap: 12px; }
.new-user h4 { margin: 0; }
.login-body { display: grid; place-items: center; }
.login { width: 100%; max-width: 390px; padding: 24px 16px; }
.login-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; }
.login-card .brand-name { font-size: 22px; }
.login-card label { color: var(--mist); font-size: 13px; margin-top: 8px; }
.login-card input {
  font: inherit; font-size: 16px; color: var(--paper); background: var(--ink); border: 0;
  border-radius: var(--r-ctl); padding: 11px 12px; box-shadow: inset 0 0 0 1px var(--hair);
}
.login-card input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--mist); }
.login-card .btn.primary { margin-top: 10px; padding: 11px 14px; font-size: 15px; }
.login-error:empty { display: none; }
.login-card textarea {
  font: inherit; color: var(--paper); background: var(--well); border: 0; border-radius: var(--r-ctl);
  font-size: 16px; padding: 11px 12px; resize: vertical; min-height: 76px; box-shadow: inset 0 0 0 1px var(--hair);
}
.login-card textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--mist); }
.login-link { color: var(--mist); font-size: 13.5px; text-align: center; margin-top: 6px; text-decoration: none; }
.login-link:hover { color: var(--paper); }
.login-btn { text-align: center; text-decoration: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.login-alt { text-align: center; text-decoration: none; margin-top: 4px; }
.error-card .error-code { font-size: 64px; line-height: 1; font-weight: 640; letter-spacing: -0.03em; color: var(--blue); margin-top: 6px; }
.error-card .btn.primary { text-align: center; text-decoration: none; }
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr 1fr; }
  .tk-big { font-size: 38px; }
}
@media (max-width: 1020px) {
  .ticker { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .tk:nth-child(3) { padding-left: 0; box-shadow: none; }
  .tk.tk-read { grid-column: 1 / -1; order: 5; margin: 0; }
  .session-grid { display: flex; flex-direction: column; gap: var(--gap); align-items: stretch; }
  .main-col, .side { display: contents; }
  .chart-panel { order: 1; }
  #figures { order: 2; }
  .levels-panel { order: 3; }
  .news-panel { order: 4; }
  .main-col > .panel:nth-of-type(2) { order: 5; }
  .main-col > .panel:nth-of-type(3) { order: 6; }
  .chart { height: 440px; }
  .ctl-layout { grid-template-columns: 1fr; }
  .ctl-nav { display: none; }
  .ctl-pick { display: inline-flex; }
  .ctl-pick select { min-width: 180px; font-weight: 560; }
  .ctl-pair { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px 8px; }
  .brand { min-width: 0; flex: 1 1 calc(100% - 150px); }
  .brand-name { white-space: nowrap; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs { display: none; }
  .view-pick { display: block; order: 3; flex: 1 1 50%; min-width: 0; max-width: none; font-weight: 560; font-size: 15px; padding: 10px 34px 10px 12px; }
  .run-pick { order: 4; }
  .profile { order: 2; }
  .profile-btn { max-width: 120px; }
  .settings { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr; gap: 2px; }
  .run-pick span { display: none; }
  select { max-width: 42vw; padding: 7px 28px 7px 10px; font-size: 13px; text-overflow: ellipsis; }
  main { padding: 16px 16px 8px; }
  .ticker { gap: 16px 0; }
  .tk { padding: 0 0 0 14px; }
  .tk:nth-child(odd) { padding-left: 0; box-shadow: none; }
  .tk.tk-read { padding: 12px 14px; }
  .tk-read-title { font-size: 17px; }
  .tk.tk-news { padding-left: 14px; box-shadow: -1px 0 0 var(--hair); }
  .tk-big { font-size: 31px; }
  .tk-mid { font-size: 21px; margin-top: 4px; }
  .rail { grid-template-columns: repeat(7, 128px); }
  .panel { padding: 15px; border-radius: 10px; }
  .chart-panel { padding: 10px 8px 10px; }
  .chart-head { padding: 0 4px 10px; }
  .chart { height: 360px; }
  .chart.short { height: 240px; }
  .trio { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .value { font-size: 20px; }
  .tf-note { width: 100%; }
  .ohlc { font-size: 11px; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
  .ohlc .o { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-logo { display: block; width: 54px; height: 36px; object-fit: cover; border-radius: 6px; }
.bg-candles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body > main, .login { position: relative; z-index: 1; }
.newsbar {
  height: 30px; display: flex; align-items: center;
  background: var(--deck); color: var(--mist); font-size: 12.5px; white-space: nowrap;
  overflow: hidden; cursor: pointer;
}
.newsbar .nb-track { display: flex; width: max-content; animation: nb-slide var(--nb-time, 60s) linear infinite; will-change: transform; }
.newsbar:hover .nb-track, .newsbar:focus .nb-track { animation-play-state: paused; }
.newsbar .nb-run { display: flex; gap: 44px; padding-right: 44px; }
@keyframes nb-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .newsbar .nb-track { animation: none; } }
.newsbar .nb-item { display: inline-flex; gap: 8px; align-items: baseline; }
.newsbar .nb-time { color: var(--haze); }
.newsbar .nb-title { color: var(--paper); }
.newsbar .nb-when { color: var(--mist); }
.newsbar .nb-item.soon .nb-when { color: var(--warn); }
.chart-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pick.grow { flex: 1; min-width: 0; }
.pick.grow select { width: 100%; max-width: 420px; }
.alert-panel { padding: 4px 2px 14px; }
.alert-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.alert-form label { display: flex; flex-direction: column; gap: 5px; color: var(--mist); font-size: 12.5px; }
.alert-form input, .chart-search input, .ctl-search input {
  font: inherit; color: var(--paper); background: var(--ink); border: 0; border-radius: var(--r-ctl);
  padding: 9px 11px; min-width: 0; box-shadow: inset 0 0 0 1px var(--hair);
}
.alert-form input:focus-visible, .chart-search input:focus-visible, .ctl-search input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.alert-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.alert-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--deck-2); border-radius: var(--r-ctl); font-size: 13px; }
.alert-list li .al-price { font-weight: 600; min-width: 90px; }
.alert-list li .al-note { color: var(--mist); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-list li.hit { opacity: 0.6; }
.alert-list li button { margin-left: auto; }
.chart-panel.fullscreen {
  position: fixed; inset: 0; z-index: 60; border-radius: 0; display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom));
}
.chart-panel.fullscreen .chart { flex: 1; height: auto !important; min-height: 0; }
.chart-panel.fullscreen .chart-foot { display: none; }
body.chart-full { overflow: hidden; }
.chart-note:empty { display: none; }
.chart-note { margin: 8px 2px 0; }
.chart-search, .ctl-search { display: flex; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; max-width: 520px; }
.chart-search input, .ctl-search input { flex: 1; }
.ctl-results { list-style: none; margin: -6px 0 16px; padding: 6px; background: var(--deck); border-radius: var(--r-big); display: flex; flex-direction: column; gap: 2px; }
.ctl-results button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; padding: 9px 12px; border-radius: var(--r-ctl); display: flex; gap: 10px; }
.ctl-results button:hover, .ctl-results button:focus-visible { background: var(--blue); color: #fff; }
.ctl-results .cr-where { color: var(--mist); font-size: 12.5px; margin-left: auto; }
.ctl-results button:hover .cr-where { color: #fff; }
.ctl-results .cr-none { padding: 9px 12px; color: var(--mist); }
.found { box-shadow: inset 0 0 0 2px var(--blue); border-radius: var(--r-ctl); transition: box-shadow 1.2s ease; }
.switch {
  font: inherit; font-weight: 560; min-width: 64px; padding: 7px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--deck-2); color: var(--mist);
}
.switch[aria-pressed="true"] { background: var(--blue); color: #fff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; }
.btn.big { padding: 14px 22px; font-size: 16px; }
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.my-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; margin: 10px 0 16px; }
.my-form label { display: flex; flex-direction: column; gap: 6px; color: var(--mist); font-size: 12.5px; }
.view .my-form select, .view .my-form input {
  font: inherit; color: var(--paper); background: var(--deck-2); border: 0; border-radius: var(--r-ctl); padding: 9px 11px;
  width: 100%; box-sizing: border-box; box-shadow: none;
}
.my-form .wide { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer; background: var(--deck-2); color: var(--mist); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.pw-wrap { display: flex; gap: 6px; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-show { padding: 7px 10px; font-size: 12.5px; }
.user-card .user-sw { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.user-card .user-sw span { color: var(--mist); font-size: 13px; }
.user-card .user-status { color: var(--warn); font-size: 12.5px; }
.user-card .pw-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.user-card .pw-row input {
  font: inherit; color: var(--paper); background: var(--ink); border: 0; border-radius: var(--r-ctl); padding: 8px 10px;
  box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; flex: 1;
}
@media (max-width: 760px) {
  .brand-logo { width: 45px; height: 30px; }
  .chart-search, .ctl-search { max-width: none; width: 100%; flex: 1 1 100%; }
  .chart-tools { width: 100%; }
  .chart-tools .pick { flex: 1; }
  .alert-form { flex-direction: column; align-items: stretch; }
}
.login-logo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
[hidden] { display: none !important; }
.session-empty { text-align: left; padding: 28px; max-width: 560px; }
.session-empty h3 { margin: 0 0 6px; font-size: 20px; }
.session-empty p { margin: 0 0 16px; }
.chart-menu {
  position: absolute; z-index: 8; min-width: 190px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--deck-2); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.chart-menu .cm-price { font-weight: 640; padding: 6px 10px 4px; }
.chart-menu button {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 10px; border-radius: var(--r-ctl); font-size: 13.5px; color: var(--paper);
}
.chart-menu button:hover, .chart-menu button:focus-visible { background: var(--blue); color: #fff; }
.chart-menu button[disabled] { opacity: 0.45; cursor: default; background: none; }
.chart-menu .cm-msg { margin: 2px 10px 4px; font-size: 12.5px; }
.chart-menu .cm-msg:empty { display: none; }
.chart-hint {
  position: absolute; z-index: 8; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; background: var(--blue); color: #fff; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.chart-hint .btn { padding: 5px 12px; background: rgba(0, 0, 0, 0.25); color: #fff; }
.charts-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.mkb { padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--head-h, 90px) + 16px); }
.mkb-picks { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.mkb-picks select { width: 100%; max-width: none; background-color: var(--deck-2); }
.mkb-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 600px; scrollbar-width: thin; }
.mkb-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  font: inherit; color: var(--paper); background: transparent; border: 0; border-radius: var(--r-ctl);
  padding: 8px 10px; text-align: left; cursor: pointer;
}
.mkb-row:hover { background: var(--deck-2); }
.mkb-row.on { background: var(--blue); color: #fff; }
.mkb-row.on small, .mkb-row.on .mkb-px small { color: #fff; }
.mkb-name { display: flex; flex-direction: column; min-width: 0; font-weight: 500; }
.mkb-name, .mkb-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkb-row small { font-size: 12px; color: var(--mist); font-weight: 400; }
.mkb-px { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mkb-px small.gain { color: var(--gain); }
.mkb-px small.loss { color: var(--loss); }
.mkb-note { margin: 0; padding: 0 4px 4px; }
.mkb-note:empty { display: none; }
.chart-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ct-name { font-weight: 700; font-size: 17px; }
.ct-price { font-size: 17px; font-variant-numeric: tabular-nums; }
.ct-pct { font-size: 13px; color: var(--mist); }
@media (max-width: 900px) {
  .charts-grid { grid-template-columns: 1fr; }
  .mkb { position: static; }
  .mkb-list { max-height: 300px; }
}
.sure-back {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.72); animation: sure-in 0.14s ease-out;
}
.sure {
  width: min(380px, 100%); background: var(--deck); border-radius: 14px; padding: 22px 20px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
.sure-text { margin: 0 0 18px; font-size: 16px; line-height: 1.4; color: var(--paper); }
.sure-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sure-btns.one { grid-template-columns: 1fr; }
.sure-btns .btn { padding: 11px 14px; font-size: 15px; text-align: center; }
.btn.danger.sure-yes { background: var(--loss); color: #fff; font-weight: 620; }
.btn.danger.sure-yes:hover { background: #ff3b3b; }
body.sure-open { overflow: hidden; }
@keyframes sure-in { from { opacity: 0; } to { opacity: 1; } }
#ctl-requests h4 { margin: 0 0 10px; }
.user-card .user-status.loss { color: var(--loss); }
.req-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 0; }
.req-row + .req-row { box-shadow: 0 -1px 0 var(--hair); }
.req-row.done { opacity: 0.6; }
.req-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-main .name { font-weight: 600; }
.req-mail { color: var(--paper); text-decoration: none; overflow-wrap: anywhere; }
.req-note { color: var(--mist); font-size: 13px; }
.req-main .meta { color: var(--haze); font-size: 12px; }
.doc-up { display: flex; gap: 8px; }
.doc-panel { padding: 6px 18px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 0; }
.doc-row + .doc-row { box-shadow: 0 -1px 0 var(--hair); }
.doc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.doc-name { font-weight: 600; overflow-wrap: anywhere; }
.doc-meta { color: var(--haze); font-size: 12.5px; }
.doc-row .btn { text-decoration: none; }
#doc-empty { padding: 14px 0; margin: 0; }
#doc-msg:empty { display: none; }
.bm-panel h4 { margin: 18px 0 10px; }
.bm-list { list-style: none; margin: 10px 0 0; padding: 0; }
.bm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.bm-row + .bm-row { box-shadow: 0 -1px 0 var(--hair); }
.bm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bm-quick:empty { display: none; }
.bm-search { max-width: none; justify-content: flex-start; }
.bm-found, .my-found { max-height: 320px; margin-top: 8px; }
.mkb-row.static { cursor: default; }
.mkb-row.static:hover { background: transparent; }
.my-add { display: flex; gap: 8px; margin-top: 10px; }
.my-add input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--paper); background: var(--well); border: 0;
  border-radius: var(--r-ctl); padding: 9px 12px; box-shadow: inset 0 0 0 1px var(--hair);
}
.my-add input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }