:root{--bg:#eef2f8;--ink:#152d4f;--soft:#66778f;--line:#e7edf5;--blue:#2563eb;--cyan:#06b6d4;--green:#059669;--red:#dc454b;--shadow:0 4px 22px rgba(23,48,83,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,select{cursor:pointer}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.55}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #18a8e5}button{transition:background .16s,color .16s}a{color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:28px 18px 20px;background:linear-gradient(165deg,#0d2d51,#091c35);color:#b8c8df;display:flex;flex-direction:column;z-index:10}.brand{text-decoration:none;display:flex;align-items:center;gap:11px;padding:0 6px 29px;border-bottom:1px solid #ffffff14}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#16c6db,#3572ee);color:white;font-size:32px;line-height:1;box-shadow:0 5px 17px #02b5de26}.brand strong{display:block;font-size:21px;letter-spacing:-.7px;color:white}.brand small{display:block;color:#8fa7c4;font-size:10px;letter-spacing:1px}.nav-caption{font-size:11px;letter-spacing:1.7px;color:#7b94b5;margin:28px 12px 11px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{background:none;border:1px solid transparent;color:#b7c8df;border-radius:9px;padding:12px 13px;display:flex;gap:13px;align-items:center;font-size:13px;text-align:left}.nav-item span{font-size:22px;line-height:1;width:21px;text-align:center}.nav-item:hover{background:#ffffff09;color:white}.nav-item.active{background:linear-gradient(100deg,#07b9d824,#3272e82c);border-color:#7ba9de1c;color:white}.nav-item.active span{color:#33d1ea}.side-note{margin-top:auto;padding:40px 12px 27px}.tiny-label{font-size:8px;letter-spacing:1.7px;color:#6f8cae}.side-note p{font-size:18px;line-height:1.9;font-weight:300;color:#c7d5e7;margin:13px 0}.side-line{display:block;width:30px;height:3px;background:linear-gradient(90deg,#08bfd7,#3977f3);margin:20px 0}.side-note small{font-size:10px;color:#7894b3}.side-foot{border-top:1px solid #ffffff12;padding:18px 5px 0;font-size:10px;display:flex;align-items:center;gap:7px;color:#91a6c1}.side-foot small{margin-left:auto;font-size:9px;color:#647e9c}.status-dot,.muted-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#10b981;flex:none}.status-dot{box-shadow:0 0 0 3px #10b98118}main{margin-left:224px;padding:27px 32px 0;min-width:0;max-width:2000px}.topbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:23px}.eyebrow{font-size:10px;color:#8290a5;letter-spacing:.3px;display:flex;gap:8px;margin-bottom:8px}.eyebrow span:last-child{color:#486487}h1{font-size:25px;letter-spacing:-.7px;line-height:1.3;margin:0 0 7px;font-weight:720}.page-sub{font-size:12px;color:var(--soft);margin:0}.top-actions{display:flex;gap:12px;align-items:center}.badge,.chip{font-size:10px;border-radius:6px;padding:4px 9px;color:#36649b;background:#ecf3fd;white-space:nowrap}.badge.demo{color:#a16a08;background:#fff4d9}.badge.readonly{color:#5c6c84;background:#e3eaf3}.button{border:0;border-radius:7px;padding:9px 14px;background:var(--blue);color:white;font-size:12px;white-space:nowrap}.button:hover:not(:disabled){background:#1d4ed8}.button.secondary{border:1px solid #dce5ef;background:white;color:#45607f;box-shadow:0 2px 4px #16365a03}.button.secondary:hover:not(:disabled){background:#f5f8fc}.button span{font-size:16px;margin-right:3px}.portfolio-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.account-field{display:flex;gap:12px;align-items:center;font-size:11px;color:#708099}select{border:1px solid #dce5ef;border-radius:7px;background:white;color:#355273;padding:8px 28px 8px 11px;font-size:12px;max-width:100%}.data-asof{display:flex;align-items:center;gap:7px;color:#7a8aa0;font-size:10px}.muted-dot{background:#94a3b8}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.kpi{position:relative;background:white;border:1px solid #e5ebf4;border-radius:13px;padding:18px 19px 17px;box-shadow:var(--shadow);overflow:hidden;min-width:0}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#697b95;font-size:11px}.kpi-icon{width:28px;height:28px;display:grid;place-items:center;background:#edf3ff;border-radius:8px;color:#4278e5;font-size:16px}.green-icon{color:#0aab84;background:#e9f8f2}.amber-icon{color:#dfa029;background:#fff6e5}.cyan-icon{color:#00a6c0;background:#e9f8fc}.kpi-value{font-size:26px;letter-spacing:-.8px;font-weight:730;line-height:1.4;margin:7px 0 4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;position:relative;z-index:1}.kpi p{font-size:10px;color:#8794a6;margin:0;position:relative;z-index:1}.kpi-hint{color:#8794a6}.primary-kpi{background:linear-gradient(135deg,#fff,#f8fbff)}.spark{position:absolute;width:96px;right:14px;bottom:12px;opacity:.22}.spark path{stroke:#4385e8;stroke-width:2.5;fill:none}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.chart-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px}.card{background:#fff;border:1px solid #e5ebf4;border-radius:13px;padding:21px 22px;box-shadow:var(--shadow);margin-bottom:20px;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.card h2{font-size:14px;margin:0 0 3px;font-weight:680;letter-spacing:.1px}.card-head p{font-size:10px;color:#8b98aa;margin:0}.unit-label{font-size:9px;color:#8a97aa;white-space:nowrap}.chart{min-width:0}.chart svg{display:block;width:100%;height:auto;overflow:visible}.chart-bar{min-height:210px}.chart-line{min-height:205px}.chart-line.large{min-height:310px}.chart svg text{font-family:inherit;fill:#8a98ac;font-size:9px}.chart svg .chart-value{font-size:9px;font-weight:600}.chart-foot{display:flex;align-items:center;gap:16px;font-size:9px;color:#91a0b1;padding-top:5px}.chart-foot span{display:flex;gap:5px;align-items:center}.chart-foot small{margin-left:auto;font-size:9px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;flex:none}.positive-bg{background:#10b981}.negative-bg{background:#ed656b}.allocation-content{display:flex;align-items:center;justify-content:center;gap:23px;min-height:210px}.chart-pie{width:165px;flex:0 1 165px;min-width:90px}.chart-pie svg{display:block;width:100%;filter:drop-shadow(0 4px 7px #2763eb0a)}.allocation-legend{min-width:110px;flex:1;max-width:180px;display:flex;flex-direction:column;gap:12px}.allocation-row{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.4}.allocation-row .legend-name{flex:1;color:#667c95;overflow-wrap:anywhere}.allocation-row strong{font-size:10px;color:#3b5575;font-variant-numeric:tabular-nums}.card-note{color:#8c9bae;font-size:10px;margin:14px 0 0;line-height:1.8}.allocation-content+.card-note{text-align:center;border-top:1px solid #f0f3f8;padding-top:12px;margin-top:5px}.range{display:flex;gap:3px;background:#f2f5fa;padding:3px;border-radius:7px}.range button{border:0;background:transparent;color:#8291a6;border-radius:5px;padding:4px 10px;font-size:10px;white-space:nowrap}.range button.active{background:white;box-shadow:0 1px 4px #16365a10;color:#3471d7}.holdings-head{gap:16px}.count{background:#eff4fc;color:#6e89af;font-size:9px;padding:2px 6px;margin-left:5px;border-radius:4px}.table-controls{display:flex;gap:10px;align-items:center}.search-field{border:1px solid #e0e7f0;border-radius:7px;display:flex;align-items:center;padding:5px 9px;gap:7px}.search-field span{font-size:20px;color:#9aa7b9;line-height:1}.search-field input{border:0;outline:none;font-size:10px;width:131px;padding:3px 0;color:#385675;background:transparent;min-width:0}.search-field input::placeholder{color:#9ba8b9}.table-controls select{font-size:10px;padding:7px 23px 7px 9px}.table-scroll{overflow:auto;max-width:100%;scrollbar-width:thin}table{border-collapse:collapse;width:100%;font-size:10px;text-align:left;white-space:nowrap}th{background:#f7f9fc;color:#8b98aa;font-size:9px;font-weight:500;padding:11px 10px;border-bottom:1px solid #eaf0f7}td{border-bottom:1px solid #f0f3f7;padding:13px 10px;color:#536c8b;font-variant-numeric:tabular-nums}.numeric{text-align:right}tbody tr:last-child td{border-bottom:0}.asset-cell{display:flex;align-items:center;gap:9px}.coin-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:11px;font-weight:700;flex:none;color:#3965ac;background:#edf3fd}.asset-symbol{font-size:11px;color:#254468;font-weight:600}.asset-plate{font-size:9px;color:#9aa7b8;line-height:1.5}.weight-bar{display:inline-block;width:29px;height:3px;background:#eff3f9;border-radius:4px;margin-right:7px;vertical-align:middle;overflow:hidden}.weight-bar i{display:block;height:100%;background:#5a91ed;border-radius:4px}.sources-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.source{border:1px solid #edf1f7;background:#fcfdff;border-radius:8px;padding:12px;min-width:0}.source-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:8px}.source strong{font-size:11px;font-weight:600}.source time,.source p{font-size:10px;color:#8a9aaf;display:block;overflow-wrap:anywhere;margin:3px 0 0}.source-status{font-size:9px;color:#75879e;flex:none}.source-status.ok{color:#0a9b78}.source-status.warn{color:#af7e27}.warnings{font-size:10px;color:#a27a37}.warnings p{margin:10px 0 0;padding:7px 10px;background:#fffbf0;border-radius:5px}.notice,.error-banner{border:1px solid #d8e7fa;background:#edf5ff;color:#51729a;padding:10px 14px;border-radius:8px;font-size:11px;line-height:1.8;margin-bottom:18px}.error-banner{border-color:#f5d4d7;background:#fff2f3;color:#b4434e}.task-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 20px}.task-intro h2{font-size:17px;margin:0 0 5px}.task-intro p{color:#768aa3;font-size:12px;margin:0}.tasks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.task-card{margin:0;display:flex;flex-direction:column}.task-card .card-head{align-items:start;margin-bottom:15px}.task-label{display:flex;gap:8px;align-items:center}.task-state{font-size:10px;color:#8191a6}.task-state.running{color:#2563eb}.task-card form{display:flex;flex-direction:column;flex:1}.task-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.task-fields label{font-size:10px;color:#7f8da2;display:flex;flex-direction:column;gap:5px}.task-fields select,.task-fields input[type=number]{font-size:11px;padding:7px 9px;border:1px solid #dce5ef;border-radius:6px;min-width:0;width:100%;background:white;color:#355273}.task-fields .checkbox-label{flex-direction:row;align-items:center;color:#516d8e;padding-top:15px}.task-fields input[type=checkbox]{accent-color:#2563eb;width:15px;height:15px}.task-times{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:18px 0;font-size:9px;color:#8192aa}.task-times span{display:block;color:#3e5e83;font-size:10px;margin-top:3px}.task-message{font-size:10px;color:#8394aa;margin:0 0 14px;overflow-wrap:anywhere}.task-error{color:#c24752}.task-actions{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #edf1f7;padding-top:13px;margin-top:auto}.task-actions .button{font-size:10px;padding:7px 11px}.run-status{font-size:10px;border-radius:4px;padding:3px 7px;background:#f0f4fa;color:#69809e}.run-status.success{color:#078667;background:#eaf8f2}.run-status.failed{color:#c34e55;background:#fdf0f1}.run-status.running{color:#3370c5;background:#eaf2ff}.explanation{font-size:12px;color:#7c8da5;line-height:2;margin:12px 0 0}.history-stats{display:flex;gap:35px;margin-top:20px;padding-top:18px;border-top:1px solid #eef2f7;font-size:10px;color:#8a99ae;flex-wrap:wrap}.history-stats strong{display:block;color:#3f5e82;font-size:15px;margin-top:4px;font-variant-numeric:tabular-nums}.empty{text-align:center;color:#92a0b2;font-size:12px;padding:50px 12px}.chart-pie .empty{padding:35px 0}.loading{opacity:.55;pointer-events:none}footer{text-align:center;color:#a0adbe;font-size:9px;letter-spacing:.4px;padding:9px 0 23px}footer span{margin:0 7px;color:#b8c4d3}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173354;color:white;box-shadow:0 8px 24px #09213c25;border-radius:9px;padding:12px 20px;max-width:calc(100% - 32px);font-size:12px;z-index:50}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-70px;left:16px;background:white;padding:12px;z-index:100}.skip:focus{top:10px}[hidden]{display:none!important}@media(min-width:1550px){main{padding:32px 45px}.kpi-value{font-size:31px}.chart-grid{grid-template-columns:1.4fr 1fr}.chart-bar{min-height:250px}.card{padding:24px}.allocation-content{min-height:250px}.chart-pie{width:190px;flex-basis:190px}}@media(max-width:1150px){.sidebar{width:190px;padding:25px 13px}.brand strong{font-size:19px}.brand{gap:8px}.brand-mark{width:34px;height:34px;font-size:28px}main{margin-left:190px;padding:24px 22px 0}.kpi-grid{gap:11px}.kpi{padding:15px 13px}.kpi-value{font-size:22px}.kpi-top{font-size:10px}.kpi-icon{width:23px;height:23px;font-size:14px}.card{padding:18px}.allocation-content{gap:13px}.chart-pie{flex-basis:130px}.allocation-legend{min-width:95px}.sources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-controls{gap:6px}.search-field input{width:105px}.chart-grid{gap:16px}}@media(max-width:900px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}.allocation-content{min-height:200px;gap:40px}.chart-pie{flex-basis:170px}.holdings-head{align-items:flex-start;flex-direction:column}.table-controls{width:100%;justify-content:space-between}.search-field{flex:1}.search-field input{width:100%}.sources-grid{grid-template-columns:1fr 1fr}.tasks-grid{grid-template-columns:1fr}.top-actions{gap:6px}.top-actions .button{padding:8px;font-size:10px}.badge{font-size:9px}.topbar{gap:10px}.chart-bar{min-height:200px}.chart-line{min-height:180px}}@media(max-width:650px){.sidebar{position:static;width:100%;height:auto;display:flex;padding:14px 17px 0;background:linear-gradient(110deg,#0c2a4c,#0a1f3a);gap:0}.brand{border:none;padding:0 0 14px;gap:9px}.brand-mark{width:30px;height:30px;font-size:25px;border-radius:9px}.brand strong{font-size:19px}.brand small{font-size:9px}.nav-caption,.side-note,.side-foot{display:none}.sidebar nav{flex-direction:row;gap:7px}.nav-item{flex:1;justify-content:center;padding:10px 4px;font-size:11px;border-radius:7px 7px 0 0;border-bottom:0}.nav-item span{font-size:18px;width:18px}.nav-item.active{background:#ffffff10}.sidebar nav{gap:4px}.nav-item{gap:6px}main{margin:0;padding:21px 16px 0}.topbar{align-items:flex-start;margin-bottom:19px}.eyebrow{font-size:9px;margin-bottom:6px}h1{font-size:22px}.page-sub{font-size:10px;max-width:220px}.top-actions{flex-direction:column;align-items:flex-end;gap:7px;padding-top:2px}.top-actions .button{font-size:10px;padding:5px 9px}.top-actions .button span{font-size:13px}.badge{padding:3px 7px}.portfolio-toolbar{flex-wrap:wrap;gap:10px;margin-bottom:14px}.account-field{font-size:10px;gap:9px}.account-field select{padding-top:6px;padding-bottom:6px}.data-asof{font-size:9px;margin-left:auto;max-width:100%}.kpi-grid{gap:10px;margin-bottom:15px}.kpi{border-radius:11px;padding:13px}.kpi-value{font-size:22px;margin:8px 0 4px;letter-spacing:-.7px}.kpi p{font-size:8px}.kpi-top{font-size:10px}.spark{width:64px;bottom:14px;right:10px}.kpi-icon{width:22px;height:22px;border-radius:6px}.card{padding:17px 14px;margin-bottom:15px;border-radius:11px}.card h2{font-size:13px}.card-head{gap:8px;margin-bottom:14px}.card-head p{font-size:9px}.unit-label{font-size:8px}.chart-grid{gap:0}.chart-bar{min-height:175px}.chart-foot{font-size:8px;gap:12px}.chart-foot small{font-size:8px}.allocation-content{gap:25px;min-height:195px}.chart-pie{flex-basis:150px}.allocation-legend{max-width:140px;gap:12px}.allocation-row{font-size:10px}.card-note{font-size:9px}.range{gap:0;padding:2px}.range button{font-size:9px;padding:4px 7px}.history-card .card-head{flex-wrap:wrap;gap:12px}.chart-line{min-height:135px}.chart-line.large{min-height:180px}.sources-grid{grid-template-columns:1fr}.source{padding:11px}.source time,.source p{font-size:9px}.source strong{font-size:10px}.search-field{min-width:0}.table-controls select{max-width:130px;font-size:9px}.search-field input{font-size:9px}.table-controls{gap:7px}.task-intro{align-items:start;margin-top:0}.task-intro h2{font-size:15px}.task-intro p{font-size:10px}.task-fields{gap:12px}.task-times{gap:10px}.notice,.error-banner{font-size:10px;padding:10px 12px}.history-stats{gap:20px;font-size:9px}.history-stats strong{font-size:13px}.page-history .card-head{flex-wrap:wrap}footer{font-size:8px;padding:10px 0 20px}.chart svg text{font-size:10px}.chart svg .chart-value{font-size:10px}}

.sidebar a.nav-item{text-decoration:none}@media(max-width:650px){.sidebar nav{flex-wrap:wrap}.sidebar .nav-item{flex:1 0 28%}}
@media(max-width:430px){.primary-kpi{grid-column:1/-1}.primary-kpi .kpi-value{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(23px,7.3vw,31px);letter-spacing:-.7px}.primary-kpi .spark{width:100px;right:18px;bottom:16px}.kpi:not(.primary-kpi) .kpi-value{font-size:20px}.kpi:not(.primary-kpi){min-width:0}}
