:root{--ink:#193d35;--text:#263c36;--muted:#6f7c75;--bg:#f6f7f2;--line:#e4e8df;--green:#285b49;--light:#eaf0e6;--amber:#9a642b;--red:#a1473d;--white:#fff;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd9555;outline-offset:3px}button{border:0}input,select,textarea{border:1px solid #dbe1d7;border-radius:10px;background:white;color:var(--text);padding:11px 12px;min-height:44px;max-width:100%}input::placeholder,textarea::placeholder{color:#89948d}input:focus,textarea:focus,select:focus{border-color:var(--green)}input:read-only{background:#f2f5ee;color:#627269}textarea{resize:vertical}button,select{touch-action:manipulation}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;left:8px;top:-100px;z-index:10;padding:12px;background:white}.skip-link:focus{top:8px}.demo-banner{background:#fbefcd;color:#694f21;padding:10px 28px;display:flex;align-items:center;gap:16px;justify-content:center;font-size:12px}.demo-banner strong{font-size:10px;letter-spacing:1px;flex-shrink:0}.demo-banner button{background:none;color:inherit;text-decoration:underline;padding:4px;white-space:nowrap}.topbar{background:rgba(255,255,255,.9);border-bottom:1px solid var(--line)}.topbar-inner{max-width:1280px;margin:auto;padding:20px 32px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:12px;align-items:center;text-decoration:none}.brand-icon{display:grid;place-items:center;background:var(--ink);color:#f3e6c1;border-radius:13px;width:46px;height:46px;font:600 19px Georgia,serif;letter-spacing:-1px}.brand strong{display:block;font-size:20px;letter-spacing:-.5px}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:1.8px;margin-top:1px}.header-actions{display:flex;gap:18px;align-items:center}.owner-label{font-size:12px;color:var(--muted)}.avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#eef1e7;color:#5e6b45;font-size:12px;font-weight:600;flex-shrink:0}.owner-avatar{background:#eedec1;color:#725931}.icon-btn{background:transparent;color:var(--text);font-size:26px;width:44px;height:44px;border-radius:10px;display:grid;place-items:center}.icon-btn:hover{background:var(--light)}.main{max-width:1280px;margin:auto;padding:38px 32px 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:33px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650;color:var(--muted);margin:0 0 9px}.page-heading h1{font-size:29px;letter-spacing:-1.05px;font-weight:580;line-height:1.3;margin:0 0 10px}.mobile-br{display:none}.subtitle{color:var(--muted);font-size:13px;margin:0}.btn{padding:12px 20px;border-radius:11px;min-height:47px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:600;font-size:13px;background:var(--light);color:var(--ink);white-space:nowrap}.btn.primary{background:var(--ink);color:white;box-shadow:0 4px 10px #193d350e}.btn.primary:hover{background:#285346}.btn.primary span{font-size:22px;font-weight:400}.btn.secondary{background:white;border:1px solid var(--line)}.btn.danger{background:#faeeee;color:var(--red)}.summary-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:10px;gap:12px}.summary-label span:first-child{font-weight:650;letter-spacing:1.4px}.stats{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:16px;margin-bottom:32px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px 25px;min-width:0;position:relative}.stat-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:12px;gap:8px}.stat-symbol{font-size:18px;color:#97a28d}.stat>strong{display:block;font-size:31px;font-weight:580;letter-spacing:-1.2px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-caption{font-size:10px;color:var(--muted);display:block;margin-top:13px}.main-stat{background:var(--ink);color:#fff;border-color:var(--ink)}.main-stat .stat-symbol,.main-stat .stat-caption{color:#b9cdc0}.overdue-stat strong{color:var(--amber)}.ledger{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 22px #233c2603}.ledger-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 26px 22px;gap:15px}.ledger-heading h2{font-size:19px;font-weight:600;letter-spacing:-.5px;margin:0}.ledger-heading p{margin:3px 0 0;font-size:11px;color:var(--muted)}.view-switch{background:#f4f6f0;padding:4px;border-radius:10px;display:flex;gap:3px}.view-switch button{background:transparent;padding:9px 15px;border-radius:7px;color:var(--muted);font-size:12px;min-height:38px}.view-switch button.active{background:white;box-shadow:0 1px 5px #173f3010;color:var(--ink);font-weight:600}.toolbar{display:flex;gap:14px;padding:0 26px 18px}.search-field{display:flex;align-items:center;background:#f8f9f6;border:1px solid var(--line);border-radius:10px;flex:1;padding:0 14px;gap:9px;min-width:0}.search-field span{font-size:25px;color:var(--muted)}.search-field input{border:0;background:transparent;padding-left:0;width:100%;font-size:12px;outline-offset:0}.sort-label select{font-size:12px;width:200px;background:#fff;min-height:46px}.filter-bar{padding:0 26px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.status-filters{display:flex;gap:6px;flex-wrap:wrap}.status-filters button{padding:8px 13px;border-radius:7px;background:white;font-size:12px;color:var(--muted);min-height:38px}.status-filters button.active{background:var(--light);color:var(--green);font-weight:650}.status-filters button:hover{background:#f4f6ef}.text-btn{font-size:11px;color:var(--muted);background:transparent;padding:9px 3px;min-height:38px}.text-btn:hover{color:var(--ink)}.date-filters{padding:16px 26px;background:#fafbf8;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:end}.date-filters label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:5px}.date-filters select,.date-filters input{font-size:11px;min-height:37px;padding:7px 10px;min-width:135px}.date-filters .text-btn{margin-left:auto}.date-arrow{color:#9eaa9e;align-self:center;margin-top:18px}.view-note{font-size:11px;color:var(--muted);margin:0;padding:12px 26px;border-bottom:1px solid var(--line);background:#fafbf8}.data-table{width:100%;border-collapse:collapse;table-layout:fixed}.data-table th{background:#fff;padding:13px 18px;text-align:left;font-size:10px;letter-spacing:.3px;color:var(--muted);font-weight:500;border-bottom:1px solid var(--line)}.data-table th:first-child,.data-table td:first-child{padding-left:26px}.data-table th:last-child,.data-table td:last-child{padding-right:26px}.data-table td{padding:17px 18px;border-bottom:1px solid #edf0e9;font-size:12px;vertical-align:middle;overflow-wrap:anywhere}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfdf9}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.data-table th:nth-child(1){width:24%}.data-table th:nth-child(2){width:22%}.data-table th:nth-child(3){width:14%}.data-table th:nth-child(4){width:15%}.data-table th:nth-child(5){width:13%}.data-table th:nth-child(6){width:12%}.customer-cell{display:flex;align-items:center;gap:11px;min-width:0}.customer-link{border:0;background:transparent;text-align:left;padding:0;font-weight:600;color:var(--text);font-size:12px;white-space:normal}.customer-link:hover{text-decoration:underline}.cell-sub{color:var(--muted);font-size:10px;display:block;margin-top:3px;font-weight:400}.product-title{font-weight:500}.balance-number{font-weight:650}.zero-balance{color:#9da79e}.badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:550;padding:5px 8px;border-radius:6px;white-space:nowrap;background:#f7edd8;color:#89652b}.badge::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.partial{background:#f7f0dd;color:#8c6d36}.badge.paid{background:#edf3e9;color:#557341}.badge.void{background:#f1f1f1;color:#7b7e7b}.badge.overdue{background:#f9eae5;color:#a05b47}.row-btn{border:1px solid #d7e2d4;color:var(--green);background:#fbfcf8;border-radius:7px;padding:7px 10px;font-size:10px;white-space:nowrap;min-height:34px}.row-btn:hover{background:var(--light)}.results-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 26px;font-size:10px;color:var(--muted);background:#fcfdfb}.results-footer strong{font-size:12px;color:var(--ink);margin-left:5px}.empty{text-align:center;padding:48px 25px;color:var(--muted)}.empty-symbol{font-size:35px;color:#a6b49c}.empty h3{font-size:16px;color:var(--text);font-weight:500}.empty p{font-size:12px}.below-ledger{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin:13px 3px 26px;gap:15px}.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:20px 0;font-size:10px;color:var(--muted);gap:22px}.footer strong{font-size:11px;color:#57675a}.footer p{margin:5px 0}.footer>span{white-space:nowrap}.alert{padding:14px;border-radius:10px;margin:0 0 18px;font-size:12px;background:#fff3df;color:#835d25}.alert.error{background:#faeee8;color:#974b3c}.date-filters+.alert{border-radius:0;margin:0}.mobile-cards{display:none}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;background:var(--ink);color:white;border-radius:12px;box-shadow:0 8px 30px #162f3330;font-size:13px;z-index:1000;max-width:calc(100vw - 32px)}
dialog{position:fixed;inset:0 0 0 auto;max-width:560px;width:100%;height:100dvh;max-height:100dvh;border:0;margin:0;padding:0;background:#fff;color:var(--text);box-shadow:-15px 0 50px #183b3415}dialog::backdrop{background:#17352f65;backdrop-filter:blur(2px)}.drawer-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:24px 28px;background:white;border-bottom:1px solid var(--line);z-index:3}.drawer-header h2{font-size:23px;margin:0;font-weight:550;letter-spacing:-.7px}.drawer-header .eyebrow{font-size:9px;margin-bottom:5px}.drawer-body{padding:24px 28px 32px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;position:relative}.field>label{font-size:12px;font-weight:550}.optional{font-size:10px;font-weight:400;color:var(--muted)}.field .help{font-size:10px;color:var(--muted);margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-section-title{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:600;text-transform:uppercase;margin:25px 0 15px;padding-top:18px;border-top:1px solid var(--line)}.checkbox-row{display:flex;align-items:center;gap:10px;font-size:12px;margin:8px 0 23px}.checkbox-row input{min-height:0;width:18px;height:18px;accent-color:var(--green)}.form-actions{display:flex;gap:10px;position:sticky;bottom:0;background:white;padding:17px 0 0;border-top:1px solid var(--line);z-index:2}.form-actions .primary{flex:1}.suggestions{position:absolute;top:75px;left:0;right:0;background:white;box-shadow:0 8px 26px #294e3020;border:1px solid var(--line);border-radius:10px;z-index:5;max-height:260px;overflow:auto}.suggestions button{display:block;text-align:left;background:white;width:100%;padding:11px 14px;border-bottom:1px solid var(--line);color:var(--text);font-size:12px}.suggestions button:last-child{border:0}.suggestions button:hover,.suggestions button:focus{background:var(--light)}.suggestions small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.selected-customer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-radius:9px;background:var(--light);font-size:11px;margin-bottom:18px}.profile-summary{background:var(--ink);border-radius:14px;padding:22px;color:white;margin:0 0 22px}.profile-summary .small{font-size:11px;color:#bdd0c0;display:block}.profile-summary .big{font-size:33px;letter-spacing:-.7px;margin:5px 0;display:block;font-weight:550}.profile-contact{font-size:12px;margin-bottom:22px;color:var(--muted);overflow-wrap:anywhere}.profile-contact strong{color:var(--text)}.profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:23px}.profile-actions .btn{font-size:11px;padding:10px 13px;min-height:41px}.future-box{background:#f7f8f3;border:1px dashed #d9dfd0;border-radius:12px;padding:17px;margin-bottom:25px}.future-box h3{font-size:12px;margin:0 0 6px}.future-box p{font-size:10px;color:var(--muted);margin:0 0 12px}.future-box .btn{font-size:11px;min-height:38px;margin-right:7px;padding:8px 14px}.history-title{font-size:15px;font-weight:550;margin:22px 0 14px}.history-item{border:1px solid var(--line);border-radius:12px;padding:17px;margin-bottom:12px}.history-top{display:flex;justify-content:space-between;align-items:start;gap:14px}.history-top h4{margin:0;font-size:13px;font-weight:600}.history-top>strong{font-size:14px;white-space:nowrap}.history-meta{font-size:10px;color:var(--muted);margin:6px 0 13px}.history-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.payment-line{padding:12px 0 0;border-top:1px dashed var(--line);font-size:10px;color:var(--muted);margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.payment-line.voided{text-decoration:line-through;opacity:.7}.payment-line .text-btn{font-size:10px;color:var(--red);padding:0;min-height:25px}.payment-context{background:#f5f7f0;border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:22px}.payment-context h3{font-size:14px;margin:0 0 5px;font-weight:550}.payment-context p{font-size:11px;color:var(--muted);margin:4px 0}.payment-context strong{color:var(--ink);font-size:20px}.amount-input{font-size:23px;font-weight:500;letter-spacing:-.7px}.reminder-text{font-size:13px;line-height:1.75;width:100%;min-height:160px}.note-box{font-size:11px;color:var(--muted);padding:10px 0}.profile-contact .text-btn{margin-top:4px}.refreshing{opacity:.6;pointer-events:none}
@media(min-width:1450px){.main{padding-top:45px}.stats{margin-bottom:36px}.page-heading{margin-bottom:37px}.stat{padding:25px 27px}}
@media(max-width:1050px){.main{padding:30px 22px 15px}.topbar-inner{padding:18px 22px}.stat{padding:20px}.stat>strong{font-size:27px}.page-heading h1{font-size:25px}.data-table td,.data-table th{padding-left:12px;padding-right:12px}.data-table .avatar{display:none}.data-table td:first-child,.data-table th:first-child{padding-left:24px}.owner-label{display:none}}
@media(max-width:720px){.demo-banner{padding:10px 15px;gap:8px;font-size:10px;flex-wrap:wrap;justify-content:flex-start}.demo-banner span{flex:1;min-width:210px}.demo-banner button{font-size:10px;margin-left:auto}.topbar-inner{padding:15px 18px}.brand strong{font-size:18px}.brand-icon{width:40px;height:40px;border-radius:11px}.header-actions{gap:6px}.owner-avatar{width:34px;height:34px;font-size:10px}.brand small{font-size:8px;letter-spacing:1.3px}.main{padding:25px 16px 10px}.page-heading{display:block;margin-bottom:23px}.page-heading h1{font-size:27px;letter-spacing:-.85px;line-height:1.3}.mobile-br{display:block}.subtitle{font-size:11px;max-width:310px;line-height:1.7}.eyebrow{font-size:9px}.add-entry{width:100%;margin-top:20px;min-height:49px}.summary-label{font-size:8px;align-items:end;gap:10px}.summary-label span:last-child{text-align:right;max-width:160px;line-height:1.6}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:23px}.main-stat{grid-column:1/-1}.stat{padding:17px 18px;border-radius:14px}.stat-heading{font-size:11px;margin-bottom:10px}.stat>strong{font-size:27px}.main-stat>strong{font-size:36px}.main-stat .stat-heading{margin-bottom:7px}.stat-caption{font-size:9px;margin-top:9px}.stat-symbol{font-size:17px}.ledger{border-radius:14px}.ledger-heading{padding:20px 16px 17px;display:block}.ledger-heading h2{font-size:18px}.ledger-heading p{font-size:10px}.view-switch{margin-top:16px;width:100%}.view-switch button{flex:1;min-height:39px}.toolbar{padding:0 16px 13px;gap:9px;flex-wrap:wrap}.search-field{flex-basis:100%}.sort-label{width:100%}.sort-label select{width:100%;min-height:42px}.search-field input{font-size:12px;min-height:43px}.filter-bar{padding:0 14px 13px;display:block}.status-filters{gap:4px}.status-filters button{padding:7px 9px;font-size:10px;min-height:38px}.filter-bar>.text-btn{display:block;margin-left:auto;min-height:28px;padding:3px}.date-filters{padding:14px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.date-filters label:first-child{grid-column:1/-1}.date-filters input,.date-filters select{width:100%;min-width:0;min-height:41px;font-size:11px}.date-arrow{display:none}.date-filters .text-btn{grid-column:1/-1;padding:0;min-height:25px}.data-table{display:none}.mobile-cards{display:block}.mobile-card{padding:18px 16px;border-bottom:1px solid var(--line)}.mobile-card:last-child{border-bottom:0}.mobile-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-card .customer-link{font-size:13px}.mobile-card .cell-sub{font-size:10px}.mobile-card-mid{display:flex;justify-content:space-between;gap:12px;margin:15px 0}.mobile-card-mid>div:last-child{text-align:right}.mobile-card-mid .product-title{font-size:12px}.mobile-card-mid .balance-number{font-size:17px}.mobile-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.mobile-card-bottom>.cell-sub{margin:0}.mobile-card .row-btn{min-height:40px;font-size:11px;padding:7px 14px}.results-footer{padding:14px 16px;font-size:9px;align-items:start}.results-footer>span:last-child{text-align:right}.results-footer strong{display:block;margin:4px 0 0;font-size:14px}.view-note{padding:12px 16px;font-size:10px}.below-ledger{font-size:9px;display:block;line-height:1.8;margin:12px 0 20px}.below-ledger .text-btn{font-size:10px;display:block}.footer{font-size:9px;display:block;padding:17px 0}.footer>span{display:block;margin-top:13px;opacity:.7}.drawer-header{padding:21px 21px}.drawer-body{padding:21px}.drawer-header h2{font-size:22px}.form-grid{gap:10px}.field input,.field textarea{font-size:16px}.field .amount-input{font-size:24px}.form-actions{padding-bottom:env(safe-area-inset-bottom)}.profile-summary .big{font-size:31px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}dialog[open]{animation:slide-in .16s ease-out}@keyframes slide-in{from{transform:translateX(25px);opacity:.5}to{transform:translateX(0);opacity:1}}}

.heading-actions{display:flex;gap:10px;flex-wrap:wrap}.access-notice{margin-bottom:18px;font-size:13px}.heading-actions .btn{white-space:nowrap}
@media(max-width:600px){.heading-actions{width:100%}.heading-actions .btn{flex:1;padding-inline:12px}.heading-actions .add-entry{width:auto}}

/* QA 2026-09-26: content-sized layouts, readable controls and explicit data states. */
.customer-text,.customer-cell,.mobile-card-top>*,.mobile-card-mid>*,.drawer-header>div,.history-top h4{min-width:0}
.customer-text{flex:1}
.customer-link,.product-title,.history-top h4,.drawer-header h2,.payment-context,.history-meta,.payment-line,.suggestions button,.selected-customer,.alert dd{overflow-wrap:anywhere}
.customer-link{max-width:100%;min-height:44px}
.drawer-header{gap:12px;align-items:flex-start}
.drawer-header>div{flex:1}.drawer-header .icon-btn{flex:0 0 44px}
.history-top{flex-wrap:wrap}.history-top h4{flex:1 1 140px}.history-top>strong{flex:0 0 auto}
.history-bottom,.payment-line,.form-actions{flex-wrap:wrap}
.payment-line>span{min-width:0;flex:1 1 140px}.payment-line button{flex-shrink:0}
.drawer-body,.field,.form-grid>*{min-width:0}
.form-actions .btn{white-space:normal;min-height:44px;min-width:0}
.profile-summary .big{font-size:clamp(1.25rem,5vw,2.2rem);overflow-wrap:anywhere}
.data-freshness{font-size:14px;padding:10px 14px;border-left:4px solid var(--amber);background:#fff3df;color:#835d25}
.date-disclosure{border-top:1px solid var(--line);background:#fafbf8}
.date-disclosure>summary{cursor:pointer;padding:12px 26px;font-size:14px;min-height:44px;color:var(--muted)}
.date-disclosure[open] .date-filters{border-top:0}
.btn,.text-btn,.row-btn,.status-filters button,.view-switch button{font-size:14px;min-height:44px}
.field>label{font-size:14px}.field .help,.note-box,.optional,.cell-sub,.history-meta,.payment-line,.stat-caption,.view-note,.below-ledger{font-size:12px}
.field input,.field textarea,.search-field input,.date-filters input,.date-filters select,.sort-label select{font-size:16px}
.heading-actions{align-items:stretch}.heading-actions .add-entry{margin-top:0}
.mobile-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mobile-card-top>.customer-cell{flex:1 1 150px}.mobile-card-top>.badge,.mobile-card-top>.row-btn{flex-shrink:0}
.mobile-card-mid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0}
.mobile-card-mid>div:last-child{text-align:right}
.mobile-card-mid .balance-number{white-space:nowrap;font-size:18px}
.mobile-card .purchase-total,.mobile-card .paid-total{font-size:14px;color:var(--text)}
.mobile-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mobile-card-bottom .row-btn{flex-shrink:0}
@media(min-width:480px){.mobile-card-mid{grid-template-columns:minmax(0,1fr) max-content}}
@media(max-width:1050px){.data-table{display:none}.mobile-cards{display:block}.mobile-card{padding:16px;border-bottom:1px solid var(--line)}}
@media(max-width:720px){
 .main{padding-top:16px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:22px;line-height:1.25}.subtitle{display:none}.mobile-br{display:none}
 .heading-actions{margin-top:14px;width:100%}.heading-actions .btn{flex:1;min-height:48px;padding:10px 8px;font-size:14px}.heading-actions .add-entry{margin:0;width:auto}
 .access-notice{font-size:13px;margin-bottom:12px;padding:10px}
 .stats{margin-bottom:16px;gap:8px}.stat{padding:12px}.stat-heading{font-size:12px;margin-bottom:6px}.stat-caption{font-size:12px;line-height:1.4;margin-top:6px}.stat>strong{font-size:24px}.main-stat>strong{font-size:30px}.summary-label{font-size:10px}
 .ledger-heading{padding:14px 16px}.ledger-heading p{display:none}.view-switch{margin-top:10px}.view-switch button{font-size:14px;min-height:44px}
 .status-filters button{font-size:14px;min-height:44px;padding:7px 9px}.filter-bar>.text-btn,.date-filters .text-btn,.below-ledger .text-btn{min-height:44px;font-size:14px}
 .date-disclosure>summary{padding:12px 16px}.date-filters input,.date-filters select{font-size:16px;min-height:44px}
 .mobile-card .customer-link,.mobile-card-mid .product-title{font-size:14px}.mobile-card .cell-sub{font-size:12px}.mobile-card .paid-total,.mobile-card .purchase-total{font-size:14px}
 .mobile-card .row-btn,.mobile-card .text-btn,.profile-actions .btn,.payment-line .text-btn{font-size:14px;min-height:44px}
 .results-footer{font-size:12px;flex-wrap:wrap}.results-footer strong{font-size:16px}
 .drawer-header{padding:16px}.drawer-body{padding:16px}.drawer-header h2{font-size:21px}.form-grid{grid-template-columns:minmax(0,1fr)}
 .form-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
[hidden]{display:none!important}
.profile-totals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:0}
.profile-totals dt{font-size:13px;color:#dfe9df;margin-bottom:6px}
.profile-totals dd{margin:0;font-weight:700;font-size:clamp(16px,4.4vw,23px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.profile-totals .profile-balance{grid-column:1/-1;border-top:1px solid #ffffff30;padding-top:16px}
.profile-balance dd{font-size:clamp(24px,7vw,36px)}
.profile-summary .small{line-height:1.6;margin:12px 0 0}
.profile-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:14px 0 18px}
.profile-tabs button{min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 8px;background:#f7f8f3;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.profile-tabs button.active{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:700}
.profile-tabs button:nth-child(n+3){font-size:13px;min-height:40px}
.profile-tabs button:focus-visible,.entry-mode input:focus-visible,.payment-history summary:focus-visible{outline:3px solid #b88536;outline-offset:3px}
.entry-amounts{display:grid;gap:9px;margin:16px 0}
.entry-amounts>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.entry-amounts dt{color:var(--muted);font-size:13px}.entry-amounts dd{margin:0;font-weight:650;font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.entry-amounts>div:last-child{border-top:1px solid var(--line);padding-top:9px}.entry-amounts>div:last-child dd{color:var(--ink);font-size:19px}
.payment-history{margin-top:14px}.payment-history summary,.future-box summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-size:14px}
.void-entry-action{margin-top:10px;min-height:44px}.profile-empty{padding:24px 12px;text-align:center;color:var(--muted);line-height:1.7}.profile-empty h3{color:var(--ink);font-size:17px}
.new-position{outline:2px solid #718976;outline-offset:2px}
.entry-mode{border:0;padding:0;display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.entry-mode legend{font-size:14px;font-weight:600;margin-bottom:10px}.entry-mode label{display:flex;gap:8px;align-items:center;min-height:46px;flex:1 1 150px;border:1px solid var(--line);border-radius:9px;padding:10px;font-size:14px}.entry-mode label:has(input:checked){background:#eef3eb;border-color:#718976}.entry-mode input{width:18px;height:18px;accent-color:var(--ink)}
