[hidden]{display:none!important}.portfolio-entry{display:inline-block;padding:13px 22px;border-radius:12px;background:#7a3327;color:#fff;text-decoration:none;font-weight:700}.portfolio-panel{margin-top:24px!important}.back-link{color:#7a3327}.snapshot-note{color:#776f65;font-size:14px;line-height:1.7}.portfolio-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.portfolio-total{padding:20px;border-radius:16px;background:#eee5d6;min-width:0}.portfolio-total small{display:block;color:#70675e}.portfolio-total strong{display:block;font-size:28px;margin-top:10px;overflow-wrap:anywhere}.positive{color:#c1272d}.negative{color:#3c796f}.value-blue{color:#286395}.platform-filters{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.platform-filters button{padding:10px 18px;border:1px solid #d8c7b9;border-radius:999px;background:#fffaf3;color:#4d3b2e;font:inherit;cursor:pointer}.platform-filters button[aria-pressed=true]{background:#7a3327;color:#fff}.portfolio-account{margin-top:24px}.portfolio-account h3{margin-bottom:8px}.investment-card{padding:24px;margin:14px 0;border:1px solid #dfd3c7;border-radius:20px;background:rgba(255,255,255,.58);min-width:0}.investment-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.investment-head h4{font-size:20px;margin:0}.account-label{font-size:13px;color:#827163;margin-top:6px}.investment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 0}.investment-fields div{min-width:0}.investment-fields dt{font-size:13px;color:#786e62;margin-bottom:7px}.investment-fields dd{margin:0;font-size:19px;overflow-wrap:anywhere}.investment-fields .money{font-weight:700;font-size:23px}.investment-meta{font-size:13px;color:#786e62;line-height:1.7;margin:18px 0 0}.portfolio-error{color:#b4232c}#portfolioStatus:empty{display:none}@media(max-width:640px){.simple-shell{width:94vw}.portfolio-panel{padding:18px}.portfolio-totals{grid-template-columns:1fr;gap:9px}.portfolio-total{padding:15px}.portfolio-total strong{font-size:25px}.investment-card{padding:18px}.investment-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.investment-fields .money{font-size:21px}.investment-head h4{font-size:19px}.panel-head{flex-wrap:wrap;gap:12px}}

.portfolio-platform-total{background:#e7eff2;border:1px solid #c9dce4}.portfolio-platform-total>small{color:#38667e;font-weight:700}.portfolio-platform-total>strong{font-size:32px;color:#286395}.portfolio-breakdown{display:flex;flex-wrap:wrap;gap:22px 40px;margin-top:18px;padding-top:16px;border-top:1px solid #ccdbe1}.portfolio-breakdown b{display:block;font-size:21px;margin-top:8px}@media(max-width:640px){.portfolio-platform-total>strong{font-size:28px}.portfolio-breakdown{gap:16px}.portfolio-breakdown b{font-size:20px}}
.portfolio-all-total{grid-column:1/-1;background:#e7eff2;border:1px solid #c9dce4}.portfolio-all-total>small{color:#38667e;font-weight:700}.portfolio-all-total>strong{font-size:38px;color:#286395}@media(max-width:640px){.portfolio-all-total>strong{font-size:30px}}
.portfolio-trend{margin:24px 0;padding:20px;border-radius:16px;background:#eee5d6}.portfolio-trend h3{margin:0 0 8px}.portfolio-trend-chart{display:block;width:100%;height:auto;max-height:280px;overflow:visible}.trend-grid{stroke:#d8cfc1;stroke-width:1}.trend-zero{stroke:#ad9d8b;stroke-width:1;stroke-dasharray:4 4}.trend-line{fill:none;stroke:#286395;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-point{fill:#286395}.trend-current{fill:#286395;font-size:15px;font-weight:700}.trend-label{fill:#786e62;font-size:12px}.trend-tick{fill:#786e62;font-size:10px}.trend-value{fill:#286395;font-size:11px;font-weight:700}@media(max-width:640px){.portfolio-trend{padding:14px}.portfolio-trend-chart{min-height:150px}}

.trend-table-wrap{overflow-x:auto;margin-top:10px}.trend-table{width:100%;border-collapse:collapse;min-width:700px;font-size:14px}.trend-table th,.trend-table td{padding:10px 12px;border-bottom:1px solid #d8cfc1;text-align:right;white-space:nowrap}.trend-table th:first-child,.trend-table td:first-child{text-align:left}.trend-table thead th{color:#786e62;font-weight:600}.trend-table tbody th{font-weight:500}.trend-table-note{margin:10px 0 0;color:#786e62;font-size:12px;line-height:1.6}
.trend-month-picker{display:flex;align-items:center;gap:10px;margin:10px 0 16px;color:#786e62}.trend-month-picker label{font-size:14px}.trend-month-picker select{padding:8px 12px;border:1px solid #d8c7b9;border-radius:9px;background:#fffaf3;color:#4d3b2e;font:inherit;cursor:pointer}
.trend-month-picker .trend-delete{margin-left:auto;border:1px solid #d5aaa2;border-radius:9px;background:#fffaf3;color:#a32e2e;padding:8px 12px;font:inherit;cursor:pointer}

.portfolio-manage-toolbar,.portfolio-account-actions,.holding-actions{display:flex;gap:8px;flex-wrap:wrap}.portfolio-manage-toolbar{margin:14px 0 20px}.portfolio-manage-toolbar button,.portfolio-account-actions button,.holding-actions button,.portfolio-form-actions button{border:1px solid #d8c7b9;border-radius:10px;background:#fffaf3;color:#4d3b2e;padding:9px 14px;font:inherit;cursor:pointer}.portfolio-manage-toolbar button:first-child,.portfolio-form-actions button.primary{background:#7a3327;color:#fff;border-color:#7a3327}.portfolio-account-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.portfolio-account-head h3{margin:0}.portfolio-account-actions button,.holding-actions button{font-size:13px;padding:6px 10px}.holding-actions{justify-content:flex-end;margin-bottom:10px}.holding-actions .danger,.portfolio-account-actions .danger{color:#a32e2e;border-color:#d5aaa2}.portfolio-editor{width:min(680px,94vw);max-height:88vh;overflow:auto;border:1px solid #dfd3c7;border-radius:18px;padding:24px;background:#fffaf3;color:#342c27;box-shadow:0 20px 70px #0004}.portfolio-editor::backdrop{background:#1d1713aa}.portfolio-editor h3{margin:0 0 18px}.portfolio-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.portfolio-form-grid label{display:flex;flex-direction:column;gap:6px;color:#786e62;font-size:14px}.portfolio-form-grid input,.portfolio-form-grid select{width:100%;min-width:0;box-sizing:border-box;padding:11px 12px;border:1px solid #d8c7b9;border-radius:9px;background:#fff;color:#342c27;font:inherit}.portfolio-form-grid .full{grid-column:1/-1}.portfolio-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.portfolio-form-error{color:#b4232c;margin:10px 0}.portfolio-empty{padding:20px;border:1px dashed #d8c7b9;border-radius:14px;color:#786e62}@media(max-width:520px){.portfolio-editor{padding:18px}.portfolio-form-grid{grid-template-columns:1fr}.portfolio-form-grid .full{grid-column:auto}.portfolio-account-actions{width:100%}}

.portfolio-form-grid textarea{width:100%;box-sizing:border-box;resize:vertical;padding:11px 12px;border:1px solid #d8c7b9;border-radius:9px;background:#fff;color:#342c27;font:inherit}.source-import{align-self:flex-start;margin-top:7px;padding:8px 14px;border:1px solid #d8c7b9;border-radius:9px;background:#eee5d6;color:#4d3b2e;font:inherit;cursor:pointer}.source-import:disabled{opacity:.6;cursor:wait}

.portfolio-form-grid input[readonly]{background:#f1ede6;color:#4d3b2e;cursor:default}.portfolio-form-grid input[readonly]:focus{outline:none}

.portfolio-trend-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.portfolio-trend-heading h3{margin:0}.portfolio-trend-heading button{padding:9px 16px;border:1px solid #d8c7b9;border-radius:999px;background:#fffaf3;color:#7a3327;font:inherit;cursor:pointer}.portfolio-trend-heading button:disabled{opacity:.6;cursor:wait}
.trend-range-heading,.trend-daily-heading,.trend-chart-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.trend-range-heading{margin:18px 0 12px}.trend-range-heading h4,.trend-daily-heading h4{margin:0;font-size:20px}.trend-range-heading p{margin:6px 0 0;color:#786e62}.trend-range-heading>span,.trend-daily-heading>span,.trend-chart-meta{color:#786e62;font-size:14px}
.trend-period-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.trend-period-buttons button{border:1px solid #d8c7b9;border-radius:999px;background:#fffaf3;color:#695647;padding:10px 16px;font:inherit;cursor:pointer}.trend-period-buttons button[aria-pressed="true"]{background:#803629;color:#fffaf3;border-color:#803629}
.trend-custom-dates{display:grid;gap:14px;margin:18px 0 22px}.trend-custom-dates label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#786e62}.trend-custom-dates input{max-width:100%;min-width:0;border:1px solid #d8c7b9;border-radius:12px;background:#fffaf3;padding:10px 14px;font:inherit;color:#352d25}.trend-daily-heading{margin-top:26px;padding-bottom:10px;border-bottom:1px solid #d8cfc1}.trend-archive{margin-top:20px;padding-top:14px;border-top:1px solid #d8cfc1}.trend-archive summary{cursor:pointer;color:#786e62}.trend-month-picker{flex-wrap:wrap}.trend-month-picker select{max-width:100%;min-width:0}
@media(max-width:480px){.trend-custom-dates input{width:62%}.trend-period-buttons button{padding:9px 13px}.trend-range-heading>span{width:100%}.trend-month-picker .trend-delete{margin-left:0}}
