@charset "UTF-8";
:root{--bg:#faf7f4;--paper:#fffdfb;--ink:#3f3038;--muted:#85767b;--rose:#9d5f70;--rose-dark:#804859;--pink:#f0dfe1;--line:#eadfe0;--soft:#f6edef;--radius:16px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}input,textarea{min-width:0}a{color:inherit}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #b7798a;outline-offset:4px}input:focus,textarea:focus{outline:0;border-color:var(--rose)!important;box-shadow:0 0 0 3px #9d5f7012}input::placeholder,textarea::placeholder{color:#a5979c}input[type=date]{color-scheme:light}input[type=date]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}[hidden]{display:none!important}.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}.initial{min-height:100vh;display:grid;place-items:center;color:var(--rose)}.muted{color:var(--muted);line-height:1.6}.small-muted{color:var(--muted);font-size:13px;line-height:1.6}.eyebrow{display:block;font-size:10px;font-weight:650;letter-spacing:2px;color:var(--rose);margin:0 0 17px}.brand{display:flex;align-items:center;gap:11px;font-weight:650;font-size:25px;letter-spacing:-1.2px;text-decoration:none}.brand-mark{width:36px;height:36px;display:grid;place-items:center;background:var(--rose);color:#fff6f5;font-family:Georgia,serif;font-weight:400;font-size:27px;line-height:1;border-radius:12px;letter-spacing:0}.brand-dot{color:var(--rose)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:12px 20px;border-radius:10px;font-size:13px;font-weight:600;white-space:nowrap;transition:background .16s,box-shadow .16s}.primary{color:#fffaf9;background:var(--rose);box-shadow:0 4px 10px #8048590d}.primary:hover{background:var(--rose-dark)}.subtle{color:#6f565f;background:transparent;border:1px solid var(--line)}.subtle:hover{background:var(--soft)}.text-button{background:transparent;color:var(--muted);font-size:12px;padding:9px 5px;white-space:nowrap}.text-button:hover{color:var(--rose-dark)}.plus{font-weight:400;font-size:22px;line-height:.8}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);background:transparent;border-radius:8px;font-size:26px}.icon-button:hover{background:var(--soft);color:var(--rose)}
.auth-page{min-height:100vh;display:grid;grid-template-columns:46% 54%;padding:18px;gap:18px}.auth-art{position:relative;overflow:hidden;background:#ead2d4;border-radius:22px;padding:60px 12%;display:flex;flex-direction:column;justify-content:center;min-height:660px;color:#6c4752}.auth-kicker{position:absolute;top:45px;font-size:9px;font-weight:600;letter-spacing:2px}.auth-art h1{position:relative;z-index:1;font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,4.4vw,70px);font-weight:400;letter-spacing:-2px;line-height:1.12;margin:24px 0}.auth-art h1 em{font-weight:400;color:#986673}.auth-art p{position:relative;z-index:1;font-size:14px;line-height:1.8;color:#906c76}.art-bottom{position:absolute;bottom:40px;font-size:9px;letter-spacing:2px;color:#9d7480}.flower{position:absolute;right:-92px;top:20%;width:350px;height:350px;transform:rotate(-20deg);opacity:.45}.flower span{position:absolute;background:#f6e4e4;width:170px;height:170px;border-radius:100% 100% 15% 100%}.flower span:nth-child(2){transform:rotate(90deg);left:173px}.flower span:nth-child(3){transform:rotate(180deg);left:173px;top:173px}.flower span:nth-child(4){transform:rotate(270deg);top:173px}.auth-main{padding:35px 11%;display:flex;flex-direction:column;justify-content:space-between;min-height:660px}.auth-content{max-width:380px;width:100%;margin:56px auto}.auth-content h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:35px;letter-spacing:-1px;margin:0 0 12px}.auth-content>.muted{font-size:13px;margin:0 0 32px}.field{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:600;position:relative}.field+.field{margin-top:20px}.field input,.field textarea{width:100%;border:1px solid #e4d8db;border-radius:9px;background:var(--paper);padding:13px 14px;color:var(--ink);font-size:14px;font-weight:400;transition:border .15s,box-shadow .15s}.field input{min-height:47px}.field textarea{resize:vertical;min-height:88px;max-height:260px;line-height:1.6}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:82px}.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;color:var(--muted);font-size:10px;padding:8px 4px}.auth-submit{width:100%;justify-content:space-between;margin-top:26px;padding:15px 18px}.auth-footer{font-size:11px;color:#a08c93;display:flex;gap:8px;align-items:center;justify-content:center;margin:0}.auth-footer svg{width:14px;height:14px}.notice{padding:15px 18px;border:1px solid #e1c8d0;background:#f6e9ed;color:#80515e;border-radius:10px;font-size:13px;line-height:1.65;margin:15px 0}.form-error{font-size:12px;color:#a03e52;background:#fff0f2;border-radius:8px;padding:12px 14px;line-height:1.6;margin:16px 0 0}
.site-header{height:91px;display:flex;align-items:center;gap:42px;border-bottom:1px solid var(--line);padding:0 max(40px,calc((100vw - 1320px)/2));background:#fffcfa}.header-label{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:28px}.account{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:12px}.account .text-button{margin-left:14px}.account-avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#f0e1e4;color:var(--rose);font-size:11px;font-weight:600}.application main{max-width:1400px;margin:auto;padding:48px 40px 26px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:0 0 32px}.heading-row h1{font-family:Georgia,"Times New Roman",serif;font-size:44px;line-height:1.1;letter-spacing:-1.6px;font-weight:400;margin:0 0 12px}.heading-dot{color:#b77b8c}.heading-row .eyebrow{margin-bottom:14px}.page-description{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.heading-row>.button{margin-top:25px}.summary{display:grid;grid-template-columns:1.15fr .9fr 1fr;gap:0;min-height:159px;background:#f2e3e4;border:1px solid #eddbde;border-radius:var(--radius);overflow:hidden;margin-bottom:35px}.summary-main,.summary-secondary,.summary-note{padding:27px 30px}.stat-label{font-size:11px;color:#8e6e79;display:block;margin-bottom:14px}.summary-main strong{font-size:34px;letter-spacing:-1.4px;line-height:1;font-weight:500;display:block;color:#6b414f;font-variant-numeric:tabular-nums}.summary-main>span:last-child{font-size:10px;color:#9d7f89;display:block;margin-top:13px}.summary-secondary{display:flex;align-items:center;justify-content:space-between;gap:15px;position:relative}.summary-secondary:before{content:"";position:absolute;left:0;top:30px;bottom:30px;width:1px;background:#dec5cd}.summary-secondary strong{display:block;font-size:34px;font-weight:500;letter-spacing:-1.3px;line-height:1}.stat-symbol{font-size:38px;color:#c79ca8;margin-right:12px}.summary-note{background:#f5ebeb;position:relative;overflow:hidden}.summary-note p{font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1.35;letter-spacing:-.4px;margin:0 0 12px;color:#8d6571}.summary-note p em{font-weight:400}.summary-note>span:last-child{font-size:10px;color:#a38b93}.small-flower{position:absolute;right:22px;top:20px;font-size:72px;color:#e2cace;font-weight:300;line-height:1}.ledger{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 22px #64425203}.ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:27px 27px 23px}.ledger-heading h2{font-size:17px;font-weight:600;letter-spacing:-.35px;margin:0 0 4px}.ledger-heading .muted{font-size:11px}.ledger-heading .button{min-height:38px;padding:9px 13px;font-size:11px;gap:7px}.ledger-heading svg{width:15px;height:15px}.filters{display:flex;align-items:center;gap:12px;padding:0 27px 22px;flex-wrap:wrap}.search-field{position:relative;display:flex;align-items:center;flex:1;min-width:200px;max-width:430px}.search-field svg{position:absolute;left:13px;top:13px;width:16px;height:16px;color:#a38e96}.search-field input{height:41px;min-width:0;width:100%;background:#fcf9f7;border:1px solid var(--line);border-radius:8px;padding:10px 11px 10px 38px;color:var(--ink);font-size:12px}.date-filters{display:flex;align-items:center;gap:8px;padding:0 10px;background:#fcf9f7;border:1px solid var(--line);border-radius:8px;height:41px}.date-filters label{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.date-filters input{background:transparent;border:0;padding:7px 0;font-size:11px;color:#6f5962;width:105px;box-shadow:none}.date-dash{color:#bea9b0;font-size:11px}.filter-button{background:var(--soft);color:#916272;border:1px solid #ead7de;border-radius:8px;padding:10px 12px;height:41px;font-size:11px;white-space:nowrap}.filter-button:hover,.filter-button[aria-pressed=true]{background:#ead1da;color:#7e4859}.filter-error{color:#a03e52;font-size:12px;padding:0 27px;margin:0 0 18px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}thead{background:#f8f1f2;color:#957983;font-size:10px;font-weight:500}th{font-weight:500;padding:14px 15px;white-space:nowrap}th:first-child,td:first-child{padding-left:27px}th:last-child,td:last-child{padding-right:22px}td{padding:20px 15px;border-bottom:1px solid #f1e7e8;vertical-align:middle;line-height:1.5;max-width:205px;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdf8f8}.date-cell{color:#99858d;font-size:11px;white-space:nowrap}.name-cell{font-weight:600;min-width:120px}.person-cell{color:#78626d}.amount-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.amount-value{font-size:13px;color:#865367;font-weight:600;display:inline-block;background:#f8edef;border-radius:6px;padding:5px 9px}.note-cell{font-size:11px;color:#9a858e;min-width:130px;max-width:230px;white-space:pre-wrap}.row-actions{white-space:nowrap;text-align:right;width:74px}.row-actions button{padding:7px;background:transparent;color:#aa909b;border-radius:7px;display:inline-flex;align-items:center;justify-content:center}.row-actions button:hover{background:#f2e4e9;color:#835066}.row-actions svg{width:15px;height:15px}.empty-state{padding:45px 20px 53px;text-align:center;border-top:1px solid var(--line)}.empty-icon{width:65px;height:65px;border-radius:20px;background:#f6e9ed;color:#b88b9c;margin:0 auto 18px;display:grid;place-items:center}.empty-icon svg{width:36px;height:36px;stroke-width:1.2}.empty-state h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:25px;letter-spacing:-.5px;margin:0 0 11px}.empty-state p{font-size:12px;line-height:1.8;color:#a08a93;margin:0 0 23px}.empty-state .button{font-size:12px;min-height:41px}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:16px 27px;color:#a68e98;font-size:10px}.save-status{display:flex;align-items:center;gap:6px}.save-status>span:first-child{width:5px;height:5px;border-radius:50%;background:#9aab91}.page-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b39ea7;margin-top:22px}.page-footer>span:first-child{font-family:Georgia,serif;font-style:italic;font-size:13px}
dialog{border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);padding:28px;width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 80px #321b3130}dialog::backdrop{background:#3d243552;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.dialog-heading .eyebrow{font-size:9px;margin-bottom:8px}.dialog-heading h2,.delete-dialog h2{font-family:Georgia,"Times New Roman",serif;font-size:29px;font-weight:400;letter-spacing:-.7px;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid .field+.field{margin:0}.wide{grid-column:1/-1}.optional{font-size:10px;color:#ac969f;font-weight:400;position:absolute;top:0;right:0}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.delete-dialog{width:420px;padding:30px}.delete-dialog>.muted{margin-top:18px;overflow-wrap:anywhere;font-size:13px}.delete-dialog>.small-muted{margin-top:10px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);background:#5e424e;color:#fff8f8;padding:13px 21px;border-radius:12px;font-size:12px;box-shadow:0 6px 28px #4c293324;z-index:10}
@media(min-width:1600px){.application main{padding-top:64px}.heading-row{margin-bottom:38px}.summary{margin-bottom:38px}.auth-art{padding-left:15%}}
@media(max-width:1080px){.site-header{padding:0 28px}.application main{padding:38px 28px 25px}.heading-row h1{font-size:39px}.summary-main,.summary-secondary,.summary-note{padding:25px}.summary-note p{font-size:20px}.small-flower{right:10px;font-size:58px}.filters{gap:9px}.search-field{max-width:none}.summary{grid-template-columns:1.1fr .8fr 1fr}.note-cell{max-width:180px}th,td{padding-left:11px;padding-right:11px}.auth-main{padding-left:9%;padding-right:9%}.auth-content h2{font-size:31px}}
@media(max-width:800px){.auth-page{padding:12px;grid-template-columns:38% 62%;gap:0}.auth-art{padding:35px 16%;min-height:620px}.auth-art h1{font-size:39px;letter-spacing:-1.7px}.auth-art p{font-size:12px}.auth-kicker{font-size:8px;letter-spacing:1px;top:35px;max-width:140px;line-height:1.8}.art-bottom{font-size:8px;letter-spacing:1px;bottom:35px}.flower{right:-220px}.auth-main{padding:26px 10%;min-height:620px}.auth-main>.brand{font-size:22px}.auth-content h2{font-size:29px}.auth-content{margin:45px auto}.heading-row h1{font-size:35px}.site-header{height:78px;padding:0 22px;gap:20px}.header-label{display:none}.application main{padding:32px 22px 24px}.summary{grid-template-columns:1fr .8fr}.summary-note{display:none}.summary-main strong,.summary-secondary strong{font-size:31px}.heading-row>.button{padding:12px 14px;font-size:12px}.ledger-heading{padding:22px}.filters{padding:0 22px 20px}.search-field{min-width:100%;flex-basis:100%}.date-filters{flex:1;justify-content:space-between;max-width:340px}.date-filters input{width:110px}.table-footer{padding-left:22px;padding-right:22px}table{min-width:760px}.table-wrap{scrollbar-color:#d8bcc6 #f7eeee;scrollbar-width:thin}}
@media(max-width:580px){.auth-page{display:block;padding:0}.auth-art{display:none}.auth-main{min-height:100dvh;padding:32px 28px 28px}.auth-main>.brand{font-size:25px}.auth-content{margin:60px auto;max-width:380px}.auth-content h2{font-size:35px}.auth-content .eyebrow{margin-bottom:17px}.auth-footer{margin-top:auto}.site-header{height:73px;padding:0 19px}.brand{font-size:23px;gap:9px}.brand-mark{width:32px;height:32px;font-size:24px;border-radius:10px}.account{gap:7px}.account>span#account-name{max-width:83px;overflow:hidden;text-overflow:ellipsis}.account .text-button{font-size:11px;margin-left:4px}.account-avatar{display:none}.application main{padding:29px 16px 20px}.heading-row{display:block;margin-bottom:24px}.heading-row .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:12px}.heading-row h1{font-size:37px}.page-description{font-size:12px}.heading-row>.button{width:100%;margin-top:24px;min-height:46px}.summary{min-height:136px;margin-bottom:25px;border-radius:13px;grid-template-columns:1.15fr 1fr}.summary-main,.summary-secondary{padding:22px 19px}.summary-main strong,.summary-secondary strong{font-size:28px}.stat-label{font-size:10px;margin-bottom:13px}.summary-main>span:last-child{font-size:9px}.stat-symbol{display:none}.summary-secondary:before{top:23px;bottom:23px}.ledger{border-radius:13px}.ledger-heading{padding:21px 17px 19px}.ledger-heading h2{font-size:16px}.ledger-heading .muted{font-size:10px}.ledger-heading .button{font-size:10px;min-height:35px;padding:8px 10px}.ledger-heading svg{width:13px}.filters{padding:0 17px 19px;gap:9px}.date-filters{max-width:none;width:100%;flex-basis:100%;height:42px}.date-filters input{width:112px;font-size:12px}.filter-button{height:33px;font-size:10px;padding:7px 10px}.filters>.text-button{font-size:10px;height:33px;margin-left:auto}.filter-error{padding:0 17px;font-size:11px}.table-wrap{overflow:visible}table,tbody{display:block;min-width:0}thead{display:none}tbody{padding:0 12px}tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #eadfe3;border-radius:10px;padding:14px 14px 10px;margin:0 0 12px;position:relative;gap:12px 15px;background:#fffcfc}td,th{padding:0!important;border:0;max-width:none;min-width:0}.date-cell{grid-column:1;font-size:10px;order:0}.name-cell{grid-column:1;order:2;font-size:14px;min-width:0}.amount-cell{grid-column:2;grid-row:1/3;align-self:center;order:1}.amount-value{font-size:15px;padding:5px 9px}.person-cell{font-size:11px;order:3}.person-cell:before{content:attr(data-label);display:block;color:#ae95a0;font-size:9px;margin-bottom:4px;font-weight:400}.note-cell{grid-column:1/-1;order:5;font-size:10px;max-width:none;min-width:0;border-top:1px solid #f0e4e9;padding-top:10px!important;padding-right:62px!important;min-height:29px}.row-actions{position:absolute;bottom:7px;right:9px;order:6;width:auto}.row-actions button{padding:6px}.row-actions svg{width:14px;height:14px}.table-footer{font-size:9px;padding:13px 17px}.empty-state{padding:34px 18px 40px}.empty-state h3{font-size:23px}.empty-state p{font-size:11px}.page-footer{font-size:8px;margin-top:19px}.page-footer>span:first-child{font-size:11px}.form-grid{gap:18px 14px}.form-grid .field{font-size:11px}.field input,.field textarea{font-size:16px}.optional{position:static;display:inline;margin-top:-5px;font-size:9px}.field:has(.optional){gap:7px}.form-grid .field:has(.optional) input{margin-top:0}.entry-dialog{padding:23px 20px}.dialog-heading{margin-bottom:23px}.dialog-heading h2{font-size:27px}.dialog-footer{margin-top:22px;gap:8px}.dialog-footer .button{font-size:12px;padding-left:15px;padding-right:15px}.toast{font-size:11px;text-align:center;bottom:19px;width:max-content}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Floral journal: fewer controls, clear text and comfortable touch targets. */
:root{--bg:#fff7f4;--paper:#fffdfa;--ink:#49343d;--muted:#755b66;--rose:#975269;--rose-dark:#79394f;--line:#e8d4d8;--soft:#faedef}
::selection{background:#e9bdcd;color:#49343d}input,textarea{caret-color:var(--rose)}
input::placeholder,textarea::placeholder{color:#80636f}
.flower-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.brand-bloom,.bloom,.welcome-flowers svg,.heading-flowers svg,.summary-bloom,.footer-flowers svg,.empty-bloom{stroke:none;flex-shrink:0;color:#c9899e}
.brand-bloom{width:42px;height:42px;color:#bb718d;transform:rotate(-12deg)}
.brand{font-size:25px;gap:10px;letter-spacing:-.7px}
.site-header{height:76px;padding:0 max(28px,calc((100vw - 1104px)/2));background:#fffaf7}
.account,.account .text-button{font-size:14px}.text-button{min-height:44px;font-size:14px;color:var(--muted);padding:10px}
.account-avatar{color:#734353;background:#f2dce3}.account .text-button{margin-left:8px}
.application main{max-width:1160px;padding:30px 28px 24px}
.heading-row{align-items:flex-end;margin-bottom:24px;gap:24px}
.heading-row h1{font-size:38px;letter-spacing:-1px;margin:0 0 8px;line-height:1.15}
.heading-row>.button{margin-top:0;margin-bottom:2px}
.heading-flowers{display:flex;align-items:flex-end;gap:6px;margin:0 0 13px;height:42px;pointer-events:none}
.heading-flowers svg:nth-child(1){width:29px;height:29px;color:#d295a6;transform:rotate(-17deg)}
.heading-flowers svg:nth-child(2){width:43px;height:43px;color:#b96b88;transform:rotate(9deg)}
.heading-flowers svg:nth-child(3){width:26px;height:26px;color:#e2b5bf;transform:rotate(26deg);margin-bottom:3px}
.page-description{font-size:14px;color:var(--muted)}
.button{min-height:48px;font-size:14px;padding:12px 18px;border-radius:12px;box-shadow:none}
.summary{display:flex;align-items:center;gap:32px;min-height:0;padding:20px 25px;margin-bottom:24px;background:#f4e2e7;border:0;border-radius:16px;position:relative}
.summary-main{padding:0;display:grid;grid-template-columns:auto auto;column-gap:15px;align-items:baseline}
.summary-main .stat-label{font-size:14px;margin:0;color:#6e4957}
.summary-main strong{font-size:31px;letter-spacing:-.7px;color:#6f3c50}
.summary-main>span:last-child{grid-column:1/-1;margin-top:7px;font-size:12px;color:#735160}
.summary-secondary{padding:0 0 0 28px;display:flex;gap:12px;align-items:baseline;border-left:1px solid #d9b8c3}
.summary-secondary:before{display:none}.summary-secondary .stat-label{margin:0;font-size:14px;color:#6e4957}
.summary-secondary strong{font-size:24px;letter-spacing:0;color:#6f3c50}
.summary-bloom{width:57px;height:57px;margin-left:auto;color:#d19baa;transform:rotate(17deg)}
.ledger{box-shadow:none;border-radius:16px;border-color:#e6d4da}
.ledger-heading{padding:22px 24px 18px}.ledger-heading h2{font-size:20px;margin:0;letter-spacing:-.3px}
.ledger-heading .muted{font-size:12px;color:var(--muted);display:block;margin-top:5px}
.ledger-heading .button{min-height:44px;font-size:13px;padding:10px 12px;border:0;color:#734557}
.ledger-heading .button:hover{background:var(--soft)}
.filters{gap:10px;padding:0 24px 20px;align-items:flex-start}
.search-field{max-width:none;min-width:210px;flex:1}.search-field input{height:48px;font-size:15px;background:#fffaf8;padding-left:42px;border-radius:10px}
.search-field svg{top:15px;left:15px;width:18px;height:18px;color:#7c5c6c}
.period-filter{min-width:158px;flex:0 1 auto}.period-filter summary{min-height:48px;display:flex;align-items:center;gap:9px;padding:10px 13px;background:#fbf0f2;border:1px solid #e5cbd4;border-radius:10px;cursor:pointer;font-size:14px;color:#704456;list-style:none}
.period-filter summary::-webkit-details-marker{display:none}.period-filter summary:focus-visible{outline:3px solid #975269;outline-offset:3px}
.period-filter summary .chevron{width:16px;height:16px;margin-left:auto}.period-filter[open] .chevron{transform:rotate(180deg)}
.period-filter[open]{flex-basis:100%}.period-filter[open] summary{max-width:300px}
.period-options{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:14px;padding:16px;background:#fbf1f3;border-radius:12px}
.date-filters{border:0;background:none;height:auto;padding:0;gap:14px;max-width:none;flex:none;width:auto}
.date-filters label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;color:var(--muted);font-size:13px}
.date-filters input{width:156px;min-height:48px;border:1px solid #dec6ce;background:var(--paper);border-radius:8px;padding:10px;font-size:16px;color:var(--ink)}
.filter-button{min-height:48px;height:auto;font-size:14px;padding:11px 15px;border-radius:10px;background:#eed3dc;color:#6f3a4e}
.filter-error{font-size:14px}.table-wrap{scrollbar-color:#c396a7 #fbf1f3}
table{font-size:15px;min-width:0}thead{font-size:13px;color:#6c4e5b;background:#f8edf0}
th{padding:14px 16px}td{padding:16px;line-height:1.5}.date-cell{font-size:13px;color:#755b66}
.name-cell{font-size:15px;font-weight:600}.note-cell{font-size:14px;color:#755b66;max-width:310px;min-width:0}
.amount-value{font-size:16px;color:#7d3c54;background:#f7e7ed;padding:6px 10px}
.row-actions{width:106px}.row-actions button{min-width:44px;min-height:44px;padding:12px;color:#85536a}.row-actions svg{width:19px;height:19px}
.table-footer{padding:16px 24px;font-size:12px;color:#755b66}.save-status>span:first-child{background:#6e8b65}
.page-footer{color:#755b66;font-size:12px;margin-top:16px;min-height:42px}
.footer-flowers{display:flex;gap:8px;align-items:center;pointer-events:none}.footer-flowers svg{width:26px;height:26px;color:#c7869c;transform:rotate(14deg)}
.footer-flowers svg:nth-child(2){width:18px;height:18px;color:#dfacb9;transform:rotate(-17deg)}
.footer-flowers svg:nth-child(3){width:32px;height:32px;color:#bb7b91;transform:rotate(35deg)}
.empty-icon{background:none;width:84px;height:84px}.empty-icon .empty-bloom{width:80px;height:80px;stroke:none;color:#ce8ca5}
.empty-state p{font-size:14px;color:var(--muted)}.empty-state .button{font-size:14px;min-height:48px}
.auth-art{border-radius:16px;background:#f1dce2;color:#704354;padding:60px 10%;min-height:660px}
.auth-art h1{font-size:56px;letter-spacing:-1.5px;max-width:360px}.auth-art h1 em{color:#87516a}
.auth-art p{color:#74505e;font-size:16px}.auth-art .auth-flowers{position:absolute;inset:0;pointer-events:none}
.auth-flowers .bloom{position:absolute;opacity:1}.bloom-one{width:190px;height:190px;top:24px;right:-22px;color:#d492a8;transform:rotate(12deg)}
.auth-flowers .bloom-two{width:100px;height:100px;top:35px;left:24px;color:#f8eef0;transform:rotate(-8deg)}
.auth-flowers .bloom-three{width:145px;height:145px;bottom:35px;left:-22px;color:#cf94a6;transform:rotate(-20deg)}
.auth-flowers .bloom-four{width:91px;height:91px;bottom:60px;right:36px;color:#faf0ed;transform:rotate(30deg)}
.auth-main{padding:28px 10%}.auth-content{margin:35px auto}.auth-content h2{font-size:33px;letter-spacing:-.8px}
.auth-content>.muted{font-size:15px;color:var(--muted);margin-bottom:26px}
.welcome-flowers{display:flex;align-items:flex-end;gap:7px;margin-bottom:24px;pointer-events:none}.welcome-flowers svg{width:34px;height:34px;color:#c5869d;transform:rotate(-10deg)}
.welcome-flowers svg:nth-child(2){width:48px;height:48px;color:#b7728e;transform:rotate(17deg)}
.welcome-flowers svg:nth-child(3){width:25px;height:25px;color:#dda9b8;transform:rotate(32deg)}
.field{font-size:14px;gap:8px}.field input,.field textarea{font-size:16px;min-height:50px;border-radius:10px;border-color:#dcc4cd;background:#fffcfa}
.optional{color:#755b66;font-size:12px}.password-toggle{min-height:44px;font-size:12px;color:#755b66}.password-wrap input{padding-right:90px}
.auth-footer{font-size:12px;color:#755b66}.notice{font-size:14px;color:#714653}.form-error{font-size:14px}
dialog{border:0;border-radius:16px;padding:26px;box-shadow:0 20px 70px #47253630;width:520px}
dialog::backdrop{background:#452c3a66;backdrop-filter:none}.dialog-heading{margin-bottom:22px}
.dialog-heading h2,.delete-dialog h2{font-size:29px;letter-spacing:-.7px}.dialog-heading h2:focus{outline:none}
.icon-button{min-width:44px;min-height:44px}.form-grid{gap:18px}.form-grid .field+.field{margin-top:0}
.dialog-footer{margin-top:20px;padding-top:18px;background:var(--paper)}.dialog-footer .button{min-height:48px}
.toast{font-size:14px}
@media(max-width:800px){
  .site-header{padding:0 20px}.application main{padding:25px 20px 24px}.heading-row h1{font-size:34px}
  .auth-page{grid-template-columns:38% 62%;gap:12px;padding:12px}.auth-art{padding:30px 12%}
  .auth-art h1{font-size:39px;letter-spacing:-1px}.auth-art p{font-size:14px}.auth-main{padding:25px 8%}
  .bloom-one{width:135px;height:135px;right:-40px}.auth-flowers .bloom-two{width:70px;height:70px;left:12px}
  .auth-flowers .bloom-three{width:115px;height:115px}.auth-flowers .bloom-four{width:67px;height:67px;right:12px}
}
@media(max-width:580px){
  .site-header{height:68px;padding:0 16px;gap:12px}.brand{font-size:23px;gap:7px}.brand-bloom{width:35px;height:35px}
  .account{font-size:13px;gap:3px}.account>span#account-name{max-width:68px}.account .text-button{font-size:13px;margin:0;padding:9px}
  .application main{padding:22px 16px calc(108px + env(safe-area-inset-bottom))}.heading-row{display:block;margin:0 0 21px}
  .heading-row h1{font-size:32px;letter-spacing:-.7px}.heading-flowers{height:35px;margin-bottom:11px;gap:4px}
  .heading-flowers svg:nth-child(1){width:24px;height:24px}.heading-flowers svg:nth-child(2){width:36px;height:36px}.heading-flowers svg:nth-child(3){width:22px;height:22px}
  .page-description{font-size:14px}.heading-row>#add-entry{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:16px;right:16px;width:auto;margin:0;min-height:54px;z-index:5;font-size:16px;border-radius:14px;box-shadow:0 5px 20px #67384a30}
  .summary{padding:17px 18px;gap:15px;margin-bottom:20px;border-radius:14px}.summary-main{display:block;min-width:0;flex:1}
  .summary-main strong{font-size:27px;overflow-wrap:anywhere;line-height:1.15}.summary-main .stat-label{font-size:13px;margin-bottom:6px}.summary-main>span:last-child{font-size:11px;margin-top:6px}
  .summary-secondary{display:block;padding-left:16px;margin-left:auto;flex-shrink:0}.summary-secondary .stat-label{font-size:12px;margin-bottom:5px}.summary-secondary strong{font-size:22px}
  .summary-bloom{width:33px;height:33px;margin-left:0}.ledger{border:0;border-radius:0;background:transparent;overflow:visible}
  .ledger-heading{padding:4px 0 16px;gap:8px}.ledger-heading h2{font-size:19px}.ledger-heading .muted{font-size:12px}
  .ledger-heading .button{font-size:12px;padding:8px 7px;min-height:44px;gap:5px}.ledger-heading .button svg{width:16px;height:16px}
  .filters{padding:0 0 16px;gap:10px}.search-field{flex-basis:100%;min-width:0}.search-field input{font-size:16px;min-height:50px;padding-right:9px;background:#fffdfa}
  .period-filter{flex:1;min-width:0}.period-filter summary{font-size:14px;min-height:46px;background:#f9ebef}.filters>.text-button{height:auto;min-height:46px;font-size:14px;margin-left:0}
  .period-filter[open] summary{max-width:none}.period-options{padding:14px 12px;gap:12px}.date-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:none;width:100%;flex-basis:100%;height:auto;padding:0}
  .date-filters label{font-size:13px;gap:6px;min-width:0}.date-filters input{width:100%;max-width:100%;font-size:16px;min-height:48px;padding:8px;box-sizing:border-box}
  .filter-button{font-size:14px;min-height:44px;height:auto}.filter-error{padding:0;font-size:13px}
  .table-wrap{overflow:visible}table,tbody{display:block;min-width:0;width:100%}thead{display:none}tbody{padding:0}
  tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:17px 17px 8px;margin-bottom:12px;border:1px solid #e7d3dc;border-radius:14px;background:#fffcfa;position:relative}
  tbody td{padding:0!important;border:0;max-width:none;min-width:0}.date-cell{grid-column:1;grid-row:1;font-size:12px;color:#755b66;order:0}
  .name-cell{grid-column:1;grid-row:2;font-size:17px;font-weight:600;min-width:0;overflow-wrap:anywhere;order:1}
  .amount-cell{grid-column:2;grid-row:1/3;align-self:center;order:2}.amount-value{font-size:21px;background:none;padding:0;color:#814359}
  .note-cell{grid-column:1/-1;grid-row:3;order:3;font-size:14px;line-height:1.55;border-top:1px solid #efdee4;min-height:0;padding:11px 0 0!important;max-width:none;white-space:pre-wrap}
  .row-actions{position:static;grid-column:1/-1;grid-row:4;order:4;width:auto;display:flex;justify-content:flex-end;gap:7px;margin-top:0}
  .row-actions button{width:46px;height:44px;padding:12px;border-radius:10px;color:#85536a;background:#f9edf1}.row-actions svg{width:19px;height:19px}
  .table-footer{padding:10px 0 4px;border:0;font-size:11px;gap:6px}.page-footer{font-size:11px;margin-top:18px}.footer-flowers{gap:6px}.footer-flowers svg{width:25px;height:25px}
  .empty-state{border:1px solid var(--line);border-radius:14px;background:#fffcfa;padding:30px 20px}.empty-state p{font-size:14px}.empty-state h3{font-size:26px}
  .auth-page{display:block;padding:0}.auth-art{display:none}.auth-main{min-height:100dvh;padding:25px 24px calc(25px + env(safe-area-inset-bottom))}
  .auth-main>.brand{font-size:24px}.auth-content{margin:40px auto;max-width:380px}.auth-content h2{font-size:31px;letter-spacing:-.7px}.auth-content>.muted{font-size:15px;line-height:1.6}
  .welcome-flowers{margin-bottom:22px;gap:9px}.welcome-flowers svg{width:39px;height:39px}.welcome-flowers svg:nth-child(2){width:55px;height:55px}.welcome-flowers svg:nth-child(3){width:30px;height:30px}
  .field,.form-grid .field{font-size:14px}.field input,.field textarea{font-size:16px;min-height:50px;padding:13px 12px}.field textarea{min-height:94px}.optional{position:static;display:inline;font-size:12px;margin-top:-3px}
  .form-grid{gap:17px 12px}.form-grid .field:has(.optional){gap:7px}.password-wrap input{padding-right:84px}.auth-footer{font-size:12px;line-height:1.5}.auth-submit{font-size:16px}
  dialog.entry-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - 12px);border-radius:18px 18px 0 0;padding:22px 20px calc(14px + env(safe-area-inset-bottom));overscroll-behavior:contain;scroll-padding-bottom:85px}
  .dialog-heading{margin-bottom:20px}.dialog-heading h2{font-size:28px}.dialog-footer{position:sticky;bottom:calc(-14px - env(safe-area-inset-bottom));margin-top:20px;padding:15px 0 calc(14px + env(safe-area-inset-bottom));gap:10px;background:var(--paper);z-index:1}
  .dialog-footer .button{min-height:50px;font-size:15px}.dialog-footer .primary{flex:1}.delete-dialog{max-width:calc(100vw - 32px);padding:24px}.delete-dialog .dialog-footer{position:static;padding-bottom:0}
  .toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:14px;max-width:calc(100vw - 32px);width:max-content}
}
@media(max-width:380px){.summary-bloom{display:none}.date-cell{white-space:normal}.amount-value{font-size:18px}}

/* Editable sheet: retain a real table at every viewport width. */
#table-wrap{position:relative;display:block;max-width:100%;min-width:0;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#a86a80 #f1dfe5;-webkit-overflow-scrolling:touch;border-top:1px solid #dfc8d1;border-bottom:1px solid #dfc8d1;border-radius:0;background:#fffdfa}
#table-wrap:focus-visible{outline:2px solid #8d4e65;outline-offset:3px}
#table-wrap::-webkit-scrollbar{height:12px}
#table-wrap::-webkit-scrollbar-track{background:#f1dfe5}
#table-wrap::-webkit-scrollbar-thumb{background:#a86a80;border:3px solid #f1dfe5;border-radius:8px}
#journal-table{display:table;width:100%;min-width:860px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;text-align:left}
#journal-table caption{font-size:14px}
#journal-table .sheet-col-date{width:152px}
#journal-table .sheet-col-name{width:180px}
#journal-table .sheet-col-amount{width:118px}
#journal-table .sheet-col-actions{width:156px}
#journal-table thead{display:table-header-group;background:#f2e1e7;color:#694651;font-size:13px}
#journal-table tbody{display:table-row-group;width:auto;min-width:0;padding:0}
#journal-table tr{display:table-row;position:static;margin:0;padding:0;border:0;border-radius:0;background:#fffdfa;box-shadow:none}
#journal-table thead tr{background:#f2e1e7}
#journal-table th,#journal-table td{display:table-cell;position:static;padding:0!important;min-width:0;max-width:none;width:auto;border:0;border-right:1px solid #e6d2da;border-bottom:1px solid #e6d2da;border-radius:0;vertical-align:top;overflow-wrap:normal;white-space:normal;line-height:1.45;grid-column:auto;grid-row:auto;order:initial;text-align:left}
#journal-table th{padding:14px 12px!important;font-size:13px;font-weight:600;vertical-align:middle}
#journal-table th:last-child,#journal-table td:last-child{border-right:0}
#journal-table tbody tr:last-child td{border-bottom:0}
#journal-table th.sheet-amount{text-align:right}
#journal-table .sheet-cell{background:#fffdfa}
#journal-table .sheet-input{display:block;width:100%;min-width:0;max-width:100%;min-height:54px;margin:0;padding:15px 11px;border:0;border-radius:0;background:transparent;color:#45323b;font:400 16px/1.5 Inter,"Segoe UI",Arial,sans-serif;box-shadow:none;caret-color:#8a4e65;transition:background .15s;appearance:auto}
#journal-table .sheet-input::placeholder{color:#80626f;opacity:1}
#journal-table .sheet-input:hover{background:#fbf0f3}
#journal-table .sheet-input:focus{outline:2px solid #8d4e65;outline-offset:-2px;box-shadow:none;background:#fffafc}
#journal-table .sheet-input[aria-invalid=true]{outline:2px solid #a43a50;outline-offset:-2px;background:#fff0f3}
#journal-table .sheet-input:disabled{color:#80626f;background:#f6eeef;cursor:wait}
#journal-table .sheet-input::selection{background:#e6becd;color:#452a36}
#journal-table textarea.sheet-input{height:54px;min-height:54px;max-height:200px;resize:vertical;overflow:auto;white-space:pre-wrap}
#journal-table .sheet-amount .sheet-input{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:#774559}
#journal-table .sheet-date .sheet-input{padding-left:9px;padding-right:7px;font-variant-numeric:tabular-nums;font-size:15px}
#journal-table .sheet-row:hover .sheet-cell{background:#fffbfc}
#journal-table .sheet-dirty .sheet-cell,#journal-table .sheet-new-row .sheet-cell{background:#fcf0f4}
#journal-table .sheet-new-row .sheet-input::placeholder{color:#80566a}
#journal-table .sheet-row-actions{padding:5px 6px!important;text-align:right;vertical-align:middle;white-space:nowrap;background:#fffdfa}
#journal-table .sheet-row-actions button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0 0 0 2px;padding:10px;border:1px solid transparent;border-radius:8px;font-size:13px;line-height:1;background:transparent;color:#80536a;vertical-align:middle;cursor:pointer}
#journal-table .sheet-row-actions button:first-child{margin-left:0}
#journal-table .sheet-row-actions button svg{width:19px;height:19px;stroke-width:1.7}
#journal-table .sheet-row-actions button:hover{background:#efdce4;color:#6d3d52}
#journal-table .sheet-row-actions button:focus-visible{outline:2px solid #8d4e65;outline-offset:1px}
#journal-table .sheet-row-actions .sheet-save{background:#92556d;color:#fffafc}
#journal-table .sheet-new-row .sheet-save{width:94px;gap:4px;padding:8px}
#journal-table .sheet-new-row .sheet-save svg{width:16px;height:16px}
#journal-table .sheet-row-actions .sheet-save:hover{background:#794358;color:#fffafc}
#journal-table .sheet-row-actions .sheet-cancel{background:#f7edf0;color:#75505f}
#journal-table .sheet-row-actions button:disabled{opacity:.5;cursor:wait}
#journal-table .sheet-row-error{padding:10px 12px!important;color:#93344b;background:#fff0f3;font-size:13px;line-height:1.6;border-bottom:1px solid #e7c4ce;white-space:normal;overflow-wrap:anywhere}
#journal-table .sheet-row-error td{padding:10px 12px!important;background:#fff0f3;overflow-wrap:anywhere}
.sheet-help{padding:13px 26px 9px;color:#765967;font-size:12px;line-height:1.65}
.sheet-help p{margin:0}.sheet-help #draft-status:not(:empty){margin-top:6px;color:#76485b;font-weight:600}
.sheet-swipe-hint{display:none;font-size:12px;line-height:1.6;color:#765967;margin:0 0 10px}
@media(max-width:900px){.sheet-swipe-hint{display:block}.sheet-help{padding:12px 20px 9px}}
@media(max-width:580px){
  .application main,.ledger{min-width:0;max-width:100%}
  #table-wrap{width:100%;max-width:100%;border:1px solid #dfc8d1;border-radius:10px;overflow-x:auto;overflow-y:visible}
  #journal-table{display:table;min-width:860px;width:100%;font-size:14px}
  #journal-table thead{display:table-header-group}
  #journal-table tbody{display:table-row-group;padding:0}
  #journal-table tr{display:table-row;margin:0;padding:0;border:0;border-radius:0;position:static}
  #journal-table th,#journal-table td{display:table-cell;position:static;padding:0!important;border-right:1px solid #e6d2da;border-bottom:1px solid #e6d2da;vertical-align:top;min-height:0;max-width:none;width:auto;grid-column:auto;grid-row:auto;order:initial}
  #journal-table th{padding:13px 12px!important;font-size:13px}
  #journal-table th:first-child,#journal-table .sheet-date{position:static;background:#fffdfa}
  #journal-table th:first-child{background:#f2e1e7}
  #journal-table .sheet-dirty .sheet-date,#journal-table .sheet-new-row .sheet-date{background:#fcf0f4}
  #journal-table .sheet-row-actions{padding:5px 6px!important;vertical-align:middle}
  #journal-table .sheet-row-error{padding:10px 12px!important}
  #journal-table .sheet-input{font-size:16px;min-height:54px}
  #journal-table .sheet-date .sheet-input{font-size:16px;padding-left:9px;padding-right:7px}
  .sheet-help{padding:12px 2px 7px;font-size:12px}.sheet-swipe-hint{display:block;margin-top:3px}
}
/* People by date: a continuous spreadsheet on desktop and phone. */
.matrix-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.matrix-setup{display:grid;gap:12px;margin:0 0 20px}.matrix-setup:has(>form[hidden]):not(:has(>form:not([hidden]))){display:none}
.matrix-inline-form{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:12px 16px;max-width:660px;padding:18px 20px;border:1px solid #dec4cf;border-radius:12px;background:#f8ebf0}
.matrix-inline-form .field{margin:0}.matrix-inline-form input{width:100%;font-size:16px;min-height:48px;background:#fffdfa}.matrix-inline-form .button{min-height:48px}.matrix-inline-form .form-error{grid-column:1/-1;margin:0}.matrix-form-actions{display:flex;align-items:center;gap:8px}
#table-wrap{position:relative;max-width:100%;min-width:0;overflow-x:auto;overflow-y:auto;max-height:70dvh;isolation:isolate}
#matrix-table{display:table;width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:#fffdfa;color:#49343f;font-size:14px;text-align:left}
#matrix-table thead{display:table-header-group;background:#f0dce4;color:#684452;font-size:13px}
#matrix-table tbody{display:table-row-group;width:auto;padding:0;min-width:0}
#matrix-table tfoot{display:table-footer-group;background:#f4e6eb;color:#704458;font-weight:600}
#matrix-table tr{display:table-row;position:static;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#matrix-table th,#matrix-table td{display:table-cell;position:static;min-width:0;max-width:none;width:auto;padding:0!important;border:0;border-right:1px solid #dcbfcf;border-bottom:1px solid #dcbfcf;border-radius:0;vertical-align:middle;white-space:normal;overflow-wrap:normal;line-height:1.45;grid-column:auto;grid-row:auto;order:initial;text-align:right;background:#fffdfa}
#matrix-table th:last-child,#matrix-table td:last-child{border-right:0}
#matrix-table thead th{position:sticky;top:0;z-index:2;padding:14px 10px!important;background:#f0dce4;color:#684452;font-size:13px;font-weight:600;text-align:center}
#matrix-table .matrix-date,#matrix-table .matrix-cell{width:140px;min-width:140px;max-width:140px}
#matrix-table .matrix-person{position:sticky;left:0;z-index:1;width:190px;min-width:190px;max-width:190px;padding:13px 47px 13px 13px!important;background:#fff8fa;color:#523743;text-align:left;font-size:14px;font-weight:600;overflow-wrap:anywhere;box-shadow:1px 0 0 #cda6b8}
#matrix-table thead .matrix-person{z-index:3;background:#ead1dc;padding-right:13px!important}
#matrix-table .person-name{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#matrix-table .rename-person{position:absolute;top:5px;right:2px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border:0;border-radius:8px;background:transparent;color:#82516a}
#matrix-table .rename-person svg{width:17px;height:17px}.matrix-inline-form button:focus-visible,#matrix-table button:focus-visible{outline:2px solid #8d4e65;outline-offset:-2px}
#matrix-table .rename-person:hover{background:#efdae4}
#matrix-table .money-input{display:block;width:100%;min-width:0;max-width:100%;height:54px;min-height:54px;margin:0;padding:14px 12px;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:#543442;caret-color:#8d4e65;text-align:right;font:400 16px/1.5 Inter,"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;appearance:auto}
#matrix-table .money-input::placeholder{color:#826573;opacity:1}
#matrix-table .money-input:hover{background:#fcf0f5}
#matrix-table .money-input:focus{outline:2px solid #8d4e65;outline-offset:-2px;box-shadow:none;background:#fff8fb}
#matrix-table .money-input::selection{background:#e4bccb;color:#452a36}
#matrix-table .money-input:disabled{background:#f4e9ee;color:#765c68;cursor:wait}
#matrix-table .cell-dirty{background:#f8e7ef}
#matrix-table .cell-dirty .money-input{background:#f8e7ef}
#matrix-table .money-input[aria-invalid=true]{outline:2px solid #a43a50;outline-offset:-2px;background:#fff0f3}
#matrix-table .cell-tools{display:flex;align-items:center;justify-content:flex-end;gap:3px;padding:0 5px 5px}
#matrix-table .cell-tools button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:10px;border:0;border-radius:8px;font-size:13px;background:#f2dce6;color:#754659}
#matrix-table .cell-tools .cell-save{background:#92556d;color:#fffafc}
#matrix-table .cell-tools .cell-save:hover{background:#784358}
#matrix-table .cell-tools .cell-cancel:hover{background:#e6c9d7}
#matrix-table .cell-tools button:disabled{opacity:.5;cursor:wait}
#matrix-table .cell-tools svg{width:18px;height:18px;stroke-width:1.7}
#matrix-table .cell-error{display:block;max-width:140px;padding:4px 8px 10px;color:#94364e;background:#fff0f3;font-size:12px;text-align:left;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#matrix-table .matrix-total{width:120px;min-width:120px;max-width:120px;padding:14px 12px!important;background:#f8edf2;color:#79465d;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
#matrix-table thead .matrix-total{background:#ead1dc;text-align:center}
#matrix-table tfoot th,#matrix-table tfoot td{padding:14px 12px!important;background:#f0dfe7;color:#704458;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;border-bottom:0}
#matrix-table tfoot .matrix-person{background:#ead1dc;text-align:left;padding-right:13px!important}
#matrix-table tfoot .matrix-total{background:#e9d2dd}
.matrix-empty{padding:24px 26px;color:#765967;font-size:14px;line-height:1.7}
#save-all{margin-left:auto;min-height:46px;font-size:14px}
#save-all:disabled{background:#e5d5dc;color:#624b56;opacity:1;box-shadow:none;cursor:default}
@media(max-width:800px){.heading-row{align-items:flex-start}.matrix-heading-actions{flex-direction:column;align-items:stretch}.matrix-heading-actions .button{min-height:46px}.matrix-inline-form{max-width:none}}
@media(max-width:580px){
  .matrix-heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:19px}.matrix-heading-actions .button{width:100%;min-width:0;min-height:48px;padding:12px 9px;font-size:14px}
  .matrix-inline-form{grid-template-columns:minmax(0,1fr);padding:16px;gap:12px}.matrix-inline-form .field{font-size:14px}.matrix-inline-form .button{width:100%;font-size:15px}.matrix-inline-form input{font-size:16px}
  #table-wrap{position:relative;max-width:100%;width:100%;max-height:65dvh;overflow-x:auto;overflow-y:auto;border-radius:10px;isolation:isolate}
  #matrix-table{display:table;min-width:100%;width:max-content;table-layout:fixed}
  #matrix-table thead{display:table-header-group}#matrix-table tbody{display:table-row-group;padding:0}#matrix-table tfoot{display:table-footer-group}
  #matrix-table tr{display:table-row;position:static;padding:0;margin:0;border:0;border-radius:0}
  #matrix-table th,#matrix-table td{display:table-cell;grid-column:auto;grid-row:auto;order:initial;min-height:0;padding:0!important;border-right:1px solid #dcbfcf;border-bottom:1px solid #dcbfcf;vertical-align:middle}
  #matrix-table .matrix-date,#matrix-table .matrix-cell{width:120px;min-width:120px;max-width:120px}
  #matrix-table thead th{position:sticky;top:0;padding:13px 8px!important;font-size:12px}
  #matrix-table .matrix-person{position:sticky;left:0;width:130px;min-width:130px;max-width:130px;padding:12px 35px 12px 9px!important;font-size:13px}
  #matrix-table .rename-person{right:0;padding:13px;width:36px;min-width:36px;height:44px;min-height:44px}
  #matrix-table .rename-person svg{width:15px;height:15px}
  #matrix-table .money-input{min-height:54px;height:54px;padding:14px 9px;font-size:16px}
  #matrix-table .cell-tools{gap:3px;padding:0 4px 5px}#matrix-table .cell-tools button{width:44px;min-width:44px;height:44px;min-height:44px}
  #matrix-table .cell-error{max-width:120px;font-size:12px;padding:5px 8px 8px}
  #matrix-table .matrix-total{min-width:120px;max-width:120px;width:120px;padding:13px 10px!important;font-size:13px}
  #matrix-table tfoot th,#matrix-table tfoot td{padding:14px 9px!important;font-size:13px}
  #matrix-table tfoot .matrix-person{padding-right:9px!important}
  .matrix-empty{padding:20px 2px;font-size:14px}
  #save-all{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:16px;right:16px;width:auto;margin:0;min-height:54px;z-index:5;font-size:16px;border-radius:14px;box-shadow:0 5px 20px #67384a30}
  #save-all:disabled{box-shadow:none}
  .application main{padding-bottom:calc(105px + env(safe-area-inset-bottom))}
  .table-footer{flex-wrap:wrap;justify-content:space-between}.table-footer .save-status{margin-left:auto}
}
