/* Expense screen only: shared charts retain the Overview presentation elsewhere. */
body:has(#view-movements:not([hidden])){background:#eef7fa}
#view-movements{color:#0b2d44}
#view-movements>.headline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;margin-bottom:16px}
#view-movements>.headline h1{font-size:clamp(26px,4.2vw,38px);letter-spacing:-1px;line-height:1.12}
#view-movements>.headline p{display:none}
#view-movements>.headline .view-add{border-radius:12px;background:linear-gradient(110deg,#04aa92,#009d86);padding:14px 22px;white-space:nowrap}
#view-movements>.headline>.expense-remove-trigger{grid-row:2;justify-self:start;padding:12px 17px;border-radius:11px;background:#fff8f8;border-color:#ffbfc4;color:#eb4855;font-size:13px}
#view-movements .finance-insights{display:flex;flex-direction:column;gap:16px;margin:0 0 16px;padding:0;background:transparent;border:0;border-radius:0;color:#0b3047}
.expense-display-tabs{display:none}
#view-movements .expense-layout-top{padding:20px 12px 12px;background:linear-gradient(125deg,#f6fcfd,#edf9fb);border:1px solid #dceef4;border-radius:20px}
#view-movements .insight-heading{display:block;position:relative;margin:0;padding:0 10px 12px}
#view-movements .insight-heading>div{padding-right:64px}
#view-movements .insight-heading:after{content:'';position:absolute;right:10px;top:8px;width:54px;height:64px;background:linear-gradient(#40c5b1,#40c5b1) 0 34px/12px 30px no-repeat,linear-gradient(#27bca9,#27bca9) 20px 18px/12px 46px no-repeat,linear-gradient(#08aa97,#08aa97) 40px 0/12px 64px no-repeat;border-radius:8px;opacity:.75}
#view-movements .insight-kicker{font-size:11px;letter-spacing:1.8px;font-weight:800;color:#00a88d}
#view-movements .insight-heading h2{font-size:27px;line-height:1.2;letter-spacing:-.7px;margin:8px 0}
#view-movements .insight-heading p{font-size:14px;line-height:1.5;margin:0;color:#6e8b9e}
#view-movements .insight-heading label{display:block;color:#6b8799;font-size:12px;margin:18px 0 0;max-width:245px}
#view-movements #insight-period{width:100%;margin-top:6px;border-radius:11px;border-color:#d2e7f0;color:#0785f3;font-weight:600;padding:11px 14px;background:#fff}
#view-movements .insight-health{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:22px 18px;border-radius:17px;background:linear-gradient(110deg,#07384f,#0a726b);box-shadow:none}
#view-movements .insight-health.negative{background:linear-gradient(110deg,#093b50,#354656 42%,#833936)}
#view-movements .insight-health>div{min-width:0;position:relative;padding-left:36px}
#view-movements .insight-health>div:before{content:'↑';position:absolute;left:0;top:0;display:grid;place-items:center;width:28px;height:30px;border-radius:50%;background:#137f78;color:#dcfff7;font-size:22px}
#view-movements .insight-health>div:nth-child(2):before{content:'↓';background:#ac4854;color:#fff}
#view-movements .insight-health>div:nth-child(3):before{content:'−';background:#ffffff20;color:#fff}
#view-movements .insight-health>div:last-of-type{grid-column:auto}
#view-movements .insight-health span{font-size:11px;color:#c6d9e4;line-height:1.4;margin-bottom:6px}
#view-movements .insight-health strong{font-size:clamp(16px,2.6vw,25px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#view-movements .insight-health p{font-size:13px;line-height:1.5;padding-top:16px;color:#d1e3e9}
#view-movements .expense-detail-picker{display:flex;align-items:center;gap:12px;margin:15px 0 10px;padding:8px 12px;background:#fff;border:1px solid #dcebf2;border-radius:14px}
#view-movements .expense-detail-picker>span{width:32px;height:34px;display:grid;place-items:center;background:#e9f3f7;border-radius:10px;font-size:22px}
#view-movements .expense-detail-picker select{flex:1;min-width:0;background:transparent;border:0;padding:7px 0;color:#153f58;font-weight:700;box-shadow:none}
#view-movements .expense-animation{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 10px;font-size:13px;color:#48758b;font-weight:500;gap:12px}
#view-movements .expense-animation input{appearance:none;-webkit-appearance:none;flex:0 0 48px;width:48px;height:28px;border:0;border-radius:20px;background:#9eafba;position:relative;padding:0;cursor:pointer;margin:0}
#view-movements .expense-animation input:checked{background:#04aa90}
#view-movements .expense-animation input:before{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 4px #1235}
#view-movements .expense-animation input:checked:before{left:23px}
#view-movements .expense-animation-off .insight-track i{animation:none!important}
#view-movements .overview-category-panel{background:white;border:1px solid #deebf2;border-radius:20px;padding:20px}
#view-movements .insight-actions{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:8px}
#view-movements .overview-category-title{display:block;font-size:21px;letter-spacing:-.5px;margin:0}
#view-movements .insight-actions>select,#view-movements #insight-animate{display:none}
#view-movements .expense-display-tabs{display:flex;gap:3px;background:#edf4f8;border-radius:12px;padding:4px}
#view-movements .expense-display-tabs button{font-size:12px;font-weight:600;padding:9px 13px;color:#68879a;background:transparent;border:0;border-radius:10px;white-space:nowrap}
#view-movements .expense-display-tabs button[aria-pressed=true]{color:white;background:#17455e;box-shadow:0 3px 9px #153c5225}
#view-movements .insight-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px;align-items:center}
#view-movements .insight-card{padding:0;border:0;box-shadow:none;border-radius:0;min-height:0}
#view-movements #insight-chart-title,#view-movements .insight-ranking-head{display:none}
#view-movements .insight-donut{width:100%;max-width:270px;outline:0;box-shadow:none}
#view-movements .insight-donut strong{font-size:clamp(16px,3vw,25px);overflow-wrap:anywhere}
#view-movements .insight-donut small{font-size:12px}
#view-movements .insight-donut-wrap{padding:8px 0}
#view-movements .insight-category{padding:10px 0}
#view-movements .insight-category>span:first-child{gap:8px;font-size:13px}
#view-movements .insight-category b{overflow-wrap:anywhere}
#view-movements .insight-category strong{white-space:nowrap}
#view-movements .insight-track{height:8px;margin-top:7px}
#view-movements .insight-category small{font-size:11px;margin-top:4px}
#view-movements #insight-detail{background:white;padding:18px;border:1px solid #dceaf1;border-radius:18px;margin:0}
#view-movements #insight-detail .insight-ranking-head{display:flex}
#view-movements .insight-ai{position:relative;display:grid;gap:15px;margin:0;border:1px solid #d9edf2;border-radius:20px;background:linear-gradient(115deg,#f4fcfb,#eef9fb);padding:22px;overflow:hidden}
#view-movements .insight-ai>div:first-child{padding-right:88px;position:relative;z-index:1}
#view-movements .insight-ai h3{font-size:23px;letter-spacing:-.6px;line-height:1.25;margin:10px 0 7px}
#view-movements .insight-ai p{font-size:14px;line-height:1.6;color:#7892a4;margin:0}
#view-movements #insight-ai-button{width:100%;position:relative;z-index:1;border-radius:12px;background:linear-gradient(100deg,#08a48c,#0db89d);font-size:17px;padding:13px;box-shadow:0 5px 15px #00997c20}
#view-movements .overview-ai-art{display:flex;position:absolute;right:18px;top:28px;width:80px;height:108px;border-radius:65% 35% 25% 35%;background:#e1f5f5;align-items:end;justify-content:center;gap:7px;padding-bottom:13px}
#view-movements .overview-ai-art i{display:block;width:14px;height:25px;background:#1fbfa7;border-radius:6px}
#view-movements .overview-ai-art i:nth-last-child(2){height:44px}#view-movements .overview-ai-art i:last-child{height:62px;background:#00ab91}
#view-movements .overview-ai-art span{position:absolute;right:0;top:-10px;font-size:33px;color:#ffd06b}
#view-movements #insight-ai-status:empty{display:none}
#view-movements .insight-footnote{font-size:12px;line-height:1.5;color:#859bac;margin:0 4px}
#view-movements .expense-history{border:0;border-radius:0;background:transparent;margin-top:16px;scroll-margin-top:95px}
#view-movements .expense-history>summary{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #dcebf2;border-radius:18px;padding:16px 20px;font-size:15px;color:#123c54;list-style:none}
#view-movements .expense-history>summary::-webkit-details-marker{display:none}
#view-movements .expense-history>summary:after{content:'⌄';margin-left:auto;font-size:22px;color:#0486f7}
#view-movements .expense-history[open]>summary:after{content:'⌃'}
.expense-history-icon{background:#edf4f8;border-radius:50%;width:40px;height:42px;display:grid;place-items:center;font-size:24px}
#view-movements .expense-history summary small{display:block;font-weight:400;font-size:12px;color:#829bac;margin-top:3px}
#view-movements .expense-history .panel{padding:0;background:transparent;min-height:0;box-shadow:none;border:0;margin-top:20px}
#view-movements .expense-history .panel-head{padding:0 5px;margin-bottom:12px}
#view-movements .expense-history h3{font-size:21px;margin:0;letter-spacing:-.5px}
#view-movements .expense-history .panel-head p{font-size:13px;color:#7d96a7}
#view-movements #all-transactions{background:#fff;border:1px solid #deebf2;border-radius:17px;padding:0 12px;overflow:hidden}
#view-movements .transaction{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-color:#e8eff3}
#view-movements .expense-row-copy{min-width:0;flex:1;position:relative;padding-left:43px}
#view-movements .expense-row-copy:before{content:'▣';position:absolute;left:0;top:0;width:33px;height:36px;display:grid;place-items:center;background:#edf5f8;color:#285068;border-radius:50%;font-size:22px}
#view-movements .transaction strong{font-size:13px}
#view-movements .transaction .meta{font-size:10px;line-height:1.5;color:#8199a9;overflow-wrap:anywhere}
#view-movements .transaction-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:50%;margin:0}
#view-movements .transaction-actions>.expense{color:#ff5c66;white-space:nowrap}
#view-movements .transaction-actions button{font-size:11px;font-weight:500;border-radius:7px;padding:6px 11px;background:#fff;border-color:#ff7880;color:#f35460}
#view-movements .transaction-actions [data-edit-transaction]{color:#44667c;border-color:#96afc0}
#view-movements button:focus-visible,#view-movements select:focus-visible,#view-movements input:focus-visible{outline:3px solid #40baa8;outline-offset:3px}
@media(max-width:600px){
 #view-movements>.headline{gap:10px}#view-movements>.headline h1{font-size:27px}#view-movements>.headline .view-add{padding:12px 15px;font-size:13px}
 #view-movements .expense-layout-top{padding:16px 10px 11px}#view-movements .insight-heading{padding:0 4px 12px}#view-movements .insight-heading h2{font-size:24px}#view-movements .insight-heading p{font-size:12px}#view-movements .insight-kicker{font-size:9px}#view-movements .insight-heading:after{width:40px;height:53px;background-size:10px 23px,10px 38px,10px 53px;background-position:0 30px,15px 15px,30px 0}
 #view-movements .insight-health{padding:16px 12px;gap:11px 8px}#view-movements .insight-health>div{padding-left:0;padding-top:28px}#view-movements .insight-health>div:before{width:23px;height:23px;font-size:18px}#view-movements .insight-health span{font-size:10px}#view-movements .insight-health strong{font-size:16px}#view-movements .insight-health p{font-size:11px}
 #view-movements .expense-animation{font-size:12px;padding:0 3px}#view-movements .expense-detail-picker{padding:6px 9px}#view-movements .expense-detail-picker select{font-size:13px!important}
 #view-movements .overview-category-panel{padding:16px 12px}#view-movements .overview-category-title{font-size:18px}#view-movements .insight-actions{align-items:start}#view-movements .expense-display-tabs button{font-size:11px;padding:8px 9px}#view-movements .insight-grid{gap:12px}#view-movements .insight-donut small{font-size:10px}#view-movements .insight-donut strong{font-size:16px}#view-movements .insight-category>span:first-child{font-size:11px}#view-movements .insight-category small{font-size:10px}#view-movements #insight-caption{font-size:10px}
 #view-movements .insight-ai{padding:17px;gap:13px}#view-movements .insight-ai h3{font-size:20px}#view-movements .insight-ai p{font-size:12px}#view-movements .insight-ai>div:first-child{padding-right:63px}#view-movements .overview-ai-art{right:10px;width:61px;gap:5px}#view-movements .overview-ai-art i{width:11px}#view-movements .insight-footnote{font-size:10px}
 #view-movements .transaction{gap:6px}#view-movements .expense-row-copy{padding-left:34px}#view-movements .expense-row-copy:before{width:28px;height:32px;font-size:18px}#view-movements .transaction strong{font-size:11px}#view-movements .transaction .meta{font-size:9px}#view-movements .transaction-actions{gap:5px;max-width:45%}#view-movements .transaction-actions button{font-size:10px;padding:5px 7px}
}
@media(prefers-reduced-motion:reduce){#view-movements .insight-track i{animation:none!important}}
