/* HUU 9.0.4 — Ultra expenses. Intentionally preserves approved 8.18 owl/wave. */
[hidden]{display:none!important}
.demo-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.demo-strip>div:first-child{display:flex;flex-direction:column;gap:3px}
.demo-tier-switch{display:flex;border-radius:11px;background:#fff;box-shadow:inset 0 0 0 1px #e6ceaa;padding:4px;gap:3px}
.demo-tier-switch button{border:0;border-radius:8px;padding:9px 17px;background:transparent;color:#856d56;font:inherit;font-weight:800;cursor:pointer}
.demo-tier-switch button.active{background:#f47e18;color:white;box-shadow:0 2px 10px #ef8c2a2b}
.expense-heading{align-items:center;margin-bottom:20px}
.expense-heading h1{letter-spacing:-1.3px}
.expense-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.expense-actions .primary,.expense-actions .outline{white-space:nowrap;min-height:43px}
.expense-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:20px}
.expense-mini-stat{background:#fff;border:1px solid #eee4d6;border-radius:14px;padding:19px 20px;display:flex;flex-direction:column;gap:8px;box-shadow:0 5px 17px #b38a4610}
.expense-mini-stat>span{font-size:12px;color:#7c786f;font-weight:700}
.expense-mini-stat strong{font-size:clamp(22px,2.4vw,29px);color:#222b26;letter-spacing:-.8px}
.expense-mini-stat small{color:#8b8e88;font-size:11px;line-height:1.4}
.expense-mini-stat:first-child{border-top:3px solid #d2645a}
.expense-mini-stat:nth-child(2){border-top:3px solid #ed963b}
.expense-mini-stat:nth-child(3){border-top:3px solid #83a988}
.expense-edit{border-radius:16px;padding:25px;background:#fff;border:1px solid #ede1d1;box-shadow:0 15px 38px #ad855519;margin:17px 0 22px;max-width:none}
.expense-edit h2{font-size:22px;letter-spacing:-.5px;margin:3px 0 18px}
.expense-edit label,.category-editor label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#4a524c}
.expense-edit .check-line{flex-direction:row;align-items:center;gap:10px;margin:15px 0;font-size:13px}
.expense-edit .check-line input{width:18px;height:18px;accent-color:#f47e18;flex:0 0 auto}
.expense-edit input,.expense-edit select,.category-editor input,.category-editor select{width:100%;border:1px solid #e4e2db;background:#fffdfa;border-radius:8px;min-height:43px;padding:10px 12px;font-size:14px;color:#25332b}
.expense-edit input:focus,.expense-edit select:focus,.category-editor input:focus,.category-editor select:focus{outline:2px solid #ffd0a3;outline-offset:1px;border-color:#e88533}
.expense-edit .field-full{margin-bottom:12px}
.expense-edit .field-full .muted{font-weight:400}
.expense-form-grid{margin-top:16px}
.expense-edit .prominent-check{padding:13px 16px;background:#fff7ed;border-radius:9px;font-weight:800}
.expense-edit .form-help{font-size:12px;line-height:1.65;max-width:800px;margin:4px 0 17px}
.form-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ghost-close{border:0;background:#faf3ea;color:#886d52;border-radius:9px;min-width:35px;min-height:35px;font-size:15px;cursor:pointer}
.category-picks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.category-pick{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:92px;padding:11px 6px;background:#fdfcf9;border:1.5px solid #e9e6df;border-radius:12px;cursor:pointer;font:inherit;color:#4d534d;font-size:12px;font-weight:750;overflow-wrap:anywhere;text-align:center}
.category-pick.selected{background:#fff1e0;border-color:#f48b22;box-shadow:0 0 0 2px #f5aa6244}
.category-pick:hover{border-color:#e6a56a}
.category-pick.category-add{border-style:dashed;color:#a2612a;background:#fffaf4}
.category-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--cat-color,#e98b32),white 88%);font-size:22px;line-height:1}
.category-pick .category-icon{width:41px;height:41px}
.category-manager{margin:18px 0 23px}
.category-manager .section-title{align-items:flex-start}
.category-manager .section-title p{font-size:12px;max-width:580px;line-height:1.5;margin:8px 0 0}
.category-manager-list{display:flex;flex-direction:column;gap:7px;margin-top:18px}
.category-row{display:flex;align-items:center;gap:11px;background:#fffdfa;border:1px solid #ebe5dc;border-radius:11px;padding:9px 11px;min-height:65px;transition:background .16s,box-shadow .16s}
.category-row strong{flex:1;min-width:60px;font-size:14px}
.category-row .category-icon{width:38px;height:38px;font-size:21px}
.drag-handle{font-size:27px;display:grid;place-items:center;width:34px;min-height:42px;line-height:1;color:#a2a19d;cursor:grab;user-select:none;touch-action:none}
.drag-handle:active{cursor:grabbing}
.category-row.dragging-category{box-shadow:0 8px 22px #cc8e5029;background:#fff4e7;border-color:#efb782}
.category-action{color:#7c766e;border:0;padding:8px 9px;background:transparent;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
.category-action:hover{background:#fff2e1;border-radius:7px}
.category-action.danger,.danger{color:#ac5350!important}
.category-editor:not([hidden]){position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000;max-height:94dvh;overflow:auto;background:white;border:2px solid #f2dec6;box-shadow:0 18px 75px #39291369;width:min(92vw,520px);padding:28px;border-radius:17px}
.category-editor h2{font-size:22px;margin:5px 0 15px}
.category-editor .form-grid{margin-bottom:19px}
.expense-table-panel{margin:20px 0}
.expense-table-panel .section-title{gap:14px;align-items:center}
.expense-table-panel .section-title p{font-size:12px;color:#8b8d86;margin:6px 0 0}
.expense-filters{display:flex;flex-wrap:wrap;gap:9px}
.expense-filters select{background:#fffdfa;border:1px solid #e2ded6;padding:10px 11px;min-height:40px;max-width:195px;border-radius:8px;color:#454e45;font-size:12px}
.expense-list{display:flex;flex-direction:column;margin-top:14px}
.expense-entry{display:flex;align-items:center;gap:13px;padding:14px 4px;border-bottom:1px solid #f0eee9;min-width:0}
.expense-entry:last-child{border-bottom:0}
.expense-entry-name{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.expense-entry-name strong{font-size:14px;color:#27332a}
.expense-entry-name small{font-size:12px;color:#7b807a;overflow-wrap:anywhere}
.expense-entry-date{font-size:11px;color:#a0a198}
.expense-entry-amount{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.expense-entry-amount strong{font-size:14px;white-space:nowrap}
.expense-entry-amount .pill{font-size:10px}
.expense-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 24px}
.expense-two-columns .white-panel{min-width:0}
.saved-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eeeae5;padding:13px 0;min-width:0}
.saved-item:last-child{border-bottom:0}
.saved-item-main{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.saved-item-main strong{font-size:13px}
.saved-item-main small{font-size:11px;color:#848b82;line-height:1.5}
.saved-item-main .pill{align-self:flex-start;font-size:10px}
.saved-item-aside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:100px}
.saved-item-aside>strong{font-size:12px;white-space:nowrap}
.saved-item-aside>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.saved-item-aside button{font-size:11px;padding:5px 4px;min-height:30px}
.small{padding:7px 11px!important;min-height:33px!important;font-size:12px!important}
.reminders-panel{border:1px solid #efb778;border-radius:13px;background:#fff8ed;padding:16px 19px;margin-bottom:20px;box-shadow:0 8px 18px #e9a65a13}
.reminder-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:9px}
.reminder-head>span{font-size:24px}
.reminder-head strong{font-size:15px;color:#925119}
.reminder-head p{margin:4px 0 2px;color:#8e7865;font-size:12px}
.reminder-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f2dec7}
.reminder-row>div{flex:1;display:flex;flex-direction:column;gap:3px;font-size:12px}
.reminder-row small{color:#87766b}
.reminder-row>strong{font-size:13px;white-space:nowrap}
@media(max-width:1180px){.category-picks{grid-template-columns:repeat(3,minmax(0,1fr))}.expense-two-columns{grid-template-columns:1fr}}
@media(max-width:760px){
 .demo-strip{flex-direction:column;align-items:flex-start}
 .demo-tier-switch{align-self:stretch}.demo-tier-switch button{flex:1}
 .expense-heading{align-items:flex-start}.expense-actions{justify-content:flex-start;width:100%;gap:7px}.expense-actions button{font-size:12px;padding:10px}
 .expense-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-mini-stat{padding:14px 13px;min-height:113px}.expense-mini-stat:first-child{grid-column:1/-1}
 .expense-edit{padding:17px 14px}.expense-edit .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .category-picks{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.category-pick{font-size:11px;min-height:87px}
 .expense-table-panel .section-title{align-items:stretch;flex-direction:column}.expense-filters select{flex:1;min-width:120px;max-width:none}
 .category-manager .section-title{flex-direction:column;align-items:flex-start;gap:13px}
 .category-row{gap:7px;padding:8px}.category-row strong{font-size:13px}.category-action{font-size:11px;padding:6px 3px}.category-row .category-icon{width:33px;height:33px}
 .drag-handle{width:25px;font-size:24px}
 .saved-item{gap:8px}.saved-item .category-icon{width:33px;height:33px;font-size:18px}
 .reminder-row{flex-wrap:wrap}.reminder-row>div{min-width:120px}
}
