:root{font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif;color:#1d2b42;background:#f4f6fa;font-synthesis:none;--ink:#1d2b42;--muted:#8390a4;--line:#e7ebf2;--blue:#4779dc;--red:#df615c;--green:#159b78;--panel:#fff}*{box-sizing:border-box}body{margin:0;font-size:14px}.layout{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none;padding:0 5px 38px}.brand-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#3d74df;color:#fff;font-size:19px;font-weight:700}.brand b,.brand small{display:block}.brand b{font-size:14px}.brand small{font-size:9px;letter-spacing:1.6px;color:#9aa5b6;margin-top:3px}.side-label{font-size:11px;color:#a2acba;margin:0 10px 9px}.market-nav{height:44px;border:0;background:transparent;color:#65738a;border-radius:8px;text-align:left;padding:0 11px;margin:2px 0;display:flex;align-items:center;gap:11px;cursor:pointer;font:inherit}.market-nav span{width:25px;height:25px;border-radius:7px;background:#f1f4f9;display:grid;place-items:center;color:#8291aa;font-size:12px}.market-nav.active{background:#edf3ff;color:#3973dc;font-weight:650}.market-nav.active span{background:#dce8ff;color:#3973dc}.side-foot{margin-top:auto;padding:13px 7px;color:#8d99aa;font-size:11px;border-top:1px solid var(--line)}.side-foot i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#29ac81;margin-right:8px}.main{margin-left:220px;padding:0 38px 28px;max-width:1660px}.topbar{height:62px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:#8a96a8;font-size:12px}.topbar b{font-weight:600;color:#43536b;margin-left:12px}.actions{display:flex;align-items:center;gap:14px}.actions span{color:#8290a5;font-size:11px}.primary{border:0;background:var(--blue);color:white;border-radius:7px;padding:10px 15px;font:600 12px inherit;cursor:pointer;box-shadow:0 3px 8px #4779dc25}.page-head{display:flex;align-items:flex-end;justify-content:space-between;padding:30px 0 19px}.eyebrow{font-size:9px;color:#8198bd;letter-spacing:1.6px;font-weight:700}.page-head h1{font-size:26px;margin:6px 0 5px;letter-spacing:-.3px}.page-head p{margin:0;color:#8f9bad;font-size:12px}.date-picker{display:flex;gap:7px;align-items:center}.date-picker button{width:32px;height:34px;border:1px solid var(--line);background:#fff;color:#718099;border-radius:7px;font-size:20px;cursor:pointer}.date-picker input{height:34px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 9px;color:#53627a;font:12px inherit}.summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.summary-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:0 4px 16px #263c5b08}.summary-card{padding:14px 16px;min-height:76px;display:flex;flex-direction:column;gap:8px}.summary-card span{font-size:10px;color:#92a0b2}.summary-card strong{font-size:15px;font-weight:650;color:#33445e}.panel{margin-bottom:14px;overflow:hidden}.panel-head{min-height:70px;padding:16px 18px 12px;display:flex;align-items:center;justify-content:space-between}.panel-head h2{margin:0;font-size:15px}.panel-head p{margin:5px 0 0;color:#98a3b2;font-size:11px}.coverage,.tag{font-size:10px;color:#92a0b2;background:#f5f7fa;border-radius:5px;padding:6px 9px}.date-strip{padding:0 18px 15px;display:flex;gap:7px;overflow-x:auto}.date-chip{white-space:nowrap;border:1px solid var(--line);background:#fff;color:#748198;border-radius:6px;padding:7px 10px;font:11px inherit;cursor:pointer}.date-chip.active{border-color:#8ba9e5;background:#edf3ff;color:#3c72d3;font-weight:650}.date-chip small{display:block;font-size:9px;margin-top:3px;opacity:.8}.table-panel{margin-bottom:14px}.table-scroll{max-height:590px;overflow:auto;position:relative;padding:0 16px 10px}.table-scroll table,.detail-table{width:100%;border-collapse:collapse}.table-scroll thead th{position:sticky;top:0;z-index:2;background:#fff}.table-scroll th,.detail-table th{height:38px;text-align:left;color:#94a0b1;font-size:10px;font-weight:500;border-bottom:1px solid var(--line);white-space:nowrap}.table-scroll td,.detail-table td{height:42px;border-bottom:1px solid #edf0f4;color:#64738a;font-size:11px;white-space:nowrap}.table-scroll tbody tr{cursor:pointer}.table-scroll tbody tr:hover{background:#f7f9fd}.table-scroll td:nth-child(2){font-weight:650;color:#30425d}.rank-cell{color:#8c9ab0!important;width:52px}.positive{color:var(--red)!important}.negative{color:var(--green)!important}.empty-hint{text-align:center;color:#9ba7b8;font-size:11px;padding:32px 12px}.detail-panel{padding-bottom:16px}.detail-title{border-bottom:1px solid #eff1f5}.detail-title h2{font-size:18px;margin:5px 0 0}.detail-title p{font-size:10px;color:#9aa5b5}.quiet{border:1px solid var(--line);background:#fff;border-radius:6px;color:#718099;padding:7px 10px;font:11px inherit;cursor:pointer}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:15px 18px}.detail-stats article{border:1px solid #edf0f5;border-radius:7px;padding:11px 12px;display:flex;flex-direction:column;gap:7px}.detail-stats span{font-size:10px;color:#96a2b2}.detail-stats strong{font-size:16px;color:#32435c}.charts{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 18px 15px}.chart-card{border:1px solid #edf0f5;border-radius:8px;padding:12px}.chart-card h3{font-size:11px;font-weight:600;margin:0 0 10px;color:#6c7b91}.bar-chart{height:145px;display:flex;align-items:stretch;gap:5px;border-bottom:1px solid #e9edf3;padding:0 2px;overflow-x:auto}.bar-item{flex:1;min-width:23px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}.bar-value{font-size:8px;color:#8693a6;white-space:nowrap;margin-bottom:4px}.bar-track{height:95px;width:100%;display:flex;align-items:flex-end;justify-content:center}.bar{width:min(20px,70%);min-height:2px;border-radius:3px 3px 0 0;background:#df6b64}.bar.down{background:#36a889}.amount-chart .bar{background:#6790dc}.bar-day{font-size:8px;color:#9aa5b5;margin-top:5px;white-space:nowrap}.detail-table-scroll{max-height:250px;overflow:auto;padding:0 18px}.detail-table thead th{position:sticky;top:0;background:#fff}.hidden{display:none!important}footer{padding:12px 2px;color:#a2adba;font-size:10px}dialog{width:min(540px,calc(100% - 28px));border:0;border-radius:11px;box-shadow:0 18px 70px #1c2d4770;padding:0;color:var(--ink)}dialog::backdrop{background:#1d2b4070;backdrop-filter:blur(2px)}dialog form{padding:22px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}.dialog-head h2{font-size:18px;margin:5px 0 0}.close{border:0;background:#f2f4f8;color:#8290a4;border-radius:6px;width:29px;height:29px;font-size:19px;cursor:pointer}.security-note{font-size:11px;line-height:1.8;color:#8592a6;background:#f5f7fa;padding:11px;border-radius:7px}.refresh-form label,dialog label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#66758c;margin:15px 0}.refresh-form input,dialog input{height:38px;border:1px solid var(--line);border-radius:6px;padding:0 10px;font:12px inherit;outline:none}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px}.refresh-result{font-size:11px;line-height:1.7;color:#5476b7;white-space:pre-wrap}.refresh-result.error{color:#c65151}#toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#26354a;color:white;border-radius:7px;padding:10px 15px;font-size:11px;transition:.2s;z-index:9}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.main{padding:0 22px}.sidebar{width:190px}.main{margin-left:190px}.summary-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.sidebar{width:58px;padding:18px 7px}.brand{padding:0 0 35px;justify-content:center}.brand>span:not(.brand-icon),.side-label,.market-nav:not(.active){display:none}.market-nav{padding:0;justify-content:center;font-size:0}.market-nav.active{font-size:0}.market-nav span{font-size:11px}.side-foot{font-size:0;text-align:center;padding:12px 0}.side-foot i{margin:0}.main{margin-left:58px;padding:0 12px 20px}.topbar{height:54px}.topbar>div:first-child span{display:none}.actions{gap:7px}.actions span{display:none}.primary{padding:9px 10px;font-size:10px}.page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:22px 0 15px}.page-head h1{font-size:23px}.summary-row{gap:7px}.summary-card{min-height:70px;padding:11px}.summary-card strong{font-size:13px}.panel-head{padding:13px 12px 10px}.date-strip{padding:0 12px 12px}.table-scroll{padding:0 10px 8px}.table-scroll th,.table-scroll td{padding-right:14px}.table-scroll{max-height:62vh}.detail-stats{grid-template-columns:repeat(2,1fr);padding:12px}.charts{grid-template-columns:1fr;padding:0 12px 12px}.detail-table-scroll{padding:0 12px}.tag{display:none}}

button,input{font-family:inherit}.primary{font-size:12px;font-weight:600}.date-picker input,.date-chip,.quiet{font-size:11px}.selected-row td{background:#f2f6ff}.detail-stats{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:680px){.detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:680px){.detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Daily rank matrix, inspired by the supplied reference image. */
.matrix-theme{background:#0b0c10;color:#e8eaf0;--ink:#e8eaf0;--muted:#9297a3;--line:#292b32;--panel:#111217;--blue:#527fda;--red:#f26464;--green:#20b88b}
.matrix-theme .sidebar{background:#202126;border-color:#303138}.matrix-theme .brand{color:#f2f3f6}.matrix-theme .market-nav{color:#b6bac4}.matrix-theme .market-nav span{background:#30323a;color:#d5d7dd}.matrix-theme .market-nav.active{background:#3b2528;color:#fff}.matrix-theme .market-nav.active span{background:#8d3139;color:#fff}.matrix-theme .side-label,.matrix-theme .side-foot{color:#969aa5}.matrix-theme .side-foot{border-color:#393a42}
.matrix-theme .main{max-width:none}.matrix-theme .topbar{border-color:#292b32;color:#9ea2ac}.matrix-theme .topbar b{color:#e7e8ed}.matrix-theme .page-head p,.matrix-theme .panel-head p{color:#9297a3}.matrix-theme .page-head h1{color:#f1f2f5}.matrix-theme .date-picker label{font-size:11px;color:#a8abb4}.matrix-theme .date-picker input,.matrix-theme .date-picker button,.matrix-theme .quiet{background:#181a20;color:#d3d5dc;border-color:#34363e}
.matrix-theme .matrix-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 15px;background:#15161c;border:1px solid #292b32;border-bottom:0;border-radius:8px 8px 0 0}.matrix-theme .matrix-toolbar strong{font-size:12px;color:#eceef2}.matrix-theme .matrix-toolbar #coverage{font-size:10px;color:#8f94a0;margin-left:12px}.matrix-theme .matrix-legend{display:flex;align-items:center;gap:15px;color:#a4a7af;font-size:10px}.matrix-theme .matrix-legend span{display:flex;align-items:center;gap:5px}.matrix-theme .heat{width:11px;height:11px;border-radius:2px;display:inline-block;background:rgba(195,45,54,.48)}.matrix-theme .heat.mid{background:rgba(195,45,54,.2)}.matrix-theme .heat.down{background:rgba(25,149,119,.35)}
.matrix-theme .matrix-panel{margin:0 0 14px;background:#111217;border-color:#292b32;border-radius:0 0 8px 8px}.matrix-theme .matrix-scroll{height:min(68vh,760px);min-height:420px;overflow:auto;position:relative;scrollbar-color:#4b4d55 #1a1b20;scrollbar-width:thin}.matrix-theme .rotation-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:1px;table-layout:fixed;background:#262830}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:115px;min-width:115px;max-width:115px;padding:0;background:#101116;border:0}.matrix-theme .rotation-matrix thead th{position:sticky;top:0;z-index:3;height:47px;background:#14151a;color:#b9bbc3;text-align:center;font-size:11px;font-weight:600;line-height:1.35}.matrix-theme .rotation-matrix thead th small{display:block;margin-top:3px;color:#777c87;font-size:9px;font-weight:400}.matrix-theme .rotation-matrix thead .rank-head{left:0;z-index:5;width:42px;min-width:42px;max-width:42px}.matrix-theme .rotation-matrix thead .latest-day{color:#fff;background:#25262d}.matrix-theme .rotation-matrix .matrix-rank{position:sticky;left:0;z-index:2;width:42px;min-width:42px;max-width:42px;text-align:center;color:#d1d3da;background:#17181d;font-size:11px;font-weight:600}.matrix-theme .rotation-matrix tbody tr{height:57px}.matrix-theme .rotation-matrix .matrix-cell{height:57px;background:#101116;transition:filter .12s,outline .12s}.matrix-theme .rotation-matrix .gain-cell{background:rgba(166,29,37,var(--heat))}.matrix-theme .rotation-matrix .loss-cell{background:rgba(16,128,99,var(--heat))}.matrix-theme .rotation-matrix .blank-cell{background:#101116}.matrix-theme .matrix-entry{height:56px;width:100%;padding:6px 5px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:0;background:transparent;color:#e0e1e5;cursor:pointer;font-family:inherit}.matrix-theme .matrix-entry strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500}.matrix-theme .matrix-entry span{font-size:10px;color:#f17a7b;font-variant-numeric:tabular-nums}.matrix-theme .loss-cell .matrix-entry span{color:#49c6a1}.matrix-theme .matrix-entry:hover{background:#ffffff12}.matrix-theme .board-selected{outline:2px solid #f3ce4e;outline-offset:-2px;position:relative;z-index:1}.matrix-theme .matrix-rank:first-child{background:#202127}.matrix-theme .empty-hint{color:#9297a3}.matrix-theme .detail-panel{background:#14151a;border-color:#292b32}.matrix-theme .detail-stats article,.matrix-theme .chart-card{background:#17181e;border-color:#30323a}.matrix-theme .detail-stats span,.matrix-theme .chart-card h3,.matrix-theme .detail-table th{color:#a1a5af}.matrix-theme .detail-stats strong,.matrix-theme .detail-table td{color:#e0e2e8}.matrix-theme .detail-table thead th{background:#17181e}.matrix-theme .detail-table td{border-color:#2a2c33}.matrix-theme footer{color:#858a95}.matrix-theme dialog{background:#17181e;color:#e8eaf0}.matrix-theme .security-note{background:#22242b;color:#b8bbc4}.matrix-theme dialog input{background:#101116;color:#eef0f4;border-color:#34363e}
.future-market{opacity:.48;cursor:not-allowed}.future-market small{margin-left:auto;font-size:9px;color:#8d929d}
@media(max-width:900px){.matrix-theme .matrix-toolbar{align-items:flex-start;flex-direction:column}.matrix-theme .matrix-scroll{height:64vh;min-height:360px}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:102px;min-width:102px;max-width:102px}}
@media(max-width:680px){.matrix-theme .sidebar{width:58px}.matrix-theme .matrix-legend{gap:8px;flex-wrap:wrap}.matrix-theme .matrix-legend span:last-child{width:100%}.matrix-theme .matrix-scroll{height:62vh;min-height:330px}.matrix-theme .matrix-toolbar{padding:10px}.matrix-theme .matrix-toolbar #coverage{display:block;margin:5px 0 0}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:95px;min-width:95px;max-width:95px}}

/* Compact single-purpose page: the left list is a board selector, not navigation. */
.matrix-theme .rotation-page{min-height:100vh;padding:22px 24px 12px;display:flex;flex-direction:column;max-width:none}
.matrix-theme .rotation-header{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #292b32;padding:0 2px 14px;margin-bottom:14px}
.matrix-theme .rotation-header h1{font-size:22px;margin:5px 0 0;color:#f2f3f6}.matrix-theme .header-tools{display:flex;align-items:center;gap:8px}.matrix-theme .header-tools #coverage{font-size:10px;color:#9da1ab;margin-right:12px;max-width:370px}.matrix-theme .header-tools label{font-size:10px;color:#9da1ab;white-space:nowrap}.matrix-theme .header-tools input{width:132px;height:32px;background:#181a20;color:#d5d7de;border:1px solid #34363e;border-radius:6px;padding:0 7px;font:11px inherit}.matrix-theme .header-tools>button:not(.primary){width:29px;height:32px;background:#181a20;color:#d5d7de;border:1px solid #34363e;border-radius:6px;font-size:18px;cursor:pointer}.matrix-theme .header-tools .primary{height:32px;padding:0 12px;margin-left:5px}
.matrix-theme .rotation-workspace{display:grid;grid-template-columns:255px minmax(0,1fr);gap:10px;align-items:start;flex:1;min-height:0}.matrix-theme .leader-filter,.matrix-theme .matrix-area{background:#111217;border:1px solid #292b32;border-radius:7px;overflow:hidden}.matrix-theme .filter-heading{height:50px;padding:10px 12px 7px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #292b32}.matrix-theme .filter-heading h2{margin:0;color:#eceef2;font-size:13px}.matrix-theme .filter-heading>span{font-size:9px;color:#858a95}.matrix-theme .filter-controls{padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid #292b32}.matrix-theme .filter-controls>label{display:flex;align-items:center;gap:5px;color:#a8abb4;font-size:10px;white-space:nowrap}.matrix-theme .filter-controls select{height:26px;padding:0 20px 0 7px;border:1px solid #3a3c45;border-radius:4px;background:#1a1b21;color:#e3e4e8;font:10px inherit}.matrix-theme .sort-tabs{display:flex;gap:4px}.matrix-theme .sort-tab{height:26px;border:1px solid #353741;border-radius:4px;background:#1a1b21;color:#aeb1ba;padding:0 7px;font:10px inherit;cursor:pointer;white-space:nowrap}.matrix-theme .sort-tab.active{border-color:#a7474d;background:#4a2025;color:#fff}
.matrix-theme .leader-columns{height:31px;padding:0 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;color:#888d99;background:#15161b;border-bottom:1px solid #292b32;font-size:9px}.matrix-theme .leader-list{height:calc(min(68vh,760px) - 81px);min-height:339px;overflow:auto;scrollbar-color:#4b4d55 #1a1b20;scrollbar-width:thin}.matrix-theme .leader-item{width:100%;height:38px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:0 8px;border:0;border-bottom:1px solid #282a30;background:#101116;color:#dfe1e6;text-align:left;cursor:pointer;font-family:inherit}.matrix-theme .leader-item:hover{background:#1d1e25}.matrix-theme .leader-item.selected{background:#3e2429;box-shadow:inset 3px 0 #e15a5e}.matrix-theme .leader-name{min-width:0;display:flex;align-items:center;gap:6px}.matrix-theme .leader-name i{flex:0 0 20px;height:20px;border-radius:3px;display:grid;place-items:center;background:#393b43;color:#e6e7eb;font-size:10px;font-style:normal;font-weight:650}.matrix-theme .leader-item:nth-child(1) .leader-name i{background:#b23840;color:#fff}.matrix-theme .leader-item:nth-child(2) .leader-name i{background:#bd6038;color:#fff}.matrix-theme .leader-item:nth-child(3) .leader-name i{background:#806e3f;color:#fff}.matrix-theme .leader-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500}.matrix-theme .leader-item>strong{font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.matrix-theme .leader-item .positive{color:#f17478!important}.matrix-theme .leader-item .negative{color:#38bb94!important}.matrix-theme #leader-empty{padding:25px 8px}
.matrix-theme .matrix-area{min-width:0}.matrix-theme .matrix-toolbar{height:50px;border:0;border-radius:0;padding:8px 12px;background:#14151a}.matrix-theme .matrix-toolbar strong{white-space:nowrap}.matrix-theme .matrix-legend{gap:10px}.matrix-theme .matrix-legend span{white-space:nowrap}.matrix-theme .matrix-scroll{height:min(68vh,760px);min-height:420px;border-top:1px solid #292b32}.matrix-theme .rotation-matrix{min-width:100%;width:max-content}.matrix-theme .rotation-matrix .rank-head{position:sticky;left:0;z-index:5}.matrix-theme .rotation-matrix thead .rank-head{width:42px;min-width:42px;max-width:42px}.matrix-theme footer{padding:8px 2px 2px;font-size:9px}
@media(max-width:1100px){.matrix-theme .rotation-workspace{grid-template-columns:220px minmax(0,1fr)}.matrix-theme .header-tools #coverage{max-width:230px}.matrix-theme .matrix-legend span:nth-child(1),.matrix-theme .matrix-legend span:nth-child(2),.matrix-theme .matrix-legend span:nth-child(3){display:none}}
@media(max-width:760px){.matrix-theme .rotation-page{padding:12px 9px}.matrix-theme .rotation-header{align-items:flex-start;flex-direction:column;padding-bottom:10px}.matrix-theme .header-tools{width:100%;flex-wrap:wrap}.matrix-theme .header-tools #coverage{order:5;width:100%;max-width:none;margin:2px 0}.matrix-theme .rotation-workspace{grid-template-columns:1fr}.matrix-theme .leader-filter{order:0}.matrix-theme .leader-list{height:190px;min-height:0}.matrix-theme .matrix-area{order:1}.matrix-theme .matrix-scroll{height:58vh;min-height:320px}.matrix-theme .matrix-toolbar{height:auto;min-height:43px}.matrix-theme .matrix-legend span:last-child{white-space:normal}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:95px;min-width:95px;max-width:95px}}

/* Softer light palette keeps the red-up/green-down A-share convention readable. */
.matrix-theme{background:#f3f5f8;color:#26354a}
.matrix-theme .rotation-page{background:#f3f5f8}
.matrix-theme .rotation-header{border-color:#dfe5ed}
.matrix-theme .rotation-header h1{color:#23334b}
.matrix-theme .eyebrow{color:#7d91ad}
.matrix-theme .header-tools #coverage{color:#78869a}
.matrix-theme .header-tools .primary{background:#426fc4;box-shadow:0 3px 8px #426fc420}
.matrix-theme .leader-filter,.matrix-theme .matrix-area{background:#fff;border-color:#dfe5ed;box-shadow:0 3px 12px #33496608}
.matrix-theme .filter-heading,.matrix-theme .filter-controls,.matrix-theme .leader-columns{border-color:#e8edf3}
.matrix-theme .filter-heading h2{color:#26354a}
.matrix-theme .filter-heading>span,.matrix-theme .filter-controls>label{color:#8290a3}
.matrix-theme .filter-controls select,.matrix-theme .sort-tab{background:#f7f9fc;border-color:#dce3ec;color:#5e6d82}
.matrix-theme .sort-tab.active{background:#eaf1ff;border-color:#a9c0eb;color:#315fae}
.matrix-theme .leader-columns{background:#f7f9fc;color:#78879b}
.matrix-theme .leader-list{scrollbar-color:#c5ceda #f2f4f7}
.matrix-theme .leader-item{background:#fff;color:#34445b;border-color:#edf0f4}
.matrix-theme .leader-item:hover{background:#f7f9fc}
.matrix-theme .leader-item.selected{background:#eef4ff;box-shadow:inset 3px 0 #4779dc}
.matrix-theme .leader-name i{background:#e9edf3;color:#596a80}
.matrix-theme .leader-item:nth-child(1) .leader-name i{background:#bd4b55;color:#fff}
.matrix-theme .leader-item:nth-child(2) .leader-name i{background:#d27a55;color:#fff}
.matrix-theme .leader-item:nth-child(3) .leader-name i{background:#c09b52;color:#fff}
.matrix-theme .leader-item .positive{color:#c9434e!important}
.matrix-theme .leader-item .negative{color:#16866c!important}
.matrix-theme .matrix-toolbar{background:#fff;color:#26354a}
.matrix-theme .matrix-toolbar strong{color:#26354a}
.matrix-theme .matrix-legend{color:#718096}
.matrix-theme .matrix-scroll{border-color:#e3e8ef;background:#f6f8fb;scrollbar-color:#bdc7d5 #edf0f4}
.matrix-theme .rotation-matrix{background:#e2e7ee;border-spacing:1px}
.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{background:#fff}
.matrix-theme .rotation-matrix thead th{background:#f4f6f9;color:#4c5c73}
.matrix-theme .rotation-matrix thead th small{color:#929eae}
.matrix-theme .rotation-matrix thead .latest-day{background:#eaf0f8;color:#293c58}
.matrix-theme .rotation-matrix .matrix-rank{background:#f5f7fa;color:#68778b}
.matrix-theme .rotation-matrix .matrix-cell{background:#fff}
.matrix-theme .rotation-matrix .gain-cell{background:rgba(219,89,98,var(--heat))}
.matrix-theme .rotation-matrix .loss-cell{background:rgba(41,157,127,var(--heat))}
.matrix-theme .rotation-matrix .blank-cell{background:#fff}
.matrix-theme .matrix-entry{color:#293950}
.matrix-theme .matrix-entry span{color:#c9434e}
.matrix-theme .loss-cell .matrix-entry span{color:#16866c}
.matrix-theme .matrix-entry:hover{background:#314e7510}
.matrix-theme .board-selected{outline-color:#426fc4}
.matrix-theme .matrix-rank:first-child{background:#e9edf3}
.matrix-theme .empty-hint{color:#8290a3}
.matrix-theme footer{color:#8290a3}
.matrix-theme dialog{background:#fff;color:#26354a}
.matrix-theme .security-note{background:#f3f6fa;color:#6f7e92}
.matrix-theme dialog input{background:#fff;color:#26354a;border-color:#dce3ec}

/* Second view: compact dual-axis market history chart. */
.matrix-theme .brand-title{display:flex;align-items:center;gap:24px;min-width:0}
.matrix-theme .page-tabs{display:flex;align-items:center;gap:5px}
.matrix-theme .page-tab{height:30px;padding:0 11px;border:1px solid transparent;border-radius:5px;background:transparent;color:#78869a;font:11px inherit;cursor:pointer}
.matrix-theme .page-tab:hover{background:#edf1f7;color:#42536b}
.matrix-theme .page-tab.active{background:#eaf1ff;border-color:#d5e2f7;color:#315fae;font-weight:650}
.matrix-theme .trend-view{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dfe5ed;border-radius:7px;box-shadow:0 3px 12px #33496608;padding:16px 18px 12px}
.matrix-theme .trend-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.matrix-theme .trend-heading h2{margin:0;color:#26354a;font-size:14px}
.matrix-theme .trend-heading span{color:#7c899c;font-size:10px;white-space:nowrap}
.matrix-theme .trend-chart-wrap{flex:1;min-height:250px;overflow:hidden}
.matrix-theme .trend-chart{height:100%;min-height:250px}
.matrix-theme .trend-chart svg{width:100%;height:100%;display:block;overflow:visible}
.matrix-theme .trend-chart .grid-line{stroke:#e9edf3;stroke-width:1;stroke-dasharray:3 4}
.matrix-theme .trend-chart .axis-label{fill:#7e8b9e;font-size:11px;font-family:inherit}
.matrix-theme .trend-chart .date-label{font-size:10px}
.matrix-theme .trend-line{fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke}
.matrix-theme .turnover-line{stroke:#356c9a}
.matrix-theme .index-line{stroke:#a1474c}
.matrix-theme .point{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.matrix-theme .turnover-point{fill:#356c9a}.matrix-theme .index-point{fill:#a1474c}
.matrix-theme .trend-legend{display:flex;justify-content:center;gap:24px;padding:8px 0 0;color:#617087;font-size:10px}
.matrix-theme .trend-legend span{display:flex;align-items:center;gap:7px}
.matrix-theme .trend-legend i{width:18px;height:3px;border-radius:2px;display:inline-block;background:#356c9a}
.matrix-theme .trend-legend .index-key{background:#a1474c}
@media(max-width:760px){.matrix-theme .rotation-header{flex-direction:row;align-items:center}.matrix-theme .brand-title{gap:7px;align-items:flex-start;flex-direction:column}.matrix-theme .page-tabs{gap:2px}.matrix-theme .page-tab{height:26px;padding:0 7px;font-size:10px}.matrix-theme .header-tools #coverage{display:none}.matrix-theme .trend-view{min-height:62vh;padding:12px 8px}.matrix-theme .trend-heading h2{font-size:12px}.matrix-theme .trend-chart-wrap,.matrix-theme .trend-chart{min-height:300px}.matrix-theme .trend-legend{gap:13px;font-size:9px}}

/* Dense workstation layout: let the matrix use the viewport instead of leaving a blank footer area. */
.matrix-theme .rotation-page{height:100vh;height:100dvh;min-height:0;padding:8px 12px;overflow:hidden}
.matrix-theme .rotation-header{flex:0 0 48px;min-height:48px;padding:0 2px 7px;margin:0 0 8px}
.matrix-theme .rotation-header h1{font-size:20px;margin:0}
.matrix-theme .header-tools #coverage{max-width:none;white-space:nowrap}
.matrix-theme .rotation-workspace{grid-template-columns:205px minmax(0,1fr);gap:8px;flex:1;min-height:0;align-items:stretch}
.matrix-theme .leader-filter,.matrix-theme .matrix-area{min-height:0}
.matrix-theme .leader-filter{display:flex;flex-direction:column}
.matrix-theme .filter-heading{display:none}
.matrix-theme .filter-controls{flex:0 0 40px;height:40px;padding:5px 7px;justify-content:flex-start;gap:5px}
.matrix-theme .filter-controls>label{display:none}
.matrix-theme .filter-controls select{height:27px;min-width:82px;padding:0 18px 0 6px}
.matrix-theme .filter-controls select{font-family:inherit;font-size:9px}
.matrix-theme .sort-tabs{gap:3px}
.matrix-theme .sort-tab{height:27px;padding:0 6px;font-family:inherit;font-size:9px}
.matrix-theme .leader-columns{flex:0 0 26px;height:26px;padding:0 7px;font-size:9px}
.matrix-theme .leader-list{flex:1;height:auto;min-height:0;overflow:auto}
.matrix-theme .leader-item{height:34px;gap:4px;padding:0 6px}
.matrix-theme .leader-name{gap:4px}
.matrix-theme .leader-name i{flex-basis:18px;height:18px;font-size:9px}
.matrix-theme .leader-name b,.matrix-theme .leader-item>strong{font-size:9px}
.matrix-theme .matrix-area{display:flex;flex-direction:column}
.matrix-theme .matrix-toolbar{flex:0 0 38px;height:38px;padding:6px 10px}
.matrix-theme .matrix-legend{display:none}
.matrix-theme .matrix-scroll{flex:1;height:auto;min-height:0;border-top:0}
.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:clamp(86px,calc((100vw - 278px)/15),118px);min-width:clamp(86px,calc((100vw - 278px)/15),118px);max-width:clamp(86px,calc((100vw - 278px)/15),118px)}
.matrix-theme .rotation-matrix thead .rank-head,.matrix-theme .rotation-matrix .matrix-rank{width:38px;min-width:38px;max-width:38px}
.matrix-theme .rotation-matrix thead th{height:40px}
.matrix-theme .rotation-matrix tbody tr,.matrix-theme .rotation-matrix .matrix-cell{height:48px}
.matrix-theme .matrix-entry{height:47px;gap:3px;padding:4px 3px}
.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:9px}
.matrix-theme footer{display:none}
@media(max-width:900px) and (min-width:761px){.matrix-theme .rotation-workspace{grid-template-columns:190px minmax(0,1fr)}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:86px;min-width:86px;max-width:86px}}
@media(max-width:760px){.matrix-theme .rotation-page{height:auto;min-height:100vh;overflow:visible;padding:10px 8px}.matrix-theme .rotation-header{flex-basis:auto;min-height:44px;margin-bottom:8px}.matrix-theme .rotation-workspace{grid-template-columns:1fr;align-items:stretch}.matrix-theme .leader-filter{max-height:270px}.matrix-theme .leader-list{flex:1;height:190px;min-height:150px}.matrix-theme .matrix-area{min-height:65vh}.matrix-theme .matrix-scroll{height:62vh;min-height:360px;flex:none}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:86px;min-width:86px;max-width:86px}}

/* Larger type and ten-column sizing keep the matrix readable on the available viewport. */
.matrix-theme .header-tools #coverage{font-size:12px}
.matrix-theme .rotation-header h1{font-size:23px}
.matrix-theme .filter-controls select,.matrix-theme .sort-tab{font-size:11px}
.matrix-theme .filter-controls select{min-width:88px}
.matrix-theme .sort-tab{padding:0 8px}
.matrix-theme .leader-columns{font-size:11px}
.matrix-theme .leader-item{height:38px;padding:0 8px}
.matrix-theme .leader-name i{flex-basis:20px;height:20px;font-size:10px}
.matrix-theme .leader-name b,.matrix-theme .leader-item>strong{font-size:11px}
.matrix-theme .matrix-toolbar strong{font-size:14px}
.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:clamp(88px,calc((100vw - 265px)/10),160px);min-width:clamp(88px,calc((100vw - 265px)/10),160px);max-width:clamp(88px,calc((100vw - 265px)/10),160px)}
.matrix-theme .rotation-matrix thead th{height:42px;font-size:13px}
.matrix-theme .rotation-matrix thead th small{display:none}
.matrix-theme .rotation-matrix thead .rank-head,.matrix-theme .rotation-matrix .matrix-rank{font-size:13px}
.matrix-theme .rotation-matrix tbody tr,.matrix-theme .rotation-matrix .matrix-cell{height:56px}
.matrix-theme .matrix-entry{height:55px;gap:4px}
.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:12px}
.matrix-theme .trend-heading h2{font-size:19px}
.matrix-theme .trend-heading span{font-size:13px}
.matrix-theme .trend-chart .axis-label{font-size:13px}
.matrix-theme .trend-chart .date-label{font-size:12px}
.matrix-theme .trend-legend{font-size:13px}
.matrix-theme .trend-chart .trend-line{stroke-width:3}
.matrix-theme .trend-view .empty-hint{font-size:14px}
@media(max-width:1000px) and (min-width:761px){.matrix-theme .rotation-workspace{grid-template-columns:190px minmax(0,1fr)}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:88px;min-width:88px;max-width:88px}.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:11px}}
@media(max-width:760px){.matrix-theme .rotation-header h1{font-size:20px}.matrix-theme .header-tools #coverage{font-size:11px}.matrix-theme .matrix-toolbar strong{font-size:13px}.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:90px;min-width:90px;max-width:90px}.matrix-theme .rotation-matrix thead th{font-size:12px}.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:11px}.matrix-theme .trend-heading h2{font-size:16px}.matrix-theme .trend-heading span{font-size:11px}.matrix-theme .trend-chart .axis-label{font-size:12px}.matrix-theme .trend-chart .date-label{font-size:11px}.matrix-theme .trend-legend{font-size:11px}}

/* Keep the compact left filter typography while restoring the 15-session matrix density. */
.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:clamp(86px,calc((100vw - 265px)/15),118px);min-width:clamp(86px,calc((100vw - 265px)/15),118px);max-width:clamp(86px,calc((100vw - 265px)/15),118px)}
.matrix-theme .rotation-matrix thead th{height:40px;font-size:11px}
.matrix-theme .rotation-matrix tbody tr,.matrix-theme .rotation-matrix .matrix-cell{height:48px}
.matrix-theme .matrix-entry{height:47px;gap:3px;padding:4px 3px}
.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:9px}
@media(max-width:1000px) and (min-width:761px){.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:86px;min-width:86px;max-width:86px}.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:9px}}
@media(max-width:760px){.matrix-theme .rotation-matrix th,.matrix-theme .rotation-matrix td{width:86px;min-width:86px;max-width:86px}.matrix-theme .rotation-matrix thead th{font-size:11px}.matrix-theme .matrix-entry strong,.matrix-theme .matrix-entry span{font-size:9px}}
