*{box-sizing:border-box}body{margin:0;background:#f6f5f0;color:#1c342f;font:16px/1.5 "Segoe UI",sans-serif}header,main{max-width:1120px;margin:auto;padding:20px clamp(16px,4vw,48px)}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #bec7bd}a{color:#245e4b}header a:first-child{font:bold 23px Georgia;text-decoration:none}header a:last-child{font-size:14px}small,label{display:block;font-size:13px}h1{font:normal clamp(38px,6vw,64px)/1.12 Georgia,serif;margin:6px 0 16px}h2{font:normal 27px Georgia;margin:7px 0}.heading,.settle,.row,form{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.heading{margin:20px 0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid #c9cfc5;border-radius:12px;overflow:hidden}.metrics article{padding:clamp(12px,3vw,30px)}.metrics article:first-child{background:#234f42;color:white}.metrics strong{display:block;font:normal clamp(20px,4vw,42px) Georgia;white-space:nowrap;margin-top:8px}.settle{padding:22px 4px;border-bottom:1px solid #bcc6bb}.actions{display:flex;align-items:start;gap:14px;flex-wrap:wrap;margin:24px 0 32px}.actions details,.list,.preview{background:#fff;border:1px solid #ccd2c8;border-radius:8px;padding:13px 16px}.actions details[open]{flex:auto}.actions form{justify-content:start;padding-top:16px}form{align-items:end}input,select,button{font:inherit;border:1px solid #aebcb1;border-radius:5px;padding:8px;background:white;color:inherit}label>input:not([type=checkbox]),label>select{display:block;max-width:100%}button{background:#245541;color:#fff;cursor:pointer}summary{cursor:pointer;font-weight:600}.list{margin:10px 0}.list span{color:#597365;margin-left:10px}.row{border-top:1px solid #dfe4dc;padding:14px 0}.row:first-of-type{margin-top:12px}.row small{color:#58685f}.amount{width:95px}.check{align-self:center}.notice{background:#ffedc5;padding:12px}.preview{display:grid;justify-content:start}.preview a{margin-top:8px}@media(max-width:600px){.metrics{grid-template-columns:1fr 1fr}.metrics article:first-child{grid-column:span 2}.row form{width:100%;justify-content:start}.actions{display:grid}.row b{overflow-wrap:anywhere}}
.sheet{overflow:auto;background:white;border-radius:8px;margin-top:12px}.sheet table{width:100%;border-collapse:collapse;font-size:14px}.sheet td,.sheet th{padding:7px;text-align:left;border-bottom:1px solid #dfe4dc}.sheet th{color:#344f42;background:#ebeee8;white-space:nowrap}.sheet input:not([type=checkbox]),.sheet select{width:100%;min-width:68px;padding:6px}.sheet td:nth-child(2){min-width:165px}.sheet input[type=checkbox]{width:19px;height:19px;accent-color:#245541}.sheet tr:has(input[type=checkbox]:not(:checked)){background:#f1f1ec;color:#637063}.sheet tr[data-dirty=true]{box-shadow:inset 3px 0 #ad772e}#grid-tools{position:sticky;bottom:0;background:#f6f5f0;padding:12px 0;display:flex;align-items:center;gap:12px}#feedback{flex:1}button:disabled{opacity:.55}.actions textarea{display:block;font:inherit;width:100%}#add{background:white;color:#245541}
header nav,header nav form{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}header{flex-wrap:wrap;gap:10px}.signin{max-width:380px;justify-content:stretch}.signin input{width:100%}
.sheet .delete-row{color:#8e382f;background:transparent;border-color:#d6bab4}.sheet tr[data-deleted=true] td:not(:last-child){opacity:.5;text-decoration:line-through}
body{background:#fbf5e8;color:#40352d}header,main{max-width:1280px}header{border-color:#a99883}header a,header a:first-child{color:#613825}header a:first-child{font:normal 26px Georgia,serif}.heading{margin:28px 0 16px}.heading h1{font:normal clamp(40px,6.6vw,82px)/1.07 Georgia,serif;letter-spacing:-.04em}.house-total{display:flex;align-items:baseline;gap:16px;border-block:3px double #87745e;padding:12px 0;font:normal 21px Georgia}.house-total strong{font:normal 27px Georgia}.settle{border-bottom:1px solid #c9bba8;padding:14px 0}.settle h2{color:#813e26}.actions{margin:14px 0 26px}.actions details,.preview{background:#fffaf0;border-color:#cdbfae}.books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,48px)}.book{min-width:0}.book-title{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #78654f;padding-bottom:8px}.book-title h2,.book-title strong{font:normal clamp(23px,3vw,36px) Georgia,serif}.book-title strong{font-variant-numeric:tabular-nums}.book table,.book tbody{display:block;width:100%}.book tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 10px;padding:12px 0;border-bottom:1px solid #c8bba7}.book td{min-width:0;overflow-wrap:anywhere;grid-column:span 2}.book td:nth-child(2){grid-column:1/5;grid-row:1;font-weight:600;align-self:end}.book td[data-label="Betrag (€)"]{grid-column:5/7;grid-row:1;text-align:right;font-weight:600}.book td:nth-child(1){grid-column:span 3}.book td[data-label="Im Haushalt"]{grid-column:span 1}.book td[data-label]::before{content:attr(data-label);display:block;font:12px/1.5 "Segoe UI",sans-serif;color:#685949}.book td input:not([type=checkbox]),.book td select{width:100%;padding:4px 2px;background:transparent;border:0;border-bottom:1px dotted #a79279;border-radius:0;font:inherit}.book td[data-label="Betrag (€)"] input{text-align:right}.book input[type=checkbox]{accent-color:#86442c;width:19px;height:19px}button{background:#813e26;border-color:#813e26}.add-entry,.delete-row{background:transparent;color:#763a26;border:0;text-decoration:underline;text-underline-offset:3px}.add-entry{padding:9px 0}.book td:last-child{align-self:end;text-align:right}.book tr[data-deleted=true] td:not(:last-child){opacity:.55;text-decoration:line-through}.book tr[data-dirty=true]{background:#f7ecd5}.empty{color:#6b5b4b;font-style:italic}#grid-tools{background:#fbf5e8;border-top:1px solid #b6a48d;margin-top:24px}#grid-tools small{color:#685949}.notice{background:#f3e7d2}a{color:#794329}@media(max-width:760px){.books{grid-template-columns:1fr}.book-title{padding-top:12px}.heading form{width:100%}.house-total{flex-wrap:wrap}#grid-tools{flex-wrap:wrap}.book td input,.book td select{min-height:32px}}
.month-nav{display:flex;align-items:center;gap:clamp(6px,1.4vw,18px);max-width:100%}.month-nav h1{margin:0}.month-nav a{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #b6a48d;border-radius:50%;text-decoration:none;font-size:23px}.month-nav a:hover,.month-nav a:focus-visible{background:#efe2cf;border-color:#813e26}@media(max-width:600px){.month-nav h1{font-size:clamp(26px,7vw,40px)}}
/* Journal layout */
body{background:#faf7ef;color:#332f29}header,main{max-width:1160px}.month-nav h1{font-size:clamp(30px,5vw,62px)}.month-nav a{border:0}.journal-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-block:1px solid #b6ac9c;padding:14px 0;margin:16px 0 32px}.journal-summary .house-total,.journal-summary .settle{border:0;margin:0;padding:0}.journal-summary .settle h2{font:16px "Segoe UI",sans-serif}.journal-summary .settle button{font-size:13px}.books{gap:clamp(22px,5vw,68px)}.book-title h2,.book-title strong{font:normal 29px Georgia,serif}.book tr{grid-template-columns:7.8rem minmax(0,1fr) minmax(64px,auto) 30px;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #d5ccbd}.book tr td:nth-child(n){grid-column:auto;grid-row:auto;min-width:0;align-self:center;font-weight:400}.book td[data-label]::before{display:none}.book td[data-label="Datum"]{font-size:14px;color:#685949}.book td[data-label="Betrag (€)"]{font-variant-numeric:tabular-nums;text-align:right}.book [data-key=budgetAmount]{max-width:88px}.book td input:not([type=checkbox]){border:0;background:transparent}.book td input:hover,.book td input:focus{background:#eee7d9}.book .row-options{position:relative}.row-options summary{display:grid;place-items:center;cursor:pointer;width:30px;height:32px;font-weight:bold}.row-options details>div{position:absolute;right:0;z-index:2;background:#fffaf0;border:1px solid #b6ac9c;padding:4px}.book .row-options button{white-space:nowrap}.book .add-entry{font-size:14px}.books+.actions{margin-top:30px}.book tr[data-deleted=true] .row-options{opacity:1}.book td input:focus-visible,.row-options summary:focus-visible{outline:2px solid #884529}
.actions .settings[open]{flex:1 1 36rem;max-width:44rem;min-width:0}
.actions .settings form{display:grid;gap:0;justify-content:stretch;align-items:stretch;padding-top:8px}
.settings .setting{display:grid;grid-template-columns:minmax(0,1fr) 12rem;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #d5ccbd}
.setting label{font-size:15px;font-weight:600}.setting small{margin-top:3px;color:#685949}
.setting select,.setting textarea,.percent-field input{background:#fffdf6;border:1px solid #b6a48d;border-radius:4px;padding:7px;min-width:0;font:inherit}
.setting .percent-field{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:400}.percent-field input{width:5em;text-align:right}
.settings .rules-setting{align-items:start}.settings textarea{resize:vertical}.settings form>button{justify-self:end;margin-top:14px}
@media(max-width:600px){.settings .setting{grid-template-columns:1fr;gap:8px}.actions .settings[open]{width:100%}.setting select{justify-self:start}}

.book tr[data-id=""]:not([data-dirty="true"]) .row-options{visibility:hidden}

.book td input[type=date]{display:block;min-width:0;width:100%;font-size:14px;color:#514839}.book td input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}
form.import-review{display:block;max-width:56rem}.review-month{margin:1.75rem 0}.review-month h2{border-bottom:1px solid #aa9784;padding-bottom:.5rem}.review-month h2 label{font:inherit}.review-entry{display:grid;grid-template-columns:24px 44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #d5ccbd;font-size:16px;cursor:pointer}.review-entry span{overflow-wrap:anywhere}.review-entry strong{font-variant-numeric:tabular-nums;white-space:nowrap}.review-entry time,.review-entry small{color:#685949;font-size:13px}.review-entry small{display:block}.import-review input[type=checkbox]{width:18px;height:18px;accent-color:#813e26}.import-review footer{position:sticky;bottom:0;background:#faf7ef;display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #b6a48d;padding:12px 0}.import-review output{margin-right:auto;font-weight:600}
.book .row-options .delete-row{display:inline-grid;place-items:center;width:30px;height:32px;padding:0;text-decoration:none}
.delete-row span,tr[data-deleted=true] .delete-row svg{display:none}
tr[data-deleted=true] .delete-row span{display:inline;font-size:21px}

.journal-summary.settlement-panel{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch;gap:0;padding:0;background:#f3ecdf;border-block:1px solid #aa9784}
.settlement-result,.settlement-detail{padding:clamp(16px,2.4vw,28px)}
.settlement-result{background:#533525;color:#fff7e9;display:flex;align-items:center}
.settlement-result h2{margin:0;color:inherit;font:500 17px/1.35 "Segoe UI",sans-serif}
.settlement-result strong{display:block;margin-top:3px;font:normal clamp(38px,4.6vw,62px)/1.12 Georgia,serif;font-variant-numeric:lining-nums tabular-nums}
.settlement-detail{align-self:center}
.settlement-detail dl,.settlement-detail dd{margin:0}
.settlement-detail dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;font:14px/1.5 "Segoe UI",sans-serif}
.settlement-detail dt{color:#655445}
.settlement-detail dd{text-align:end;font-variant-numeric:tabular-nums}
.settlement-detail .house-total{padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid #cdbfae}
.settlement-detail .house-total dd{font:normal 22px/1.2 Georgia,serif}
.settlement-detail .settle{margin-top:12px;justify-content:flex-end}
.settlement-detail .settle button{background:transparent;color:#663c28;border:1px solid #9c816b;padding:6px 12px}
.settlement-detail .settle button:hover{background:#eadcc9}
@media(max-width:680px){.journal-summary.settlement-panel{grid-template-columns:1fr}.settlement-result,.settlement-detail{padding:14px 18px}.settlement-detail .settle button{min-height:40px}}
#entries>.books+h2{margin-top:32px}.book tr td.entry-actions{grid-column:1/-1;text-align:right}.entry-actions:empty,.book tr[data-id=""] .entry-actions{display:none}.entry-actions .move-entry{background:transparent;border:0;color:#75452d;font-size:13px;padding:3px 5px;text-decoration:underline}.book[data-kind=regular] .to-regular,.book[data-kind=advance] .to-advance{display:none}.book[data-kind=regular] .cleared-label{display:none}.book[data-kind=advance] .cleared-label{display:inline-flex;align-items:center;gap:4px}.history-entry{padding:14px 0;border-bottom:1px solid #cdbfae}
.avatar{display:inline-grid;flex:none;place-items:center;vertical-align:middle;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#e6d9c8;color:#583b29;font:600 16px Georgia,serif}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.book-title h2,header nav a.profile-link,.photo-editor h2{display:flex;align-items:center;gap:8px}header nav a.profile-link{font:inherit;text-decoration:underline;text-underline-offset:3px}.photo-editor{max-width:34rem}.photo-editor h2{margin-bottom:20px}.photo-editor .avatar{width:80px;height:80px;font-size:32px}.photo-editor form{display:grid;justify-content:start;gap:8px;margin-bottom:16px}.photo-editor button{justify-self:start}.remove-photo{background:transparent;color:#783e29}
