/* Trends extension - scalable, accessible financial review surfaces. */
.trends-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0 22px}
.trends-controls label{display:grid;gap:7px;font-size:12px;color:#bdc8bd}
.trends-controls select{border:1px solid #71816b66;border-radius:9px;background:#17372d;color:#fff;padding:11px}
.trends-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
.trend-metric{background:#193b30;border:1px solid #7f97713d;border-radius:16px;padding:20px}
.trend-metric small{display:block;color:#b9c7ba;font-size:12px;line-height:1.4}
.trend-metric strong{display:block;font-size:clamp(19px,2.4vw,30px);margin:10px 0 6px;overflow-wrap:anywhere}
.trend-metric em{display:block;font-size:11px;font-style:normal;color:#b1baac}
.trends-surface{background:#16382e;border:1px solid #71816b50;border-radius:17px;padding:22px;margin:20px 0;min-width:0}
.trends-surface h2{margin:0 0 7px;font-size:22px}.trends-surface .hint{margin:0 0 18px}
.trends-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end;min-height:210px;margin:24px 0 10px}
.trend-chart-group{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.trend-chart-bars{height:166px;display:flex;align-items:flex-end;justify-content:center;gap:5px;width:100%}
.trend-chart-bars span{width:min(25px,45%);min-height:2px;border-radius:5px 5px 0 0;background:#d5bd79;display:block}
.trend-chart-bars span.expense{background:#8fb0a6}
.trend-chart-group small{font-size:11px;color:#cbd2c8;text-align:center}.trend-chart-group .partial{color:#e2c586}
.trends-legend{display:flex;gap:20px;font-size:12px;color:#c9d5c7}
.trends-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;background:#d5bd79;margin-right:5px}
.trends-legend i.expense{background:#8fb0a6}
.trends-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.trends-item{display:flex;gap:12px;justify-content:space-between;border-top:1px solid #71816b45;padding:13px 0;color:#edf2e7}
.trends-item:first-of-type{border-top:0}.trends-item strong{font-size:14px}
.trends-item p{font-size:12px;color:#b8c6b7;margin:5px 0 0}.trends-item .amount{font-size:15px;white-space:nowrap}
.trends-unavailable{padding:14px;border:1px solid #b9985966;background:#7d61131a;border-radius:10px;color:#e7d09a}
.trends-link-row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.trends-link-row button{border-radius:10px;background:#204537;color:#f2ebd5;border:1px solid #71816b66;padding:10px 14px;cursor:pointer}
@media(max-width:950px){.trends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.trends-grid,.trends-columns{grid-template-columns:minmax(0,1fr)}.trends-surface{padding:16px}.trends-chart{gap:5px;min-height:160px}.trend-chart-bars{height:125px}.trend-chart-bars span{width:min(17px,42%)}.trend-metric{padding:15px}.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-bottom:max(5px,env(safe-area-inset-bottom))}.mobile-nav button{font-size:10px!important}}
