.smartchart-scope,.smartchart-scope[data-theme=dark]{--bg: #131722;--panel: #1e222d;--panel-2: #2a2e39;--border: #2a2e39;--text: #d8dbe4;--text-muted: #9aa1b0;--accent: #2962ff;--accent-hover: #1e53e5;--hover: rgba(250, 250, 250, .06);--active: rgba(41, 98, 255, .16);--up: #26a69a;--down: #ef5350;--danger: #ef5350;--shadow: 0 4px 24px rgba(0, 0, 0, .5)}.smartchart-scope[data-theme=light]{--bg: #ffffff;--panel: #f0f3fa;--panel-2: #e0e3eb;--border: #e0e3eb;--text: #131722;--text-muted: #5a5f6e;--accent: #2962ff;--accent-hover: #1e53e5;--hover: rgba(19, 23, 34, .06);--active: rgba(41, 98, 255, .12);--up: #26a69a;--down: #ef5350;--danger: #ef5350;--shadow: 0 4px 24px rgba(0, 0, 0, .15)}.smartchart-scope{--sp-1: 2px;--sp-2: 4px;--sp-3: 8px;--sp-4: 12px;--sp-5: 16px;--sp-6: 24px;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 10px;--radius-pill: 999px;--icon-sm: 14px;--icon-md: 18px;--icon-lg: 24px;--fs-xs: 11px;--fs-sm: 12px;--fs-md: 13px;--fs-lg: 15px;--fw-regular: 400;--fw-medium: 500;--fw-semibold: 600;--fw-bold: 700;--motion-fast: .12s;--motion-base: .18s;--motion-slow: .3s;--ease-standard: cubic-bezier(.2, 0, 0, 1);--focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent)}@media(prefers-reduced-motion:reduce){.smartchart-scope *,.smartchart-scope *:before,.smartchart-scope *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}.smartchart-scope .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.smartchart-scope *,.smartchart-scope *:before,.smartchart-scope *:after{margin:0;padding:0;box-sizing:border-box}.smartchart-scope{width:100%;height:100%;overflow:hidden;font-family:Inter,Segoe UI Variable Text,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,Arial,sans-serif;font-size:13px;font-weight:400;line-height:1.45;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;touch-action:manipulation}.smartchart-scope .mono{font-family:JetBrains Mono,Roboto Mono,Consolas,Courier New,monospace;font-variant-numeric:tabular-nums}.smartchart-scope button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}.smartchart-scope input{font:inherit;color:var(--text)}.smartchart-scope :focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-radius:3px}@media(prefers-reduced-motion:reduce){.smartchart-scope *{animation-duration:.001ms!important;transition-duration:.001ms!important}}.smartchart-scope{width:100%;height:100%;display:flex;flex-direction:column}.smartchart-scope .main-row{flex:1;display:flex;min-height:0}.smartchart-scope .chart-wrap{position:relative;flex:1;min-width:0}.smartchart-scope .toolbar-tools-toggle .icon{transition:transform var(--motion-base, .18s) var(--ease-standard, ease)}.smartchart-scope .toolbar-tools-toggle.expanded .icon{transform:rotate(180deg)}.smartchart-scope .toolbar-tools-toggle.expanded{color:var(--accent)}.smartchart-scope .toolbar-tools-sep{width:1px;height:22px;margin:0 6px 0 2px;background:linear-gradient(to bottom,transparent,var(--border) 18%,var(--border) 82%,transparent);box-shadow:1px 0 color-mix(in srgb,var(--text) 6%,transparent);flex:none}.smartchart-scope .chart-container{width:100%;height:100%}.smartchart-scope .chart-container,.smartchart-scope .chart-container *{touch-action:none}.smartchart-scope .indicator-legend{position:absolute;top:30px;left:8px;z-index:14;display:flex;flex-direction:column;gap:1px;max-width:calc(100% - 80px);-webkit-user-select:none;user-select:none;font-size:12px;pointer-events:none}.smartchart-scope .indicator-legend.hidden{display:none}.smartchart-scope .indicator-legend>*{pointer-events:auto}.smartchart-scope .il-header{display:flex;align-items:center;gap:4px;color:var(--text-muted);font-weight:600;height:18px}.smartchart-scope .il-header-label{font-size:11px;text-transform:uppercase;letter-spacing:.4px}.smartchart-scope .il-collapse{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:24px;min-height:24px;color:var(--text-muted);border-radius:3px}.smartchart-scope .il-collapse:hover{color:var(--text);background:var(--hover)}.smartchart-scope .il-caret{width:13px;height:13px}.smartchart-scope .il-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 8px 3px 4px;background:color-mix(in srgb,var(--panel) 80%,transparent);border:1px solid var(--border);border-radius:6px;color:var(--text-muted);font-weight:500;width:fit-content}.smartchart-scope .il-row{display:flex;align-items:center;gap:5px;height:22px;padding:0 6px 0 2px;border-radius:5px;opacity:.72;border-left:2px solid transparent;transition:opacity .12s,background .12s}.smartchart-scope .il-row:hover{background:color-mix(in srgb,var(--panel) 85%,transparent);opacity:.9}.smartchart-scope .il-row.selected{opacity:1;background:color-mix(in srgb,var(--accent) 14%,transparent);border-left-color:var(--accent)}.smartchart-scope .il-row.selected .il-name{color:var(--text)}.smartchart-scope .il-row.selected .il-btn{opacity:1}.smartchart-scope .il-row.hidden-ind{opacity:.5}.smartchart-scope .il-row.hidden-ind .il-name,.smartchart-scope .il-row.hidden-ind .il-values{opacity:.6}.smartchart-scope .il-name{font-weight:600;color:var(--text);white-space:nowrap;cursor:pointer}.smartchart-scope .il-values{display:inline-flex;gap:8px;white-space:nowrap;overflow:hidden;align-items:center}.smartchart-scope .il-val{font-variant-numeric:tabular-nums}.smartchart-scope .il-status{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border-radius:10px;background:color-mix(in srgb,var(--panel) 70%,transparent);border:1px solid color-mix(in srgb,var(--text) 14%,transparent);font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap;flex-shrink:0}.smartchart-scope .il-values:has(.il-status){overflow:visible}.smartchart-scope .il-status-label{color:color-mix(in srgb,var(--text) 60%,transparent);font-weight:500}.smartchart-scope .il-status-cue{font-size:10px}.smartchart-scope .il-status-word{font-weight:700}.smartchart-scope .il-status:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.smartchart-scope .isd-smc-countrow{display:flex;align-items:center;gap:8px}.smartchart-scope .isd-smc-slider{flex:1;min-width:80px}.smartchart-scope .isd-smc-count{width:64px;text-align:center}.smartchart-scope .il-spacer{flex:1;min-width:8px}.smartchart-scope .il-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:24px;min-height:24px;flex:none;color:var(--text-muted);border-radius:4px;opacity:0;transition:opacity .12s}.smartchart-scope .il-btn .icon{width:14px;height:14px}.smartchart-scope .il-row:hover .il-btn{opacity:1}.smartchart-scope .il-eye{opacity:.75}.smartchart-scope .il-row:hover .il-eye{opacity:1}.smartchart-scope .il-row.hidden-ind .il-eye{opacity:1;color:var(--accent)}.smartchart-scope .il-btn:hover{background:var(--hover);color:var(--text)}.smartchart-scope .il-remove:hover{color:var(--danger)}.smartchart-scope .isd-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:12px}.smartchart-scope .isd-tab{padding:8px 14px;color:var(--text-muted);font-weight:600;font-size:13px;border-bottom:2px solid transparent;margin-bottom:-1px}.smartchart-scope .isd-tab:hover{color:var(--text)}.smartchart-scope .isd-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.smartchart-scope .isd-heading{color:var(--text-muted);font-size:12px;margin-bottom:10px}.smartchart-scope .isd-grid{display:flex;flex-direction:column;gap:10px}.smartchart-scope .isd-field{display:flex;align-items:center;justify-content:space-between;gap:12px}.smartchart-scope .isd-field>span{color:var(--text);font-size:13px}.smartchart-scope .isd-field .pd-input{width:120px}.smartchart-scope .isd-lines{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.smartchart-scope .isd-line{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:6px}.smartchart-scope .isd-line:hover{background:color-mix(in srgb,var(--panel) 85%,transparent)}.smartchart-scope .isd-line-hidden .isd-line-name{opacity:.5}.smartchart-scope .isd-line-name{color:var(--text);font-size:13px;white-space:nowrap}.smartchart-scope .isd-eye{opacity:.85}.smartchart-scope .isd-swatch{width:26px;height:18px;flex:none;border:1px solid var(--border);border-radius:4px;cursor:pointer}.smartchart-scope .isd-select{height:26px;padding:0 6px;background:var(--input-bg, var(--panel));color:var(--text);border:1px solid var(--border);border-radius:5px;font-size:12px}.smartchart-scope .isd-precision{margin-top:6px}.smartchart-scope .isd-bands{margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}.smartchart-scope .isd-bands-toggle{display:flex;align-items:center;gap:8px;cursor:pointer}.smartchart-scope .isd-bands-toggle span{color:var(--text);font-size:13px}.smartchart-scope .isd-bands-levels{margin-top:8px}.smartchart-scope .isd-bands-levels .pd-input:disabled{opacity:.5;cursor:not-allowed}.smartchart-scope .isd-presets{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.smartchart-scope .isd-presets-label{color:var(--text);font-size:13px}.smartchart-scope .isd-presets .isd-select{flex:1;height:28px}.smartchart-scope .isd-preset-save{white-space:nowrap;padding:6px 10px}.smartchart-scope .alert-form{display:flex;flex-direction:column;gap:10px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid var(--border)}.smartchart-scope .alert-form-row{display:flex;gap:10px}.smartchart-scope .alert-field{display:flex;flex-direction:column;gap:4px;flex:1;font-size:12px;color:var(--text-muted)}.smartchart-scope .alert-field-wide,.smartchart-scope .alert-field .pd-input,.smartchart-scope .alert-field .isd-select{width:100%}.smartchart-scope .alert-form-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.smartchart-scope .alert-repeat{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text)}.smartchart-scope .alert-source{display:inline-flex;align-self:flex-start;border:1px solid var(--border);border-radius:6px;overflow:hidden}.smartchart-scope .alert-source-btn{padding:5px 14px;font-size:12px;color:var(--text-muted);background:transparent;border:none;cursor:pointer}.smartchart-scope .alert-source-btn:hover{color:var(--text)}.smartchart-scope .alert-source-btn.active{background:var(--accent);color:#fff}.smartchart-scope .alert-section{padding:10px 2px 4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.smartchart-scope .alert-row{display:flex;align-items:center;gap:8px;padding:6px 4px;border-radius:6px}.smartchart-scope .alert-row:hover{background:var(--hover)}.smartchart-scope .alert-row.inactive{opacity:.5}.smartchart-scope .alert-row-main{display:flex;flex-direction:column;gap:1px;min-width:0}.smartchart-scope .alert-row-desc{font-weight:600;font-variant-numeric:tabular-nums}.smartchart-scope .alert-row-msg{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .il-btn.off{color:var(--text-muted)}.smartchart-scope .alert-log-head{display:flex;align-items:center}.smartchart-scope .alert-log-clear{font-size:11px;font-weight:600;color:var(--accent);text-transform:none;letter-spacing:0;padding:2px 6px;border-radius:4px}.smartchart-scope .alert-log-clear:hover{background:var(--hover)}.smartchart-scope .alert-log-row{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:5px;opacity:.85}.smartchart-scope .alert-log-desc{font-size:12px;font-variant-numeric:tabular-nums}.smartchart-scope .alert-log-time{font-size:11px;color:var(--text-muted)}.smartchart-scope .isd-note{color:var(--text-muted);font-size:13px;padding:6px 0 12px}.smartchart-scope .isd-footer{display:flex;justify-content:space-between;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}.smartchart-scope .chart-watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:1;color:var(--text);opacity:.045}.smartchart-scope .chart-watermark svg{width:76px;height:76px}.smartchart-scope .chart-watermark span{font-size:52px;font-weight:700;letter-spacing:1px;white-space:nowrap}@media(max-width:680px){.smartchart-scope .chart-watermark{gap:9px}.smartchart-scope .chart-watermark svg{width:40px;height:40px}.smartchart-scope .chart-watermark span{font-size:26px}}.smartchart-scope .realtime-btn{position:absolute;right:64px;bottom:22px;z-index:16;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--panel);border:1px solid var(--border);color:var(--text);box-shadow:var(--shadow);opacity:.92;transition:opacity .12s,background .12s}.smartchart-scope .realtime-btn:hover{opacity:1;background:var(--hover);color:var(--accent)}.smartchart-scope .realtime-btn .icon{width:15px;height:15px}.smartchart-scope .realtime-btn .icon+.icon{margin-left:-9px}.smartchart-scope .realtime-btn.hidden{display:none}@media(pointer:coarse){.smartchart-scope .realtime-btn{width:40px;height:40px;bottom:28px}}.smartchart-scope .chart-grid{position:absolute;inset:0;display:grid;gap:2px;background:var(--border)}.smartchart-scope .chart-grid.layout-single{grid-template-columns:1fr;grid-template-rows:1fr}.smartchart-scope .chart-grid.layout-h2{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.smartchart-scope .chart-grid.layout-v2{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.smartchart-scope .chart-grid.layout-grid4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.smartchart-scope .chart-panel{position:relative;min-width:0;min-height:0;background:var(--bg);overflow:hidden}.smartchart-scope .chart-grid:not(.layout-single) .chart-panel.active:after{content:"";position:absolute;inset:0;pointer-events:none;border:1.5px solid var(--accent);z-index:15}.smartchart-scope .icon{display:inline-flex;width:18px;height:18px;flex:none}.smartchart-scope .icon-caret{width:12px;height:12px;opacity:.6}.smartchart-scope .icon-check{width:14px;height:14px;color:var(--accent)}.smartchart-scope .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:6px;color:var(--text-muted)}.smartchart-scope .icon-btn:hover{background:var(--hover);color:var(--text)}.smartchart-scope .toolbar{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 8px;background:var(--bg);border-bottom:1px solid var(--border);-webkit-user-select:none;user-select:none;flex:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.smartchart-scope .toolbar::-webkit-scrollbar{display:none}.smartchart-scope .toolbar-group{display:flex;align-items:center;gap:2px;min-width:0}.smartchart-scope .toolbar-sep{width:1px;height:22px;margin:0 6px;background:var(--border);flex:none}.smartchart-scope .toolbar-btn{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 9px;border-radius:6px;color:var(--text);font-weight:500}.smartchart-scope .toolbar-btn:hover{background:var(--hover)}.smartchart-scope .toolbar-btn.active{background:var(--active);color:var(--accent)}.smartchart-scope .toolbar-labeled span{font-weight:500}.smartchart-scope .toolbar-slot{display:inline-flex;align-items:center}.smartchart-scope .toolbar-symbol{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:6px;font-weight:600;font-size:14px}.smartchart-scope .toolbar-symbol:hover{background:var(--hover)}.smartchart-scope .toolbar-change{font-size:12px;margin:0 4px}.smartchart-scope .up{color:var(--up)}.smartchart-scope .down{color:var(--down)}.smartchart-scope .toolbar-periods{display:flex;align-items:center;gap:1px}.smartchart-scope .period-btn{padding:0 8px;color:var(--text-muted)}.smartchart-scope .period-btn:hover{color:var(--text)}.smartchart-scope .period-btn.active{color:var(--accent);background:var(--active)}.smartchart-scope .dropdown-menu{position:fixed;max-height:calc(100dvh - 64px);overflow-y:auto;z-index:1000;min-width:190px;padding:4px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.smartchart-scope .dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border-radius:5px;text-align:left}.smartchart-scope .dropdown-item span:nth-child(2){flex:1}.smartchart-scope .dropdown-item:hover{background:var(--hover)}.smartchart-scope .dropdown-item.active{color:var(--accent)}.smartchart-scope .dropdown-divider{height:1px;margin:6px 4px;background:var(--border)}.smartchart-scope .dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 6px;margin-bottom:4px;border-bottom:1px solid var(--border)}.smartchart-scope .dropdown-head-title{font-size:12px;font-weight:600;color:var(--text-muted)}.smartchart-scope .dropdown-close{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;color:var(--text-muted)}.smartchart-scope .dropdown-close:hover{background:var(--hover);color:var(--text)}.smartchart-scope .dropdown-close .icon{width:15px;height:15px}@media(hover:hover)and (pointer:fine){.smartchart-scope .dropdown-head{display:none}}.smartchart-scope .dropdown-grid-items{display:flex;flex-wrap:wrap;gap:6px}.smartchart-scope .dropdown-chip{min-width:52px;justify-content:center;padding:8px 10px;border:1px solid var(--border);border-radius:8px;font-weight:600}.smartchart-scope .dropdown-chip.active{color:var(--accent);border-color:var(--accent)}.smartchart-scope .toolbar-mobile-only{display:none}.smartchart-scope .layout-saved-row{padding:0;gap:0}.smartchart-scope .layout-saved-load{display:flex;align-items:center;gap:8px;flex:1;padding:7px 10px;border-radius:5px 0 0 5px;text-align:left;min-width:0}.smartchart-scope .layout-saved-load span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .layout-saved-load:hover{background:var(--hover)}.smartchart-scope .layout-saved-del{padding:7px 9px;border-radius:0 5px 5px 0;color:var(--text-muted);opacity:.6}.smartchart-scope .layout-saved-del:hover{opacity:1;color:var(--danger, #e5484d);background:var(--hover)}.smartchart-scope .drawing-bar{display:flex;flex-direction:column;align-items:center;gap:0;width:44px;padding:4px 0;background:var(--bg);border-right:1px solid var(--border);-webkit-user-select:none;user-select:none;flex:none;overflow-x:hidden;overflow-y:auto;transition:width var(--motion-base, .18s) var(--ease-standard, ease),padding var(--motion-base, .18s) var(--ease-standard, ease)}.smartchart-scope .main-row.tools-hidden .drawing-bar{width:0;padding-left:0;padding-right:0;border-right-color:transparent}.smartchart-scope .drawing-bar-sep{width:20px;height:1px;margin:2px 0;background:var(--border)}.smartchart-scope .drawing-bar-spacer{flex:1}.smartchart-scope .tool-btn{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:6px;color:var(--text-muted)}.smartchart-scope .tool-btn:hover{background:var(--hover);color:var(--text)}.smartchart-scope .tool-btn.active{background:var(--active);color:var(--accent)}.smartchart-scope .tool-btn .icon{width:20px;height:20px}.smartchart-scope .tool-danger:hover{color:var(--danger)}.smartchart-scope .tool-btn.confirm{color:var(--danger);background:#ef535024}.smartchart-scope .icon-flyout-caret{position:absolute;right:1px;top:50%;transform:translateY(-50%);width:8px;height:8px;opacity:.4}.smartchart-scope .tool-flyout{position:fixed;z-index:1000;min-width:210px;max-height:70vh;overflow-y:auto;padding:4px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.smartchart-scope .tool-flyout-title{padding:6px 10px 4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.smartchart-scope .tool-flyout-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.smartchart-scope .tool-flyout-header .tool-flyout-title{flex:1}.smartchart-scope .tool-flyout-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;margin:2px 4px 0 0;border-radius:6px;color:var(--text-muted)}.smartchart-scope .tool-flyout-close:hover{background:var(--hover);color:var(--text)}.smartchart-scope .tool-flyout-close .icon{width:15px;height:15px}.smartchart-scope .tool-flyout-item{display:flex;align-items:center;gap:9px;width:100%;padding:7px 10px;border-radius:5px;text-align:left}.smartchart-scope .tool-flyout-item:hover{background:var(--hover)}.smartchart-scope .tool-flyout-item.active{color:var(--accent);background:var(--active)}.smartchart-scope .tool-flyout-item .icon{width:20px;height:20px}.smartchart-scope .drawing-bar-favs{display:flex;flex-direction:column;align-items:center}.smartchart-scope .drawing-bar-favs.hidden,.smartchart-scope .drawing-bar-favs-sep.hidden{display:none}.smartchart-scope .tool-fav-btn .icon{color:var(--text)}.smartchart-scope .tool-fav-btn.active{color:var(--accent)}.smartchart-scope .tool-search-flyout{width:280px;max-height:76vh;display:flex;flex-direction:column}.smartchart-scope .tool-search-flyout .search-input{margin:4px 4px 6px}.smartchart-scope .tool-search-list{overflow-y:auto}.smartchart-scope .tool-search-row{display:flex;align-items:center;gap:2px}.smartchart-scope .tool-search-row .tool-flyout-item{flex:1}.smartchart-scope .tool-search-star{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;margin-right:4px;color:var(--text-muted);opacity:0;border-radius:6px;transition:opacity .12s,color .12s}.smartchart-scope .tool-search-star .icon{width:15px;height:15px}.smartchart-scope .tool-search-row:hover .tool-search-star{opacity:.7}.smartchart-scope .tool-search-star:hover{color:var(--text)}.smartchart-scope .tool-search-star.on{opacity:1;color:#f5b301}.smartchart-scope .chart-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--bg) 55%,transparent)}.smartchart-scope .chart-overlay.hidden{display:none}.smartchart-scope .spinner{width:34px;height:34px;border:3px solid var(--panel-2);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.smartchart-scope .chart-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 32px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}.smartchart-scope .chart-error-text{color:var(--text-muted)}.smartchart-scope .chart-empty{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3, 8px);padding:var(--sp-6, 24px) var(--sp-6, 24px);background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg, 10px);box-shadow:var(--shadow);text-align:center}.smartchart-scope .chart-empty-icon{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-pill, 999px);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.smartchart-scope .chart-empty-icon .icon{width:var(--icon-lg, 24px);height:var(--icon-lg, 24px)}.smartchart-scope .chart-empty-title{color:var(--text);font-weight:var(--fw-semibold, 600);font-size:var(--fs-lg, 15px)}.smartchart-scope .chart-empty-sub{color:var(--text-muted);font-size:var(--fs-sm, 12px)}.smartchart-scope .btn-primary{padding:7px 18px;background:var(--accent);color:#fff;border-radius:6px;font-weight:600}.smartchart-scope .btn-primary:hover{background:var(--accent-hover)}.smartchart-scope .btn-secondary{padding:7px 14px;background:var(--panel-2);border-radius:6px;font-weight:500}.smartchart-scope .btn-secondary:hover{filter:brightness(1.15)}.smartchart-scope .replay-bar{display:flex;align-items:center;gap:8px;height:40px;padding:0 10px;background:var(--panel);border-top:1px solid var(--border);-webkit-user-select:none;user-select:none;flex:none}.smartchart-scope .replay-bar.hidden{display:none}.smartchart-scope .replay-controls{display:flex;align-items:center;gap:2px}.smartchart-scope .replay-play.active{color:var(--accent)}.smartchart-scope .replay-speed{min-width:48px;justify-content:center;color:var(--text-muted)}.smartchart-scope .replay-speed:hover{color:var(--text)}.smartchart-scope .replay-speed-menu{min-width:70px}.smartchart-scope .replay-hint{display:none;align-items:center;gap:8px;flex:1;color:var(--accent);font-weight:500}.smartchart-scope .replay-hint .icon{width:16px;height:16px}.smartchart-scope .replay-bar.replay-picking .replay-hint{display:flex}.smartchart-scope .replay-bar.replay-picking .replay-controls,.smartchart-scope .replay-bar.replay-picking .replay-speed,.smartchart-scope .replay-bar.replay-picking .replay-slider,.smartchart-scope .replay-bar.replay-picking .replay-progress,.smartchart-scope .replay-bar.replay-picking .replay-date{display:none}.smartchart-scope .replay-progress{min-width:78px;text-align:right;color:var(--text-muted);font-size:12px}.smartchart-scope .replay-slider{flex:1;height:4px;appearance:none;background:var(--panel-2);border-radius:2px;cursor:pointer}.smartchart-scope .replay-slider::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:var(--accent);cursor:grab}.smartchart-scope .replay-slider::-moz-range-thumb{width:14px;height:14px;border:none;border-radius:50%;background:var(--accent);cursor:grab}.smartchart-scope .replay-date{min-width:150px;text-align:right;font-size:12px;color:var(--text-muted)}.smartchart-scope .icon-btn:disabled{opacity:.35;cursor:default}.smartchart-scope .icon-btn:disabled:hover{background:none;color:var(--text-muted)}.smartchart-scope .trade-panel{position:absolute;top:10px;right:64px;z-index:20;width:230px;padding:10px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);-webkit-user-select:none;user-select:none}.smartchart-scope .trade-panel.hidden{display:none}.smartchart-scope .trade-head{display:flex;align-items:center;justify-content:space-between;font-weight:600;margin-bottom:8px}.smartchart-scope .trade-status{font-size:12px;color:var(--text-muted);font-weight:500}.smartchart-scope .trade-status.up{color:var(--up)}.smartchart-scope .trade-status.down{color:var(--down)}.smartchart-scope .trade-actions{display:flex;gap:6px;margin-bottom:8px}.smartchart-scope .trade-btn{flex:1;height:30px;border-radius:6px;font-weight:600;color:#fff}.smartchart-scope .trade-long{background:var(--up)}.smartchart-scope .trade-short{background:var(--down)}.smartchart-scope .trade-close{background:var(--panel-2);color:var(--text)}.smartchart-scope .trade-btn:hover{filter:brightness(1.1)}.smartchart-scope .trade-btn:disabled{opacity:.4;cursor:default;filter:none}.smartchart-scope .trade-log{max-height:150px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.smartchart-scope .trade-row{display:flex;align-items:center;gap:6px;font-size:12px;padding:3px 2px}.smartchart-scope .trade-side{width:16px;height:16px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:var(--panel-2);font-size:11px;font-weight:700}.smartchart-scope .trade-prices{color:var(--text-muted);flex:1}.smartchart-scope .trade-pnl.up{color:var(--up)}.smartchart-scope .trade-pnl.down{color:var(--down)}.smartchart-scope .trade-total{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid var(--border);font-weight:600}.smartchart-scope .trade-total-pnl.up{color:var(--up)}.smartchart-scope .trade-total-pnl.down{color:var(--down)}.smartchart-scope .status-bar{display:flex;align-items:center;justify-content:space-between;height:26px;padding:0 12px;font-size:12px;background:var(--bg);border-top:1px solid var(--border);color:var(--text-muted);-webkit-user-select:none;user-select:none;flex:none;overflow:hidden;white-space:nowrap}.smartchart-scope .status-ohlcv{display:flex;gap:10px}.smartchart-scope .status-pair{display:inline-flex;gap:3px}.smartchart-scope .status-label{color:var(--text-muted)}.smartchart-scope .status-value.up{color:var(--up)}.smartchart-scope .status-value.down{color:var(--down)}.smartchart-scope .status-cursor{color:var(--text-muted)}.smartchart-scope .indicator-sets{display:grid;gap:6px}.smartchart-scope .indicator-set-row{display:flex;align-items:center;gap:6px;min-width:0}.smartchart-scope .indicator-set-apply{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}.smartchart-scope .indicator-set-row .icon-btn{min-width:44px;min-height:44px}.smartchart-scope .date-range-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.smartchart-scope .date-range-presets button{min-height:44px}.smartchart-scope .historical-view-label{position:absolute;top:8px;right:80px;z-index:4;padding:4px 8px;border-radius:4px;background:var(--panel);color:var(--text-muted);border:1px solid var(--border);font-size:11px;pointer-events:none}.smartchart-scope .historical-view-label.hidden,.smartchart-scope .status-ohlcv[hidden],.smartchart-scope .status-pair[hidden]{display:none}.smartchart-scope .modal-backdrop{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-start;justify-content:center;padding-top:10vh;background:#00000073}.smartchart-scope .modal-panel{width:420px;max-width:calc(100vw - 32px);max-height:72vh;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.smartchart-scope .modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}.smartchart-scope .modal-title{font-size:14px;font-weight:600}.smartchart-scope .modal-body{display:flex;flex-direction:column;gap:8px;padding:12px 14px;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}.smartchart-scope .search-input{width:100%;height:34px;padding:0 12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;outline:none;direction:ltr;text-align:left}.smartchart-scope .search-input:focus{border-color:var(--accent)}.smartchart-scope .symbol-tabs{display:flex;gap:4px;margin:8px 0 6px;padding-bottom:6px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none;direction:ltr}.smartchart-scope .symbol-tabs.hidden{display:none}.smartchart-scope .symbol-tabs::-webkit-scrollbar{display:none}.smartchart-scope .symbol-tab{flex:none;padding:5px 12px;border-radius:var(--radius-pill, 999px);font-size:12px;font-weight:var(--fw-medium, 500);color:var(--text-muted);background:transparent;border:1px solid transparent;cursor:pointer;white-space:nowrap;transition:color var(--motion-fast, .12s),background var(--motion-fast, .12s)}.smartchart-scope .symbol-tab:hover{color:var(--text);background:var(--hover)}.smartchart-scope .symbol-tab.active{color:var(--accent);background:var(--active);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}.smartchart-scope .symbol-list,.smartchart-scope .indicator-list{display:flex;flex-direction:column;gap:1px;min-height:120px;max-height:56vh;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}.smartchart-scope .symbol-row{display:flex;align-items:center;gap:2px;border-radius:6px}.smartchart-scope .symbol-row:hover{background:var(--hover)}.smartchart-scope .symbol-row-main{flex:1;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:6px;text-align:left;min-width:0}.smartchart-scope .symbol-row-ticker{font-weight:600;min-width:95px}.smartchart-scope .symbol-row-name{flex:1;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .symbol-row-exchange{font-size:12px;color:var(--text-muted);background:var(--panel-2);border-radius:4px;padding:2px 6px}.smartchart-scope .symbol-star{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;margin-right:4px;color:var(--text-muted);opacity:0;border-radius:6px;transition:opacity .12s,color .12s}.smartchart-scope .symbol-star .icon{width:16px;height:16px}.smartchart-scope .symbol-row:hover .symbol-star{opacity:.7}.smartchart-scope .symbol-star:hover{color:var(--text)}.smartchart-scope .symbol-star.on{opacity:1;color:#f5b301}.smartchart-scope .watchlist{width:232px;flex:none;display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--border);min-height:0}.smartchart-scope .watchlist.hidden{display:none}.smartchart-scope .wl-header{display:flex;align-items:center;gap:4px;height:38px;padding:0 6px 0 12px;border-bottom:1px solid var(--border)}.smartchart-scope .wl-title{font-weight:600;font-size:13px}.smartchart-scope .wl-list{flex:1;overflow-y:auto;padding:4px}.smartchart-scope .wl-empty{color:var(--text-muted);font-size:13px;padding:20px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.smartchart-scope .wl-empty-text{margin:0}.smartchart-scope .wl-empty-cta{padding:6px 14px}.smartchart-scope .wl-row{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;cursor:pointer;border-left:2px solid transparent}.smartchart-scope .wl-row:hover{background:var(--hover)}.smartchart-scope .wl-row.active{background:color-mix(in srgb,var(--accent) 12%,transparent);border-left-color:var(--accent)}.smartchart-scope .wl-sym{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.smartchart-scope .wl-ticker{font-weight:600;font-size:13px}.smartchart-scope .wl-name{font-size:11px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .wl-quote{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:none}.smartchart-scope .wl-price{font-size:13px;font-variant-numeric:tabular-nums}.smartchart-scope .wl-change{font-size:11px;font-variant-numeric:tabular-nums}.smartchart-scope .wl-change.up{color:var(--up, #26a69a)}.smartchart-scope .wl-change.down{color:var(--down, #ef5350)}.smartchart-scope .wl-remove{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:24px;min-height:24px;flex:none;color:var(--text-muted);opacity:0;border-radius:4px;transition:opacity .12s}.smartchart-scope .wl-remove .icon{width:14px;height:14px}.smartchart-scope .wl-row:hover .wl-remove{opacity:.7}.smartchart-scope .wl-remove:hover{color:var(--danger);opacity:1}@media(max-width:680px){.smartchart-scope .watchlist{position:fixed;inset:auto 0 0;width:100%;height:45vh;z-index:1400;border-left:none;border-top:1px solid var(--border);border-radius:12px 12px 0 0}}.smartchart-scope .symbol-empty{padding:24px;text-align:center;color:var(--text-muted)}.smartchart-scope .indicator-section,.smartchart-scope .symbol-section{padding:8px 4px 4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.smartchart-scope .indicator-row{display:flex;align-items:center;gap:2px;border-radius:6px}.smartchart-scope .indicator-row:hover{background:var(--hover)}.smartchart-scope .indicator-row.active .indicator-row-name{color:var(--accent)}.smartchart-scope .indicator-fav{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;margin-left:2px;color:var(--text-muted);opacity:0;border-radius:6px;transition:opacity .12s,color .12s}.smartchart-scope .indicator-fav .icon{width:16px;height:16px}.smartchart-scope .indicator-row:hover .indicator-fav{opacity:.7}.smartchart-scope .indicator-fav:hover{color:var(--text);background:transparent}.smartchart-scope .indicator-fav.on{opacity:1;color:#f5b301}.smartchart-scope .indicator-toggle{flex:1;display:flex;align-items:center;gap:10px;padding:8px 10px;text-align:left;border-radius:6px;min-width:0}.smartchart-scope .indicator-row-name{font-weight:600;min-width:64px}.smartchart-scope .indicator-row-label{flex:1;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .indicator-row-add{font-size:12px;font-weight:600;color:var(--accent);opacity:0;transition:opacity .12s;flex:none}.smartchart-scope .indicator-row:hover .indicator-row-add{opacity:1}.smartchart-scope .indicator-row-check{width:16px;height:16px;color:var(--accent);flex:none}.smartchart-scope .settings-search{margin-bottom:8px}.smartchart-scope .shortcuts-list{display:flex;flex-direction:column;gap:2px}.smartchart-scope .shortcut-row{display:flex;align-items:center;gap:12px;padding:6px 4px}.smartchart-scope .shortcut-key{flex:none;min-width:84px;font-family:var(--mono, monospace);font-size:12px;background:var(--panel-2, var(--panel));border:1px solid var(--border);border-radius:5px;padding:3px 8px;text-align:center;color:var(--text)}.smartchart-scope .shortcut-action{color:var(--text-muted);font-size:13px}.smartchart-scope .settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}.smartchart-scope .settings-label{color:var(--text)}.smartchart-scope .segmented{display:inline-flex;padding:2px;gap:2px;background:var(--bg);border:1px solid var(--border);border-radius:7px}.smartchart-scope .segmented-item{padding:5px 11px;border-radius:5px;color:var(--text-muted);font-weight:500}.smartchart-scope .segmented-item:hover{color:var(--text)}.smartchart-scope .segmented-item.active{background:var(--active);color:var(--accent)}.smartchart-scope .settings-footer{display:flex;justify-content:flex-end;padding-top:8px;border-top:1px solid var(--border)}.smartchart-scope .settings-content{display:flex;flex-direction:column;gap:2px;min-height:200px;padding:8px 0}.smartchart-scope .settings-select{min-width:130px}.smartchart-scope .settings-note{padding:6px 2px;color:var(--text-muted);font-size:12px}.smartchart-scope .settings-subrow{padding-left:12px}.smartchart-scope .settings-section{display:flex;flex-direction:column;gap:2px}.smartchart-scope .settings-section+.settings-section{margin-top:6px}.smartchart-scope .settings-section-head{padding:8px 0 4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--accent);border-top:1px solid var(--border);margin-top:4px}.smartchart-scope .settings-section:first-child .settings-section-head{border-top:none;margin-top:0}.smartchart-scope .settings-swatches{display:inline-flex;gap:8px}.smartchart-scope .settings-swatches .pd-swatch{width:36px;height:24px}.smartchart-scope .settings-subhead{padding:10px 0 4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.smartchart-scope .settings-buttons{display:flex;gap:8px;padding:4px 0}.smartchart-scope .settings-buttons .btn-secondary{flex:1}.smartchart-scope .settings-danger{color:var(--danger)}.smartchart-scope .settings-danger:hover{background:#ef535024}.smartchart-scope .screenshot-frame{margin:10px 0;padding:8px;background:var(--bg);border:1px solid var(--border);border-radius:8px;display:flex;justify-content:center}.smartchart-scope .screenshot-preview{max-width:100%;max-height:50vh;border-radius:4px}.smartchart-scope .coach{position:absolute;top:var(--sp-4, 12px);left:50%;transform:translate(-50%);z-index:70;width:min(360px,calc(100% - 24px));background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg, 10px);box-shadow:var(--shadow);padding:var(--sp-4, 12px) var(--sp-5, 16px);animation:coach-in var(--motion-base, .18s) var(--ease-standard, ease)}@keyframes coach-in{0%{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%)}}.smartchart-scope .coach-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--sp-3, 8px)}.smartchart-scope .coach-title{font-weight:var(--fw-bold, 700);font-size:var(--fs-lg, 15px);color:var(--text)}.smartchart-scope .coach-close{width:28px;height:28px}.smartchart-scope .coach-close .icon{width:var(--icon-sm, 14px);height:var(--icon-sm, 14px)}.smartchart-scope .coach-tips{list-style:none;display:flex;flex-direction:column;gap:var(--sp-3, 8px);margin:0;padding:0}.smartchart-scope .coach-tip{display:flex;align-items:flex-start;gap:var(--sp-3, 8px)}.smartchart-scope .coach-tip-icon{flex:none;width:28px;height:28px;border-radius:var(--radius-md, 6px);display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.smartchart-scope .coach-tip-icon .icon{width:var(--icon-md, 18px);height:var(--icon-md, 18px)}.smartchart-scope .coach-tip-text{font-size:var(--fs-md, 13px);color:var(--text);line-height:1.4}.smartchart-scope .coach-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4, 12px);margin-top:var(--sp-4, 12px);padding-top:var(--sp-3, 8px);border-top:1px solid var(--border)}.smartchart-scope .coach-hint{font-size:var(--fs-xs, 11px);color:var(--text-muted)}.smartchart-scope .toolbar-share{color:var(--accent)}.smartchart-scope .toolbar-share:hover{color:#fff;background:var(--accent)}.smartchart-scope .share-frame{display:flex;justify-content:center;align-items:center;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;padding:8px;margin-bottom:16px;min-height:120px;overflow:hidden}.smartchart-scope .share-frame-empty{color:var(--text-muted);font-size:13px}.smartchart-scope .share-preview{max-width:100%;max-height:38vh;border-radius:6px;display:block}.smartchart-scope .share-status{display:flex;align-items:center;gap:10px;color:var(--text-muted);font-size:14px;padding:8px 0}.smartchart-scope .share-status.share-error{color:var(--text);justify-content:space-between}.smartchart-scope .share-spinner{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid var(--border);border-top-color:var(--accent);animation:share-spin .7s linear infinite}@keyframes share-spin{to{transform:rotate(360deg)}}.smartchart-scope .share-link-row{display:flex;margin-bottom:16px}.smartchart-scope .share-link-input{flex:1;min-width:0;height:40px;padding:0 12px;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;color:var(--text-muted);font-size:13px;letter-spacing:.01em;cursor:text}.smartchart-scope .share-link-input:focus{outline:none;border-color:var(--accent);color:var(--text)}.smartchart-scope .share-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:10px}.smartchart-scope .share-target{display:flex;flex-direction:column;align-items:center;gap:9px;padding:4px 2px;background:transparent;border:none;cursor:pointer;transition:transform .12s ease}.smartchart-scope .share-target:active{transform:scale(.93)}.smartchart-scope .share-target-icon{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;border:1.5px solid color-mix(in srgb,currentColor 42%,transparent);transition:transform .14s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}.smartchart-scope .share-target-icon .icon{width:26px;height:26px}.smartchart-scope .share-target-icon svg{width:100%;height:100%}.smartchart-scope .share-target:hover .share-target-icon{transform:translateY(-2px);border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent);box-shadow:0 6px 18px color-mix(in srgb,currentColor 28%,transparent)}.smartchart-scope .share-target-label{font-size:12px;font-weight:600;color:var(--text-muted);white-space:nowrap;max-width:76px;overflow:hidden;text-overflow:ellipsis}.smartchart-scope .share-target:hover .share-target-label{color:var(--text)}.smartchart-scope .share-target-telegram .share-target-icon{color:#29a9eb}.smartchart-scope .share-target-whatsapp .share-target-icon{color:#25d366}.smartchart-scope .share-target-x .share-target-icon{color:var(--text)}.smartchart-scope .share-target-more .share-target-icon,.smartchart-scope .share-target-copy .share-target-icon{color:var(--accent)}.smartchart-scope .toast-container{position:fixed;bottom:40px;left:50%;transform:translate(-50%);z-index:3000;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.smartchart-scope .toast{padding:9px 16px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow);animation:toast-in .25s ease}.smartchart-scope .toast-warn{border-color:#ff9800}.smartchart-scope .toast-error{border-color:var(--danger)}.smartchart-scope .toast-out{opacity:0;transition:opacity .3s}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.smartchart-scope .floating-toolbar{position:fixed;z-index:1500;display:flex;align-items:center;gap:2px;padding:4px 6px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-md, 8px);box-shadow:var(--shadow);-webkit-user-select:none;user-select:none;animation:ft-in var(--motion-fast, .12s) var(--ease-standard, ease)}@keyframes ft-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.smartchart-scope .ft-grip{display:flex;align-items:center;padding:4px 4px 4px 2px;color:var(--text-muted);cursor:grab}.smartchart-scope .ft-btn{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 5px;border-radius:5px;color:var(--text-muted)}.smartchart-scope .ft-btn:hover{background:var(--hover);color:var(--text)}.smartchart-scope .ft-btn.active{color:var(--accent);background:var(--active)}.smartchart-scope .ft-btn.danger:hover{color:var(--danger)}.smartchart-scope .ft-btn .icon{width:18px;height:18px}.smartchart-scope .ft-labeled{font-size:12px}.smartchart-scope .ft-swatch{width:16px;height:16px;border-radius:4px;border:1px solid var(--border)}.smartchart-scope .ft-sep{width:1px;height:18px;margin:0 3px;background:var(--border)}.smartchart-scope .ft-dropdown{min-width:110px}.smartchart-scope .color-picker{position:fixed;z-index:2500;width:208px;padding:10px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.smartchart-scope .cp-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:8px}.smartchart-scope .cp-swatch{width:24px;height:24px;border-radius:5px;border:1px solid var(--border);cursor:pointer}.smartchart-scope .cp-swatch:hover{transform:scale(1.12)}.smartchart-scope .cp-label{font-size:12px;color:var(--text-muted);margin-right:6px}.smartchart-scope .cp-row{display:flex;align-items:center;gap:6px;margin-top:8px}.smartchart-scope .cp-hex{flex:1;height:28px;padding:0 8px;background:var(--bg);border:1px solid var(--border);border-radius:5px;outline:none}.smartchart-scope .cp-hex:focus{border-color:var(--accent)}.smartchart-scope .cp-opacity{flex:1;accent-color:var(--accent)}.smartchart-scope .cp-opacity-value{font-size:12px;color:var(--text-muted);width:34px;text-align:right}.smartchart-scope .context-menu{position:fixed;z-index:2400;min-width:200px;padding:4px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.smartchart-scope .context-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 9px;border-radius:5px;text-align:left}.smartchart-scope .context-item:hover{background:var(--hover)}.smartchart-scope .context-item.danger{color:var(--danger)}.smartchart-scope .context-item.disabled{opacity:.45;cursor:default}.smartchart-scope .context-item .icon{width:15px;height:15px}.smartchart-scope .context-icon-spacer{width:15px}.smartchart-scope .context-label{flex:1}.smartchart-scope .context-shortcut{font-size:12px;color:var(--text-muted)}.smartchart-scope .context-sep{height:1px;margin:4px 6px;background:var(--border)}.smartchart-scope .pd-subtitle{font-size:12px;color:var(--text-muted)}.smartchart-scope .pd-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border)}.smartchart-scope .pd-tab{padding:7px 13px;color:var(--text-muted);border-bottom:2px solid transparent;font-weight:500}.smartchart-scope .pd-tab:hover{color:var(--text)}.smartchart-scope .pd-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.smartchart-scope .pd-content{display:flex;flex-direction:column;gap:4px;min-height:160px;padding:6px 0}.smartchart-scope .pd-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid var(--border)}.smartchart-scope .pd-footer-left,.smartchart-scope .pd-footer-right{display:flex;align-items:center;gap:8px}.smartchart-scope .pd-template-select{max-width:150px}.smartchart-scope .pd-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 0}.smartchart-scope .pd-toggle{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:6px;border:1px solid var(--border);color:var(--text-muted);text-align:left}.smartchart-scope .pd-toggle:hover{background:var(--hover)}.smartchart-scope .pd-toggle.active{color:var(--text);border-color:var(--accent)}.smartchart-scope .pd-toggle-box{width:16px;height:16px;border-radius:4px;border:1.5px solid var(--text-muted);flex:none;position:relative}.smartchart-scope .pd-toggle.active .pd-toggle-box{background:var(--accent);border-color:var(--accent)}.smartchart-scope .pd-toggle.active .pd-toggle-box:after{content:"";position:absolute;left:4.5px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.smartchart-scope .pd-fib{display:flex;flex-direction:column;gap:4px;padding:8px 0}.smartchart-scope .pd-fib-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.smartchart-scope .pd-fib-row{display:flex;align-items:center;gap:8px}.smartchart-scope .pd-fib-check{width:16px;height:16px;border-radius:4px;border:1.5px solid var(--text-muted);flex:none;position:relative}.smartchart-scope .pd-fib-check.active{background:var(--accent);border-color:var(--accent)}.smartchart-scope .pd-fib-check.active:after{content:"";position:absolute;left:4.5px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.smartchart-scope .pd-fib-row .pd-input{flex:1}.smartchart-scope .pd-fib-remove{width:24px;height:24px;border-radius:4px;color:var(--text-muted);font-size:16px;line-height:1}.smartchart-scope .pd-fib-remove:hover{background:var(--hover);color:var(--danger)}.smartchart-scope .pd-fib-add{align-self:flex-start;margin-top:4px}.smartchart-scope .pd-swatch{width:28px;height:28px;border-radius:6px;border:1px solid var(--border);cursor:pointer}.smartchart-scope .pd-slider{flex:1;min-width:90px;accent-color:var(--accent);touch-action:pan-y}.smartchart-scope .tmpl-section{padding:6px 0;border-top:1px solid var(--border)}.smartchart-scope .tmpl-type{font-size:12px;font-weight:600;color:var(--text);margin-bottom:4px}.smartchart-scope .tmpl-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0}.smartchart-scope .tmpl-name{font-size:13px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .pd-slider-val{min-width:38px;text-align:right;color:var(--text-muted);font-size:12px}.smartchart-scope .pd-input{width:130px;height:28px;padding:0 8px;background:var(--bg);border:1px solid var(--border);border-radius:5px;outline:none}.smartchart-scope .pd-input:focus{border-color:var(--accent)}.smartchart-scope .pd-input.invalid{border-color:var(--danger)}.smartchart-scope .pd-point-inputs{display:flex;gap:6px}.smartchart-scope .pd-vis-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:6px 0}.smartchart-scope .pd-vis-cell{padding:8px 0;border-radius:6px;border:1px solid var(--border);color:var(--text-muted);font-weight:500}.smartchart-scope .pd-vis-cell.active{color:var(--accent);border-color:var(--accent);background:var(--active)}.smartchart-scope .pd-vis-actions{display:flex;gap:8px}.smartchart-scope .pd-text-row{padding:8px 0}.smartchart-scope .object-tree{width:260px;flex:none;display:flex;flex-direction:column;background:var(--bg);border-left:1px solid var(--border)}.smartchart-scope .object-tree.hidden{display:none}.smartchart-scope .ot-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid var(--border)}.smartchart-scope .ot-title{font-weight:600}.smartchart-scope .ot-controls{display:grid;gap:8px;padding:4px 10px 10px}.smartchart-scope .ot-controls .ot-search,.smartchart-scope .ot-controls .ot-filter{width:100%;min-width:0;max-width:none;min-height:32px}.smartchart-scope .ot-header .icon-btn{margin-left:auto}.smartchart-scope .ot-pagination{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border-top:1px solid var(--border);flex:none}.smartchart-scope .ot-result-count{color:var(--text-muted);font-size:12px}.smartchart-scope .ot-pagination .icon-btn{min-width:44px;min-height:44px}.smartchart-scope .ot-row:focus-within .ot-btn{display:inline-flex}.smartchart-scope .ot-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.smartchart-scope .ot-name{background:transparent;border:0;color:inherit;text-align:left;padding:4px 0;cursor:pointer}.smartchart-scope .ot-filter{flex:1;max-width:150px;height:26px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:5px;font:inherit;font-size:12px}.smartchart-scope .ot-list{flex:1;overflow-y:auto;padding:4px}.smartchart-scope .ot-empty{padding:24px;text-align:center;color:var(--text-muted)}.smartchart-scope .ot-row{display:flex;align-items:center;gap:4px;padding:5px 6px;border-radius:6px;cursor:pointer}.smartchart-scope .ot-row:hover{background:var(--hover)}.smartchart-scope .ot-hidden-row{opacity:.5}.smartchart-scope .ot-type-icon{width:16px;height:16px;color:var(--text-muted);flex:none}.smartchart-scope .ot-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.smartchart-scope .ot-btn{display:none;align-items:center;justify-content:center;width:22px;height:22px;border-radius:4px;color:var(--text-muted);flex:none}.smartchart-scope .ot-row:hover .ot-btn,.smartchart-scope .ot-btn.active{display:inline-flex}.smartchart-scope .ot-btn:hover{background:var(--panel-2);color:var(--text)}.smartchart-scope .ot-btn .icon{width:14px;height:14px}@media(hover:none),(max-width:600px){.smartchart-scope .ot-controls .ot-search,.smartchart-scope .ot-controls .ot-filter{min-height:44px}.smartchart-scope .ot-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:6px;gap:4px;border-bottom:1px solid var(--border)}.smartchart-scope .ot-type-icon{grid-row:1;grid-column:1;z-index:1;pointer-events:none}.smartchart-scope .ot-name,.smartchart-scope .ot-rename{grid-row:1;grid-column:1 / -1;min-width:0;min-height:44px;padding-left:24px;font-size:13px}.smartchart-scope .ot-row .ot-btn{display:inline-flex;grid-row:2;width:100%;min-width:0;min-height:44px}.smartchart-scope .ot-btn .icon{width:18px;height:18px}}.smartchart-scope .ot-rename{flex:1;height:24px;padding:0 6px;background:var(--bg);border:1px solid var(--accent);border-radius:4px;outline:none;font-size:12px}.smartchart-scope .magnet-strong{color:var(--accent)}.smartchart-scope .ad-box{position:absolute;left:54px;bottom:12px;z-index:18;width:280px;max-width:calc(100% - 70px);display:flex;align-items:stretch;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 6px 22px #0006;overflow:hidden;animation:ad-in .22s ease-out}.smartchart-scope .ad-box.hidden{display:none}@keyframes ad-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.smartchart-scope .ad-link{display:flex;gap:10px;flex:1;min-width:0;padding:10px;padding-inline-end:28px;text-decoration:none;color:inherit}.smartchart-scope .ad-link:hover{background:var(--hover)}.smartchart-scope .ad-thumb{width:46px;height:46px;border-radius:8px;flex:none;object-fit:cover}.smartchart-scope .ad-text{min-width:0;display:flex;flex-direction:column;gap:1px}.smartchart-scope .ad-line1{display:flex;align-items:center;gap:6px}.smartchart-scope .ad-badge{font-size:9px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--text-muted);border:1px solid var(--border);border-radius:3px;padding:0 4px;line-height:14px}.smartchart-scope .ad-sponsor{font-size:11px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartchart-scope .ad-title{font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}.smartchart-scope .ad-body{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}.smartchart-scope .ad-cta{font-size:12px;font-weight:600;color:var(--accent);margin-top:2px;text-align:start}.smartchart-scope .ad-close{position:absolute;top:4px;inset-inline-end:4px;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;color:var(--text-muted);border-radius:4px}.smartchart-scope .ad-close:hover{color:var(--text);background:var(--hover)}.smartchart-scope .ad-rtl .ad-line1{flex-direction:row}@media(max-width:680px){.smartchart-scope .ad-box{left:8px;right:8px;bottom:8px;width:auto;max-width:none}}.smartchart-scope .ad-promo{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center}.smartchart-scope .ad-promo-hero{width:96px;height:96px;border-radius:20px}.smartchart-scope .ad-promo-body{margin:0;color:var(--text-muted);font-size:14px;line-height:1.6}.smartchart-scope .ad-promo-actions{width:100%;display:flex;justify-content:center}.smartchart-scope .ad-promo-cta{text-decoration:none;padding:10px 22px;font-size:14px;border-radius:8px}.smartchart-scope ::-webkit-scrollbar{width:6px;height:6px}.smartchart-scope ::-webkit-scrollbar-track{background:transparent}.smartchart-scope ::-webkit-scrollbar-thumb{background:var(--panel-2);border-radius:3px}.smartchart-scope ::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.smartchart-scope ::selection{background:#2962ff4d}@media(max-width:1200px){.smartchart-scope .toolbar{justify-content:space-between;gap:4px;overflow:hidden}.smartchart-scope .toolbar-periods,.smartchart-scope .toolbar-charttype,.smartchart-scope .toolbar-labeled,.smartchart-scope .toolbar-right,.smartchart-scope .toolbar-desktop-only{display:none!important}.smartchart-scope .toolbar-mobile-only{display:inline-flex;align-items:center;gap:4px}.smartchart-scope .toolbar-group{gap:2px;min-width:0}.smartchart-scope .toolbar-left{flex:1;min-width:0}.smartchart-scope .toolbar-symbol{flex:none;max-width:46vw;overflow:hidden}.smartchart-scope .toolbar-symbol-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(max-width:680px){.smartchart-scope .toolbar{height:48px}.smartchart-scope .toolbar-group{flex:none}.smartchart-scope .icon-btn{width:40px;height:40px;flex:none}.smartchart-scope .toolbar-btn{height:40px;flex:none}.smartchart-scope .toolbar-tf-mobile{padding:0 8px;gap:3px;color:var(--text);font-weight:600}.smartchart-scope .toolbar-change{font-size:11px}.smartchart-scope .tool-btn{width:40px;height:40px}.smartchart-scope .tool-btn .icon{width:21px;height:21px}.smartchart-scope .drawing-bar-sep{margin:1px 0}.smartchart-scope .indicator-legend{max-width:calc(100% - 16px);font-size:11px}.smartchart-scope .il-row{min-width:0}.smartchart-scope .il-name{flex:none;max-width:45vw;overflow:hidden;text-overflow:ellipsis}.smartchart-scope .il-values{min-width:0;flex:1;text-overflow:ellipsis}.smartchart-scope .tool-flyout-item,.smartchart-scope .dropdown-item,.smartchart-scope .context-item,.smartchart-scope .symbol-row,.smartchart-scope .indicator-row{min-height:44px}.smartchart-scope .tool-flyout-close{width:38px;height:38px;margin-top:0}.smartchart-scope .tool-flyout-close .icon{width:18px;height:18px}.smartchart-scope .tool-flyout,.smartchart-scope .dropdown-menu{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:max(var(--sc-bottom-inset, 0px),env(safe-area-inset-bottom,0px))!important;width:100%!important;min-width:0;max-width:100%;max-height:72vh;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch;border-radius:16px 16px 0 0;border-left:none;border-right:none;border-bottom:none;padding:10px 10px 16px;box-shadow:0 -10px 34px #00000073;animation:sheet-up .18s ease-out}.smartchart-scope .tool-flyout:before,.smartchart-scope .dropdown-menu:before{content:"";display:block;width:36px;height:4px;margin:2px auto 10px;border-radius:2px;background:var(--border)}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.smartchart-scope .modal-backdrop{padding-top:0;align-items:flex-start}.smartchart-scope .modal-panel{width:100%!important;max-width:100%;height:calc(100dvh - var(--sc-bottom-inset, 0px));max-height:calc(100dvh - var(--sc-bottom-inset, 0px));border-radius:0}.smartchart-scope .modal-body{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.smartchart-scope .object-tree{position:fixed;inset:auto 0 var(--sc-bottom-inset, 0px) 0;width:100%;height:60vh;border-left:none;border-top:1px solid var(--border);border-radius:12px 12px 0 0;z-index:1500}.smartchart-scope .floating-toolbar{position:fixed!important;left:0!important;right:0!important;bottom:max(var(--sc-bottom-inset, 0px),env(safe-area-inset-bottom,0px))!important;top:auto!important;transform:none!important;width:100%;border-radius:0;justify-content:flex-start;overflow-x:auto;padding:8px;gap:6px}.smartchart-scope .ft-btn,.smartchart-scope .ft-swatch{min-width:40px;min-height:40px}.smartchart-scope .dropdown-menu.ft-dropdown{left:50%!important;right:auto!important;transform:translate(-50%)!important;bottom:var(--ft-pop-bottom, calc(var(--sc-bottom-inset, 0px) + 64px))!important;top:auto!important;width:max-content!important;min-width:132px!important;max-width:86vw!important;border-radius:12px!important;border:1px solid var(--border)!important;padding:6px!important;box-shadow:var(--shadow)!important;animation:none!important}.smartchart-scope .dropdown-menu.ft-dropdown:before{display:none}.smartchart-scope .replay-bar{height:46px}.smartchart-scope .replay-date{min-width:0;font-size:11px}.smartchart-scope .replay-progress{display:none}.smartchart-scope .status-bar{font-size:11px;padding:0 8px}.smartchart-scope .status-cursor{display:none}.smartchart-scope .trade-panel{inset:auto 8px 56px;width:auto}.smartchart-scope .chart-grid.layout-h2,.smartchart-scope .chart-grid.layout-grid4{grid-template-columns:1fr}.smartchart-scope .chart-grid.layout-h2{grid-template-rows:1fr 1fr}.smartchart-scope .chart-grid.layout-grid4{grid-template-rows:1fr 1fr 1fr 1fr}}@media(pointer:coarse){.smartchart-scope .segmented-item{padding:8px 12px}.smartchart-scope .pd-tab{padding:10px 14px}}.smartchart-scope .chart-navigation{position:absolute;z-index:4;left:50%;bottom:34px;transform:translate(-50%);display:flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--panel);box-shadow:0 2px 10px #0002}.smartchart-scope .chart-nav-btn{width:32px;height:32px;border:0;border-radius:5px;background:transparent;color:var(--text);font:20px/1 sans-serif;cursor:pointer}.smartchart-scope .chart-nav-btn:hover{background:var(--hover)}.smartchart-scope .chart-nav-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.smartchart-scope .tmpl-badge{color:var(--text-muted);font-size:11px}.smartchart-scope .pd-validation{color:var(--down, #ef5350);font-size:12px;margin:8px 0}.smartchart-scope .pd-input[aria-invalid=true]{border-color:var(--down, #ef5350)}@media(pointer:coarse){.smartchart-scope .chart-nav-btn{width:40px;height:40px}}.smartchart-scope .settings-row{min-width:0}.smartchart-scope .settings-row .segmented{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.smartchart-scope .settings-row>.settings-label{flex-shrink:0;max-width:50%}.smartchart-scope .pd-footer{flex-wrap:wrap}.smartchart-scope .pd-footer-left{flex-wrap:wrap;min-width:0}.smartchart-scope .pd-template-select{max-width:100%}.smartchart-scope .pd-point-inputs{flex-wrap:wrap;min-width:0}.smartchart-scope .pd-point-inputs .pd-input{min-width:0;max-width:100%}.smartchart-scope .wl-symbol-action{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;align-self:stretch;gap:8px;text-align:left;background:transparent;color:inherit}.smartchart-scope .il-name{text-align:left;padding:0;color:inherit;background:transparent}.smartchart-scope .chart-nav-auto{font-size:13px;font-weight:600}.smartchart-scope .chart-nav-auto[aria-pressed=true]{color:var(--accent);background:var(--active)}
