:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#182331;background:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#182331;--muted:#7b8796;--line:#e7ebf0;--surface:#fff;--blue:#375de8;--blue-soft:#edf1ff;--green:#07875c;--green-soft:#e8f7f0;--orange:#d87917;--orange-soft:#fff2e5;--radius:18px;--shadow:0 8px 28px rgba(20,36,58,.045)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f7fa}button,input,select{font:inherit}button{cursor:pointer}.site-shell{min-height:100vh}.auth-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;background:radial-gradient(circle at 80% 5%,#e7edff 0,transparent 32%),#f5f7fa}.auth-brand,.brand{display:flex;align-items:center;gap:10px;font:800 18px system-ui,sans-serif}.auth-brand{margin-bottom:24px}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#253c78;color:#fff;font:800 19px system-ui,sans-serif}.auth-card{width:min(100%,440px);padding:34px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 18px 48px rgba(20,36,58,.08)}h1,h2,h3,p{margin-top:0}.auth-card h1,.workspace-heading h1{font:800 30px system-ui,sans-serif;letter-spacing:-.035em;margin:4px 0 8px}.muted,.eyebrow,.summary-label,.summary-card small,.panel-heading p,.transaction-copy small,.fund-progress small,.fund-main small,.fund-numbers small{color:var(--muted)}.eyebrow{margin:0 0 6px;font-size:10px;letter-spacing:.12em;font-weight:700}.auth-form{display:grid;gap:16px;margin-top:22px}.auth-form label,.fund-create label{display:grid;gap:7px;font-size:13px;font-weight:600;color:#384556}.auth-form input,.auth-form select,.inline-create input,.inline-create select,.fund-create input{width:100%;height:46px;padding:0 13px;border:1px solid #dfe4eb;border-radius:11px;background:#fbfcfd;color:var(--ink);outline:none}.auth-form input:focus,.auth-form select:focus,.inline-create input:focus,.fund-create input:focus{border-color:#8fa5ff;box-shadow:0 0 0 3px rgba(55,93,232,.1)}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid transparent;border-radius:11px;font-weight:700;font-size:13px;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.6;cursor:wait;transform:none}.button.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(55,93,232,.17)}.button.secondary,.button.ghost{border-color:var(--line);background:#fff;color:#37465a}.button.full{width:100%;min-height:48px}.text-button{padding:4px 0;border:0;background:none;color:var(--blue);font-size:12px;font-weight:700}.auth-card>.text-button{margin-top:17px}.auth-footnote{margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.notice{padding:12px 14px;margin:12px 0;border-radius:11px;font-size:13px}.notice.error{background:#fff0ef;color:#bd3c33;border:1px solid #f5d4d1}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#fff;border-bottom:1px solid var(--line)}.topbar-actions{display:flex;align-items:center;gap:10px}.period-button{width:34px;min-height:34px;padding:0;font-size:22px}.period-label{text-transform:capitalize;font-size:13px;min-width:128px;text-align:center}.avatar{width:36px;height:36px;margin-left:14px;border:1px solid var(--line);border-radius:50%;background:#f3f5f8;color:#526174}.app-frame{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{display:flex;flex-direction:column;gap:6px;padding:24px 14px;background:#fff;border-right:1px solid var(--line)}.sidebar-caption{padding:4px 12px 12px;color:#98a3b1;font-size:10px;font-weight:700;letter-spacing:.12em}.side-link{display:flex;align-items:center;gap:12px;height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#647185;text-align:left;font-weight:600;font-size:13px}.side-link span{width:18px;text-align:center;font-size:17px}.side-link:hover,.side-link.selected{background:var(--blue-soft);color:var(--blue)}.sidebar-bottom{display:flex;align-items:center;gap:8px;margin-top:auto;padding:12px 8px 0;color:#8a96a5;font-size:11px}.secure-dot{width:8px;height:8px;border-radius:50%;background:#0aaf77}.workspace{width:100%;min-width:0;padding:34px clamp(18px,3vw,46px) 56px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.workspace-heading h1{font-size:29px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.summary-card{display:flex;align-items:center;gap:15px;min-height:132px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.summary-card>div{display:grid;gap:4px;min-width:0}.summary-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:var(--blue-soft);color:var(--blue);font:700 21px Manrope}.income-icon{background:var(--green-soft);color:var(--green)}.expense-icon{background:var(--orange-soft);color:var(--orange)}.summary-label{font-size:12px}.summary-card strong{font:800 clamp(20px,2vw,28px) Manrope;white-space:nowrap;letter-spacing:-.025em}.summary-card small{font-size:11px}.balance-card .summary-icon{background:#eef2ff}.income-text{color:var(--green)}.expense-text{color:var(--orange)}.content-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:18px}.panel{padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-heading h2,.modal-title h2{margin:0 0 4px;font:700 17px Manrope}.panel-heading p{margin:0;font-size:12px}.transaction-list{display:grid}.transaction-row{display:flex;align-items:center;gap:12px;min-height:68px;border-bottom:1px solid #f0f2f5}.transaction-row:last-child{border:0}.transaction-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;font-size:17px;font-weight:700}.transaction-icon.positive{background:var(--green-soft);color:var(--green)}.transaction-icon.negative{background:var(--orange-soft);color:var(--orange)}.transaction-copy{display:grid;gap:4px;min-width:0}.transaction-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.transaction-copy small{font-size:11px}.transaction-amount{margin-left:auto;white-space:nowrap;font-size:13px}.empty-state{display:flex;min-height:200px;flex-direction:column;align-items:center;justify-content:center;padding:26px;text-align:center}.empty-state>span{color:#afb9c8;font-size:28px}.empty-state strong{font-size:14px}.empty-state p{max-width:280px;margin:7px 0 14px;color:var(--muted);font-size:12px}.empty-state.compact{min-height:150px}.fund-progress{padding:12px 0;border-bottom:1px solid #f0f2f5}.fund-progress:last-child{border:0}.fund-line{display:flex;justify-content:space-between;gap:12px;font-size:12px}.fund-line span{font-weight:700}.fund-progress small{display:block;margin-top:6px;font-size:10px}.progress-track{height:7px;margin-top:9px;overflow:hidden;border-radius:8px;background:#eff2f6}.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5372ed,#8298ff)}.full-panel{width:100%}.table-scroll{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{padding:12px;color:#8994a2;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid var(--line)}td{padding:13px 12px;border-bottom:1px solid #f0f2f5}td:first-child,th:first-child{padding-left:0}.align-right{text-align:right}.transaction-title{display:flex;align-items:center;gap:10px}.transaction-title>span:last-child{display:grid;gap:3px}.transaction-title small{color:var(--muted);font-size:10px}.icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#657286;font-size:19px}.icon-button.danger:hover{border-color:#f3c1bd;color:#c84439}.inline-create{display:flex;gap:10px;max-width:740px;margin-bottom:24px}.inline-create input{flex:1}.inline-create select{max-width:150px}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.category-group{padding:17px;border:1px solid var(--line);border-radius:14px}.category-group h3{display:flex;justify-content:space-between;margin:0 0 12px;font:700 13px Manrope}.category-group h3 span{color:var(--muted)}.category-item{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f0f2f5;font-size:12px}.category-item:last-child{border:0}.category-dot{width:12px;height:12px;border:1px solid #e1e5ec;border-radius:50%}.category-item small{margin-left:auto;color:var(--muted);font-size:10px}.fund-create{display:grid;grid-template-columns:1.3fr .8fr .9fr auto;gap:11px;align-items:end;padding:16px;margin-bottom:18px;border:1px solid var(--line);border-radius:14px;background:#fafbfd}.fund-create label{font-size:11px}.fund-create input{height:40px}.fund-total{padding:9px 12px;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-size:11px}.fund-table{display:grid}.fund-row{display:flex;align-items:center;gap:13px;padding:15px 2px;border-bottom:1px solid #f0f2f5}.fund-badge{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#f0f2ff;color:var(--blue);font-size:18px}.fund-main{flex:1;min-width:0}.fund-main>strong{font-size:13px}.fund-main small,.fund-numbers small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.fund-numbers{text-align:right;white-space:nowrap}.fund-numbers strong{font-size:12px}.loading-card{padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--muted);text-align:center}.modal-backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:18px;background:rgba(16,27,43,.48);backdrop-filter:blur(3px)}.modal-card{width:min(100%,480px);max-height:calc(100vh - 36px);overflow-y:auto;padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(12,23,40,.2)}.modal-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.type-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:11px;background:#f1f3f7}.type-switch button{height:36px;border:0;border-radius:8px;background:transparent;color:#788596;font-size:12px;font-weight:700}.type-switch .active.income-choice{background:var(--green-soft);color:var(--green)}.type-switch .active.expense-choice{background:var(--orange-soft);color:var(--orange)}

@media(max-width:1050px){.content-grid{grid-template-columns:1fr}.fund-create{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{gap:10px}.summary-card{padding:16px;gap:11px}}
@media(max-width:760px){.topbar{height:62px;padding:0 16px}.app-frame{display:flex;flex-direction:column;min-height:calc(100vh - 62px)}.sidebar{order:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-caption,.sidebar-bottom{display:none}.side-link{height:40px;justify-content:center;gap:6px;padding:0 4px;font-size:11px}.side-link span{font-size:15px}.workspace{padding:24px 16px 36px}.workspace-heading{align-items:flex-start;margin-bottom:17px}.workspace-heading h1{font-size:25px}.summary-grid{grid-template-columns:1fr;gap:10px}.summary-card{min-height:92px;padding:15px 18px}.summary-card strong{font-size:24px}.summary-icon{width:42px;height:42px;flex-basis:42px}.panel{padding:17px}.category-grid{grid-template-columns:1fr}.fund-create{grid-template-columns:1fr 1fr}.inline-create{flex-wrap:wrap}.inline-create input{flex-basis:100%}.period-label{min-width:105px;font-size:12px}.topbar-actions{gap:5px}.avatar{margin-left:4px}}
@media(max-width:430px){.brand{font-size:15px;gap:7px}.brand-mark{width:30px;height:30px}.topbar{padding:0 10px}.period-button{width:30px;min-height:32px}.period-label{min-width:92px}.avatar{width:32px;height:32px}.workspace-heading .button{min-height:38px;padding:0 10px;font-size:11px}.summary-card strong{font-size:21px}.panel-heading h2{font-size:15px}.panel-heading .text-button{font-size:10px}.side-link{font-size:10px}.fund-create{grid-template-columns:1fr}.fund-create button{width:100%}.auth-card{padding:25px 20px}.auth-card h1{font-size:25px}.inline-create select{max-width:none}.transaction-row{gap:8px}.transaction-amount{font-size:11px}.table-scroll table{min-width:620px}}

/* Match the MAUI FinanceTracker palette and dashboard order. */
:root{--ink:#1e3f56;--muted:#74858b;--line:#dfe7e6;--surface:#fff;--blue:#1e3f56;--blue-soft:#eaf2f1;--green:#328d79;--green-soft:#e8f4f0;--orange:#d07e51;--orange-soft:#fbefe8;--radius:14px;--shadow:0 3px 14px rgba(30,63,86,.045)}
body{background:#f3f6f5;color:var(--ink)}
.topbar{height:66px;padding:0 24px}
.brand-mark{background:var(--blue);border-radius:10px}
.topbar-actions{gap:8px}
.period-button{width:auto;min-width:88px;min-height:34px;padding:0 10px;font-size:11px}
.period-label{min-width:118px;color:var(--blue)}
.avatar{width:auto;height:34px;padding:0 12px;margin-left:5px;border-radius:10px;background:#f2f6f5;color:var(--blue);font-size:12px}
.sidebar{padding:20px 12px}
.side-link{border-radius:9px;color:#607681}
.side-link.selected{background:#eaf2f1;color:var(--blue);box-shadow:inset 3px 0 var(--accent,#7ba2a0)}
.side-link:focus{outline:none}
.side-link:focus-visible{outline:2px solid #7ba2a0;outline-offset:2px}
.workspace{padding-top:28px}
.workspace-heading{margin-bottom:18px}
.workspace-heading h1,.auth-card h1{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.025em}
.eyebrow{color:#7ba2a0}
.button{border-radius:9px;transition:background .15s,border-color .15s}
.button:hover{transform:none}
.button.primary{background:var(--blue);box-shadow:none}
.button.primary:hover{background:#28566f}
.button.secondary,.button.ghost{border-color:var(--line);background:#fff;color:var(--blue)}
.button.secondary:hover,.button.ghost:hover{background:#f5f8f7;border-color:#b9cdca}
.transaction-actions{display:flex;gap:8px;flex-wrap:wrap}
.income-action,.expense-action{min-height:40px;border:1px solid var(--line);background:#fff;color:var(--blue)}
.income-action:hover{background:var(--green-soft);border-color:#bddfd4}
.expense-action:hover{background:var(--orange-soft);border-color:#f0d1bf}
.balance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:18px;padding:18px 8px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}
.balance-summary article{display:grid;align-content:center;gap:5px;min-width:0;padding:4px 20px;border-right:1px solid var(--line)}
.balance-summary article:last-child{border-right:0}
.balance-summary .summary-label{font-size:12px}
.balance-summary strong{font-size:clamp(20px,2vw,27px);line-height:1.15;white-space:nowrap}
.balance-summary small{color:var(--muted);font-size:11px}
.total-balance strong{color:var(--blue)}
.income-text{color:var(--green)}
.expense-text{color:var(--orange)}
.content-grid{grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:14px;margin-bottom:14px}
.panel{padding:18px;box-shadow:var(--shadow)}
.panel-heading{align-items:center;margin-bottom:12px}
.panel-heading h2,.modal-title h2{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;letter-spacing:-.01em}
.panel-heading p{font-size:11px}
.text-button{color:var(--blue)}
.chart-switch{display:flex;width:max-content;gap:3px;margin:0 0 12px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f6f8f7}
.chart-switch button{min-height:30px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;font-weight:700}
.chart-switch button.active.income-choice{background:var(--green-soft);color:var(--green)}
.chart-switch button.active.expense-choice{background:var(--orange-soft);color:var(--orange)}
.breakdown-list{display:grid;gap:12px;padding:7px 0}
.breakdown-item{display:grid;gap:6px}
.breakdown-label{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.breakdown-label span{white-space:nowrap;color:var(--muted)}
.progress-track{height:6px;margin-top:0;background:#edf1f0}
.progress-track .income-fill{background:#7ba2a0}
.progress-track .expense-fill{background:#d07e51}
.fund-progress{padding:10px 0}
.recent-panel{margin-bottom:20px}
.transaction-row{min-height:60px}
.transaction-icon{border-radius:11px}
.transaction-icon.positive{background:var(--green-soft);color:var(--green)}
.transaction-icon.negative{background:var(--orange-soft);color:var(--orange)}
.fund-badge{background:#eaf2f1;color:var(--blue)}
.progress-track span{background:#7ba2a0}
.fund-plan-hint{color:var(--orange)}
.empty-state{min-height:140px;padding:18px}
.empty-state.compact{min-height:110px}
.empty-state p{margin-bottom:8px}
.loading-card{border-radius:var(--radius);box-shadow:var(--shadow)}
.modal-card{border-radius:16px}

@media(max-width:760px){
    .topbar{height:auto;min-height:62px;padding:8px 12px;gap:10px}
    .topbar-actions{gap:5px}
    .period-button{min-width:0;padding:0 7px;font-size:10px}
    .period-label{min-width:92px;font-size:11px}
    .avatar{margin-left:0;padding:0 8px;font-size:11px}
    .balance-summary{grid-template-columns:1fr;padding:4px 14px}
    .balance-summary article{grid-template-columns:1fr auto;align-items:center;gap:3px 12px;padding:11px 2px;border-right:0;border-bottom:1px solid var(--line)}
    .balance-summary article:last-child{border-bottom:0}
    .balance-summary .summary-label{grid-column:1}
    .balance-summary strong{grid-column:2;grid-row:1 / span 2;font-size:20px}
    .balance-summary small{grid-column:1}
    .content-grid{grid-template-columns:1fr}
    .transaction-actions{width:100%}
    .transaction-actions .button{flex:1}
}
@media(max-width:430px){
    .brand{font-size:13px}
    .brand-mark{width:28px;height:28px}
    .topbar{padding:8px}
    .topbar-actions{gap:3px}
    .period-button{font-size:9px;padding:0 5px}
    .period-label{min-width:84px;font-size:10px}
    .avatar{height:31px;padding:0 6px;font-size:10px}
    .workspace{padding:18px 12px 28px}
    .workspace-heading{flex-wrap:wrap}
    .workspace-heading .button{font-size:11px}
    .panel{padding:15px}
    .balance-summary article{padding:10px 1px}
}

.category-editor-card{width:min(100%,880px)}
.category-editor-form{gap:14px}
.category-editor-card .category-search{display:grid;gap:7px;color:#384556;font-size:12px;font-weight:600}
.category-editor-card .category-search input{width:100%;height:40px;padding:0 12px;border:1px solid #dfe4eb;border-radius:10px;background:#fbfcfd;color:var(--ink)}
.category-picker{display:grid;gap:12px;min-width:0}
.category-picker-preview{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.category-icon-preview{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px}
.category-icon-preview img{width:22px;height:22px;object-fit:contain}
.category-row-icon{flex-basis:32px;width:32px;height:32px;border-radius:10px}
.category-row-icon img{width:18px;height:18px}
.category-icon-groups{display:grid;gap:7px;max-height:280px;overflow:auto;padding:2px 4px 2px 0}
.category-icon-groups details{border:1px solid var(--line);border-radius:10px;background:#fff}
.category-icon-groups summary{display:flex;justify-content:space-between;padding:10px 12px;cursor:pointer;color:var(--ink);font-size:12px;font-weight:700;list-style:none}
.category-icon-groups summary::-webkit-details-marker{display:none}
.category-icon-groups summary span{color:var(--muted);font-weight:500}
.category-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:6px;padding:0 10px 10px}
.category-icon-option{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.category-icon-option:hover,.category-icon-option.selected{border-color:var(--blue);background:var(--blue-soft)}
.category-icon-option img{width:24px;height:24px;object-fit:contain}
.category-picker-status{margin:0;color:var(--muted);font-size:12px}
.category-color-fieldset{margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:10px}
.category-color-fieldset legend{padding:0 5px;color:#384556;font-size:12px;font-weight:700}
.category-color-palette{display:flex;flex-wrap:wrap;gap:8px}
.category-color-swatch{width:30px;height:30px;border:2px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #d7dde5}
.category-color-swatch.selected{box-shadow:0 0 0 2px var(--blue)}
.category-editor-actions{display:flex;justify-content:flex-end;gap:10px}
.category-item-name{min-width:0;overflow-wrap:anywhere}
.category-item .icon-button{flex:0 0 32px}
.transaction-icon-image{overflow:hidden}
.transaction-icon-image img{width:20px;height:20px;object-fit:contain}
.category-modal-backdrop{z-index:20}
.row-actions{display:flex;justify-content:flex-end;gap:4px}
.inline-create{display:flex;align-items:end;gap:8px}
.inline-create label{flex:1}
.inline-create .button{min-height:40px;white-space:nowrap}
.align-left{text-align:left}
.tag-fieldset{display:grid;gap:8px;margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:10px}
.tag-fieldset legend{padding:0 5px;color:#384556;font-size:12px;font-weight:700}
.tag-options{display:flex;flex-wrap:wrap;gap:8px}
.tag-options label{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;color:var(--ink);font-size:12px}
.tag-options input{width:15px;height:15px;accent-color:var(--blue)}
.date-shortcuts{display:flex;flex-wrap:wrap;gap:7px}
.fund-name-input{width:min(100%,260px);padding:6px 8px;border:1px solid var(--line);border-radius:7px;font-weight:700}
.fund-edit-fields select{min-width:140px;max-width:210px}
.fund-create{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.fund-row{flex-wrap:wrap}
.fund-edit-fields{display:flex;flex-wrap:wrap;align-items:end;gap:8px;width:100%;padding-left:50px}
.fund-edit-fields>label{display:grid;gap:5px;color:var(--muted);font-size:11px}
.fund-edit-fields input,.fund-edit-fields select{height:38px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}
.fund-category-picker{min-width:0;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.fund-category-picker legend{padding:0 4px;color:var(--muted);font-size:11px;font-weight:700}
.fund-category-options{display:flex;flex-wrap:wrap;gap:5px 10px;max-height:104px;overflow:auto}
.fund-category-options label{display:flex;align-items:center;gap:5px;color:var(--ink);font-size:11px;white-space:nowrap}
.fund-category-options input{width:14px;height:14px;accent-color:var(--blue)}
.fund-heading-actions{display:flex;align-items:center;gap:10px}
.fund-heading-actions .button{min-height:36px;font-size:11px}
.month-picker{position:relative;display:grid;place-items:center;min-height:36px;cursor:pointer}
.month-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.month-picker:focus-within{outline:2px solid var(--blue);outline-offset:3px;border-radius:5px}
@media(max-width:760px){
    .category-editor-card{width:100%;padding:18px}
    .category-icon-groups{max-height:240px}
    .category-item{flex-wrap:wrap}
    .category-item small{margin-left:42px}
    .category-item .icon-button:first-of-type{margin-left:auto}
    .category-editor-actions{display:grid;grid-template-columns:1fr 1fr}
    .inline-create{align-items:stretch}
    .inline-create .button{padding:0 10px;font-size:11px}
    .fund-edit-fields{padding-left:0}
    .fund-edit-fields>*{max-width:100%}
    .fund-heading-actions{flex-wrap:wrap;justify-content:flex-end}
}
