@layer legacy {
.hm-editor{width:min(660px,100%);padding:24px;box-sizing:border-box}.hm-editor header,.hm-editor footer,.hm-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hm-editor header h2,.hm-section-head h2{margin:0}.hm-editor p,.hm-editor small{color:var(--yx-muted);overflow-wrap:anywhere}.hm-editor details{margin:20px 0;padding:14px;border:1px solid var(--yx-divider);border-radius:8px}.hm-editor details[open]>summary{margin-bottom:18px}.hm-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hm-editor .hs-field{margin-bottom:14px}.hm-editor input,.hm-editor select,.hm-editor textarea{width:100%;box-sizing:border-box}.hm-editor footer{position:sticky;bottom:0;background:var(--yx-surface,#fff);padding:14px 0}.hm-summary,.hm-drafts{padding:16px;margin:14px 0;background:var(--yx-bg,var(--yx-soft));border:1px solid var(--yx-divider);border-radius:8px}#hm-error:not(:empty){padding:12px;color:var(--yx-up,#b6474f);border:1px solid currentColor}#popup:has(.hm-editor){align-items:stretch;justify-content:flex-end}#popup .modal:has(.hm-editor){margin:0;width:680px;max-width:100%;max-height:100vh;height:100vh;border-radius:0;padding:0;overflow:auto}#hm-daily-materials article{padding:14px 0;border-top:1px solid var(--yx-divider)}.hs-chart-card .hs-chart-empty{height:auto;min-height:90px;padding:20px}.hs-chart-card #hs-daily-chart:has(.hs-chart-empty),.hs-chart-card #hs-minute-chart:has(.hs-chart-empty){height:auto;min-height:120px}.hm-market-status{font-size:13px;padding:12px 0;line-height:1.7;overflow-wrap:anywhere}.hm-market-tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.hm-market-tools label{font-size:13px;display:grid;gap:4px}.hm-market-tools input,.hm-market-tools select{padding:8px;max-width:180px}.hm-market-settings{max-width:640px;padding:20px}.hm-market-settings li{margin:10px 0}.hm-market-settings input{max-width:100%}@media(max-width:640px){.hm-grid{grid-template-columns:1fr}.hm-editor{padding:18px}.hm-section-head{align-items:flex-start}.hm-section-head button{width:100%}.hm-editor footer{justify-content:flex-start}}
#popup .hm-editor .hs-button{background:var(--yx-surface,#fff);color:var(--yx-ink,var(--yx-ink));border:1px solid var(--yx-divider,var(--yx-line));border-radius:8px}#popup .hm-editor .hs-button:hover{background:var(--yx-bg,var(--yx-soft))}#popup:has(.hm-editor){padding:0}#popup .modal:has(.hm-editor){border-radius:0}
#popup:has(.hm-editor){display:flex;align-items:stretch;justify-content:flex-end;padding:0}body.yx-v5.yx-terminal #popup .modal:has(.hm-editor){width:680px;max-width:100vw;min-width:0;padding:0;border-radius:0;box-sizing:border-box;flex:0 1 680px}.hm-editor{width:100%;min-width:0}.hm-editor *{box-sizing:border-box}.hm-grid>*{min-width:0}.hm-editor input[type=date],.hm-editor input[type=time]{min-width:0;max-width:100%}

/* Quote states stay compact; charts receive their full height only with actual bars. */
.hs-chart-card #hs-daily-chart[data-has-data="false"],.hs-chart-card #hs-minute-chart[data-has-data="false"]{height:auto;min-height:0}.hs-chart-card .hs-chart-empty{min-height:60px;height:auto;padding:16px;background:var(--yx-bg,var(--yx-soft));align-items:flex-start;text-align:left}.hs-chart-empty strong{overflow-wrap:anywhere}.hs-chart-card:has(#hs-daily-chart[data-has-data="false"]):has(#hs-minute-chart[data-has-data="false"]) .hs-charts{grid-template-columns:1fr}.hs-chart-card:has(#hs-daily-chart[data-has-data="false"]):has(#hs-minute-chart[data-has-data="false"]) .hs-minute-pane{border:0;padding-left:0}.hs-chart-card details[open]{display:flex;max-width:100%;flex-wrap:wrap}.hs-chart-card details .hs-button{margin:5px}.hm-minute-date{font-size:12px;display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:10px}.hm-minute-date input{padding:7px;max-width:155px;background:var(--yx-surface);border:1px solid var(--yx-divider);border-radius:6px}.hm-minute-date small{color:var(--yx-muted)}.hm-security{max-width:460px}.hm-security footer{justify-content:flex-end}.hm-security #hm-security-error{line-height:1.7;color:var(--yx-up);overflow-wrap:anywhere}.hm-market-status{padding:4px 0 12px;margin:0}.hs-chart-card .hs-primary{background:var(--yx-accent,var(--yx-ink));color:var(--yx-surface,#fff)}

.hs-chart-card:has(#hs-daily-chart[data-has-data="false"]):has(#hs-minute-chart[data-has-data="false"]) .hs-chart-controls,.hs-chart-card:has(#hs-daily-chart[data-has-data="false"]) .hs-chart-tip{display:none}.hs-chart-card .hs-source:empty{display:none}
/* V3.3: compact read-only chart statistics and interaction overlays. */
.hc-up{color:var(--yx-up,#b6474f)}.hc-down{color:var(--yx-down,#19735f)}.hc-day-stats{display:grid;gap:5px;padding:0 0 10px;font-size:12px;line-height:1.6;min-width:0}.hc-day-move{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.hc-day-move strong{font-size:23px;line-height:1.1}.hc-day-extremes{display:flex;gap:16px}.hc-day-stats small{font-size:11px;color:var(--yx-muted)}.hc-shade{position:absolute;top:0;pointer-events:none;z-index:2;box-sizing:border-box}#hc-selected-date{background:rgba(146,107,50,.12);border-left:1px solid rgba(146,107,50,.55)}#hc-measure-shade{background:rgba(146,107,50,.12);border-inline:1px solid rgba(146,107,50,.5)}.hc-shade[hidden],.hc-measure-panel[hidden],.hc-marker-details[hidden]{display:none}.hc-measure-panel{padding:9px 0 13px;border-top:1px solid var(--yx-divider);font-size:12px}.hc-measure-inputs{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:6px}.hc-measure-inputs label{display:grid;gap:4px}.hc-measure-inputs input{font:inherit;padding:5px;border:1px solid var(--yx-divider);border-radius:5px;max-width:145px;background:var(--yx-surface)}.hc-measure-result{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}.hc-measure-result span{font-size:11px}.hc-measure-extra{margin-top:6px;color:var(--yx-muted)}.hc-measure-extra[open]{display:block}.hc-measure-panel [role=alert]{color:var(--yx-up)}[data-hc=measure][aria-pressed=true]{background:var(--yx-accent,var(--yx-ink));color:var(--yx-surface,#fff)}.hc-record{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 8px;padding:8px 0;border-top:1px solid var(--yx-divider);font-size:11px;overflow-wrap:anywhere}.hc-record small,.hc-record button{grid-column:2}.hc-record button{justify-self:start}.hc-day-trades,.hc-marker-details{font-size:12px;margin-top:10px}.hc-day-trades details[open]{display:block}.hc-detail-head{display:flex;justify-content:space-between;gap:8px}.hc-day-trades summary{cursor:pointer}.hs-chart-card #hs-daily-chart{overflow:hidden}.hc-day-stats,.hc-marker-details,.hc-day-trades{max-width:100%;min-width:0}@media(max-width:760px){.hc-day-stats{grid-template-columns:1fr 1fr}.hc-day-stats small{grid-column:1/-1}.hc-day-move strong{font-size:22px}.hc-day-extremes{flex-direction:column;gap:0}.hc-measure-inputs{gap:7px}.hc-measure-inputs input{max-width:130px}.hc-measure-result span{line-height:1.7}}
/* V3.4: compact adjustment help and account registrations, separate from trades. */
.hs-adjust-control{position:relative;display:flex;align-items:center;gap:6px}.hs-adjust-control>small{max-width:160px;font-size:11px;color:var(--yx-up)}.hs-adjust-help>summary{list-style:none;cursor:pointer;font-size:17px;color:var(--yx-muted);padding:6px}.hs-adjust-help>summary::-webkit-details-marker{display:none}.hs-chart-card .hs-adjust-help[open]{display:block}.hs-adjust-help>div{position:absolute;z-index:6;right:0;top:100%;width:270px;max-width:calc(100vw - 70px);padding:12px;background:var(--yx-surface,#fff);border:1px solid var(--yx-divider);border-radius:8px;box-shadow:0 5px 18px #4b3e2514;font-size:12px;line-height:1.6}.hs-adjust-help p{margin:0 0 8px}.hs-position-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.hs-position-card .hs-card-head h2{margin:0}.hs-position-diff{padding:8px 10px;border-left:2px solid var(--yx-accent);font-size:12px;color:var(--yx-muted);background:var(--yx-bg)}.hs-position-history,.hs-position-tools{margin-top:12px;font-size:12px}.hs-position-history ol{padding:0;list-style:none}.hs-position-history li{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:9px;padding:12px 0;border-top:1px solid var(--yx-divider)}.hs-position-history li>div{display:grid;gap:5px}.hs-position-history li>details{flex-basis:100%}.hs-position-history pre{white-space:pre-wrap;overflow-wrap:anywhere}.hs-position-history small{color:var(--yx-muted)}.hs-position-tools .hs-button{margin:10px 8px 0 0}.hs-position-form>small{display:block;font-size:12px;color:var(--yx-muted);margin:-6px 0 15px}.hs-position-form input{box-sizing:border-box;width:100%}.hs-position-advanced{margin:16px 0;padding:10px 0;border-block:1px solid var(--yx-divider)}.hs-position-advanced[open]>summary{margin-bottom:14px}.hs-position-form .hs-actions{justify-content:flex-end}.hs-position-form [data-hs=save-snapshot]{background:var(--yx-accent,var(--yx-ink));color:var(--yx-surface,#fff)}.hs-position-form [role=status]{font-size:12px;color:var(--yx-muted)}#popup .modal:has(.hs-position-modal){width:520px;max-width:calc(100vw - 28px);min-width:0;box-sizing:border-box}.hs-position-modal{padding:18px}.hs-position-form input[type=date]{min-width:0;max-width:100%}@media(max-width:760px){.hs-position-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hs-position-metrics>div:last-child{grid-column:1/-1}.hs-position-card .hs-card-head{gap:12px;flex-wrap:wrap}.hs-position-modal{padding:12px}.hs-adjust-control{max-width:100%}}
/* V3.5: one full-width chart, quiet toolbar and read-only period projections. */
.hs-chart-v35{min-width:0}.hc-heading,.hc-heading>div,.hc-toolbar,.hc-tools,.hc-legend{display:flex;align-items:center;gap:12px}.hc-heading{justify-content:space-between;margin-bottom:16px}.hc-heading h2{margin:0}.hc-adjust-badge{font-size:11px;background:var(--yx-bg,var(--yx-soft));border-radius:4px;padding:3px 7px;color:var(--yx-muted)}.hc-legend{font-size:11px;gap:9px;color:var(--yx-muted)}.hc-toolbar{flex-wrap:wrap;margin-bottom:10px}.hc-segment{display:flex;gap:2px;padding:3px;border-radius:6px;background:var(--yx-bg,var(--yx-soft))}.hc-segment button{padding:7px 13px;border:0;background:transparent;border-radius:4px;color:var(--yx-muted);font:inherit;font-size:13px;cursor:pointer}.hc-segment button[aria-pressed=true]{background:var(--yx-surface,#fffdf9);color:var(--yx-text,var(--yx-ink));box-shadow:0 1px 4px #5c493315;font-weight:600}.hc-tools{margin-left:auto;gap:5px}.hc-toolbar .hc-icon{display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;font-size:21px;line-height:1;color:var(--yx-muted);cursor:pointer;list-style:none}.hc-icon::-webkit-details-marker{display:none}.hc-toolbar .hc-icon:hover,.hc-toolbar .hc-icon:focus-visible{background:var(--yx-bg);border-color:var(--yx-divider)}.hc-toolbar [data-hc=measure][aria-pressed=true]{background:var(--yx-accent,var(--yx-ink));color:var(--yx-surface,#fff)}#screen .hs-chart-v35 details.hc-more{position:relative;padding:0;margin:0;border:0;background:transparent}.hs-chart-v35 details.hc-more[open]{display:block}.hc-menu{position:absolute;z-index:10;right:0;top:40px;width:285px;max-width:calc(100vw - 55px);box-sizing:border-box;padding:15px;background:var(--yx-surface,#fffdf9);border:1px solid var(--yx-divider);border-radius:8px;box-shadow:0 8px 28px #41321d1a}.hc-menu .hs-field{margin:0;min-width:0}.hc-menu .hs-adjust-control{margin-bottom:13px;flex-wrap:wrap}.hc-menu .hs-adjust-control>small{max-width:100%;flex-basis:100%}.hc-menu .hs-adjust-control select{max-width:180px}.hc-menu fieldset{border:0;border-top:1px solid var(--yx-divider);padding:12px 0;margin:0;display:flex;gap:7px;flex-wrap:wrap}.hc-menu legend{font-size:12px;color:var(--yx-muted);padding-right:6px}.hc-menu label{font-size:12px}.hc-menu input[type=checkbox]{width:auto;margin:0;accent-color:var(--yx-accent)}.hs-chart-v35 .hc-menu>.hs-button{display:block;margin:1px 0;width:100%;text-align:left;border:0;padding:8px;background:transparent}.hc-menu>.hs-button:hover{background:var(--yx-bg)}.hc-menu .hs-adjust-help>div{right:0;top:100%}.hc-source{font-size:11px;color:var(--yx-muted);line-height:1.6;margin-bottom:12px;overflow-wrap:anywhere}.hc-source:empty,.hs-chart-v35 #hmkt-state:empty{display:none}.hs-chart-v35 .hc-day-stats{display:flex;align-items:center;gap:24px;padding:0 0 12px;flex-wrap:wrap}.hc-price{display:flex;align-items:baseline;gap:12px;white-space:nowrap}.hc-price strong{font-size:28px;font-weight:600;line-height:1.15}.hc-price>span{font-size:13px}.hc-price-facts{display:flex;gap:8px 16px;flex-wrap:wrap;color:var(--yx-muted);font-size:11px;align-items:baseline}.hc-chart-full{width:100%;position:relative;min-width:0}.hs-chart-v35 #hs-daily-chart{position:relative;width:100%;height:590px;min-width:0;box-sizing:border-box}.hc-hover-caption{position:absolute;top:2px;left:5px;right:60px;z-index:4;background:var(--yx-surface,#fffdf9);font-size:11px;line-height:1.4;color:var(--yx-muted);pointer-events:none;overflow-wrap:anywhere}.hc-hover-caption[hidden]{display:none}.hc-pane-title{position:absolute;left:6px;z-index:3;pointer-events:none;font-size:10px;color:var(--yx-muted);background:var(--yx-surface,#fffdf9);padding:0 3px}.hc-indicator-status,.hc-period-notice{font-size:11px;color:var(--yx-muted);margin-bottom:8px;line-height:1.5}.hs-chart-v35 [hidden]{display:none}.hc-measure-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}.hs-chart-v35 .hc-measure-panel{padding:8px 0;margin-bottom:5px;border-top:0;border-bottom:1px solid var(--yx-divider)}.hc-measure-advanced{margin-top:5px;font-size:11px;color:var(--yx-muted)}.hs-chart-v35 .hc-measure-advanced[open]{display:block}.hc-measure-advanced .hc-measure-inputs{margin-top:8px}.hc-measure-advanced small{display:block;margin-top:4px}.hc-measure-advanced summary{cursor:pointer;padding:0;background:transparent;border:0;font-size:11px}.hs-chart-v35 .hc-measure-result{gap:4px 12px}.hc-measure-result>span{line-height:1.6}.hc-marker-details:not([hidden]){border-top:1px solid var(--yx-divider);padding-top:14px;margin-top:8px}.hs-chart-v35 .hc-attribution{display:inline-block;font-size:9px;color:var(--yx-muted);margin-top:9px;opacity:.7}.hc-cache-list{max-height:55vh;overflow:auto}.hc-cache-list article{padding:10px 0;border-bottom:1px solid var(--yx-divider);display:grid;gap:6px}.hc-cache-list small{overflow-wrap:anywhere;font-size:11px;color:var(--yx-muted)}.hc-cache-list button{justify-self:start}.hc-toolbar button:focus-visible,.hc-toolbar summary:focus-visible{outline:2px solid var(--yx-accent);outline-offset:2px}@media(max-width:760px){.hc-heading{align-items:flex-start;gap:8px;margin-bottom:10px}.hc-heading>div{gap:7px}.hc-heading h2{font-size:18px}.hc-legend{gap:6px;font-size:10px;flex-wrap:wrap;justify-content:flex-end}.hc-toolbar{gap:7px}.hc-segment button{padding:7px 10px;font-size:12px}.hc-tools{gap:2px}.hc-toolbar .hc-icon{width:31px;height:31px}.hs-chart-v35 .hc-day-stats{display:flex;gap:8px}.hc-price strong{font-size:26px}.hc-price{gap:10px}.hc-price-facts{gap:5px 10px}.hs-chart-v35 #hs-daily-chart{height:485px}.hc-source{font-size:10px}.hc-hover-caption{font-size:9px;right:55px}.hc-measure-bar{align-items:flex-start}.hc-measure-result{font-size:11px}.hc-measure-result>span{font-size:10px}.hc-menu{max-height:70vh;overflow:auto}.hc-heading .hc-adjust-badge{white-space:nowrap}}@media(max-width:440px){.hc-toolbar .hc-tools{flex-basis:100%;justify-content:flex-end;margin-top:-2px}.hc-heading{flex-wrap:wrap}.hc-heading .hc-legend{margin-left:auto}.hc-menu{width:260px}.hc-hover-caption{max-height:40px;overflow:hidden}}

}
