
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#344667;background:#FCF8FA}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:11px 14px;background:#6688B7;color:white}button.secondary{background:#F5E6EE;color:#405C88}button.danger{background:#a53434}button:disabled{opacity:.4}header{background:#6688B7;color:white;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px}header small{display:block;opacity:.75}main{max-width:1080px;margin:auto;padding:18px}.toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.toolbar>*{max-width:100%}select,input,textarea{border:1px solid #d0dbd5;background:white;padding:11px;border-radius:10px;min-width:0}nav{display:flex;overflow:auto;gap:8px;padding:12px 18px;background:white;border-bottom:1px solid #F0E3EC}nav button{white-space:nowrap;background:#F3E5EE;color:#405C88}nav button.active{background:#6688B7;color:white}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.card,.panel{background:white;border:1px solid #EEDFEA;border-radius:15px;padding:17px}.card small,.muted{color:#687d74}.card strong{font-size:clamp(17px,2.5vw,25px);display:block;margin-top:8px}.panel{margin-top:14px}h2{font-size:20px;margin:4px 0 15px}h3{margin:5px 0 12px}table{width:100%;border-collapse:collapse;min-width:630px}th,td{text-align:left;border-bottom:1px solid #F0E3EC;padding:12px 8px;font-size:14px}th{color:#647a70}td:last-child{text-align:right}.scroll{overflow:auto}.positive{color:#087a55}.negative{color:#a03d3d}.tag{border-radius:20px;padding:5px 9px;background:#e9f0ed;font-size:12px;display:inline-block}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px;font-size:14px}.field.wide{grid-column:1/-1}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.item{border:1px solid #e3eae5;border-radius:12px;padding:14px;margin:10px 0}.item p{margin:6px 0}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.actions button{padding:8px 10px;font-size:13px}.hidden{display:none!important}.notice{padding:12px;border-radius:10px;background:#edf6f0;color:#225b42;margin:12px 0}.warning{background:#fff3de;color:#7d5618}.empty{padding:28px;text-align:center;color:#789086}footer{color:#789086;text-align:center;font-size:12px;padding:25px}@media(max-width:640px){.cards{grid-template-columns:1fr 1fr}.cards .card:last-child{grid-column:1/-1}.formgrid{grid-template-columns:1fr}.field.wide{grid-column:1}header{align-items:flex-start}main{padding:12px}}
header{background:linear-gradient(115deg,#698CBF,#BCA4D1 65%,#E8B6CD)}header b{display:flex;align-items:center;gap:10px;font-size:19px}.brandmark{display:inline-flex;align-items:center;justify-content:center;background:#fff8fc;color:#6688B7;border-radius:13px;width:43px;height:43px;font-family:Georgia,serif;font-style:italic;font-size:24px;box-shadow:0 3px 12px #45638a33}button{transition:filter .15s}button:active{filter:brightness(.9)}.panel,.card{box-shadow:0 5px 20px #7182a010}.notice.warning{background:#FFF1F6;color:#81556D}nav button.active{background:#6688B7}input:focus,textarea:focus,select:focus{outline:2px solid #E8B6CD;outline-offset:1px}.uploadhint{font-size:12px;color:#6e7390}.status{padding:10px;border-radius:10px;background:#f5e6ee;color:#604e72;margin-top:9px} 

.upload-choice{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid #cbd5e7;border-radius:12px;background:#f4f6fc;font-weight:600;color:#405C88}
.upload-choice input{width:100%;background:white}
.role-boss{background:#f1eaff;border-color:#cbb6e6}.role-admin{background:#eaf2ff;border-color:#b6ccec}.role-viewer{background:#fff2e6;border-color:#efd2ae}
.role-label{font-weight:700;font-size:11px;border-radius:7px;padding:3px 8px}
.history-create{background:#eaf1ff;border-color:#a9c3e9}
.history-request{background:#fff3e5;border-color:#efcba3}
.history-approve{background:#e8f5ed;border-color:#a6d5b7}
.history-edit{background:#f1eafe;border-color:#cab7e7}
.history-remove{background:#ffebed;border-color:#e9b4bb}
.history-permanent{background:#f9e4eb;border-color:#d8a3b7}
.history-restore{background:#e4f6f5;border-color:#a6d6d0}
.history-reject{background:#f7e9e9;border-color:#dcb5b5}
.item[class*="history-"]{border-left-width:5px;color:#273750}
.item[class*="history-"] .muted{color:#52617a}
.batch-line{background:#fbfaff}.batch-total04{font-size:18px;margin:20px 0}.file-row04{padding:8px 0;border-bottom:1px solid #eee}.batch-line .formgrid{margin-top:12px}
/* v0.5.1 mobile-banking navigation */
:root{color:#263b62;background:#f9f8fc}body{background:#f9f8fc}header{background:linear-gradient(118deg,#789ED9 0%,#a6b1e4 52%,#E7A0C5 100%);color:#203b69;padding:20px max(16px,calc((100vw - 1050px)/2));border-radius:0 0 22px 22px;box-shadow:0 6px 25px #6785c31c}header b{font-size:22px}header small{color:#314d78;opacity:1;font-size:12px;margin-top:4px}.brandmark{position:relative;width:58px;height:58px;flex-shrink:0;border:4px solid #fff;background:#789ED9;color:white;font-family:Georgia,serif;font-weight:700;font-style:italic;font-size:29px;border-radius:17px;box-shadow:0 5px 15px #5675b43b;transform:none}.brandmark:before{content:'';position:absolute;width:23px;height:23px;border-radius:50%;background:#E7A0C5;right:-8px;top:-9px;z-index:0}.brandmark{isolation:isolate}.brandmark:before{z-index:-1}header .toolbar select{background:#fff;color:#27456d;max-width:170px}header .toolbar button{font-size:12px}nav{display:none}main{max-width:1050px;padding:18px 14px}.notice.warning{font-size:12px;background:#fff1f6;color:#76566b;border-left:3px solid #e7a0c5;margin:0 0 18px}.home-summary{background:white;border-radius:22px;padding:18px;box-shadow:0 8px 25px #8797bc18;margin-bottom:23px}.home-summary h2{font-size:18px}.finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.finance-tile{border-radius:16px;padding:16px 12px}.finance-tile.income{background:#e7f7ef;color:#17613e}.finance-tile.expense{background:#fcecf2;color:#9b294c}.finance-tile small{display:block;margin-bottom:8px}.finance-tile strong{font-size:clamp(16px,4vw,26px);overflow-wrap:anywhere}.cash-net{display:flex;justify-content:space-between;gap:10px;margin-top:12px;padding:13px;border:1px solid #edf0f8;border-radius:13px;font-size:14px}.home-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-link{position:relative;background:white;color:#243c69;text-align:left;min-height:145px;border:1px solid #eff0f8;border-radius:19px;padding:15px;box-shadow:0 5px 18px #7484ad15;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.home-link .menu-icon{display:grid;place-items:center;font-size:25px;width:48px;height:48px;border-radius:13px;background:#e5eeff}.home-link:nth-child(2) .menu-icon{background:#fce3f0}.home-link:nth-child(3) .menu-icon{background:#e5f6ed}.home-link:nth-child(4) .menu-icon{background:#fce5ec}.home-link:nth-child(5) .menu-icon{background:#eee7ff}.home-link:nth-child(6) .menu-icon{background:#e6efff}.home-link b{font-size:16px}.home-link small{font-size:12px;color:#63799f}.menu-badges{position:absolute;right:9px;top:9px;display:flex;gap:4px}.count-pill{background:#f74e77;color:#fff;border-radius:99px;min-width:23px;height:23px;display:grid;place-items:center;padding:0 6px;font-size:12px;font-weight:800}.count-pill.orange{background:#ed982f}.page-top{display:flex;align-items:center;gap:12px;margin-bottom:18px}.back-home{background:#e9effa;color:#2d4c7b;padding:10px 13px}.page-top h2{margin:0}.subnav{display:flex;gap:8px;overflow:auto;padding:2px 0 13px;scrollbar-width:thin}.subnav button{flex-shrink:0;background:#f3e9f2;color:#36527f}.subnav button.selected{background:#789ED9;color:white}.section-title{font-size:17px;margin:10px 0 14px}.item,.panel,.card{border-radius:17px;background:#fff;box-shadow:0 3px 14px #7b8fb011}.receipt-income{background:#e8f7ef;border-left:5px solid #68bc92}.receipt-expense{background:#ffedf3;border-left:5px solid #e37c9c}.item .actions button{max-width:100%}button{background:#789ED9}button.secondary{background:#f6e7f0;color:#355580}.home-hint{font-size:12px;color:#667b99;margin:15px 0 0;text-align:center}.member-demo{padding:16px;background:white;border-radius:16px;color:#536886}.history-category{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;background:white;color:#28456f;border:1px solid #e9eafa;margin:9px 0;padding:17px;border-radius:14px}.history-category .count-pill{position:static}.toolbar{justify-content:flex-end}@media(max-width:540px){header{align-items:center;padding:16px 14px;flex-wrap:wrap}header b{font-size:18px}.toolbar{margin-left:auto}.brandmark{width:49px;height:49px;font-size:25px}main{padding:14px 12px}.home-link{min-height:142px;padding:13px}.home-link b{font-size:15px}.finance-tile{padding:12px 9px}.finance-tile strong{font-size:16px}}
/* v0.5.5 mobile-first */
body:has(.page-top) header{display:none}body:has(.page-top) main{padding-top:54px}
.page-top{position:sticky;top:0;z-index:30;background:#fcf8faed;backdrop-filter:blur(8px);padding:8px 0;display:flex;align-items:center;gap:8px;justify-content:space-between}
.page-top h2{margin:0;font-size:18px}.back-home{order:3;margin-left:auto;white-space:nowrap}.help-trigger{order:2}
.subnav{display:flex;flex-wrap:wrap;gap:6px}.subnav button{font-size:13px;padding:8px 10px}
.scroll-hint{font-size:12px;color:#486b99;display:flex;align-items:center;justify-content:space-between;margin:7px 0}
.sheet-wrap{overflow:auto;max-height:66vh;scrollbar-width:thin;scrollbar-color:#628fca #e3edfb;border:1px solid #bed2ed;border-radius:9px}
.sheet{border-collapse:separate;border-spacing:0;min-width:800px;width:100%}.sheet th{position:sticky;top:0;background:#507eb8;color:white;z-index:4}.sheet td,.sheet th{padding:6px 9px;font-size:12px;white-space:nowrap;border-bottom:1px solid #c7d9ee}.sheet tbody tr:nth-child(3n+1){background:#fff}.sheet tbody tr:nth-child(3n+2){background:#eaf3ff}.sheet tbody tr:nth-child(3n){background:#cfe3fa}.sheet tbody tr:hover{outline:2px solid #82a9d7}.sheet th:first-child{left:0;z-index:6}.sheet td:first-child{position:sticky;left:0;z-index:3;background:inherit}.sheet button{padding:5px 7px;font-size:12px}
.history-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px}.history-toolbar input,.history-toolbar select{width:100%;font-size:13px;padding:8px}.history-list{display:grid;gap:3px}.history-line{border-radius:7px;padding:7px 9px;display:flex;gap:9px;align-items:center;min-height:42px}.history-line:nth-child(3n+1){background:#fff}.history-line:nth-child(3n+2){background:#eaf3ff}.history-line:nth-child(3n){background:#d8e9fa}.history-line b{font-size:12px}.history-line small{display:block;color:#5d708b;font-size:11px}.history-line .tag{font-size:10px;flex-shrink:0}.pager{position:sticky;top:52px;z-index:12;background:#fcf8fa;padding:8px 0;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.pager button{padding:7px 10px}.pager input{width:70px;padding:7px}.compact-notice{font-size:12px;color:#66748a}.ledger-stats{display:flex;gap:8px;flex-wrap:wrap}.ledger-stats span{background:#e9f0fb;padding:8px;border-radius:8px;font-size:12px}.import-area{padding:12px;background:#eff4fc;border-radius:12px;margin:12px 0}.import-area input{max-width:100%}
@media(max-width:430px){.history-line{padding:5px 7px;min-height:37px}.history-line b{font-size:11px}.history-line small{font-size:10px}.pager{gap:3px}.pager button{padding:6px 8px}.page-top h2{font-size:16px}}

/* v0.5.5 readability and actionable controls */
.finance-grid54 .finance-tile,.ledger-total54,.home-link{border:1px solid #aab5c4}
.finance-grid54 .finance-tile.net{background:#dbe5f2;color:#20354d}
.finance-grid54 .net strong{color:#20354d}
.ledger-total54 span{font-size:14px;font-weight:700}
button.secondary,.subnav button{background:#e0eafa;color:#183b69;border:1px solid #7892b4;font-weight:700}
.subnav button{min-height:44px;padding:12px 18px;box-shadow:0 2px 2px #253b6220}
.subnav button.selected{background:#315e9a;color:white;border-color:#244a7d}
button.danger{background:#a9324f;color:white;border:1px solid #8a213b}
button:focus-visible,input:focus-visible{outline:3px solid #315e9a;outline-offset:2px}
.action-icon55{width:17px;height:17px;vertical-align:-3px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.category55{position:relative;display:block;min-width:0}.category55 input{width:100%;box-sizing:border-box;padding-right:38px}
.category-clear55{position:absolute;right:3px;top:3px;padding:5px 9px!important;min-height:30px;background:transparent!important;color:#284569!important;border:0!important}
.category-list55{position:absolute;top:100%;left:0;right:0;z-index:35;max-height:200px;overflow:auto;background:white;border:1px solid #8d9fb7;border-radius:8px;box-shadow:0 6px 16px #243b6233}
.category-list55 button{display:block;width:100%;text-align:left;background:white;color:#203b62;border-radius:0;padding:10px 12px}.category-list55 button:hover{background:#e0eafa}
.category-list55 p{padding:10px;margin:0}.mobile-date55{display:none}
@media(min-width:781px){.finance-grid54 .finance-tile small{font-size:17px}.ledger-filter54 label{font-size:16px}.ledger-filter54 input,.ledger-filter54 select,.reset54{font-size:16px!important}.ledger-total54 span{font-size:16px}.sheet th,.sheet td{font-size:15px}.sheet button{font-size:14px}.help-dialog{font-size:17px;line-height:1.65}.help-dialog h2{font-size:23px}.help-trigger{font-size:17px;font-weight:700}.subnav button{font-size:17px}}
@media(max-width:780px){.finance-grid54 .finance-tile.net{min-height:0;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.finance-grid54 .net small{margin:0}.finance-grid54 .net strong{font-size:18px}.desktop-date55{display:none}.mobile-date55{display:inline}.sheet td:first-child{min-width:94px}.sheet th:first-child{max-width:110px;white-space:normal}.ledger-total54 span{font-size:13px}.ledger-total54 strong{font-size:14px}}

.help-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.help-trigger{background:#f8e6f0;color:#355580;border:1px solid #ebc4d9;padding:8px 10px;font-size:13px;white-space:nowrap}.page-top{flex-wrap:wrap}.page-top .help-trigger{margin-left:auto}.help-dialog{border:0;border-radius:20px;max-width:min(94vw,480px);padding:20px;color:#293e62;box-shadow:0 20px 80px #17244266}.help-dialog::backdrop{background:#1d294d99}.help-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.help-heading h2{font-size:19px}.help-tip{background:#eff3ff;border-radius:13px;padding:13px}.help-tip p{margin-bottom:0}.audit-note,.audit-reason{overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap}.audit-id{max-width:100%;overflow-wrap:anywhere}.audit-change{background:#ffffffaa;border-radius:12px;padding:11px;margin:9px 0}.audit-change>b{font-size:13px}.audit-compare{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.audit-compare span{min-width:0;overflow-wrap:anywhere;background:#fff;border-radius:9px;padding:9px;font-size:13px}.audit-compare small{display:block;color:#697a92;margin-bottom:5px}.item[class*="history-"]{overflow:hidden}.item[class*="history-"] p{overflow-wrap:anywhere;word-break:break-word}@media(max-width:400px){.audit-compare{grid-template-columns:1fr}}
/* v0.5.5 mobile-first */
body:has(.page-top) header{display:none}body:has(.page-top) main{padding-top:54px}
.page-top{position:sticky;top:0;z-index:30;background:#fcf8faed;backdrop-filter:blur(8px);padding:8px 0;display:flex;align-items:center;gap:8px;justify-content:space-between}
.page-top h2{margin:0;font-size:18px}.back-home{order:3;margin-left:auto;white-space:nowrap}.help-trigger{order:2}
.subnav{display:flex;flex-wrap:wrap;gap:6px}.subnav button{font-size:13px;padding:8px 10px}
.scroll-hint{font-size:12px;color:#486b99;display:flex;align-items:center;justify-content:space-between;margin:7px 0}
.sheet-wrap{overflow:auto;max-height:66vh;scrollbar-width:thin;scrollbar-color:#628fca #e3edfb;border:1px solid #bed2ed;border-radius:9px}
.sheet{border-collapse:separate;border-spacing:0;min-width:800px;width:100%}.sheet th{position:sticky;top:0;background:#507eb8;color:white;z-index:4}.sheet td,.sheet th{padding:6px 9px;font-size:12px;white-space:nowrap;border-bottom:1px solid #c7d9ee}.sheet tbody tr:nth-child(3n+1){background:#fff}.sheet tbody tr:nth-child(3n+2){background:#eaf3ff}.sheet tbody tr:nth-child(3n){background:#cfe3fa}.sheet tbody tr:hover{outline:2px solid #82a9d7}.sheet th:first-child{left:0;z-index:6}.sheet td:first-child{position:sticky;left:0;z-index:3;background:inherit}.sheet button{padding:5px 7px;font-size:12px}
.history-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px}.history-toolbar input,.history-toolbar select{width:100%;font-size:13px;padding:8px}.history-list{display:grid;gap:3px}.history-line{border-radius:7px;padding:7px 9px;display:flex;gap:9px;align-items:center;min-height:42px}.history-line:nth-child(3n+1){background:#fff}.history-line:nth-child(3n+2){background:#eaf3ff}.history-line:nth-child(3n){background:#d8e9fa}.history-line b{font-size:12px}.history-line small{display:block;color:#5d708b;font-size:11px}.history-line .tag{font-size:10px;flex-shrink:0}.pager{position:sticky;top:52px;z-index:12;background:#fcf8fa;padding:8px 0;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.pager button{padding:7px 10px}.pager input{width:70px;padding:7px}.compact-notice{font-size:12px;color:#66748a}.ledger-stats{display:flex;gap:8px;flex-wrap:wrap}.ledger-stats span{background:#e9f0fb;padding:8px;border-radius:8px;font-size:12px}.import-area{padding:12px;background:#eff4fc;border-radius:12px;margin:12px 0}.import-area input{max-width:100%}
@media(max-width:430px){.history-line{padding:5px 7px;min-height:37px}.history-line b{font-size:11px}.history-line small{font-size:10px}.pager{gap:3px}.pager button{padding:6px 8px}.page-top h2{font-size:16px}}

/* v0.5.5 readability and actionable controls */
.finance-grid54 .finance-tile,.ledger-total54,.home-link{border:1px solid #aab5c4}
.finance-grid54 .finance-tile.net{background:#dbe5f2;color:#20354d}
.finance-grid54 .net strong{color:#20354d}
.ledger-total54 span{font-size:14px;font-weight:700}
button.secondary,.subnav button{background:#e0eafa;color:#183b69;border:1px solid #7892b4;font-weight:700}
.subnav button{min-height:44px;padding:12px 18px;box-shadow:0 2px 2px #253b6220}
.subnav button.selected{background:#315e9a;color:white;border-color:#244a7d}
button.danger{background:#a9324f;color:white;border:1px solid #8a213b}
button:focus-visible,input:focus-visible{outline:3px solid #315e9a;outline-offset:2px}
.action-icon55{width:17px;height:17px;vertical-align:-3px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.category55{position:relative;display:block;min-width:0}.category55 input{width:100%;box-sizing:border-box;padding-right:38px}
.category-clear55{position:absolute;right:3px;top:3px;padding:5px 9px!important;min-height:30px;background:transparent!important;color:#284569!important;border:0!important}
.category-list55{position:absolute;top:100%;left:0;right:0;z-index:35;max-height:200px;overflow:auto;background:white;border:1px solid #8d9fb7;border-radius:8px;box-shadow:0 6px 16px #243b6233}
.category-list55 button{display:block;width:100%;text-align:left;background:white;color:#203b62;border-radius:0;padding:10px 12px}.category-list55 button:hover{background:#e0eafa}
.category-list55 p{padding:10px;margin:0}.mobile-date55{display:none}
@media(min-width:781px){.finance-grid54 .finance-tile small{font-size:17px}.ledger-filter54 label{font-size:16px}.ledger-filter54 input,.ledger-filter54 select,.reset54{font-size:16px!important}.ledger-total54 span{font-size:16px}.sheet th,.sheet td{font-size:15px}.sheet button{font-size:14px}.help-dialog{font-size:17px;line-height:1.65}.help-dialog h2{font-size:23px}.help-trigger{font-size:17px;font-weight:700}.subnav button{font-size:17px}}
@media(max-width:780px){.finance-grid54 .finance-tile.net{min-height:0;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.finance-grid54 .net small{margin:0}.finance-grid54 .net strong{font-size:18px}.desktop-date55{display:none}.mobile-date55{display:inline}.sheet td:first-child{min-width:94px}.sheet th:first-child{max-width:110px;white-space:normal}.ledger-total54 span{font-size:13px}.ledger-total54 strong{font-size:14px}}


/* v0.5.5 consolidated layout */
.page-top{position:sticky;top:0;z-index:80;display:flex;flex-wrap:nowrap;gap:8px;align-items:center;padding:9px 4px;background:#fcf8faf7;box-shadow:0 2px 12px #5777a01b}
.page-top .back-home{order:0;margin:0;padding:8px 11px;background:#dce9fa;color:#285486;font-size:18px;font-weight:750}
.page-top h2{order:1;margin:0;flex:1;min-width:0;font-size:17px}
.page-top .help-trigger{order:2;padding:8px 11px;background:#3166a3;color:#fff;border:0;font-size:19px;font-weight:750}
.page-top .back-nav53{order:3;padding:7px 10px;font-size:23px;background:#dce9fa;color:#285486}
.filter53{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.filter53 label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}.filter53 input,.filter53 select{width:100%;min-width:0;padding:9px 5px;font-size:13px}
.filter53 .wide{grid-column:1/-1}.ledger-stats53{display:flex;flex-direction:column;gap:5px;justify-content:center;background:#eaf1fc;border:1px solid #d0e0f5;padding:9px 12px;border-radius:11px;min-width:0}.ledger-stats53 div{display:flex;gap:8px;justify-content:space-between;font-size:12px}.ledger-stats53 b{white-space:nowrap}.ledger-filter53{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.15fr);gap:8px;align-items:stretch;margin:9px 0}
.sheet-wrap{max-height:60vh;overscroll-behavior:contain}.sheet th{position:sticky;top:0}.sheet tbody tr:nth-child(3n+1){background:#bfd7f3}.sheet tbody tr:nth-child(3n+2){background:#e4f0ff}.sheet tbody tr:nth-child(3n){background:#fff}.sheet td,.sheet th{padding:5px 8px}
.history-list .history-line:nth-child(3n+1){background:#bfd7f3!important}.history-list .history-line:nth-child(3n+2){background:#e4f0ff!important}.history-list .history-line:nth-child(3n){background:#fff!important}
.composer53{position:fixed;inset:0;z-index:100;pointer-events:none}.composer53 .composer-bar53{pointer-events:auto;position:absolute;bottom:0;left:0;right:0;background:#f8fbff;border-top:2px solid #9bbbe2;padding:10px max(12px,calc((100vw - 720px)/2));box-shadow:0 -4px 18px #3e5c8429}.composer53 textarea{width:100%;min-height:55px;max-height:22vh;resize:vertical}.composer53 .composer-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center;margin-top:6px}.composer53 .composer-actions button{padding:8px 12px}.composer53 .composer-title{font-weight:700;font-size:13px;margin-bottom:5px}.composer53 .composer-bar53{bottom:var(--keyboard53,0px)}
@media(max-width:390px){.ledger-filter53{grid-template-columns:1fr 1fr}.ledger-stats53{padding:7px}.ledger-stats53 div{font-size:10px}.page-top h2{font-size:15px}}


/* v0.5.5: desktop/mobile navigation, readable icons and responsive workspace */
:root{--bf-blue:#789ed9;--bf-dark:#315b93;--bf-pink:#e7a0c5}
body{background:#f7f9fe;color:#263b62}
main{max-width:1400px;margin:auto;padding:22px 24px}
.page-top{top:0;position:sticky;z-index:82;display:flex;flex-wrap:nowrap;gap:10px;align-items:center;padding:10px 14px;margin:0 0 14px;background:#fff;border:1px solid #dbe5f3;border-radius:15px;box-shadow:0 6px 18px #5273a418}
.page-top h2{order:1;flex:1;margin:0;font-size:clamp(17px,1.55vw,23px);font-weight:750;min-width:0}
.page-top .navicon{display:inline-flex;align-items:center;justify-content:center;order:0;width:43px;height:43px;padding:0;flex-shrink:0;border-radius:12px;background:#dae7fb;color:#254e82;border:1.5px solid #a9c6e9;box-shadow:0 2px 0 #b4cbe8}
.page-top .navicon svg{height:23px;width:23px;stroke:currentColor;stroke-width:2.35;fill:none;stroke-linecap:round;stroke-linejoin:round}
.page-top .navicon.help54{order:2;background:#2e629e;border-color:#28578b;color:white}
.page-top .navicon.back54{order:3;background:#dbe7fa;color:#214e83}
.page-top .navicon.back54 svg{width:27px;height:27px;stroke-width:2.8}
.page-top .navicon:hover,.home-link:hover{filter:brightness(.97);transform:translateY(-1px)}
.home-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-link{min-height:135px;border:1.5px solid #d5e2f3}
.home-link .menu-icon{height:45px;width:45px;font-size:23px}
.home-summary{padding:22px}
.finance-grid54{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.finance-grid54 .finance-tile{min-width:0;min-height:112px;display:flex;flex-direction:column;justify-content:center}
.finance-grid54 .finance-tile.net{background:#eaf1fd;color:#325b8b}
.finance-grid54 .finance-tile strong{display:block;font-size:clamp(18px,2vw,26px);overflow-wrap:anywhere}
.finance-grid54 .finance-tile small{font-size:13px}
.summary-sub{font-size:12px;color:#667e9f;margin:12px 0 0}
.subnav{flex-wrap:nowrap;gap:8px;overflow:auto;padding:0 2px 14px}
.subnav button{white-space:nowrap;border:1px solid #d6e2f0;padding:9px 14px}
.bf-workspace{width:100%;min-width:0}
.bf-workspace h2{font-size:19px}
.ledger-filter54{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(220px,1fr);gap:12px;margin:8px 0 14px;align-items:end}
.ledger-period54{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ledger-period54 label,.ledger-category54 label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650}
.ledger-filter54 input,.ledger-filter54 select{width:100%;font-size:14px;border:1px solid #b7cde9}
.month-wrap54{display:flex;align-items:stretch;gap:4px;min-width:0}
.month-wrap54 input{min-width:0;flex:1}
.month-wrap54 .clear54{padding:7px 11px;background:#e9f0fb;color:#355b84;border:1px solid #c0d5ee}
.ledger-category54{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
.ledger-category54 .reset54{font-size:13px;height:45px;white-space:nowrap}
.ledger-totals54{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 13px}
.ledger-total54{background:white;border:1px solid #d5e2f3;border-radius:13px;padding:14px;box-shadow:0 4px 14px #6c85a212}
.ledger-total54 span{display:block;font-size:12px;color:#667d99;margin-bottom:7px}
.ledger-total54 strong{font-size:clamp(17px,1.8vw,23px);overflow-wrap:anywhere}
.sheet-wrap{max-height:64vh;background:white;border-color:#b6cce9;scrollbar-width:thin}
.sheet{min-width:780px}.sheet th{background:#4475ad;font-size:13px}
.sheet tbody tr:nth-child(3n+1){background:#bfd7f3}.sheet tbody tr:nth-child(3n+2){background:#e4f0ff}.sheet tbody tr:nth-child(3n){background:#fff}
.sheet td{font-size:13px;white-space:normal;min-width:90px}
.sheet td:first-child{white-space:nowrap}
.sheet td .actions{flex-wrap:nowrap}
.history-toolbar54{display:grid;grid-template-columns:minmax(190px,2fr) minmax(120px,1fr) minmax(110px,1fr) minmax(110px,1fr);gap:8px;margin-bottom:12px}
.history-toolbar54 input,.history-toolbar54 select{width:100%;padding:10px;font-size:13px}
.history-line54{padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;border-radius:8px}
.history-line54:nth-child(3n+1){background:#bfd7f3}.history-line54:nth-child(3n+2){background:#e4f0ff}.history-line54:nth-child(3n){background:white}
.history-line54 b{font-size:13px}.history-line54 small{display:block;margin-top:5px;color:#506781}
.history-line54 details summary{cursor:pointer;color:#315b93;font-size:12px;margin-top:5px}
.history-line54 .audit-note{font-size:12px}
.composer53{z-index:120}.composer53 .composer-bar53{max-width:760px;left:50%;right:auto;width:calc(100% - 28px);transform:translateX(-50%);bottom:max(var(--keyboard53,0px),16px);border:1px solid #9dbbe4;border-top:3px solid #5689c6;border-radius:16px;box-shadow:0 7px 35px #35547744;padding:13px 15px}
.composer53 textarea{min-height:56px;max-height:20vh}
body.composer-open54{padding-bottom:190px}
.bf-demo-tag{font-size:12px;color:#637a99}.scroll-hint{gap:9px;flex-wrap:wrap}.scroll-hint span:last-child{white-space:nowrap}.request-lines54{font-size:13px;line-height:1.55}.request-lines54 p{padding:5px 0;border-bottom:1px solid #e5eaf4}
@media(min-width:1050px){header{padding-left:max(26px,calc((100vw - 1340px)/2));padding-right:max(26px,calc((100vw - 1340px)/2))}main{padding:25px 34px}.bf-workspace{max-width:none}.home-summary{margin-top:12px}.home-link{min-height:132px}}
@media(max-width:780px){main{padding:13px}.home-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-filter54{grid-template-columns:1fr}.finance-grid54{grid-template-columns:1fr 1fr}.finance-grid54 .net{grid-column:1/-1}.finance-grid54 .finance-tile{min-height:94px}.history-toolbar54{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.page-top{padding:7px;gap:6px;border-radius:12px}.page-top .navicon{width:36px;height:38px;border-radius:9px}.page-top .navicon svg{width:21px;height:21px}.page-top h2{font-size:16px}.ledger-period54{gap:6px}.ledger-filter54 input{font-size:12px;padding:8px 4px}.month-wrap54 .clear54{padding:6px 8px}.ledger-category54{grid-template-columns:1fr auto}.ledger-totals54{gap:5px}.ledger-total54{padding:10px 7px}.ledger-total54 strong{font-size:13px}.ledger-total54 span{font-size:11px}.finance-grid54 .finance-tile strong{font-size:clamp(13px,4vw,19px)}.home-link{min-height:130px}.composer53 .composer-bar53{bottom:var(--keyboard53,0px);width:100%;border-radius:14px 14px 0 0}.history-line54{padding:8px}}


/* v0.5.5 readability and actionable controls */
.finance-grid54 .finance-tile,.ledger-total54,.home-link{border:1px solid #aab5c4}
.finance-grid54 .finance-tile.net{background:#dbe5f2;color:#20354d}
.finance-grid54 .net strong{color:#20354d}
.ledger-total54 span{font-size:14px;font-weight:700}
button.secondary,.subnav button{background:#e0eafa;color:#183b69;border:1px solid #7892b4;font-weight:700}
.subnav button{min-height:44px;padding:12px 18px;box-shadow:0 2px 2px #253b6220}
.subnav button.selected{background:#315e9a;color:white;border-color:#244a7d}
button.danger{background:#a9324f;color:white;border:1px solid #8a213b}
button:focus-visible,input:focus-visible{outline:3px solid #315e9a;outline-offset:2px}
.action-icon55{width:17px;height:17px;vertical-align:-3px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.category55{position:relative;display:block;min-width:0}.category55 input{width:100%;box-sizing:border-box;padding-right:38px}
.category-clear55{position:absolute;right:3px;top:3px;padding:5px 9px!important;min-height:30px;background:transparent!important;color:#284569!important;border:0!important}
.category-list55{position:absolute;top:100%;left:0;right:0;z-index:35;max-height:200px;overflow:auto;background:white;border:1px solid #8d9fb7;border-radius:8px;box-shadow:0 6px 16px #243b6233}
.category-list55 button{display:block;width:100%;text-align:left;background:white;color:#203b62;border-radius:0;padding:10px 12px}.category-list55 button:hover{background:#e0eafa}
.category-list55 p{padding:10px;margin:0}.mobile-date55{display:none}
@media(min-width:781px){.finance-grid54 .finance-tile small{font-size:17px}.ledger-filter54 label{font-size:16px}.ledger-filter54 input,.ledger-filter54 select,.reset54{font-size:16px!important}.ledger-total54 span{font-size:16px}.sheet th,.sheet td{font-size:15px}.sheet button{font-size:14px}.help-dialog{font-size:17px;line-height:1.65}.help-dialog h2{font-size:23px}.help-trigger{font-size:17px;font-weight:700}.subnav button{font-size:17px}}
@media(max-width:780px){.finance-grid54 .finance-tile.net{min-height:0;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.finance-grid54 .net small{margin:0}.finance-grid54 .net strong{font-size:18px}.desktop-date55{display:none}.mobile-date55{display:inline}.sheet td:first-child{min-width:94px}.sheet th:first-child{max-width:110px;white-space:normal}.ledger-total54 span{font-size:13px}.ledger-total54 strong{font-size:14px}}

/* Account-only additions; complete approved stylesheet above. */
.login60{max-width:520px;margin:35px auto}.login60 label{margin:18px 0}.login60 input{width:100%}
.account-name60{font-weight:700;font-size:14px}.success60{background:#e3f4e9;color:#1d5738}.error60{background:#ffe5e9;color:#84283c}.audit-json60{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:14px/1.5 system-ui}.pager input{max-width:80px}.category55 input{min-width:0}.category-list55{display:block}.category-list55[hidden]{display:none}.menu-icon .action-icon55{width:28px;height:28px;margin:0}#message60{position:sticky;top:0;z-index:45;padding:12px;border-radius:10px}#message60[hidden]{display:none}.composer53{pointer-events:none}.composer-bar53{pointer-events:auto}.help-dialog p{font-weight:500}button[disabled]{opacity:.55;cursor:wait}.account60{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.alpha60{margin-bottom:14px;font-size:13px}.sheet-wrap{margin-top:15px}#retry60{margin:8px 0}
@media(min-width:781px){.login60{font-size:17px}.category55 input{font-size:16px}}

.page-top .navicon .action-icon55{margin:0}
#transaction60>button{margin-top:12px}.account-name60{overflow-wrap:anywhere}
