:root{font-family:"Segoe UI",Arial,sans-serif;color:#302a35;background:#f7f5f4;font-synthesis:none;--accent:#ad3559;--muted:#79717c;--border:#eee8ec}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,select{font:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #a84c79;outline-offset:5px}
button{color:inherit}
.shell{max-width:1240px;margin:auto;padding:0 52px}
.app-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e1e5}
.brand{display:flex;align-items:center;gap:12px;color:#302a35;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-.9px}
.brand-mark{position:relative;display:grid;place-items:center;width:34px;height:38px;background:#a63256;color:white;border-radius:12px 12px 12px 4px;font-size:30px;font-weight:500;padding-bottom:7px}
.brand-mark span{position:absolute;right:6px;bottom:7px;width:4px;height:4px;background:#f7b3aa;border-radius:50%}
.prototype-label{font-size:9px;font-weight:650;letter-spacing:1.3px;color:var(--muted);padding:5px 7px;margin-left:3px;border:1px solid #e0d8dd;border-radius:4px}
.brand .prototype-label{display:inline-block;letter-spacing:.4px;font-size:10px;white-space:nowrap}
.demo-badge{display:flex;align-items:center;gap:7px;background:#f2e9d9;border:1px solid #e8d9bd;border-radius:20px;padding:7px 12px;font-size:12px;color:#77603b}
.demo-badge>span:first-child{height:6px;width:6px;background:#b98c41;border-radius:50%}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:56px 0 30px}
.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);margin:0 0 12px}
h1{font-size:40px;letter-spacing:-1.5px;font-weight:600;margin:0;line-height:1.2}
.heading-dot{color:var(--accent)}
.page-description{margin:12px 0 0;color:var(--muted);font-size:15px}
.dataset-control{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted);font-weight:600}
select{background:#fff;border:1px solid #ded6dc;border-radius:8px;padding:10px 34px 10px 12px;min-width:190px;color:#453b48;font-size:13px;cursor:pointer}
.spending-card{background:#fff;border:1px solid #e8e1e6;border-radius:18px;box-shadow:0 12px 40px #39213404;overflow:hidden}
.card-header{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 32px;border-bottom:1px solid var(--border)}
.breadcrumbs{display:flex;align-items:center;gap:13px;font-size:13px;flex-wrap:wrap}
.breadcrumbs h2{font-size:13px;font-weight:650;margin:0}
.breadcrumbs>span{color:#c5bac4}
.breadcrumbs button{border:0;background:none;padding:4px 0;color:var(--muted)}
.breadcrumbs button:hover{color:var(--accent)}
.back-button{font-size:12px;border:1px solid #e7dee4;border-radius:7px;background:#fff;padding:8px 11px;white-space:nowrap}
.back-button span{margin-right:5px}
.back-button:hover{background:#faf5f7}
.chart-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:45px;padding:32px 54px 42px;align-items:center;min-height:465px}
.chart-stage{text-align:center;min-width:0}
.donut-wrap{position:relative;width:100%;max-width:355px;margin:0 auto}
.donut{width:100%;display:block;overflow:visible}
.ring-track{stroke:#f2edf0;stroke-width:40;fill:none}
.donut-segment{fill:none;stroke-width:40;cursor:pointer;transition:stroke-width .18s,filter .18s}
.donut-segment:hover,.donut-segment:focus-visible{stroke-width:47;filter:brightness(1.04);outline:none}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;gap:8px}
.donut-center>span:first-child{color:var(--muted);font-size:12px}
.donut-center strong{font-size:43px;line-height:1.15;font-weight:600;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.center-currency{font-size:10px;letter-spacing:2px;color:#9b929c}
.period-label{margin:3px 0 9px;font-size:15px;font-weight:600;letter-spacing:-.2px}
.chart-hint{font-size:11px;color:#8b818d;margin:0;line-height:1.6}
.breakdown-panel{padding-top:9px;min-width:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 18px;border-bottom:1px solid var(--border)}
.section-heading h3{font-size:13px;font-weight:600;margin:0}
.section-heading>span{font-size:9px;color:#958a97;letter-spacing:1.1px}
.category-list{margin:6px 0 0}
.category-button{width:100%;display:flex;align-items:center;gap:13px;border:0;border-bottom:1px solid var(--border);background:#fff;text-align:left;padding:20px 2px;transition:background .15s}
.category-button:hover{background:#fcf7f9}
.swatch{width:11px;height:11px;flex-shrink:0;border-radius:4px;background:var(--swatch)}
.swatch.hatched{background:repeating-linear-gradient(130deg,#b1a8b3 0 1px,#e3e0e3 1px 4px)}
.category-name{font-size:14px;font-weight:550;flex:1}
.category-value{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.category-arrow{margin-left:9px;color:#a99aab;font-size:19px}
.view-note{background:#faf7f9;border:1px solid #f0e8ee;border-radius:9px;padding:14px 15px;margin:24px 0;color:#887589;font-size:12px;line-height:1.7}
.view-note strong{display:block;color:#675268;font-size:12px;font-weight:600;margin-bottom:3px}
.total-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:18px;font-size:12px;color:#766b79}
.total-row strong{font-size:19px;color:#3a2f40;font-weight:600;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.purchase-count{font-size:11px;color:#9a8e9c;text-align:right;margin:8px 0 0}
.card-footer{display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--border);padding:15px;font-size:10px;color:#8c818d;letter-spacing:.2px;background:#fdfcfd}
.local-dot{width:5px;height:5px;border-radius:50%;background:#8b9f8f}
.footer-separator{color:#d4cbd3;margin:0 5px}
.demo-disclosure{font-size:11px;line-height:1.9;color:#948997;max-width:640px;margin:23px auto;text-align:center}
.demo-disclosure strong{font-weight:550;color:#79697e}
.page-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #e9e1e6;margin:54px 0 0;padding:22px 0 26px;font-size:10px;color:#a093a3}
.page-footer>span:first-child{font-weight:600;color:#8b7b90}
.empty-state{text-align:center;min-height:465px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px}
.empty-state h3{font-size:24px;letter-spacing:-.6px;font-weight:600;margin:20px 0 10px}
.empty-state p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 24px}
.primary-button{border:1px solid #a63256;background:#a63256;color:white;border-radius:8px;padding:11px 17px;font-size:12px;font-weight:550;display:inline-flex;gap:12px;align-items:center;justify-content:center}
.primary-button:hover{background:#8e2447}
.empty-total{color:#928593;font-size:11px;margin-top:20px}
dialog{padding:0;border:1px solid #e9dfe6;border-radius:16px;max-width:880px;width:calc(100% - 64px);color:#302a35;box-shadow:0 25px 100px #2b17362b}
dialog::backdrop{background:#24192955}
.dialog-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:28px 32px 22px;border-bottom:1px solid var(--border)}
.dialog-header .eyebrow{margin-bottom:9px}
.dialog-header h2{font-size:27px;font-weight:600;letter-spacing:-.7px;margin:0}
.dialog-header p:last-child{font-size:12px;line-height:1.7;color:var(--muted);margin:9px 0 0}
.close-button{font-size:25px;line-height:1;border:1px solid #e7dfe5;border-radius:7px;width:32px;height:32px;background:white;color:#85778a;flex-shrink:0}
.table-scroll{max-height:48vh;overflow:auto}
table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}
th{font-size:9px;letter-spacing:.8px;font-weight:600;color:#8b7d90;background:#fcf9fb;position:sticky;top:0}
th,td{padding:16px 20px;border-bottom:1px solid var(--border)}
th:first-child,td:first-child{padding-left:32px}
th:last-child,td:last-child{padding-right:32px;text-align:right}
td{color:#65576a}
td strong{font-weight:600;color:#3d3043}
.purchase-id{font-size:10px;letter-spacing:.2px;color:#a08fa6}
.money-cell{font-variant-numeric:tabular-nums}
.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 32px;font-size:11px;color:#928298}
.dialog-footer>div{display:flex;align-items:center;gap:20px}
.dialog-footer strong{font-size:21px;color:#44314c;font-weight:600;letter-spacing:-.5px}
.dialog-actions{padding:0 32px 26px;display:flex;justify-content:flex-end}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.noscript{padding:24px;text-align:center;color:#8e2447}
@media(min-width:1500px){.shell{max-width:1320px}.page-heading{margin-top:68px}.chart-layout{padding:40px 72px 48px;gap:75px}.donut-wrap{max-width:375px}}
@media(max-width:900px){.shell{padding:0 28px}.chart-layout{gap:25px;padding:30px}.donut-center strong{font-size:35px}.page-heading{margin-top:36px}h1{font-size:34px}.prototype-label{display:none}}
@media(max-width:640px){.shell{padding:0 18px}.app-header{height:80px}.brand{font-size:20px}.page-heading{align-items:flex-start;flex-direction:column;gap:23px;margin:30px 0 22px}h1{font-size:31px}.dataset-control{flex-direction:row;align-items:center;width:100%;justify-content:space-between}.chart-layout{grid-template-columns:1fr;padding:20px 25px 28px;gap:24px}.donut-wrap{max-width:305px}.donut-center strong{font-size:40px}.card-header{padding:18px 22px;min-height:72px;align-items:flex-start;flex-direction:column;gap:10px}.back-button{padding:6px 9px}.breakdown-panel{padding-top:0}.view-note{margin:18px 0}.page-footer{margin-top:35px;font-size:9px}.demo-disclosure{font-size:10px}dialog{width:calc(100% - 24px)}.dialog-header{padding:22px}.dialog-footer{padding:20px 22px}.dialog-actions{padding:0 22px 22px}.dialog-footer{align-items:flex-start;flex-direction:column;gap:10px}.dialog-footer>div{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Manual practice flow: the approved chart remains the main view. */
.brand{border:0;background:none;padding:0}
.page-tools{display:flex;align-items:flex-end;gap:13px}
.page-tools .primary-button{min-height:40px}
.session-notice{padding:12px 16px;border:1px solid #e9ddc7;border-radius:9px;background:#faf6ed;color:#87704b;font-size:11px;line-height:1.7;margin-bottom:18px}
.session-notice strong{font-weight:650}
.practice-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px;font-size:12px;color:var(--muted)}
.practice-toolbar{flex-wrap:wrap}
.month-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.practice-toolbar label{display:flex;align-items:center;gap:10px}
.practice-toolbar input{font:inherit;padding:7px 10px;border:1px solid #e3dae0;background:#fff;border-radius:7px;color:#59475e}
.text-button{border:0;background:none;padding:6px;color:#99627d;font-size:12px;text-decoration:underline;text-underline-offset:3px}
button:disabled{cursor:default;opacity:.5}
.drafts-panel{border:1px solid #e4d9e2;background:#fcf9fb;border-radius:11px;padding:15px 18px;margin:0 0 20px}
.drafts-panel>div:first-child{display:flex;gap:12px;align-items:center;font-size:12px;margin-bottom:10px}
.drafts-panel>div:first-child span{font-size:10px;color:var(--muted)}
#drafts-list{display:flex;gap:10px;flex-wrap:wrap}
.draft-button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:210px;border:1px solid #e7dce4;background:white;border-radius:8px;padding:10px 13px}
.draft-button strong{font-weight:550;font-size:12px}
.draft-button span{color:#96849b;font-size:10px}
.inconsistent-view{padding:55px 12px;font-size:13px;line-height:1.8;color:#87717d}
.empty-state .primary-button{margin:4px}
.empty-state #load-sample{background:white;color:#9d3656}
.entry-dialog{width:calc(100% - 40px);max-width:1030px;height:min(830px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);overflow:visible}
.entry-frame{height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden;border-radius:16px;background:white}
.entry-dialog .dialog-header{padding:24px 30px 18px}
.entry-dialog .dialog-header h2{font-size:25px}
.entry-dialog .dialog-header p:last-child{font-size:11px}
.step-progress{list-style:none;counter-reset:step;display:flex;justify-content:space-between;margin:0;padding:17px 30px;border-bottom:1px solid var(--border);gap:8px}
.step-progress li{counter-increment:step;display:flex;align-items:center;gap:8px;color:#a396a6;font-size:11px}
.step-progress li::before{content:counter(step);display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid #e5dce3;font-size:10px;background:#faf7f9}
.step-progress li.current{color:#a63256;font-weight:650}
.step-progress li.current::before{background:#a63256;color:white;border-color:#a63256}
.step-progress li.complete::before{background:#f3e1e9;color:#a63256;border-color:#edd3df}
.entry-session-note{font-size:10px;line-height:1.7;color:#8a7552;background:#fcf8ef;padding:10px 30px;margin:0;border-bottom:1px solid #f1e6d4}
.entry-body{padding:25px 30px;overflow:auto;overscroll-behavior:contain}
.entry-step{animation:step-in .18s ease-out}
@keyframes step-in{from{opacity:.25;transform:translateX(9px)}to{opacity:1;transform:translateX(0)}}
.step-intro{font-size:15px;font-weight:550;margin:0 0 19px;color:#57425e}
.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:27px}
.choice{border:1px solid #e9e0e7;background:#fff;border-radius:13px;min-height:185px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding:24px 21px}
.choice:hover{background:#fcf9fb;border-color:#d6bdce}
.choice.selected{border:1.5px solid #b65a7b;background:#fcf5f8;box-shadow:0 4px 12px #9e295306}
.choice strong{font-size:17px;font-weight:600}
.choice>span:not(.choice-icon){color:#95849b;font-size:11px;line-height:1.6}
.choice small{font-size:10px;color:#ae8da2;margin-top:auto}
.choice.selected small{color:#a63256}
.choice-icon{font-size:23px;line-height:1;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#f1e9ef;color:#a58baa}
.choice-icon.payment-icon{background:#f3dce7;color:#ac365f}
.choice-icon.income-icon{background:#e6f0e9;color:#6a9175}
.choice-icon.transfer-icon{background:#f7efda;color:#b39b4c}
.purchase-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 22px;margin-top:24px}
.purchase-fields label{font-size:12px;font-weight:600;color:#5e4966;display:flex;flex-direction:column;gap:9px}
.required-hint{font-size:9px;color:#a18da6;font-weight:400}
.purchase-fields input,.purchase-fields select{width:100%;min-width:0;font:inherit;font-weight:400;font-size:14px;padding:12px;border:1px solid #dfd3dd;border-radius:8px;background:#fff;color:#46354d}
.field-help{font-size:11px;line-height:1.8;color:#9a899f;margin:14px 0}
.entry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e9e0e6;padding:17px 30px;background:#fdfbfc;position:relative}
.entry-actions>div{display:flex;gap:9px}
.entry-actions>span{font-size:10px;color:#a08ba5}
.entry-actions .back-button,.entry-actions .primary-button{min-height:38px}
.items-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.items-heading .step-intro{margin-bottom:6px}
.items-heading .field-help{margin:0 0 14px}
.items-heading>button{flex-shrink:0}
.items-viewport{max-height:265px;min-height:120px;overflow:auto;overscroll-behavior:contain;border:1px solid #e8dfe6;border-radius:10px;box-shadow:inset 0 -12px 14px -16px #b5a4b4}
.entry-items{min-width:760px;table-layout:fixed}
.entry-items th,.entry-items td{padding:10px 7px}
.entry-items th:first-child,.entry-items td:first-child{padding-left:12px;width:88px}
.entry-items th:nth-child(2){width:230px}
.entry-items th:nth-child(3){width:125px}
.entry-items th:nth-child(4){width:210px}
.entry-items th:last-child,.entry-items td:last-child{padding-right:9px;width:45px}
.entry-items input{min-width:0;width:100%;font:inherit;font-size:12px;padding:10px 8px;border:1px solid #e8e0e7;border-radius:6px;background:#fff;color:#5f4569}
.entry-items input[role=combobox]{background:#f4eaf2;border-color:#eadbe6;border-radius:15px;font-size:11px;color:#955881}
.entry-items input.special-category{background:#f3eee2;color:#9b8144}
.remove-item{border:0;background:#faf5f8;border-radius:5px;color:#a88799;width:26px;height:29px;font-size:19px}
.items-summary{font-size:11px;line-height:1.8;background:#faf7fa;border:1px solid #eee5ec;border-radius:8px;padding:12px 14px;color:#816389;margin:14px 0}
.future-actions{display:flex;align-items:center;justify-content:center;gap:14px;font-size:11px;color:#a090a4;padding:3px 0}
.category-options{z-index:5;background:white;border:1px solid #decede;border-radius:9px;box-shadow:0 8px 30px #40244824;overflow:auto;position:fixed;padding:4px}
.category-options button{display:block;text-align:left;border:0;background:white;padding:9px 11px;width:100%;border-radius:5px;font-size:11px;color:#72577a}
.category-options button[aria-selected=true],.category-options button:hover{background:#f3e5ee;color:#963863}
.category-options p{font-size:11px;line-height:1.6;margin:9px;color:#8b7a90}
.entry-errors{background:#fff3f3;border:1px solid #eed9dd;border-radius:8px;padding:10px 14px;margin-bottom:18px;color:#9a3b52;font-size:12px;line-height:1.7}
.entry-errors p{margin:3px 0}
[aria-invalid=true]{border-color:#c16b80!important}
.review-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.review-fact{display:flex;flex-direction:column;gap:7px;border:1px solid #eee5ed;border-radius:8px;padding:13px 14px;background:#fdfbfc}
.review-fact>span{font-size:10px;color:#a08aa7}
.review-fact strong{font-size:12px;font-weight:550;color:#63456e;overflow-wrap:anywhere}
.review-fact:nth-last-child(2){background:#f8ecf2;border-color:#ebcfdf}
.review-fact:nth-last-child(2) strong{font-size:21px;color:#a12e58}
.review-note{font-size:11px;line-height:1.8;color:#8e7b84;margin:15px 0;background:#faf7f4;border-radius:7px;padding:10px 13px}
.review-table-scroll{overflow:auto;max-height:190px;border:1px solid #eee5ec;border-radius:8px}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#fff2df;border:1px solid #e9cea7;border-radius:9px;box-shadow:0 4px 20px #5c351017;color:#946526;font-size:12px;line-height:1.6;padding:13px 20px;max-width:min(620px,calc(100vw - 35px));width:max-content;z-index:20}
.common-intro{text-align:center;margin:9px 0 30px}
.purchase-fields.common-fields{grid-template-columns:repeat(3,minmax(0,1fr));max-width:820px;margin:0 auto;gap:22px}
.common-help{max-width:720px;text-align:center;margin:23px auto}
.supermarket-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.choice.supermarket-choice{min-height:150px;gap:8px;padding:18px 20px;border-color:#e7e0e6;border-top:3px solid var(--brand-color)}
.choice.supermarket-choice:hover{border-color:var(--brand-color);background:var(--brand-background)}
.choice.supermarket-choice.selected{border-color:var(--brand-color);background:var(--brand-background);box-shadow:0 3px 12px #30203007}
.choice.supermarket-choice .supermarket-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:10px;font-size:25px;font-weight:750;line-height:1;letter-spacing:-1px}
.supermarket-choice strong{font-size:16px}
.choice.supermarket-choice .supermarket-description{font-size:10px;color:#8c7b91}
.supermarket-choice.selected small{color:var(--brand-color)}
.other-merchant-field{max-width:500px;margin:23px auto 0}
.other-merchant-field label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:#654c6c}
.other-merchant-field input{font:inherit;font-size:14px;font-weight:400;padding:12px;border:1px solid #dfd3dd;border-radius:8px;color:#4c3554}
.unavailable-category-panel{max-width:560px;margin:25px auto;text-align:center;font-size:13px;line-height:1.9;color:#8c7c93}
.unavailable-category-panel .choice-icon{margin:0 auto 16px}
.unavailable-category-panel h3{font-size:20px;letter-spacing:-.3px;font-weight:600;color:#6e5478}
.category-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid;border-radius:15px;padding:5px 9px;font-size:10px;line-height:1.4;white-space:nowrap}
.category-tag::before,.category-options button::before,.subcategory-heading::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--category-color);flex-shrink:0}
.category-options button{display:flex;align-items:center;gap:9px}
.subcategory-heading::before{width:11px;height:11px;margin-right:10px;vertical-align:middle}
@media(max-width:800px){.page-tools{flex-direction:column;align-items:stretch}.choice-grid{gap:10px}.choice{padding:18px 14px}.entry-dialog{width:calc(100% - 20px)}.review-facts{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.page-tools{width:100%;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:10px}.page-tools .dataset-control{width:auto;flex-direction:column;align-items:flex-start;gap:6px}.page-tools select{min-width:0;max-width:175px}.page-tools .primary-button{font-size:11px;padding:11px 12px}.entry-dialog{height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}.entry-dialog .dialog-header,.entry-body{padding:19px}.entry-dialog .dialog-header h2{font-size:21px}.entry-session-note{padding:9px 19px}.step-progress{padding:12px 19px;gap:3px}.step-progress li{font-size:9px;gap:4px}.step-progress li::before{width:18px;height:18px;font-size:9px}.entry-actions{padding:12px 16px;gap:6px}.entry-actions>span{display:none}.entry-actions>div{gap:5px}.entry-actions .primary-button,.entry-actions .back-button{font-size:10px;padding:9px 10px}.choice-grid{grid-template-columns:1fr;gap:10px;margin-top:12px}.choice{min-height:94px;display:grid;grid-template-columns:36px 1fr auto;padding:13px;gap:5px 10px}.choice-icon{grid-row:1/3}.choice>span:not(.choice-icon){grid-column:2;grid-row:2}.choice small{grid-column:3;grid-row:1/3;margin:0}.purchase-fields{gap:18px 12px}.future-actions{flex-wrap:wrap}.review-facts{gap:8px}.review-fact{padding:10px}.items-heading{align-items:center}}
@media(max-width:640px){.purchase-fields.common-fields{grid-template-columns:1fr;max-width:390px;gap:17px}.common-intro{margin-bottom:22px}.supermarket-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choice.supermarket-choice{display:flex;min-height:142px;padding:15px;gap:7px}.step-progress li{flex-direction:column;flex:1;gap:5px;font-size:8px}.other-merchant-field{margin-top:18px}}
@media(max-width:640px){.app-header{height:auto;min-height:80px;flex-wrap:wrap;gap:12px;padding:20px 0}.brand{gap:8px}.brand .prototype-label{font-size:9px}}

/* Three complete months, with half-width neighbouring previews. */
.months-view{padding:29px 32px 25px;min-height:465px}
.months-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.months-heading .eyebrow{margin-bottom:8px}
.months-heading h3{font-size:22px;font-weight:550;letter-spacing:-.6px;margin:0}
.year-heading{text-align:center;margin:18px 0 0}
.year-button{border:0;background:transparent;padding:5px 12px;color:#453449;font-size:20px}
.year-button>span:last-child{font-size:14px;color:var(--muted);margin-left:8px}
.year-scale{font-size:10px;color:var(--muted);margin:3px 0}
.carousel-layout{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:8px;align-items:center}
.carousel-arrow{width:34px;height:34px;border:1px solid #e8dce4;background:#fff;border-radius:50%;font-size:17px;color:#96617b}
.carousel-arrow:hover{background:#fcf5f8}
.carousel-arrow:disabled{visibility:hidden}
.month-viewport{overflow:hidden;padding:44px 0 12px}
.month-track{width:100%;display:flex;transition:transform 360ms cubic-bezier(.22,.61,.36,1)}
.month-column{flex:0 0 25%;min-width:0;border:0;border-radius:6px;background:transparent;padding:0 12px;text-align:center;opacity:1;transition:opacity 250ms;color:#4d3f52}
.month-column:focus-visible{outline-offset:-3px}
.month-plot{height:215px;position:relative;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #dfd4dc;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f5f0f3 calc(25% - 1px),#f5f0f3 25%)}
.month-bar{display:block;width:48%;max-width:90px;min-height:3px;border-radius:7px 7px 0 0;background:linear-gradient(0deg,#a6375b,#cf7997);transition:filter 160ms}
.month-column:hover .month-bar,.month-column:focus-visible .month-bar{filter:brightness(1.08)}
.month-value{position:absolute;left:50%;top:-34px;transform:translateX(-50%);width:max-content;max-width:170px;padding:6px 9px;border:1px solid #eadfe7;background:#fff;border-radius:7px;box-shadow:0 3px 12px #3921340d;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;opacity:0;pointer-events:none;z-index:2}
.month-column:hover .month-value,.month-column:focus .month-value{opacity:1}
.month-name{display:block;margin-top:13px;font-size:13px;font-weight:600}
.month-status{display:block;min-height:28px;margin-top:5px;font-size:9px;line-height:1.5;color:#8b7b8c}
.month-column.future-month{color:#96909b;cursor:default}
.future-month .month-bar{height:100%;min-height:0;border:1px dashed #d0cad3;background:repeating-linear-gradient(135deg,#f2f0f3 0 4px,#eae7ed 4px 5px);opacity:.55}
.month-column.month-preview{opacity:.28;pointer-events:none}
.month-column.month-offscreen{opacity:0;pointer-events:none}
.month-range{text-align:center;font-size:11px;color:#775f78;margin:4px 0 12px}
.history-hint{text-align:center;color:#948697;font-size:10px;line-height:1.8;margin:0}
.year-dialog{max-width:440px}
.year-content{padding:10px 30px 30px}
.recorded-years{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 24px}
.recorded-years [aria-pressed="true"]{border-color:#b35c7c;background:#fbf0f5;color:#963557}
#year-form label{display:block;font-size:12px;color:#77637b;margin-bottom:8px}
.year-input-row{display:flex;gap:10px}
.year-input-row input{min-width:0;width:100%;font:inherit;padding:8px 11px;border:1px solid #e2d7e0;border-radius:7px;color:#56425d}
.year-input-row button{white-space:nowrap}
@media(max-width:640px){.months-view{padding:23px 14px}.months-heading h3{font-size:18px}.months-heading .eyebrow{font-size:8px}.carousel-layout{grid-template-columns:26px minmax(0,1fr) 26px;gap:0}.carousel-arrow{height:26px;width:26px}.month-column{padding:0 3px}.month-name{font-size:10px;letter-spacing:-.3px}.month-status{font-size:8px;min-height:36px}.month-plot{height:185px}.month-value{font-size:9px;max-width:110px}.year-scale{font-size:9px}.months-heading .back-button{font-size:10px;padding:7px}.month-range{font-size:10px}}
@media(prefers-reduced-motion:reduce){.month-track,.month-column{transition:none}}

/* Local settings use the same calm surfaces and native modal focus containment. */
.header-actions{display:flex;align-items:center;gap:17px}
.settings-button{height:36px;width:38px;display:grid;place-items:center;background:#fff;border:1px solid #e4dce2;border-radius:9px}
.hamburger{display:flex;flex-direction:column;gap:4px;width:17px}.hamburger>span{height:2px;width:100%;background:#796479;border-radius:2px}
.configuration-status{position:fixed;z-index:10000;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f7f5f4f5;padding:30px;text-align:center;font-size:16px;color:#49384f}
.configuration-status p{font-size:13px;line-height:1.8;max-width:620px;color:#796b7d}
.settings-dialog{width:min(560px,calc(100% - 28px));height:min(780px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden;background:#f8f6f8}
.settings-frame{height:100%;display:flex;flex-direction:column}
.settings-header{display:flex;align-items:center;gap:13px;padding:23px 25px;background:#fff;border-bottom:1px solid var(--border);flex-shrink:0}
.settings-header h2{font-size:22px;letter-spacing:-.5px;font-weight:600;margin:0;flex:1}.settings-header .back-button{font-size:10px;padding:6px 9px}
.settings-scroll{padding:22px 25px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
.settings-footer{flex-shrink:0;border-top:1px solid var(--border);padding:14px 23px;font-size:10px;line-height:1.6;color:#8b798f;background:#fff}.settings-footer p{font-size:11px;color:#8d673c;background:#fff5e5;border:1px solid #eddbb8;border-radius:7px;padding:10px;margin:9px 0 0}
.future-profile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 0 34px}.future-profile strong{font-size:17px;font-weight:550}.future-profile>span:last-child{font-size:11px;color:var(--muted)}
.neutral-avatar{height:74px;width:74px;display:grid;place-items:center;border-radius:50%;background:#eae5eb;color:#b1a5b5;font-size:47px;font-weight:300}
.settings-group,.settings-navigation{background:#fff;border:1px solid #e8e1e7;border-radius:10px}
.settings-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:17px 18px;text-align:left;font-size:13px}.settings-navigation:hover{background:#fcf9fc}.settings-navigation>span:last-child{color:#a493a9}.settings-navigation small{font-size:10px;color:#a69aab}
.settings-group .settings-navigation{border:0;border-bottom:1px solid #eee8ee;border-radius:0}.settings-group .settings-navigation:first-child{border-radius:10px 10px 0 0}.settings-group .settings-navigation:last-child{border:0;border-radius:0 0 10px 10px}
.settings-section-title{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:#8e7c94;margin:27px 0 10px}.settings-unavailable{font-size:12px;background:#eeebef;border:1px solid #e5dfe8;border-radius:9px;color:#9a8b9f;padding:16px 18px;margin:0}
.subcategory-section-heading h3{font-size:17px;font-weight:600;margin:0 0 8px}.subcategory-section-heading p{font-size:11px;color:#938198;line-height:1.7;margin:0 0 16px}
.subcategory-settings-list{margin:16px 0}.subcategory-settings-row{display:flex;align-items:center;gap:11px;min-height:58px;padding:12px 13px;background:#fff;border:1px solid #ebe4eb;border-bottom:0}.subcategory-settings-row:first-child{border-radius:9px 9px 0 0}.subcategory-settings-row:last-child{border-bottom:1px solid #ebe4eb;border-radius:0 0 9px 9px}.subcategory-settings-row:only-child{border-radius:9px}
.settings-color-swatch{width:14px;height:14px;border-radius:5px;flex-shrink:0;border:1px solid #00000015}.settings-subcategory-name{flex:1;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.settings-row-actions{display:flex;gap:4px;flex-shrink:0}.settings-row-actions .text-button{font-size:10px;padding:4px}
.settings-reset-area{border-top:1px solid #e4dce5;margin-top:25px;padding-top:15px}.settings-reset-area .text-button{color:#a74565;padding-left:0}
.subcategory-dialog{width:min(440px,calc(100% - 30px));max-height:calc(100dvh - 35px);overflow:hidden;background:#fff}.subcategory-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 37px)}.subcategory-dialog .dialog-header{align-items:center;padding:20px 23px}.subcategory-dialog .dialog-header h2{font-size:21px}
.subcategory-form-content{padding:20px 23px;overflow:auto;min-height:0;overscroll-behavior:contain}.subcategory-form-content label{display:block;font-size:12px;color:#67516f;margin:0 0 7px}.subcategory-form-content input{font:inherit;font-size:13px;width:100%;min-width:0;border:1px solid #dfd3df;border-radius:7px;padding:10px;color:#4b3853;background:#fff}.subcategory-form-content input[aria-invalid="true"]{border-color:#c57c6c}.subcategory-form-content>input,.subcategory-color-row{margin-bottom:13px}.subcategory-form-content input:focus-visible{outline:2px solid #bd7b9d;outline-offset:2px}
.subcategory-color-row{display:flex;gap:10px}.subcategory-color-row input[type="color"]{width:47px;height:39px;padding:4px;flex-shrink:0}.subcategory-color-row input[type="text"]{flex:1}
.subcategory-form-content .field-help{font-size:10px;margin:0 0 17px;line-height:1.7}.settings-field-error{color:#a24d42;font-size:11px;line-height:1.7;margin:0 0 14px}.subcategory-preview{display:flex;align-items:center;gap:10px;padding:13px 14px;background:#faf7fa;border:1px solid #ebe1e9;border-radius:8px;font-size:13px;overflow-wrap:anywhere}.subcategory-preview>span:first-child{height:18px;width:18px;border-radius:6px;flex-shrink:0;border:1px solid #00000015}
.subcategory-form-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 23px;border-top:1px solid var(--border);background:#fff;flex-shrink:0}
#reset-name-conflicts input{margin-bottom:15px}
@media(max-width:640px){.header-actions{gap:9px}.settings-header{padding:18px}.settings-scroll{padding:18px}.settings-row-actions{flex-direction:column}.settings-subcategory-name{font-size:11px}.settings-dialog{height:calc(100dvh - 28px)}}
/* v0.7 account and recovery surfaces use the existing palette and native controls. */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at top, #f5e7ed, #faf8f9 65%); }
.login-card { width: min(100%, 440px); background: #fff; border: 1px solid #e9dfe4; border-radius: 24px; padding: 40px; box-shadow: 0 18px 70px #6524420c; display: grid; gap: 14px; }
.login-card h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.login-card p { margin: 0 0 12px; color: #786b76; }
.login-card label { font-weight: 650; font-size: 14px; }
.login-card input { min-width: 0; width: 100%; padding: 13px 14px; border: 1px solid #dcd1d8; border-radius: 10px; font: inherit; background: #fff; }
.login-card input:focus { outline: 3px solid #b6456526; border-color: #b64565; }
.login-card small { color: #837782; line-height: 1.6; }
.login-card .primary-button { margin: 8px 0; justify-content: center; }
.account-label { font-size: 13px; color: #81717f; }
.data-status { padding: 24px; background: #fff8ed; border-radius: 14px; margin: 16px 0; color: #71562f; }
.backup-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee6eb; padding: 18px 0; }
.backup-row span { display: grid; gap: 8px; min-width: 0; }
.backup-row strong { font-size: 13px; font-weight: 600; }
.backup-row small { overflow-wrap: anywhere; color: #82727f; font-size: 11px; }
.restore-confirmation { padding: 20px; background: #fff5ed; border: 1px solid #eed9c9; border-radius: 14px; margin-top: 20px; }
#details-more { display: block; margin: 14px auto; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .header-actions { flex-wrap: wrap; gap: 8px; } .login-card { padding: 28px; } }
.receipt-dialog{width:min(1140px,96vw);padding:0;border:1px solid #e2d8df;border-radius:18px;color:inherit}
.receipt-dialog .settings-frame{max-height:90vh}
.receipt-dialog .settings-scroll{max-height:65vh}
.receipt-drop{border:2px dashed #d5bac7;border-radius:14px;padding:24px;background:#fcf8fa;text-align:center}
.receipt-drop label{display:block;font-weight:650;margin-bottom:15px}.receipt-drop p{font-size:12px;color:var(--muted);line-height:1.6}
.receipt-products{min-width:760px;width:100%;border-collapse:collapse}.receipt-products td{padding:12px 10px;vertical-align:top;border-bottom:1px solid var(--border)}
.receipt-products td:first-child{max-width:260px}.receipt-products strong,.receipt-products small{display:block;overflow-wrap:anywhere}.receipt-products small{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px}
.receipt-products input[type=text],.memory-row input,.memory-search{font:inherit;border:1px solid #d8cbd3;border-radius:8px;padding:10px;min-width:0;max-width:100%}
.receipt-products select{min-width:170px;max-width:220px}.receipt-products th{font-size:11px;text-align:left;color:var(--muted);padding:12px 10px}
.receipt-footer{display:flex;justify-content:space-between;gap:20px;padding:20px 24px;border-top:1px solid var(--border);background:#fff}
.import-ack{display:flex;align-items:flex-start;gap:12px;background:#fff6e9;border:1px solid #ebd7b9;border-radius:12px;padding:16px;font-size:13px;line-height:1.6;margin-top:16px}.import-ack input{margin-top:4px;flex-shrink:0}
.memory-row{display:grid;gap:12px;padding:20px 0;border-bottom:1px solid var(--border)}.memory-row strong{font-size:13px;overflow-wrap:anywhere}.memory-row small{color:var(--muted)}.memory-row>div{display:flex;gap:16px}
.future-profile img{border-radius:24px}.future-profile small{font-size:10px;color:var(--muted)}
.subcategory-cell input:focus{outline:3px solid color-mix(in srgb,var(--category-color) 30%,transparent);outline-offset:2px}
.category-options button[aria-selected=true],.category-options button:hover{background:var(--category-tint,#f3e5ee);color:var(--category-ink,#302a35);box-shadow:inset 0 0 0 1px var(--category-color,#a63256)}
.subcategory-cell input:focus{box-shadow:0 0 0 1px var(--category-color),0 0 0 4px #665469}
.category-options button[aria-selected=true]::after{content:"✓";margin-left:auto;color:#302a35}
.category-options button::before,.category-tag::before{box-shadow:0 0 0 1px #d4cbd2}
.payment-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px;margin:24px auto}
.payment-entry-grid .choice-icon{font-size:14px;letter-spacing:.4px}
@media(max-width:580px){.payment-entry-grid{grid-template-columns:1fr}}

/* v1.0: the left third is reserved for Transfers; no fictitious transfers. */
.transaction-bars{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 13%}
.movement-lane{position:relative;display:block;height:100%}
.transaction-bars .month-bar{position:absolute;width:100%;max-width:none;min-height:0}
.income-bar{bottom:50%;background:linear-gradient(0deg,#3f725e,#87ab91)}
.payment-bar{top:50%;background:linear-gradient(180deg,#a6375b,#cf7997);border-radius:0 0 7px 7px}
.month-plot:has(.transaction-bars){background:linear-gradient(transparent calc(50% - .5px),#d9cdd6 calc(50% - .5px),#d9cdd6 calc(50% + .5px),transparent calc(50% + .5px));border-bottom:0}
.future-month .transaction-bars .month-bar{border:0;background:none;height:0}
.history-legend{display:flex;justify-content:center;gap:22px;font-size:10px;margin-top:24px}
.income-key{color:#3f725e}.payment-key{color:#a6375b}.transfer-key{color:#9b843e;opacity:.6}
.simple-fields{max-width:680px;margin:30px auto;grid-template-columns:repeat(2,minmax(0,1fr))}
.simple-fields input,.simple-fields select,.simple-note-field textarea{display:block;width:100%;margin-top:9px;border:1px solid #dcd1da;border-radius:9px;padding:12px;background:#fff;font:inherit;color:#413747;box-sizing:border-box}
.simple-note-field{display:block;margin:0 0 24px;font-size:13px}.simple-note-field .required-hint{display:block}
.finance-views{display:flex;gap:12px}
@media(max-width:640px){.transaction-bars{gap:4px;padding:0 8%}.simple-fields{grid-template-columns:1fr}.history-legend{gap:10px;font-size:9px}.month-value{max-width:150px;white-space:normal}}

.future-month .transaction-bars .income-bar{background:repeating-linear-gradient(135deg,#68937b 0 4px,#b8ccbd 4px 6px)}
.future-month .transaction-bars .payment-bar{background:repeating-linear-gradient(135deg,#b66c86 0 4px,#e2bcca 4px 6px)}

.common-fields.income-fields{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}
@media(max-width:640px){.common-fields.income-fields{grid-template-columns:1fr}}

/* v1.0 review: quiet, shared controls inspired by the item category picker. */
.smart-select{display:inline-block;position:relative;width:100%;min-width:0}
.select-native{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}
.smart-select-trigger{--select-color:#806b85;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:43px;padding:11px 14px;border:1px solid #e3d9e2;border-radius:13px;background:linear-gradient(#fff,#fcfafc);color:#493c50;font:inherit;text-align:left;box-shadow:0 2px 5px #3c203307;cursor:pointer}
.smart-select-trigger:hover{border-color:#b6a0b4;background:#fff}.smart-select-trigger:focus-visible{outline:3px solid #b1749638;outline-offset:2px}
.smart-select-trigger[aria-expanded="true"]{border-color:#a57a97;box-shadow:0 0 0 3px #a57a9714}
.smart-select-trigger:disabled{opacity:.55;cursor:default}.smart-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-chevron{width:7px;height:7px;border-right:1.5px solid #927c97;border-bottom:1.5px solid #927c97;transform:rotate(45deg);margin:0 2px 4px 5px;flex-shrink:0}
.smart-select-menu{position:fixed;z-index:10000;max-height:270px;overflow:auto;padding:6px;border:1px solid #e8dfe7;border-radius:15px;background:#fffdff;box-shadow:0 14px 40px #37213a24;box-sizing:border-box}
.smart-select-option{display:block;width:100%;border:0;border-radius:9px;background:transparent;padding:10px 12px;color:#4a3d52;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.smart-select-option:hover,.smart-select-option:focus{background:#f0e8f0;outline:0}.smart-select-option[aria-selected="true"]{background:#f7f0f5;color:#8c4569;font-weight:600}
#simple-subcategory-control .smart-select-value{padding:3px 8px;border:1px solid var(--select-color);border-radius:7px;color:#493c50}
#entry-method-control,#simple-subcategory-control{margin:0}.dataset-control .smart-select{width:190px}
.navigation-pill{border-radius:22px;padding:11px 17px;background:linear-gradient(#fff,#f7f2f6);border-color:#eadfe7;box-shadow:0 2px 7px #3c203308}
.navigation-pill:hover{background:#f5edf3;border-color:#c7afc2}
.delete-dialog{width:min(520px,calc(100vw - 40px));border:0;border-radius:20px;padding:0;color:#46394e;box-shadow:0 25px 90px #2e183b35}
.delete-content{padding:0 28px 18px}.delete-impact{padding:14px 16px;background:#f6f0f4;border-radius:12px;font-variant-numeric:tabular-nums;font-weight:600}
.delete-transaction{margin-left:9px;color:#a84863}.danger-button{background:#a83f5d}.danger-button:hover{background:#92334e}
@media(max-width:640px){.dataset-control .smart-select{width:160px}.smart-select-menu{max-height:220px}}

.delete-dialog .dialog-actions{gap:12px}

/* Shared form controls occupy one aligned row, including custom selectors and dates. */
.purchase-fields input,.purchase-fields select{margin:0}
.purchase-fields input,.purchase-fields .smart-select-trigger,.purchase-fields .date-field{height:46px;min-height:46px;font-size:14px;font-weight:400;line-height:20px;box-sizing:border-box}
.purchase-fields .smart-select{display:block;line-height:0}.purchase-fields .smart-select-value{line-height:20px}
.purchase-fields .smart-select-trigger{padding:10px 12px}.purchase-fields label{justify-content:flex-start}
.date-field{position:relative;display:flex;width:100%;min-width:0;align-items:center}
.purchase-fields .date-field input{width:100%;padding-right:46px;font-family:inherit}
.date-field input::-webkit-calendar-picker-indicator{display:none}
.calendar-toggle{position:absolute;right:5px;top:5px;bottom:5px;width:36px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#826784;cursor:pointer}
.calendar-toggle:hover{background:#f2eaf1}.calendar-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5;pointer-events:none}
.calendar-popup{position:fixed;z-index:10001;width:300px;max-width:calc(100vw - 20px);border:1px solid #e6dbe4;border-radius:18px;background:#fffdff;box-shadow:0 10px 30px #37213a21;padding:15px;font-weight:400;color:#514054;font-size:12px;line-height:1.4;contain:layout paint}
.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.calendar-heading{font-size:13px;font-weight:650;text-align:center;margin:0}
.calendar-nav{border:0;border-radius:9px;width:30px;height:30px;background:#f5eff4;color:#7d5876;font:inherit;font-size:18px}
.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.calendar-weekdays span{text-align:center;color:#99869e;font-size:10px;padding-bottom:7px}
.calendar-day{height:32px;min-width:0;padding:0;border:1px solid transparent;border-radius:9px;font:inherit;background:transparent;color:#4e3d52;font-variant-numeric:tabular-nums}
.calendar-day:hover{background:#f1e7ee}.calendar-day[aria-current="date"]{border-color:#d6bdcc}.calendar-day[aria-selected="true"]{background:#a43d61;color:white;border-color:#a43d61}
.calendar-day:focus-visible{outline:2px solid #a43d61;outline-offset:0}.calendar-day:disabled{opacity:.3;cursor:default}
.calendar-footer{border-top:1px solid #eee5ec;margin-top:12px;padding-top:9px;display:flex;justify-content:space-between;align-items:center}.calendar-footer button{border:0;background:transparent;padding:5px;color:#8d486a;font:inherit}.calendar-footer small{font-size:9px;color:#a08ca3}
.color-field-label{display:block;font-size:12px;color:#67516f;margin-bottom:9px}.curated-color-picker{margin-bottom:12px}.color-families{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.color-family{border:1px solid #e6dce5;border-radius:10px;background:#fff;color:#6f5c75;font:inherit;font-size:9px;padding:8px 2px;display:grid;justify-items:center;gap:5px}.color-family::before{content:"";width:18px;height:18px;border-radius:6px;background:var(--palette-color)}.color-family[aria-pressed="true"]{border-color:#a77996;background:#f7f1f6}.color-shades{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 8px}.color-shade{height:33px;border:3px solid white;border-radius:10px;background:var(--palette-color);box-shadow:0 0 0 1px #e4d9e2;position:relative}.color-shade[aria-pressed="true"]{box-shadow:0 0 0 2px #a77996}.color-shade[aria-pressed="true"]::after{content:"✓";color:#fff;position:absolute;inset:0;display:grid;place-items:center;font-size:15px}.color-shade:disabled{opacity:.25}.color-selection{font-size:10px;line-height:1.5;color:#947c98;margin:0}.subcategory-dialog{width:min(470px,calc(100% - 30px))}

.page-tools .primary-button,.dataset-control .smart-select-trigger{height:43px;min-height:43px;box-sizing:border-box}

/* v1.1: six manual Payment categories reuse the existing cards and aligned fields. */
.payment-category-choice{min-height:154px;padding:18px;gap:8px}.payment-category-choice .choice-icon{font-size:23px}.settings-category-emoji{display:inline-block;width:29px;font-size:17px;vertical-align:middle}
#payment-category-choices{margin-top:12px}#settings-category-screen .settings-group{overflow:hidden}
@media(max-width:640px){.payment-category-choice{min-height:94px;padding:13px}}

/* v1.2: three transaction choices above two centred rule choices. */
.transaction-type-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:17px;margin-top:12px}.transaction-type-grid>.choice{grid-column:span 2;min-height:154px;padding:18px;gap:8px}.transaction-type-grid>.choice:nth-child(4){grid-column:2/span 2}.transaction-type-grid>.choice:nth-child(5){grid-column:4/span 2}
.transaction-actions{display:flex;align-items:center;gap:14px}.yet-to-pay{border:1px solid #e6d8df;border-radius:12px;background:#fcf8fa;padding:10px 14px;display:inline-flex;align-items:center;gap:13px;margin:10px auto 0;color:#946277;font:inherit}.yet-to-pay>span{font-size:10px}.yet-to-pay>strong{font-size:13px;font-weight:600}.quiet-status{font-size:11px;color:#957c90;line-height:1.6;margin:9px 0}.planned-swatch{background:repeating-linear-gradient(135deg,var(--swatch) 0 2px,#fff 2px 5px)!important;border:1px solid var(--swatch)}
.transaction-bars .pending-bar,.future-month .transaction-bars .pending-bar{background:repeating-linear-gradient(135deg,#a85d79 0 3px,#eddce4 3px 6px);border:1px solid #bd8fa4;border-radius:0 0 7px 7px}
.subscription-manager{width:min(940px,calc(100vw - 36px))}.subscription-manager-tools{display:flex;justify-content:space-between;gap:15px;align-items:center}.sub-tabs{display:flex;background:#eee7ed;border-radius:12px;padding:4px;gap:3px}.sub-tabs button{border:0;border-radius:9px;background:transparent;color:#8c758d;padding:9px 16px;font:inherit;font-size:12px}.sub-tabs button[aria-pressed="true"]{background:#fff;color:#8e3e61;box-shadow:0 2px 6px #4220370b}
.subscription-rule-group{margin:20px 0}.subscription-rule-group h3{font-size:14px;font-weight:600;margin-bottom:12px}.subscription-rule{border:1px solid #e7dfe6;border-radius:12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:16px 18px;margin:9px 0}.subscription-rule strong{font-size:14px;font-weight:600;display:block;color:#514153}.subscription-rule span{font-size:11px;color:#927e96;display:block;line-height:1.6}.subscription-rule-terms{text-align:right}.subscription-rule-dates{display:flex;gap:22px;flex-wrap:wrap}.subscription-rule-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center}.subscription-rule-actions button{font-size:10px;white-space:nowrap}
.sub-fields{max-width:820px;margin:0 auto 20px;grid-template-columns:repeat(3,minmax(0,1fr))}[data-sub-step="schedule"] .sub-fields{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}.subscription-editor .simple-note-field{max-width:650px;margin:25px auto 10px}.subscription-editor .field-help{max-width:760px;margin:18px auto}.sub-impact{max-height:230px;overflow:auto;border:1px solid #e9dfe6;border-radius:10px;margin-top:14px}.sub-impact table{width:100%;min-width:400px;font-size:12px}.sub-impact th,.sub-impact td{text-align:right;padding:11px 14px}.sub-impact th:first-child,.sub-impact td:first-child{text-align:left}.sub-impact th{position:sticky;top:0;background:#f7f0f5;font-size:10px}.sub-impact td{font-variant-numeric:tabular-nums}.sub-impact-title{font-size:14px;color:#644a68;margin:23px 0 4px}.overlap-confirm{display:flex;align-items:flex-start;gap:10px;background:#fff6e9;border:1px solid #edd5ad;border-radius:10px;padding:14px;font-size:12px;color:#8d6638;line-height:1.7;margin:20px 0}.overlap-confirm input{margin-top:4px;flex-shrink:0}.sub-stop-choices{display:flex;gap:12px;margin:25px 0;justify-content:center}.sub-stop-choices button{padding:14px 20px;border-radius:12px}.sub-stop-choices [aria-pressed="true"]{border-color:#aa6687;background:#f9f0f5;color:#8f3c60}.sub-count-field{display:flex;flex-direction:column;gap:10px;font-size:12px;max-width:260px;margin:20px auto}.sub-count-field input{padding:12px;border:1px solid #dfd3dd;border-radius:9px;font:inherit}.subscription-editor .step-progress{justify-content:space-around}#sub-category-control .smart-select-value{padding:3px 8px;border:1px solid var(--select-color);border-radius:7px}
@media(max-width:640px){.transaction-type-grid{gap:8px;grid-template-columns:repeat(6,minmax(0,1fr))}.transaction-type-grid>.choice{display:flex;min-height:146px;padding:12px 8px;gap:7px}.transaction-type-grid .choice strong{font-size:12px;letter-spacing:-.25px}.transaction-type-grid .choice .choice-icon{width:28px;height:28px;font-size:20px}.transaction-type-grid .choice>span:not(.choice-icon){font-size:9px;line-height:1.5}.transaction-type-grid .choice small{font-size:8px;margin-top:auto}.transaction-actions{gap:6px}.transaction-actions .text-button{font-size:10px}.subscription-manager-tools{flex-wrap:wrap}.subscription-rule{padding:13px;gap:10px}.subscription-rule-dates,.subscription-rule-actions{grid-column:1/-1;justify-content:flex-start;gap:9px}.sub-fields,[data-sub-step="schedule"] .sub-fields{grid-template-columns:1fr;max-width:400px}.yet-to-pay{gap:9px}.subscription-manager .settings-scroll{padding:18px}}

.subscription-manager .settings-header{display:flex;justify-content:space-between;align-items:flex-start}.subscription-manager .settings-header .eyebrow{margin-bottom:10px}
.subscription-editor .review-fact:nth-last-child(2){background:#fdfbfc;border-color:#eee5ed}.subscription-editor .review-fact:nth-last-child(2) strong{font-size:12px;color:#63456e}.subscription-editor .review-fact.charge-fact{background:#f8ecf2;border-color:#ebcfdf}.subscription-editor .review-fact.charge-fact strong{font-size:21px;color:#a12e58}

/* v1.2 review: quiet dashboard actions and centred subscription questions. */
.transaction-actions .navigation-pill{font-size:12px;white-space:nowrap;text-decoration:none;min-height:40px}
.subscription-editor [data-sub-step="identity"] .sub-fields,.subscription-editor [data-sub-step="charge"] .sub-fields{grid-template-columns:minmax(0,1fr);max-width:420px;gap:22px}
.subscription-editor [data-sub-step="identity"] .step-intro,.subscription-editor [data-sub-step="charge"] .step-intro{text-align:center;margin-bottom:28px}
.subscription-note-dialog{width:min(560px,calc(100vw - 36px));padding:0;border:1px solid #e7dfe6;border-radius:18px;color:#514153;box-shadow:0 18px 60px #39203824}
.subscription-note-dialog::backdrop{background:#2d202d65}
.subscription-note-dialog .dialog-header{padding:24px 28px;border-bottom:1px solid #eee5ed;align-items:flex-start}
.subscription-note-dialog h2{font-size:21px;overflow-wrap:anywhere}
.subscription-note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px;padding:24px 28px;color:#644a68}
.subscription-note-dialog .subscription-note-text{max-height:55vh;overflow:auto;min-height:120px}
#sub-review-note{margin:24px auto;max-width:650px;border:1px solid #eee5ed;border-radius:12px;background:#fdfbfc}
@media(max-width:640px){.transaction-actions{flex-wrap:wrap}.transaction-actions .navigation-pill{font-size:11px;padding:10px 13px}.subscription-editor [data-sub-step="identity"] .sub-fields,.subscription-editor [data-sub-step="charge"] .sub-fields{max-width:100%}}

/* v1.3: identity questions centred within their available scroll area. */
#sub-context{display:none}
#sub-body.sub-identity-active{display:flex;flex-direction:column;justify-content:center}
#sub-body.sub-identity-active [data-sub-step="identity"]{width:100%;flex-shrink:0}

.installment-manager{width:min(940px,calc(100vw - 36px))}.installment-manager .settings-header{display:flex;justify-content:space-between;align-items:flex-start}.installment-manager .settings-header .eyebrow{margin-bottom:10px}
.inst-fields{grid-template-columns:minmax(0,1fr);max-width:420px;gap:22px;margin:26px auto}.installment-editor .step-intro{text-align:center}.installment-editor .field-help{text-align:center;max-width:760px;margin:20px auto;line-height:1.7}.inst-source{text-align:center;border:1px solid #e9dfe6;border-radius:12px;padding:16px;background:#fdfbfc;max-width:600px;margin:20px auto;font-size:12px;color:#78647d;line-height:1.8}.inst-source strong{color:#514153;font-size:14px;display:block}
.inst-purchase-filter{width:fit-content;margin:22px auto}.inst-purchases{max-width:760px;margin:18px auto;max-height:360px;overflow:auto;padding:2px 5px 12px;mask-image:linear-gradient(to bottom,#000 96%,transparent)}.inst-purchase{border:1px solid #e7dfe6;background:#fff;border-radius:12px;padding:15px 18px;margin:9px 0;width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;font:inherit;gap:8px;color:#59455f;cursor:pointer}.inst-purchase:hover,.inst-purchase[aria-pressed="true"]{background:#faf3f7;border-color:#bd8da7}.inst-purchase span{font-size:11px;color:#8f7d94}.inst-purchase strong{font-size:14px;font-weight:600}.inst-purchase .inst-purchase-amount{font-variant-numeric:tabular-nums;color:#944363}.inst-same-day{border:1px solid #e5d6e0;border-radius:12px;padding:16px;background:#fcf8fb}.inst-same-day p{font-size:12px;margin:0 0 12px;line-height:1.7}.inst-same-day label{display:flex;align-items:center;gap:8px;font-size:12px;margin:10px 0;color:#6d576f}.inst-same-day input{width:auto!important;height:auto!important}.installment-editor .step-progress{justify-content:space-around}.installment-editor #inst-more,.installment-editor #inst-remove-plan{display:block;margin:20px auto}.installment-manager .inst-highlight{outline:2px solid #c6a1b8;outline-offset:3px}
@media(max-width:640px){.inst-fields{max-width:100%}.inst-purchases{max-height:320px}.inst-purchase-filter{max-width:100%;flex-wrap:wrap}.inst-purchase-filter button{padding:9px 11px}.installment-manager .settings-scroll{padding:18px}.transaction-actions{flex-wrap:wrap}}

.subscription-editor .entry-frame,.installment-editor .entry-frame{grid-template-rows:auto auto minmax(0,1fr) auto}

#sub-body.sub-identity-active{justify-content:safe center}
.inst-same-day label{flex-direction:row;justify-content:flex-start;line-height:1.6;gap:10px}
.inst-same-day input{min-height:0;padding:0;margin:0;accent-color:#a6375b;flex:0 0 auto}
.installment-editor .review-fact:nth-last-child(2){background:#fdfbfc;border-color:#eee5ed}.installment-editor .review-fact:nth-last-child(2) strong{font-size:12px;color:#63456e}
.installment-editor .review-fact.charge-fact{background:#f8ecf2;border-color:#ebcfdf}.installment-editor .review-fact.charge-fact strong{font-size:21px;color:#a12e58}

/* Mounted create flows retain the same modal and four-row editor layout. */
.entry-frame[hidden]{display:none}

/* Income keeps the existing quiet controls and one-window create flow. */
.income-kind-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.income-choice:hover,.income-choice:focus-visible{border-color:#648a72;box-shadow:0 0 0 3px #648a721c}
.income-rule-editor .entry-frame{grid-template-rows:auto auto minmax(0,1fr) auto}.earn-fields{max-width:420px;margin:28px auto;display:grid;gap:22px}.earn-fields>label,.earn-month-row>label{display:flex;flex-direction:column;gap:9px;color:#77607e;font-size:12px}.earn-fields input:not([type=radio]):not([type=checkbox]),.earn-fields textarea,.income-received-body input,.income-year-tools input{width:100%;box-sizing:border-box;border:1px solid #ded0df;border-radius:9px;padding:14px 12px;font:inherit;background:white;color:#514153;min-height:46px}.earn-fields textarea{resize:vertical}.earn-month-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:15px}.earn-fields .field-help{margin:0;font-size:11px;line-height:1.7}.earn-hours-choice{border:0;margin:0;padding:0;display:grid;gap:12px;color:#77607e;font-size:12px}.earn-hours-choice legend{padding:0;margin-bottom:12px}.earn-hours-choice label,.earn-limit-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}.earn-hours-choice input,.earn-limit-choice input{accent-color:#487b64}.income-manager{width:min(1040px,calc(100vw - 32px));height:min(850px,calc(100dvh - 36px));overflow:hidden;grid-template-rows:auto auto minmax(0,1fr)}.income-manager[open]{display:grid}.income-manager-tools{padding:8px 30px 20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #eee7ed}.income-new-actions{display:flex;gap:8px}.income-manager-content{overflow:auto;padding:22px 30px 28px}.income-year-tools{display:flex;gap:12px;align-items:flex-end;margin-bottom:18px}.income-year-tools label{display:grid;gap:6px;color:#806c87;font-size:11px}.income-year-tools input{max-width:120px;min-height:40px;padding:10px}.income-annual-summary{border:1px solid #dce8df;background:#f4f8f5;border-radius:14px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.income-annual-summary span,.income-annual-summary small{display:block;color:#788c7e;font-size:11px}.income-annual-summary strong{display:block;color:#3f6d52;font-size:19px;margin:8px 0}.income-annual-summary>div:first-child strong{font-size:27px}.income-month-heading{font-size:13px;color:#7c6685;font-weight:500;margin:27px 0 12px}.income-receipt{display:grid;grid-template-columns:minmax(150px,1fr) repeat(3,minmax(90px,auto)) auto;align-items:center;gap:17px;border:1px solid #e8dfe7;border-radius:12px;padding:17px 18px;margin-bottom:10px}.income-receipt strong{font-size:13px;color:#514153}.income-receipt span,.income-receipt small{display:block;color:#907e96;font-size:11px;line-height:1.7}.income-receipt>div:not(:first-child){text-align:right}.income-rule-tabs{max-width:280px;margin-bottom:15px}.income-received-dialog{width:min(480px,calc(100vw - 28px))}.income-received-body{padding:8px 30px 25px}.income-received-body>label{display:grid;gap:10px;color:#77607e;font-size:12px}.income-received-body p{font-size:12px;line-height:1.7;color:#806a89}.income-received-dialog .entry-actions{justify-content:space-between}.month-bar.pending-income-bar{background:repeating-linear-gradient(135deg,#4d7d6322 0 4px,#487b6480 4px 7px);border:1px solid #487b6470;box-sizing:border-box}
@media(max-width:800px){.income-receipt{grid-template-columns:minmax(120px,1fr) repeat(2,auto);gap:12px}.income-receipt>div:nth-child(4){grid-column:2}.income-receipt>button{grid-column:3}.income-annual-summary{flex-wrap:wrap}.income-manager-tools,.income-manager-content{padding-left:20px;padding-right:20px}}
@media(max-width:640px){.income-kind-grid{grid-template-columns:1fr}.income-manager-tools{padding-top:5px;gap:10px}.income-manager-tools .back-button,.income-manager-tools .sub-tabs button{font-size:10px;padding:8px}.income-annual-summary{padding:15px;gap:15px}.income-annual-summary>div:first-child{width:100%}.income-receipt{grid-template-columns:1fr 1fr}.income-receipt>div:first-child{grid-column:1/-1}.income-receipt>button{grid-column:1/-1;justify-self:end}.income-receipt>div:nth-child(4){grid-column:auto}.income-receipt>div:not(:first-child){text-align:left}.earn-fields{gap:18px;margin-top:18px}}

#earn-body.earn-centered{display:flex;flex-direction:column;justify-content:safe center}
#earn-body.earn-centered>section{width:100%;flex-shrink:0}
.transaction-bars .pending-income-bar,.future-month .transaction-bars .pending-income-bar{background:repeating-linear-gradient(135deg,#487b64 0 3px,#d9e8dc 3px 6px);border:1px solid #87ab91;border-radius:7px 7px 0 0;box-sizing:border-box;opacity:.85}

#earn-body.earn-centered .step-intro{text-align:center}

/* Email automation and original-receipt review, using the existing local visual language. */
.mail-connection-card{display:grid;gap:8px;background:#f8f3f6;border:1px solid #e8dce5;border-radius:13px;padding:18px;margin:20px 0}.mail-connection-card strong{font-size:14px;color:#5d4665}.mail-connection-card span{font-size:12px;color:#8f7a96}.mail-settings-dialog details{padding:15px;border:1px solid #e6dce5;border-radius:10px;margin-bottom:18px}.mail-settings-dialog summary{font-size:13px;color:#755b7e;cursor:pointer}.mail-setup-steps{font-size:12px;color:#806b88;line-height:1.8;padding-left:20px}.mail-file-label{display:grid;gap:10px;font-size:12px;color:#806b88;margin-bottom:13px}.mail-connection-actions,.mail-status-actions,.mail-queue-tools,.mail-pdf-tools,.mail-item-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mail-enabled{display:flex;gap:10px;align-items:center;font-size:13px;color:#755b7e;margin-top:25px}.mail-enabled input{accent-color:#a6375b}.mail-queue-dialog{width:min(1040px,calc(100vw - 30px))}.mail-queue-tools{justify-content:space-between}.mail-document{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:18px;border:1px solid #e7dfe7;border-radius:12px;margin:12px 0}.mail-document strong{display:block;color:#5c4564;font-size:13px}.mail-document span,.mail-document small{display:block;color:#907b97;font-size:11px;line-height:1.8}.mail-document-amount{text-align:right}.mail-pending-notice{background:#faf2e4;border:1px solid #e7d3b1;color:#9c743c;border-radius:20px;font:inherit;font-size:11px;padding:9px 14px}.mail-review-pill{margin:9px auto 0;color:#9c743c;border-color:#e7d3b1}.mail-review-dialog{width:min(1360px,calc(100vw - 28px));height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:visible}.mail-review-frame{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:16px;background:white}.mail-review-body{display:grid;grid-template-columns:minmax(270px,.7fr) minmax(0,1.3fr);min-height:0}.mail-pdf-pane{overflow:auto;background:#f1eef2;padding:15px;border-right:1px solid #e7dfe7}.mail-pdf-pane img{display:block;width:100%;height:auto;border-radius:5px;background:white;margin-top:15px}.mail-pdf-tools{position:sticky;top:-15px;background:#f1eef2;padding:10px 0;z-index:1;justify-content:center}.mail-pdf-tools .back-button{font-size:10px;padding:8px 11px}.mail-pdf-tools span{font-size:11px;color:#8b748f}.mail-fields-pane{overflow:auto;padding:20px;min-width:0}.mail-common-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:15px 0 22px}.mail-common-fields>label{font-size:11px}.mail-item-tools{justify-content:space-between;color:#806b88;font-size:12px;margin:12px 0}.mail-items-scroll{max-height:390px;overflow:auto;border:1px solid #e9dfe8;border-radius:10px}.mail-items-table{min-width:650px;width:100%;font-size:11px;border-collapse:collapse}.mail-items-table th{position:sticky;top:0;background:#faf6f9;z-index:1;text-align:left;font-size:10px;font-weight:500;color:#8c7592;padding:11px 7px}.mail-items-table td{padding:10px 7px;border-top:1px solid #eee6ed;vertical-align:top}.mail-items-table input:not([type=checkbox]){box-sizing:border-box;width:100%;border:1px solid #e1d4e0;border-radius:8px;padding:10px 7px;font:inherit;color:#5f4968;background:#fff}.mail-items-table td:nth-child(1){width:55px}.mail-items-table td:nth-child(2){min-width:160px}.mail-items-table td:nth-child(3){width:80px}.mail-items-table td:nth-child(4){min-width:155px}.mail-items-table small{display:block;color:#97829a;font-size:10px;line-height:1.5;margin-top:7px;overflow-wrap:anywhere}.mail-items-table input[type=checkbox]{accent-color:#a6375b}.mail-items-table .smart-select-trigger{font-size:10px;min-height:36px;height:auto;padding:8px}.mail-items-table .text-button{font-size:12px;padding:8px}.mail-reject-confirmation{border:1px solid #ead6dc;background:#fcf5f6;border-radius:10px;padding:15px;margin-top:15px;font-size:12px;color:#956879}.mail-review-dialog .entry-actions{justify-content:space-between}.mail-review-dialog .dialog-header{padding:20px 26px}.mail-fields-pane>.field-help{line-height:1.7}
@media(max-width:950px){.mail-review-body{grid-template-columns:minmax(200px,.55fr) minmax(0,1fr)}.mail-common-fields{grid-template-columns:1fr}.mail-review-dialog{width:calc(100vw - 18px)}.mail-fields-pane{padding:15px}}
@media(max-width:640px){.mail-review-body{display:block;overflow:auto}.mail-pdf-pane{max-height:270px}.mail-fields-pane{overflow:visible}.mail-common-fields{grid-template-columns:1fr 1fr}.mail-common-fields>label:first-child{grid-column:1/-1}.mail-document{grid-template-columns:1fr auto}.mail-document>button{grid-column:1/-1}.mail-review-dialog .entry-actions button{font-size:10px;padding:9px}.mail-review-dialog .dialog-header h2{font-size:20px}.mail-pdf-tools{position:static}}

.mail-review-dialog{max-width:1360px}.mail-settings-dialog .settings-header>div{flex:1}.mail-pdf-tools a{color:#82648b;text-decoration:none}.mail-pdf-tools{flex-wrap:wrap}.mail-pdf-pane img.mail-preview-enlarged{width:max(620px,100%);max-width:none}.mail-file-label{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.mail-file-label .back-button{cursor:pointer}.mail-file-label:focus-within{outline:2px solid #aa6b92;outline-offset:4px;border-radius:8px}#mail-client-name{font-size:10px;overflow-wrap:anywhere}

.mail-queue-dialog .settings-header>div{flex:1}

.mail-excluded-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.mail-excluded-actions .back-button{font-size:10px}#mail-excluded-dialog{width:min(1000px,calc(100vw - 28px))}#mail-confirm-dialog{max-width:540px}#open-mail-exclusions{margin-bottom:20px}#mail-date-status{color:#597567;margin-top:-8px;margin-bottom:20px}

/* Donut-only visibility; hidden legend entries remain available to restore. */
.category-visibility-row{display:flex;align-items:center;gap:7px}.category-visibility-row .category-button{flex:1;min-width:0}.category-visibility{flex:0 0 30px;width:30px;height:30px;border:1px solid #e6dce6;border-radius:50%;background:#fff;color:#8b6586;cursor:pointer;font-size:18px;line-height:1}.category-visibility:hover,.category-visibility:focus-visible{background:#f3edf3;outline:2px solid #bc94ad;outline-offset:2px}.category-hidden .category-button{opacity:.5}.category-hidden .category-name{text-decoration:line-through}.chart-filter-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.chart-filter-tools .field-help{font-size:11px}.refund-source-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.refund-source-tools label{font-size:11px;color:#806b88;display:flex;flex-direction:column;gap:8px}.refund-source-tools input{padding:13px;border:1px solid #ded0df;border-radius:10px;font:inherit;min-height:46px;box-sizing:border-box}.refund-purchases{max-height:340px;overflow:auto;display:grid;gap:9px;padding:2px}.refund-purchase{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;text-align:left;border:1px solid #e4dce4;background:#fff;padding:17px;border-radius:12px;color:#5e4c65;font:inherit;cursor:pointer}.refund-purchase>strong:first-child{font-size:13px}.refund-purchase>span{grid-column:1;grid-row:2;font-size:10px;color:#917b98}.refund-purchase>strong:last-child{grid-column:2;grid-row:1/3;align-self:center;font-size:13px}.refund-purchase[aria-pressed=true]{border-color:#5a8874;background:#f2f7f4;box-shadow:0 0 0 2px #5a887415}.refund-source-unrecorded{margin:18px 0;padding:14px 18px;width:100%;border:1px dashed #c6b8ca;border-radius:12px;background:#faf7fa;color:#7d6587;text-align:left;font:inherit;font-size:12px;cursor:pointer}.refund-source-unrecorded span{display:block;font-size:10px;margin-top:6px}.refund-source-unrecorded[aria-pressed=true]{border-color:#5a8874;background:#f2f7f4}.refund-editor .entry-frame{grid-template-rows:auto auto minmax(0,1fr) auto}.refund-body textarea{font:inherit;color:#514153;border:1px solid #ded0df;border-radius:9px;padding:12px;box-sizing:border-box}.income-kind-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:640px){.refund-source-tools{grid-template-columns:1fr}.refund-purchases{max-height:260px}.income-kind-grid{grid-template-columns:1fr}.chart-filter-tools{align-items:flex-start}.category-visibility{flex-basis:27px;width:27px;height:27px}}

.refund-source-tools .date-field input{width:100%;height:44px;min-height:44px;padding-right:42px}.refund-purchase{font-family:Arial,Helvetica,sans-serif}

/* v1.6: Settings breathing room and an optically centered close control. */
.close-button{display:grid;place-items:center;padding:0;position:relative;font-size:0;line-height:0;box-sizing:border-box;cursor:pointer}
.close-button::before,.close-button::after{content:"";position:absolute;width:13px;height:1.5px;left:50%;top:50%;background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
.close-button::after{transform:translate(-50%,-50%) rotate(-45deg)}
.settings-group{display:grid;gap:10px;border:0;background:transparent}
.settings-group .settings-navigation,.settings-group .settings-navigation:first-child,.settings-group .settings-navigation:last-child{border:1px solid #e8e1e7;border-radius:12px;min-height:64px;padding:18px 20px}
#settings-home>.settings-navigation,#settings-groceries-screen>.settings-navigation{margin-bottom:12px;min-height:64px}
.subcategory-settings-list{display:grid;gap:8px;margin:20px 0}
.subcategory-settings-row,.subcategory-settings-row:first-child,.subcategory-settings-row:last-child{border:1px solid #ebe4eb;border-radius:10px;min-height:62px;padding:13px 15px}
.settings-row-actions{gap:12px}.subcategory-section-heading{margin-top:26px}.settings-reset-area{margin-top:28px;padding-top:20px}
.settings-header>div{min-width:0;flex:1}.settings-child-back{flex-shrink:0}.subcategory-dialog .dialog-header{gap:12px}.subcategory-dialog .dialog-header h2{flex:1}
#product-memory-dialog{width:min(740px,calc(100vw - 28px))}.memory-row{padding:20px;margin-bottom:14px}.memory-row>div{display:flex;gap:14px;margin-top:12px}
.future-profile img{border-radius:50%;border:1px solid #dce6dc;background:#e8efe9}.future-profile{margin-bottom:26px}
@media(max-width:640px){.settings-header{gap:10px}.settings-header .back-button{padding:7px 9px}.settings-header h2{font-size:19px}.settings-group .settings-navigation{padding:17px}.settings-row-actions{gap:8px}}

/* v1.7 experiment: quieter ring, adaptive separation and linked inspection. */
.donut-segment{stroke-width:32;stroke-linecap:butt;filter:none;transition:stroke-width .12s ease,opacity .12s ease}
.donut-segment:hover,.donut-segment:focus-visible,.donut-segment.is-focused{stroke-width:38;filter:none;outline:none}
#donut-segments.has-inspection .donut-segment:not(.is-focused){opacity:.34}
.ring-track{stroke-width:32;stroke:#f1edf0}
.donut-center strong{font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.chart-inspection{position:absolute;left:50%;top:0;transform:translateX(-50%);max-width:95%;display:flex;align-items:center;gap:9px;white-space:nowrap;padding:7px 11px;border:1px solid #e8e1e7;border-radius:8px;background:#fff;color:#615267;font-size:11px;line-height:1.3;pointer-events:none;box-shadow:0 2px 7px #42304708}
.chart-inspection[hidden]{display:none}.chart-inspection::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--inspection-color);flex-shrink:0}.chart-inspection strong{font-size:12px;color:#342e39;font-variant-numeric:tabular-nums}.chart-inspection span{overflow:hidden;text-overflow:ellipsis}
@media(prefers-reduced-motion:reduce){.donut-segment{transition:none}}
