
:root {
  --bg: #0b0b10;
  --win: #111117;
  --win-2: #17171f;
  --line: #22222c;
  --line-2: #2e2e3a;
  --text: #ececf2;
  --text-2: #aeacbd;
  --text-3: #817f93;
  --brand: #6f4cff;
  --brand-2: #a593ff;
  --brand-bg: rgba(111, 76, 255, .16);
  --tv-accent: #6f4cff;
  --hover: rgba(255, 255, 255, .045);
}
:root[data-theme="light"] {
  --bg: #eeeef3;
  --win: #ffffff;
  --win-2: #f6f6fa;
  --line: #e6e6ee;
  --line-2: #d6d6e2;
  --text: #15141c;
  --text-2: #4f4d60;
  --text-3: #85839a;
  --brand: #5b37f5;
  --brand-2: #5b37f5;
  --brand-bg: rgba(91, 55, 245, .08);
  --tv-accent: #5b37f5;
}


.logo { gap: 8px; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.logo .wm b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }


.unl-cta { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-bg); }
.unl-cta .ico, .unl-cta b { color: var(--brand-2); }
.unl-cta:hover { background: color-mix(in srgb, var(--brand) 26%, transparent); }
@media (max-width: 640px) { .unl-cta, .unl-cta:hover { background: var(--brand); border-color: var(--brand); color: #fff; } .unl-cta .ico, .unl-cta b { color: #fff; } }



.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #fff); }


.mbar.mbar a.on { color: var(--brand-2); }
.mbar a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand); }
.mbar a { position: relative; }


.ms-people button.tf-main .ms-av { box-shadow: 0 0 0 2px var(--win), 0 0 0 3.5px var(--brand); }
.ms-people button.on { background: var(--brand-bg); }


#boot .bk { border-top-color: var(--brand) !important; }
:root[data-theme="light"] .unl-cta { color: var(--text); }
:root[data-theme="light"] .unl-cta .ico, :root[data-theme="light"] .unl-cta b { color: var(--brand); }


:root {
  --r: 10px; --r-lg: 14px;
  --up: #22c39a; --down: #f5576c; --up-bg: rgba(34, 195, 154, .14); --down-bg: rgba(245, 87, 108, .13);
  
  --tv-panel: #111117; --tv-gap: #08080c; --tv-menu: #17171f; --tv-dialog: #17171f; --tv-hover: #1f1f29; --tv-soft: #17171f;
  --tv-line: #22222c; --tv-line-2: #30303c; --tv-text: #ececf2; --tv-btn: #b9b6c8; --tv-text-3: #817f93; --tv-accent: #8b74ff;
  --tv-grid: #16161d; --tv-grid-dot: #2a2a34; --tv-ok-bg: #6f4cff; --tv-chk: #6f4cff; --tv-tpl: #30303c;
}
:root[data-theme="light"] {
  --up: #0f9e78; --down: #e0465e; --up-bg: rgba(15, 158, 120, .1); --down-bg: rgba(224, 70, 94, .1);
  --tv-panel: #ffffff; --tv-gap: #eeeef3; --tv-hover: #f3f2f8; --tv-soft: #f6f6fa; --tv-line: #e6e6ee; --tv-line-2: #d6d6e2;
  --tv-text: #15141c; --tv-btn: #2b2a36; --tv-text-3: #85839a; --tv-accent: #5b37f5; --tv-grid: #f3f3f7; --tv-ok-bg: #5b37f5; --tv-chk: #5b37f5;
}
@media (min-width: 641px) { :root { --gap: 8px; } }



#chartWin { border-radius: var(--r-lg); }
#chartWin > .chart-head { border-radius: 12px; }
#chartWin .chart-body { border-radius: var(--r-lg) var(--r-lg) 0 0; }
#chartWin .chart-foot { border-radius: 0 0 var(--r-lg) var(--r-lg); }
#chartWin .chart-foot { border-top: 1px solid var(--tv-line); }
#chartWin .draw-bar { border-right: 1px solid var(--tv-line); }
.shell > .side, .shell > .rail, .shell .win { border-radius: var(--r-lg); }


.topbar { border-bottom: 0; background: var(--tv-gap); }
.nav { background: var(--tv-panel); border-radius: 12px; padding: 3px; gap: 2px; }
.nav a { border-radius: 9px; padding: 6px 14px; }
.nav a.on { background: var(--brand); color: #fff; }
.search { border-radius: 12px; }


.rail button.on { background: var(--brand-bg); color: var(--brand-2); border-radius: 10px; }
.rail button.on .rl-t { color: var(--brand-2); font-weight: 700; }


#drawBar .tool.on, #drawBar .tool[aria-pressed="true"] { background: var(--brand-bg); color: var(--brand-2); border-radius: 8px; }


.overlay .modal { border-radius: 16px; }
.pop { border-radius: 12px; }


:root[data-theme="light"] {
  --bg: #f2f2f7; --tv-gap: #f2f2f7; --tv-panel: #ffffff; --tv-menu: #ffffff; --tv-dialog: #ffffff;
  --shadow: 0 8px 30px rgba(40, 30, 90, .12);
}
:root[data-theme="light"] .topbar { background: #f2f2f7; }
:root[data-theme="light"] #chartWin, :root[data-theme="light"] .shell > .side, :root[data-theme="light"] .shell > .rail, :root[data-theme="light"] #chartWin > .chart-head { box-shadow: 0 1px 2px rgba(30, 20, 80, .05), 0 4px 16px rgba(30, 20, 80, .05); }
:root[data-theme="light"] .nav { background: #e6e5ef; }
:root[data-theme="light"] .nav a.on { background: var(--brand); color: #fff; }
:root[data-theme="light"] .search { background: #fff; border-color: transparent; }
:root[data-theme="light"] .mbar { background: #fff; border-top-color: #e6e6ee; }
:root[data-theme="light"] .tf-hero { background: #faf9ff; }
:root[data-theme="light"] .tf-grade.live b, :root[data-theme="light"] .tf-grade.flat b { color: var(--text); }


.topbar .ws-tabs, .topbar #wsMore { display: none !important; }
.ws-pick { max-width: 150px; padding: 0 8px; gap: 3px; font-weight: 600; }
.ws-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pick .ico { width: 12px; height: 12px; flex: none; }

.ms-people { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }


.tf-act .tf-view { color: var(--brand-2); font-weight: 700; }
.tf-act .tf-view .ico { width: 13px; height: 13px; }


.au-lead { margin: 2px 0 14px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.au-terms { margin: 10px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }
.au-terms a { color: inherit; text-decoration: underline; }


.ip-card { padding: 14px 14px 12px; }
.ip-mk { border: 0; border-radius: 10px; background: var(--win-2); }
.ip-card.is-on .ip-mk { background: var(--brand-bg); }
.ip-card:not(.is-on) .ip-mk { opacity: .85; }
.ip-card:not(.is-on) .ip-tt b { color: var(--text-2); }
.ip-tt p { margin-top: 2px; }
.ip-tags { align-items: center; gap: 0; margin-top: 6px; }
.ip-tf { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ip-tf + .ip-tf::before { content: '·'; margin: 0 6px; }
.ip-tags .mo-open { color: var(--text-3); font-weight: 500; }
.ip-sigs { border-top: 0; margin-top: 2px; }
.ip-sig { border-bottom: 0; border-radius: 6px; height: 28px; padding: 0 6px; margin-left: -6px; width: calc(100% + 6px); }
.ip-sig span { font-weight: 500; }


.ip-plan { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.ip-plan span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ip-plan .ico { width: 13px; height: 13px; color: var(--text-3); }
.ip-plan b { color: var(--text); font-weight: 600; }
.ip-plan button { margin-left: auto; flex: none; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; }
.ip-plan button:hover { filter: brightness(1.08); }

.nudge { position: fixed; left: 20px; bottom: 20px; z-index: 380; width: 300px; padding: 16px 16px 14px; border-radius: 14px; background: var(--win); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); animation: nudge-in .25s ease-out; }
.nudge b { font-size: 15px; font-weight: 700; }
.nudge p { margin: 4px 0 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; word-break: keep-all; }
.nudge div { display: flex; gap: 8px; }
.nudge .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.nudge-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 6px; color: var(--text-3); font-size: 12px; }
.nudge-x:hover { background: var(--hover); color: var(--text); }
@keyframes nudge-in { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 640px) { .nudge { left: 12px; right: 12px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }

.pop.cm-pop { width: 280px; padding: 6px; }
.pop .cm-row { min-height: 52px; border-radius: 10px; }

.s-modal .s-box { height: 46px; border-radius: 12px; background: var(--win-2); border-color: transparent; }
.s-modal .s-box:hover, .s-modal .s-box:focus-within { border-color: var(--brand-2); }
.s-modal .s-pill { border-radius: 8px; background: transparent; border: 1px solid var(--line-2); font-size: 13px; }
.s-modal .s-pill.on { background: var(--brand-bg); border-color: var(--brand-2); color: var(--brand-2); font-weight: 600; }
.s-modal .s-row .s-src { display: none; }
.s-modal .s-row .s-mex { display: block; }
.s-modal .s-row .sym b { font-weight: 600; }
.s-modal .s-row .s-orig { font-weight: 400; }
.s-modal .s-row .s-alts { gap: 4px; }
.s-modal .s-row.s-head .s-hx { text-align: left; }
.s-modal .s-row.hl, :root[data-theme="light"] .s-modal .s-row.hl { background: var(--brand-bg); box-shadow: inset 3px 0 0 var(--brand-2); border-radius: 0; }
@media (min-width: 641px) {
  .s-modal .s-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 100px 76px 84px 28px; height: 52px; border-bottom: 0; }
  .s-modal .s-row.s-head { height: 30px; border-bottom: 1px solid var(--tv-line); }
  .s-modal .s-row.s-head > :nth-child(6) { display: none; }
}


@media (min-width: 641px) {
  .shell.shell { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--side-w); }
  .shell.shell > .rail { grid-column: 1; grid-row: 1; margin: 0; }
  .shell.shell > .view { grid-column: 2; grid-row: 1; }
  .shell.shell > .side { grid-column: 3; grid-row: 1; }
  .shell.shell.side-off { grid-template-columns: var(--rail-w) minmax(0, 1fr) 0; column-gap: 0; }
  .shell.shell.side-off > .rail { margin: 0 var(--gap) 0 0; }
  .shell.shell.side-off.side-float > .side { right: 0; width: min(var(--side-w), calc(100% - var(--rail-w) - var(--gap) * 2)); }
  body.focus .shell.shell > .view { grid-column: 1; }
}
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  .shell.shell.side-off.side-float { grid-template-columns: var(--rail-w) minmax(0, 1fr) 280px; column-gap: var(--gap); }
  .shell.shell.side-off.side-float > .side { grid-column: 3; right: auto; width: auto; }
  .shell.shell.side-off.side-float > .rail { margin: 0; }
}


.tf-pts li.tf-br { list-style: none; margin-left: -1.1em; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 6px; }
.tf-pts li.tf-br b { color: var(--text-2); font-weight: 600; white-space: nowrap; }

@media (min-width: 641px) {
  .shell.shell > .rail button.on { background: none; box-shadow: inset 3px 0 0 var(--brand-2); border-radius: 0; }
  .shell.shell > .rail button { width: 100%; }
}


.sub-modal { width: min(520px, calc(100vw - 32px)); padding: 26px 26px 22px; gap: 16px; }
.sub-head h2 { font-size: 22px; }
.sub-head .sub-why { font-size: 14px; margin-top: 6px; }
.sub-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sub-gets li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.sub-gets .ico { width: 20px; height: 20px; padding: 8px; box-sizing: content-box; border-radius: 10px; background: var(--brand-bg); color: var(--brand-2); }
.sub-gets b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.sub-gets span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--text-2); word-break: keep-all; }
.sub-price { padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; row-gap: 2px; }
.sub-price b { font-size: 28px; }
.sub-btns .sub-go { flex: 1; justify-content: center; height: 46px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.sub-btns .btn.ghost { height: 46px; border-radius: 12px; }
.sub-free { margin: 0; font-size: 12.5px; color: var(--text-3); }
.sub-more summary { cursor: pointer; font-size: 13px; color: var(--text-2); padding: 4px 0; }
.sub-more summary:hover { color: var(--text); }
.sub-more[open] summary { margin-bottom: 8px; }


@media (min-width: 641px) { .topbar .search { display: none; } }

@media (min-width: 641px) {
  #chartWin:not(:fullscreen) > .chart-head { width: calc(100vw - 3 * var(--gap) - var(--rail-w)); }
  .shell.shell:has(> #view-chart.on) > .rail { margin-top: calc(-1 * (var(--hh) + var(--gap))); }
  body.focus #chartWin:not(:fullscreen) > .chart-head { width: calc(100vw - 2 * var(--gap)); }
}

@media (min-width: 1100px) {
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) { --topbar-h: 0px; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar { position: fixed; inset: 0 0 auto 0; height: 0; min-height: 0; padding: 0; background: none; z-index: 31; pointer-events: none; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar > * { pointer-events: auto; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar .nav { display: none; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar .logo { position: fixed; top: var(--gap); left: var(--gap); width: var(--rail-w); height: 42px; display: grid; place-items: center; margin: 0; padding: 0; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar .logo .wm { display: none; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar .top-r { position: fixed; top: var(--gap); right: var(--gap); width: var(--side-w); height: var(--hh); box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 6px; margin: 0; background: var(--tv-panel, var(--win)); border-radius: var(--r-lg); }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) .topbar .top-r .btn { height: 30px; }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) #chartWin:not(:fullscreen) > .chart-head { width: calc(100vw - 4 * var(--gap) - var(--rail-w) - var(--side-w)); }
  body:not(.focus):has(#shell:not(.side-off) > #view-chart.on) #shell > .rail { padding-top: 48px; }
}


.sub-modal { position: relative; padding-top: 0; overflow-x: hidden; }
.sub-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--win); border-radius: 50%; width: 30px; height: 30px; }
.sub-hero { position: relative; margin: 0 -26px; padding: 18px 20px 6px; background: var(--brand-bg); }
.sub-hero svg { display: block; width: 100%; height: auto; }
.sub-hero > span { position: absolute; left: 14px; top: 10px; font-size: 11px; color: var(--text-3); }
.sub-hero-card rect { fill: var(--win); stroke: var(--line-2); }
.sub-hero-card .t1 { fill: var(--text); } .sub-hero-card .t2 { fill: var(--text-2); } .sub-hero-card .t3 { fill: var(--brand-2); }
.sub-eye { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--brand-2); }
.sub-head h2 { font-size: 21px; line-height: 1.35; word-break: keep-all; }
@media (max-width: 560px) { .sub-hero { margin: 0 -14px; padding: 16px 10px 4px; } #subOv .modal.sub-modal { padding-top: 0; } }


.sub-order { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.sub-order > b { display: block; font-size: 13.5px; margin-bottom: 8px; }
.sub-order dl { margin: 0; display: grid; gap: 5px; }
.sub-order dl div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.sub-order dt { color: var(--text-3); } .sub-order dd { margin: 0; color: var(--text); word-break: keep-all; }
.sub-order a { color: var(--brand-2); }
.sub-agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.sub-agree input { margin-top: 3px; accent-color: var(--brand); }
.sub-biz { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.sub-pay[aria-disabled="true"] { opacity: .5; }
