@media screen {
 .view-expenses .content { background:#f5f6f1; }
 .expense-mast { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; margin:8px 0 20px; color:#193e34; }
 .expense-mast h1 { margin:0; font:400 clamp(38px,4vw,56px)/1.06 "Instrument Serif",Georgia,serif; letter-spacing:-.022em; }
 .expense-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; }
 .expense-actions .button.primary { background:#205342; color:white; border-color:#205342; }
 .expense-exports { position:relative; }
 .expense-exports summary,.expense-note summary { cursor:pointer; color:#345d47; }
 .expense-exports summary { display:list-item; width:fit-content; padding:12px 2px; font-size:.88rem; }
 .expense-exports>div { position:absolute; right:0; z-index:3; display:grid; width:max-content; max-width:min(82vw,340px); padding:6px; border:1px solid #c7d5c6; border-radius:10px; background:#fffefa; box-shadow:0 8px 24px #213e2e24; }
 .expense-exports>div .button { min-height:44px; padding:9px 12px; text-align:left; justify-content:flex-start; white-space:normal; background:transparent; border:0; color:#29533e; box-shadow:none; }
 .expense-exports>div .button:not(:disabled):hover { background:#eef3e8; }
 .expense-register { container-type:inline-size; color:#223e32; background:#fffefa; border:1px solid #c5d3c4; border-radius:16px; }
 .expense-overview { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding:17px clamp(16px,2.2vw,26px); border-radius:15px 15px 0 0; color:#fffdf6; background:#21483c; }
 .expense-overview>div { display:grid; gap:2px; min-width:0; }
 .expense-overview>div>span,.expense-year>span { color:#e6eedf; font-size:.82rem; }
 .expense-overview strong { color:#fffdf5; font:400 clamp(29px,3vw,43px)/1.1 "Instrument Serif",Georgia,serif; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
 .expense-year { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; }
 .expense-year select { max-width:100%; min-height:42px; border:1px solid #ccdbc9; border-radius:8px; padding:6px 9px; color:#254635; background:#fafcf6; }
 .expense-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; padding:10px clamp(14px,2.2vw,26px); border-bottom:1px solid #cedbca; background:#f0f4e9; }
 .expense-tools .search { flex:1 1 210px; min-width:0; max-width:510px; margin:0; min-height:44px; border-color:#baCbb7; color:#426447; background:#fffefa; box-shadow:none; }
 .expense-tools .search input { width:100%; min-width:0; }
 .expense-results { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; color:#415e46; font-size:.84rem; }
 .expense-results .link-button { padding:5px 0; color:#275f43; font:inherit; text-decoration:underline; text-underline-offset:3px; }
 .expense-entry { display:grid; grid-template-columns:minmax(0,1fr) minmax(72px,auto) minmax(160px,34%); align-items:center; gap:12px 24px; padding:14px clamp(14px,2.2vw,26px); }
 .expense-entry+.expense-entry { border-top:1px solid #d8e2d4; }
 .expense-description { min-width:0; overflow-wrap:anywhere; }
 .expense-description h2 { margin:0 0 3px; color:#214633; font-size:1.06rem; line-height:1.35; letter-spacing:0; }
 .expense-description p { margin:0; color:#516953; font-size:.84rem; line-height:1.45; }
 .expense-description time { font-variant-numeric:tabular-nums; }
 .expense-note { margin-top:2px; }
 .expense-note summary { width:fit-content; padding:4px 0; font-size:.78rem; }
 .expense-note p { margin:2px 0 6px; white-space:pre-line; }
 .expense-amount { color:#254d3b; text-align:right; font-weight:650; font-size:1.08rem; font-variant-numeric:tabular-nums; }
 .expense-entry-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:3px 8px; min-width:0; }
 #main-content .expense-entry-actions .button { min-height:44px; max-width:100%; padding:6px 10px; border:1px solid #c9d7c6; background:#f2f6ec; color:#325a42; border-radius:8px; text-align:left; white-space:normal; box-shadow:none; }
 #main-content .expense-entry-actions .button[data-action=edit-expense] { color:#41654b; background:transparent; border-color:transparent; }
 #main-content .expense-entry-actions .button:hover { background:#e3eddc; color:#1b4936; }
 #modal:has(form[data-form=expense]) .modal-header { background:#f0f4e9; border-bottom-color:#cfddca; }
 #modal:has(form[data-form=expense]) .modal-header h2 { color:#214636; font:400 clamp(29px,3vw,39px)/1.1 "Instrument Serif",Georgia,serif; letter-spacing:-.015em; }
 #modal:has(form[data-form=expense]) .modal-header p { color:#506a56; }
 #modal form[data-form=expense] .modal-footer { background:#f6f8f1; border-color:#d5e1cf; }
 #modal form[data-form=expense] .modal-footer .button { background:#fffefa; color:#315640; border-color:#c5d6c2; }
 #modal form[data-form=expense] .modal-footer .button.primary { background:#205342; border-color:#205342; color:#fff; }
 #modal form[data-form=expense] :is(input,select,textarea,summary):focus-visible { outline:2px solid #427956; outline-offset:2px; }
 #modal .expense-receipt-fields { display:block; min-width:0; padding:0; border:1px solid #c6d6c4; border-radius:9px; background:#f4f7ee; }
 #modal .expense-receipt-fields summary { display:list-item; padding:11px 14px; min-height:44px; cursor:pointer; font-weight:600; color:#2d543d; }
 #modal .expense-receipt-fields>.field-grid { min-width:0; gap:10px; padding:3px 14px 14px; }
 #modal .expense-receipt-fields :is(.field,input,select) { min-width:0; max-width:100%; }
 #modal .expense-receipt-fields input[type=file] { width:100%; font-size:.89rem; }
 #modal .expense-receipt-fields small { color:#526953; line-height:1.45; }
 .expense-register .empty { padding:28px 16px; }
 .expense-register :is(button,input,summary,select):focus-visible,.expense-exports summary:focus-visible { outline:3px solid #43805d; outline-offset:2px; }
}
@container (max-width:750px) {
 .expense-entry { grid-template-columns:minmax(0,1fr) auto; gap:5px 12px; }
 .expense-entry-actions { grid-column:1/-1; justify-content:flex-start; }
 .expense-amount { align-self:start; }
}
@media screen and (max-width:600px) {
 .expense-mast { margin:4px 0 12px; gap:8px; }
 .expense-actions { width:100%; gap:4px 14px; }
 .expense-overview { padding:12px 13px; gap:6px 8px; }
 .expense-year { display:grid; gap:2px; max-width:100%; }
 .expense-year select { min-height:40px; font-size:1rem; }
 .expense-tools { padding:8px 12px; gap:5px; }
 .expense-tools .search { flex-basis:100%; max-width:none; }
 .expense-tools .search input { font-size:1rem; }
 .expense-results { min-height:24px; gap:3px 15px; }
 .expense-entry { padding:11px 13px; }
 .expense-exports>div { max-width:min(73vw,300px); }
}
