:root{--bg:#090e19;--shell:#0c1322;--panel:#10192a;--panel2:#121e30;--elev:#182438;--stroke:#1d2a3c;--muted:#7e8ba2;--text:#e5edfa;--white:#f8fbff;--accent:#40dba1;--green:#3bd8a1;--red:#fa687e;--orange:#ffb35f;--blue:#70a5ff;--purple:#a895ff;--mintwash:rgba(64,219,161,.12);--redwash:rgba(250,104,126,.09);--shadow:0 22px 70px rgba(0,0,0,.18)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:13px/1.5 'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-width:315px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}small{font-size:11px}b,strong{font-weight:700}.hidden{display:none!important}.app-shell{max-width:2100px;min-height:100vh;margin:0 auto;background:var(--shell)}.topbar{height:66px;border-bottom:1px solid var(--stroke);display:flex;align-items:center;padding:0 24px;gap:45px;background:var(--shell);position:relative;z-index:8}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-symbol{height:36px;width:36px;display:grid;place-items:center;border:1px solid rgba(64,219,161,.28);border-radius:11px;background:rgba(64,219,161,.08)}.brand-title{font-weight:800;font-size:17px;letter-spacing:-.7px;line-height:1.06}.brand-title>span{color:var(--accent)}.brand-title small{display:block;font-size:8px;letter-spacing:2.1px;color:var(--muted);margin-top:5px}.topnav{display:flex;gap:31px;align-items:stretch;height:100%;margin-left:25px}.topnav a,.nav-link{font-size:12px;font-weight:700;white-space:nowrap;position:relative;display:flex;align-items:center;background:transparent;border:0;color:var(--muted);padding:0}.topnav .selected{color:var(--white)}.topnav .selected:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--green)}.topnav a:hover,.nav-link:hover{color:var(--white)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:15px}.session-tag{font:700 10px 'IBM Plex Mono',monospace;letter-spacing:.4px;color:var(--muted);display:flex;gap:9px;align-items:center;white-space:nowrap}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#eaa857;box-shadow:0 0 0 3px rgba(234,168,87,.08)}.status-dot.online{background:var(--green);box-shadow:0 0 8px var(--green)}.status-dot.offline{background:var(--red)}.icon-button,.header-button{height:32px;border:1px solid var(--stroke);border-radius:8px;color:var(--text);background:var(--panel2)}.icon-button{width:32px;font-size:20px}.header-button{padding:0 12px;font-weight:700}.header-button:hover,.toolbar-icon:hover,.toolbar-button:hover{background:var(--elev)}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr) 318px;min-height:calc(100vh - 112px)}.sidebar{background:var(--shell)}.left-sidebar{border-right:1px solid var(--stroke);min-height:760px;display:flex;flex-direction:column}.sidebar-title{display:flex;justify-content:space-between;align-items:center;padding:23px 17px 16px;font-weight:800;letter-spacing:1.35px;font-size:10px;color:#a7b4ca}.tiny-count{color:var(--muted);font-family:'IBM Plex Mono',monospace}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--stroke);background:var(--panel);margin:0 12px 15px;border-radius:9px;padding:8px 11px;color:var(--muted);font-size:23px;line-height:1}.search-box input{border:0;outline:0;min-width:0;width:100%;color:var(--text);font-size:11px;background:none}.search-box input::placeholder{color:#68758a}.market-controls{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;color:#8291a8;font-size:9px;letter-spacing:.9px;font-weight:800;border-bottom:1px solid var(--stroke)}.market-source{color:var(--green);font-size:8px;letter-spacing:.4px}.market-list{flex:1;overflow:auto;max-height:calc(100vh - 280px)}.market-row{width:100%;background:transparent;color:var(--text);display:flex;align-items:center;text-align:left;gap:10px;border:0;border-left:2px solid transparent;padding:12px 12px 12px 13px}.market-row:hover{background:var(--panel2)}.market-row.active{background:linear-gradient(90deg,rgba(64,219,161,.10),transparent);border-left-color:var(--green)}.coin-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font:bold 14px 'DM Sans';color:#0b1422;flex:none}.market-name{flex:1;min-width:0}.market-name b{display:block;font:700 11px 'IBM Plex Mono',monospace}.market-name small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.market-row .star{font-size:16px;border:0;background:none;color:#526078;padding:0 2px}.market-row .star.favorite{color:#ffd37a}.sidebar-bottom{padding:15px;margin-top:auto;border-top:1px solid var(--stroke)}.sidebar-tip{background:var(--panel2);border:1px solid var(--stroke);border-radius:9px;padding:12px;font-size:11px;color:var(--green)}.sidebar-tip b{color:var(--text)}.sidebar-tip span{display:block;color:var(--muted);line-height:1.7;margin-top:5px}.side-foot{display:flex;justify-content:space-between;color:#6e7c92;letter-spacing:1px;font:700 9px 'IBM Plex Mono',monospace;margin-top:15px}.center-pane{min-width:0;background:var(--shell);display:flex;flex-direction:column}.instrument-header{height:90px;display:flex;align-items:center;gap:28px;padding:12px 22px;border-bottom:1px solid var(--stroke)}.instrument-main{display:flex;align-items:center;gap:12px;min-width:190px}.asset-icon{height:39px;width:39px;border-radius:50%;color:#142030;background:#f7ae37;display:grid;place-items:center;font-size:21px;font-weight:800;flex:none}.asset-titles h1{font-size:17px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.6px}.asset-titles span{display:block;font-size:10px;color:var(--muted);margin-top:5px;white-space:nowrap}.spot-pill{font-size:8px;font-weight:800;letter-spacing:.6px;color:var(--green);background:var(--mintwash);border-radius:4px;padding:4px 6px}.instrument-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.instrument-price strong{font:600 20px 'IBM Plex Mono',monospace;letter-spacing:-1px;white-space:nowrap}.change-label{font:700 11px 'IBM Plex Mono',monospace;color:var(--muted)}.change-label.up,.text-green{color:var(--green)!important}.change-label.down,.text-red{color:var(--red)!important}.instrument-stats{display:flex;align-items:center;gap:24px;margin-left:auto}.instrument-stats div{display:flex;flex-direction:column;gap:4px}.instrument-stats small{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.9px;white-space:nowrap}.instrument-stats b{font:500 11px 'IBM Plex Mono',monospace;white-space:nowrap}.chart-toolbar{height:48px;padding:0 18px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--stroke);position:relative;z-index:6}.timeframes{display:flex;align-items:center;gap:3px}.timeframes button{border:0;border-radius:5px;background:none;color:var(--muted);padding:6px 9px;font:700 11px 'IBM Plex Mono',monospace}.timeframes button.active{color:var(--green);background:var(--mintwash)}.toolbar-divider{width:1px;height:20px;background:var(--stroke);margin:0 4px}.toolbar-menu{position:relative}.toolbar-button{background:transparent;color:#bbc7d8;border:1px solid transparent;border-radius:6px;padding:6px 8px;font-weight:700;font-size:11px;white-space:nowrap}.toolbar-button.active-tool{color:var(--accent);background:var(--mintwash)}.toolbar-button:not(.active-tool).disabled-tool{opacity:.5}.chevron{color:var(--muted)}.small-green-dot{background:var(--green);width:5px;height:5px;display:inline-block;border-radius:50%;vertical-align:middle}.toolbar-spacer{flex:1}.toolbar-icon{width:29px;height:29px;border:0;border-radius:6px;background:none;color:#b6c4d7;font-size:18px}.dropdown{display:none;position:absolute;top:37px;left:0;width:215px;background:var(--panel2);border:1px solid var(--stroke);border-radius:10px;box-shadow:var(--shadow);padding:7px;z-index:16}.dropdown.open{display:block}.dropdown label{display:flex;align-items:center;gap:11px;color:#bfcce0;padding:9px 10px;cursor:pointer;white-space:nowrap;font-size:11px}.dropdown label:hover{background:rgba(255,255,255,.05);border-radius:6px}.dropdown input{accent-color:var(--green)}.chart-space{display:flex;min-height:465px;flex:1}.draw-tools{width:45px;display:flex;flex-direction:column;align-items:center;gap:8px;border-right:1px solid var(--stroke);padding-top:20px;flex-shrink:0}.draw-button{border:0;border-radius:6px;background:transparent;color:#8e9cb2;width:30px;height:31px;font-size:20px;display:grid;place-items:center}.draw-button.active{background:var(--mintwash);color:var(--green)}.draw-button:hover{background:var(--elev);color:var(--text)}.vertical-separator{width:20px;height:1px;background:var(--stroke);margin:7px 0}.chart-inner{min-width:0;min-height:0;display:flex;flex-direction:column;flex:1;position:relative}.ohlc-strip{height:27px;padding:8px 15px 0;display:flex;gap:17px;align-items:center;white-space:nowrap;font:10px 'IBM Plex Mono',monospace;color:var(--muted);overflow:hidden}.ohlc-strip b{color:#c2cfe0;font-weight:500}.ohlc-strip .strip-r{color:#ac99ff}.legend-strip{display:flex;align-items:center;gap:12px;padding:5px 15px 4px;font:9px 'IBM Plex Mono',monospace;color:#92a1b9;flex-wrap:wrap}.legend-strip span{display:flex;gap:5px;align-items:center}.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#719ffa}.legend-dot.ema50{background:#f7b55d}.legend-dot.ema200{background:#ae93fc}.legend-dot.bullish{background:var(--green)}.legend-dot.bearish{background:var(--red)}.chart-holder{position:relative;min-height:380px;flex:1;overflow:hidden}.chart-host{position:absolute;inset:0}.zone-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.chart-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:5;background:var(--shell);color:var(--text);text-align:center;padding:20px}.chart-state strong{font-size:14px}.chart-state span{font-size:12px;color:var(--muted);max-width:420px}.chart-state.error .spinner{display:none}.chart-state.error strong{color:var(--red)}.spinner{height:25px;width:25px;border-radius:50%;border:2px solid var(--stroke);border-top-color:var(--green);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.draw-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:var(--elev);padding:8px 12px;border:1px solid var(--stroke);border-radius:6px;z-index:10;font-size:11px;white-space:nowrap}.rsi-panel{height:92px;flex:none;position:relative;border-top:1px solid var(--stroke)}#rsiHost{position:absolute;inset:0}.rsi-label{position:absolute;top:6px;left:14px;z-index:2;color:var(--purple);font:700 10px 'IBM Plex Mono',monospace;pointer-events:none}.chart-footer{height:28px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;font:9px 'IBM Plex Mono',monospace;color:var(--muted);border-top:1px solid var(--stroke);gap:8px}.chart-footer .status-dot{width:5px;height:5px}.bottom-panel{border-top:1px solid var(--stroke);height:200px;flex:none}.bottom-title{height:41px;border-bottom:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;padding-right:18px}.tabs{display:flex;height:100%}.tab{border:0;background:none;color:var(--muted);padding:0 21px;position:relative;font-size:11px;font-weight:700}.tab.active{color:var(--text)}.tab.active:after{content:'';position:absolute;bottom:0;left:19px;right:19px;height:2px;background:var(--green)}.tab span{color:var(--accent);margin-left:5px;font:700 10px 'IBM Plex Mono',monospace}.muted-small{color:var(--muted);font-size:10px}.table-scroller{height:157px;overflow-y:auto;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{font-size:9px;letter-spacing:.75px;color:var(--muted);padding:9px 16px;font-weight:700;position:sticky;top:0;background:var(--shell)}.data-table td{font:10px 'IBM Plex Mono',monospace;padding:8px 16px;color:#b9c5d7;border-top:1px solid rgba(255,255,255,.035)}.data-table .event-name{font:700 10px 'DM Sans';letter-spacing:.3px}.table-empty{padding:35px;text-align:center;color:var(--muted);font-size:12px}.right-sidebar{border-left:1px solid var(--stroke);padding:20px 17px;overflow:auto;max-height:calc(100vh - 67px)}.right-head{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:800;color:var(--green)}.right-head h2{font-size:16px;margin:4px 0 0;letter-spacing:-.3px;line-height:1.3}.right-head h2 span{color:var(--accent)}.engine-icon{display:grid;place-items:center;color:var(--green);font-size:24px;width:38px;height:38px;border:1px solid rgba(64,219,161,.22);border-radius:10px;background:var(--mintwash)}.analysis-status{margin:17px 0;background:var(--panel2);border:1px solid var(--stroke);border-radius:7px;padding:9px 12px;display:flex;align-items:center;gap:9px;color:#a6b4c9;font-size:10px}.analysis-status button{border:0;background:none;margin-left:auto;color:var(--muted);font-size:17px}.bias-card{border:1px solid rgba(64,219,161,.2);border-radius:10px;padding:15px;background:linear-gradient(135deg,rgba(64,219,161,.085),rgba(64,219,161,.018))}.bias-card.bearish{border-color:rgba(250,104,126,.2);background:linear-gradient(135deg,rgba(250,104,126,.07),transparent)}.bias-card.neutral{border-color:var(--stroke);background:var(--panel2)}.bias-top{display:flex;justify-content:space-between;font:700 9px 'IBM Plex Mono',monospace;color:#a5b5c8;letter-spacing:.55px}.bias-top span:last-child{color:var(--muted)}.bias-display{display:flex;gap:11px;align-items:center;margin:13px 0 14px}.bias-display strong{font-size:24px;letter-spacing:.2px;font-weight:800;color:var(--green)}.bias-card.bearish .bias-display strong{color:var(--red)}.bias-card.neutral .bias-display strong{color:#aebbd0}.bias-icon{width:37px;height:37px;display:grid;place-items:center;background:rgba(64,219,161,.12);border-radius:9px;color:var(--green);font-size:23px}.bias-card.bearish .bias-icon{background:var(--redwash);color:var(--red)}.bias-meter{height:5px;border-radius:6px;background:rgba(130,143,170,.2);overflow:hidden}.bias-meter span{display:block;background:var(--green);height:100%;width:0;transition:width .25s}.bias-card.bearish .bias-meter span{background:var(--red)}.bias-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:10px;color:var(--muted)}.bias-bottom b{white-space:nowrap;font:700 10px 'IBM Plex Mono',monospace;color:var(--text)}.analysis-section{border-bottom:1px solid var(--stroke);padding:20px 0}.analysis-section h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;font-size:9px;letter-spacing:1.15px;color:#b8c6d8;font-weight:800}.analysis-section h3 span{font:9px 'IBM Plex Mono',monospace;color:var(--muted);letter-spacing:0}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metric{border:1px solid var(--stroke);padding:12px 10px;background:var(--panel);border-radius:8px;min-width:0}.metric span,.metric small{display:block;color:var(--muted);font-size:9px}.metric span{font-size:8px;letter-spacing:.35px;font-weight:800;white-space:nowrap}.metric b{display:block;margin:6px 0 3px;font:700 17px 'IBM Plex Mono',monospace;color:#e6effc}.metric small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pd-bar{display:flex;justify-content:space-between;color:var(--muted);font:8px 'IBM Plex Mono',monospace}.pd-track{height:10px;position:relative;border-radius:7px;margin:9px 0 8px;background:linear-gradient(90deg,#37b79f 0%,#42978d 47%,#f6b162 53%,#f07c86 100%)}.pd-middle{position:absolute;left:50%;top:-4px;height:18px;width:1px;background:#e9e9ef;opacity:.7}.pd-pin{position:absolute;left:50%;top:-5px;width:8px;height:20px;border:2px solid #fff;background:var(--shell);border-radius:3px;transform:translateX(-50%);z-index:2}.pd-values{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font:10px 'IBM Plex Mono',monospace}.pd-values b{font-family:'DM Sans';font-size:10px;color:var(--text)}.zones-list{display:flex;flex-direction:column;gap:8px;max-height:195px;overflow-y:auto}.zone-item{border:1px solid var(--stroke);border-radius:8px;padding:10px;background:var(--panel);display:flex;align-items:center;gap:8px}.zone-indicator{height:30px;width:4px;flex:none;background:var(--green);border-radius:3px}.zone-indicator.bear{background:var(--red)}.zone-copy{flex:1;min-width:0}.zone-copy b{font-size:11px;display:block}.zone-copy small{color:var(--muted);font-size:9px;display:block;margin-top:2px}.zone-value{text-align:right;font:700 10px 'IBM Plex Mono',monospace;white-space:nowrap}.zone-value small{display:block;color:var(--muted);font:9px 'DM Sans';margin-top:4px}.empty-small{color:var(--muted);font-size:11px;padding:12px 2px}.tech-rows{display:flex;flex-direction:column;gap:12px}.tech-rows>div{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#a5b3c6}.tech-rows b{font:700 11px 'IBM Plex Mono',monospace;color:var(--text);text-align:right}.analysis-note{display:flex;gap:10px;color:#8a9aaf;font-size:10px;line-height:1.65;margin-top:17px;background:rgba(112,165,255,.055);border:1px solid rgba(112,165,255,.1);padding:10px;border-radius:8px}.analysis-note>span{font-size:16px;color:var(--blue)}.analysis-note p{margin:0}.analysis-note strong{color:#bfc9d9}.footer{padding:12px 24px;min-height:46px;border-top:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:10px;flex-wrap:wrap}.footer a{color:#c1cedf;text-decoration:underline;text-underline-offset:2px}.footer-sep{padding:0 5px}.toast{position:fixed;z-index:90;bottom:20px;right:20px;background:#172637;color:#e4eefb;border:1px solid #2c4758;border-left:3px solid var(--accent);border-radius:9px;box-shadow:var(--shadow);padding:12px 18px;max-width:320px;transform:translateY(150%);transition:transform .2s;font-size:12px}.toast.visible{transform:translateY(0)}.toast.error{border-left-color:var(--red)}.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(4,9,17,.86);display:flex;align-items:center;justify-content:center;padding:20px}.modal-card{width:min(540px,100%);background:var(--panel2);border:1px solid var(--stroke);border-radius:15px;box-shadow:var(--shadow);padding:28px;position:relative}.modal-card h2{font-size:22px;line-height:1.3}.modal-card p{font-size:13px;color:#a5b5ca;line-height:1.8}.modal-card b{color:var(--text)}.modal-close{position:absolute;right:17px;top:12px;background:none;color:var(--muted);font-size:25px;border:0}.primary-cta{background:var(--green);color:#0c1d22;font-weight:800;border:0;border-radius:8px;padding:10px 19px;margin-top:7px}
body.light{--bg:#e4ebf3;--shell:#f7f9fc;--panel:#fff;--panel2:#edf2f8;--elev:#e1e8f1;--stroke:#d7e0eb;--muted:#6b7b91;--text:#19283b;--white:#0b1727;--mintwash:rgba(0,160,112,.11);--redwash:rgba(220,55,82,.08);--green:#008d69;--accent:#009b71;--red:#d44560;--blue:#4c73d0}body.light .asset-icon{color:#142030}body.light .chart-state{background:var(--shell)}body.light .market-row.active{background:linear-gradient(90deg,rgba(0,160,112,.12),transparent)}body.light .chart-footer{color:#6b7b91}body.light .bias-card{background:linear-gradient(135deg,rgba(0,155,113,.08),transparent)}body.light .modal-backdrop{background:rgba(20,30,40,.5)}body.light .rsi-label{color:#6746bb}body.light .search-box input::placeholder{color:#8392a4}
@media(max-width:1350px){.workspace{grid-template-columns:192px minmax(0,1fr) 290px}.topbar{gap:20px}.topnav{margin-left:0;gap:19px}.instrument-stats{gap:12px}.instrument-header{gap:16px;padding:12px 15px}.instrument-main{min-width:170px}.right-sidebar{padding:18px 12px}.market-row{padding-left:8px}.instrument-price strong{font-size:17px}}
@media(max-width:1120px){.workspace{grid-template-columns:175px minmax(0,1fr)}.right-sidebar{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid var(--stroke);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.right-head,.analysis-status,.bias-card,.analysis-note{grid-column:1/-1}.right-head{margin-bottom:5px}.analysis-section{min-width:0}.instrument-stats div:last-child{display:none}.left-sidebar{min-height:680px}.market-list{max-height:unset}.topnav{gap:13px}}
@media(max-width:730px){.topbar{height:62px;padding:0 13px;gap:11px}.topnav{display:none}.header-actions{gap:7px}.header-button{padding:0 9px}.header-button span{display:none}.brand-title{font-size:14px}.brand-title small{font-size:7px;letter-spacing:1px}.brand-symbol{width:31px;height:31px}.session-tag{font-size:8px}.workspace{display:block}.left-sidebar{min-height:0;border:0;border-bottom:1px solid var(--stroke);padding:0 10px}.left-sidebar .sidebar-title,.left-sidebar .sidebar-bottom,.left-sidebar .market-controls{display:none}.search-box{margin:9px 0 8px;padding:6px 9px}.market-list{display:flex;overflow-x:auto;max-height:none;padding-bottom:7px;gap:3px;scrollbar-width:thin}.market-row{min-width:128px;width:128px;border:1px solid var(--stroke);border-radius:7px;padding:8px}.market-row.active{border-color:var(--green)}.market-row .star{display:none}.coin-symbol{width:25px;height:25px}.instrument-header{padding:10px 12px;height:auto;min-height:75px;gap:8px;flex-wrap:wrap}.instrument-main{flex:1;min-width:170px}.instrument-price{margin-left:auto}.instrument-stats{width:100%;justify-content:space-between;padding:6px 0 0;border-top:1px solid var(--stroke)}.instrument-stats div:last-child{display:flex}.instrument-stats small{font-size:8px}.instrument-stats b{font-size:10px}.chart-toolbar{padding:0 6px;gap:1px}.timeframes button{padding:7px 6px;font-size:10px}.toolbar-button{font-size:10px;padding:5px}.chart-space{min-height:410px}.chart-holder{min-height:310px}.draw-tools{width:34px;gap:5px}.draw-button{width:28px;height:28px;font-size:17px}.ohlc-strip{gap:7px;padding:8px 6px 0;font-size:8px}.legend-strip{gap:6px;padding:5px 6px 3px;font-size:8px}.legend-strip>span:nth-child(n+4){display:none}.chart-footer{font-size:8px}.right-sidebar{display:block;padding:18px 12px}.bottom-panel{height:210px}.table-scroller{height:168px}.footer{padding:14px 12px;font-size:9px}.muted-small{font-size:9px}.tab{padding:0 12px}.toolbar-divider{margin:0 2px}}
@media(max-width:390px){.session-tag{display:none}.chart-toolbar .toolbar-button{font-size:9px}.instrument-price strong{font-size:15px}.spot-pill{display:none}.legend-strip>span:nth-child(3){display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.market-categories{display:flex;flex-wrap:wrap;gap:4px;padding:9px 9px 10px;border-bottom:1px solid var(--stroke)}
.market-categories button{background:var(--panel2);border:1px solid transparent;border-radius:5px;color:var(--muted);padding:5px 7px;font:700 9px 'DM Sans',sans-serif}
.market-categories button.active{background:var(--mintwash);border-color:rgba(54,202,155,.24);color:var(--green)}
.market-row .market-name small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.spot-pill{flex-shrink:0}
.market-controls{padding:8px 13px}
@media(max-width:730px){.left-sidebar .market-categories{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:7px 0}.market-categories button{white-space:nowrap}.market-list{padding-top:7px}.market-row{min-width:150px;width:150px}}

/* TradingFiew 1.2: price guide + support/resistance */
.sr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sr-box{background:var(--panel);border:1px solid var(--stroke);border-radius:8px;padding:10px;min-width:0}
.sr-box span,.sr-box small{display:block;color:var(--muted);font-size:9px}
.sr-box>b{display:block;font:700 14px 'IBM Plex Mono',monospace;margin:6px 0 4px;overflow-wrap:anywhere}
.sr-box.support>b{color:var(--green)}.sr-box.resistance>b{color:var(--orange)}
.sr-note{margin:10px 0 0;color:var(--muted);font-size:10px}
.legal-links{display:flex;gap:12px;flex-wrap:wrap}.legal-links a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
@media(max-width:650px){.legal-links{width:100%}.sr-box>b{font-size:12px}}

/* TradingFiew donations and clearly separated advertisement inventory */
.donate-header{border:1px solid rgba(242,185,79,.65);background:linear-gradient(135deg,rgba(237,177,61,.19),rgba(237,177,61,.045));color:#f7d491;border-radius:9px;font-size:12px;font-weight:800;display:flex;align-items:center;gap:7px;padding:7px 11px;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(244,196,102,.05)}
.donate-header:hover{background:rgba(230,181,82,.23);color:#fff0c6}
.donate-header:focus-visible,.donate-networks button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.donate-symbol{display:grid;place-items:center;width:19px;height:19px;background:#efbc52;color:#1c2030;border-radius:50%;font:bold 14px 'DM Sans',sans-serif}
.donate-crypto{font:700 9px 'IBM Plex Mono',monospace;letter-spacing:.4px;color:#d0b77f;opacity:.85}
.side-donate{width:100%;border:1px solid rgba(242,185,79,.5);border-radius:8px;background:linear-gradient(125deg,rgba(239,182,77,.18),rgba(239,182,77,.035));color:#f7d491;font-weight:800;font-size:11px;padding:12px 10px;margin-bottom:12px;text-align:center}
.side-donate span{font-size:14px;margin-right:5px;color:#f3ad87}
.side-donate:hover{background:rgba(239,182,77,.23)}
.ad-placement{display:flex;flex-direction:column;align-items:stretch;position:relative;border:1px dashed var(--stroke);background:rgba(112,125,156,.025);color:var(--muted);border-radius:9px;overflow:hidden;text-align:center}
.ad-label{display:block;text-align:center;font:700 9px 'IBM Plex Mono',monospace;letter-spacing:1.8px;color:var(--muted);padding:9px 10px 1px}
.ad-reserved{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;padding:12px 10px;min-height:75px}
.ad-reserved strong{font-size:12px;font-weight:700;color:#a6b3c5}
.ad-reserved small{font-size:10px;color:var(--muted)}
.ad-symbol{font-size:21px;line-height:1.1;color:#65768d}
.ad-pending{font-size:9px;color:#8a9bb2}
.ad-placement-banner{margin:14px 20px 16px;min-height:111px;max-width:none}
.ad-placement-banner .ad-reserved{flex-direction:row;flex-wrap:wrap;gap:12px}
.ad-placement-banner .ad-reserved .ad-symbol{font-size:20px}
.ad-placement-sidebar{min-height:196px;margin-top:18px}
.ad-placement-sidebar .ad-reserved{min-height:151px}
.ad-placement .adsbygoogle{width:100%;display:block;min-width:0;margin:8px 0}
.ad-placement.is-serving{background:transparent;border-style:solid}
.ad-placement.is-serving .ad-reserved{display:none}
.crypto-modal{max-width:510px}
.donate-modal-head{display:flex;align-items:center;gap:14px;margin:4px 0 13px}
.donate-modal-head h2{margin:4px 0 0;font-size:24px}
.donate-modal-logo{display:grid;place-items:center;flex:none;width:49px;height:49px;border-radius:14px;background:linear-gradient(135deg,#f3bd54,#e79e51);color:#201d20;font:800 27px 'IBM Plex Mono',monospace}
.donate-networks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 14px}
.donate-networks button{border:1px solid var(--stroke);background:var(--panel);color:var(--text);font-size:11px;font-weight:800;border-radius:9px;padding:12px 8px}
.donate-networks button.active{border-color:var(--accent);background:var(--mintwash);color:var(--accent)}
.donate-networks button:hover{background:var(--elev)}
.donate-address-box{border:1px solid var(--stroke);border-radius:10px;background:var(--shell);padding:15px}
.donate-field-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;font:700 11px 'DM Sans',sans-serif}
.donate-unavailable{color:var(--orange);font:700 9px 'IBM Plex Mono',monospace}
.donate-unavailable.is-ready{color:var(--green)}
.donate-address{min-height:47px;display:flex;align-items:center;justify-content:center;border:1px solid var(--stroke);background:var(--panel);padding:10px 9px;border-radius:8px;color:var(--muted);overflow-wrap:anywhere;text-align:center;font:11px/1.6 'IBM Plex Mono',monospace}
.donate-address.is-ready{color:var(--text);user-select:all}
.donate-copy{width:100%;padding:11px;border:0;border-radius:8px;background:var(--green);font-weight:800;color:#071f19;margin-top:10px}
.donate-copy:disabled{background:var(--elev);color:var(--muted);cursor:not-allowed}
.donate-warning{border-left:2px solid var(--orange);padding-left:11px;font-size:11px!important}
.donate-dismiss{border:1px solid var(--stroke);background:transparent;color:var(--text);border-radius:8px;padding:9px 19px;font-weight:700;margin-top:8px}
.donate-dismiss:hover{background:var(--elev)}
body.light .donate-header{color:#7c4f06;background:rgba(239,173,64,.17)}
body.light .donate-crypto{color:#946215}
body.light .ad-reserved strong{color:#73839b}
body.light .side-donate{color:#7c4f06}
@media(max-width:990px){.donate-crypto{display:none}.donate-header{padding:6px 9px}.topbar{gap:14px}}
@media(max-width:730px){.topbar{gap:7px}.header-actions{gap:6px}.donate-header{padding:6px 8px;font-size:11px}.donate-symbol{width:17px;height:17px;font-size:12px}.ad-placement-banner{margin:12px 10px 15px}.ad-placement-sidebar{min-height:140px}.ad-placement-sidebar .ad-reserved{min-height:104px}}
@media(max-width:380px){.header-button{padding:0 7px}.donate-header{gap:4px;padding:6px}.donate-networks{grid-template-columns:1fr 1fr}.crypto-modal{padding:18px}}

/* TradingFiew mobile overhaul v1.3: full-width and readable, no clipped chart controls */
html,body{max-width:100%;overflow-x:clip}
.mobile-jump-nav{display:none}
@media(min-width:731px) and (max-width:960px){
 .topbar{gap:12px;padding-inline:14px}.topnav{gap:10px}
 .topnav a,.topnav .nav-link{font-size:11px}
 .header-actions{gap:7px}.chart-toolbar{height:auto;flex-wrap:wrap;padding-block:6px}
}
@media(max-width:730px){
 .app-shell,.workspace,.center-pane{width:100%;max-width:100%;min-width:0;overflow-x:clip}
 .topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px;height:auto;min-height:62px;padding:8px max(9px,env(safe-area-inset-left))}
 .brand{flex:0 1 auto;max-width:calc(100% - 137px);min-width:0;gap:6px}
 .brand-symbol{width:28px;height:28px;flex:none;border-radius:8px}
 .brand-symbol svg{width:21px;height:21px}
 .brand-title{font-size:clamp(11px,3.3vw,14px);white-space:nowrap;letter-spacing:-.6px}
 .brand-title small{font-size:6px;letter-spacing:.5px;white-space:nowrap;margin-top:3px}
 .header-actions{flex:0 0 auto;gap:4px;margin-left:auto}
 .header-actions .session-tag{display:none}
 .donate-header{height:34px;padding:6px 7px;font-size:11px;gap:4px}
 .donate-crypto{display:none}.donate-symbol{width:17px;height:17px}
 .header-actions .icon-button,.header-actions .header-button{height:34px;min-width:30px;padding:0 7px}
 .header-actions .icon-button{width:30px}
 .left-sidebar{width:100%;min-height:0;padding:0 9px 7px;overflow:hidden}
 .search-box{width:100%;margin:8px 0 6px;padding:7px 11px}
 .search-box input{font-size:16px;min-height:21px}
 .left-sidebar .market-categories{display:flex;flex-wrap:nowrap;width:100%;gap:5px;overflow-x:auto;overflow-y:hidden;padding:6px 1px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .market-categories::-webkit-scrollbar{display:none}
 .market-categories button{flex:0 0 auto;min-height:33px;padding:6px 10px;font-size:10px}
 .market-list{display:flex;flex-wrap:nowrap;align-items:stretch;gap:6px;max-height:94px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0 3px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
 .market-row{flex:0 0 146px;width:146px;min-width:146px;max-width:146px;scroll-snap-align:start;border-radius:8px;padding:8px 7px;gap:7px}
 .market-name b{font-size:10px}.market-name small{font-size:9px}
 .coin-symbol{width:26px;height:26px}
 .mobile-jump-nav{display:flex;align-items:center;gap:7px;padding:7px 10px;border-bottom:1px solid var(--stroke);background:var(--shell)}
 .mobile-jump-nav a{flex:1;border-radius:7px;padding:7px 8px;text-align:center;border:1px solid var(--stroke);color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}
 .mobile-jump-nav a:first-child{background:var(--mintwash);color:var(--green);border-color:rgba(64,219,161,.25)}
 .instrument-header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:7px;row-gap:8px;height:auto;min-height:0;padding:11px 10px 9px;align-items:center}
 .instrument-main{grid-column:1;grid-row:1;min-width:0;gap:7px}
 .asset-icon{height:31px;width:31px;font-size:17px}
 .asset-titles{min-width:0}
 .asset-titles h1{font-size:16px;white-space:nowrap;letter-spacing:-.5px}
 .asset-titles span{display:block;max-width:100%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .spot-pill{font-size:8px;padding:3px 4px}
 .instrument-price{grid-column:2;grid-row:1;margin:0;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-end;flex-wrap:nowrap}
 .instrument-price strong{font-size:clamp(14px,4.2vw,19px);letter-spacing:-.6px;line-height:1.15}
 .change-label{font-size:10px;white-space:nowrap;max-width:100%}
 .instrument-stats{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px;padding:8px 0 0;margin:0;border-top:1px solid var(--stroke)}
 .instrument-stats div{min-width:0;gap:2px}
 .instrument-stats div:last-child{display:flex}
 .instrument-stats small{font-size:8px;letter-spacing:.2px}
 .instrument-stats b{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .chart-toolbar{width:100%;height:auto;min-height:83px;display:flex;flex-wrap:wrap;align-items:center;gap:5px 4px;padding:7px 8px;overflow:visible}
 .timeframes{order:0;flex:0 0 100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
 .timeframes button{width:100%;min-width:0;min-height:34px;padding:6px 3px;font-size:11px}
 .toolbar-divider{display:none}
 .toolbar-menu{order:1;flex:0 0 auto}
 .toolbar-menu .toolbar-button{min-height:32px;padding:7px 7px;font-size:10px}
 .toolbar-button.active-tool{order:2;min-height:32px;padding:7px 7px;font-size:10px}
 .toolbar-spacer{order:3;flex:1}
 .toolbar-icon{order:4;min-height:32px;min-width:31px;height:32px;width:31px}
 .dropdown{top:38px;left:0;max-width:min(240px,calc(100vw - 25px))}
 .dropdown label{min-height:36px;font-size:12px}
 .chart-space{width:100%;height:auto;min-height:0;flex:none}
 .draw-tools{width:34px;gap:5px;padding:10px 1px 0}
 .draw-button{height:34px;width:30px;font-size:18px}
 .chart-inner{min-height:0;min-width:0;overflow:hidden}
 .ohlc-strip{height:auto;min-height:30px;flex-wrap:wrap;align-content:center;gap:3px 8px;padding:6px 5px 2px;font-size:9px;line-height:1.4;overflow:visible}
 .ohlc-strip .strip-r{font-size:9px}
 .legend-strip{padding:5px 5px 4px;gap:7px;font-size:9px}
 .legend-strip>span:nth-child(n+4){display:none}
 .chart-holder{width:100%;height:clamp(340px,50svh,455px);min-height:340px;flex:0 0 auto;overflow:hidden}
 .chart-host{width:100%;height:100%;inset:0;min-width:0}
 .rsi-panel{height:82px}
 .chart-footer{height:auto;min-height:32px;gap:5px;padding:5px 7px;font-size:9px}
 .chart-footer>span{min-width:0;white-space:nowrap}
 .chart-footer>span:nth-child(2){flex:1;text-align:right;overflow:hidden;text-overflow:ellipsis}
 .bottom-panel{height:218px;width:100%;overflow:hidden}
 .bottom-title{height:41px;padding-right:7px}
 .tabs .tab{font-size:10px;padding:0 11px}
 .muted-small{max-width:112px;font-size:9px;line-height:1.2;text-align:right}
 .table-scroller{height:176px;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .data-table th,.data-table td{padding:9px 10px}
 .right-sidebar{display:block;max-height:none;width:100%;border-left:0;overflow:visible;padding:17px 12px;min-width:0}
 .metric span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .ad-placement-banner{margin:10px 10px 15px;min-height:100px}
 .footer{padding:14px 12px max(20px,env(safe-area-inset-bottom));gap:8px;font-size:10px}
 .footer>span,.footer .legal-links{width:100%;min-width:0;overflow-wrap:anywhere}
 .modal-backdrop{padding:12px max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom))}
 .modal-card{max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:20px}
 .donate-networks button{min-height:42px}
 .donate-address{word-break:break-all}
 .draw-hint{max-width:calc(100% - 20px);white-space:normal;text-align:center}
}
@media(max-width:370px){
 .topbar{padding-inline:8px}
 .brand{max-width:calc(100% - 123px);gap:4px}
 .brand-symbol{width:26px;height:26px}
 .brand-title{font-size:11px;letter-spacing:-.6px}
 .brand-title small{font-size:5.5px;letter-spacing:.2px}
 .header-actions{gap:3px}
 .donate-header{font-size:10px;padding:6px;gap:3px}
 .header-actions .icon-button,.header-actions .header-button{min-width:28px;width:28px}
 .asset-titles h1{font-size:15px}
 .spot-pill{display:none}
 .chart-toolbar{padding-inline:5px}
 .toolbar-menu .toolbar-button,.toolbar-button.active-tool{font-size:9px;padding-inline:5px}
 .chart-holder{height:340px}
 .legend-strip>span:nth-child(3){display:none}
 .rsi-panel{height:74px}
 .modal-card{padding:16px}
}
@media(orientation:landscape) and (max-height:550px) and (max-width:960px){.chart-holder{height:330px;min-height:310px}}

/* Crawlable market research explanation below the terminal, outside chart canvas */
.seo-overview{border-top:1px solid var(--stroke);padding:35px 28px 42px;background:var(--shell);color:var(--text)}
.seo-overview-header{max-width:1000px}
.seo-overview h2{font-size:clamp(21px,2.4vw,30px);line-height:1.25;margin:6px 0 15px;letter-spacing:-.6px}
.seo-overview h3{font-size:14px;margin:0 0 8px;color:var(--text)}
.seo-overview p{color:var(--muted);font-size:12px;line-height:1.85;margin:0}
.seo-overview a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.seo-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0 16px}
.seo-features article{padding:18px;border-radius:11px;border:1px solid var(--stroke);background:var(--panel);min-width:0}
.seo-disclaimer{max-width:1080px}
@media(max-width:890px){.seo-features{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.seo-overview{padding:24px 14px 28px}.seo-features{grid-template-columns:1fr;gap:9px}.seo-features article{padding:15px}.seo-overview h2{font-size:22px}.seo-overview p{font-size:12px}}

/* Drawing management interface v1.4 — touch-friendly and independent of Auto SMC */
.draw-tools .draw-manager-button{position:relative}
.draw-count{position:absolute;right:-5px;top:-7px;background:var(--green);color:#082119;border-radius:10px;padding:1px 4px;min-width:15px;font:800 9px 'DM Sans',sans-serif}
.draw-button:disabled{opacity:.32;cursor:not-allowed}
.draw-tools button:focus-visible,.drawing-row button:focus-visible,.selected-drawing-bar button:focus-visible{
 outline:2px solid var(--green);outline-offset:2px
}
.selected-drawing-bar{
 position:absolute;top:7px;left:9px;right:60px;z-index:12;
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
 padding:7px 9px;border-radius:8px;
 background:rgba(13,27,43,.96);border:1px solid rgba(252,213,98,.65);
 color:var(--text);box-shadow:0 6px 24px rgba(0,0,0,.24);
 backdrop-filter:blur(7px);font:700 11px 'DM Sans',sans-serif
}
.selected-drawing-bar.hidden,.drawings-panel.hidden{display:none!important}
.selected-drawing-bar span{flex:1;min-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-drawing-bar button{min-height:31px;border-radius:6px;border:1px solid var(--stroke);background:var(--elev);color:var(--text);padding:5px 8px;font-size:11px}
.selected-drawing-bar .selected-delete{border-color:rgba(251,108,134,.52);background:rgba(245,94,123,.15);color:#ff8398;font-weight:800}
.selected-drawing-bar .selected-dismiss{font-size:20px;padding:0 10px;line-height:1}
.drawings-panel{
 position:absolute;z-index:18;top:8px;left:8px;
 width:min(360px,calc(100% - 65px));max-height:calc(100% - 18px);
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
 background:var(--panel);border:1px solid var(--stroke);
 color:var(--text);box-shadow:0 12px 35px rgba(0,0,0,.40);
 border-radius:10px;padding:11px
}
.drawings-panel-header{position:sticky;top:-11px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--panel);padding:3px 0 9px;border-bottom:1px solid var(--stroke)}
.drawings-panel-header strong{font-size:13px;letter-spacing:.2px}
.drawings-panel-header span{color:var(--green)}
.drawings-panel-header button{border:0;background:var(--elev);color:var(--text);min-width:29px;height:29px;border-radius:6px;font-size:19px}
.drawings-panel-help{font-size:10px!important;line-height:1.6;color:var(--muted);margin:10px 0}
.drawing-list{display:flex;flex-direction:column;gap:5px}
.drawing-row{display:flex;align-items:stretch;gap:5px;min-width:0}
.drawing-row button{border-radius:6px;border:1px solid var(--stroke);background:var(--shell);color:var(--text)}
.drawing-row .drawing-select{flex:1;min-width:0;text-align:left;padding:9px 10px;font:700 11px 'DM Sans',sans-serif;overflow-wrap:anywhere}
.drawing-row .drawing-select.selected{border-color:var(--green);color:var(--green);background:var(--mintwash)}
.drawing-row .drawing-item-delete{flex:0 0 38px;width:38px;min-height:36px;color:#ff8498;font-size:16px}
.drawing-row .drawing-item-delete:hover{border-color:var(--red);background:rgba(247,93,122,.12)}
.drawing-row.fib-level-row{padding-left:12px}
.drawing-row.fib-level-row .drawing-select{font:500 10px 'IBM Plex Mono',monospace}
.drawing-empty{padding:16px 10px;text-align:center;color:var(--muted);font-size:11px;line-height:1.7}
.drawing-clear-all{display:block;width:100%;margin-top:11px;padding:10px;border-radius:7px;border:1px solid rgba(251,108,134,.4);background:rgba(251,108,134,.08);color:var(--red);font-size:11px;font-weight:800}
.drawing-clear-all:disabled{opacity:.35}
body.light .drawings-panel{background:var(--panel);box-shadow:0 12px 28px rgba(16,32,55,.22)}
body.light .selected-drawing-bar{background:rgba(244,248,253,.97)}
@media(max-width:730px){
 .draw-tools{width:39px;gap:4px}
 .draw-tools .draw-button{min-height:36px;height:36px;width:34px}
 .draw-tools .draw-manager-button{font-size:17px}
 .drawings-panel{left:5px;top:5px;width:calc(100% - 12px);max-height:calc(100% - 10px);padding:9px}
 .selected-drawing-bar{left:5px;right:5px;top:6px;gap:5px;padding:5px 6px}
 .selected-drawing-bar span{font-size:10px}
 .selected-drawing-bar button{min-height:34px;font-size:10px}
 .drawings-panel-help{font-size:11px!important}
 .drawing-row .drawing-select{min-height:39px}
 .drawing-row .drawing-item-delete{min-height:39px}
}

/* Chart Window v1.6 — immersive terminal view, same interactive chart instance */
.workspace-entry{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--stroke);background:var(--panel);color:var(--text);border-radius:8px;padding:5px 9px;font:700 10px 'DM Sans',sans-serif;white-space:nowrap}
.workspace-entry:hover{border-color:var(--green);color:var(--green)}
.workspace-entry:focus-visible,.chart-window-close:focus-visible,.chart-window-trigger:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.workspace-entry>span:first-child{color:var(--green);font-size:16px}
.workspace-modal{max-width:520px}
.workspace-modal h2{font-size:25px;margin:8px 0 18px}
.workspace-status{display:flex;align-items:center;gap:10px;border:1px solid rgba(66,216,157,.28);background:var(--mintwash);padding:12px;border-radius:9px;margin-bottom:16px}
.workspace-status>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.workspace-status strong{font-size:12px;color:var(--text)}
.workspace-status small{font-size:10px;color:var(--muted)}
.workspace-dot{display:block;width:10px;height:10px;flex:none;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(56,201,149,.12)}
.workspace-modal>p{font-size:12px;line-height:1.7}
.workspace-privacy-note{padding:13px 14px;border:1px solid var(--stroke);border-radius:9px;margin:15px 0}
.workspace-privacy-note strong{font-size:12px}
.workspace-privacy-note p{font-size:11px;line-height:1.7;margin:7px 0 0;color:var(--muted)}
.workspace-erase{width:100%;padding:11px;border:1px solid rgba(251,108,134,.54);background:rgba(248,97,126,.10);color:var(--red);border-radius:8px;font-weight:750;font-size:12px}
.workspace-erase:hover{background:rgba(248,97,126,.18)}
.chart-window-bar{display:none;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;border-bottom:1px solid var(--stroke);background:var(--panel);flex:0 0 auto}
.chart-window-title{display:flex;align-items:center;gap:11px}
.chart-window-icon{display:grid;place-items:center;width:33px;height:33px;border:1px solid var(--stroke);border-radius:9px;background:var(--mintwash);color:var(--green);font-size:22px}
.chart-window-title>div{display:flex;flex-direction:column;gap:3px}
.chart-window-title strong{font-size:12px;letter-spacing:1px}
.chart-window-title small{font:10px 'DM Sans',sans-serif;color:var(--muted)}
.chart-window-close{min-width:78px;min-height:36px;border:1px solid var(--stroke);background:var(--elev);color:var(--text);border-radius:8px;padding:7px 12px;font:750 12px 'DM Sans',sans-serif}
.chart-window-close:hover{border-color:var(--green);color:var(--green)}
body.chart-window-active{overflow:hidden}
body.chart-window-active .center-pane{
 position:fixed!important;inset:0!important;z-index:1001!important;width:100vw!important;
 max-width:none!important;height:100dvh!important;max-height:100dvh!important;
 background:var(--shell);margin:0!important;display:flex!important;flex-direction:column!important;
 overflow:hidden!important;isolation:isolate
}
body.chart-window-active .chart-window-bar{display:flex}
body.chart-window-active .center-pane .instrument-header{flex:0 0 auto}
body.chart-window-active .center-pane .chart-toolbar{flex:0 0 auto}
body.chart-window-active .center-pane .bottom-panel{display:none!important}
body.chart-window-active .center-pane .chart-space{
 flex:1 1 0!important;display:flex!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important
}
body.chart-window-active .center-pane .chart-inner{
 flex:1 1 0!important;display:flex!important;flex-direction:column!important;
 min-height:0!important;min-width:0!important;height:100%!important;overflow:hidden!important
}
body.chart-window-active .center-pane .chart-holder{
 flex:1 1 0!important;min-height:170px!important;height:auto!important;max-height:none!important
}
body.chart-window-active .center-pane .chart-host{height:100%!important}
body.chart-window-active .center-pane .rsi-panel{flex:0 0 92px!important;min-height:0!important}
body.chart-window-active .center-pane .chart-footer{flex:0 0 30px!important}
body.chart-window-active .center-pane .draw-tools{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:730px){
 .workspace-entry{padding:6px;min-width:30px;height:33px;justify-content:center}
 .workspace-entry .workspace-name{display:none}
 .chart-window-title strong{font-size:11px}
 .chart-window-title small{font-size:9px}
 .chart-window-bar{padding:7px 10px}
 .chart-window-close{min-height:33px;padding:6px 9px;font-size:11px}
 body.chart-window-active .instrument-header{min-height:0!important;padding:7px 9px!important}
 body.chart-window-active .instrument-stats{padding-top:5px!important}
 body.chart-window-active .chart-toolbar{min-height:74px!important;padding:5px 8px!important}
 body.chart-window-active .chart-space{flex:1 1 0!important;min-height:0!important;height:auto!important}
 body.chart-window-active .chart-inner{min-height:0!important;height:100%!important}
 body.chart-window-active .chart-holder{height:auto!important;flex:1 1 0!important;min-height:130px!important}
 body.chart-window-active .rsi-panel{flex:0 0 75px!important;height:75px!important}
 body.chart-window-active .chart-footer{flex:0 0 28px!important}
 .workspace-modal h2{font-size:22px}
 .workspace-modal>p{font-size:12px}
}
@media(max-width:360px){
 .workspace-entry{padding:5px;min-width:26px;height:31px}
 .header-actions .workspace-entry>span:first-child{font-size:14px}
 .chart-window-title small{display:none}
 body.chart-window-active .rsi-panel{flex-basis:65px!important}
}


/* TradingFiew v2 share, supporters and responsive chart */
.share-header{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;min-width:80px;padding:5px 11px;border-radius:8px;background:linear-gradient(135deg,#1fba9c,#138776);border:1px solid rgba(87,252,214,.4);box-shadow:0 2px 12px rgba(14,204,166,.12);color:#fff;font-weight:800;font-size:12px;white-space:nowrap}
.share-header>span:first-child{font-size:19px;line-height:1}
.share-header:hover,.share-native:hover{filter:brightness(1.13)}
.share-header:focus-visible,.share-platforms button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.share-modal{width:min(100%,480px)}
.share-modal h2{font-size:24px;line-height:1.2;margin:9px 0 12px}
.share-modal>p{font-size:12px;line-height:1.7;color:var(--muted)}
.share-current-market{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--stroke);background:var(--panel2);border-radius:11px;margin:18px 0 13px}
.share-current-market>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.share-current-market strong{font-size:13px;overflow-wrap:anywhere}
.share-current-market small{font-size:10px;color:var(--muted)}
.share-market-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--mintwash);border:1px solid rgba(50,208,158,.3);color:var(--green);font-size:22px}
.share-modal>label{font-size:11px;display:block;font-weight:800;margin-bottom:7px}
.share-url-row{display:flex;gap:7px;width:100%}
.share-url-row input{flex:1;min-width:0;border:1px solid var(--stroke);background:var(--shell);border-radius:8px;padding:11px;color:var(--text);font:11px 'IBM Plex Mono',monospace}
.share-url-row button,.share-native{border:0;border-radius:8px;padding:10px 15px;background:var(--green);color:#081d19;font-weight:800;white-space:nowrap;font-size:12px}
.share-platforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:15px 0 11px}
.share-platforms button{border:1px solid var(--stroke);background:var(--panel2);color:var(--text);min-height:39px;border-radius:8px;font-weight:700;font-size:11px;padding:5px 2px}
.share-platforms button:hover{color:var(--green);border-color:var(--green)}
.share-native{width:100%;min-height:41px}
.share-preview-note{border-top:1px solid var(--stroke);padding-top:12px;margin-top:13px}
.supporters-widget{margin-top:16px;border-top:1px solid var(--stroke);padding-top:15px}
.supporters-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.supporters-title h3{margin:0;font-size:14px;letter-spacing:-.2px}
.supporters-optional{font:750 9px 'IBM Plex Mono',monospace;color:var(--green)}
.supporters-note{color:var(--muted);font-size:11px!important;line-height:1.6;margin:3px 0 11px!important}
.supporters-list{display:flex;flex-wrap:wrap;gap:7px;min-height:38px;align-items:center;padding:8px 0}
.supporters-empty{color:var(--muted);font-size:11px;font-style:italic}
.supporter-name{display:inline-block;border:1px solid rgba(67,211,159,.3);border-radius:20px;color:var(--green);background:var(--mintwash);font-size:11px;padding:6px 10px;font-weight:800;max-width:100%;overflow-wrap:anywhere}
.supporter-consent{display:flex;align-items:flex-start;gap:9px;background:var(--panel2);border:1px solid var(--stroke);border-radius:9px;cursor:pointer;padding:12px 10px;margin:12px 0 5px;font-size:11px;font-weight:750;line-height:1.45}
.supporter-consent input{accent-color:var(--green);width:16px;height:16px;flex:none;margin:1px 0 0}
.supporter-form{padding:12px;border:1px solid var(--stroke);background:var(--panel);border-radius:9px;margin:8px 0 10px}
.supporter-form[hidden]{display:none!important}
.supporter-form>label{display:block;font-weight:750;font-size:11px;margin:0 0 7px}
.supporter-form>input{width:100%;border:1px solid var(--stroke);border-radius:8px;background:var(--shell);color:var(--text);padding:10px 11px;font-size:13px}
.supporter-form>p{margin:9px 0;font-size:11px!important;line-height:1.6}
.supporter-form>button{width:100%;border:1px solid var(--green);background:var(--mintwash);color:var(--green);font-size:12px;font-weight:800;border-radius:8px;padding:10px;margin:2px 0 8px}
.supporter-form>small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:5px}
#supporterFormStatus{color:var(--green);font-weight:650}
.supporters-public{padding:20px 28px 22px;border-top:1px solid var(--stroke);background:var(--shell)}
.supporters-public-intro{display:flex;align-items:center;justify-content:space-between;gap:17px}
.supporters-public h2{margin:4px 0 6px;font-size:20px;line-height:1.25}
.supporters-public p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.supporters-public button{border:1px solid rgba(241,186,81,.57);background:linear-gradient(130deg,rgba(241,186,81,.15),rgba(241,186,81,.04));color:#ecc075;border-radius:9px;padding:11px 14px;font-size:12px;font-weight:800;white-space:nowrap;min-height:39px}
.supporters-public>.supporters-list{padding:14px 0 0}
.crypto-modal{max-height:min(93dvh,790px)!important;overflow-y:auto!important;overscroll-behavior:contain}
@media(min-width:731px) and (max-width:1120px){
 .workspace{align-items:start;min-height:0}
 .center-pane{align-self:start;min-height:0}
 .left-sidebar{align-self:start;min-height:0;height:auto;max-height:830px}
 .market-list{max-height:520px}
 .chart-space{flex:0 0 auto;height:580px;min-height:580px}
 .chart-holder{height:430px;min-height:370px;flex:1}
 .topbar{gap:12px;padding:0 13px}
 .topnav{display:none}
 .header-actions{gap:7px}
 .header-actions .session-tag{display:none}
 .instrument-header{gap:12px}
 .instrument-stats{gap:10px}
 .chart-toolbar{flex-wrap:wrap;height:auto;min-height:49px;padding-block:6px}
}
@media(min-width:1121px) and (max-width:1350px){
 .topbar{gap:10px;padding-inline:13px}
 .header-actions{gap:7px}
 .topnav{gap:10px}
 .session-tag{display:none}
 .brand-title{font-size:15px}
}
@media(max-width:730px){
 .topbar{gap:5px}
 .share-header{flex:0 0 32px;min-width:32px;height:33px;width:32px;padding:5px}
 .share-header>span:first-child{font-size:19px}
 .share-header-text{display:none}
 .header-actions{gap:4px}
 .header-actions .session-tag{display:none}
 .chart-holder{height:clamp(420px,58svh,560px);min-height:420px}
 .legend-strip{overflow:visible;white-space:normal;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:9px}
 .legend-strip>span:nth-child(n+4){display:flex}
 .legend-strip>span:nth-child(3){display:flex}
 .ohlc-strip{height:auto;min-height:33px;white-space:normal;overflow:visible;gap:4px 11px;padding:6px 5px 2px;font-size:9px}
 .instrument-stats{gap:6px}
 .chart-toolbar{row-gap:6px}
 .chart-toolbar>.toolbar-icon{min-width:30px;width:30px}
 .rsi-panel{height:86px}
 .supporters-public{padding:19px 12px}
 .supporters-public-intro{align-items:flex-start;flex-direction:column;gap:11px}
 .supporters-public h2{font-size:18px}
 .supporters-public button{width:100%}
 .share-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}
 .share-modal{max-height:calc(100dvh - 20px);overflow-y:auto}
 .crypto-modal{max-height:calc(100dvh - 20px)!important}
 .share-modal h2{font-size:20px}
 .supporters-optional{font-size:8px}
}
@media(max-width:390px){
 .header-actions .header-button{display:none}
 .topbar{gap:5px}
 .brand{max-width:calc(100% - 141px);gap:5px}
 .brand-symbol{width:26px;height:26px}
 .brand-title{font-size:11px}
 .brand-title small{display:none}
 .header-actions .donate-header{min-width:0}
 .instrument-price strong{font-size:clamp(13px,4.2vw,17px)}
 .legend-strip>span:nth-child(3){display:flex}
 .legend-strip{font-size:8px;gap:4px 7px}
 .share-url-row input{font-size:10px}
 .share-platforms button{font-size:11px}
}
body.chart-window-active .center-pane .chart-holder{flex:1 1 0!important;height:auto!important;min-height:140px!important}
body.chart-window-active .center-pane .chart-space{flex:1 1 0!important;height:auto!important;min-height:0!important}

/* Tiny phones: retain independent controls without horizontal overflow. */
@media(max-width:340px){
 html,body,.app-shell{min-width:0!important;max-width:100%!important}
 .topbar{padding-inline:6px;gap:3px}
 .header-actions{gap:2px}
 .brand{gap:3px;min-width:0;max-width:none}
 .brand-symbol{width:22px;height:22px}
 .brand-symbol svg{width:18px;height:18px}
 .brand-title{font-size:10px;letter-spacing:-.5px}
 .share-header{min-width:27px;width:27px;flex-basis:27px}
 .donate-header{width:28px;min-width:28px;justify-content:center;padding:3px}
 .donate-header>span:nth-child(2){display:none}
 .workspace-entry{min-width:26px;width:26px;padding:4px}
 .header-actions .icon-button{min-width:27px;width:27px;padding:0}
 .header-actions .header-button{display:none}
}


/* TradingFiew chart clarity and adaptive workspace v2.1
 * Prioritize the live canvas over secondary cards; never cover candles
 * with SMC descriptions. These are appended after historical breakpoints. */
@media(min-width:1271px){
 .workspace{grid-template-columns:clamp(160px,12.5vw,190px) minmax(0,1fr) clamp(260px,19.5vw,295px)}
 .left-sidebar{min-width:0}
 .right-sidebar{min-width:0;padding-inline:13px}
 .chart-space{min-height:760px}
 .center-pane{min-width:0}
 .chart-holder{min-height:530px}
 .instrument-header{gap:14px;padding-inline:14px}
 .instrument-stats{gap:12px}
}
@media(min-width:731px) and (max-width:1270px){
 .workspace{grid-template-columns:175px minmax(0,1fr);min-height:0;align-items:start}
 .left-sidebar{min-height:0;height:auto;max-height:920px}
 .left-sidebar .market-list{max-height:630px}
 .center-pane{min-height:0;align-self:start}
 .right-sidebar{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 18px;max-height:none;min-width:0;overflow:visible;
  border-left:0;border-top:1px solid var(--stroke);padding:17px 18px
 }
 .right-head,.analysis-status,.bias-card,.analysis-note{grid-column:1/-1}
 .chart-space{height:655px;min-height:655px;flex:0 0 auto}
 .chart-holder{min-height:450px}
 .topbar{gap:12px;padding-inline:13px}
 .topnav{display:none}
 .header-actions{gap:7px}
 .instrument-header{gap:10px;padding-inline:12px}
 .chart-toolbar{height:auto;min-height:49px;flex-wrap:wrap;padding-block:6px}
}
@media(max-width:730px){
 .chart-inner{min-width:0;width:100%}
 .chart-space{min-width:0}
 .chart-holder{min-width:0}
 .ohlc-strip{position:relative;z-index:1}
 .legend-strip{position:relative;z-index:1}
 .right-sidebar{max-height:none}
 .sr-grid{gap:8px}
}
@media(max-width:380px){
 .right-sidebar{padding-inline:10px}
 .sr-box>b{font-size:11px}
}


/* TradingFiew market depth and multiframe panels v1 */
.market-panel{margin:17px 0 19px;border:1px solid var(--stroke);background:var(--panel);border-radius:11px;padding:12px;min-width:0;overflow:hidden}
.market-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:6px}
.market-panel-heading>div{min-width:0}
.market-panel-heading h3{font-size:14px;font-weight:850;color:var(--text);letter-spacing:-.15px;margin:4px 0 0;line-height:1.3}
.market-panel .eyebrow{font-size:9px;letter-spacing:1px}
.market-panel-refresh{border:1px solid var(--stroke);background:var(--elev);color:var(--muted);border-radius:7px;width:30px;height:30px;flex:none;font-size:20px;display:grid;place-items:center;cursor:pointer}
.market-panel-refresh:hover{color:var(--green);border-color:var(--green)}
.market-panel-refresh:disabled{opacity:.4;cursor:not-allowed}
.market-panel-note{font-size:10px!important;color:var(--muted);line-height:1.65;margin:0 0 11px}
.timeframe-trends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
.timeframe-trend{border:1px solid var(--stroke);border-radius:8px;padding:9px 8px;min-width:0;display:flex;flex-direction:column;gap:5px;background:var(--shell)}
.timeframe-trend:first-child{grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:1fr 1fr;gap:1px 7px;align-items:center}
.timeframe-trend:first-child .tf-name{grid-row:1/-1}
.timeframe-trend .tf-name{font:800 10px 'IBM Plex Mono',monospace;color:var(--muted)}
.timeframe-trend .tf-direction{font:800 11px 'DM Sans',sans-serif;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeframe-trend .tf-detail{font:9px 'IBM Plex Mono',monospace;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeframe-trend[data-direction="bull"]{border-color:rgba(55,210,160,.24);background:rgba(37,175,126,.04)}
.timeframe-trend[data-direction="bull"] .tf-direction{color:var(--green)}
.timeframe-trend[data-direction="bear"]{border-color:rgba(249,99,129,.22);background:rgba(231,75,104,.035)}
.timeframe-trend[data-direction="bear"] .tf-direction{color:var(--red)}
.timeframe-trend[data-direction="neutral"] .tf-direction{color:var(--orange)}
.timeframe-placeholder{grid-column:1/-1;text-align:center;font-size:10px;color:var(--muted);padding:14px}
.market-panel-footer{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--stroke);margin-top:10px;padding-top:9px;font:9px 'IBM Plex Mono',monospace;color:var(--muted);flex-wrap:wrap;line-height:1.5}
.orderbook-tag{font-size:8px;font-family:'IBM Plex Mono',monospace;letter-spacing:.25px;display:inline-block;vertical-align:middle;color:#ddba76;font-weight:600}
.orderbook-status{display:block;border-radius:7px;font:10px/1.5 'DM Sans',sans-serif;border:1px solid var(--stroke);background:var(--shell);color:var(--muted);padding:8px 9px;margin-bottom:9px;min-height:31px}
.orderbook-status[data-state="live"]{border-color:rgba(55,210,160,.3);color:var(--green)}
.orderbook-status[data-state="warning"]{border-color:rgba(240,176,84,.28);color:var(--orange)}
.orderbook-status[data-state="unavailable"]{background:transparent;border-style:dashed;color:var(--muted)}
#orderBookContent[hidden]{display:none!important}
.orderbook-colheads{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(0,1fr);gap:5px;color:var(--muted);font:700 8px 'IBM Plex Mono',monospace;letter-spacing:.35px;margin-bottom:5px}
.orderbook-colheads>span:not(:first-child){text-align:right}
.orderbook-side{display:flex;flex-direction:column;gap:1px;min-width:0}
.orderbook-level{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:5px;min-height:23px;padding:2px 3px;overflow:hidden;font:10px 'IBM Plex Mono',monospace}
.orderbook-level .orderbook-depth-bg{display:block;position:absolute;top:0;bottom:0;right:0;pointer-events:none;z-index:0}
.orderbook-level.bid .orderbook-depth-bg{background:rgba(53,203,155,.095)}
.orderbook-level.ask .orderbook-depth-bg{background:rgba(245,91,127,.095)}
.orderbook-level>*:not(.orderbook-depth-bg){position:relative;z-index:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.orderbook-level .ob-price{font-weight:800}
.orderbook-level.bid .ob-price{color:var(--green)}
.orderbook-level.ask .ob-price{color:var(--red)}
.orderbook-level .ob-size,.orderbook-level .ob-total{text-align:right;color:var(--text)}
.orderbook-spread{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-top:1px solid var(--stroke);border-bottom:1px solid var(--stroke);margin:7px 0;padding:11px 4px}
.orderbook-spread strong{font:800 17px 'IBM Plex Mono',monospace;color:var(--text)}
.orderbook-spread span{font:10px 'IBM Plex Mono',monospace;color:var(--muted)}
.orderbook-balance{display:grid;grid-template-columns:auto minmax(15px,1fr) auto;align-items:center;gap:8px;margin-top:12px;font:800 9px 'IBM Plex Mono',monospace;color:var(--muted)}
.orderbook-balance-track{height:7px;border-radius:9px;background:var(--red);overflow:hidden}
.orderbook-balance-track i{display:block;height:100%;background:var(--green);width:50%}
@media(min-width:731px) and (max-width:1270px){
 #timeframeTrendsPanel,#orderBookPanel{align-self:start}
 .timeframe-trends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .timeframe-trend:first-child{grid-column:auto;display:flex;gap:5px}
 .timeframe-trend:first-child .tf-name{grid-row:auto}
}
@media(max-width:730px){
 .market-panel{padding:12px;margin-block:13px}
 .timeframe-trends-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .timeframe-trend:first-child{grid-column:auto;display:flex;gap:5px}
 .timeframe-trend:first-child .tf-name{grid-row:auto}
 .timeframe-trend{min-height:70px}
 .market-panel-heading h3{font-size:15px}
 .orderbook-colheads,.orderbook-level{grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1fr)}
 .orderbook-level{min-height:27px;font-size:11px}
}
@media(max-width:370px){
 .timeframe-trends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .timeframe-trend:first-child{grid-column:1/-1;display:grid}
 .timeframe-trend:first-child .tf-name{grid-row:1/-1}
 .orderbook-level{font-size:10px}
}

/* TradingFiew 2.5 — single-viewport desktop and mobile trading terminal.
 * Document itself cannot scroll; panels, symbol watch and modals scroll
 * independently, just like an exchange terminal. */
.terminal-mobile-dock{display:none}
.best-quote-panel[hidden],.terminal-info-modal[hidden]{display:none!important}
body.terminal-mode{height:100dvh;min-height:0!important;width:100%;margin:0;overflow:hidden!important;overscroll-behavior:none}
body.terminal-mode .app-shell{
 width:100%;max-width:none!important;height:100dvh;min-height:0!important;
 margin:0;display:flex;flex-direction:column;overflow:hidden!important
}
body.terminal-mode .topbar{
 flex:0 0 58px;height:58px;min-height:58px;padding-inline:13px;
 gap:16px;z-index:42;overflow:visible
}
.terminal-side-toggles{display:flex;gap:5px;align-items:center}
.terminal-side-toggles button{
 display:flex;align-items:center;justify-content:center;gap:6px;
 min-height:32px;border:1px solid var(--stroke);border-radius:7px;
 background:var(--panel);color:var(--muted);padding:5px 9px;font:750 10px 'DM Sans',sans-serif;
 white-space:nowrap
}
.terminal-side-toggles button[aria-pressed="true"]{border-color:rgba(65,217,166,.35);color:var(--green);background:var(--mintwash)}
.terminal-side-toggles button:hover,.range-tools button:hover,.range-presets button:hover{border-color:var(--green);color:var(--green)}
body.terminal-mode .brand-symbol{height:30px;width:30px}
body.terminal-mode .brand-title{font-size:14px}
body.terminal-mode .header-actions{gap:7px;min-width:0}
body.terminal-mode .workspace{
 width:100%;height:auto!important;flex:1 1 0!important;min-height:0!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(270px,300px);
 grid-template-rows:minmax(0,1fr);gap:0;overflow:hidden!important;
 align-items:stretch!important;position:relative
}
body.terminal-mode .workspace[data-market-watch="open"]{grid-template-columns:195px minmax(0,1fr) minmax(270px,300px)}
body.terminal-mode .workspace[data-analysis-panel="collapsed"]{grid-template-columns:minmax(0,1fr)}
body.terminal-mode .workspace[data-market-watch="open"][data-analysis-panel="collapsed"]{grid-template-columns:195px minmax(0,1fr)}
body.terminal-mode .left-sidebar,body.terminal-mode .right-sidebar,body.terminal-mode .center-pane{
 grid-row:1;min-width:0!important;max-height:none!important;
 height:100%!important;max-height:100%!important;min-height:0!important;
 align-self:stretch!important
}
body.terminal-mode .left-sidebar{
 grid-column:1;display:flex!important;flex-direction:column;overflow:hidden!important;
 border-right:1px solid var(--stroke);padding:0!important
}
body.terminal-mode .workspace[data-market-watch="collapsed"] .left-sidebar{display:none!important}
body.terminal-mode .left-sidebar .sidebar-title{padding:15px 12px 10px}
body.terminal-mode .left-sidebar .search-box{flex:0 0 auto;margin:8px 10px}
body.terminal-mode .left-sidebar .market-categories{flex:0 0 auto;flex-wrap:wrap}
body.terminal-mode .left-sidebar .market-controls{flex:0 0 auto}
body.terminal-mode .left-sidebar .market-list{
 display:block;flex:1 1 0;min-height:0!important;max-height:none!important;
 overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin
}
body.terminal-mode .left-sidebar .market-row{width:100%;min-width:0;max-width:none}
body.terminal-mode .left-sidebar .sidebar-bottom{margin-top:auto;flex:0 0 auto}
body.terminal-mode .right-sidebar{
 grid-column:-2;display:block!important;overflow-y:auto!important;overflow-x:hidden;
 padding:12px 13px;scrollbar-width:thin;border-left:1px solid var(--stroke);
 border-top:none;background:var(--shell)
}
body.terminal-mode .workspace[data-analysis-panel="collapsed"] .right-sidebar{display:none!important}
body.terminal-mode .center-pane{
 grid-column:1;display:flex!important;flex-direction:column;
 overflow:hidden!important;background:var(--shell);min-width:0!important
}
body.terminal-mode .workspace[data-market-watch="open"] .center-pane{grid-column:2}
body.terminal-mode .center-pane .instrument-header{
 flex:0 0 auto;height:64px!important;min-height:0!important;
 padding:8px 14px;gap:12px;flex-wrap:nowrap
}
body.terminal-mode .instrument-main{min-width:0;gap:9px}
body.terminal-mode .instrument-main .asset-titles{min-width:0}
body.terminal-mode .instrument-main .asset-titles>span{max-width:190px;overflow:hidden;text-overflow:ellipsis}
body.terminal-mode .instrument-price{flex:0 0 auto;min-width:0}
body.terminal-mode .instrument-price strong{font-size:17px}
body.terminal-mode .instrument-stats{gap:11px}
.best-quote-panel{
 flex:0 0 auto;display:flex;gap:5px;
 min-width:0;max-width:210px;
}
.best-quote-side{
 padding:5px 8px;border:1px solid var(--stroke);border-radius:7px;
 display:flex;flex-direction:column;min-width:0;gap:4px
}
.best-quote-side small{font-size:8px;letter-spacing:.45px;white-space:nowrap}
.best-quote-side strong{font:750 11px 'IBM Plex Mono',monospace;white-space:nowrap}
.best-quote-side.bid{border-color:rgba(57,206,163,.3);background:rgba(55,210,160,.06)}
.best-quote-side.bid small,.best-quote-side.bid strong{color:var(--green)}
.best-quote-side.ask{border-color:rgba(241,102,129,.32);background:rgba(240,100,126,.06)}
.best-quote-side.ask small,.best-quote-side.ask strong{color:var(--red)}
body.terminal-mode .center-pane .chart-toolbar{
 flex:0 0 auto;min-height:45px!important;height:45px!important;
 padding:4px 9px;gap:5px;display:flex;flex-wrap:nowrap!important;overflow:visible!important
}
body.terminal-mode .center-pane .timeframes{flex:0 0 auto;gap:1px}
body.terminal-mode .center-pane .timeframes button{padding:6px 7px}
body.terminal-mode .center-pane .toolbar-menu{flex:0 0 auto;min-width:0}
body.terminal-mode .center-pane .toolbar-button{font-size:10px;padding:6px}
body.terminal-mode .center-pane .toolbar-icon{width:28px;height:30px;min-width:28px;flex:0 0 auto;font-size:17px}
body.terminal-mode .center-pane .chart-space{
 min-height:0!important;height:auto!important;max-height:none!important;display:flex!important;
 flex:1 1 0!important;overflow:hidden!important
}
body.terminal-mode .center-pane .draw-tools{
 min-height:0;height:100%;max-height:none;overflow-y:auto;
 overscroll-behavior:contain;scrollbar-width:none;flex:0 0 39px;
 width:39px;gap:6px;padding-top:10px
}
body.terminal-mode .center-pane .draw-button{width:33px;height:33px;flex:0 0 auto}
body.terminal-mode .center-pane .chart-inner{
 display:flex!important;flex-direction:column;min-height:0!important;
 height:100%!important;flex:1 1 0!important;overflow:hidden!important
}
body.terminal-mode .center-pane .ohlc-strip{flex:0 0 auto;min-height:25px;height:auto;padding:5px 7px 0}
body.terminal-mode .center-pane .legend-strip{flex:0 0 auto;min-height:21px;padding:3px 7px}
body.terminal-mode .center-pane .chart-holder{
 flex:1 1 0!important;height:auto!important;min-height:100px!important;
 max-height:none!important;overflow:hidden!important
}
body.terminal-mode .center-pane .chart-host{height:100%!important;width:100%!important}
body.terminal-mode .center-pane .rsi-panel{flex:0 0 95px!important;height:95px!important;min-height:0!important}
body.terminal-mode .center-pane .rsi-panel.hidden{display:none!important}
body.terminal-mode .center-pane .chart-footer{
 flex:0 0 24px!important;height:24px!important;min-height:0!important;
 padding:2px 7px;font-size:9px;gap:10px
}
.candle-countdown{color:var(--green);font-weight:800;white-space:nowrap}
.terminal-rangebar{
 display:flex;align-items:center;justify-content:space-between;min-width:0;gap:9px;
 flex:0 0 38px;height:38px;border-top:1px solid var(--stroke);
 padding:0 10px;background:var(--shell)
}
.range-presets{flex:1;min-width:0;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.range-presets::-webkit-scrollbar{display:none}
.range-presets button,.range-tools button{
 flex:0 0 auto;background:transparent;color:var(--muted);border:1px solid transparent;
 border-radius:5px;font:750 10px 'IBM Plex Mono',monospace;min-height:27px;
 padding:4px 7px
}
.range-presets button.selected,.range-tools button.active{color:var(--green);background:var(--mintwash);border-color:rgba(63,216,163,.22)}
.range-tools{flex:0 0 auto;display:flex;gap:5px;align-items:center;min-width:0}
.range-tools .terminal-clock{font:9px 'IBM Plex Mono',monospace;color:var(--muted);white-space:nowrap;margin-left:5px}
.chart-attribution{font:9px 'DM Sans',sans-serif;color:var(--muted);white-space:nowrap;text-decoration:none}
.chart-attribution:hover{color:var(--green)}
body.terminal-mode .bottom-panel{
 display:none!important;height:185px!important;min-height:0!important;
 flex:0 0 185px!important;overflow:hidden
}
body.terminal-mode.terminal-events-open .bottom-panel{display:block!important}
body.terminal-mode .bottom-panel .bottom-title{height:37px}
body.terminal-mode .bottom-panel .table-scroller{height:calc(100% - 37px)!important;overflow:auto}
body.terminal-mode .terminal-mobile-dock{display:none}
body.terminal-mode .ad-placement-banner,body.terminal-mode .supporters-public,
body.terminal-mode .seo-overview,body.terminal-mode .footer{display:none!important}
.terminal-info-modal{width:min(510px,100%);max-height:calc(100dvh - 28px);overflow-y:auto}
.terminal-info-modal h2{font-size:22px;margin:9px 0 16px}
.terminal-info-modal p{font-size:12px;line-height:1.75}
.terminal-info-modal a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.terminal-info-links{display:flex;flex-direction:column;gap:9px;border:1px solid var(--stroke);border-radius:9px;padding:12px 14px;margin:15px 0}
.terminal-info-links a{font-size:12px}
body.terminal-mode .modal-backdrop{z-index:2000}
@media(min-width:731px) and (max-width:1199px){
 body.terminal-mode .workspace{grid-template-columns:minmax(0,1fr)!important}
 body.terminal-mode .workspace[data-market-watch="open"]{grid-template-columns:170px minmax(0,1fr)!important}
 body.terminal-mode .right-sidebar{
   position:absolute;right:0;top:0;bottom:0;
   width:min(335px,85vw)!important;z-index:31;
   box-shadow:-14px 0 28px rgba(0,0,0,.36);border-left:1px solid var(--stroke)
 }
 body.terminal-mode .left-sidebar{grid-column:1}
 body.terminal-mode .center-pane{grid-column:1}
 body.terminal-mode .workspace[data-market-watch="open"] .center-pane{grid-column:2}
 body.terminal-mode .instrument-stats{gap:8px}
 body.terminal-mode .instrument-stats div:last-child{display:none}
 body.terminal-mode .topnav{display:none}
 body.terminal-mode .topbar{gap:8px}
}
@media(min-width:731px) and (max-width:870px){
 body.terminal-mode .brand-title small{display:none}
 body.terminal-mode .header-actions .session-tag{display:none}
 body.terminal-mode .instrument-stats{display:none}
 body.terminal-mode .best-quote-panel{display:none}
 body.terminal-mode .chart-toolbar{gap:3px}
 body.terminal-mode .chart-toolbar .toolbar-icon{min-width:25px;width:25px}
 body.terminal-mode .chart-toolbar .toolbar-button{font-size:9px}
}
@media(max-width:730px){
 body.terminal-mode .topbar{flex:0 0 53px!important;height:53px!important;min-height:53px!important;padding:5px 8px}
 body.terminal-mode .topbar .terminal-side-toggles{display:none}
 body.terminal-mode .topbar .topnav{display:none}
 body.terminal-mode .app-shell{width:100%;height:100dvh;overflow:hidden}
 body.terminal-mode .workspace,body.terminal-mode .workspace[data-market-watch="open"],
 body.terminal-mode .workspace[data-analysis-panel="collapsed"]{
   display:block!important;flex:1 1 0!important;height:auto!important;
   min-height:0!important;overflow:hidden!important;width:100%!important;
 }
 body.terminal-mode .workspace .left-sidebar,body.terminal-mode .workspace .right-sidebar{display:none!important}
 body.terminal-mode .workspace .center-pane{
   display:flex!important;height:100%!important;min-height:0!important;width:100%!important;
   max-height:none!important;overflow:hidden!important
 }
 body.terminal-mode .workspace[data-mobile-view="markets"] .center-pane,
 body.terminal-mode .workspace[data-mobile-view="analysis"] .center-pane,
 body.terminal-mode .workspace[data-mobile-view="depth"] .center-pane{display:none!important}
 body.terminal-mode .workspace[data-mobile-view="markets"] .left-sidebar{
   display:flex!important;height:100%!important;width:100%!important;
   overflow:hidden!important;border-right:0
 }
 body.terminal-mode .workspace[data-mobile-view="analysis"] .right-sidebar,
 body.terminal-mode .workspace[data-mobile-view="depth"] .right-sidebar{
   display:block!important;height:100%!important;width:100%!important;
   overflow-y:auto!important;min-height:0!important;border-left:0;grid-column:auto;
   padding:15px;position:relative;inset:auto;box-shadow:none
 }
 body.terminal-mode .workspace[data-mobile-view="depth"] .right-sidebar>*:not(#orderBookPanel){display:none!important}
 body.terminal-mode .workspace[data-mobile-view="analysis"] .right-sidebar>#orderBookPanel{display:none!important}
 body.terminal-mode .left-sidebar .search-box{margin:10px 12px!important}
 body.terminal-mode .left-sidebar .sidebar-title{display:flex!important;padding:17px 13px 10px}
 body.terminal-mode .left-sidebar .market-categories{
   display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;
   flex:0 0 auto;flex-wrap:nowrap;gap:7px;padding:9px 12px;
   width:100%;max-width:100%;scrollbar-width:none
 }
 body.terminal-mode .left-sidebar .market-controls{display:flex!important;padding:9px 12px}
 body.terminal-mode .left-sidebar .market-list{
   flex:1 1 0;display:block!important;max-height:none!important;min-height:0;
   overflow-y:auto!important;overflow-x:hidden!important;padding:0!important
 }
 body.terminal-mode .left-sidebar .market-row{
   width:100%!important;min-width:0!important;max-width:none!important;
   min-height:56px;padding:10px 13px!important;border-radius:0;
   border:0;border-bottom:1px solid var(--stroke);border-left:3px solid transparent
 }
 body.terminal-mode .left-sidebar .market-row.active{border-left-color:var(--green)}
 body.terminal-mode .left-sidebar .market-row .star{display:block}
 body.terminal-mode .left-sidebar .sidebar-bottom{display:flex!important;flex:0 0 auto}
 body.terminal-mode .center-pane .instrument-header{
   display:flex!important;flex:0 0 61px!important;height:61px!important;
   min-height:0!important;padding:7px 9px;gap:7px
 }
 body.terminal-mode .center-pane .instrument-main{flex:1 1 0;min-width:0;gap:7px}
 body.terminal-mode .center-pane .instrument-main .asset-icon{height:28px;width:28px;font-size:15px}
 body.terminal-mode .center-pane .instrument-main .asset-titles h1{font-size:14px}
 body.terminal-mode .center-pane .instrument-main .asset-titles>span{font-size:9px;max-width:145px}
 body.terminal-mode .center-pane .instrument-main .spot-pill{display:none!important}
 body.terminal-mode .center-pane .instrument-price{display:flex!important;flex-direction:column;gap:2px}
 body.terminal-mode .center-pane .instrument-price strong{font-size:14px}
 body.terminal-mode .center-pane .instrument-price .change-label{font-size:9px}
 body.terminal-mode .center-pane .best-quote-panel,body.terminal-mode .center-pane .instrument-stats{display:none!important}
 body.terminal-mode .center-pane .chart-toolbar{
   flex:0 0 77px!important;display:flex!important;height:77px!important;min-height:0!important;
   flex-wrap:wrap!important;align-items:center;align-content:center;
   gap:3px 4px;padding:5px 6px!important
 }
 body.terminal-mode .center-pane .timeframes{
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
   width:100%;flex:0 0 100%;gap:3px;order:0
 }
 body.terminal-mode .center-pane .timeframes button{min-height:30px;padding:4px;font-size:10px}
 body.terminal-mode .center-pane .toolbar-menu{order:1}
 body.terminal-mode .center-pane #autoSmcBtn{order:2}
 body.terminal-mode .center-pane .toolbar-spacer{order:3;flex:1}
 body.terminal-mode .center-pane .toolbar-icon{order:4;flex:0 0 25px;width:25px;min-width:25px;height:28px;font-size:16px}
 body.terminal-mode .center-pane #csvBtn,body.terminal-mode .center-pane #shareChartBtn{display:none}
 body.terminal-mode .center-pane .chart-space{flex:1 1 0!important;min-height:0!important;height:auto!important}
 body.terminal-mode .center-pane .draw-tools{width:34px;flex:0 0 34px;padding-top:7px;gap:4px}
 body.terminal-mode .center-pane .draw-button{height:30px;width:30px;font-size:17px}
 body.terminal-mode .center-pane .chart-inner{flex:1 1 0!important;min-height:0!important;height:100%!important}
 body.terminal-mode .center-pane .ohlc-strip{
   flex:0 0 auto;padding:4px 5px 0;font-size:8px;gap:3px 7px
 }
 body.terminal-mode .center-pane .legend-strip{
   flex:0 0 auto;padding:2px 5px;font-size:8px;gap:3px 7px
 }
 body.terminal-mode .center-pane .legend-strip>span:nth-child(n+4){display:none}
 body.terminal-mode .center-pane .chart-holder{
   flex:1 1 0!important;height:auto!important;min-height:85px!important;max-height:none!important
 }
 body.terminal-mode .center-pane .rsi-panel{flex:0 0 70px!important;height:70px!important;min-height:0!important}
 body.terminal-mode .center-pane .chart-footer{
   flex:0 0 24px!important;height:24px!important;min-height:0!important;font-size:8px
 }
 body.terminal-mode .center-pane .chart-footer>span:nth-child(2){display:none}
 body.terminal-mode .center-pane .terminal-rangebar{
   flex:0 0 40px;height:40px;min-height:0;padding:0 5px;gap:4px
 }
 body.terminal-mode .range-presets{gap:1px;scrollbar-width:none}
 body.terminal-mode .range-presets button{padding:5px 6px;font-size:9px}
 body.terminal-mode .range-tools button{font-size:9px;padding:4px 6px}
 body.terminal-mode .range-tools #terminalInfoBtn,
 body.terminal-mode .range-tools .chart-attribution,body.terminal-mode .range-tools .terminal-clock{display:none}
 body.terminal-mode .bottom-panel{flex:0 0 150px!important;height:150px!important}
 body.terminal-mode.terminal-events-open .bottom-panel{display:block!important}
 body.terminal-mode .bottom-panel .table-scroller{height:calc(100% - 37px)!important}
 body.terminal-mode .terminal-mobile-dock{
   display:flex!important;flex:0 0 54px;height:54px;min-height:54px;
   border-top:1px solid var(--stroke);background:var(--panel);
   padding:3px 4px max(3px,env(safe-area-inset-bottom));gap:3px;
   justify-content:space-around;align-items:stretch;z-index:60
 }
 body.terminal-mode .terminal-mobile-dock button{
   display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;
   gap:2px;background:transparent;border:1px solid transparent;border-radius:7px;
   font-weight:750;font-size:10px;color:var(--muted);padding:3px 1px
 }
 body.terminal-mode .terminal-mobile-dock button span{font-size:19px;line-height:1}
 body.terminal-mode .terminal-mobile-dock button.selected{color:var(--green);border-color:rgba(50,202,155,.2);background:var(--mintwash)}
 body.terminal-mode .modal-backdrop{z-index:2000}
}
@media(max-width:380px){
 body.terminal-mode .topbar{padding-inline:5px}
 body.terminal-mode .brand-title small{display:none}
 body.terminal-mode .center-pane .instrument-header{flex-basis:57px!important;height:57px!important}
 body.terminal-mode .center-pane .instrument-main .asset-titles>span{max-width:118px}
 body.terminal-mode .center-pane .chart-toolbar{flex-basis:72px!important;height:72px!important}
 body.terminal-mode .center-pane .rsi-panel{flex-basis:60px!important;height:60px!important}
 body.terminal-mode .center-pane .legend-strip>span:nth-child(n+3){display:none}
 body.terminal-mode .center-pane .chart-footer>span:first-child{max-width:54%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.terminal-mode .center-pane .chart-footer .candle-countdown{font-size:9px}
 body.terminal-mode .center-pane .chart-space{min-height:0!important}
 body.terminal-mode .terminal-mobile-dock{height:49px;min-height:49px;flex-basis:49px}
}
@media(max-height:610px){
 body.terminal-mode .center-pane .rsi-panel{flex-basis:55px!important;height:55px!important}
 body.terminal-mode .center-pane .chart-holder{min-height:65px!important}
 body.terminal-mode .center-pane .legend-strip>span:nth-child(n+4){display:none}
}


/* TradingFiew terminal v2.6 — persistent left sidebar with selectable market tools.
 * Markets never move to SMC column. Trend/Book are alternatives, not stacked cards. */
.left-panel-tabs{
 flex:0 0 41px;min-height:41px;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:3px;padding:5px 7px;border-bottom:1px solid var(--stroke);
 background:var(--panel)
}
.left-panel-tabs button{
 min-width:0;min-height:29px;padding:5px 3px;
 font:800 10px 'DM Sans',sans-serif;
 color:var(--muted);background:transparent;
 border:1px solid transparent;border-radius:7px;
 white-space:nowrap
}
.left-panel-tabs button.active,.left-panel-tabs button[aria-selected="true"]{
 color:var(--green);border-color:rgba(51,204,156,.23);background:var(--mintwash)
}
.left-panel-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:-1px}
.left-panel-content{display:flex;flex:1 1 0;min-height:0;min-width:0;overflow:hidden}
.left-panel-pane{
 flex:1 1 0;min-height:0;min-width:0;
 width:100%;display:none;flex-direction:column;overflow-x:hidden;overflow-y:auto;
 overscroll-behavior:contain;scrollbar-width:thin
}
.left-panel-pane.active:not([hidden]){display:flex}
.left-panel-pane[hidden]{display:none!important}
.market-watch-pane{overflow:hidden}
body.terminal-mode .market-watch-pane .sidebar-title{padding:13px 12px 9px}
body.terminal-mode .market-watch-pane .search-box{margin:8px 10px}
body.terminal-mode .market-watch-pane .market-list{
 flex:1 1 0!important;max-height:none!important;
 min-height:0!important;overflow-y:auto!important;
 scrollbar-width:thin
}
body.terminal-mode .left-trends-pane,body.terminal-mode .left-book-pane{
 padding:7px;min-height:0;overflow-y:auto;overflow-x:hidden
}
body.terminal-mode .left-trends-pane .market-panel,
body.terminal-mode .left-book-pane .market-panel{
 margin:0;flex:0 0 auto;padding:9px 7px;
 border:0;background:transparent;border-radius:0;
 width:100%;min-width:0
}
body.terminal-mode .left-trends-pane .timeframe-trends-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:6px
}
body.terminal-mode .left-trends-pane .timeframe-trend:first-child{
 grid-column:1/-1;display:grid;grid-template-columns:40px minmax(0,1fr);
 grid-template-rows:1fr 1fr
}
body.terminal-mode .left-trends-pane .timeframe-trend:first-child .tf-name{grid-row:1/-1}
body.terminal-mode .left-trends-pane .timeframe-trend{padding:8px 5px;gap:5px}
body.terminal-mode .left-trends-pane .tf-direction{font-size:10px}
body.terminal-mode .left-trends-pane .tf-detail{font-size:8px}
body.terminal-mode .left-book-pane .orderbook-level{font-size:9px;gap:2px;padding-inline:1px}
body.terminal-mode .left-book-pane .orderbook-colheads{gap:2px;font-size:7px}
body.terminal-mode .left-book-pane .orderbook-tag{display:block;margin-top:3px}
body.terminal-mode .left-book-pane .market-panel-note{font-size:10px}
body.terminal-mode .left-book-pane .orderbook-spread strong{font-size:15px}
body.terminal-mode .left-book-pane .orderbook-balance{gap:4px;font-size:8px}
body.terminal-mode .right-sidebar .analysis-section{margin-top:13px}
body.terminal-mode .right-sidebar .analysis-section:first-of-type{margin-top:7px}
@media(min-width:1200px){
 body.terminal-mode .workspace{grid-template-columns:minmax(0,1fr) minmax(270px,290px)}
 body.terminal-mode .workspace[data-market-watch="open"]{
  grid-template-columns:minmax(210px,230px) minmax(0,1fr) minmax(270px,290px)
 }
 body.terminal-mode .workspace[data-market-watch="open"][data-analysis-panel="collapsed"]{
  grid-template-columns:minmax(210px,230px) minmax(0,1fr)
 }
}
@media(min-width:731px) and (max-width:1199px){
 body.terminal-mode .workspace[data-market-watch="open"]{
  grid-template-columns:minmax(170px,205px) minmax(0,1fr)!important
 }
}
@media(max-width:730px){
 body.terminal-mode .left-panel-tabs{flex:0 0 46px;min-height:46px;padding:6px 10px;gap:7px}
 body.terminal-mode .left-panel-tabs button{font-size:12px;min-height:32px}
 body.terminal-mode .workspace[data-mobile-view="depth"] .right-sidebar{display:none!important}
 body.terminal-mode .workspace[data-mobile-view="depth"] .left-sidebar{
  display:flex!important;height:100%!important;width:100%!important;
  overflow:hidden!important;border-right:0
 }
 body.terminal-mode .left-panel-content{flex:1 1 0;min-height:0}
 body.terminal-mode .left-panel-pane{height:100%}
 body.terminal-mode .left-trends-pane,.terminal-mode .left-book-pane{padding:11px 13px}
 body.terminal-mode .left-trends-pane .timeframe-trends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.terminal-mode .left-trends-pane .timeframe-trend:first-child{grid-column:auto;display:flex}
 body.terminal-mode .left-trends-pane .timeframe-trend:first-child .tf-name{grid-row:auto}
 body.terminal-mode .left-trends-pane .tf-direction{font-size:12px}
 body.terminal-mode .left-trends-pane .tf-detail{font-size:10px}
 body.terminal-mode .left-book-pane .orderbook-level{font-size:11px;gap:5px;min-height:28px}
 body.terminal-mode .left-book-pane .orderbook-colheads{font-size:9px;gap:5px}
 body.terminal-mode .market-watch-pane .market-row{display:flex!important}
}
@media(max-width:350px){
 body.terminal-mode .left-trends-pane .timeframe-trends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.terminal-mode .left-trends-pane .timeframe-trend:first-child{grid-column:1/-1;display:grid}
}


/* TradingFiew Alerts v1 — optional breakout research, local alert rules,
   notification permission and one-tap pause/delete. */
.alerts-header{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 8px;border:1px solid rgba(68,204,173,.35);border-radius:8px;background:var(--panel);color:var(--text);font:800 11px 'DM Sans',sans-serif;white-space:nowrap}
.alerts-header:hover{color:var(--green);border-color:var(--green)}
.alerts-header>span:first-child{font-size:20px;line-height:1;color:var(--green)}
.alerts-header .alerts-count{background:var(--mintwash);border-radius:9px;padding:2px 5px;color:var(--green);font-size:10px}
.alerts-header:focus-visible,.alerts-modal button:focus-visible,.smc-manage-alerts:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.alerts-modal{max-width:670px;max-height:calc(100dvh - 28px);overflow-y:auto!important;overscroll-behavior:contain;padding:23px 24px}
.alerts-modal h2{font-size:23px;line-height:1.25;margin:5px 0 10px}
.alerts-modal h2 span{font:800 11px 'IBM Plex Mono',monospace;color:var(--green);vertical-align:middle}
.alerts-modal h3{font-size:14px;margin:0 0 10px}
.alerts-explain{font-size:12px!important;color:var(--muted);line-height:1.7!important;margin:0 0 15px}
.alerts-setting-row{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:7px 0;padding:9px 11px;border:1px solid var(--stroke);border-radius:8px;background:var(--shell)}
.alerts-setting{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:700;line-height:1.4;color:var(--text);cursor:pointer}
.alerts-setting input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--green)}
.alerts-setting-row button{background:var(--panel);color:var(--green);border:1px solid var(--stroke);padding:7px 10px;border-radius:6px;white-space:nowrap;font-size:11px;font-weight:800}
.alerts-permission{padding:3px 2px 10px;margin:0;color:var(--muted);font-size:11px!important;line-height:1.6}
.alerts-new{border:1px solid var(--stroke);border-radius:11px;padding:14px;background:var(--panel);margin:5px 0 18px}
.alerts-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.alerts-form-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.25px}
.alerts-form-grid label[hidden]{display:none!important}
.alerts-form-grid select,.alerts-form-grid input{display:block;width:100%;min-width:0;padding:10px;background:var(--shell);border:1px solid var(--stroke);border-radius:7px;color:var(--text);font:12px 'DM Sans',sans-serif}
.alerts-form-grid select:focus,.alerts-form-grid input:focus{border-color:var(--green);outline:none}
.alerts-repeat{font-size:11px;line-height:1.5;margin:9px 0}
.alerts-repeat input:disabled{opacity:.45}
.alert-add{margin-top:12px;min-height:39px;width:100%;padding:9px 13px;border:none;border-radius:8px;background:var(--green);color:#0b241c;font-size:12px;font-weight:900}
.alerts-scope-note{color:var(--muted);font-size:10px!important;line-height:1.6;margin:12px 0 0}
.alerts-manager-heading,.alerts-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.alerts-manager-heading h3,.alerts-history-heading h3{margin:0}
.alerts-manager-heading h3 span{color:var(--green);font-size:10px;font-weight:700;margin-left:7px}
.alerts-manager-heading button,.alerts-history-heading button{font-size:10px;font-weight:800;padding:7px 9px;border:1px solid rgba(241,100,124,.3);background:rgba(239,80,114,.05);color:var(--red);border-radius:7px}
.alerts-manager-heading button:disabled{opacity:.35}
.alerts-list{max-height:330px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:7px;scrollbar-width:thin}
.alert-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--stroke);border-radius:9px;padding:9px 10px;background:var(--shell);min-width:0}
.alert-item.muted{opacity:.66}
.alert-item-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.alert-item-body strong{font:800 12px 'IBM Plex Mono',monospace;color:var(--text)}
.alert-item-body span{color:var(--text);font-size:11px;overflow-wrap:anywhere}
.alert-item-body small{color:var(--muted);font:9px 'IBM Plex Mono',monospace}
.alert-item-actions{display:flex;gap:5px;flex:0 0 auto;align-items:center}
.alert-item-actions button{padding:8px 9px;border:1px solid var(--stroke);border-radius:7px;background:var(--panel);color:var(--text);font-weight:750;font-size:10px}
.alert-item-actions button:hover{border-color:var(--green);color:var(--green)}
.alert-item-actions button.alert-remove{border-color:rgba(237,104,127,.26);color:var(--red)}
.alert-item-actions button.alert-remove:hover{background:rgba(237,104,127,.13)}
.alert-history-entry{display:flex;gap:10px;padding:8px 2px;border-bottom:1px solid var(--stroke);font-size:10px;line-height:1.6}
.alert-history-entry small{flex:0 0 82px;color:var(--muted);font:9px 'IBM Plex Mono',monospace}
.alert-history-entry span{overflow-wrap:anywhere}
.alerts-history-list{max-height:180px;overflow-y:auto;scrollbar-width:thin}
.alerts-empty{color:var(--muted);font-size:11px;margin:8px 0 15px}
.alerts-legal{background:var(--shell);border-left:2px solid var(--orange);padding:11px;margin:14px 0 0;font-size:10px!important;line-height:1.65;color:var(--muted)}
.smc-breakout-panel{border:1px solid rgba(65,212,163,.21);border-radius:10px;padding:11px 12px;margin:14px 0;background:var(--panel);min-width:0}
.smc-breakout-head{display:flex;align-items:center;justify-content:space-between;gap:5px}
.smc-breakout-head h3{color:var(--text);font-size:13px;margin:3px 0 0;line-height:1.3}
.smc-alert-toggle{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:800;white-space:nowrap;color:var(--muted);cursor:pointer}
.smc-alert-toggle input{accent-color:var(--green);width:14px;height:14px;margin:0}
.smc-breakout-explain{font-size:10px!important;line-height:1.65!important;color:var(--muted);margin:11px 0 9px!important}
.smc-breakout-status{font:10px/1.5 'IBM Plex Mono',monospace;color:var(--muted);border:1px solid var(--stroke);border-radius:7px;padding:8px;background:var(--shell)}
.smc-breakout-result{margin:9px 0;border:1px solid var(--stroke);border-radius:8px;padding:11px;background:var(--shell);display:flex;flex-direction:column;gap:7px}
.smc-breakout-result[hidden]{display:none!important}
.smc-breakout-result>strong{font-size:11px;line-height:1.45}
.smc-breakout-result p{margin:0;font-size:10px!important;line-height:1.6!important;color:var(--muted)}
.smc-breakout-action{display:flex;justify-content:space-between;gap:5px;align-items:center}
.smc-breakout-action strong{font-size:12px}
.smc-breakout-action span{font:9px 'IBM Plex Mono',monospace;color:var(--muted)}
.smc-up{color:var(--green)}.smc-down{color:var(--red)}
.smc-manage-alerts{width:100%;margin-top:9px;min-height:34px;border:1px solid var(--stroke);border-radius:7px;background:var(--shell);color:var(--text);font-size:11px;font-weight:800}
.smc-manage-alerts:hover{color:var(--green);border-color:var(--green)}
.smc-breakout-legal{font-size:9px!important;color:var(--muted);line-height:1.6!important;margin:8px 0 0!important}
.smc-breakout-banner{position:fixed;right:13px;bottom:15px;z-index:1900;width:min(420px,calc(100vw - 26px));max-height:min(55dvh,400px);overflow-y:auto;background:var(--panel);border:1px solid var(--green);border-radius:11px;padding:13px 15px;box-shadow:0 12px 40px rgba(0,0,0,.38)}
.smc-breakout-banner.hidden{display:none!important}
.smc-banner-title{display:flex;align-items:center;justify-content:space-between;gap:7px}
.smc-banner-title strong{color:var(--green);font-size:12px}
.smc-banner-title button{background:var(--shell);color:var(--text);border:1px solid var(--stroke);border-radius:6px;padding:4px 8px}
.smc-breakout-banner p{font-size:11px;line-height:1.65;margin:7px 0;color:var(--text)}
.smc-breakout-banner small{font-size:10px;line-height:1.6;color:var(--muted)}
@media(max-width:1160px){.alerts-header .alerts-header-name{display:none}.alerts-header{padding:5px 7px;gap:3px}}
@media(max-width:730px){
 .alerts-header{min-width:34px;min-height:32px;padding:5px}
 .alerts-header .alerts-count{font-size:9px;padding:1px 3px}
 .alerts-modal{padding:16px 13px;max-height:calc(100dvh - 20px)}
 .alerts-modal h2{font-size:20px}
 .alerts-form-grid{gap:8px}
 .alerts-setting-row{padding:8px 9px}
 .alerts-setting-row button{padding:7px;font-size:10px}
 .alert-item{align-items:flex-start;padding:9px}
 .alert-item-actions{flex-direction:column;gap:4px}
 .alert-item-actions button{min-height:32px;min-width:55px}
 .smc-breakout-banner{bottom:63px}
}
@media(max-width:350px){
 .alerts-header{padding:3px;min-width:25px}
 .alerts-header>span:first-child{font-size:17px}
 .alerts-header .alerts-count{padding:1px 2px}
 .alerts-form-grid{grid-template-columns:1fr}
 .alerts-modal{padding:15px 10px}
}


/* One-tap chart alert tool: preserve chart's real interactive data. */
.draw-button.alert-draw-button{font-size:19px;line-height:1}
.draw-button.alert-draw-button.active,.draw-button.alert-draw-button[aria-pressed="true"]{
 background:rgba(234,186,97,.17)!important;color:#f1c677!important;
 outline:1px solid rgba(241,198,119,.6);
}
.chart-host.chart-alert-mode,.chart-host.chart-alert-mode canvas{cursor:crosshair!important}
.chart-alert-mode~.zone-overlay{pointer-events:none}
.alerts-chart-help{
 font-size:11px!important;line-height:1.75!important;
 background:rgba(231,182,88,.09);border:1px solid rgba(229,179,92,.28);
 color:var(--text);border-radius:8px;padding:9px 11px;margin:12px 0 4px
}
.alerts-chart-help strong{color:#dfad50}
body.terminal-mode .chart-alert-mode{touch-action:pan-x pan-y}
body.terminal-mode .draw-button.alert-draw-button{flex:0 0 auto}
@media(max-width:730px){
 .alerts-chart-help{font-size:10px!important}
 body.terminal-mode .chart-alert-mode~.zone-overlay{pointer-events:none}
 body.terminal-mode .center-pane .draw-tools .alert-draw-button{
  width:30px;height:32px;font-size:17px
 }
}


/* TradingFiew draggable chart alert context menus v3 */
.alert-line-handles{
 position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden
}
.alert-hit-level[hidden]{display:none!important}
.alert-hit-level{
 position:absolute;left:0;width:calc(100% - 55px);
 height:19px;transform:translateY(-50%);
 pointer-events:auto;cursor:grab;touch-action:none;
 background:transparent;display:flex;align-items:center;gap:4px;
 padding-left:6px;user-select:none;-webkit-user-select:none;outline:none;
 border:0;border-top:1px solid transparent;
}
.alert-hit-level:hover,.alert-hit-level:focus-visible{
 background:rgba(226,174,78,.07);
 border-top-color:rgba(242,194,108,.52)
}
.alert-hit-level.dragging{cursor:grabbing;background:rgba(226,174,78,.14);border-top-color:rgba(242,194,108,.85)}
.alert-handle-grip{
 display:grid;place-items:center;border-radius:4px;min-width:14px;
 height:14px;padding:1px;color:#d7a957;background:rgba(22,30,43,.9);
 font:800 12px sans-serif;line-height:1
}
.alert-handle-label{
 white-space:nowrap;border-radius:4px;padding:3px 5px;
 background:rgba(34,31,26,.93);border:1px solid rgba(230,183,104,.38);
 color:#f1ca85;font:800 10px 'IBM Plex Mono',monospace;
 line-height:1.05;box-shadow:0 2px 8px rgba(0,0,0,.18);
 pointer-events:none
}
body.light .alert-handle-grip{background:rgba(252,248,238,.95);color:#9e6b1a}
body.light .alert-handle-label{background:#fff5e2;color:#855918}
.chart-context-menu{
 position:fixed;z-index:2150;display:flex;flex-direction:column;gap:1px;
 background:#1c2027;color:#f0f3f9;border:1px solid #383f4b;
 border-radius:9px;width:min(325px,calc(100vw - 14px));
 max-height:calc(100dvh - 16px);overflow-y:auto;
 box-shadow:0 18px 45px rgba(0,0,0,.42);padding:5px;
 overscroll-behavior:contain
}
.chart-context-menu.hidden{display:none!important}
.chart-context-menu button[hidden]{display:none!important}
.chart-context-title{
 color:#abb4c6;font:800 10px 'IBM Plex Mono',monospace;
 padding:9px 10px 7px;border-bottom:1px solid #393f49;
 overflow-wrap:anywhere
}
.chart-context-menu button{
 display:flex;align-items:center;text-align:left;min-height:36px;flex:0 0 auto;
 background:transparent;color:inherit;border:0;border-radius:5px;
 padding:8px 11px;font:650 12px 'DM Sans',sans-serif;line-height:1.3
}
.chart-context-menu button:hover,.chart-context-menu button:focus-visible{
 background:#343c49;color:#fff;outline:none
}
.chart-context-menu button#ctxAlertAdd{color:#e5c087;font-weight:850}
.chart-context-menu button.ctx-alert-delete{color:#ef8c9c}
.chart-context-menu button.ctx-alert-delete:hover{background:rgba(246,94,120,.12)}
.chart-context-divider{height:1px;background:#373d47;margin:5px 4px}
.alert-edit-card{width:min(440px,calc(100vw - 18px));max-height:calc(100dvh - 24px);overflow-y:auto!important;padding:21px}
.alert-edit-card h2{font-size:21px;margin:7px 0 4px}
.alert-edit-caption{margin:4px 0 17px!important;font:800 12px 'IBM Plex Mono',monospace;color:var(--green)}
.alert-edit-card form{display:flex;flex-direction:column;gap:10px}
.alert-edit-card form>label:not(.alert-edit-check){font-size:11px;font-weight:800;color:var(--muted)}
.alert-edit-card form>input,.alert-edit-card form>select{
 width:100%;background:var(--shell);color:var(--text);border:1px solid var(--stroke);
 border-radius:8px;padding:11px;font-size:13px;font-family:'IBM Plex Mono',monospace
}
.alert-edit-card form>input:focus,.alert-edit-card form>select:focus{outline:2px solid var(--green)}
.alert-edit-check{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;padding:3px 0;cursor:pointer}
.alert-edit-check input{accent-color:var(--green);width:17px;height:17px;flex:0 0 17px}
.alert-edit-actions{display:flex;gap:9px;margin-top:9px}
.alert-edit-actions button{flex:1;min-height:40px;border-radius:8px;padding:9px;font-size:12px;font-weight:900}
.alert-edit-remove{background:rgba(235,102,129,.1);color:var(--red);border:1px solid rgba(235,102,129,.4)}
.alert-edit-save{background:var(--green);color:#092319;border:1px solid var(--green)}
.alert-edit-note{font-size:10px!important;line-height:1.7;color:var(--muted);border-top:1px solid var(--stroke);padding-top:11px;margin-top:15px}
@media(max-width:730px){
 .chart-context-menu button{min-height:42px;font-size:13px}
 .alert-edit-card{padding:15px}
 .alert-hit-level{height:23px;width:calc(100% - 48px)}
 .alert-handle-label{font-size:9px}
 .alert-handle-grip{height:16px}
}


/* TradingFiew compact chart and menu refinements v3.1 */
.alert-icon-svg{width:18px;height:18px;flex:0 0 auto;display:block;stroke:currentColor}
.alerts-header .alert-icon-svg{width:19px;height:19px;color:var(--green)}
.draw-button.alert-draw-button{display:flex;align-items:center;justify-content:center}
.draw-button.alert-draw-button .alert-icon-svg{width:19px;height:19px}
.toolbar-icon .alert-icon-svg{width:17px;height:17px}
.alert-hit-level{height:16px}
.alert-hit-level[hidden]{display:none!important}
.alert-hit-level:focus-visible .alert-handle-label{outline:2px solid #f0c177}
.chart-context-menu button{min-width:0;overflow-wrap:anywhere}
.chart-context-menu:focus-visible{outline:2px solid var(--green)}
.alert-edit-card form>input,.alert-edit-card form>select{max-width:100%;box-sizing:border-box}
@media(max-width:730px){
 .alert-icon-svg{width:17px;height:17px}
 .alerts-header .alert-icon-svg{width:17px;height:17px}
 .draw-button.alert-draw-button .alert-icon-svg{width:17px;height:17px}
 .alert-hit-level{height:20px}
 .chart-context-menu{max-width:calc(100vw - 12px)}
 .chart-context-title{font-size:10px}
}
@media(max-width:730px) and (max-height:700px){
 body.terminal-mode .topbar{flex-basis:47px!important;height:47px!important;min-height:47px!important}
 body.terminal-mode .center-pane .instrument-header{flex-basis:50px!important;height:50px!important;min-height:0!important;padding-block:4px}
 body.terminal-mode .center-pane .instrument-main .asset-titles>span{font-size:8px}
 body.terminal-mode .center-pane .chart-toolbar{flex-basis:65px!important;height:65px!important;min-height:0!important;padding:3px 5px!important}
 body.terminal-mode .center-pane .chart-toolbar .timeframes button{min-height:25px}
 body.terminal-mode .center-pane .draw-tools{padding-top:3px!important;gap:2px!important}
 body.terminal-mode .center-pane .draw-button{height:27px!important;min-height:27px!important;width:29px}
 body.terminal-mode .center-pane .ohlc-strip{min-height:18px!important;font-size:8px;padding-top:2px}
 body.terminal-mode .center-pane .legend-strip{min-height:16px!important;font-size:8px}
 body.terminal-mode .center-pane .rsi-panel{flex-basis:47px!important;height:47px!important;min-height:0!important}
 body.terminal-mode .center-pane .chart-footer{flex-basis:21px!important;height:21px!important}
 body.terminal-mode .center-pane .terminal-rangebar{flex-basis:31px!important;height:31px!important;min-height:0!important}
 body.terminal-mode .terminal-mobile-dock{flex-basis:45px!important;height:45px!important;min-height:45px!important}
 body.terminal-mode .terminal-mobile-dock button span{font-size:17px}
 body.terminal-mode .terminal-mobile-dock button{font-size:9px;gap:0}
 body.terminal-mode .center-pane .chart-holder{min-height:95px!important}
}
@media(max-width:350px){
 body.terminal-mode .topbar .header-actions{gap:2px!important}
 body.terminal-mode .alerts-header{min-width:28px;padding-inline:3px}
 body.terminal-mode .brand-title{font-size:11px}
 body.terminal-mode .center-pane .chart-toolbar .toolbar-icon{min-width:22px!important;width:22px!important}
 body.terminal-mode .range-presets button{padding-inline:4px!important}
 body.terminal-mode .range-tools button{padding-inline:4px!important}
}


/* TradingFiew synchronized RSI and native mobile layout v4
 * Keep the viewport still while allowing price/time interaction and
 * independently scrolling panels. Respect phone notches and soft-keyboard. */
html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.terminal-mode{
 height:100vh!important;height:100dvh!important;
 max-height:100dvh!important;overflow:hidden!important;
 overscroll-behavior:contain
}
body.terminal-mode .app-shell{
 height:100vh!important;height:100dvh!important;
 max-height:100dvh!important;min-height:0!important;min-width:0;
 overflow:hidden!important
}
body.terminal-mode .workspace,body.terminal-mode .chart-inner,
body.terminal-mode .center-pane,body.terminal-mode .chart-space{min-height:0!important;min-width:0!important}
body.terminal-mode .theme-switch{
 display:inline-flex!important;align-items:center;justify-content:center;gap:5px;
 min-width:73px!important;width:auto!important;min-height:34px;padding:6px 9px!important;
 border:1px solid rgba(85,184,160,.45);border-radius:8px;
 font:800 11px 'DM Sans',sans-serif;white-space:nowrap;
 background:rgba(31,135,115,.12);color:#75e0c2
}
body.terminal-mode .theme-switch:hover{border-color:var(--green);background:var(--mintwash)}
body.terminal-mode .theme-switch #themeIcon{font-size:16px;line-height:1}
body.terminal-mode .theme-switch #themeLabel{font-size:11px;line-height:1}
body.light.terminal-mode .theme-switch{background:#fff4d5;border-color:#d9a84b;color:#855714}
body.light.terminal-mode .theme-switch:hover{background:#f5e9be}
body.light.terminal-mode .left-panel-tabs{background:#f3f6fc}
body.light.terminal-mode .header-actions .alerts-header{background:#eff8f6}
body.light.terminal-mode .chart-holder,body.light.terminal-mode .draw-tools{background:#f7f9fc}
body.light.terminal-mode .draw-button{color:#59697f}
body.light.terminal-mode .ohlc-strip,body.light.terminal-mode .legend-strip{color:#53647c}
body.light.terminal-mode .terminal-rangebar{background:#f7f9fc}
body.light.terminal-mode .right-sidebar{background:#f7f9fc}
body.light.terminal-mode .terminal-mobile-dock{background:#fff}
.indicator-group-heading{
 font:800 9px 'IBM Plex Mono',monospace;letter-spacing:.65px;
 text-transform:uppercase;color:var(--muted);margin:5px 0 2px;
 padding:8px 4px 3px;border-top:1px solid var(--stroke)
}
.indicator-price-note{
 font-size:10px;color:var(--muted);line-height:1.4;margin:5px 4px 3px;
 padding:5px 3px;border-top:1px solid var(--stroke)
}
.legend-strip span.indicator-hidden,.ohlc-strip span.indicator-hidden{display:none!important}
#indicatorMenu{max-height:min(70dvh,480px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#indicatorMenu label{min-height:31px;display:flex;align-items:center;gap:6px;white-space:normal}
#indicatorMenu input{accent-color:var(--green);flex:none}
body.terminal-mode #rsiHost{width:100%;height:100%;min-height:0}
body.terminal-mode .rsi-panel{overflow:hidden!important}
body.terminal-mode .chart-holder{overflow:hidden!important}
@media(max-width:1050px){
 body.terminal-mode .topbar .session-tag{display:none!important}
 body.terminal-mode .theme-switch{min-width:66px!important}
}
@media(max-width:730px){
 body.terminal-mode .topbar{
  padding-left:max(6px,env(safe-area-inset-left))!important;
  padding-right:max(6px,env(safe-area-inset-right))!important;
  gap:4px!important;
 }
 body.terminal-mode .topbar .brand{flex:0 1 auto;min-width:75px}
 body.terminal-mode .topbar .brand-title{font-size:12px}
 body.terminal-mode .topbar .brand-title small{display:none}
 body.terminal-mode .topbar .header-actions{margin-left:auto;gap:4px!important;flex:0 0 auto;min-width:0}
 body.terminal-mode .topbar #shareBtn,
 body.terminal-mode .topbar #workspaceBtn,
 body.terminal-mode .topbar #refreshBtn{display:none!important}
 body.terminal-mode .topbar #alertsBtn,
 body.terminal-mode .topbar #donateBtn,
 body.terminal-mode .topbar #themeBtn{display:inline-flex!important}
 body.terminal-mode .topbar #donateBtn{max-width:78px;min-width:0;padding-inline:5px}
 body.terminal-mode .topbar .donate-crypto{display:none}
 body.terminal-mode .theme-switch{min-width:60px!important;padding:6px!important;gap:4px}
 body.terminal-mode .theme-switch #themeLabel{font-size:10px}
 body.terminal-mode .theme-switch #themeIcon{font-size:15px}
 body.terminal-mode .chart-toolbar{max-width:100%;overflow:visible!important}
 body.terminal-mode .toolbar-menu{position:relative}
 body.terminal-mode #indicatorMenu{
  position:fixed;top:calc(50px + env(safe-area-inset-top));left:6px;right:6px;
  width:auto;max-width:none;max-height:min(75dvh,500px);
  z-index:180;box-shadow:0 18px 35px rgba(0,0,0,.35)
 }
 body.terminal-mode .chart-space,.chart-inner{overflow:hidden!important}
 body.terminal-mode .rsi-panel{touch-action:pan-x pan-y}
 body.terminal-mode .terminal-mobile-dock{
  padding-bottom:max(3px,env(safe-area-inset-bottom))!important;
  flex-basis:calc(54px + env(safe-area-inset-bottom))!important;
  height:calc(54px + env(safe-area-inset-bottom))!important;
  min-height:0!important
 }
 body.terminal-mode .modal-card{max-height:calc(100dvh - 22px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:730px) and (max-height:710px){
 body.terminal-mode .topbar{flex:0 0 46px!important;height:46px!important;min-height:46px!important}
 body.terminal-mode .center-pane .instrument-header{flex:0 0 48px!important;height:48px!important;min-height:0!important}
 body.terminal-mode .center-pane .chart-toolbar{flex:0 0 67px!important;height:67px!important;min-height:0!important;padding:3px 5px!important}
 body.terminal-mode .center-pane .chart-toolbar .timeframes button{min-height:26px}
 body.terminal-mode .center-pane .draw-tools{padding-top:3px!important;gap:2px!important}
 body.terminal-mode .center-pane .draw-button{height:28px!important;min-height:28px!important;width:29px}
 body.terminal-mode .center-pane .rsi-panel{flex:0 0 60px!important;height:60px!important;min-height:0!important}
 body.terminal-mode .center-pane .chart-footer{flex:0 0 21px!important;height:21px!important;min-height:0!important}
 body.terminal-mode .center-pane .terminal-rangebar{flex:0 0 32px!important;height:32px!important;min-height:0!important}
 body.terminal-mode .terminal-mobile-dock{
  flex-basis:calc(44px + env(safe-area-inset-bottom))!important;
  height:calc(44px + env(safe-area-inset-bottom))!important;
 }
 body.terminal-mode .terminal-mobile-dock button{font-size:9px;gap:1px}
 body.terminal-mode .terminal-mobile-dock button span{font-size:17px}
 body.terminal-mode .center-pane .chart-holder{min-height:90px!important}
}
@media(max-width:350px){
 body.terminal-mode .topbar .brand-symbol{width:26px;height:26px}
 body.terminal-mode .topbar .brand-title{font-size:10px}
 body.terminal-mode .topbar #donateBtn{max-width:65px}
 body.terminal-mode .topbar #donateBtn span.donate-symbol{font-size:13px}
 body.terminal-mode .theme-switch{min-width:55px!important}
 body.terminal-mode .alerts-header{min-width:27px}
}
@media(orientation:landscape) and (max-height:500px){
 body.terminal-mode .topbar{flex:0 0 39px!important;height:39px!important;min-height:39px!important}
 body.terminal-mode .center-pane .instrument-header{flex:0 0 39px!important;height:39px!important;min-height:0!important}
 body.terminal-mode .center-pane .rsi-panel{flex:0 0 45px!important;height:45px!important}
 body.terminal-mode .center-pane .chart-toolbar{flex:0 0 38px!important;height:38px!important}
 body.terminal-mode .center-pane .chart-holder{min-height:60px!important}
}


/* A shared time cursor physically connects price candles and RSI across panes. */
body.terminal-mode .chart-inner{position:relative}
.synced-crosshair-guide{
 position:absolute;width:1px;min-height:0;display:block;pointer-events:none;
 z-index:9;opacity:.88;
 background:repeating-linear-gradient(to bottom,#6d8dab 0px,#6d8dab 4px,transparent 4px,transparent 8px)
}
.synced-crosshair-guide[hidden]{display:none!important}
body.light .synced-crosshair-guide{
 opacity:.75;
 background:repeating-linear-gradient(to bottom,#6480a4 0px,#6480a4 4px,transparent 4px,transparent 8px)
}


/* TradingFiew explicit price-axis badge and unified cursor v5.
   The axis shows ONE current quote; the solid line stays in the same
   Lightweight Charts series coordinate with no duplicate native label. */
.live-price-badge{
  position:absolute;right:0;z-index:10;display:flex;
  min-height:26px;box-sizing:border-box;align-items:center;justify-content:center;
  padding:3px 5px;transform:translateY(-50%);
  background:#20d4bc;color:#062b29;border-left:2px solid #81f1de;
  border-radius:4px 0 0 4px;
  font:850 12px/1.15 'IBM Plex Mono',monospace;
  letter-spacing:-.25px;font-variant-numeric:tabular-nums;
  box-shadow:0 2px 8px rgba(0,0,0,.24);
  white-space:nowrap;pointer-events:none;user-select:none;
  -webkit-user-select:none
}
.live-price-badge[hidden]{display:none!important}
.live-price-badge[data-fresh="false"]{
  background:#f1bd63;color:#3e2a09;border-left-color:#ffe0a1
}
.live-price-badge[data-range="above"],
.live-price-badge[data-range="below"]{
  background:#deb061;color:#38260a;border-left-color:#f9e0a8
}
body.light .live-price-badge[data-fresh="true"][data-range="visible"]{
  background:#008d82;color:#fff;border-left-color:#36bfae
}
@media(max-width:730px){
 .live-price-badge{font-size:11px;min-height:25px;padding-inline:3px;border-left-width:1px}
}
@media(max-width:350px){
 .live-price-badge{font-size:10px;letter-spacing:-.4px;min-height:22px}
}

/* TradingView-style axis marker: live price on the actual line, candle timer below. */
.live-price-badge{
  flex-direction:column;align-items:stretch;justify-content:center;gap:0;
  transform:none;min-height:38px;padding:2px 3px 3px;
  border:0;border-radius:3px 0 0 3px;
  background:#098b75;color:#fff;text-align:center;line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.live-price-badge .axis-price{
  display:block;min-width:0;font:800 12px/16px 'IBM Plex Mono',monospace;
  white-space:nowrap;letter-spacing:-.3px;
}
.live-price-badge .axis-countdown{
  display:block;min-width:0;font:750 11px/14px 'IBM Plex Mono',monospace;
  white-space:nowrap;letter-spacing:.15px;
}
.live-price-badge[data-direction="down"][data-fresh="true"][data-range="visible"]{
  background:#f23645;color:#fff;
}
.live-price-badge[data-direction="up"][data-fresh="true"][data-range="visible"]{
  background:#098b75;color:#fff;
}
body.light .live-price-badge[data-direction="down"][data-fresh="true"][data-range="visible"]{
  background:#d92f40;color:#fff;
}
body.light .live-price-badge[data-direction="up"][data-fresh="true"][data-range="visible"]{
  background:#087e70;color:#fff;
}
@media(max-width:730px){
  .live-price-badge{min-height:36px;padding:2px 2px 2px}
  .live-price-badge .axis-price{font-size:11px;line-height:15px}
  .live-price-badge .axis-countdown{font-size:10px;line-height:13px}
}
@media(max-width:350px){
  .live-price-badge .axis-price{font-size:10px;letter-spacing:-.45px}
  .live-price-badge .axis-countdown{font-size:10px}
}

/* United States economic calendar and pre/post-release values. */
.us-news-shortcut{display:inline-flex;align-items:center;flex:0 0 auto;justify-content:center;white-space:nowrap;padding:7px 9px;border-radius:6px;border:1px solid rgba(102,161,237,.35);background:rgba(61,116,196,.12);color:#c4d8ff;font:800 10px 'IBM Plex Mono',monospace}
.us-news-shortcut:hover{color:#fff;border-color:#80b7f6}
.us-economic-calendar{max-width:1920px;margin:14px auto 0;padding:16px;background:var(--panel);border:1px solid var(--stroke);border-radius:12px;scroll-margin-top:76px}
.us-economic-heading{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start}
.us-economic-heading h2{font-size:clamp(18px,2.4vw,24px);color:var(--text);margin:4px 0 6px}
.us-economic-heading p{font-size:12px;line-height:1.6;color:var(--muted);max-width:830px;margin:0}
.us-economic-actions{display:flex;flex-wrap:wrap;gap:9px}
.us-economic-actions button,.us-economic-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;background:var(--elev);border:1px solid var(--stroke);border-radius:7px;color:var(--text);font:750 11px 'DM Sans',sans-serif}
.us-economic-actions button:hover,.us-economic-actions a:hover{border-color:var(--green);color:var(--green)}
.us-economic-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:11px;padding:12px 0}
#usCalendarUpdated{margin-left:auto}
.us-economic-widget{width:100%;min-height:510px;border-radius:9px;overflow:hidden;background:var(--bg);border:1px solid var(--stroke)}
.us-economic-widget>p{padding:30px 10px;color:var(--muted);text-align:center}
.us-economic-widget .tradingview-widget-container,.us-economic-widget .tradingview-widget-container__widget{width:100%;height:100%;min-height:510px}
.us-calendar-attribution{color:var(--muted);font-size:11px;line-height:1.6;margin:11px 0 0}
.us-calendar-attribution a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
@media(max-width:730px){.us-economic-calendar{margin:9px 7px;padding:10px;scroll-margin-top:65px}.us-economic-widget,.us-economic-widget .tradingview-widget-container,.us-economic-widget .tradingview-widget-container__widget{min-height:610px}.us-economic-actions{width:100%}.us-economic-actions a,.us-economic-actions button{flex:1;min-width:134px}.us-economic-legend{gap:5px 12px}#usCalendarUpdated{margin-left:0}.us-news-shortcut{font-size:9px;padding:6px 7px}}

/* Drag handles for editable price levels / alerts. Non-line gestures are unchanged. */
.chart-host.chart-line-hover,.chart-host.chart-line-hover canvas{cursor:grab!important}
.chart-host.chart-line-dragging,.chart-host.chart-line-dragging canvas{cursor:grabbing!important;touch-action:none!important}
.chart-host.chart-line-dragging{user-select:none;-webkit-user-select:none}
body.terminal-mode .chart-line-dragging{touch-action:none!important}
.alert-hit-level{touch-action:none;min-height:23px}
@media(max-width:730px){.alert-hit-level{min-height:30px}}

/* ── TradingView-style economic calendar launcher ──
   Native <dialog> lives in the browser top layer, not in the flex layout.
   This fixes the 2026-11-17 regression where the calendar reduced chart height. */
body.terminal-mode .us-calendar-trigger{cursor:pointer}
body.terminal-mode .center-pane #usCalendarChartBtn{
  display:inline-flex!important;align-items:center;justify-content:center;
  color:#b7cbeb;flex-shrink:0;
}
body.terminal-mode .center-pane #usCalendarChartBtn.active,
.us-news-shortcut.active,.topnav .us-calendar-trigger.active{
  color:var(--green)!important;background:var(--mintwash)!important
}
.us-news-shortcut{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1}
.us-news-shortcut svg,.us-calendar-chart-trigger svg{flex:none}
dialog.us-calendar-dialog{
  position:fixed;inset:0;
  margin:auto;
  width:min(1050px,calc(100vw - 42px));
  max-width:none;
  height:min(735px,calc(100dvh - 44px));
  max-height:calc(100dvh - 24px);
  min-height:0;
  padding:15px 18px 12px;
  overflow:hidden;
  border:1px solid #304760;
  border-radius:12px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 26px 90px rgba(0,0,0,.65);
  z-index:9999;
}
dialog.us-calendar-dialog:not([open]){display:none!important}
dialog.us-calendar-dialog[open]{
  display:flex!important;flex-direction:column;
  gap:0;
  isolation:isolate;
}
dialog.us-calendar-dialog::backdrop{background:rgba(3,9,20,.76);backdrop-filter:blur(3px)}
body.light dialog.us-calendar-dialog{border-color:#c9d6e7}
body.light dialog.us-calendar-dialog::backdrop{background:rgba(21,35,58,.5)}
dialog.us-calendar-dialog .us-economic-heading{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex:0 0 auto;min-height:47px;
}
dialog.us-calendar-dialog .us-economic-heading-title{min-width:0}
dialog.us-calendar-dialog .us-economic-heading .eyebrow{
  color:var(--green);font-size:9px;letter-spacing:1.3px;font-weight:800
}
dialog.us-calendar-dialog .us-economic-heading h2{
  font-size:17px;line-height:1.3;margin:3px 0 0;overflow-wrap:anywhere
}
dialog.us-calendar-dialog .us-economic-actions{flex:0 0 auto;gap:6px;display:flex}
dialog.us-calendar-dialog .us-economic-actions button,
dialog.us-calendar-dialog .us-economic-actions a{
  min-height:34px;border-radius:6px;padding:6px 10px;white-space:nowrap
}
dialog.us-calendar-dialog .us-economic-actions .us-calendar-close{
  width:34px;min-width:34px;padding:0;font-size:24px;line-height:1;
  background:var(--elev);border:1px solid var(--stroke);color:var(--text)
}
dialog.us-calendar-dialog .us-economic-actions .us-calendar-close:hover{
  border-color:var(--red);color:var(--red)
}
dialog.us-calendar-dialog .us-calendar-description{
  flex:0 0 auto;margin:5px 0 0;font-size:11px;line-height:1.4;color:var(--muted)
}
dialog.us-calendar-dialog .us-economic-legend{
  flex:0 0 auto;padding:7px 0 9px;gap:7px 15px;font-size:10px
}
dialog.us-calendar-dialog #usCalendarUpdated{margin-left:auto;font-variant-numeric:tabular-nums}
dialog.us-calendar-dialog .us-economic-widget{
  flex:1 1 0;min-height:0;height:auto;width:100%;
  overflow:hidden;border-radius:7px;background:var(--bg)
}
dialog.us-calendar-dialog .us-economic-widget .tradingview-widget-container,
dialog.us-calendar-dialog .us-economic-widget .tradingview-widget-container__widget{
  display:block;width:100%!important;height:100%!important;min-height:0!important;
}
dialog.us-calendar-dialog .us-economic-widget iframe{max-width:100%;border:0}
dialog.us-calendar-dialog .us-calendar-attribution{
  flex:0 0 auto;margin:8px 0 0;font-size:10px;line-height:1.35
}
dialog.us-calendar-dialog .us-calendar-provider-error{
  color:var(--red);font-size:12px;padding:14px;
}
@media(max-width:730px){
  body.terminal-mode .center-pane .chart-toolbar{
    column-gap:3px!important
  }
  body.terminal-mode .center-pane #usCalendarChartBtn{
    width:26px!important;min-width:26px!important;flex:0 0 26px!important;
  }
  body.terminal-mode .center-pane #csvBtn,
  body.terminal-mode .center-pane #shareChartBtn{display:none!important}
  dialog.us-calendar-dialog{
    width:calc(100vw - 12px);height:calc(100dvh - 18px);
    max-height:calc(100dvh - 18px);padding:9px 10px;
    border-radius:9px
  }
  dialog.us-calendar-dialog .us-economic-heading h2{font-size:15px}
  dialog.us-calendar-dialog .us-economic-heading .eyebrow{font-size:8px}
  dialog.us-calendar-dialog .us-economic-actions button,
  dialog.us-calendar-dialog .us-economic-actions a{min-height:32px;padding:6px 7px;font-size:10px}
  dialog.us-calendar-dialog .us-economic-actions .us-calendar-close{
    width:32px;min-width:32px
  }
  dialog.us-calendar-dialog .us-economic-legend{padding:6px 0}
  dialog.us-calendar-dialog .us-calendar-description{font-size:10px}
  dialog.us-calendar-dialog .us-calendar-attribution{font-size:9px;line-height:1.3}
  body.terminal-mode .us-news-shortcut span{display:none}
}
@media(max-width:440px){
  body.terminal-mode .center-pane #chartSnapshotBtn{display:none!important}
  body.terminal-mode .center-pane #fitBtn{display:none!important}
  body.terminal-mode .center-pane .chart-toolbar .toolbar-menu .toolbar-button,
  body.terminal-mode .center-pane #autoSmcBtn{font-size:9px!important;padding-inline:4px!important}
  body.terminal-mode .center-pane .chart-toolbar .toolbar-icon{width:26px!important;min-width:26px!important;flex:0 0 26px!important}
  dialog.us-calendar-dialog .us-calendar-description{display:none}
  dialog.us-calendar-dialog .us-economic-legend{gap:5px 9px;font-size:9px}
  dialog.us-calendar-dialog .us-economic-heading{gap:6px}
}
@media(max-width:365px){
  dialog.us-calendar-dialog .us-economic-heading .eyebrow{font-size:7px}
  dialog.us-calendar-dialog .us-economic-actions a{display:none}
}
@media(max-height:540px) and (orientation:landscape){
  dialog.us-calendar-dialog{height:calc(100dvh - 10px);max-height:calc(100dvh - 10px);padding-block:6px}
  dialog.us-calendar-dialog .us-calendar-description,
  dialog.us-calendar-dialog .us-economic-legend span:nth-child(2){display:none}
}

/* Responsive terminal actions: never remove a feature without an accessible overflow path. */
.chart-more-wrap{display:none;position:relative;align-items:center}
.chart-more-menu[hidden]{display:none!important}
.chart-more-menu{
  position:absolute;right:0;top:calc(100% + 7px);z-index:500;
  display:flex;flex-direction:column;gap:2px;
  width:min(244px,calc(100vw - 16px));max-width:calc(100vw - 16px);
  background:var(--panel2);border:1px solid var(--stroke);border-radius:9px;
  box-shadow:0 16px 45px rgba(0,0,0,.48);padding:6px;
}
.chart-more-menu button{
  display:flex;align-items:center;min-height:39px;width:100%;gap:7px;
  border:0;border-radius:6px;background:transparent;color:var(--text);
  text-align:left;padding:8px 11px;font:700 11px 'DM Sans',sans-serif;
}
.chart-more-menu button:hover,.chart-more-menu button:focus-visible{
  background:var(--mintwash);color:var(--green)
}
/* Mid-size windows need a real wrapping toolbar, not a single overflowing row. */
@media(min-width:731px) and (max-width:1099px){
  body.terminal-mode .center-pane .chart-toolbar{
    flex:0 0 auto!important;height:auto!important;min-height:45px!important;
    flex-wrap:wrap!important;align-content:center;row-gap:3px!important;
    padding-block:5px!important;
  }
  body.terminal-mode .center-pane .chart-toolbar .toolbar-icon{
    flex-shrink:0;min-width:27px
  }
}
/* Mobile keeps a two-row toolbar; secondary actions live in the More menu. */
@media(max-width:730px){
  body.terminal-mode .center-pane .chart-more-wrap{
    display:inline-flex!important;order:5;flex:0 0 26px;min-width:26px;
  }
  body.terminal-mode .center-pane #chartMoreBtn{
    display:inline-flex;align-items:center;justify-content:center;
    width:26px!important;min-width:26px!important;height:28px!important;
    font-size:24px!important;line-height:1;
    padding:0!important
  }
  body.terminal-mode .center-pane .chart-more-menu{top:calc(100% + 9px)}
  body.terminal-mode .center-pane .chart-toolbar .toolbar-icon:focus-visible{
    outline-offset:1px
  }
}
@media(max-width:440px){
  body.terminal-mode .center-pane #refreshChartBtn{display:none!important}
}
@media(max-width:370px){
  body.terminal-mode .center-pane #autoSmcBtn{padding-inline:2px!important}
  body.terminal-mode .center-pane .toolbar-menu .toolbar-button{padding-inline:2px!important}
}

/* Mobile AdSense invariant: 'hidden' must beat every reserved placement rule.
   Prevent even an empty ad slot from consuming space in mobile Analysis. */
.ad-placement[hidden],body .ad-placement[aria-hidden="true"]{display:none!important;min-height:0!important;height:0!important;padding:0!important;margin:0!important;border:0!important}
@media(max-width:730px), (pointer:coarse){
  body .ad-placement{display:none!important;min-height:0!important;height:0!important;padding:0!important;margin:0!important;border:0!important}
}

/* Precision drawing engine: durable SVG geometries + live previews, never blocks chart hit testing. */
.drawing-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:hidden;contain:layout paint}
.drawing-overlay .draw-guide{stroke-dasharray:5 4;stroke-width:1.5;fill:none;vector-effect:non-scaling-stroke}
.drawing-overlay .draw-fib{stroke-dasharray:5 4;stroke-width:1;vector-effect:non-scaling-stroke}
.drawing-overlay .draw-anchor{stroke-width:1.6;vector-effect:non-scaling-stroke}
.drawing-overlay .draw-tag{font:700 11px 'IBM Plex Mono',monospace;paint-order:stroke;stroke:#0b1220;stroke-width:3px;stroke-linejoin:round}
.drawing-overlay .draw-box{fill:rgba(60,157,255,.08);stroke:#62aeff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.drawing-overlay .draw-range-box{fill:rgba(75,199,157,.11);stroke:#47d7ab;stroke-width:1.2;vector-effect:non-scaling-stroke}
.drawing-overlay .draw-vertical{stroke:#c2a0fa;stroke-dasharray:4 4;stroke-width:1.4;vector-effect:non-scaling-stroke}
.chart-host.chart-drawing-active,.chart-host.chart-drawing-active canvas{cursor:crosshair!important;touch-action:none!important}
.draw-button[data-draw="fibext"]{font-size:12px!important;font-weight:800;letter-spacing:-.9px}
.draw-button[data-draw="rectangle"],.draw-button[data-draw="measure"],.draw-button[data-draw="vertical"]{font-size:21px!important}
.draw-tools:has(.draw-button.active) .draw-button.active{box-shadow:inset 0 0 0 1px currentColor}
@media(max-width:730px){.drawing-overlay .draw-tag{font-size:10px}.draw-button[data-draw="fibext"]{font-size:11px!important}}

/* Context toolbar integrated below chart actions. Never obscure candles. */
.drawing-options-bar{display:flex;align-items:center;gap:6px;padding:5px 8px;
 flex:0 0 auto;min-height:39px;width:100%;min-width:0;
 border-bottom:1px solid var(--stroke);background:var(--panel);
 position:relative;z-index:16;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.drawing-options-bar.hidden{display:none!important}
.drawing-options-name{flex:0 0 auto;color:var(--text);font:700 11px 'DM Sans',sans-serif;
 max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}
.drawing-option-label{display:flex;align-items:center;gap:5px;white-space:nowrap;
 color:var(--muted);font:700 10px 'DM Sans',sans-serif;flex:0 0 auto}
.drawing-options-bar input[type=color]{width:30px;height:26px;cursor:pointer;border:1px solid var(--stroke);
 padding:2px;border-radius:5px;background:var(--elev)}
.drawing-options-bar select,.drawing-options-bar .drawing-opt-btn{
 background:var(--elev);border:1px solid var(--stroke);border-radius:6px;
 padding:5px 7px;min-height:29px;color:var(--text);font:700 10px 'DM Sans',sans-serif;white-space:nowrap}
.drawing-options-bar .drawing-opt-btn:hover,.drawing-options-bar select:hover{border-color:var(--green)}
.drawing-options-bar .drawing-opt-btn[aria-pressed=true]{background:var(--mintwash);color:var(--green)}
.drawing-options-bar .drawing-opt-danger{color:#ff8294;border-color:rgba(230,96,121,.4)}
.drawing-options-bar #drawingDeselectBtn{margin-left:auto;min-width:29px}
body.terminal-mode .center-pane .selected-drawing-bar{display:none!important}
.drawing-overlay .draw-channel-fill{fill:rgba(65,171,245,.10);pointer-events:none}
.drawing-overlay .draw-channel-mid{stroke-dasharray:3 5}
.drawing-overlay .draw-fib-level{vector-effect:non-scaling-stroke}
.drawing-overlay .draw-selected-anchor{filter:drop-shadow(0 0 3px rgba(255,215,105,.55))}
@media(max-width:730px){
 .drawing-options-bar{gap:5px;padding:4px 5px;min-height:37px}
 .drawing-options-name{max-width:110px;font-size:10px}
 .drawing-options-bar .drawing-opt-btn,.drawing-options-bar select{min-height:30px;font-size:10px}
 .drawing-options-bar input[type=color]{height:28px}
}

/* Four distinct Fibonacci tools, finger-safe on mobile. */
.draw-button[data-draw="fibchannel"],.draw-button[data-draw="fibtime"]{
 font-family:'DM Sans',sans-serif;font-size:16px;font-weight:700;letter-spacing:-1.4px;
}
.drawing-overlay .fib-channel-level,.drawing-overlay .fib-time-zone{
 vector-effect:non-scaling-stroke;
}
.drawing-overlay .fib-time-zone{stroke-dasharray:4 4}
.drawing-overlay .fib-channel-shade{fill:rgba(122,106,237,.075);stroke:none}
@media(max-width:730px){
 .draw-button[data-draw="fibchannel"],.draw-button[data-draw="fibtime"]{font-size:15px;min-height:32px;}
}

/* Real scheduled market-price notifications: alert manager + responsive toolbar. */
.scheduled-price-panel{border:1px solid var(--stroke);border-radius:11px;
 background:var(--elev);padding:15px;margin:14px 0 16px;scroll-margin-top:22px}
.scheduled-price-heading h3{font-size:17px;margin:4px 0 5px;color:var(--text)}
.scheduled-price-heading h3 span{font-size:12px;color:var(--green);margin-left:5px}
.scheduled-price-heading p,.scheduled-price-note{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0}
.scheduled-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:12px}
.scheduled-price-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;font-weight:700;color:var(--text)}
.scheduled-price-grid input,.scheduled-price-grid select{box-sizing:border-box;min-width:0;width:100%;
 min-height:38px;background:var(--panel);color:var(--text);padding:8px 10px;
 border:1px solid var(--stroke);border-radius:7px;outline-offset:2px;font:600 12px 'DM Sans',sans-serif;color-scheme:dark}
body.light .scheduled-price-grid input,body.light .scheduled-price-grid select{color-scheme:light}
.scheduled-price-grid label[hidden]{display:none!important}
.scheduled-price-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:11px 0 5px}
.scheduled-price-controls button{min-height:36px;padding:8px 11px;border:1px solid var(--stroke);
 border-radius:7px;background:var(--panel);color:var(--text);font:750 11px 'DM Sans',sans-serif;cursor:pointer}
.scheduled-price-controls #scheduledSaveBtn{background:var(--mintwash);color:var(--green);border-color:var(--green)}
.scheduled-price-controls button:hover{border-color:var(--green)}
.scheduled-price-controls button[hidden]{display:none!important}
.scheduled-price-settings{border-top:1px solid var(--stroke);margin-top:11px;padding-top:9px}
.scheduled-price-limit{font-size:10px;color:var(--muted)}
.scheduled-price-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 2px;max-height:330px;overflow-y:auto}
.scheduled-price-empty{font-size:11px;color:var(--muted);padding:12px 6px;margin:0}
.scheduled-price-item{display:flex;gap:10px;justify-content:space-between;align-items:center;
 background:var(--panel);border:1px solid var(--stroke);border-radius:8px;padding:10px}
.scheduled-price-description{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.scheduled-price-description strong{font-size:11px;color:var(--text)}
.scheduled-price-description span{font-size:11px;color:var(--green)}
.scheduled-price-description small{font-size:10px;line-height:1.4;color:var(--muted)}
.scheduled-price-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.scheduled-price-actions button{padding:6px 8px;border:1px solid var(--stroke);border-radius:6px;
 background:var(--elev);color:var(--text);font-size:10px;font-weight:700;cursor:pointer}
.scheduled-price-actions button:hover{border-color:var(--green)}
@media(max-width:730px){
 body.terminal-mode .center-pane #schedulePriceChartBtn{display:none!important}
 .scheduled-price-panel{padding:10px;margin:9px 0 11px}
 .scheduled-price-grid{gap:8px}
 .scheduled-price-item{align-items:flex-start;flex-direction:column}
 .scheduled-price-actions{width:100%}
}
@media(max-width:420px){.scheduled-price-grid{grid-template-columns:1fr}}


/* 2026-11 mobile drawing editor audit:
 * All relevant controls must remain in-viewport without horizontal scrolling.
 * 6 equal grid tracks => 3 complete equal controls per row; no offscreen action.
 * The chart below uses flex's remaining height and keeps touch interaction.
 */
@media(max-width:730px), (orientation:landscape) and (max-height:550px) and (min-width:731px) and (max-width:960px){
  body.terminal-mode .center-pane .drawing-options-bar{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr));
    grid-auto-flow:row;
    align-content:start;
    align-items:center;
    gap:5px 6px;
    box-sizing:border-box;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    flex:0 0 auto!important;
    padding:7px 8px;
    overflow-x:clip!important;
    overflow-y:visible!important;
    scrollbar-width:none;
  }
  body.terminal-mode .center-pane .drawing-options-bar.hidden{display:none!important}
  body.terminal-mode .center-pane .drawing-options-name{
    grid-row:1;grid-column:1/6;
    align-self:center;
    width:100%;max-width:none;min-width:0;
    margin:0;
    padding:0 3px;
    font-size:11px;line-height:1.35;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingDeselectBtn{
    grid-row:1;grid-column:6;
    margin:0;
    width:100%;
    min-width:0;
    min-height:34px;
    height:34px;
    font-size:18px;
    padding:0;
    justify-self:stretch;
  }
  body.terminal-mode .center-pane .drawing-option-label{
    grid-row:2;
    grid-column:span 2;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:space-between;
    gap:3px;
    width:100%;max-width:100%;min-width:0;
    margin:0;
    font-size:10px;
    line-height:1.2;
    white-space:normal;
  }
  body.terminal-mode .center-pane .drawing-option-label input[type=color],
  body.terminal-mode .center-pane .drawing-option-label select{
    box-sizing:border-box;
    width:100%;max-width:100%;min-width:0;
    height:34px;min-height:34px;
    padding:4px 5px;
    font-size:12px;
    color-scheme:dark;
    background:var(--elev);
  }
  body.terminal-mode .center-pane .drawing-option-label input[type=color]{
    padding:3px;
    cursor:pointer;
  }
  body.terminal-mode .center-pane .drawing-options-bar .drawing-opt-btn:not(#drawingDeselectBtn){
    grid-column:span 2;
    width:100%;min-width:0;
    min-height:36px;
    height:auto;
    padding:7px 3px;
    font-size:10.5px;
    line-height:1.15;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    touch-action:manipulation;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingRepairBtn:not([hidden]){
    grid-column:1/-1;
    min-height:34px;
  }
  body.terminal-mode .center-pane .drawing-options-bar button[hidden]{
    display:none!important;
  }
  body.terminal-mode .center-pane .drawing-options-bar :is(button,select,input):focus-visible{
    outline:2px solid var(--green);
    outline-offset:1px;
  }
  /* The drawing rail is intentionally vertical: make its overflow discoverable
     and keep symbols large enough to tap without a precise mouse pointer. */
  body.terminal-mode .center-pane .draw-tools{
    overflow-y:auto!important;
    overscroll-behavior-y:contain;
    scrollbar-width:thin!important;
    scrollbar-color:var(--muted) transparent;
    scroll-padding-block:12px;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }
  body.terminal-mode .center-pane .draw-button{
    width:31px;
    min-height:34px;
    height:34px;
    touch-action:manipulation;
  }
}
@media(max-width:380px){
  body.terminal-mode .center-pane .drawing-options-bar{
    padding:5px 6px;
    gap:4px;
  }
  body.terminal-mode .center-pane .drawing-option-label{font-size:9.5px}
  body.terminal-mode .center-pane .drawing-options-bar .drawing-opt-btn:not(#drawingDeselectBtn){
    min-height:34px;
    padding:5px 2px;
    font-size:10px;
  }
}
@media(max-width:730px) and (max-height:650px){
  /* Editing takes priority over optional studies and range presets on short screens.
     Restore studies automatically as soon as the selection bar closes. */
  body.terminal-mode .center-pane:has(.drawing-options-bar:not(.hidden)) .rsi-panel,
  body.terminal-mode .center-pane:has(.drawing-options-bar:not(.hidden)) .legend-strip,
  body.terminal-mode .center-pane:has(.drawing-options-bar:not(.hidden)) .terminal-rangebar{
    display:none!important;
  }
}
@media(orientation:landscape) and (max-height:550px) and (min-width:731px) and (max-width:960px){
  /* Rotated small phones need a full-width chart, not a 2-column desktop panel. */
  body.terminal-mode .topbar{
    flex:0 0 39px!important;height:39px!important;min-height:39px!important;
    padding:3px 10px!important;
  }
  body.terminal-mode .workspace,
  body.terminal-mode .workspace[data-market-watch="open"],
  body.terminal-mode .workspace[data-analysis-panel="collapsed"]{
    display:block!important;width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;
    flex:1 1 0!important;overflow:hidden!important;
  }
  body.terminal-mode .workspace .left-sidebar,
  body.terminal-mode .workspace .right-sidebar{display:none!important}
  body.terminal-mode .workspace .center-pane{
    display:flex!important;flex-direction:column!important;
    height:100%!important;width:100%!important;
    min-width:0!important;max-width:none!important;overflow:hidden!important;
  }
  body.terminal-mode .center-pane .instrument-header{display:none!important}
  body.terminal-mode .center-pane .chart-toolbar{
    flex:0 0 41px!important;height:41px!important;min-height:41px!important;
    padding:3px 9px!important;gap:4px!important;
    display:flex!important;flex-wrap:nowrap!important;
  }
  body.terminal-mode .center-pane .chart-space{
    flex:1 1 0!important;display:flex!important;
    height:auto!important;min-height:0!important;overflow:hidden!important;
  }
  body.terminal-mode .center-pane .chart-inner{
    flex:1 1 0!important;min-height:0!important;height:100%!important;
  }
  body.terminal-mode .center-pane .chart-holder{
    flex:1 1 0!important;min-height:75px!important;
    height:auto!important;max-height:none!important;
  }
  body.terminal-mode .center-pane .rsi-panel,
  body.terminal-mode .center-pane .legend-strip,
  body.terminal-mode .center-pane .terminal-rangebar{
    display:none!important;
  }
  body.terminal-mode .center-pane .draw-tools{
    min-height:0!important;overflow-y:auto!important;
  }
  body.terminal-mode .center-pane .chart-footer{
    flex:0 0 22px!important;height:22px!important;min-height:22px!important;
  }
  body.terminal-mode .terminal-mobile-dock{display:none!important}
}


/* Compact landscape smartphones: one full-width terminal, three concise rows of
 * drawing controls and a working navigation dock. Preserve candlestick space. */
@media(orientation:landscape) and (max-height:550px) and (min-width:731px) and (max-width:960px){
  body.terminal-mode .center-pane .drawing-options-bar{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr));
    align-items:center;
    gap:3px 5px;
    padding:4px 8px;
    width:100%;
    min-width:0;
    max-width:100%;
    overflow:hidden!important;
  }
  body.terminal-mode .center-pane .drawing-options-name{
    grid-row:1;grid-column:1/12;
    font-size:11px;line-height:1.2;
    white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingDeselectBtn{
    grid-row:1;grid-column:12;min-height:26px;height:26px;
    width:100%;font-size:15px;
  }
  body.terminal-mode .center-pane .drawing-option-label{
    grid-row:2;grid-column:span 4;
    display:flex;flex-direction:row;align-items:center;
    justify-content:flex-start;gap:5px;
    min-width:0;
    font-size:10px;
  }
  body.terminal-mode .center-pane .drawing-option-label :is(select,input[type=color]){
    flex:1 1 auto!important;
    width:auto!important;max-width:100%!important;min-width:0!important;
    height:28px!important;min-height:28px!important;
    padding:2px 5px!important;
    font-size:11px!important;
  }
  body.terminal-mode .center-pane .drawing-options-bar .drawing-opt-btn:not(#drawingDeselectBtn){
    grid-column:span 2;
    min-height:29px!important;height:29px!important;
    padding:3px 4px;
    font-size:10px;
    white-space:nowrap;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingRepairBtn:not([hidden]){
    grid-column:span 3;
  }
  body.terminal-mode .workspace[data-mobile-view="markets"] .center-pane,
  body.terminal-mode .workspace[data-mobile-view="analysis"] .center-pane,
  body.terminal-mode .workspace[data-mobile-view="depth"] .center-pane{
    display:none!important;
  }
  body.terminal-mode .workspace[data-mobile-view="markets"] .left-sidebar{
    display:flex!important;flex-direction:column;
    height:100%!important;width:100%!important;min-height:0;
    overflow:hidden!important;border-right:0;
  }
  body.terminal-mode .workspace[data-mobile-view="analysis"] .right-sidebar,
  body.terminal-mode .workspace[data-mobile-view="depth"] .right-sidebar{
    display:block!important;height:100%!important;width:100%!important;
    min-height:0;overflow:auto!important;padding:10px 13px;
    border:0;position:relative;inset:auto;box-shadow:none;
  }
  body.terminal-mode .workspace[data-mobile-view="depth"] .right-sidebar>*:not(#orderBookPanel){display:none!important}
  body.terminal-mode .workspace[data-mobile-view="analysis"] .right-sidebar>#orderBookPanel{display:none!important}
  body.terminal-mode .terminal-mobile-dock{
    display:flex!important;flex:0 0 37px;height:37px;min-height:37px;
    align-items:stretch;justify-content:space-around;
    width:100%;padding:2px 8px;gap:5px;
    border-top:1px solid var(--stroke);background:var(--panel);
    z-index:60;
  }
  body.terminal-mode .terminal-mobile-dock button{
    flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;
    gap:4px;min-width:0;
    border:1px solid transparent;border-radius:6px;
    background:transparent;color:var(--muted);
    font-size:11px;font-weight:700;padding:2px 4px;
  }
  body.terminal-mode .terminal-mobile-dock button span{font-size:15px;line-height:1}
  body.terminal-mode .terminal-mobile-dock button.selected{
    border-color:rgba(50,202,155,.2);background:var(--mintwash);color:var(--green);
  }
}
@media(orientation:landscape) and (max-height:420px) and (min-width:731px) and (max-width:960px){
  body.terminal-mode .topbar{display:none!important}
  body.terminal-mode .center-pane .ohlc-strip{display:none!important}
  body.terminal-mode .center-pane .chart-toolbar{
    flex:0 0 36px!important;
    min-height:36px!important;height:36px!important;
  }
}

/* Compact mobile drawing controls: two edit rows + a small title row.
   Keep all actions visible without a horizontal scrollbar, including 320px. */
@media(max-width:730px){
  body.terminal-mode .center-pane .drawing-options-bar{
    grid-template-columns:repeat(15,minmax(0,1fr))!important;
    gap:3px 4px!important;
    padding:3px 5px!important;
    align-items:center!important;
    min-height:0!important;
  }
  body.terminal-mode .center-pane .drawing-options-name{
    grid-row:1;grid-column:1/14;
    max-width:100%;min-width:0;
    font-size:10px;line-height:1.1;
    padding:0 2px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingDeselectBtn{
    grid-row:1;grid-column:14/16;
    min-height:24px;height:24px;
    font-size:16px;padding:0;
    border-radius:4px;
  }
  body.terminal-mode .center-pane .drawing-option-label{
    grid-row:2;grid-column:span 5;
    min-width:0!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    white-space:nowrap!important;
    gap:3px!important;
    font-size:9px!important;
    line-height:1;
    overflow:hidden;
  }
  body.terminal-mode .center-pane .drawing-option-label :is(select,input[type=color]){
    min-width:0!important;max-width:100%!important;width:100%!important;
    flex:1 1 0;
    height:29px!important;min-height:29px!important;
    padding:2px 3px!important;
    font-size:10px!important;
    border-radius:4px;
  }
  body.terminal-mode .center-pane .drawing-option-label input[type=color]{
    padding:2px!important;
  }
  body.terminal-mode .center-pane .drawing-options-bar .drawing-opt-btn:not(#drawingDeselectBtn){
    grid-row:3;grid-column:span 3;
    width:100%!important;min-width:0!important;
    min-height:30px!important;height:30px!important;
    padding:3px 1px!important;
    font-size:9.2px!important;
    line-height:1!important;
    border-radius:4px;
    white-space:nowrap!important;
    overflow:hidden;text-overflow:clip;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingRepairBtn:not([hidden]){
    grid-row:4;grid-column:1/-1;
    height:28px!important;min-height:28px!important;
  }
  body.terminal-mode .center-pane .draw-tools{
    width:32px!important;flex:0 0 32px!important;
    padding:4px 1px 6px!important;
    gap:2px!important;
  }
  body.terminal-mode .center-pane .draw-button{
    width:28px!important;
    height:30px!important;min-height:30px!important;
    font-size:14px!important;
  }
  body.terminal-mode .center-pane .draw-button[data-draw="fibext"],
  body.terminal-mode .center-pane .draw-button[data-draw="fibchannel"],
  body.terminal-mode .center-pane .draw-button[data-draw="fibtime"]{
    font-size:11px!important;letter-spacing:-.5px;
  }
}
@media(orientation:landscape) and (max-height:550px) and (min-width:731px) and (max-width:960px){
  body.terminal-mode .center-pane .drawing-options-bar{
    gap:2px 5px!important;
    padding:2px 6px!important;
  }
  body.terminal-mode .center-pane .drawing-options-name{
    font-size:10px;
    line-height:1;
  }
  body.terminal-mode .center-pane .drawing-options-bar #drawingDeselectBtn{
    height:22px!important;min-height:22px!important;
  }
  body.terminal-mode .center-pane .drawing-option-label{
    font-size:9px!important;
    gap:3px!important;
  }
  body.terminal-mode .center-pane .drawing-option-label :is(select,input[type=color]){
    height:24px!important;min-height:24px!important;
    padding:2px 3px!important;
    font-size:10px!important;
  }
  body.terminal-mode .center-pane .drawing-options-bar .drawing-opt-btn:not(#drawingDeselectBtn){
    height:26px!important;min-height:26px!important;
    padding:2px 3px!important;font-size:9.5px!important;
  }
  body.terminal-mode .center-pane .draw-button{
    height:28px!important;min-height:28px!important;
    font-size:13px!important;
  }
}
