.structure-panel{margin:22px 0;min-width:0}
.structure-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.structure-panel .panel-head h2{margin:0 0 6px}
.structure-panel .panel-head p:last-child{font-size:12px;color:var(--muted);margin:0;max-width:720px}
.structure-controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:14px 22px 0}
.structure-controls label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px}
.structure-controls select,.structure-controls input{min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);padding:7px 10px;font:inherit;font-size:12px}
.structure-controls input{width:min(320px,75vw)}
.structure-controls select:focus-visible,.structure-controls input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.structure-status,.structure-note{font-size:11px;line-height:1.6;color:var(--muted);padding:0 22px;margin:12px 0}
.structure-note{padding-bottom:13px;margin-bottom:0}
.structure-table{width:100%;min-width:850px;border-collapse:collapse}
.structure-table th,.structure-table td{text-align:left;padding:12px 14px;vertical-align:middle;border-bottom:1px solid var(--line);font-size:12px}
.structure-table th{font-size:10px;color:var(--muted);white-space:nowrap}
.structure-sort-button{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:8px 2px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-transform:inherit;letter-spacing:inherit;cursor:pointer;white-space:nowrap}
.structure-sort-button:hover,.structure-table th[aria-sort="ascending"] .structure-sort-button,.structure-table th[aria-sort="descending"] .structure-sort-button{color:var(--blue)}
.structure-sort-button:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.structure-sort-arrow{font-size:13px;line-height:1;color:var(--blue)}
.structure-table td:first-child{font-weight:700}
.structure-table td small{display:block;color:var(--muted);font-size:10px;font-weight:400}
.structure-table .structure-up{color:#35b982}
.structure-table .structure-down{color:#f18587}
.structure-table .structure-wait{color:var(--gold)}
.structure-chart-button,.structure-pagination button,.structure-dialog-head button{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:8px;padding:7px 10px;font-size:12px}
.structure-chart-button:hover,.structure-pagination button:hover:not(:disabled),.structure-dialog-head button:hover{color:var(--blue);border-color:var(--blue)}
.structure-chart-button:focus-visible,.structure-pagination button:focus-visible,.structure-dialog-head button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.structure-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 22px;color:var(--muted);font-size:11px}
.structure-pagination>div{display:flex;gap:7px}.structure-pagination button{font-size:18px;line-height:1;min-width:31px;min-height:31px;padding:3px 8px}
#structure-dialog{width:min(96vw,1100px);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 25px 80px #0008;padding:20px}
#structure-dialog::backdrop{background:#071622ad}
.structure-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.structure-dialog-head h2{margin:0}.structure-dialog-head .eyebrow{margin-bottom:7px}
.structure-dialog-head button{font-size:22px;line-height:1;min-width:36px;min-height:36px}
#structure-chart{max-width:100%;overflow-x:auto;overflow-y:hidden}
#structure-chart svg{display:block;width:auto;max-width:none;height:440px}
.structure-legend{position:sticky;left:0;width:100%;max-width:100%;margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5}
.structure-legend ul{display:flex;flex-wrap:wrap;gap:6px 15px;list-style:none;margin:0;padding:0}
.structure-legend li{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
#structure-chart .structure-legend svg{display:block;flex:none;width:32px;height:16px;max-width:32px}
.structure-legend-note{margin:7px 0 0;font-size:10px}
.structure-chart-toolbar{display:flex;align-items:end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px;color:var(--muted);font-size:11px}
.structure-chart-toolbar label{display:grid;gap:4px}
.structure-chart-toolbar select{min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);padding:6px 9px;font:inherit}
.structure-chart-toolbar select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#structure-chart-events{display:flex;gap:7px;align-items:center;overflow-x:auto;padding:9px 0 5px;min-height:45px;color:var(--muted);font-size:11px}
.structure-event-chip{flex:none;min-height:34px;border:1px solid var(--line);border-radius:999px;padding:6px 10px;background:var(--panel2);color:var(--text);font:inherit;font-size:11px;cursor:pointer}
.structure-event-chip[aria-pressed="true"]{border-color:var(--gold);color:var(--gold)}
.structure-event-chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#structure-chart-summary{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.structure-axis{fill:var(--muted);font:11px Inter,ui-sans-serif,sans-serif}
.structure-grid{stroke:var(--line);stroke-width:1}
.structure-level{stroke:var(--blue);stroke-width:2;stroke-dasharray:8 6}
.structure-break{fill:var(--blue)}
.structure-choch-level{stroke:var(--gold);stroke-width:2.5;stroke-dasharray:12 4}
.structure-choch-break{fill:var(--gold)}
.structure-internal{opacity:.58}
.structure-swing{stroke-width:3;opacity:1}
.structure-inset-bg{fill:var(--panel2);stroke:var(--line);stroke-width:1}
.structure-inset-title{fill:var(--text);font:700 11px Inter,ui-sans-serif,sans-serif}
.structure-inset-level{stroke:var(--gold);stroke-width:1.5;stroke-dasharray:5 3}
.structure-callout-link{stroke:var(--gold);stroke-width:1.5;stroke-dasharray:4 4;opacity:.8}
.structure-callout-ring{fill:none;stroke:var(--gold);stroke-width:2.5}
.structure-callout-bos{stroke:var(--blue)}
.structure-watch-level{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 6}
.structure-confirm{fill:#35b982}
.structure-wick{stroke-width:2}
.structure-bull-candle{fill:#35b982;stroke:#35b982}
.structure-bear-candle{fill:#f18587;stroke:#f18587}
body.light-preview .structure-table .structure-up{color:#14804a}
body.light-preview .structure-table .structure-down{color:#c92d40}
body.light-preview .structure-confirm,body.light-preview .structure-bull-candle{fill:#14804a;stroke:#14804a}
body.light-preview .structure-bear-candle{fill:#c92d40;stroke:#c92d40}
body.light-preview .structure-chart-button,body.light-preview .structure-pagination button,body.light-preview .structure-dialog-head button{background:#fff;color:#34445e}
body.light-preview .structure-controls select,body.light-preview .structure-controls input{background:#fff;color:#34445e}
body.light-preview .structure-chart-toolbar select,body.light-preview .structure-event-chip{background:#fff;color:#34445e}
@media(max-width:700px){.structure-panel .panel-head{align-items:flex-start;flex-direction:column}.structure-panel .panel-head button{align-self:flex-start}.structure-controls{padding:12px 14px 0}.structure-status,.structure-note{padding:0 14px}.structure-table{min-width:760px}.structure-table th,.structure-table td{padding:9px 10px}.structure-pagination{padding:11px 14px}#structure-dialog{padding:10px;width:98vw}.structure-chart-toolbar span{display:none}}

.stc{position:relative;min-width:0;max-width:100%;padding:20px;border:1px solid #dbe5f1;border-radius:16px;background:#fff;color:#203a5d;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:13px;line-height:1.5}
#structure-chart.structure-token-chart{overflow:visible}#structure-chart.structure-token-chart .stc-chart>svg,#structure-chart.structure-token-chart .stc-overview>svg{width:100%;height:auto;max-width:100%}
#structure-dialog [hidden]{display:none!important}
.stc *{box-sizing:border-box}.stc [hidden]{display:none!important}
.stc-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.stc h2{font-size:19px;line-height:1.3;margin:0 0 7px;color:#173654}.stc-trend{margin:0;color:#294c75;font-size:13px}
.stc-timeframes,.stc-heading>div:last-child,.stc-navigation>div,.stc-selection-head>div,.stc-history-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.stc-button{border:1px solid #d9e4f1;border-radius:7px;background:#f6f9fd;color:#315277;padding:7px 10px;min-height:34px;font:inherit;font-size:12px;line-height:1.3;cursor:pointer;max-width:100%}
.stc-button:hover:not(:disabled){border-color:#8daed5;background:#edf4fe}.stc-button:focus-visible,.stc input:focus-visible{outline:2px solid #316ad4;outline-offset:3px}.stc-button[aria-pressed=true]{background:#285eaa;border-color:#285eaa;color:#fff}.stc-button:disabled{opacity:.45;cursor:default}
.stc-source,.stc-status,.stc-selected-detail,.stc-update-note,.stc-method{font-size:12px;line-height:1.6;color:#637c99;overflow-wrap:anywhere}
.stc-source{margin:9px 0 3px}.stc-status{margin:3px 0 12px;color:#886218;min-height:0}.stc-status:empty,.stc-update-note:empty{display:none}
.stc-legend,.stc-filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px 16px;margin:12px 0}.stc-legend{font-size:12px}.stc-key{display:inline-flex;align-items:center;gap:6px}.stc-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid;flex:none}.stc-ob{background:repeating-linear-gradient(120deg,#d9f2e2 0,#d9f2e2 4px,#b9e4cb 4px,#b9e4cb 5px);border-color:#28985b}.stc-fvg{background:#deeffc;border-color:#72aed7}.stc-used{background:#edf0f3;border-color:#a9b3bf}
.stc-filters{margin:8px 0 14px;font-size:12px}.stc-filters label{display:inline-flex;gap:6px;align-items:center}.stc input[type=checkbox]{accent-color:#2b5da7;margin:0;width:14px;height:14px}
.stc-chart{width:100%;min-width:0;position:relative}.stc-chart>svg,.stc-overview>svg{width:100%;height:auto;display:block;overflow:visible;touch-action:pan-y}.stc-chart-frame{fill:#fff;stroke:#e7edf5;stroke-width:1}.stc-grid{stroke:#edf1f6;stroke-width:.8}.stc-axis,.stc-annotation{font:12px Inter,ui-sans-serif,system-ui,sans-serif;fill:#355479}.stc-axis{font-variant-numeric:tabular-nums}.stc-wick{stroke:#60758b;stroke-width:1}.stc-candle-up{fill:#fff;stroke:#526b82;stroke-width:.8}.stc-candle-down{fill:#6b7f93;stroke:#526b82;stroke-width:.8}.stc-structure-line{stroke:#3a669e;stroke-width:1.2}.stc-reference{stroke:#90a3b8;stroke-width:.85;stroke-dasharray:4 4}.stc-structure-mark{fill:#3a669e}.stc-muted-mark{fill:#90a3b8}.stc-guide{stroke:#8da1b9;stroke-width:.8;stroke-dasharray:3 3}
.stc-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px;flex-wrap:wrap}.stc-period{font-size:12px;color:#7288a2}.stc-overview{min-width:0}.stc-overview-line{stroke:#91a6bf;stroke-width:1}.stc-window{fill:#dae7f7;fill-opacity:.65;stroke:#8aabd4;stroke-width:1}.stc-window-edge{stroke:#8aabd4;stroke-width:4}.stc-navigator-hit{cursor:grab;touch-action:none}.stc-navigator-hit:active{cursor:grabbing}
.stc-history-range{display:block;margin:-3px 0 8px 74px}.stc-history-range input{display:block;width:100%;height:14px;margin:0;accent-color:#567faf}.stc-history-controls{justify-content:flex-end;margin:7px 0 14px}
.stc-selection{border-top:1px solid #e6edf6;padding-top:12px;margin-top:12px;min-width:0}.stc-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#6b829e;font-size:12px}.stc-selection-head .stc-button{min-width:32px;padding:6px 10px}.stc-selected-title{margin:7px 0 4px;font-size:13px;color:#29496c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stc-selected-detail{margin:0}.stc-update-note{color:#356799;margin:10px 0 0}.stc-method{margin-top:15px}.stc-method summary{cursor:pointer;color:#355477}.stc-method p{margin:8px 0 0}.stc-tooltip{position:absolute;z-index:3;max-width:min(340px,calc(100% - 12px));padding:9px 12px;border:1px solid #cedbed;border-radius:7px;background:#fff;color:#254970;box-shadow:0 5px 18px #1736501a;font-size:12px;line-height:1.6;pointer-events:none;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stc-empty{padding:50px 8px;text-align:center;color:#7389a3;font-size:13px}.stc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.stc{padding:13px 9px;border-radius:12px}.stc-heading{gap:10px}.stc h2{font-size:17px}.stc-timeframes{gap:5px}.stc-timeframes .stc-button{min-width:40px;padding:7px 8px}.stc-source{font-size:11px}.stc-history-controls{gap:5px}.stc-history-controls .stc-button{font-size:11px;padding:7px}.stc-navigation .stc-button{padding:6px 8px}.stc-legend,.stc-filters{gap:8px 12px}.stc-selected-title{font-size:12px}}
@media(pointer:coarse){.stc-button{min-height:42px}.stc-filters label{min-height:36px}.stc-history-range input{height:24px}}
.stc-chart-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:4px 0 8px}
.stc-chart-tools .stc-button:first-child,.stc-chart-tools .stc-button:nth-child(2){min-width:38px;font-size:17px}
.stc-chart-tools[data-clipped=true] .stc-button:last-child{border-color:#b68a36;color:#795714;background:#fff9eb}
.stc-chart{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.stc-chart:focus-visible{outline:2px solid #316ad4;outline-offset:3px;border-radius:6px}
.stc-chart [data-chart-hit]{touch-action:none;cursor:grab}
.stc-chart.stc-dragging [data-chart-hit]{cursor:grabbing}
.stc-extremum-mark{fill:#fff;stroke:#244d78;stroke-width:1.4}
.stc-gesture-hint{font-size:11px;line-height:1.6;color:#6b829e;margin:5px 0 12px}
.stc-live{background:#efc36c;border-color:#9b6c18}.stc-candle-live{fill:#efc36c;stroke:#946413;stroke-width:1.1}.stc-wick-live{stroke:#946413;stroke-width:1.3}
.stc-week-key{display:inline-block;width:19px;height:0;border-top:2px solid #c026a5;flex:none}.stc-week-key-high{border-top-style:dashed}.stc-week-key-low{border-top-style:dashed;border-top-width:1px}.stc-week-key-eq{border-top-style:dotted}
.stc-week-line{stroke:#c026a5;stroke-width:1.15;fill:none}.stc-week-high{stroke-dasharray:7 3}.stc-week-low{stroke-dasharray:3 3}.stc-week-eq{stroke-dasharray:1 3;stroke-width:1.3}.stc-week-selected{stroke-width:1.8}.stc-week-annotation{fill:#a81791}
.stc-week-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;flex-basis:100%;color:#a81791}.stc-week-options[hidden]{display:none}.stc-week-options input[type=checkbox]{accent-color:#b3269b}
.stc-navigator{margin:8px 0;color:#637c99;font-size:12px}
.stc-navigator>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:6px}
.stc-navigator>summary::before{content:'▸';font-size:13px}
.stc-navigator[open]>summary::before{content:'▾'}
.stc-notification-caption { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #245edb; border-radius: 6px; background: #f1f5ff; color: #304a75; font-size: 13px; line-height: 1.6; }
