.tpo-workspace{--tpo-bg: #080e19;--tpo-panel: rgba(15, 23, 42, .88);--tpo-border: rgba(100, 116, 139, .24);--tpo-text: #e2e8f0;--tpo-muted: #94a3b8;color:var(--tpo-text);background:var(--tpo-bg);display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;height:100%;min-height:0;min-width:0;overflow:auto;box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.tpo-header,.tpo-controls,.tpo-chart-panel,.tpo-stats{background:var(--tpo-panel);border:1px solid var(--tpo-border);border-radius:14px;box-shadow:0 12px 34px #00000029}.tpo-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 9px;min-height:38px;border-radius:9px;box-shadow:none}.tpo-header h1{margin:0;color:var(--tpo-title, #f8fafc);font-size:12px;font-weight:800;letter-spacing:.045em;white-space:nowrap}.tpo-header h1 span{color:var(--tpo-muted);font-size:9px;font-weight:700;margin-left:5px}.tpo-header p{display:none}.tpo-eyebrow{color:var(--tpo-accent, #7dd3fc);font-size:9px;font-weight:800;letter-spacing:.13em}.tpo-feed-status,.tpo-session-state{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;border:1px solid var(--tpo-border);border-radius:999px;padding:3px 7px;color:var(--tpo-text, #cbd5e1);font-size:9px;white-space:nowrap}.tpo-status-dot{width:7px;height:7px;border-radius:50%;background:#64748b}.status-live .tpo-status-dot{background:#22c55e;box-shadow:0 0 10px #22c55eb3}.status-connecting .tpo-status-dot,.status-reconnecting .tpo-status-dot{background:#f59e0b}.status-error .tpo-status-dot{background:#ef4444}.tpo-controls{padding:5px 8px;border-radius:9px;box-shadow:none}.tpo-controls-main,.tpo-controls-advanced{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.tpo-controls-advanced{border-top:1px solid var(--tpo-border);margin-top:7px;padding-top:8px}.tpo-control{display:flex;min-width:82px;flex-direction:column;gap:2px;color:var(--tpo-muted);font-size:8px}.tpo-control select,.tpo-control input:not([type=range]),.tpo-advanced-button{min-height:26px;border:1px solid #334155;border-radius:5px;background:var(--tpo-control-bg, #0b1423);color:var(--tpo-control-text, #e2e8f0);padding:0 7px;font-size:10px;outline:none}.tpo-control select:focus,.tpo-control input:focus{border-color:var(--tpo-accent, #38bdf8)}.tpo-control-symbol{display:flex;min-width:105px;flex-direction:column;gap:2px;margin-right:auto}.tpo-control-coin{flex:0 0 76px!important;min-width:76px}.tpo-control-symbol strong{color:var(--tpo-title, #f8fafc);font-size:15px}.tpo-daily-tag{color:var(--tpo-accent, #38bdf8);font-size:8px;font-weight:800;letter-spacing:.12em}.tpo-advanced-button{cursor:pointer;min-height:26px;padding:0 8px;font-size:9px}.tpo-control-range{min-width:175px}.tpo-control-range input{accent-color:var(--tpo-accent, #38bdf8)}.tpo-checkbox-control{display:flex;align-items:center;gap:8px;color:var(--tpo-text, #cbd5e1);font-size:11px;min-height:34px}.tpo-checkbox-control input{accent-color:var(--tpo-accent, #38bdf8)}.tpo-chart-panel{padding:5px 6px 2px;overflow:hidden;flex:0 0 auto;min-width:0;border-radius:9px}.tpo-chart-legend{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;padding:2px 5px 5px;color:#94a3b8;font-size:10px}.tpo-chart-legend span{display:inline-flex;align-items:center;gap:6px}.tpo-chart-legend i{display:inline-block;width:15px;height:4px;border-radius:2px}.legend-candle-up{background:var(--tpo-candle-up, #22c55e)}.legend-candle-down{background:var(--tpo-candle-down, #ef4444)}.legend-gradient{height:7px!important;width:42px!important;background:var(--tpo-heatmap-gradient, linear-gradient(90deg, #2563eb, #06b6d4, #22c55e, #facc15, #f97316))}.legend-poc{background:var(--tpo-poc, #f59e0b)}.legend-value{background:var(--tpo-va-line, #60a5fa)}.legend-ib{background:repeating-linear-gradient(90deg,var(--tpo-ib-line, #facc15) 0 3px,transparent 3px 6px)}.tpo-chart-shell{position:relative;display:block;width:100%;min-width:0;min-height:560px;flex:0 0 auto;overflow:hidden}.tpo-chart-loading{position:absolute;z-index:10;top:12px;left:50%;transform:translate(-50%);border:1px solid var(--tpo-border);border-radius:999px;background:#080e19e6;color:#cbd5e1;padding:7px 12px;font-size:11px;pointer-events:none}.tpo-stats{padding:16px}.tpo-stats-empty{color:var(--tpo-muted);font-size:12px}.tpo-stats-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.tpo-stats-heading h3{margin:3px 0 0;color:var(--tpo-title, #f8fafc);font-size:16px;font-weight:700}.tpo-session-state.is-live{color:#86efac;border-color:#22c55e4d}.tpo-session-state.is-closed{color:#cbd5e1}.tpo-classification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.tpo-classification-card{display:flex;min-width:0;flex-direction:column;gap:5px;border:1px solid var(--tpo-border);border-radius:10px;background:var(--tpo-card-bg, rgba(2, 6, 23, .38));padding:12px}.tpo-classification-card>span{color:var(--tpo-muted, #94a3b8);font-size:9px;font-weight:800;letter-spacing:.1em}.tpo-shape-code{color:var(--tpo-accent, #38bdf8);font-size:28px;line-height:1}.tpo-day-type{color:var(--tpo-accent, #a7f3d0);font-size:16px}.tpo-classification-card small{color:#94a3b8;font-size:10px;line-height:1.4}.tpo-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tpo-stat{display:flex;flex-direction:column;gap:5px;border:1px solid var(--tpo-border);border-radius:8px;background:var(--tpo-card-bg, rgba(2, 6, 23, .25));padding:10px}.tpo-stat span{color:var(--tpo-muted, #94a3b8);font-size:9px;letter-spacing:.06em}.tpo-stat strong{color:var(--tpo-text, #e2e8f0);font-size:13px;font-variant-numeric:tabular-nums}.tpo-warning{border:1px solid rgba(245,158,11,.25);border-radius:8px;background:#78350f29;color:#fcd34d;padding:10px 12px;font-size:11px}@media(max-width:760px){.tpo-header{align-items:center;flex-direction:row;flex-wrap:wrap}.tpo-header-left{width:auto;align-items:center;flex-direction:row;gap:8px}.tpo-header-actions{width:auto;margin-left:auto}.tpo-controls-main{align-items:stretch}.tpo-control-symbol{width:100%}.tpo-control{flex:1 1 125px}.tpo-advanced-button{align-self:stretch}.tpo-classification-grid{grid-template-columns:1fr}.tpo-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tpo-chart-panel{padding:6px 4px 0}.tpo-chart-legend{gap:8px 11px;font-size:9px}}@media(prefers-reduced-motion:reduce){.tpo-workspace *,.tpo-workspace *:before,.tpo-workspace *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.tpo-header,.tpo-controls,.tpo-stats{flex:0 0 auto;min-width:0}.tpo-header-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}.tpo-toolbar-lead{display:flex;align-items:center;flex:0 0 auto}.tpo-toolbar-lead>div{gap:2px!important;padding:2px!important;border-radius:6px!important}.tpo-toolbar-lead button{gap:4px!important;padding:4px 7px!important;border-radius:4px!important;font-size:9px!important;line-height:1!important}.tpo-toolbar-lead button svg{width:11px!important;height:11px!important}.tpo-header-title{min-width:0;flex:0 0 auto}.tpo-header-actions{flex:0 0 auto}.tpo-workspace .tpo-chart-shell>div{min-width:0}.tpo-controls-hint,.tpo-info-note{margin-top:3px;color:var(--tpo-muted, #8ea0b8);font-size:10px;line-height:1.45}.tpo-info-note{margin:0;border:1px solid rgba(56,189,248,.2);border-radius:8px;background:#0e74901a;padding:9px 12px}.tpo-controls-main{align-items:center}.tpo-controls-main .tpo-control{flex:0 1 108px}.tpo-controls-main .tpo-control-coin{flex:0 0 76px}.tpo-controls-main .tpo-control-symbol{flex:0 0 105px}.legend-va-bg{background:var(--tpo-va-fill, rgba(56, 189, 248, .45));height:9px!important}.legend-ib-bg{background:var(--tpo-ib-fill, rgba(250, 204, 21, .48));height:9px!important}.tpo-chart-shell{height:560px;min-height:480px;max-height:min(72vh,820px)}@media(max-width:760px){.tpo-chart-shell{height:480px;max-height:62vh;min-height:420px}}.tpo-chart-stage{position:relative;width:100%;min-width:0}.tpo-workspace{overflow-x:hidden;overflow-y:auto}.tpo-chart-panel{display:flex;flex:1 1 0;flex-direction:column;min-height:340px;min-width:0}.tpo-chart-stage{display:flex;flex:1 1 0;min-height:0;min-width:0}.tpo-chart-shell{flex:1 1 auto;width:100%;height:100%;min-height:0;max-height:none}.tpo-chart-shell>div,.tpo-chart-shell canvas{min-height:0!important}@media(max-width:760px){.tpo-chart-panel{min-height:320px}.tpo-chart-shell{min-height:0}}.tpo-guide{flex:0 0 auto;min-width:0;overflow:hidden}.tpo-guide>summary{position:sticky;top:0;z-index:2;user-select:none}.tpo-guide-content{max-height:min(72vh,780px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.75) rgba(15,23,42,.55);-webkit-overflow-scrolling:touch;touch-action:pan-y}.tpo-guide-content::-webkit-scrollbar{width:9px}.tpo-guide-content::-webkit-scrollbar-track{background:#0f172a8c;border-radius:8px}.tpo-guide-content::-webkit-scrollbar-thumb{background:#64748bbf;border:2px solid rgba(15,23,42,.55);border-radius:8px}.tpo-guide-content::-webkit-scrollbar-thumb:hover{background:#94a3b8e6}@media(max-width:760px){.tpo-guide-content{max-height:68vh;padding:12px}}.tpo-workspace{gap:4px;overflow-x:hidden}.tpo-header{position:relative;display:flex;align-items:center;gap:9px;min-height:43px;padding:5px 8px;flex-wrap:nowrap;z-index:20}.tpo-header-left{flex:0 0 auto;max-width:42%}.tpo-header-title h1{font-size:11px}.tpo-header-title h1 span{font-size:10px;color:#67e8f9}.tpo-header-title h1 em{display:inline-block;margin-left:4px;padding:2px 4px;font-size:9px;font-style:normal;border:1px solid rgba(103,232,249,.2);border-radius:4px;color:#67e8f9}.tpo-header-actions{order:3;margin-left:auto}.tpo-header .tpo-controls{order:2;flex:1 1 auto;min-width:0;width:auto;background:transparent;border:0;padding:0;box-shadow:none}.tpo-controls-main{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.tpo-controls-main::-webkit-scrollbar{display:none}.tpo-controls-main .tpo-control{flex:0 0 auto;min-width:0;display:block}.tpo-controls-main .tpo-control select{height:27px;min-height:27px;font-size:10px;padding:0 6px;max-width:108px}.tpo-controls-main .tpo-control-coin{min-width:0;flex:0 0 auto!important}.tpo-controls-main .tpo-control-coin select{max-width:102px}.tpo-controls-main .tpo-session-count select{max-width:70px}.tpo-controls-main .tpo-advanced-button{white-space:nowrap;flex:0 0 auto;background:#0d1a2b}.tpo-controls-main .tpo-advanced-button.active{color:#67e8f9;border-color:#67e8f980}.tpo-mode-buttons{display:flex;flex:0 0 auto;padding:2px;gap:2px;background:#0d1a2b;border:1px solid #334155;border-radius:7px}.tpo-mode-buttons button{background:transparent;color:#94a3b8;font-size:10px;cursor:pointer;border:0;border-radius:5px;padding:5px 7px}.tpo-mode-buttons button.active{background:#0891b240;color:#a5f3fc}.tpo-controls-hint{display:none}.tpo-header .tpo-controls-advanced{position:absolute;z-index:95;right:8px;top:calc(100% + 5px);width:min(350px,calc(100vw - 25px));max-height:min(72vh,700px);overflow:auto;display:flex;flex-direction:column;align-items:stretch;background:#070f1cf7;border:1px solid #32445d;border-radius:11px;padding:12px;box-shadow:0 16px 48px #000000a6;backdrop-filter:blur(12px)}.tpo-header .tpo-controls-advanced .tpo-control{display:flex;flex-direction:column;min-width:0;width:100%;font-size:10px;margin-bottom:4px}.tpo-header .tpo-controls-advanced .tpo-control select,.tpo-header .tpo-controls-advanced .tpo-control input:not([type=range]){width:100%;min-height:30px}.tpo-header .tpo-controls-advanced .tpo-checkbox-control{min-height:26px}.tpo-settings-heading{color:#67e8f9;margin:9px 0 3px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.tpo-chart-panel{padding:0 2px 2px;border-radius:7px}.tpo-chart-legend{font-size:9px;gap:5px 10px;padding:3px 8px}@media(max-width:920px){.tpo-header{gap:5px}.tpo-header-left{max-width:35%}.tpo-header-actions{display:none}}@media(max-width:640px){.tpo-header{flex-wrap:wrap}.tpo-header-left{max-width:100%}.tpo-header .tpo-controls{flex-basis:100%}.tpo-header .tpo-controls-advanced{top:calc(100% + 4px)}}.tpo-playbook-collapse,.tpo-strategy-collapse{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .38s cubic-bezier(.22,1,.36,1),opacity .27s ease,visibility 0s linear .38s}.tpo-playbook-collapse[data-open=true],.tpo-strategy-collapse[data-open=true]{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .38s cubic-bezier(.22,1,.36,1),opacity .3s ease,visibility 0s}.tpo-playbook-collapse-inner,.tpo-strategy-collapse-inner{min-height:0;overflow:hidden}.tpo-playbook-scroll{max-height:min(65vh,680px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#41556f transparent}.tpo-playbook-scroll::-webkit-scrollbar{width:8px}.tpo-playbook-scroll::-webkit-scrollbar-thumb{background:#41556f;border-radius:8px}.tpo-playbook-scroll::-webkit-scrollbar-track{background:transparent}@media(max-width:640px){.tpo-playbook-scroll{max-height:min(60dvh,580px)}}@media(prefers-reduced-motion:reduce){.tpo-playbook-collapse,.tpo-strategy-collapse{transition:none!important}}
