:root {
  --bg:#0b1119; --panel:#111b27; --line:#263444; --muted:#a0afc0; --text:#edf3fa;
  --cyan:#80d9ee; --green:#65d694; --red:#f27f8c; --blue:#7aaeff;
  --surface-raised:#172332; --focus:#a1e7f5; --reference:#c6b2ff;
  accent-color:var(--cyan);
}
html,body {font-family:"Segoe UI",system-ui,sans-serif;font-size:12px;background:var(--bg)}
body {grid-template-rows:auto minmax(0,1fr) auto}
::selection {background:#254e62;color:#fff}
* {scrollbar-width:thin;scrollbar-color:#3c526a var(--panel)}
button,summary,select,input {font-family:inherit;transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease}
button,summary {cursor:pointer}
button:disabled {cursor:default}
:is(button,summary,select,input,a):focus-visible {outline:2px solid var(--focus);outline-offset:3px}
header {display:block;padding:0 20px;background:#101923;border-bottom:1px solid var(--line);position:relative;z-index:12}
.header-main {height:46px;display:flex;align-items:center;gap:18px;border-bottom:1px solid #22303f}
.brand {display:flex;align-items:center;gap:10px;font-size:18px;font-weight:650;letter-spacing:-.025em;margin:0;white-space:nowrap}
.brand-mark {width:29px;height:29px;color:var(--cyan);flex-shrink:0}
.brand span {font-size:11px!important;letter-spacing:.12em;font-weight:650;color:var(--cyan)!important;margin-left:1px}
.feed-status {display:flex;align-items:center;gap:7px;min-width:0;margin-left:auto}
.chip {border-color:#304154;background:#142131;color:#b4c2d2;font-size:11px;font-weight:500;height:26px;padding:0 9px}
.chip.compact-status {font-size:10px;height:24px;padding:0 8px}
.chip.ok {color:#86deb0;border-color:#2d5548;background:#142a27}
.chip.bad {color:#f5a1aa;border-color:#633d48;background:#2c2029}
.chip.warn {color:#e9c48b;border-color:#5a4b37;background:#29261f}
.private-badge {color:#b0c7dc!important;background:transparent!important;border-color:#334456!important;display:flex;gap:5px}
.private-badge svg {width:12px;height:12px}
.panel-actions {display:flex;align-items:center;gap:8px}
.context-toggle {height:34px;padding:0 13px;background:#172434;border-color:#33465b;font-weight:600;color:#c8d6e5}
.context-toggle:hover,.sma-menu summary:hover,.line-menu summary:hover,.block-menu summary:hover {background:#213247;border-color:#557089}
.context-toggle[aria-expanded="true"],#compareToggle[aria-expanded="true"] {background:#203e4b;border-color:#5ca6b7;color:#b8f2ff}
.toolbar {display:flex;align-items:center;gap:14px;min-height:50px;flex-wrap:wrap;padding:8px 0}
.toolbar>label {gap:7px;color:#a7b7ca;font-size:11px;white-space:nowrap}
.toolbar select,.toolbar input {height:34px;background:#172332;border-color:#334356;border-radius:7px;font-size:12px;padding:0 10px;color:#edf3fa;font-variant-numeric:tabular-nums}
.toolbar>label:first-child select {font-weight:700;color:#bdefff;min-width:83px}
.sma-menu summary,.line-menu summary,.block-menu summary {height:34px;background:#172332;border-color:#334356;border-radius:7px;font-size:11px;color:#c8d6e5}
.sma-pop,.line-pop,.block-pop {top:39px;background:#152130;border-color:#364d64;padding:10px;box-shadow:0 12px 25px #0005}
.workbench {background:var(--bg)}
.legend {top:16px;left:18px;gap:6px;font-size:10px}
.legend span {background:#111d2b;border-color:#2a3b4b;border-radius:5px;padding:5px 8px;color:#c7d4e3}
.watermark {font-weight:650;color:#b3c7e30a;letter-spacing:-.035em}
.context-panel,.state-exp-panel {background:var(--panel);border-color:var(--line);padding:22px}
.context-panel h2,.state-exp-panel h2 {font-size:18px;color:var(--text)}
.context-row {padding:11px 0;border-color:#273646}
.context-row dt {color:#a7b7ca}
.context-meta,.context-note,.context-state {line-height:1.7}
.error {top:56px;z-index:20;max-width:min(640px,90%);padding:12px 16px;background:#402630;border:1px solid #915362;color:#ffe2e6;line-height:1.6;box-shadow:0 8px 22px #0004}
body.compare-open .workbench {grid-template-columns:minmax(0,1fr) 420px}
#comparePanel {position:relative;inset:auto;z-index:8;width:auto;height:100%;min-height:0;padding:0 22px 22px;overflow:auto;background:var(--panel);border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none}
#comparePanel .comparison-top {position:sticky;top:0;background:var(--panel);padding:22px 0 14px;z-index:2}
#comparePanel .compare-head {gap:12px}
#comparePanel h2 {font-size:18px;font-weight:650;letter-spacing:-.02em}
#comparePanel p {color:#a8b8ca;line-height:1.7}
#comparePanel .comparison-top>p {font-size:11px;margin:9px 0 16px}
#comparePanel .compare-actions {margin:0;gap:8px}
#comparePanel button {min-height:36px;border-radius:7px;font-size:11px;font-weight:600;padding:7px 12px;background:#1a2a3d;border-color:#3b516b;color:#d7e5f3}
#comparePanel button:hover:not(:disabled) {background:#263c52;border-color:#6b879f}
#comparePanel button.pin {background:#94e0ee;border-color:#94e0ee;color:#10222c}
#comparePanel button.pin:hover:not(:disabled) {background:#b6f0f8;border-color:#b6f0f8}
#comparePanel button:disabled {opacity:.45}
#compareClose {display:grid;place-items:center;min-width:34px;min-height:34px!important;padding:6px!important;color:#b9cbdd!important}
#compareClose svg {width:18px;height:18px}
#compareEmpty {font-size:12px;padding:20px!important;background:#142131;border:1px dashed #3c546b!important;border-radius:8px;color:#b7c9db!important}
#comparePanel table {table-layout:fixed;width:100%;font-size:11px}
#comparePanel th:first-child {width:35%}
#comparePanel th {color:#c0cfdf;font-size:10px;letter-spacing:0;vertical-align:top;font-weight:600;text-align:right}
#comparePanel th:first-child {text-align:left}
#comparePanel th,#comparePanel td {padding:11px 6px;border-color:#28394b;overflow-wrap:anywhere}
#comparePanel td:first-child {color:#bbcbdc;font-size:11px;line-height:1.5}
#comparePanel td:not(:first-child) {font-size:12px;white-space:normal;line-height:1.5;letter-spacing:-.015em}
#comparePanel td:nth-child(2) {color:#c8baf3;background:#1c20312e}
#comparePanel .changed {color:#a4e9f8;background:#153d4c66}
.column-title {display:block;margin-bottom:6px;color:#e7eff8;font-size:10px;letter-spacing:.06em}
.column-quality {display:block;font-size:9px;font-weight:400;line-height:1.5;color:#b7c8d9}
.column-quality.reference {color:#e7c28a}
#comparePanel .meta {padding:12px 0 0;margin:0;font-size:10px;color:#a5b8ce}
#comparePanel #compareOverlayNote {padding:12px 0;color:#d2c4ff!important;font-size:10px;border-bottom:1px solid var(--line)}
#comparePanel .compare-note {font-size:10px}
.comparison-busy .compare-current {opacity:.5}
footer {min-height:48px;padding:6px 20px;background:#101923;border-color:var(--line);font-size:10px;gap:16px}
.playback {max-width:600px;gap:9px}
.playback button {height:32px;min-width:34px;background:#1a2a3b;border-color:#3b5067;color:#d7e8f7;border-radius:6px}
.playback button:hover:not(:disabled) {background:#294157}
.playback input {accent-color:#80d9ee}
#replayMeta {color:#b5c7dc;min-width:100px;font-size:10px}
@media(min-width:961px) and (max-width:1250px) {.toolbar{gap:8px}.toolbar>label{gap:4px;font-size:10px}.toolbar select,.toolbar input{padding:0 6px;font-size:11px}.toolbar>label:first-child select{min-width:68px}.sma-menu summary,.line-menu summary,.block-menu summary{padding:0 7px;font-size:10px}.header-main{gap:12px}body.compare-open .workbench{grid-template-columns:minmax(0,1fr) 390px}#comparePanel{padding-inline:18px}}
@media(max-width:960px) {
  header {display:flex;flex-wrap:wrap;padding:10px 12px 8px;gap:8px;background:#101923}
  .header-main,.toolbar,.panel-actions {display:contents}
  .brand {order:0;flex:1 1 auto;width:auto;font-size:17px;margin:0;gap:8px}
  .brand-mark {width:24px;height:24px}
  .brand span {font-size:10px!important}
  .private-badge {order:1;height:24px!important;padding:0 8px!important;font-size:10px!important}
  header::after {order:2;height:0;width:100%;content:""}
  .toolbar>.mobile-primary {order:3;flex:0 0 auto;font-size:0;gap:0}
  .toolbar>.mobile-primary select {height:44px;min-width:72px;max-width:92px;font-size:16px;padding:0 10px;background:#1a293b;border-color:#3b5068}
  .context-toggle {order:3;min-height:44px;padding:0 13px;font-size:12px}
  .mobile-controls-toggle {order:3;display:grid;width:44px;height:44px;margin-left:auto;background:#1a293b;border-color:#3b5068}
  .feed-status {order:4;flex:0 0 100%;margin:0;gap:5px;min-height:24px;overflow:hidden}
  .feed-status>.chip {font-size:9px;height:21px;padding:0 7px;flex-shrink:0}
  header .chip.compact-status {height:21px}
  #mobileControlPanel {top:112px;background:#142131;border-color:#3b516b;padding:18px;max-height:calc(100dvh - 126px);border-radius:12px;box-shadow:0 14px 30px #0007}
  #mobileControlPanel select,#mobileControlPanel input[type=date] {background:#1a2a3c;border-color:#3b516b}
  #mobileControlPanel .context-toggle {width:100%}
  body.compare-open .workbench {grid-template-columns:minmax(0,1fr)}
  #comparePanel {position:absolute;top:auto;bottom:0;left:0;right:0;width:100%;height:auto;max-height:76%;padding:0 16px 20px;border:1px solid #39516a;border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -10px 28px #0005;z-index:11;overscroll-behavior:contain;touch-action:pan-y}
  #comparePanel .comparison-top {padding:16px 0 13px}
  #comparePanel h2 {font-size:18px}
  #comparePanel .comparison-top>p {font-size:11px;margin:6px 0 12px}
  #comparePanel .compare-actions {gap:8px}
  #comparePanel button {min-height:44px;font-size:11px}
  #compareClose {min-height:44px!important;min-width:44px}
  #comparePanel th:first-child {width:34%}
  #comparePanel th,#comparePanel td {padding:10px 5px}
  #comparePanel td:not(:first-child) {font-size:11px}
  #comparePanel td:first-child {font-size:11px}
  .legend {top:10px;left:10px;gap:4px;font-size:9px;right:60px;max-height:58px}
  .legend span {padding:4px 6px}
  .context-panel,.state-exp-panel {background:var(--panel);padding:16px;border-color:#39516a}
  .context-heading,.state-exp-heading {background:var(--panel)}
  footer {padding:4px 10px calc(4px + env(safe-area-inset-bottom,0px));gap:2px 6px;min-height:68px}
  .playback {gap:5px}
  .playback button {height:44px}
  #replayMeta {font-size:9px;min-width:0;max-width:72px}
  .mobile-view-reset {background:#1a2a3b;border-color:#3b5067;color:#d7e8f7}
  .error {font-size:12px;top:10px;max-width:94%;width:max-content}
}
@media(max-width:360px) {.brand{font-size:15px}.brand span{display:none}.toolbar>.mobile-primary select{min-width:62px;max-width:74px;padding:0 7px}.context-toggle{padding:0 10px;font-size:11px}.mobile-controls-toggle{margin-left:0}header{gap:6px}}
@media(prefers-reduced-motion:reduce) {button,summary,select,input{transition:none}}

.error{align-items:center;gap:14px}.error button{flex-shrink:0;min-height:36px;border:1px solid #c27c89;border-radius:6px;background:#603746;color:#fff0f3;padding:6px 12px;font:inherit;font-weight:600}.error button:hover{background:#774457}@media(max-width:960px){.error{align-items:flex-start;gap:10px}.error button{min-height:44px}}

@media(min-width:2200px) {
  header{display:flex;align-items:center;gap:18px;min-height:62px;padding-block:8px}
  .header-main{display:contents}
  .brand{order:0;font-size:17px;gap:8px}
  .brand-mark{width:25px;height:25px}
  .toolbar{order:1;min-height:0;padding:0;gap:11px;flex-wrap:nowrap}
  .feed-status{order:2;margin-left:auto;gap:5px}
  .feed-status>.chip{font-size:9px;padding-inline:6px}
  .private-badge{order:3;font-size:10px;padding-inline:7px}
  .panel-actions{order:4;gap:6px}
  .context-toggle{padding-inline:11px}
}
@media(min-width:1600px) and (max-width:2199px){.header-main{height:42px}.toolbar{min-height:42px;padding:4px 0;gap:12px}}
.error.retained{background:#30291d;border-color:#826943;color:#f4dfb6}
.error.retained button{background:#4b3d27;border-color:#a18554;color:#fff0d6}
.error.retained button:hover{background:#625033}

.indicators-menu{position:relative}
.indicators-menu>summary{display:flex;align-items:center;justify-content:center;height:34px;list-style:none;padding:0 10px;background:var(--surface-raised);border:1px solid #334356;border-radius:7px;color:#c8d6e5;font-size:11px;white-space:nowrap}
.indicators-menu>summary::-webkit-details-marker{display:none}
.indicators-menu>summary:hover{background:#213247;border-color:#557089}
.indicators-menu[open]>summary{background:#203e4b;border-color:#5ca6b7;color:#b8f2ff}
.indicators-pop{position:absolute;top:40px;right:0;width:292px;max-width:calc(100vw - 24px);padding:7px;background:#152130;border:1px solid #364d64;border-radius:8px;box-shadow:0 12px 25px #0005;z-index:25}
.indicators-pop .indicator-submenu{display:block;position:relative;width:100%}
.indicators-pop .indicator-submenu+details{border-top:1px solid var(--line)}
.indicators-pop .indicator-submenu>summary{display:list-item;list-style:disclosure-closed inside;height:auto;min-height:40px;padding:11px 10px;border:0;background:transparent;border-radius:5px;text-align:left;font-size:12px;color:var(--text)}
.indicators-pop .indicator-submenu[open]>summary{list-style:disclosure-open;background:var(--surface-raised)}
.indicators-pop .indicator-submenu>summary::-webkit-details-marker{display:inline}
.indicators-pop .sma-pop{position:static;inset:auto;display:grid;grid-template-columns:1fr;gap:12px;width:auto;min-width:0;padding:14px 10px;background:transparent;border:0;border-radius:0;box-shadow:none}
.indicators-pop .sma-pop label,.indicator-check{display:flex;align-items:center;gap:9px;min-height:24px;font-size:12px;color:var(--text)}
.indicators-pop input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:var(--cyan)}
.indicator-source{display:grid;gap:7px;font-size:11px;color:var(--muted)}
.indicator-source select{width:100%;height:36px;font-size:12px;background:var(--surface-raised);border:1px solid #334356;border-radius:6px;color:var(--text);padding:0 8px}
.indicator-note,.indicator-status{margin:0;font-size:11px;line-height:1.6;color:var(--muted)}
.indicator-status{color:#c8d6e5}
#bbRetry{padding:8px 10px;background:var(--surface-raised);border:1px solid #557089;border-radius:6px;color:var(--text);font-size:11px}
@media(max-width:960px){#mobileControlPanel .indicators-menu{grid-column:1/-1;width:100%}#mobileControlPanel .indicators-menu>summary{min-height:44px;justify-content:flex-start;font-size:13px}#mobileControlPanel .indicators-pop{position:static;max-width:100%;width:auto;margin-top:8px;padding:0;border:0;box-shadow:none}#mobileControlPanel .indicator-submenu>summary{min-height:44px}#mobileControlPanel .indicator-check,#mobileControlPanel .sma-pop label{min-height:36px}#mobileControlPanel .indicator-source select{height:44px;font-size:16px}}

.language-toggle{display:inline-flex;align-items:center;gap:5px;justify-content:center;font-size:10px;padding:0 10px;white-space:nowrap}
.language-toggle [data-language-option]{color:var(--muted)}.language-toggle .selected{color:var(--cyan);font-weight:750}.language-divider{color:#557089}
.help-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:42px;font-size:11px;box-sizing:border-box}
.indicators-pop .block-pop{position:static;inset:auto;display:grid;width:auto;min-width:0;padding:14px 10px;border:0;border-radius:0;background:transparent;box-shadow:none}
.indicators-pop .block-pop label{display:flex;align-items:center;gap:9px;min-height:24px;color:var(--text)}
.indicators-pop .block-pop{gap:12px}
.indicators-pop .sma-pop .s8{color:var(--blue)}.indicators-pop .sma-pop .s20{color:var(--yellow)}.indicators-pop .sma-pop .s200{color:var(--purple)}
.indicators-pop .sma-pop label::after{content:"";display:block;width:28px;height:3px;margin-left:auto;border-radius:2px;background:currentColor;box-shadow:0 0 8px -2px currentColor}
.watermark{display:flex;align-items:center;gap:18px;font-family:"Segoe UI Variable Display","Segoe UI",sans-serif;font-weight:650;font-size:clamp(34px,5.6vw,76px);letter-spacing:-.055em;line-height:1.05;color:rgba(147,175,204,.075);top:13%}
.watermark-ticker{animation:watermark-reveal 420ms cubic-bezier(.16,1,.3,1) both}
.watermark-timeframe{font-size:.38em;letter-spacing:-.025em;font-weight:500;color:rgba(125,211,231,.15);border:1px solid rgba(125,211,231,.09);border-radius:9px;padding:7px 10px;animation:watermark-reveal 460ms cubic-bezier(.16,1,.3,1) both}
@keyframes watermark-reveal{from{opacity:0;transform:translateY(5px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(max-width:960px){.watermark{gap:10px;top:16%;font-size:42px}.watermark-timeframe{padding:5px 7px;border-radius:6px}}
@media(prefers-reduced-motion:reduce){.watermark-ticker,.watermark-timeframe{animation:none}}
.candle-countdown{--clock-accent:#77e6b0;--clock-border:#39775d;font-family:"Segoe UI",system-ui,sans-serif;font-variant-numeric:tabular-nums;box-sizing:border-box}
.candle-countdown.down{--clock-accent:#ffacb6;--clock-border:#8b4c5d}
.candle-countdown.scale{height:24px;border:1px solid var(--clock-border);border-radius:5px 0 0 5px;background:linear-gradient(120deg,#163b30,#102b26)!important;color:#e9fff4;box-shadow:-3px 0 14px #081d184d;padding:0 4px 2px;overflow:hidden}
.candle-countdown.scale.down{background:linear-gradient(120deg,#482330,#2d1b26)!important;color:#fff1f3}
.candle-countdown.scale .countdown-price{font-size:12px;font-weight:750;line-height:11px;letter-spacing:-.02em}
.candle-countdown.scale .countdown-time{font-size:9px;line-height:9px;font-weight:600;color:var(--clock-accent)}
.candle-countdown::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--clock-accent);transform:scaleX(var(--remaining,1));transform-origin:left;transition:transform 1s linear;box-shadow:0 0 6px var(--clock-accent)}
.candle-countdown.fallback{display:flex;align-items:center;gap:7px;min-height:30px;border:1px solid #436476;border-radius:7px;background:linear-gradient(120deg,#182d3c,#101e2b);padding:7px 10px 8px;box-shadow:0 3px 14px #0003;overflow:hidden;color:#d6f1fc;font-size:11px}
.candle-countdown.fallback::before{content:"";width:9px;height:9px;flex:none;border:1px solid currentColor;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg 270deg,#80d9ee44 270deg 360deg)}
@media(prefers-reduced-motion:reduce){.candle-countdown::after{transition:none}}
.candle-countdown.closing{--clock-accent:#ffd580;--clock-border:#bb914a;border-color:#bb914a!important;animation:clock-closing 1100ms ease-in-out infinite}
.candle-countdown.closing .countdown-time{color:#ffe2a8}
@keyframes clock-closing{0%,100%{box-shadow:0 0 0 1px #ffd58016,0 0 7px #ffcc6620}50%{box-shadow:0 0 0 1px #ffd58055,0 0 18px #ffcc6650}}
@media(prefers-reduced-motion:reduce){.candle-countdown.closing{animation:none}}
.order-bubbles{position:absolute;left:0;top:0;z-index:3;overflow:hidden;pointer-events:none;contain:layout paint}
.context-loading .order-bubbles{visibility:hidden}
.order-bubble{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;color:#64e8a5;isolation:isolate;animation:bubble-arrive 300ms cubic-bezier(.16,1,.3,1) both;pointer-events:auto;cursor:help}
.order-bubble.bearish{color:#ff7c8b}
.order-bubble b{position:absolute;inset:3px;border:1px solid #a3ffd3a3;background:radial-gradient(circle at 30% 18%,#ffffff66,transparent 47%),linear-gradient(145deg,#289465,#103a32);border-radius:50%;box-shadow:inset 0 0 3px #ffffff40,0 0 11px #62e8a552}
.order-bubble.bearish b{border-color:#ffb0b9bd;background:radial-gradient(circle at 30% 18%,#ffffff66,transparent 47%),linear-gradient(145deg,#bd4058,#421e30);box-shadow:inset 0 0 3px #ffffff40,0 0 11px #ff758b52}
.order-bubble b::after{content:"";position:absolute;width:4px;height:4px;left:50%;top:50%;margin-left:-2.5px;margin-top:-1px;border-left:1.5px solid #eafff4;border-top:1.5px solid #eafff4;transform:rotate(45deg)}
.order-bubble.bearish b::after{transform:rotate(225deg);margin-top:-3.5px;border-color:#fff0f3}
.order-bubble::before,.order-bubble::after{content:"";position:absolute;inset:1px;border:1px solid currentColor;border-radius:50%;animation:bubble-ripple 2200ms cubic-bezier(.16,1,.3,1) infinite;will-change:transform,opacity}
.order-bubble::after{animation-delay:1100ms}.order-bubble i{position:absolute;inset:0;border-radius:50%;background:currentColor;opacity:.09;filter:blur(3px)}
@keyframes bubble-arrive{from{opacity:0;transform:scale(.65)}to{opacity:1;transform:scale(1)}}
@keyframes bubble-ripple{0%{opacity:.5;transform:scale(.8)}90%,100%{opacity:0;transform:scale(1.8)}}
@keyframes flow-reveal{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes flow-panel{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}
details[open]>.indicators-pop,details[open]>.line-pop,details[open]>.sma-pop,details[open]>.block-pop{animation:flow-reveal 200ms cubic-bezier(.16,1,.3,1) both;transform-origin:top right}
.context-panel:not([hidden]),#comparePanel:not([hidden]),#mobileControlPanel:not([hidden]){animation:flow-panel 250ms cubic-bezier(.16,1,.3,1) both}
button,.help-link,summary{transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 180ms ease}
button:active,.help-link:active{transform:scale(.97)}
@media(prefers-reduced-motion:reduce){.order-bubble,.order-bubble::before,.order-bubble::after,.order-bubble i,details[open]>*,.context-panel,#comparePanel,#mobileControlPanel{animation:none!important}.order-bubble::before,.order-bubble::after,.order-bubble i{display:none}button:active,.help-link:active{transform:none}}
@media(max-width:960px){.language-toggle{order:1;height:28px!important;min-height:28px;padding:0 8px;font-size:10px}.help-link{order:1;min-height:28px;height:28px;padding:0 7px;min-width:36px;font-size:10px}.private-badge{padding-inline:6px!important}.brand{min-width:0}.indicators-pop .block-pop label{min-height:36px}}

/* Compact controls, with the full data-quality wording in one disclosure. */
header{padding-inline:14px}.header-main{height:42px;gap:12px}.toolbar{min-height:44px;padding:5px 0;gap:10px}
.private-badge{width:28px;min-width:28px;padding:0!important;justify-content:center}
.private-badge:not(:has(svg)){width:auto;min-width:0;padding:0 9px!important;white-space:nowrap}
.private-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.help-link{gap:5px}.help-link svg{width:11px;height:11px;opacity:.75}
.feed-status{flex:none;margin-left:auto}.data-menu{position:relative;flex:none}
.data-menu>summary{display:flex;align-items:center;gap:7px;min-height:32px;padding:0 8px;border:1px solid #334759;border-radius:7px;background:#14212d;color:#bed0df;font-size:10px;list-style:none;white-space:nowrap;cursor:pointer}
.data-menu>summary::-webkit-details-marker{display:none}.data-menu[open]>summary{background:#1b3542;border-color:#5ca6b7}.health-chevron{width:11px;height:11px;color:#8fa9bb}
.connection-label-mobile{display:none}.health-quality{display:grid;place-items:center;width:13px;height:13px;border-radius:50%;font-size:9px;font-weight:750;color:#f4ce89;background:#433722}.health-quality[hidden]{display:none}
.health-led{position:relative;display:inline-block;width:7px;height:7px;border-radius:50%;background:#8297ab;flex:none}
.data-menu[data-connection=connected] .health-led{background:#6eecad;box-shadow:0 0 7px #65d69480;animation:ws-beacon 1500ms ease-in-out infinite}
.data-menu[data-connection=connected] .health-led::after{content:"";position:absolute;inset:-3px;border:1px solid #6eecad;border-radius:50%;animation:ws-ring 1500ms cubic-bezier(.16,1,.3,1) infinite}
.data-menu[data-connection=reconnecting] .health-led{background:#f2be70;box-shadow:0 0 6px #e8b56455}
@keyframes ws-beacon{0%,100%{opacity:1}50%{opacity:.38}}@keyframes ws-ring{from{opacity:.55;transform:scale(.7)}to{opacity:0;transform:scale(1.5)}}
.data-pop{position:absolute;right:0;top:calc(100% + 8px);width:320px;max-width:calc(100vw - 24px);padding:16px;border:1px solid #3b5269;border-radius:10px;background:#142130;box-shadow:0 14px 35px #0006;z-index:35;animation:flow-reveal 200ms cubic-bezier(.16,1,.3,1) both;transform-origin:top right}
.data-pop h2{font-size:14px;line-height:1.4;margin:0 0 14px;letter-spacing:-.015em}.health-row+.health-row{border-top:1px solid #2b3c4e;margin-top:12px;padding-top:12px}
.health-row>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.health-row strong{font-size:11px;font-weight:600;color:#c5d3e2}.health-row .chip{font-size:10px;height:23px;padding:0 7px}.health-row p,.health-note{font-size:11px;line-height:1.6;color:#a0b3c7;white-space:normal;margin:8px 0 0}.health-note{border-top:1px solid #2b3c4e;padding-top:12px;margin-top:12px;color:#b4cadb}
@media(min-width:1600px){
 header{display:flex;align-items:flex-end;gap:12px;min-height:64px;padding:7px 14px;flex-wrap:nowrap}.header-main{display:contents}.brand{order:0;gap:8px;font-size:17px;min-height:31px}.brand-mark{width:25px;height:25px}
 .toolbar{order:1;align-items:flex-end;min-height:0;padding:0;gap:10px;flex-wrap:nowrap}.toolbar>label{flex-direction:column;align-items:stretch;gap:3px;font-size:9px;line-height:11px}.toolbar select,.toolbar input{height:31px;font-size:11px;padding:0 7px;min-width:0}
 .toolbar>label:first-child select{min-width:74px;width:74px}#date{width:124px}#exp{width:128px}#interval{width:64px}#candleStyle{width:74px}#barsMode{width:76px}
 .feed-status{order:2;margin-left:auto}.private-badge{order:3}.panel-actions{order:4;gap:6px}.panel-actions .context-toggle{font-size:10px;padding-inline:10px}.panel-actions .language-toggle{padding-inline:8px}.panel-actions .help-link{padding-inline:8px}
 .indicators-menu>summary,.line-menu>summary{height:31px;font-size:10px;padding-inline:9px}.toolbar>details{align-self:flex-end}.toolbar>.chip{font-size:9px;padding-inline:6px}
 .toolbar>.chart-focus-toggle{height:31px;font-size:10px}.data-menu>summary{height:31px;min-height:31px}.private-badge{height:31px}.panel-actions .context-toggle{height:31px}.panel-actions .language-toggle{height:31px!important}.panel-actions .help-link{height:31px;min-height:31px}
}
@media(max-width:960px){
 header{padding:8px 12px;gap:5px 8px}.header-main{display:contents}.brand{font-size:16px;gap:7px}.brand>span{display:none}.feed-status{order:1;flex:0 0 auto;min-height:0;margin:0;overflow:visible;gap:0}
 .data-menu>summary{height:44px;min-height:44px;min-width:44px;justify-content:center;padding:0 6px;gap:4px}.connection-label-desktop,.health-chevron{display:none}.connection-label-mobile{display:inline}.health-quality{width:11px;height:11px;font-size:8px}.health-led{width:6px;height:6px}
 .data-pop{position:fixed;top:calc(var(--flow-header-height,102px) + 6px);left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - var(--flow-header-height,102px) - 20px);overflow:auto;padding:16px;transform-origin:top center}
 .private-badge{order:1;height:26px!important;width:25px;min-width:25px;padding:0!important}.panel-actions .language-toggle{font-size:10px}.help-link{padding-inline:6px;gap:3px}.help-link svg{width:9px;height:9px}
 .private-badge:not(:has(svg)){width:auto;min-width:0;padding:0 6px!important}.panel-actions .language-toggle,.panel-actions .help-link{height:44px!important;min-height:44px;min-width:44px}.playback button{min-width:44px}
 #mobileControlPanel{top:calc(var(--flow-header-height,102px) + 6px);max-height:calc(100dvh - var(--flow-header-height,102px) - 20px)}
}
@media(max-width:360px){header{padding-inline:8px;column-gap:6px}.brand{font-size:15px}.brand-mark{width:22px;height:22px}.language-toggle{padding-inline:6px}.help-link{min-width:32px;font-size:9px}.help-link svg{display:none}}
@media(prefers-reduced-motion:reduce){.health-led,.health-led::after,.data-pop{animation:none!important}.health-led::after{display:none}}

/* Rounded interface surfaces. Native candle geometry remains unchanged. */
.spot-price-label{position:absolute;z-index:5;right:4px;display:flex;align-items:center;gap:7px;height:22px;max-width:calc(100% - 16px);padding:0 9px;border:1px solid #528594;border-radius:999px;background:linear-gradient(125deg,#224655,#142a38);box-shadow:0 2px 10px #0005,inset 0 1px #b9f4ff12;color:#e2f9ff;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.spot-price-label[hidden],.context-loading .spot-price-label{display:none!important}
.spot-price-label i{width:4px;height:4px;flex:none;border-radius:50%;background:#8ce6f5;box-shadow:0 0 7px #80d9ee66}
.spot-price-label span{font-size:9px;font-weight:650;letter-spacing:.04em;color:#a9deea}
.spot-price-label strong{font-size:12px;font-weight:750;letter-spacing:-.015em}
.candle-countdown.scale{right:4px;border-radius:9px}
.candle-countdown.fallback{border-radius:999px}
:is(.context-toggle,.mobile-controls-toggle,.mobile-view-reset,.playback button,#mobileControlClose,#comparePanel button,.toolbar select,.toolbar input,.indicators-menu>summary,.sma-menu>summary,.line-menu>summary,.block-menu>summary,.data-menu>summary){border-radius:9px}
.legend span{border-radius:8px}
:is(.error,.profile-tooltip,.wall-lens-tooltip,.data-pop,.indicators-pop,.line-pop){border-radius:12px}
.indicators-pop .sma-pop input[type=checkbox]{color:inherit;accent-color:currentColor}
.next-major-edge-tags{position:absolute;left:0;top:0;z-index:4;pointer-events:none;overflow:hidden}
.next-major-edge-tags[hidden],.context-loading .next-major-edge-tags{display:none!important}
.next-major-edge{position:absolute;left:8px;display:flex;align-items:center;gap:8px;height:24px;max-width:calc(100% - 16px);padding:0 9px;border:1px solid currentColor;border-radius:999px;background:var(--panel);color:var(--green);font-size:10px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:auto;animation:next-major-edge-appear 180ms ease-out}
.next-major-edge.negative{color:var(--red)}
.next-major-edge strong{font-size:11px;font-weight:700}
.next-major-edge svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.next-major-edge[data-edge=above] svg{transform:rotate(180deg)}
@keyframes next-major-edge-appear{from{opacity:.45}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.next-major-edge{animation:none}}
.status.replay-recovery{color:#e9c48b}
.zero-gamma-price-label{position:absolute;right:4px;z-index:5;height:22px;display:flex;align-items:center;padding:0 9px;border:1px solid var(--cyan);border-radius:999px;background:var(--panel);color:var(--cyan);font-size:10px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.zero-gamma-price-label[hidden],.context-loading .zero-gamma-price-label{display:none!important}
@media(max-width:520px){.status.replay-recovery{display:block;flex-basis:100%;font-size:10px}}

/* Focus changes chart framing only. Market values and candle geometry stay native. */
.chart-focus-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;flex:none;padding:0 10px;border:1px solid #334356;border-radius:9px;background:var(--surface-raised);color:#c8d6e5;font-size:11px;font-weight:600;white-space:nowrap}
.chart-focus-toggle svg{width:16px;height:16px;flex:none}
.chart-focus-toggle:hover{background:#213247;border-color:#557089}
.chart-focus-toggle[aria-pressed=true]{background:#203e4b;border-color:#5ca6b7;color:#b8f2ff}
@media(max-width:960px){.chart-focus-toggle{order:3;height:44px;min-width:44px;padding:0 10px}.chart-focus-toggle span{display:none}}

@media(max-width:520px){.chart-focus-toggle{width:44px;padding:0}.toolbar>.mobile-primary select{min-width:64px;max-width:80px;padding:0 8px}.context-toggle{padding-inline:9px}}
.compare-toggle-icon{display:none;width:18px;height:18px;flex:none}
@media(max-width:360px){.brand-mark{display:none}#compareToggle{display:grid;place-items:center;width:44px;min-width:44px;padding:0}.compare-toggle-icon{display:block}.compare-toggle-label{display:none}.toolbar>.mobile-primary select{min-width:62px;max-width:74px;padding-inline:7px}.toolbar>label.mobile-primary:first-child select{width:74px;min-width:62px;max-width:74px}}

/* Compare is retired from the interface; retain its DOM anchor for legacy handlers. */
#compareToggle{display:none!important}
/* Embedded viewers share the Split masthead, leaving their own chrome for controls. */
.split-embedded footer{min-height:42px;padding:3px 8px;gap:3px 6px}
.split-embedded footer .playback button,.split-embedded .mobile-view-reset{height:32px;min-height:32px}
.split-embedded .brand{display:none}
@media(max-width:960px){
 .split-embedded header{min-height:42px;padding:4px 8px;gap:6px;flex-wrap:nowrap;align-items:center}
 .split-embedded header::after{display:none}
 .split-embedded .header-main,.split-embedded .toolbar,.split-embedded .panel-actions{display:contents}
 .split-embedded .private-badge{display:none}
 .split-embedded .toolbar>.mobile-primary{order:0}
 .split-embedded .toolbar>.mobile-primary select{height:32px;min-height:32px;font-size:13px;padding:0 8px;min-width:64px;max-width:84px}
 .split-embedded .chart-focus-toggle{order:0;height:32px;min-width:32px;width:32px;padding:0}
 .split-embedded .mobile-controls-toggle{order:0;height:32px;width:32px;margin-left:0}
 .split-embedded .feed-status{order:1;margin-left:auto;flex:0 0 auto}
 .split-embedded .data-menu>summary{height:32px;min-height:32px;min-width:32px;padding:0 6px}
 .split-embedded .panel-actions .language-toggle,.split-embedded .panel-actions .help-link{order:2;height:32px!important;min-height:32px;min-width:32px;padding:0 6px}
 .split-embedded footer .status{display:none}
 .split-embedded footer .playback{max-width:none;width:100%;min-width:0}

}
@media(min-width:961px){
 .split-embedded .header-main{height:32px;gap:8px}
 .split-embedded .toolbar{min-height:36px;padding:3px 0;gap:6px}
}
@media(max-width:420px){.split-embedded .help-link{display:none}.split-embedded header{gap:4px;padding-inline:6px}}
@media(pointer:coarse){.split-embedded header{min-height:52px}.split-embedded .toolbar>.mobile-primary select,.split-embedded .chart-focus-toggle,.split-embedded .mobile-controls-toggle,.split-embedded .data-menu>summary,.split-embedded .panel-actions .language-toggle{height:44px!important;min-height:44px;min-width:44px}.split-embedded footer{min-height:52px}.split-embedded footer .playback button,.split-embedded .mobile-view-reset{height:44px;min-height:44px}}

@media(max-width:960px){.split-embedded footer{grid-template-rows:32px 14px}.split-embedded footer .playback{height:32px;align-items:center}.split-embedded #replay{height:24px;min-height:0;margin:0;padding:0}}
@media(pointer:coarse) and (max-width:960px){.split-embedded footer{grid-template-rows:44px 14px}.split-embedded footer .playback{height:44px}}

/* Split uses the same control surface, height, hover and focus as Context. */
.split-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;vertical-align:middle}.split-toggle svg{width:15px;height:15px;flex:none}
.split-toggle[hidden]{display:none!important}

/* Reserve the compact toolbar before initFlowMobile moves secondary controls. */
.split-embedded #splitToggle{display:none!important}
@media(max-width:960px){
 .split-embedded .toolbar>label:not(:has(#ticker)):not(:has(#interval)),.split-embedded .toolbar>details,.split-embedded .toolbar>.chip,.split-embedded .panel-actions>#contextToggle{display:none}
 .split-embedded .toolbar>label:has(#ticker),.split-embedded .toolbar>label:has(#interval){order:0;flex:0 0 auto;font-size:0;gap:0}
 .split-embedded .toolbar>label:has(#ticker) select,.split-embedded .toolbar>label:has(#interval) select{height:32px;min-height:32px;font-size:13px;padding:0 8px;min-width:64px;max-width:84px}
}
@media(pointer:coarse) and (max-width:960px){.split-embedded .toolbar>label:has(#ticker) select,.split-embedded .toolbar>label:has(#interval) select{height:44px;min-height:44px}}

.reaction-menu {max-width:min(360px,85vw)}
.reaction-menu p {white-space:normal;font-size:11px;line-height:1.5}
#wallReactionsList {max-height:240px;overflow:auto;padding-left:22px;margin:8px 0}
#wallReactionsList button {white-space:normal;text-align:left;font-size:11px;line-height:1.5;min-height:44px;width:100%}
#wallReactionsList button:focus-visible {outline:2px solid #fff;outline-offset:-2px}
.reaction-pages {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
