/* Scoped market UI; never changes global application styles. */
#drawer.mv-stock-window{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;z-index:1100;border-radius:0;display:flex;flex-direction:column;background:#0b1b27;overflow:hidden}
#drawer.mv-stock-window.hidden{display:none}
#drawer.mv-stock-window>header{flex:none;min-height:56px;padding:10px 24px}
#drawer.mv-stock-window #drawerClose{min-width:44px;min-height:44px;color:#e8f2f6;border:1px solid rgba(170,203,219,.25);border-radius:8px}
#drawer.mv-stock-window #drawerBody{min-height:0;min-width:0;flex:1;overflow:auto;padding:16px 20px 24px;overscroll-behavior:contain;scrollbar-width:none}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar,.mv-market .mv-list::-webkit-scrollbar{display:none}
#drawer.mv-stock-window .mv-market{max-width:none;width:100%;min-width:0}
#drawer.mv-stock-window .mv-market h2{font-size:26px;letter-spacing:normal;color:var(--mv-ink)}
#drawer.mv-stock-window .mv-heading{padding:0;border:0;background:none}
.mv-market .mv-quote-name{display:flex;align-items:center;gap:9px;min-width:0}
.mv-market .mv-stock-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;background:#213b4b;border-radius:9px;font-size:22px}
.mv-market .mv-quote-name>span:last-child{min-width:0;overflow-wrap:anywhere}
.mv-market button:focus-visible,.mv-market input:focus-visible,#drawer.mv-stock-window #drawerClose:focus-visible{outline:2px solid #65e1d5;outline-offset:3px}
.mv-market .mv-heading-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.mv-market .mv-heading-actions button{padding:10px 14px;border-radius:8px;border:1px solid #456579;background:#203c4d;color:#e8f2f6;cursor:pointer}
.mv-market .mv-heading-actions .mv-issue-open{background:#19685e;border-color:#48b4a1;font-weight:700}
.mv-market .mv-issue-panel{position:fixed;inset:70px 24px 24px;z-index:2;overflow:auto;overscroll-behavior:contain;background:#102532;border:1px solid #456579;border-radius:16px;box-shadow:0 18px 70px #0009;padding:24px;max-width:980px;margin:auto}
.mv-market .mv-issue-panel[hidden]{display:none}
.mv-market .mv-issue-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.mv-market .mv-issue-panel h3{font-size:22px}
.mv-market .mv-issue-panel button{min-height:42px;padding:8px 14px;border:1px solid #456579;border-radius:8px;background:#234456;color:#e8f2f6;cursor:pointer}
.mv-market .mv-issue-panel button:disabled{opacity:.45;cursor:not-allowed}
.mv-market .mv-issue-tabs{display:flex;gap:10px;margin:16px 0}
.mv-market .mv-issue-tabs .is-active{background:#19685e;border-color:#65d5bb}
.mv-market .mv-issue-copy{color:var(--mv-muted);line-height:1.8;overflow-wrap:anywhere}
.mv-market .mv-issue-copy ul{padding-left:22px}
.mv-market .mv-issue-form,.mv-market .mv-sponsor-login{display:grid;gap:16px;margin-top:18px}.mv-market .mv-sponsor-cta{display:grid;gap:12px;justify-items:start;margin-top:18px;padding:16px;border:1px solid #456579;border-radius:10px;background:#0b1b27}
.mv-market .mv-issue-form label{display:grid;gap:8px}
.mv-market .mv-issue-form input,.mv-market .mv-issue-form select{min-width:0;width:100%;padding:11px;background:#091a24;border:1px solid #456579;border-radius:8px;color:#e8f2f6}
.mv-market .mv-issue-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;background:#0b1b27;border-radius:10px}
.mv-market .mv-issue-summary span{display:grid;gap:6px;overflow-wrap:anywhere}
.mv-market .mv-issue-summary small{color:var(--mv-muted)}
.mv-market .mv-issue-feedback{min-height:22px;line-height:1.7}
.mv-market .mv-issue-review{padding:16px;border:1px solid #b49355;border-radius:10px;background:#352f20;line-height:1.8}
.mv-market .mv-issue-review[hidden]{display:none}
.mv-market .mv-issue-submit{justify-self:start;background:#19685e!important;border-color:#65d5bb!important}
@media(max-width:640px){#drawer.mv-stock-window>header{padding:6px 12px}#drawer.mv-stock-window #drawerBody{padding:14px 12px 24px}.mv-market .mv-heading{flex-wrap:wrap}.mv-market .mv-heading-actions{width:100%;justify-content:flex-start}.mv-market .mv-issue-panel{inset:64px 8px 8px;padding:16px;border-radius:12px}.mv-market .mv-issue-summary{grid-template-columns:1fr}.mv-market .mv-issue-tabs{flex-wrap:wrap}.mv-market .mv-issue-panel h3{font-size:19px}.mv-market .mv-stock-head{flex-wrap:wrap;gap:12px}.mv-market .mv-stock-head h3{overflow-wrap:anywhere}.mv-market .mv-trade{grid-template-columns:1fr}.mv-market .mv-estimate{min-width:0}.mv-market .mv-estimate b{overflow-wrap:anywhere}}

.mv-market{--mv-ink:#e8f2f6;--mv-muted:#9aaebd;--mv-border:rgba(170,203,219,.16);--mv-card:#142530;color:var(--mv-ink);font-size:15px;max-width:1300px;margin:auto}.mv-market *{box-sizing:border-box}.mv-market h2,.mv-market h3,.mv-market p{margin:0}.mv-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.mv-heading small{color:#5fd1cb;letter-spacing:.16em;font-size:11px}.mv-heading h2{font-size:26px;margin:6px 0}.mv-heading p,.mv-market .mv-source,.mv-positions>p,.mv-order-note,.mv-coverage{color:var(--mv-muted);font-size:13px;line-height:1.65}.mv-live{color:#67d6ba;font-size:13px;white-space:nowrap}.mv-ticker{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 16px;border:1px solid rgba(126,189,210,.2);border-radius:10px;background:rgba(14,33,46,.75);color:#dfedf3;font-size:13px}.mv-ticker>strong{font-size:21px;font-variant-numeric:tabular-nums}.mv-ticker small{color:#9aaebd;margin-left:8px}.mv-ticker-chart{flex:1;min-width:150px;max-width:230px;margin-left:auto;height:40px}.mv-ticker-chart .mv-chart{height:40px}.mv-ticker-chart .mv-axis,.mv-ticker-chart .mv-grid{display:none}.mv-ticker-chart .mv-line{stroke-width:3}.mv-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.mv-summary>div{padding:14px;border:1px solid var(--mv-border);border-radius:10px;background:var(--mv-card)}.mv-summary small{display:block;color:var(--mv-muted);margin-bottom:8px;font-size:12px}.mv-summary b{font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mv-market .mv-source{margin-bottom:14px}.mv-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px}.mv-watch,.mv-detail,.mv-positions{background:var(--mv-card);border:1px solid var(--mv-border);border-radius:12px;padding:16px;min-width:0}.mv-watch label,.mv-trade label{display:flex;flex-direction:column;gap:8px;color:var(--mv-muted);font-size:13px}.mv-market input{background:#0d1b25;color:#e8f2f6;border:1px solid #38515f;border-radius:7px;padding:10px 12px;font-size:15px;min-width:0;width:100%}.mv-market input:focus{outline:2px solid #62cdc7;outline-offset:1px}.mv-list{max-height:605px;overflow:auto;margin-top:12px;padding-right:3px;scrollbar-width:thin}.mv-market button{font:inherit;cursor:pointer;border:1px solid #38515f;border-radius:7px;padding:8px 12px;background:#203846;color:#dfedf3}.mv-market button:focus-visible{outline:2px solid #76ded5;outline-offset:2px}.mv-market button:disabled{cursor:default;opacity:.4}.mv-market .mv-quote{display:flex;align-items:center;justify-content:space-between;position:relative;gap:10px;padding:12px 10px;margin:0 0 5px;border:1px solid transparent;border-radius:8px;background:transparent;width:100%;text-align:left}.mv-market .mv-quote:hover{background:#1c3442}.mv-market .mv-quote.is-selected{border-color:#5ac9c1;background:#1b3d45}.mv-quote>span:last-of-type{text-align:right}.mv-quote b{display:block;font-size:14px}.mv-quote small{display:block;margin-top:5px;color:var(--mv-muted);font-size:11px}.mv-quote i{position:absolute;bottom:1px;right:10px;font-style:normal;font-size:10px;color:#d5bb79}.mv-up{color:#f38c86!important}.mv-down{color:#69d7b3!important}.mv-stock-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.mv-stock-head h3{font-size:22px}.mv-stock-head h3 small{font-size:13px;color:var(--mv-muted);margin-left:6px}.mv-stock-head p{color:var(--mv-muted);font-size:13px;margin-top:7px}.mv-stock-head>div:last-child{text-align:right}.mv-stock-head strong{font-size:28px;display:block;font-variant-numeric:tabular-nums}.mv-stock-head span{display:block;font-size:14px;margin-top:5px}.mv-period{display:flex;gap:7px;margin-top:20px}.mv-market .mv-period button{font-size:13px;background:transparent;padding:7px 13px}.mv-market .mv-period button.is-active{color:#8ce0d8;background:#254951;border-color:#50918f}.mv-main-chart{min-height:195px;margin-top:12px}.mv-chart{width:100%;height:auto;display:block;overflow:visible}.mv-grid{stroke:rgba(167,193,207,.14);stroke-width:1}.mv-axis{fill:#9aaebd;font-size:12px}.mv-line{fill:none;stroke:#69d7cf;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.mv-dot{fill:#69d7cf}.mv-hit{fill:transparent}.mv-hit:hover{fill:#69d7cf}.mv-candle-up line,.mv-candle-up rect{stroke:#f38c86;fill:#f38c86}.mv-candle-down line,.mv-candle-down rect{stroke:#69d7b3;fill:#69d7b3}.mv-coverage{min-height:38px}.mv-trade{border-top:1px solid var(--mv-border);padding-top:16px;display:grid;grid-template-columns:150px 1fr;gap:12px;margin-top:12px}.mv-estimate{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;align-content:center;color:var(--mv-muted)}.mv-estimate b{display:block;color:#e8f2f6;margin-top:3px;font-size:14px}.mv-trade-actions{display:flex;gap:10px;grid-column:1/-1}.mv-market .mv-trade-actions button{flex:1;font-weight:bold;padding:11px}.mv-market .mv-buy{background:#a84b49;border-color:#c7716c;color:#fff}.mv-market .mv-sell{background:#24785f;border-color:#449c81;color:#fff}.mv-order-note{grid-column:1/-1}.mv-feedback{font-size:13px;line-height:1.6;margin-top:10px;color:#9be1c8;min-height:20px}.mv-feedback.mv-error{color:#ffaba0}.mv-positions{margin-top:18px}.mv-positions h3{font-size:18px;margin-bottom:8px}.mv-position-table{overflow-x:auto;margin-top:12px}.mv-position-table table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px;text-align:right}.mv-position-table th{font-size:12px;color:var(--mv-muted);font-weight:normal;background:rgba(7,20,29,.4)}.mv-position-table th,.mv-position-table td{padding:12px 10px;border-bottom:1px solid var(--mv-border)}.mv-position-table th:first-child,.mv-position-table td:first-child{text-align:left}.mv-position-table small{display:block;margin-top:4px;opacity:.75}.mv-position-table button{font-size:12px;padding:5px 10px}.mv-empty{padding:30px 10px;text-align:center;color:#9aaebd;font-size:14px;line-height:1.7}
/* Industry controls wrap within the watch panel; quote labels stay in the name column. */
.mv-market .mv-industry-filters{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin:12px 0 8px}
.mv-market .mv-industry-filters button{min-height:32px;padding:5px 9px;border-radius:999px;font-size:12px;line-height:1.2;white-space:nowrap}
.mv-market .mv-industry-filters button.is-active{background:#19685e;border-color:#65d5bb;color:#fff;font-weight:700}
.mv-market .mv-industry{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:2px 6px;border:1px solid #426e78;border-radius:999px;background:#1b3d48;color:#a6e6db;font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap;vertical-align:middle}
.mv-market .mv-quote-identity{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;overflow:hidden}
.mv-market .mv-quote-identity .mv-industry{flex:none}
.mv-market .mv-stock-head{min-width:0}
.mv-market .mv-stock-head>div:first-child{min-width:0}
.mv-market .mv-stock-head p .mv-industry{display:inline-flex;margin:0 6px 0 0}
.mv-market .mv-stock-head p span:not(.mv-industry){display:inline;margin:0;font-size:inherit}
.mv-market .mv-position-table td:first-child .mv-industry{margin-left:4px}
/* Wide, compact quote grid: five aligned fields on every row. */
#drawer.mv-stock-window .mv-layout{grid-template-columns:minmax(690px,58%) minmax(0,1fr);gap:14px}
#drawer.mv-stock-window .mv-watch{min-width:0;padding:16px 14px}
.mv-market .mv-list-head,.mv-market .mv-quote{display:grid;grid-template-columns:minmax(126px,1.5fr) 58px 52px minmax(72px,.85fr) minmax(80px,1fr) 76px 72px;align-items:center;gap:8px;min-width:0}
.mv-market .mv-list-head{padding:9px 10px 8px;border-bottom:1px solid var(--mv-border);color:var(--mv-muted);font-size:12px;letter-spacing:.03em}
.mv-market .mv-list-head span:nth-last-child(-n+2){text-align:right}
.mv-market .mv-list{max-height:min(65vh,690px);margin-top:0;padding-right:2px}
.mv-market .mv-quote{position:relative;min-height:48px;padding:4px 8px;margin:2px 0;border-radius:6px;white-space:nowrap;font-variant-numeric:tabular-nums;cursor:pointer}
.mv-market .mv-quote:nth-child(even):not(.is-selected){background:rgba(255,255,255,.025)}
.mv-market .mv-quote-name{display:flex;align-items:center;gap:6px;overflow:hidden}
.mv-market .mv-quote .mv-stock-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:8px;font-size:27px;line-height:1}
.mv-market .mv-sail-logo{display:inline-block;width:100%;max-width:40px;height:32px;object-fit:contain;vertical-align:middle}
.mv-market .mv-stock-head .mv-sail-logo,.mv-market .mv-position-table .mv-sail-logo{width:26px;height:22px}
.mv-market .mv-quote .mv-quote-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
.mv-market .mv-quote-code,.mv-market .mv-quote-industry,.mv-market .mv-quote-business,.mv-market .mv-quote-company{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.mv-market .mv-quote-price,.mv-market .mv-quote-change{text-align:right;font-size:13px;font-weight:600;white-space:nowrap}
.mv-market .mv-quote-tick .mv-quote-price,.mv-market .mv-quote-tick .mv-quote-change{animation:mv-price-tick 1.1s ease-out 2}
@keyframes mv-price-tick{0%,100%{filter:brightness(1);opacity:1}45%{filter:brightness(1.8);opacity:.55}}
.mv-market .mv-tail-live{stroke:#f6d79b;stroke-width:3;stroke-linecap:round;animation:mv-tail-flash 1.2s ease-out 1}
.mv-market .mv-tail-dot{fill:#f6d79b;animation:mv-tail-flash 1.2s ease-out 1}
@keyframes mv-tail-flash{0%{opacity:.25;filter:brightness(1.7)}45%{opacity:1;filter:brightness(1.4)}100%{opacity:1;filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){.mv-market .mv-quote-tick .mv-quote-price,.mv-market .mv-quote-tick .mv-quote-change,.mv-market .mv-tail-live,.mv-market .mv-tail-dot{animation:none}}
@media(max-width:1150px){#drawer.mv-stock-window .mv-layout{grid-template-columns:1fr}#drawer.mv-stock-window .mv-watch{padding:12px}#drawer.mv-stock-window .mv-list{max-height:250px}}
@media(max-width:1150px){#drawer.mv-stock-window .mv-layout{grid-template-columns:1fr}#drawer.mv-stock-window .mv-watch{overflow-x:auto}#drawer.mv-stock-window .mv-list-head,#drawer.mv-stock-window .mv-list{min-width:690px}#drawer.mv-stock-window .mv-list{max-height:260px}#drawer.mv-stock-window .mv-quote{min-width:690px}}
@media(max-width:700px){#drawer.mv-stock-window .mv-list-head{padding-right:12px}}
@media(max-width:640px){#drawer.mv-stock-window .mv-quote{padding:6px 10px}#drawer.mv-stock-window .mv-list{max-height:260px}}
/* Market workstation: fixed viewport, internal scroll only for variable-length lists. */
#drawer.mv-stock-window>header{min-height:44px;padding:5px 15px}
#drawer.mv-stock-window #drawerClose{min-height:34px}
#drawer.mv-stock-window #drawerBody{overflow:hidden;padding:7px 12px 10px}
#drawer.mv-stock-window .mv-market{height:100%;display:flex;flex-direction:column;gap:6px;min-height:0}
#drawer.mv-stock-window .mv-heading{flex:none;margin:0;gap:10px}
#drawer.mv-stock-window .mv-heading small{font-size:10px}
#drawer.mv-stock-window .mv-heading h2{font-size:20px;margin:1px 0}
#drawer.mv-stock-window .mv-heading p{font-size:11px;line-height:1.25}
#drawer.mv-stock-window .mv-heading-actions{gap:5px}
#drawer.mv-stock-window .mv-heading-actions button{padding:5px 7px;font-size:11px}
#drawer.mv-stock-window .mv-live{font-size:11px}
#drawer.mv-stock-window .mv-overview{display:grid;grid-template-columns:minmax(210px,.95fr) minmax(0,3fr);gap:6px;flex:none;min-width:0}
#drawer.mv-stock-window .mv-ticker{height:100%;padding:5px 8px;gap:5px;font-size:11px}
#drawer.mv-stock-window .mv-ticker>strong{font-size:18px}
#drawer.mv-stock-window .mv-ticker-chart{height:30px;min-width:54px;max-width:90px}
#drawer.mv-stock-window .mv-ticker-chart .mv-chart{height:30px}
#drawer.mv-stock-window .mv-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0}
#drawer.mv-stock-window .mv-summary>div{padding:5px 7px;min-width:0}
#drawer.mv-stock-window .mv-summary small{font-size:11px;margin-bottom:1px}
#drawer.mv-stock-window .mv-summary b{font-size:12px}
#drawer.mv-stock-window .mv-source{flex:none;margin:0;font-size:11px;line-height:1.2}
#drawer.mv-stock-window .mv-layout{display:grid;grid-template-columns:minmax(0,55%) minmax(0,45%);grid-template-rows:minmax(0,1fr) minmax(0,auto);gap:6px;flex:1;min-height:0}
#drawer.mv-stock-window .mv-watch{grid-column:1;grid-row:1 / 3;display:flex;flex-direction:column;min-height:0;padding:8px;overflow:hidden}
#drawer.mv-stock-window .mv-detail{grid-column:2;grid-row:1;min-height:0;min-width:0;padding:8px;overflow:hidden;display:flex;flex-direction:column}
#drawer.mv-stock-window .mv-positions{grid-column:2;grid-row:2;margin:0;min-height:0;padding:7px 9px;overflow:hidden}
#drawer.mv-stock-window .mv-positions-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
#drawer.mv-stock-window .mv-positions h3{margin:0;font-size:14px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{font-size:11px;line-height:1.25}
#drawer.mv-stock-window .mv-position-table{max-height:min(20vh,170px);overflow:auto;margin-top:3px;scrollbar-width:none}
#drawer.mv-stock-window .mv-position-table::-webkit-scrollbar{display:none}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:3px 4px;font-size:11px}
#drawer.mv-stock-window .mv-positions .mv-empty{padding:6px;font-size:12px}
#drawer.mv-stock-window .mv-watch label{gap:2px;font-size:11px}
#drawer.mv-stock-window .mv-search{padding:5px 8px;font-size:12px}
#drawer.mv-stock-window .mv-industry-filters{margin:3px 0;gap:3px;flex:none}
#drawer.mv-stock-window .mv-industry-filters button{padding:3px 5px;font-size:11px}
#drawer.mv-stock-window .mv-list-head{padding:4px 7px;font-size:11px;flex:none}
#drawer.mv-stock-window .mv-list{flex:1;max-height:none;min-height:0;overflow:auto;scrollbar-width:none}
#drawer.mv-stock-window .mv-quote{min-height:43px;padding:2px 6px;margin:1px 0}
#drawer.mv-stock-window .mv-quote .mv-stock-icon{width:37px;height:37px;flex-basis:37px}
#drawer.mv-stock-window .mv-stock-head h3{font-size:17px}
#drawer.mv-stock-window .mv-stock-head h3 small{font-size:11px}
#drawer.mv-stock-window .mv-stock-head strong{font-size:20px}
#drawer.mv-stock-window .mv-stock-head p{font-size:11px;line-height:1.25;margin-top:3px}
#drawer.mv-stock-window .mv-period{margin-top:5px;flex:none;gap:4px}
#drawer.mv-stock-window .mv-period button{padding:4px 7px;font-size:11px}
#drawer.mv-stock-window .mv-main-chart{flex:1;min-height:75px;margin-top:3px;overflow:hidden}
#drawer.mv-stock-window .mv-main-chart .mv-chart{width:100%;height:100%;preserveAspectRatio:none}
#drawer.mv-stock-window .mv-coverage{min-height:0;font-size:10px;line-height:1.2;margin:2px 0}
#drawer.mv-stock-window .mv-trade{margin-top:3px;padding-top:5px;gap:5px;grid-template-columns:100px minmax(0,1fr)}
#drawer.mv-stock-window .mv-trade label{gap:3px;font-size:11px}
#drawer.mv-stock-window .mv-trade input{padding:5px;font-size:12px}
#drawer.mv-stock-window .mv-estimate{gap:3px;font-size:11px}
#drawer.mv-stock-window .mv-estimate b{font-size:12px;margin:0}
#drawer.mv-stock-window .mv-trade-actions{gap:5px}
#drawer.mv-stock-window .mv-trade-actions button{padding:5px;font-size:12px}
#drawer.mv-stock-window .mv-order-note{font-size:10px;line-height:1.2}
#drawer.mv-stock-window .mv-feedback{min-height:0;margin-top:3px;font-size:11px;line-height:1.2}
@media(max-width:1150px){#drawer.mv-stock-window .mv-layout{grid-template-columns:minmax(0,52%) minmax(0,48%)}#drawer.mv-stock-window .mv-watch{overflow:hidden}#drawer.mv-stock-window .mv-list-head,#drawer.mv-stock-window .mv-list,#drawer.mv-stock-window .mv-quote{min-width:0}}
@media(max-width:740px){#drawer.mv-stock-window .mv-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1.2fr) minmax(0,auto)}#drawer.mv-stock-window .mv-watch{grid-column:1;grid-row:1;overflow:hidden}#drawer.mv-stock-window .mv-detail{grid-column:1;grid-row:2}#drawer.mv-stock-window .mv-positions{grid-column:1;grid-row:3}#drawer.mv-stock-window .mv-overview{grid-template-columns:1fr}#drawer.mv-stock-window .mv-summary{grid-template-columns:repeat(5,minmax(0,1fr))}#drawer.mv-stock-window .mv-summary>div{padding:3px}#drawer.mv-stock-window .mv-summary b{font-size:10px}#drawer.mv-stock-window .mv-ticker{padding:3px 5px}#drawer.mv-stock-window .mv-ticker-chart{display:none}#drawer.mv-stock-window .mv-positions .mv-position-table{max-height:10vh}#drawer.mv-stock-window .mv-stock-head h3{font-size:14px}#drawer.mv-stock-window .mv-stock-head strong{font-size:17px}#drawer.mv-stock-window .mv-coverage{font-size:9px}}
#drawer.mv-stock-window .mv-positions .mv-position-table{overflow-y:auto;overflow-x:auto}
#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:min(20vh,170px)}
@media(max-width:740px){#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:10vh}#drawer.mv-stock-window .mv-detail{padding:5px 7px}#drawer.mv-stock-window .mv-stock-head p{margin-top:0;font-size:10px}#drawer.mv-stock-window .mv-period{margin-top:2px}#drawer.mv-stock-window .mv-period button{padding:2px 6px}#drawer.mv-stock-window .mv-trade{margin-top:1px;padding-top:3px}#drawer.mv-stock-window .mv-trade-actions button{padding:3px}#drawer.mv-stock-window .mv-feedback{margin-top:1px}#drawer.mv-stock-window .mv-coverage{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:900px){.mv-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.mv-layout{grid-template-columns:220px minmax(0,1fr)}.mv-watch,.mv-detail{padding:12px}.mv-estimate{grid-template-columns:1fr}.mv-trade{grid-template-columns:120px 1fr}}
@media(max-width:640px){.mv-heading{align-items:flex-start}.mv-heading h2{font-size:22px}.mv-live{font-size:11px}.mv-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mv-layout{grid-template-columns:1fr}.mv-list{max-height:210px}.mv-market .mv-quote{padding:8px}.mv-stock-head strong{font-size:25px}.mv-trade{grid-template-columns:120px minmax(0,1fr)}.mv-estimate{grid-template-columns:1fr 1fr}.mv-ticker-chart{min-width:100px;max-width:150px}.mv-ticker{gap:8px}.mv-ticker>strong{font-size:18px}}

/* ===== 股票窗口：只在顶栏下沿与底栏上沿之间显示，内容不滚动 ===== */
#drawer.mv-stock-window{position:fixed;left:0;right:0;top:var(--topbar-h,56px);bottom:var(--dock-h,80px);width:auto;height:auto;max-width:none;z-index:1100;border-radius:0;display:flex;flex-direction:column;background:#0b1b27;overflow:hidden}
#drawer.mv-stock-window>header{display:none}
#drawer.mv-stock-window #drawerBody{flex:1;min-height:0;min-width:0;overflow:hidden;padding:6px 12px 8px}
#drawer.mv-stock-window .mv-market{height:100%;display:flex;flex-direction:column;gap:4px;min-height:0;max-width:none;width:100%}
#drawer.mv-stock-window .mv-heading{flex:none;margin:0;gap:8px;align-items:center}
#drawer.mv-stock-window .mv-heading small{font-size:9px;letter-spacing:.12em}
#drawer.mv-stock-window .mv-heading h2{font-size:16px;margin:0}
#drawer.mv-stock-window .mv-heading p{font-size:10px;line-height:1.2}
#drawer.mv-stock-window .mv-heading-actions{gap:4px}
#drawer.mv-stock-window .mv-heading-actions button{padding:3px 7px;font-size:10px;border-radius:6px;min-height:0}
#drawer.mv-stock-window #drawerClose{min-width:0;min-height:0;padding:3px 9px;font-size:10px;border-radius:6px;background:#3b2029;border:1px solid #a24d63;color:#ffd9d9}
#drawer.mv-stock-window #drawerClose:hover{background:#4d2934}
#drawer.mv-stock-window .mv-live{font-size:10px}
#drawer.mv-stock-window .mv-overview{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(0,3fr);gap:4px;flex:none;min-width:0}
#drawer.mv-stock-window .mv-ticker{height:100%;padding:3px 7px;gap:4px;font-size:10px}
#drawer.mv-stock-window .mv-ticker>strong{font-size:15px}
#drawer.mv-stock-window .mv-ticker-chart{height:20px;min-width:40px;max-width:70px}
#drawer.mv-stock-window .mv-ticker-chart .mv-chart{height:20px}
#drawer.mv-stock-window .mv-summary{gap:4px;margin:0}
#drawer.mv-stock-window .mv-summary>div{padding:2px 6px}
#drawer.mv-stock-window .mv-summary small{font-size:10px;margin-bottom:0}
#drawer.mv-stock-window .mv-summary b{font-size:11px}
#drawer.mv-stock-window .mv-source{flex:none;margin:0;font-size:10px;line-height:1.15}
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{display:grid;grid-template-columns:minmax(0,37%) minmax(0,63%);grid-template-rows:minmax(0,auto) minmax(140px,1fr);gap:5px;flex:1;min-height:0}
#drawer.mv-stock-window .mv-watch{grid-column:1;grid-row:1 / 3;display:flex;flex-direction:column;min-height:0;padding:5px;overflow:hidden}
#drawer.mv-stock-window .mv-detail{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;min-width:0;padding:5px;overflow:hidden}
#drawer.mv-stock-window .mv-positions{grid-column:2;grid-row:2;display:flex;flex-direction:column;margin:0;min-height:0;padding:4px 7px;overflow:hidden}
}
/* Left watch: compact seven-column grid that never needs horizontal scrolling. */
#drawer.mv-stock-window .mv-watch label{gap:2px;font-size:10px}
#drawer.mv-stock-window .mv-search{padding:3px 7px;font-size:11px}
#drawer.mv-stock-window .mv-industry-filters{margin:3px 0;gap:3px;flex:none}
#drawer.mv-stock-window .mv-industry-filters button{padding:2px 5px;font-size:10px;min-height:0}
#drawer.mv-stock-window .mv-list-head,#drawer.mv-stock-window .mv-quote{grid-template-columns:minmax(0,1.55fr) minmax(0,.75fr) minmax(0,.8fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,.8fr) minmax(0,.75fr);gap:4px}
#drawer.mv-stock-window .mv-list-head{padding:2px 6px;font-size:9.5px;flex:none}
#drawer.mv-stock-window .mv-list-head span:nth-last-child(-n+2){text-align:right}
#drawer.mv-stock-window .mv-list{flex:1;max-height:none;min-height:0;overflow:auto;scrollbar-width:none}
#drawer.mv-stock-window .mv-list::-webkit-scrollbar{display:none}
#drawer.mv-stock-window .mv-quote{min-height:21px;padding:0 6px;margin:0}
#drawer.mv-stock-window .mv-quote .mv-stock-icon{width:15px;height:15px;flex-basis:15px;font-size:11px;border-radius:3px}
#drawer.mv-stock-window .mv-sail-logo{width:15px;height:12px}
#drawer.mv-stock-window .mv-quote-name{gap:4px}
#drawer.mv-stock-window .mv-quote-identity{flex-direction:row;align-items:center;gap:4px;overflow:hidden}
#drawer.mv-stock-window .mv-quote-identity .mv-industry{flex:none;font-size:8.5px;padding:0 2px}
#drawer.mv-stock-window .mv-quote .mv-quote-label{min-width:0;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drawer.mv-stock-window .mv-quote-code,#drawer.mv-stock-window .mv-quote-industry,#drawer.mv-stock-window .mv-quote-business,#drawer.mv-stock-window .mv-quote-company{font-size:10px}
#drawer.mv-stock-window .mv-quote-price,#drawer.mv-stock-window .mv-quote-change{font-size:10.5px}
/* Detail: compact quote head, shorter chart, then trade controls. */
#drawer.mv-stock-window .mv-stock-head h3{font-size:14px}
#drawer.mv-stock-window .mv-stock-head h3 small{font-size:10px}
#drawer.mv-stock-window .mv-stock-head strong{font-size:17px}
#drawer.mv-stock-window .mv-stock-head p{font-size:10px;line-height:1.2;margin-top:2px}
#drawer.mv-stock-window .mv-period{margin-top:3px;flex:none;gap:3px}
#drawer.mv-stock-window .mv-period button{padding:2px 6px;font-size:10px;min-height:0}
#drawer.mv-stock-window .mv-main-chart{flex:1 1 auto;height:auto;min-height:78px;max-height:clamp(92px,15vh,130px);margin-top:2px;overflow:hidden}
#drawer.mv-stock-window .mv-main-chart .mv-chart{width:100%;height:100%}
#drawer.mv-stock-window .mv-coverage{min-height:0;font-size:9.5px;line-height:1.15;margin:1px 0}
#drawer.mv-stock-window .mv-trade{margin-top:2px;padding-top:3px;gap:3px;grid-template-columns:76px minmax(0,1fr);flex:none}
#drawer.mv-stock-window .mv-trade label{gap:2px;font-size:10px}
#drawer.mv-stock-window .mv-trade input{padding:3px 6px;font-size:11px}
#drawer.mv-stock-window .mv-estimate{gap:2px;font-size:10px}
#drawer.mv-stock-window .mv-estimate b{font-size:11px;margin:0}
#drawer.mv-stock-window .mv-qty-quick{grid-column:1/-1;display:flex;gap:3px;flex-wrap:wrap;margin-top:1px}
#drawer.mv-stock-window .mv-qty-quick button{padding:1px 7px;font-size:10px;min-height:0;border-radius:5px}
#drawer.mv-stock-window .mv-trade-actions{gap:4px}
#drawer.mv-stock-window .mv-trade-actions button{padding:3px;font-size:11px;min-height:0}
#drawer.mv-stock-window .mv-order-note{font-size:9px;line-height:1.15}
#drawer.mv-stock-window .mv-feedback{min-height:0;margin-top:2px;font-size:10px;line-height:1.15}
/* Positions: the largest block, no visible scrollbars. */
#drawer.mv-stock-window .mv-positions-heading{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
#drawer.mv-stock-window .mv-positions h3{margin:0;font-size:13px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{font-size:10px;line-height:1.15}
#drawer.mv-stock-window .mv-position-table{flex:1;min-height:0;max-height:none;overflow:auto;margin-top:2px;scrollbar-width:none}
#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:none}
#drawer.mv-stock-window .mv-position-table::-webkit-scrollbar{display:none}
#drawer.mv-stock-window .mv-position-table table{width:100%;table-layout:fixed;border-collapse:collapse}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:2px 3px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drawer.mv-stock-window .mv-positions .mv-empty{padding:4px;font-size:11px}

/* Phones: one stacked column, no page scroll; the chart gives room to detail. */
@media(max-width:740px){
#drawer.mv-stock-window .mv-heading small,#drawer.mv-stock-window .mv-heading p{display:none}
#drawer.mv-stock-window .mv-heading{flex-wrap:wrap;gap:4px}
#drawer.mv-stock-window .mv-heading-actions{width:100%}
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) minmax(0,250px) minmax(0,auto)}
#drawer.mv-stock-window .mv-main-chart{height:clamp(56px,9vh,80px)}
#drawer.mv-stock-window .mv-order-note{display:none}
#drawer.mv-stock-window .mv-trade{gap:2px}
#drawer.mv-stock-window .mv-quote{min-height:21px}
}

/* Phones: hide duplicated headers so the fixed window still fits without scroll. */
@media(max-width:740px){
#drawer.mv-stock-window .mv-list-head{display:none}
#drawer.mv-stock-window .mv-industry-filters button{padding:1px 4px;font-size:9px}
#drawer.mv-stock-window .mv-stock-head p{display:none}
#drawer.mv-stock-window .mv-main-chart{height:clamp(56px,8vh,72px)}
}

/* ===== 证券窗口：字体整体 +1 号，左侧列表 +2 号；右上半区一分二 ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-main{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:5px;min-height:0;min-width:0}
}
#drawer.mv-stock-window .mv-heading small{font-size:10px}
#drawer.mv-stock-window .mv-heading h2{font-size:17px}
#drawer.mv-stock-window .mv-heading p{font-size:11px}
#drawer.mv-stock-window .mv-heading-actions button{font-size:11px;padding:3px 8px}
#drawer.mv-stock-window #drawerClose{font-size:11px;padding:3px 9px}
#drawer.mv-stock-window .mv-live{font-size:11px}
#drawer.mv-stock-window .mv-ticker{font-size:11px}
#drawer.mv-stock-window .mv-ticker>strong{font-size:16px}
#drawer.mv-stock-window .mv-summary small{font-size:11px}
#drawer.mv-stock-window .mv-summary b{font-size:12px}
#drawer.mv-stock-window .mv-source{font-size:11px}
/* 左侧行情框：字段字体 +2 号 */
#drawer.mv-stock-window .mv-watch label{font-size:12px}
#drawer.mv-stock-window .mv-search{font-size:13px;padding:4px 8px}
#drawer.mv-stock-window .mv-industry-filters button{font-size:12px;padding:3px 6px}
#drawer.mv-stock-window .mv-list-head{font-size:11px;padding:3px 6px}
#drawer.mv-stock-window .mv-quote{min-height:24px;padding:1px 6px}
#drawer.mv-stock-window .mv-quote .mv-quote-label{font-size:12.5px}
#drawer.mv-stock-window .mv-quote-identity .mv-industry{font-size:9.5px}
#drawer.mv-stock-window .mv-quote-code,#drawer.mv-stock-window .mv-quote-industry,#drawer.mv-stock-window .mv-quote-business,#drawer.mv-stock-window .mv-quote-company{font-size:12px}
#drawer.mv-stock-window .mv-quote-price,#drawer.mv-stock-window .mv-quote-change{font-size:12.5px}
/* 右半个股详情：字体 +1 号 */
#drawer.mv-stock-window .mv-stock-head h3{font-size:15px}
#drawer.mv-stock-window .mv-stock-head h3 small{font-size:11px}
#drawer.mv-stock-window .mv-stock-head strong{font-size:18px}
#drawer.mv-stock-window .mv-stock-head p{font-size:11px}
#drawer.mv-stock-window .mv-period button{font-size:11px;padding:3px 7px}
#drawer.mv-stock-window .mv-coverage{font-size:10.5px}
#drawer.mv-stock-window .mv-trade label{font-size:11px}
#drawer.mv-stock-window .mv-trade input{font-size:12px}
#drawer.mv-stock-window .mv-estimate{font-size:11px}
#drawer.mv-stock-window .mv-estimate b{font-size:12px}
#drawer.mv-stock-window .mv-qty-quick button{font-size:11px}
#drawer.mv-stock-window .mv-trade-actions button{font-size:12px}
#drawer.mv-stock-window .mv-order-note{font-size:10px}
#drawer.mv-stock-window .mv-feedback{font-size:11px}
/* 指数分栏 */
#drawer.mv-stock-window .mv-index-panel{display:flex;flex-direction:column;min-height:0;min-width:0;padding:6px;overflow:hidden;background:var(--mv-card);border:1px solid var(--mv-border);border-radius:10px}
#drawer.mv-stock-window .mv-index-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;flex:none}
#drawer.mv-stock-window .mv-index-head h3{margin:0;font-size:14px;color:var(--mv-ink)}
#drawer.mv-stock-window .mv-index-meta{display:flex;align-items:baseline;gap:6px;min-width:0}
#drawer.mv-stock-window .mv-index-value{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
#drawer.mv-stock-window .mv-index-chg{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
#drawer.mv-stock-window .mv-index-count{font-size:10.5px;color:var(--mv-muted)}
#drawer.mv-stock-window .mv-index-chart{flex:1;min-height:70px;margin-top:3px;overflow:hidden}
#drawer.mv-stock-window .mv-index-chart .mv-chart{width:100%;height:100%}
#drawer.mv-stock-window .mv-index-note{flex:none;font-size:10px;color:var(--mv-muted);margin:1px 0 0}
#drawer.mv-stock-window .mv-positions h3{font-size:14px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{font-size:11px}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{font-size:11px}
/* 手机端：曲线区上下排，避免横向挤压 */
@media(max-width:740px){
#drawer.mv-stock-window .mv-main{display:flex;flex-direction:column;min-height:0;grid-column:1;grid-row:2}
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) minmax(0,auto) minmax(0,auto)}
#drawer.mv-stock-window .mv-positions{grid-column:1;grid-row:3}
#drawer.mv-stock-window .mv-index-panel{flex:1;min-height:90px}
}
@media(min-width:741px){
#drawer.mv-stock-window .mv-detail{grid-column:1;grid-row:1}
#drawer.mv-stock-window .mv-index-panel{grid-column:2;grid-row:1}
}
#drawer.mv-stock-window .mv-list{overflow-x:hidden}
#drawer.mv-stock-window .mv-list-head,#drawer.mv-stock-window .mv-quote{gap:3px}
#drawer.mv-stock-window .mv-list-head{padding:3px 4px}
#drawer.mv-stock-window .mv-quote{min-height:23px;padding:1px 4px}
#drawer.mv-stock-window .mv-quote-price,#drawer.mv-stock-window .mv-quote-change{font-size:12px}
#drawer.mv-stock-window .mv-quote-price,#drawer.mv-stock-window .mv-quote-change{min-width:0;overflow:hidden;text-overflow:ellipsis}
#drawer.mv-stock-window .mv-list-head span{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1100px){#drawer.mv-stock-window .mv-main-chart{height:clamp(84px,11vh,108px)}}
#drawer.mv-stock-window .mv-quote{min-height:21px}
#drawer.mv-stock-window .mv-list-head span{white-space:nowrap}
#drawer.mv-stock-window .mv-watch label{font-size:11.5px}
#drawer.mv-stock-window .mv-search{padding:2px 7px}
#drawer.mv-stock-window .mv-industry-filters button{padding:2px 5px}
@media(max-width:740px){
#drawer.mv-stock-window .mv-layout{display:flex;flex-direction:column;gap:5px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
#drawer.mv-stock-window .mv-layout::-webkit-scrollbar{display:none}
#drawer.mv-stock-window .mv-watch,#drawer.mv-stock-window .mv-main,#drawer.mv-stock-window .mv-positions{width:100%;flex:none}
#drawer.mv-stock-window .mv-main{display:flex;flex-direction:column}
#drawer.mv-stock-window .mv-detail{flex:none}
#drawer.mv-stock-window .mv-index-panel{flex:none;min-height:170px}
#drawer.mv-stock-window .mv-watch .mv-list{max-height:none}
}

/* ===== 证券窗口：字体整体再 +2 号；走势曲线靠左；余额/持仓/预估三字段一行 ===== */
#drawer.mv-stock-window .mv-heading small{font-size:12px}
#drawer.mv-stock-window .mv-heading h2{font-size:19px}
#drawer.mv-stock-window .mv-heading p{font-size:13px}
#drawer.mv-stock-window .mv-heading-actions button{font-size:13px}
#drawer.mv-stock-window #drawerClose{font-size:13px}
#drawer.mv-stock-window .mv-live{font-size:13px}
#drawer.mv-stock-window .mv-ticker{font-size:13px;padding:5px 9px}
#drawer.mv-stock-window .mv-ticker>strong{font-size:18px}
#drawer.mv-stock-window .mv-overview{gap:6px}
#drawer.mv-stock-window .mv-summary{gap:6px}
#drawer.mv-stock-window .mv-summary>div{padding:4px 8px}
#drawer.mv-stock-window .mv-summary small{font-size:13px}
#drawer.mv-stock-window .mv-summary b{font-size:14px}
#drawer.mv-stock-window .mv-source{font-size:13px}
#drawer.mv-stock-window .mv-watch label{font-size:13.5px}
#drawer.mv-stock-window .mv-search{font-size:15px}
#drawer.mv-stock-window .mv-industry-filters button{font-size:14px}
#drawer.mv-stock-window .mv-list-head{font-size:13px}
#drawer.mv-stock-window .mv-quote{min-height:19px;padding:0 5px;line-height:1.05}
#drawer.mv-stock-window .mv-quote .mv-quote-label{font-size:14.5px}
#drawer.mv-stock-window .mv-quote-identity .mv-industry{font-size:11.5px}
#drawer.mv-stock-window .mv-quote-code,#drawer.mv-stock-window .mv-quote-industry,#drawer.mv-stock-window .mv-quote-business,#drawer.mv-stock-window .mv-quote-company{font-size:14px}
#drawer.mv-stock-window .mv-quote-price,#drawer.mv-stock-window .mv-quote-change{font-size:14px}
#drawer.mv-stock-window .mv-stock-head h3{font-size:17px}
#drawer.mv-stock-window .mv-stock-head h3 small{font-size:13px}
#drawer.mv-stock-window .mv-stock-head strong{font-size:20px}
#drawer.mv-stock-window .mv-stock-head p{font-size:13px}
#drawer.mv-stock-window .mv-period{margin-top:5px}
#drawer.mv-stock-window .mv-period button{font-size:13px}
#drawer.mv-stock-window .mv-main-chart{margin-top:4px}
#drawer.mv-stock-window .mv-axis{font-size:14px}
#drawer.mv-stock-window .mv-coverage{font-size:12.5px;margin:3px 0}
#drawer.mv-stock-window .mv-trade{margin-top:4px;padding-top:6px;gap:8px}
#drawer.mv-stock-window .mv-trade label{font-size:13px}
#drawer.mv-stock-window .mv-trade input{font-size:14px}
#drawer.mv-stock-window .mv-estimate{display:flex;flex-wrap:nowrap;gap:14px;align-items:flex-start;align-content:center}
#drawer.mv-stock-window .mv-estimate span{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drawer.mv-stock-window .mv-estimate{font-size:13px}
#drawer.mv-stock-window .mv-estimate b{font-size:14px;margin-top:2px}
#drawer.mv-stock-window .mv-qty-quick{margin-top:3px}
#drawer.mv-stock-window .mv-qty-quick button{font-size:13px}
#drawer.mv-stock-window .mv-trade-actions button{font-size:14px}
#drawer.mv-stock-window .mv-order-note{font-size:12px}
#drawer.mv-stock-window .mv-feedback{font-size:13px;margin-top:4px}
#drawer.mv-stock-window .mv-index-head h3{font-size:16px}
#drawer.mv-stock-window .mv-index-value{font-size:20px}
#drawer.mv-stock-window .mv-index-chg{font-size:15px}
#drawer.mv-stock-window .mv-index-count{font-size:12.5px}
#drawer.mv-stock-window .mv-index-note{font-size:12px}
#drawer.mv-stock-window .mv-positions h3{font-size:16px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{font-size:13px}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:4px 4px;font-size:13px}
#drawer.mv-stock-window .mv-positions .mv-empty{font-size:13px}
@media(max-width:740px){
#drawer.mv-stock-window .mv-estimate{gap:6px}
#drawer.mv-stock-window .mv-estimate b{font-size:13px}
#drawer.mv-stock-window .mv-trade{gap:5px}
}

/* One size up means the rows need a little more air; these overrides run last so
   the enlarged type never collides with the neighbouring cells. */
.mv-market .mv-list-head{padding:10px 10px 9px;line-height:1.45}
.mv-market .mv-quote{padding-top:7px;padding-bottom:7px;line-height:1.42}
.mv-market .mv-quote-label,.mv-market .mv-quote-code,.mv-market .mv-quote-industry,
.mv-market .mv-quote-business,.mv-market .mv-quote-company{line-height:1.45}
.mv-market .mv-position-table th,.mv-market .mv-position-table td{padding-top:7px;padding-bottom:7px;line-height:1.45}
.mv-market .mv-estimate{line-height:1.45}
.mv-market .mv-detail{line-height:1.5}
.mv-market .mv-trade label,.mv-market .mv-trade-actions .btn{line-height:1.45}
.mv-market .mv-index-head h3{line-height:1.4}
/* Opening the securities window blurs the main top bar, so the trading page can
   never be mistaken for the normal game chrome behind it. */
/* Bigger type, tighter line box: the twenty-row watch list must still fit. */
#drawer.mv-stock-window .mv-quote .mv-quote-label,
#drawer.mv-stock-window .mv-quote .mv-quote-code,
#drawer.mv-stock-window .mv-quote .mv-quote-industry,
#drawer.mv-stock-window .mv-quote .mv-quote-business,
#drawer.mv-stock-window .mv-quote .mv-quote-company{line-height:1.15}
body.mv-stock-open #topbar{filter:blur(2.5px);opacity:.45;pointer-events:none;transition:filter .18s ease,opacity .18s ease}
body.mv-stock-open #shipStatus{opacity:.5}

/* ===== 个人总资产走势：持仓高度减半后新增的日线资产曲线 ===== */
.mv-market .mv-wealth{background:var(--mv-card);border:1px solid var(--mv-border);border-radius:12px;padding:16px;min-width:0}
.mv-market .mv-wealth h3{margin:0}
.mv-wealth-area{fill:rgba(105,215,207,.14);stroke:none}
.mv-market .mv-axis-unit{fill:#69d7cf}
#drawer.mv-stock-window .mv-wealth{display:flex;flex-direction:column;min-height:0;margin:0;padding:4px 7px;overflow:hidden}
#drawer.mv-stock-window .mv-wealth-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;flex:none}
#drawer.mv-stock-window .mv-wealth h3{margin:0;font-size:16px}
#drawer.mv-stock-window .mv-wealth-heading p{font-size:13px;line-height:1.2;color:var(--mv-muted)}
#drawer.mv-stock-window .mv-wealth-meta{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;flex:none;margin-top:1px;font-size:13px;color:var(--mv-muted)}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:16px;color:var(--mv-ink);font-variant-numeric:tabular-nums}
#drawer.mv-stock-window .mv-wealth-chart{flex:1;min-height:64px;margin-top:2px;display:flex;align-items:stretch;gap:2px;min-width:0;overflow:hidden}
#drawer.mv-stock-window .mv-wealth-yaxis{flex:none;min-width:0;pointer-events:none}
#drawer.mv-stock-window .mv-wealth-scroll{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#4a7b86 rgba(170,203,219,.08);-webkit-overflow-scrolling:touch;touch-action:pan-x}
#drawer.mv-stock-window .mv-wealth-scroll:focus-visible{outline:1px solid #69d7cf;outline-offset:1px}
#drawer.mv-stock-window .mv-wealth-scroll::-webkit-scrollbar{height:6px}
#drawer.mv-stock-window .mv-wealth-scroll::-webkit-scrollbar-track{background:rgba(170,203,219,.08);border-radius:3px}
#drawer.mv-stock-window .mv-wealth-scroll::-webkit-scrollbar-thumb{background:#3f6f7a;border-radius:3px}
#drawer.mv-stock-window .mv-wealth-chart .mv-chart{display:block;width:auto;height:auto;max-width:none;overflow:visible}
#drawer.mv-stock-window .mv-wealth-chart .mv-axis{font-size:12px}
.mv-wealth-base{stroke:rgba(167,193,207,.32);stroke-width:1}
.mv-wealth-bar{fill:#4fb7b0;opacity:.82}
.mv-wealth-bar.is-latest{fill:#7ee8dc;opacity:1}
#drawer.mv-stock-window .mv-wealth .mv-empty{padding:4px;font-size:13px;color:var(--mv-muted)}
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,auto) minmax(0,1fr) minmax(0,1fr)}
#drawer.mv-stock-window .mv-watch{grid-row:1 / 4}
#drawer.mv-stock-window .mv-wealth{grid-column:2;grid-row:3}
}
@media(max-width:740px){
#drawer.mv-stock-window .mv-wealth{width:100%;flex:none;min-height:170px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:116px}
}

/* ===== 交易所：我的持仓减半 + 个人总资产走势（2026-11-17） ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 76px 136px}
#drawer.mv-stock-window .mv-stock-head{line-height:1.1}
#drawer.mv-stock-window .mv-stock-head h3{font-size:14px;line-height:1.15}
#drawer.mv-stock-window .mv-stock-head p{margin-top:0;line-height:1.15}
#drawer.mv-stock-window .mv-stock-head span{margin-top:1px;line-height:1.15;font-size:10px}
#drawer.mv-stock-window .mv-stock-head strong{line-height:1.1}
#drawer.mv-stock-window .mv-period{margin-top:2px}
#drawer.mv-stock-window .mv-main-chart{flex:none;height:78px;min-height:78px;max-height:78px}
#drawer.mv-stock-window .mv-trade{margin-top:2px;padding-top:2px;gap:2px}
#drawer.mv-stock-window .mv-trade-actions button{padding:2px}
#drawer.mv-stock-window .mv-order-note{line-height:1.1}
#drawer.mv-stock-window .mv-positions{padding:5px 8px}
#drawer.mv-stock-window .mv-positions-heading{gap:6px}
#drawer.mv-stock-window .mv-positions h3{font-size:13px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{font-size:9.5px;line-height:1.15}
#drawer.mv-stock-window .mv-positions .mv-position-table{flex:1 1 auto;min-height:0;max-height:none;margin-top:2px}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{font-size:10.5px;padding:1px 5px}
#drawer.mv-stock-window .mv-wealth{padding:5px 8px}
#drawer.mv-stock-window .mv-wealth h3{font-size:14px}
#drawer.mv-stock-window .mv-wealth-heading{gap:6px}
#drawer.mv-stock-window .mv-wealth-heading p{font-size:10px}
#drawer.mv-stock-window .mv-wealth-meta{font-size:11px;gap:10px;margin-top:0}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:14px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:60px;margin-top:1px}
}
/* ===== 交易所矮视口（<=850px 高）：详情与图表再压缩，保证交易按钮不被裁切 ===== */
@media(min-width:741px) and (max-height:850px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 54px 104px;gap:10px}
#drawer.mv-stock-window .mv-stock-head{gap:4px 10px}
#drawer.mv-stock-window .mv-stock-head h3{font-size:13px}
#drawer.mv-stock-window .mv-stock-head strong{font-size:18px}
#drawer.mv-stock-window .mv-stock-head p{font-size:9.5px}
#drawer.mv-stock-window .mv-period{margin-top:1px}
#drawer.mv-stock-window .mv-period button{padding:1px 6px;font-size:9.5px}
#drawer.mv-stock-window .mv-main-chart{height:52px;min-height:52px;max-height:52px}
#drawer.mv-stock-window .mv-coverage{display:none}
#drawer.mv-stock-window .mv-trade{margin-top:1px;padding-top:1px;gap:2px}
#drawer.mv-stock-window .mv-trade label{font-size:9.5px}
#drawer.mv-stock-window .mv-trade input{padding:2px 4px;font-size:10.5px}
#drawer.mv-stock-window .mv-qty-quick button{padding:1px 4px;font-size:9.5px}
#drawer.mv-stock-window .mv-trade-actions button{padding:2px;font-size:10.5px}
#drawer.mv-stock-window .mv-order-note{display:none}
#drawer.mv-stock-window .mv-positions{padding:3px 8px}
#drawer.mv-stock-window .mv-positions h3{font-size:12px}
#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-positions-heading p{display:none}
#drawer.mv-stock-window .mv-position-table{margin-top:1px}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{font-size:10px;padding:0 5px}
#drawer.mv-stock-window .mv-wealth{padding:3px 8px}
#drawer.mv-stock-window .mv-wealth h3{font-size:12.5px}
#drawer.mv-stock-window .mv-wealth-heading p{display:none}
#drawer.mv-stock-window .mv-wealth-meta{font-size:10px;gap:8px}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:12.5px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:48px}
}
/* ===== 交易所布局统一：持仓 / 资产卡片完整展示（2026-11-17 R2） ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 116px 112px;gap:8px}
#drawer.mv-stock-window .mv-positions,#drawer.mv-stock-window .mv-wealth{padding:8px 10px;border-radius:10px}
#drawer.mv-stock-window .mv-positions{display:flex;flex-direction:column;overflow:hidden}
#drawer.mv-stock-window .mv-positions-heading,#drawer.mv-stock-window .mv-wealth-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;flex:none;margin:0}
#drawer.mv-stock-window .mv-positions h3,#drawer.mv-stock-window .mv-wealth h3{font-size:14px;line-height:1.25;font-weight:700}
#drawer.mv-stock-window .mv-positions-heading p,#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-wealth-heading p{display:block;font-size:11px;line-height:1.35;color:var(--mv-muted);white-space:normal}
#drawer.mv-stock-window .mv-position-table{flex:1 1 auto;min-height:0;max-height:none;margin-top:4px;overflow:auto}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:4px 6px;font-size:11.5px;line-height:1.4}
#drawer.mv-stock-window .mv-position-table th{color:var(--mv-muted);font-weight:600;white-space:nowrap}
#drawer.mv-stock-window .mv-position-table td{vertical-align:middle}
#drawer.mv-stock-window .mv-position-table td small{display:block;margin-top:2px;font-size:10.5px;line-height:1.3}
#drawer.mv-stock-window .mv-wealth-meta{gap:14px;margin-top:2px;font-size:11.5px;line-height:1.35}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:14px;line-height:1.35}
#drawer.mv-stock-window .mv-wealth-chart{min-height:58px;margin-top:2px}
}
@media(min-width:741px) and (max-height:850px){
#drawer.mv-stock-window #drawerBody{overflow-y:auto;padding-bottom:14px}
#drawer.mv-stock-window .mv-market{height:auto;min-height:100%}
#drawer.mv-stock-window .mv-layout{flex:none;min-height:0;grid-template-rows:auto auto auto;gap:8px}
#drawer.mv-stock-window .mv-detail{min-height:244px}
#drawer.mv-stock-window .mv-watch{min-height:470px}
#drawer.mv-stock-window .mv-positions{min-height:110px;padding:6px 9px}
#drawer.mv-stock-window .mv-wealth{min-height:106px;padding:6px 9px}
#drawer.mv-stock-window .mv-positions h3,#drawer.mv-stock-window .mv-wealth h3{font-size:13px}
#drawer.mv-stock-window .mv-positions-heading p,#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-wealth-heading p{display:block;font-size:10.5px;line-height:1.3}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:3px 5px;font-size:11px;line-height:1.35}
#drawer.mv-stock-window .mv-coverage{display:none}
#drawer.mv-stock-window .mv-order-note{display:none}
}
/* ===== 交易所布局最终覆盖 R3：按高度分档，矮视口改为页内滚动（2026-11-17） ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 118px 118px;gap:8px}
}
@media(min-width:741px) and (min-height:851px) and (max-height:960px){
#drawer.mv-stock-window #drawerBody{overflow-y:auto;padding-bottom:12px}
#drawer.mv-stock-window .mv-market{height:auto;min-height:100%}
#drawer.mv-stock-window .mv-layout{flex:1 1 auto;min-height:576px}
}
@media(min-width:741px) and (max-height:850px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(266px,1fr) auto auto;min-height:530px;flex:1 1 auto}
#drawer.mv-stock-window .mv-watch{min-height:530px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:54px}
}

/* ===== 交易所布局 R4：收紧个股/指数高度，持仓完整显示两行（2026-11-17） ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 158px 118px}
#drawer.mv-stock-window .mv-main-chart{min-height:70px}
#drawer.mv-stock-window .mv-position-table{margin-top:3px}
#drawer.mv-stock-window .mv-position-table th{position:sticky;top:0;z-index:1;background:var(--mv-card)}
}
@media(min-width:741px) and (min-height:851px) and (max-height:960px){
#drawer.mv-stock-window .mv-order-note{display:none}
}
@media(min-width:741px) and (max-height:850px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(252px,1fr) auto auto;min-height:530px}
#drawer.mv-stock-window .mv-detail{min-height:252px}
#drawer.mv-stock-window .mv-watch{min-height:530px}
#drawer.mv-stock-window .mv-positions{min-height:154px}
#drawer.mv-stock-window .mv-wealth{min-height:106px}
#drawer.mv-stock-window .mv-main-chart{min-height:64px}
}
/* ===== 交易所 R5：统一方框内边距 / 行距 / 卡片视觉（2026-11-18） ===== */
@media(min-width:741px){
#drawer.mv-stock-window{--mv-card-x:12px;--mv-card-y:10px;--mv-card-gap:8px}
#drawer.mv-stock-window #drawerBody{overflow-y:auto;padding:10px 14px 12px}
#drawer.mv-stock-window .mv-market{gap:var(--mv-card-gap)}
#drawer.mv-stock-window .mv-heading{gap:12px;margin:0}
#drawer.mv-stock-window .mv-heading p{line-height:1.4}
#drawer.mv-stock-window .mv-heading small{line-height:1.35}
#drawer.mv-stock-window .mv-heading-actions{gap:8px}
#drawer.mv-stock-window .mv-heading-actions button{min-height:30px;padding:4px 10px;line-height:1.3;border-radius:8px}
#drawer.mv-stock-window .mv-overview{gap:var(--mv-card-gap)}
#drawer.mv-stock-window .mv-ticker{padding:6px 12px;line-height:1.4}
#drawer.mv-stock-window .mv-summary{gap:var(--mv-card-gap)}
#drawer.mv-stock-window .mv-summary>div{padding:5px 10px;border-radius:10px}
#drawer.mv-stock-window .mv-summary small{margin-bottom:3px;line-height:1.4}
#drawer.mv-stock-window .mv-summary b{line-height:1.4}
#drawer.mv-stock-window .mv-source{line-height:1.4;margin:0}
/* 五个方框统一：内边距、圆角、描边、底色一致 */
#drawer.mv-stock-window .mv-watch,
#drawer.mv-stock-window .mv-detail,
#drawer.mv-stock-window .mv-index-panel,
#drawer.mv-stock-window .mv-positions,
#drawer.mv-stock-window .mv-wealth{padding:var(--mv-card-y) var(--mv-card-x);border:1px solid rgba(126,189,210,.2);border-radius:12px;background:linear-gradient(180deg,rgba(25,51,66,.92) 0%,rgba(17,35,46,.96) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 4px 14px rgba(0,0,0,.16)}
#drawer.mv-stock-window .mv-layout{gap:var(--mv-card-gap);grid-template-rows:minmax(370px,1fr) 176px 134px}
/* 卡片标题：统一字号、行高与下方分隔线 */
#drawer.mv-stock-window .mv-positions-heading,
#drawer.mv-stock-window .mv-wealth-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;flex:none;margin:0 0 6px;padding:0 0 6px;border-bottom:1px solid rgba(170,203,219,.12)}
#drawer.mv-stock-window .mv-positions h3,
#drawer.mv-stock-window .mv-wealth h3,
#drawer.mv-stock-window .mv-index-head h3{font-size:15px;line-height:1.35;font-weight:700;margin:0}
#drawer.mv-stock-window .mv-positions-heading p,
#drawer.mv-stock-window .mv-positions>p,
#drawer.mv-stock-window .mv-wealth-heading p{margin:0;font-size:11.5px;line-height:1.45;color:var(--mv-muted);white-space:normal}
/* 持仓表：单元格留白与行距统一，两行持仓完整可见 */
#drawer.mv-stock-window .mv-position-table{flex:1 1 auto;min-height:0;max-height:none;margin-top:6px;overflow:auto}
#drawer.mv-stock-window .mv-position-table th,
#drawer.mv-stock-window .mv-position-table td{padding:5px 8px;font-size:11.5px;line-height:1.45;vertical-align:middle}
#drawer.mv-stock-window .mv-position-table th{font-weight:600;color:var(--mv-muted);white-space:nowrap;letter-spacing:.02em}
#drawer.mv-stock-window .mv-position-table td small{margin-top:3px;font-size:10.5px;line-height:1.35}
#drawer.mv-stock-window .mv-position-table button{padding:3px 8px;font-size:11.5px;line-height:1.3}
/* 资产走势：说明 / 数值 / 图表间距一致 */
#drawer.mv-stock-window .mv-wealth-meta{gap:16px;margin-top:4px;font-size:11.5px;line-height:1.45;align-items:baseline}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:14.5px;line-height:1.4}
#drawer.mv-stock-window .mv-wealth-chart{min-height:48px;margin-top:6px}
/* 个股详情：标题、曲线、交易表单纵向节奏统一 */
#drawer.mv-stock-window .mv-detail{min-height:0}
#drawer.mv-stock-window .mv-stock-head h3{line-height:1.3}
#drawer.mv-stock-window .mv-stock-head p{margin-top:5px;line-height:1.45}
#drawer.mv-stock-window .mv-period{margin-top:6px;gap:6px}
#drawer.mv-stock-window .mv-period button{padding:4px 9px;line-height:1.3}
#drawer.mv-stock-window .mv-main-chart{margin-top:6px;min-height:62px}
#drawer.mv-stock-window .mv-coverage{margin:3px 0;line-height:1.4}
#drawer.mv-stock-window .mv-trade{margin-top:5px;padding-top:7px;gap:8px;grid-template-columns:110px minmax(0,1fr)}
#drawer.mv-stock-window .mv-trade label{gap:4px;line-height:1.4}
#drawer.mv-stock-window .mv-trade input{padding:5px 8px;line-height:1.3}
#drawer.mv-stock-window .mv-estimate{gap:16px;line-height:1.45;align-items:center}
#drawer.mv-stock-window .mv-estimate b{margin-top:3px;line-height:1.4}
#drawer.mv-stock-window .mv-qty-quick{gap:6px}
#drawer.mv-stock-window .mv-qty-quick button{padding:3px 8px;line-height:1.3}
#drawer.mv-stock-window .mv-trade-actions{gap:10px}
#drawer.mv-stock-window .mv-trade-actions button{min-height:32px;line-height:1.3}
#drawer.mv-stock-window .mv-order-note{line-height:1.4}
#drawer.mv-stock-window .mv-feedback{margin-top:6px;line-height:1.4}
/* 行情列表：搜索 / 筛选 / 表头 / 行间距一致 */
#drawer.mv-stock-window .mv-watch label{gap:4px;line-height:1.35}
#drawer.mv-stock-window .mv-search{min-height:28px;padding:4px 9px;line-height:1.3}
#drawer.mv-stock-window .mv-industry-filters{margin:6px 0 4px;gap:5px}
#drawer.mv-stock-window .mv-industry-filters button{min-height:26px;padding:3px 9px;line-height:1.25}
#drawer.mv-stock-window .mv-list-head{padding:6px 8px;line-height:1.35;gap:6px}
#drawer.mv-stock-window .mv-quote{min-height:24px;padding:2px 8px;margin:1px 0;gap:6px;line-height:1.3}
#drawer.mv-stock-window .mv-index-head{flex-wrap:wrap;gap:6px}
#drawer.mv-stock-window .mv-index-note{line-height:1.4;margin-top:2px}
}
@media(min-width:741px) and (max-height:850px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(340px,1fr) auto auto;min-height:0}
#drawer.mv-stock-window .mv-positions{min-height:176px}
#drawer.mv-stock-window .mv-wealth{min-height:132px}
#drawer.mv-stock-window .mv-position-table th,
#drawer.mv-stock-window .mv-position-table td{padding:4px 7px;font-size:11px;line-height:1.4}
#drawer.mv-stock-window .mv-wealth-chart{min-height:46px}
#drawer.mv-stock-window .mv-main-chart{min-height:58px}
}
/* ===== 交易所 R6：自然流式高度 / 可见滚动条 / 消除卡片内部裁切（2026-11-18） ===== */
@media(min-width:741px){
#drawer.mv-stock-window #drawerBody{overflow-y:auto;overflow-x:hidden;padding:10px 16px 18px;scrollbar-width:thin;scrollbar-color:rgba(122,178,196,.45) transparent}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar{display:block;width:10px}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar-track{background:transparent}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar-thumb{background:rgba(122,178,196,.34);border:3px solid transparent;border-radius:8px;background-clip:padding-box}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar-thumb:hover{background:rgba(122,178,196,.58);background-clip:padding-box}
#drawer.mv-stock-window .mv-market{display:flex;flex-direction:column;min-height:0}
#drawer.mv-stock-window .mv-layout{flex:none;align-content:start;grid-template-rows:auto auto auto;row-gap:var(--mv-card-gap);overflow:visible}
#drawer.mv-stock-window .mv-detail{min-height:374px}
#drawer.mv-stock-window .mv-index-panel{min-height:374px}
#drawer.mv-stock-window .mv-positions{min-height:188px}
#drawer.mv-stock-window .mv-wealth{min-height:144px}
#drawer.mv-stock-window .mv-watch{min-height:0}
#drawer.mv-stock-window .mv-position-table{max-height:138px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(122,178,196,.4) transparent}
#drawer.mv-stock-window .mv-position-table::-webkit-scrollbar{display:block;width:8px;height:8px}
#drawer.mv-stock-window .mv-position-table::-webkit-scrollbar-thumb{background:rgba(122,178,196,.34);border:2px solid transparent;border-radius:6px;background-clip:padding-box}
#drawer.mv-stock-window .mv-detail .mv-main-chart{min-height:64px}
}
@media(min-width:741px) and (max-height:900px){
#drawer.mv-stock-window .mv-heading{margin:0 0 2px}
#drawer.mv-stock-window .mv-heading p{margin:2px 0 0;line-height:1.35}
#drawer.mv-stock-window .mv-summary{margin:0}
#drawer.mv-stock-window .mv-summary>div{padding:4px 9px}
#drawer.mv-stock-window .mv-ticker{padding:5px 11px}
#drawer.mv-stock-window .mv-ticker-chart{height:32px}
#drawer.mv-stock-window .mv-ticker-chart .mv-chart{height:32px}
#drawer.mv-stock-window .mv-market .mv-source{margin:0}
#drawer.mv-stock-window .mv-detail{min-height:360px}
#drawer.mv-stock-window .mv-index-panel{min-height:360px}
#drawer.mv-stock-window .mv-positions{min-height:180px}
#drawer.mv-stock-window .mv-wealth{min-height:136px}
#drawer.mv-stock-window .mv-position-table{max-height:130px}
}
@media(min-width:741px) and (max-height:820px){
#drawer.mv-stock-window .mv-heading small{display:none}
#drawer.mv-stock-window .mv-heading h2{font-size:18px;margin:0 0 2px}
#drawer.mv-stock-window .mv-heading-actions button{min-height:26px;padding:3px 9px;font-size:12px}
}

/* ===== 交易所 R7：窄屏自然流式滚动（2026-11-18） ===== */
@media(max-width:740px){
#drawer.mv-stock-window #drawerBody{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:8px 10px 14px;scrollbar-width:thin;scrollbar-color:rgba(122,178,196,.45) transparent}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar{display:block;width:6px}
#drawer.mv-stock-window #drawerBody::-webkit-scrollbar-thumb{background:rgba(122,178,196,.34);border-radius:6px}
#drawer.mv-stock-window .mv-market{height:auto;min-height:0}
#drawer.mv-stock-window .mv-layout{display:flex;flex-direction:column;flex:none;gap:8px;min-height:0;overflow:visible}
#drawer.mv-stock-window .mv-watch,#drawer.mv-stock-window .mv-main,#drawer.mv-stock-window .mv-positions,#drawer.mv-stock-window .mv-wealth{width:100%;flex:none;min-height:0}
#drawer.mv-stock-window .mv-detail,#drawer.mv-stock-window .mv-index-panel{min-height:0}
#drawer.mv-stock-window .mv-positions{display:flex;flex-direction:column;min-height:196px;padding:9px 11px}
#drawer.mv-stock-window .mv-positions .mv-position-table{max-height:none;overflow:visible}
#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:none}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:5px 6px;line-height:1.45}
#drawer.mv-stock-window .mv-wealth{min-height:0;padding:9px 11px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:64px}
}

/* ===== 交易所 R8：持仓默认只显示两行，避免第三行把整页撑出滚动 ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-positions{min-height:0}
#drawer.mv-stock-window .mv-position-table{max-height:118px}
#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:118px}
}

/* ===== 交易所 R9：持仓全部字段单行显示 + 桌面端整页无滚动（2026-11-18） ===== */
@media(min-width:741px){
#drawer.mv-stock-window #drawerBody{overflow-y:hidden;overflow-x:hidden;padding:8px 14px}
#drawer.mv-stock-window .mv-market{height:100%;min-height:0;gap:6px}
#drawer.mv-stock-window .mv-heading{flex:none;margin:0}
#drawer.mv-stock-window .mv-overview{flex:none}
#drawer.mv-stock-window .mv-layout{flex:1 1 auto;min-height:0;height:auto;overflow:hidden;grid-template-columns:minmax(0,37%) minmax(0,63%);grid-template-rows:minmax(0,1fr) 144px 112px;gap:6px}
#drawer.mv-stock-window .mv-watch{grid-column:1;grid-row:1/4;min-height:0;height:auto;overflow:hidden}
#drawer.mv-stock-window .mv-main{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:5px;min-height:0;height:auto;overflow:hidden}
#drawer.mv-stock-window .mv-detail,#drawer.mv-stock-window .mv-index-panel{min-height:0;height:auto;overflow:hidden}
#drawer.mv-stock-window .mv-main-chart{min-height:50px;height:52px;max-height:52px;margin-top:3px}
#drawer.mv-stock-window .mv-positions{grid-column:2;grid-row:2;display:flex;flex-direction:column;min-height:0;height:auto;padding:5px 8px;overflow:hidden}
#drawer.mv-stock-window .mv-wealth{grid-column:2;grid-row:3;display:flex;flex-direction:column;min-height:0;height:auto;padding:5px 8px;overflow:hidden}
#drawer.mv-stock-window .mv-positions-heading,#drawer.mv-stock-window .mv-wealth-heading{margin:0 0 3px;padding:0 0 3px}
#drawer.mv-stock-window .mv-positions h3,#drawer.mv-stock-window .mv-wealth h3{font-size:13px;line-height:1.25}
#drawer.mv-stock-window .mv-positions-heading p,#drawer.mv-stock-window .mv-positions>p,#drawer.mv-stock-window .mv-wealth-heading p{font-size:10px;line-height:1.3}
#drawer.mv-stock-window .mv-position-table{flex:1 1 auto;min-height:0;max-height:none;margin-top:2px;overflow:hidden}
#drawer.mv-stock-window .mv-position-table table{table-layout:fixed;width:100%}
#drawer.mv-stock-window .mv-position-table th,#drawer.mv-stock-window .mv-position-table td{padding:3px 5px;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
#drawer.mv-stock-window .mv-position-table td small{display:none}
#drawer.mv-stock-window .mv-position-table th:nth-child(1),#drawer.mv-stock-window .mv-position-table td:nth-child(1){width:24%;text-align:left}
#drawer.mv-stock-window .mv-position-table th:nth-child(2),#drawer.mv-stock-window .mv-position-table td:nth-child(2){width:8%}
#drawer.mv-stock-window .mv-position-table th:nth-child(3),#drawer.mv-stock-window .mv-position-table td:nth-child(3){width:9%}
#drawer.mv-stock-window .mv-position-table th:nth-child(4),#drawer.mv-stock-window .mv-position-table td:nth-child(4){width:15%}
#drawer.mv-stock-window .mv-position-table th:nth-child(5),#drawer.mv-stock-window .mv-position-table td:nth-child(5){width:15%}
#drawer.mv-stock-window .mv-position-table th:nth-child(6),#drawer.mv-stock-window .mv-position-table td:nth-child(6){width:10%}
#drawer.mv-stock-window .mv-position-table th:nth-child(7),#drawer.mv-stock-window .mv-position-table td:nth-child(7){width:14%}
#drawer.mv-stock-window .mv-position-table th:nth-child(8),#drawer.mv-stock-window .mv-position-table td:nth-child(8){width:5%;text-align:right}
#drawer.mv-stock-window .mv-position-stock{white-space:nowrap}
#drawer.mv-stock-window .mv-position-name{font-weight:600}
#drawer.mv-stock-window .mv-position-code{color:var(--mv-muted)}
#drawer.mv-stock-window .mv-position-sep{margin:0 3px;color:#688294}
#drawer.mv-stock-window .mv-wealth-meta{margin-top:1px;font-size:10.5px;line-height:1.3;gap:10px}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:12.5px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:42px;margin-top:2px}
}
@media(min-width:741px) and (max-height:820px){
#drawer.mv-stock-window .mv-layout{grid-template-rows:minmax(0,1fr) 136px 102px}
#drawer.mv-stock-window .mv-heading p{display:none}
#drawer.mv-stock-window .mv-main-chart{height:46px;min-height:46px;max-height:46px}
#drawer.mv-stock-window .mv-wealth-chart{min-height:34px}
}


/* ===== 交易所 R9b：覆盖 R8 的 :has(table) 限高，持仓三行完整显示（2026-11-18） ===== */
@media(min-width:741px){
#drawer.mv-stock-window .mv-positions .mv-position-table,
#drawer.mv-stock-window .mv-positions .mv-position-table:has(table){max-height:none;height:auto;overflow:hidden}
#drawer.mv-stock-window .mv-position-table table{table-layout:fixed;width:100%}
#drawer.mv-stock-window .mv-position-table th{padding:2px 5px}
#drawer.mv-stock-window .mv-position-table td{padding:2px 5px}
}

/* ===== 交易所 R9c：矮屏（768p）压缩行高，保证三行持仓完整可见 ===== */
@media(min-width:741px) and (max-height:820px){
#drawer.mv-stock-window .mv-position-table{margin-top:1px}
#drawer.mv-stock-window .mv-position-table td{padding:1px 5px}
}

/* ===== R11 stock detail inner rhythm (2026-11-19) ===== */
@media (min-width:741px) and (min-height:821px){
  #drawer.mv-stock-window .mv-detail{display:flex;flex-direction:column;justify-content:flex-start;gap:6px}
  #drawer.mv-stock-window .mv-detail>*{margin-top:0;margin-bottom:0}
  #drawer.mv-stock-window .mv-detail .mv-stock-head{flex:none;align-items:center;gap:12px}
  #drawer.mv-stock-window .mv-detail .mv-stock-head>div:first-child{min-width:0}
  #drawer.mv-stock-window .mv-detail .mv-stock-head h3{line-height:1.2}
  #drawer.mv-stock-window .mv-detail .mv-stock-head p{margin-top:2px;line-height:1.4}
  #drawer.mv-stock-window .mv-detail .mv-stock-head strong{line-height:1.1}
  #drawer.mv-stock-window .mv-detail .mv-stock-head>div:last-child span{margin-top:2px;line-height:1.2}
  #drawer.mv-stock-window .mv-detail .mv-period{flex:none;margin-top:0;gap:7px}
  #drawer.mv-stock-window .mv-detail .mv-period button{min-height:27px;padding:4px 10px;line-height:1.3}
  #drawer.mv-stock-window .mv-detail .mv-main-chart{flex:1 1 auto;min-height:64px;height:auto;max-height:none;margin-top:0;overflow:hidden}
  #drawer.mv-stock-window .mv-detail .mv-main-chart .mv-chart{height:100%}
  #drawer.mv-stock-window .mv-detail .mv-coverage{flex:none;margin:0;line-height:1.4}
  #drawer.mv-stock-window .mv-detail .mv-trade{flex:none;margin-top:0;padding-top:8px;border-top:1px solid rgba(170,203,219,.12);grid-template-columns:110px minmax(0,1fr);column-gap:12px;row-gap:7px;align-items:start}
  #drawer.mv-stock-window .mv-detail .mv-trade label{gap:4px;line-height:1.3}
  #drawer.mv-stock-window .mv-detail .mv-trade input{height:30px;padding:5px 9px;line-height:1.25}
  #drawer.mv-stock-window .mv-detail .mv-estimate{gap:14px;line-height:1.4;align-items:flex-start}
  #drawer.mv-stock-window .mv-detail .mv-estimate span{line-height:1.35}
  #drawer.mv-stock-window .mv-detail .mv-estimate b{margin-top:3px;line-height:1.3}
  #drawer.mv-stock-window .mv-detail .mv-qty-quick{margin-top:0;gap:7px}
  #drawer.mv-stock-window .mv-detail .mv-qty-quick button{min-height:26px;padding:4px 9px;line-height:1.25}
  #drawer.mv-stock-window .mv-detail .mv-trade-actions{gap:10px}
  #drawer.mv-stock-window .mv-detail .mv-trade-actions button{min-height:34px;padding:6px 10px;line-height:1.25}
  #drawer.mv-stock-window .mv-detail .mv-order-note{margin:0;line-height:1.35}
  #drawer.mv-stock-window .mv-detail .mv-feedback{margin:0}
  #drawer.mv-stock-window .mv-detail .mv-feedback:empty{display:none}
}

/* ===== 2026-11-20 sell-button emphasis: live positions "卖出" 更醒目（不改变卡片尺寸与行高） ===== */
#drawer.mv-stock-window .mv-position-table td:last-child{padding-left:1px;padding-right:1px}
.mv-market .mv-position-table td:last-child button[data-holding],
#drawer.mv-stock-window .mv-position-table td:last-child button[data-holding]{
  box-sizing:border-box;
  width:40px;
  height:22.9px;
  padding:0;
  font-size:13.5px;
  font-weight:700;
  line-height:20.9px;
  letter-spacing:.06em;
  color:#fffaf3;
  background:linear-gradient(180deg,#ff9a4d 0%,#f4602c 48%,#d73418 100%);
  border:1px solid #ffb877;
  border-radius:7px;
  box-shadow:0 0 0 1px rgba(255,126,42,.34),0 2px 7px rgba(196,44,20,.46),inset 0 1px 0 rgba(255,255,255,.38);
  text-shadow:0 1px 1px rgba(112,20,0,.5);
  transition:filter .12s ease,box-shadow .12s ease;
}
.mv-market .mv-position-table td:last-child button[data-holding]:hover,
#drawer.mv-stock-window .mv-position-table td:last-child button[data-holding]:hover{
  filter:brightness(1.08);
  box-shadow:0 0 0 2px rgba(255,150,70,.5),0 3px 10px rgba(214,52,24,.55),inset 0 1px 0 rgba(255,255,255,.45);
}
.mv-market .mv-position-table td:last-child button[data-holding]:active,
#drawer.mv-stock-window .mv-position-table td:last-child button[data-holding]:active{
  filter:brightness(.94);
  box-shadow:0 0 0 1px rgba(255,120,40,.3),inset 0 2px 5px rgba(90,15,0,.45);
}
@media(max-width:740px){
  .mv-market .mv-position-table td:last-child button[data-holding],
  #drawer.mv-stock-window .mv-position-table td:last-child button[data-holding]{
    width:36px;height:22px;line-height:20px;font-size:12.5px;letter-spacing:0;
  }
}

/* 2026-11-20 sell intent: 点持仓「卖出」后，买入按钮置灰（点击可切回买入） */
.mv-market .mv-trade-actions .mv-buy.mv-buy-muted{background:#33454f;border-color:#4a5d67;color:#93a5ae;box-shadow:none;text-shadow:none}
.mv-market .mv-trade-actions .mv-buy.mv-buy-muted:hover{background:#3b4e58;border-color:#566b76;color:#b9c8cf}
.mv-market .mv-trade-actions .mv-sell.mv-sell-active{border-color:#5fd0a8;box-shadow:0 0 0 1px rgba(92,214,170,.42),0 0 10px rgba(36,120,95,.45)}

/* 2026-11-20 wealth heading one-line: 标题与数值单行排列，不改变卡片外框尺寸 */
#drawer.mv-stock-window .mv-wealth-heading{display:flex;align-items:baseline;flex-wrap:nowrap;gap:10px;margin:0 0 5px;padding:0 0 5px;min-width:0}
#drawer.mv-stock-window .mv-wealth-heading h3{flex:none;margin:0;font-size:15px;line-height:1.3;font-weight:700;white-space:nowrap}
#drawer.mv-stock-window .mv-wealth-meta{display:flex;align-items:baseline;flex-wrap:nowrap;gap:10px;flex:1 1 auto;min-width:0;margin:0;font-size:10.5px;line-height:1.3;white-space:nowrap}
#drawer.mv-stock-window .mv-wealth-meta>span{white-space:nowrap}
#drawer.mv-stock-window .mv-wealth-meta .mv-wealth-axis{color:var(--mv-muted)}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:13px;line-height:1.3;color:var(--mv-ink);font-variant-numeric:tabular-nums}
@media(min-width:741px) and (max-width:1100px){
#drawer.mv-stock-window .mv-wealth-heading{gap:8px}
#drawer.mv-stock-window .mv-wealth-heading h3{font-size:13px}
#drawer.mv-stock-window .mv-wealth-meta{font-size:10px;gap:8px}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:12.5px}
}
@media(min-width:741px) and (max-width:960px){
#drawer.mv-stock-window .mv-wealth-heading h3{font-size:12px}
#drawer.mv-stock-window .mv-wealth-meta{font-size:9.2px;gap:6px}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:11.5px}
}
@media(min-width:741px) and (max-width:800px){
#drawer.mv-stock-window .mv-wealth-heading{gap:6px}
#drawer.mv-stock-window .mv-wealth-heading h3{font-size:11.5px}
#drawer.mv-stock-window .mv-wealth-meta{font-size:8.8px;gap:4px;letter-spacing:-.02em}
#drawer.mv-stock-window .mv-wealth-meta b{font-size:10.5px}
}
@media(max-width:740px){
#drawer.mv-stock-window .mv-wealth-heading{flex-wrap:wrap}
#drawer.mv-stock-window .mv-wealth-meta{flex:1 1 100%;flex-wrap:wrap;white-space:normal;font-size:10.5px}
#drawer.mv-stock-window .mv-wealth-meta>span{white-space:normal}
}

/* ===== 2026-11-20 live positions: whole row selects the stock and refreshes the chart above ===== */
.mv-position-table tbody tr[data-holding]{cursor:pointer;transition:background-color .12s ease,box-shadow .12s ease}
.mv-position-table tbody tr[data-holding]:hover{background:rgba(90,201,193,.08)}
.mv-position-table tbody tr[data-holding].is-selected{background:rgba(90,201,193,.13);box-shadow:inset 2px 0 0 #5ac9c1}
.mv-position-table tbody tr[data-holding]:focus-visible{outline:2px solid #76ded5;outline-offset:-2px}
