@font-face{font-family:"Piggyone Chinese";src:url('./fonts/noto-sans-sc.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
.strategy-chart-embedded{font-family:"Piggyone Chinese",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;margin:20px 0;border-top:1px solid #284353;padding-top:14px;color:#b5cddb;min-width:0}
.strategy-chart-embedded h3{font-size:16px;color:#9de6d1;margin:8px 0}
.sc-source-note{font-size:11px;color:#89a9bd;margin:6px 0;line-height:1.7}
.strategy-chart-embedded button,.strategy-chart-embedded select{font-family:inherit;cursor:pointer;background:#102735;color:#b7d8e7;border:1px solid #305568;border-radius:6px;padding:5px 9px;font-size:12px}
.strategy-chart-embedded button.active{color:#8ee7c9;border-color:#70dbb7;background:#153d3b}
.sc-toolbar,.sc-periods,.sc-legend,.sc-footer{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.sc-toolbar{padding:8px 0}.sc-symbol{max-width:300px}.sc-periods button{padding:4px 7px}.sc-status{font-size:11px;color:#77ccb5;margin-left:auto}
.sc-ohlc{font:12px/1.7 ui-monospace,"Piggyone Chinese",system-ui,monospace;min-height:32px;padding:5px 0;color:#accbdb}
.sc-plot{height:clamp(230px,32dvh,360px);width:100%;position:relative}
.sc-legend{margin-top:7px;font-size:11px;gap:14px}.sc-legend input{accent-color:#76e4c1;vertical-align:middle}
.sc-event-detail{min-height:23px;max-height:44px;overflow:auto;font-size:11px;color:#9bb8cb;margin-top:5px}
.sc-footer{margin:6px 0}.sc-footer a{margin-left:auto;font-size:10px;color:#87aabc}
.sc-error{display:flex;gap:10px;align-items:center;color:#ffc789;font-size:12px}.sc-error:empty{display:none}
.sc-orders-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sc-orders-count{margin-left:auto;font-size:11px;color:#87a7bb}
.sc-orders-scroll{height:180px;max-height:180px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #284252;border-radius:6px;scrollbar-color:#456777 #0b202e;scrollbar-width:thin}
.sc-orders-scroll table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}.sc-orders-scroll th,.sc-orders-scroll td{text-align:right;padding:7px 10px;border-bottom:1px solid #203a49;line-height:1.6}
.sc-orders-scroll th{position:sticky;top:0;z-index:1;color:#8baabf;background:#102633}.sc-orders-scroll td:first-child,.sc-orders-scroll th:first-child,.sc-orders-scroll td:nth-child(2),.sc-orders-scroll th:nth-child(2){text-align:left}
.sc-orders-scroll tbody tr{cursor:pointer}.sc-orders-scroll tbody tr:hover{background:#133038}.sc-buy{color:#76e4c1}.sc-sell{color:#f58799}.sc-orders-note{font-size:11px;color:#87a7bb;margin:6px 0}
@media(max-width:600px){.sc-symbol{max-width:100%}.sc-status{margin-left:0}.sc-plot{height:250px}.sc-orders-scroll{height:165px;max-height:165px}.sc-ohlc{min-height:48px}}

/* Chart layout tables are internal geometry, isolated from the site's report tables. */
.strategy-chart-embedded .sc-plot table{margin:0!important;border:0;border-collapse:separate;border-spacing:0;table-layout:auto;background:transparent;border-radius:0;box-shadow:none}
.strategy-chart-embedded .sc-plot tr,.strategy-chart-embedded .sc-plot td{margin:0;padding:0;border:0;line-height:0;font-size:0;background:transparent;vertical-align:top}
.strategy-chart-embedded .sc-plot tr:hover{background:transparent}
.strategy-chart-embedded .sc-plot{height:clamp(330px,42dvh,440px);isolation:isolate}
.strategy-chart-embedded .sc-plot canvas{max-width:none;border-radius:0}
.sc-time-readout{display:block;min-height:24px;color:#c3dce9;font:12px/1.8 ui-monospace,"Piggyone Chinese",monospace;font-variant-numeric:tabular-nums;margin-bottom:6px}
.strategy-chart-embedded .sc-ohlc{min-height:26px;overflow-wrap:anywhere;padding-bottom:0}
.strategy-chart-embedded .sc-toolbar{gap:10px;padding:10px 0 8px;align-items:center}
.strategy-chart-embedded .sc-symbol{flex:1 1 250px;min-width:0;max-width:100%;width:auto}
.strategy-chart-embedded .sc-periods{gap:5px}
.strategy-chart-embedded .sc-legend{padding:8px 0 3px;margin-top:0;gap:10px 16px}
.strategy-chart-embedded .sc-event-detail{box-sizing:border-box;line-height:1.8;min-height:28px;max-height:64px;overflow:auto;overflow-wrap:anywhere;padding:5px 8px;border-left:2px solid #2b6570;background:#0b2230}
.strategy-chart-embedded .sc-footer{padding:6px 0 12px;row-gap:10px}
.strategy-chart-embedded .sc-footer button{min-height:30px}
.strategy-chart-embedded .sc-orders{padding-top:8px;border-top:1px solid #284353}
.strategy-chart-embedded .sc-orders-head{gap:8px;padding:6px 0 10px}
.strategy-chart-embedded .sc-orders-head h3{margin:0;flex:1 1 190px}
.strategy-chart-embedded .sc-orders-head select{max-width:100%;min-width:120px}
.strategy-chart-embedded .sc-orders-scroll table{margin:0;table-layout:auto}
.strategy-chart-embedded .sc-orders-scroll tr.sc-selected{background:#19414b;outline:1px solid #3a8d91;outline-offset:-1px}
.strategy-chart-embedded .sc-orders-scroll td{font-variant-numeric:tabular-nums}
@media(max-width:600px){.strategy-chart-embedded .sc-plot{height:330px}.strategy-chart-embedded .sc-periods{width:100%}.strategy-chart-embedded .sc-status{margin-left:0}.strategy-chart-embedded .sc-footer a{width:100%;margin-left:0}.strategy-chart-embedded .sc-legend{font-size:11px;gap:8px}.strategy-chart-embedded .sc-orders-count{width:100%;margin-left:0}}

#dialog:has(.strategy-chart-embedded){width:min(1180px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box}

.strategy-chart-embedded button:disabled{opacity:.55;cursor:wait}

.strategy-chart-embedded .sc-event-detail[hidden]{display:none}
