@charset "UTF-8";
:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#172b45;background:#f3f6f9;font-synthesis:none;text-rendering:optimizeLegibility;--navy:#132d4a;--navy-2:#1e4265;--teal:#078b91;--teal-soft:#e5f5f4;--line:#dfe7ed;--muted:#687b8d;--paper:#fff;--red:#b64a4a;--shadow:0 8px 28px rgba(21,48,73,.055)}*{box-sizing:border-box}body{margin:0;min-width:320px}.shell{max-width:1180px;padding:0 28px 48px;margin:0 auto}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6ec}.brand{display:flex;align-items:center;gap:11px;color:var(--navy);font-size:16px;font-weight:700;text-decoration:none;letter-spacing:.02em}.brand-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:var(--navy);color:#fff;font-size:16px}.topbar-right{display:flex;align-items:center;gap:16px}.session-label,.count-label{color:var(--muted);font-size:12px}.button{font:inherit;font-size:13px;font-weight:650;border:1px solid transparent;border-radius:7px;padding:10px 15px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.button:disabled{opacity:.55;cursor:wait}.button-primary{background:var(--navy);color:#fff}.button-primary:hover:not(:disabled){background:#20476d}.button-outline{background:#fff;border-color:#a8c2d0;color:var(--navy)}.button-outline:hover:not(:disabled){background:#eff7f8;border-color:var(--teal)}.button-quiet{background:transparent;color:#526a7e;padding:8px 10px}.button-quiet:hover{color:var(--navy);background:#edf2f6}.hidden{display:none!important}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:34px 0 22px}.eyebrow{color:var(--teal);font-size:10px;font-weight:750;letter-spacing:.14em;margin-bottom:8px}.page-heading h1,.login-card h1{margin:0;color:var(--navy);font-size:27px;letter-spacing:-.025em}.muted{color:var(--muted);font-size:13px;line-height:1.55}.page-heading .muted{margin:8px 0 0}.freshness-badge{border:1px solid #d3e6e6;background:#f0f9f8;color:#257477;border-radius:30px;padding:8px 12px;font-size:11px}.freshness-badge.is-stale{border-color:#ecd9bc;background:#fff8ee;color:#9a6720}.panel{background:var(--paper);border:1px solid #e5ebef;border-radius:12px;padding:23px 24px;margin-bottom:18px;box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:17px}.section-heading h2{margin:0;color:var(--navy);font-size:18px;letter-spacing:-.015em}.section-heading .eyebrow{margin-bottom:5px}.overview-grid{display:grid;grid-template-columns:1.12fr 1fr .88fr;gap:12px}.overview-grid article{min-height:164px;border:1px solid var(--line);border-radius:9px;padding:17px}.report-card{background:linear-gradient(135deg,#f8fbfd,#f1f7fa)}.card-label{font-size:11px;color:var(--muted);font-weight:650}.report-card h3{font-size:17px;color:var(--navy);margin:12px 0 7px}.report-card p{font-size:11px;margin:0 0 13px}.report-card .button{display:inline-flex;gap:10px;text-decoration:none;align-items:center}.cash-total{font-size:24px;font-weight:700;color:var(--navy);margin:10px 0}.cash-accounts{display:grid;gap:6px}.cash-row{display:flex;justify-content:space-between;gap:10px;font-size:12px}.cash-account-name{color:#526a7e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cash-value{font-variant-numeric:tabular-nums;color:#263e55}.micro-note{font-size:10px;line-height:1.5;color:#8795a2;margin:11px 0 0}.refresh-card p:not(.micro-note){font-size:12px;line-height:1.55;color:#526a7e;min-height:38px;margin:11px 0 12px}.refresh-status{margin-left:auto;color:var(--muted);font-size:11px;text-align:right;max-width:65%;line-height:1.5}.refresh-status.is-running{color:var(--teal)}.refresh-status.has-issue{color:#a56b20}.section-intro{font-size:12px;color:var(--muted);margin:-5px 0 15px}.actions-list{display:grid;gap:11px}.action-card{border:1px solid var(--line);border-radius:9px;padding:17px 18px}.action-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.action-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.action-heading h3{font-size:15px;color:var(--navy);margin:0}.action-detail{font-size:13px;line-height:1.7;color:#425b70;margin:9px 0}.action-meta{font-size:10px;color:#8a99a6;margin:0}.decision-pill{font-size:10px;padding:4px 8px;border-radius:20px;background:#eef3f6;color:#5b6c7a}.decision-follow{background:#e5f5f1;color:#19715c}.decision-defer{background:#fff5e7;color:#946521}.decision-decline{background:#f8eded;color:#9d4d4d}.blocked-note{margin:9px 0 0;color:#966b35;font-size:11px}.saved-decision{border-top:1px solid #edf0f2;margin-top:12px;padding-top:10px;color:#64798a;font-size:11px}.saved-decision p{color:#394f62;font-size:12px;line-height:1.5;white-space:pre-wrap;margin:6px 0 0}.decision-form{border-top:1px solid #e9eef1;margin-top:15px;padding-top:14px;display:grid;gap:8px}.decision-form label{font-size:11px;font-weight:650;color:#4b6276;margin-top:2px}.decision-select,.decision-note,input[type=password]{font:inherit;font-size:13px;color:#213a53;border:1px solid #cfdbe3;border-radius:6px;background:#fff;padding:9px 10px;width:100%;outline:none}.decision-select:focus,.decision-note:focus,input[type=password]:focus{border-color:#4ca2a2;box-shadow:0 0 0 3px rgba(7,139,145,.1)}.decision-note{resize:vertical;line-height:1.5}.form-actions{display:flex;gap:8px;margin-top:4px}.form-error{margin:2px 0;color:var(--red);font-size:11px;line-height:1.5}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:680px;text-align:left}th{font-size:10px;text-transform:none;color:#788a99;font-weight:650;background:#f7f9fa}td,th{padding:11px 12px;border-bottom:1px solid #edf0f2;vertical-align:top}td{font-size:11px;color:#455d71;line-height:1.55}td:nth-child(4){white-space:pre-wrap;min-width:180px;max-width:360px}.empty-state{padding:21px 12px;text-align:center;color:#8493a0;font-size:12px}.footer-note{padding:0 4px;color:#8795a2;font-size:10px}.global-notice{position:fixed;right:24px;bottom:22px;max-width:min(460px,calc(100vw - 32px));padding:12px 16px;border-radius:8px;background:#233d57;color:#fff;box-shadow:0 8px 24px #142c4133;font-size:12px;line-height:1.55;z-index:5}.notice-success{background:#176e67}.notice-error{background:#9d4141}.login-view{min-height:calc(100vh - 118px);display:grid;place-items:center}.login-card{width:min(420px,100%);padding:32px;background:#fff;border:1px solid #e3e9ee;border-radius:12px;box-shadow:var(--shadow)}.login-card h1{font-size:23px}.login-card>p{font-size:12px}.login-card form{display:grid;gap:8px;margin-top:22px}.login-card label{font-size:12px;font-weight:650;color:#4b6276}.button-wide{width:100%;margin-top:7px}.login-help{margin:18px 0 0;color:#7c8b98;line-height:1.7}.login-help code{font-size:11px;color:#475e72;background:#f2f5f7;border-radius:4px;padding:2px 4px}.notice-error{color:#a44444;font-size:12px}.login-card .notice-error{margin-bottom:0}@media(max-width:800px){.shell{padding:0 17px 34px}.overview-grid{grid-template-columns:1fr 1fr}.refresh-card{grid-column:1/-1;min-height:unset!important}.refresh-card p:not(.micro-note){min-height:unset}.page-heading{padding-top:27px}.panel{padding:19px}.overview-grid article{min-height:150px}}@media(max-width:540px){.topbar{height:60px}.session-label{font-size:10px}.topbar-right{gap:5px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px}.page-heading h1{font-size:24px}.freshness-badge{font-size:10px}.overview-grid{grid-template-columns:1fr}.overview-grid article{min-height:unset}.refresh-card{grid-column:auto}.section-heading{align-items:flex-start}.refresh-status{max-width:52%;font-size:10px}.action-card{padding:14px}.action-top{align-items:flex-start}.action-heading h3{line-height:1.45}.expand-button{white-space:nowrap;font-size:11px}.panel{padding:16px;border-radius:10px}.global-notice{right:12px;bottom:12px}.cash-total{font-size:22px}}
.inputs-changed{margin:-6px 0 17px;padding:11px 14px;border:1px solid #e2b56c;border-radius:7px;background:#fff5e5;color:#7c4c0c;font-size:13px;font-weight:700}.login-error{margin:14px 0 0;padding:9px 11px;border-radius:6px;background:#fff0ef;color:#923b37;font-size:12px;line-height:1.5}.global-notice.notice-error{background:#8f3030;color:#fff}
.heading-actions{display:flex;align-items:center;gap:12px}.overview-grid{grid-template-columns:1.1fr 1fr}.overview-note{margin-top:12px}.holdings-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:3px 0 13px}.holding-total-card{padding:14px 15px;border:1px solid #dfe8ed;border-radius:8px;background:#f8fbfc}.holding-total-title{font-size:11px;font-weight:700;color:#526a7e}.holding-total-value{font-size:21px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums;margin:7px 0 4px}.holding-total-pnl{font-size:12px;font-weight:650}.holding-total-coverage,.holding-total-cost,.holding-total-pct{font-size:10px;color:#728596;line-height:1.6;margin-top:5px}.positive{color:#16734f!important}.negative{color:#b24444!important}.holdings-note{font-size:11px;line-height:1.6;color:#6e8090;margin:8px 0}.holdings-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:15px 0 9px}.holdings-caption{font-size:10px;color:#81909d;margin:0}.filter-controls{display:flex;align-items:center;gap:7px}.filter-controls label{font-size:10px;color:#63798a}.filter-controls select{min-width:100px;max-width:190px;padding:7px 8px;border:1px solid #d2dde4;border-radius:6px;background:#fff;color:#304b61;font:inherit;font-size:11px}.holdings-groups{display:grid;gap:9px}.holding-group{border:1px solid var(--line);border-radius:8px;overflow:hidden}.holding-group>summary{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:#f5f8fa;color:var(--navy);font-size:12px;font-weight:700;cursor:pointer;list-style:none}.holding-group>summary::-webkit-details-marker{display:none}.holding-group>summary:before{content:"▸";color:var(--teal);margin-right:9px;transition:transform .12s}.holding-group[open]>summary:before{transform:rotate(90deg)}.holding-group>summary span:first-of-type{margin-right:auto}.holding-group-count{font-size:10px;color:#718495;font-weight:500}.holdings-table-wrap{max-height:unset}.holdings-table{min-width:1160px}.holdings-table th{position:sticky;top:0;z-index:1}.holdings-table td{white-space:nowrap}.holdings-table td.holding-name-cell{white-space:normal;min-width:180px;max-width:280px}.holding-name-wrap{display:flex;flex-direction:column;gap:3px}.holding-name-wrap.is-child{padding-left:20px;position:relative}.holding-name-wrap.is-child:before{content:"↳";position:absolute;left:4px;color:#8b9ba7}.holding-security-name{font-size:12px;font-weight:650;color:#263f56;line-height:1.4}.holding-symbol{font-size:10px;color:#8293a0}.numeric-cell{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.holdings-table th:nth-child(n+4){text-align:right}.holding-pnl{font-weight:650}.holding-detail-row td{padding:5px 12px 9px 15px;background:#fbfcfd;color:#7c8b98;font-size:10px;white-space:normal;line-height:1.5;border-bottom:1px solid #e9eef1}.holding-child-row td{background:#fff}.holding-child-detail td{background:#fcfdfd}.holdings-empty{min-height:60px}@media(max-width:800px){.holdings-toolbar{align-items:flex-start;flex-direction:column}.filter-controls{flex-wrap:wrap}.holdings-table{min-width:1080px}.heading-actions{align-items:flex-end;flex-direction:column;gap:7px}.heading-actions .button{align-self:flex-start}.overview-grid{grid-template-columns:1fr 1fr}}@media(max-width:540px){.page-heading{flex-direction:row;align-items:center}.heading-actions{align-items:flex-end}.heading-actions .button{font-size:11px;padding:8px 10px}.holdings-totals{grid-template-columns:1fr}.filter-controls select{min-width:0;max-width:100%;flex:1}.overview-grid{grid-template-columns:1fr}.holdings-panel{padding:13px}}
.shell{max-width:1480px}.holdings-table{width:100%;min-width:0;table-layout:fixed}.holdings-table td,.holdings-table th{padding:8px 6px}.holdings-table td{white-space:normal;overflow-wrap:anywhere}.holdings-table td.numeric-cell{white-space:nowrap;overflow-wrap:normal}.holdings-table td:nth-child(1),.holdings-table th:nth-child(1){width:17%}.holdings-table td:nth-child(2),.holdings-table th:nth-child(2){width:11%}.holdings-table td:nth-child(3),.holdings-table th:nth-child(3){width:5%}.holdings-table td:nth-child(4),.holdings-table th:nth-child(4){width:8%;min-width:0;max-width:none;white-space:nowrap}.holdings-table td:nth-child(5),.holdings-table th:nth-child(5){width:11%}.holdings-table td:nth-child(6),.holdings-table th:nth-child(6){width:10%}.holdings-table td:nth-child(7),.holdings-table th:nth-child(7){width:8%}.holdings-table td:nth-child(8),.holdings-table th:nth-child(8){width:10%}.holdings-table td:nth-child(9),.holdings-table th:nth-child(9){width:11%}.holdings-table td:nth-child(10),.holdings-table th:nth-child(10){width:9%}.holdings-table td.holding-name-cell{min-width:0;max-width:none}.holdings-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.holding-group>summary span:first-of-type{white-space:normal;overflow-wrap:anywhere}.holding-children-row>td{padding:0 8px 8px;background:#fff}.holding-children{border-top:1px dashed #dce5ea;padding:8px 0 0}.holding-children>summary{width:max-content;max-width:100%;padding:5px 0;color:#27777a;font-size:10px;font-weight:650;cursor:pointer;list-style:none}.holding-children>summary::-webkit-details-marker{display:none}.holding-children>summary:before{content:"＋";margin-right:6px}.holding-children[open]>summary:before{content:"−"}.child-holdings-table{margin-top:4px}.child-holdings-table td.holding-name-cell{padding-left:14px}.child-holdings-table td.holding-name-cell .holding-name-wrap{padding-left:10px}.holding-detail-row td{min-width:0!important;max-width:none!important}.holding-children .holding-detail-row td{white-space:normal}@media(max-width:1280px){.holdings-table{min-width:1080px}}
.dashboard-refresh{max-width:none;text-align:left;margin:0 0 12px;min-height:0}.dashboard-refresh:empty{display:none}
.maintenance-form{display:grid;gap:9px;margin-top:14px}
.maintenance-form label{display:block;color:var(--navy);font-size:12px;font-weight:650}
.maintenance-form input,.maintenance-form select,.maintenance-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #b8cbd7;border-radius:7px;background:#fff;color:var(--navy);font:inherit;font-size:13px;padding:10px 12px}
.maintenance-form input:focus,.maintenance-form select:focus,.maintenance-form textarea:focus{outline:2px solid #a2d9dc;outline-offset:1px;border-color:var(--teal)}
.maintenance-form input:disabled{background:#f2f5f7;color:#8b99a5;border-color:var(--line);cursor:not-allowed}
.maintenance-form textarea{resize:vertical;min-height:76px;line-height:1.6}
.maintenance-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:7px 0}
.maintenance-fields label{margin-bottom:7px}.maintenance-current{display:block;margin-top:6px}
.maintenance-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.maintenance-form .form-error{margin:0;min-height:0;line-height:1.6}
.maintenance-form .form-error:empty{display:none}
.maintenance-preview{margin-top:18px;padding:16px 18px;background:#f3faf9;border:1px solid #c8e4e2;border-radius:9px;overflow-x:auto;font-size:13px}
.maintenance-preview h3{margin:0 0 9px;font-size:15px;color:var(--navy)}
.maintenance-preview table{width:100%;min-width:460px;margin:12px 0}
.maintenance-preview th,.maintenance-preview td{text-align:left;padding:9px 12px;font-size:12px}
.maintenance-warning{font-size:12px;color:#64776f;line-height:1.6;margin:8px 0 0}
.maintenance-record-heading{margin-top:25px;margin-bottom:12px}
.maintenance-record-heading h3{margin:0;font-size:15px;color:var(--navy)}
@media(max-width:850px){.maintenance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.maintenance-new-asset{margin:10px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}
.maintenance-new-asset>summary{color:var(--navy);font-size:12px;font-weight:700;cursor:pointer}
.maintenance-unsupported{padding:9px 11px;border-radius:6px;background:#fff4e5;color:#8a5414;font-size:12px}
.update-records-table{min-width:720px}
.update-records-table th:nth-child(1){width:17%}.update-records-table th:nth-child(2){width:27%}.update-records-table th:nth-child(3){width:22%}
.update-records-table td{white-space:normal;overflow-wrap:anywhere}
.update-record-detail{padding:7px 0;color:#536b7f;font-size:11px;line-height:1.5}
.update-record-detail p{margin:4px 0}
.update-records-table details>summary{cursor:pointer;color:#27777a;font-size:11px}
@media(max-width:850px){.maintenance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.maintenance-fields{grid-template-columns:1fr}.maintenance-preview{padding:13px}.maintenance-actions .button{flex:1}.update-records-table{min-width:680px}}
/* Transaction and performance details stay folded into the existing sections. */
.accounting-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line, #e3e8ee); }
.accounting-section > summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.accounting-section .holdings-totals { margin-top: 16px; }
.ledger-balances { display: grid; gap: 12px; margin-top: 18px; }
.ledger-balance { padding: 14px; border-radius: 10px; background: #f6f8fa; }
.ledger-balance p { margin: 7px 0 0; }
.cash-records { margin-top: 20px; }
#performance-totals th, #performance-totals td { padding: 8px 4px; font-size: 12px; white-space: normal; }
#performance-totals th { font-weight: 500; text-align: left; }
#performance-totals td { text-align: right; }
#research-run-detail details { margin-bottom: 16px; }
#correction-editor { margin-top: 24px; }
