#analytics .analysis-page-title{margin:0 0 10px;font-size:22px;letter-spacing:-.035em}
#analytics .wealth-card{padding:14px;border:0;border-radius:19px;background:radial-gradient(ellipse at top right,#3b6e50,transparent 70%),#214734;color:white}
#analytics .wealth-card header span,#analytics .wealth-card .wealth-note{color:#d8eadd}
#analytics .wealth-total{margin-bottom:4px}
#analytics .section-head h3{font-size:15px;margin:0}
#analytics .section-head>span{font-size:12px;color:#486457}
.analysis-subtabs{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#analytics .analysis-subtabs button{min-height:44px;background:#f5faf3;border-color:#d0e0d0;color:#315942;font-weight:750}
#analytics .analysis-subtabs button[aria-pressed=true]{background:#285c45;border-color:#285c45;color:#fff}
.analysis-result{display:grid;gap:4px;padding:12px;border:1px solid #d9e9d3;border-radius:14px;background:#edf6e9;color:#214f3b}
.analysis-result[data-tone=loss]{background:#faf0e9;border-color:#efddd0;color:#873f33}
.analysis-result>span{font-size:13px;font-weight:700}.analysis-result>strong{font-size:clamp(23px,7vw,32px);line-height:1.1;letter-spacing:-.035em;overflow-wrap:anywhere}
.analysis-result small,.analysis-result p{font-size:12px;margin:0;line-height:1.4}
#analytics .analysis-two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.analysis-salary-row{display:flex;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;font-size:13px;margin:10px 0;color:#335c48}
.analysis-salary-row small{font-size:11px}
#analysis-alerts{display:grid;gap:5px;margin:8px 0}
#analysis-alerts:empty{display:none}
#analytics .analysis-limit{display:flex;justify-content:space-between;align-items:center;gap:4px 9px;flex-wrap:wrap;width:100%;min-height:44px;text-align:left;background:#faf5e6;color:#624919;border:1px solid #e6dbc1;border-radius:9px;padding:6px 8px;font-size:13px}
#analytics .analysis-limit[data-over=true]{background:#fbede8;color:#723e34;border-color:#ead2c9}
.analysis-category summary{min-height:44px;cursor:pointer;list-style:none;padding:7px 1px;margin-top:3px}
.analysis-category summary::-webkit-details-marker{display:none}
.analysis-category summary strong::before{content:'+';display:inline-block;width:1em;color:#42654e}
.analysis-category[open] summary strong::before{content:'−'}
.analysis-entries{border-radius:8px;padding:3px 8px;background:#eef5ec}
#analytics .analysis-entry-more{display:block;min-height:44px;margin:3px 0;background:#fff;border:1px solid #d1e2ca;border-radius:8px;color:#285c45;padding:4px 8px}
.analysis-holding{display:flex;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid #e1ebdf;font-size:13px;color:#274d3a;overflow-wrap:anywhere}
.analysis-box,.analysis-fold{padding:11px;margin:11px 0;border:1px solid #d9e7d4;border-radius:14px;background:#f9fcf7;min-width:0}
.analysis-fold summary{min-height:42px;align-content:center;font-size:14px;font-weight:750;color:#284e39;cursor:pointer}
.analysis-fold #asset-analysis{margin-top:12px}
.wealth-share{display:flex;background:#acc9ac;height:10px;border-radius:20px;overflow:hidden;margin:10px 0 3px}.wealth-share i{height:100%;background:#387554}
.wealth-change{font-size:12px;line-height:1.45;margin:0 0 7px;color:#dcebdd}.wealth-change[data-direction=up]{color:#e1f5c9}.wealth-change[data-direction=down]{color:#ffe1d5}
.range-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:9px 0}
.range-tabs button{padding:0 3px;border:1px solid #d0e0d0;border-radius:8px;background:#f5faf3;color:#315942;font-size:12px;min-width:0;font-weight:650}
.range-tabs button[aria-pressed=true]{background:#2c664a;border-color:#2c664a;color:white}
#range-delta{font-size:17px;margin:4px 0 2px;font-weight:750;color:#254e39}
#wealth-chart svg{display:block;width:100%;height:auto;background:#f4f9f2;border-radius:10px;margin:8px 0}
.trend-values{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.trend-values>div>*{display:block}.trend-note{margin-top:9px;line-height:1.4}
#wealth-chart .plot-panel{margin:9px 0 5px;padding:8px 7px 3px;border:1px solid #dbe7d9;border-radius:13px;background:linear-gradient(#f6faf4,#fff)}
.plot-reading{display:flex;justify-content:space-between;align-items:baseline;gap:5px 9px;flex-wrap:wrap;padding:5px 8px;border-radius:8px;background:#e8f2e5;color:#234d37;min-height:34px}
.plot-reading span{font-size:12px;color:#48614e}.plot-reading strong{font-size:17px;font-variant-numeric:tabular-nums}
.plot-surface{touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none;border-radius:8px}
.plot-surface:focus-visible{outline:2px solid #437954;outline-offset:2px}
#wealth-chart .plot-surface svg{margin:4px 0 0;background:none;height:153px}
.plot-grid{stroke:#dce8da;stroke-dasharray:3 4}.plot-axis{font-size:10px;fill:#496450}.plot-line{stroke:#397557;stroke-width:2.55;stroke-linejoin:round;stroke-linecap:round;fill:none}.plot-point{fill:#397557}.plot-crosshair{stroke:#5f8767;stroke-width:1;stroke-dasharray:3 3}.plot-halo{fill:#3b815e;opacity:.16}.plot-selected{fill:#276447;stroke:white;stroke-width:2}
.chart-guide{margin-top:6px}
.range-open{display:flex;width:100%;align-items:center;gap:7px;text-align:left;padding:5px 8px;border:1px solid #dbe7d9;border-radius:9px;background:#f8fbf6;color:#315942;font-size:12px}
.range-open svg{width:16px;height:16px;flex:none}.range-open #range-label{flex:1;min-width:0}.range-caret{font-size:17px}.range-open[aria-expanded=true] .range-caret{transform:rotate(180deg)}
.range-dialog{color:#192720;width:min(350px,calc(100% - 20px));max-height:calc(100dvh - 20px);padding:12px;border:1px solid #d1e2ce;border-radius:17px;background:#fff;box-shadow:0 15px 48px #193c2c36}
.range-dialog::backdrop{background:#162b21a1}.range-dialog-head,.picker-nav{display:flex;align-items:center;justify-content:space-between;gap:6px}.range-dialog-head h3{margin:0;font-size:16px}.range-dialog-head button,.picker-nav button{width:44px;flex:none;background:#f5f9f3;border:1px solid #dce8d9;border-radius:10px;font-size:21px}
#range-step{margin:4px 0 7px}.picker-nav strong{font-size:14px}.picker-days,.picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.picker-days{margin:7px 0 3px;font-size:11px;color:#526a57}
.picker-grid button{min-height:40px;min-width:0;padding:0;border:1px solid transparent;border-radius:8px;background:#f5f9f3;font-size:13px}
.picker-grid button[data-in-range]{background:#e4f1e0}.picker-grid button[aria-pressed=true]{background:#2c664a;border-color:#2c664a;color:#fff;font-weight:750}
#analytics .range-tabs button,#analytics .range-open{min-height:44px}
#custom-range.range-dialog{margin:auto;box-sizing:border-box;max-width:350px;overflow:auto}
#custom-range .range-dialog-head button,#custom-range .picker-nav button{min-height:44px;padding:0}
#custom-range .picker-grid button{color:#254e39;width:100%}
#custom-range .picker-grid button[aria-pressed=true]{color:white}
.plot-gap{stroke-dasharray:4 4}
#analytics #wealth-chart{min-width:0}
#analytics #range-result{min-height:1.6em}
/* Leave room for the sticky title's scroll transform on narrow screens. */
#main[data-screen="analysis-tab"]>.brand>.brand-name{min-width:0;max-width:calc(100% - 71px)}
