
:root{--bg:#f6f7f3;--paper:#fff;--ink:#20372f;--muted:#7b867e;--green:#224e40;--lime:#dce9a8;--line:#e3e7df;--danger:#a83535;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;touch-action:manipulation}button,.button{border:0;border-radius:9px;padding:12px 18px;font-size:14px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:disabled{opacity:.5;cursor:wait}button:hover,.button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a0ba72;outline-offset:3px}.primary{background:var(--green);color:#fff}.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.quiet,.text-button{background:transparent;color:var(--green);padding:8px 0}.danger{color:var(--danger);background:#fff0f0}.muted{color:var(--muted)}.small,small{font-size:12px;line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;margin:0 0 12px;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:38px;letter-spacing:-1.5px;line-height:1.15;font-weight:550;margin-bottom:14px}h2{font-size:20px;letter-spacing:-.5px;font-weight:600;margin-bottom:12px}h3{font-size:15px}p{line-height:1.6;font-size:14px}.wordmark{font-size:23px;line-height:1.1;font-weight:650;color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px;letter-spacing:-.8px}.sidebar{width:224px;position:fixed;left:0;top:0;height:100dvh;border-right:1px solid var(--line);padding:36px 24px;background:#f0f3eb;display:flex;flex-direction:column}.nav-label{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:58px 12px 14px}.nav{width:100%;justify-content:flex-start;gap:14px;color:#68796c;background:transparent;margin:4px 0;font-weight:500}.nav.active{background:var(--green);color:#fff}.sidebar-footer{margin-top:auto;font-size:11px;color:#7b867e}.sidebar-footer button{display:block;margin-top:22px;font-size:12px}.live-dot{display:inline-block;width:6px;height:6px;background:#83a46b;border-radius:50%;margin-right:6px}main{margin-left:224px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px;background:#fbfcf9}.private-badge{border:1px solid var(--line);padding:7px 11px;border-radius:20px;font-size:10px;color:#61705f}.page{max-width:1480px;margin:auto;padding:42px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:6px 0 30px}.page-heading p:last-child{margin-bottom:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}.month-control{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.month-control input{width:auto;font-size:13px;background:#fff}.export-buttons{display:flex;gap:8px}.stats{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:18px;margin-bottom:24px}.stat{padding:26px;background:#fff;border:1px solid var(--line);border-radius:14px;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:14px}.stat>span{font-size:12px;color:#758173}.stat strong{font-size:36px;font-weight:500;letter-spacing:-1.2px;line-height:1}.stat small{color:#90998d;font-size:11px}.stat.featured{background:var(--green);border-color:var(--green);color:#fff}.stat.featured>span,.stat.featured small{color:#d4e2d3}.stat-decoration{position:absolute;right:24px;top:58px;font-size:45px;font-weight:200;color:var(--lime)}.insight-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-bottom:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px}.panel-heading h2{margin:0}.panel-heading .eyebrow{font-size:9px;margin-bottom:8px}.pill{font-size:10px;padding:6px 10px;border:1px solid var(--line);border-radius:30px;white-space:nowrap;color:var(--muted)}.category-row{margin:18px 0}.category-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.category-label span:last-child{font-variant-numeric:tabular-nums;color:#5b6c60}.bar-track{height:7px;background:#f0f2eb;border-radius:8px;overflow:hidden}.bar-fill{height:100%;border-radius:8px;background:#89a77a}.category-row:nth-child(3n+1) .bar-fill{background:#315c48}.category-row:nth-child(3n+2) .bar-fill{background:#bacd8b}.category-bar{width:100%;accent-color:#315c48;height:10px;display:block}.category-bar::-webkit-meter-bar{background:#f0f2eb;border:0;border-radius:8px}.category-bar::-webkit-meter-optimum-value{background:#87a779;border-radius:8px}.store-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #f0f2ec;font-size:12px}.store-row:last-child{border:0}.store-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f0f4e8;color:#60704f;font-weight:650}.store-name{flex:1;min-width:0;overflow-wrap:anywhere}.store-name small{display:block;color:var(--muted);font-size:10px}.store-amount{font-variant-numeric:tabular-nums}.search input{font-size:12px;background:#fafbf8;width:220px}.receipt-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.receipt-table th{color:var(--muted);font-size:10px;font-weight:500;padding:12px 10px;border-bottom:1px solid var(--line)}.receipt-table td{padding:17px 10px;border-bottom:1px solid #f0f2eb}.receipt-table tr:last-child td{border:0}.receipt-table td:last-child,.receipt-table th:last-child{text-align:right}.receipt-table .store-cell{font-weight:600}.receipt-table button{font-size:12px;padding:0;background:none;color:var(--green);text-align:left}.receipt-table .amount{font-variant-numeric:tabular-nums;font-weight:600}.empty{padding:30px 12px;text-align:center;color:var(--muted);line-height:1.7;font-size:13px}.empty b{display:block;color:var(--ink);font-size:15px;font-weight:500;margin:10px}.empty button{margin-top:16px}.capture-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:34px;align-items:start}.upload-panel{text-align:center;padding:55px 25px}.scan-icon{font-size:40px;display:block;margin-bottom:24px;color:#668354}.upload-panel .button{display:flex;max-width:260px;margin:12px auto}.upload-panel small{display:block;margin-top:18px}.upload-panel .text-button{margin-top:22px;font-size:12px}.capture-note{padding:32px}.capture-note h2{font-size:32px;line-height:1.2;margin-bottom:30px}.capture-note ol{list-style:none;counter-reset:steps;padding:0}.capture-note li{counter-increment:steps;position:relative;padding-left:45px;margin:28px 0}.capture-note li:before{content:counter(steps);position:absolute;left:0;top:0;width:28px;height:28px;display:grid;place-items:center;background:#e7ecd9;border-radius:50%;font-size:12px}.capture-note li b{display:block;font-size:14px;margin-bottom:6px}.capture-note li span{font-size:12px;color:var(--muted);line-height:1.5;display:block}.note{background:#eaf0df;padding:16px;border-radius:9px;font-size:12px}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.login-art{background:var(--green);color:#fff;padding:45px 65px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.login-art h1{font-size:52px;font-weight:450;line-height:1.1}.login-art .eyebrow,.login-art p,.login-art small{color:#c4d3b6}.login-art>div{padding-top:55px}.paper{background:#fafbef;color:var(--ink);padding:32px 28px;margin:38px 0 -15px 30px;transform:rotate(-7deg);box-shadow:0 16px 45px #112c222e;max-width:310px;clip-path:polygon(0 0,100% 0,100% 96%,97% 100%,94% 96%,91% 100%,88% 96%,85% 100%,82% 96%,79% 100%,76% 96%,73% 100%,70% 96%,67% 100%,64% 96%,61% 100%,58% 96%,55% 100%,52% 96%,49% 100%,46% 96%,43% 100%,40% 96%,37% 100%,34% 96%,31% 100%,28% 96%,25% 100%,22% 96%,19% 100%,16% 96%,13% 100%,10% 96%,7% 100%,4% 96%,0 100%)}.paper span{font-size:8px;letter-spacing:1.6px}.paper b{font-size:23px;display:block;margin:20px 0;font-weight:500}.paper-lines{height:75px;background:repeating-linear-gradient(transparent 0 15px,#dce3d1 15px 16px);margin-bottom:22px}.login-form{display:grid;place-items:center;padding:40px}.login-form form{max-width:350px;width:100%}.login-form h2{font-size:36px;font-weight:500;line-height:1.2;letter-spacing:-1px}.login-form .primary{width:100%;justify-content:space-between;margin:22px 0 8px}.login-form>form>label{margin-top:32px}.mobile-brand{display:none}label{font-size:12px;display:block;color:#536559}input,select,textarea{display:block;width:100%;border:1px solid #dce2d7;border-radius:7px;padding:10px 12px;color:var(--ink);background:#fff;margin-top:7px;min-height:42px}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--green);margin:0;flex-shrink:0}.checkbox{display:flex;align-items:center;gap:9px;margin:18px 0;font-size:11px}.error{color:var(--danger);font-size:13px;line-height:1.5;white-space:pre-line}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:var(--green);color:#fff;padding:14px 22px;border-radius:10px;box-shadow:0 8px 30px #20372f30;max-width:90vw;font-size:13px}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(1100px,96vw);max-height:92dvh;color:var(--ink);background:#fcfdf9}dialog::backdrop{background:#132c2466;backdrop-filter:blur(3px)}.editor-header{display:flex;justify-content:space-between;padding:25px 30px;border-bottom:1px solid var(--line)}.editor-header h2{margin:0}.icon-button{background:transparent;font-size:26px;padding:0 10px;align-self:flex-start}.editor-layout{display:flex;gap:26px;padding:26px 30px}.photo-pane{width:28%;flex-shrink:0}.photo-pane img{width:100%;max-height:460px;object-fit:contain;background:#e9ede3;border-radius:8px}.photo-pane button{width:100%;margin:12px 0}.editor-fields{flex:1;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.items-heading{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.items-heading h3{margin:0}.item-row{padding:13px 0;border-bottom:1px solid var(--line)}.item-main{display:flex;gap:8px;align-items:end}.item-main label:first-child{flex:1}.remove-item{background:#f4eee9;color:#956a56;min-height:42px;padding:8px 13px}.item-values{display:grid;grid-template-columns: .7fr 1fr 1fr 1.3fr;gap:8px;margin-top:8px}.item-values label{font-size:10px}.item-values input,.item-values select{font-size:12px;padding:8px;min-width:0}.reconciliation{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;background:#eaf0df;border-radius:8px;padding:14px;margin:18px 0;font-size:12px}.reconciliation.mismatch{background:#fff0dd;color:#84591e}.editor-footer{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:#fcfdf9;padding:18px 30px;border-top:1px solid var(--line);z-index:2}.editor-footer .danger{margin-right:auto}.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}[hidden]{display:none!important}
@media(min-width:1500px){.page{padding:48px 64px}.topbar{padding:0 64px}}@media(max-width:1100px){.sidebar{width:185px;padding:30px 18px}main{margin-left:185px}.page{padding:30px 24px}.topbar{padding:0 24px}h1{font-size:32px}.stat{padding:23px 18px}.stat strong{font-size:30px}.panel{padding:22px}.insight-grid{gap:16px}.capture-note{padding:25px 10px}.editor-layout{gap:18px;padding:22px}.photo-pane{width:25%}.login-art{padding:40px}.login-art h1{font-size:42px}}
@media(max-width:760px){.sidebar{width:100%;height:68px;top:auto;bottom:0;z-index:10;padding:5px 12px;border-right:0;border-top:1px solid var(--line);background:#f9fbf5;padding-bottom:max(5px,env(safe-area-inset-bottom))}.sidebar>.wordmark,.nav-label,.sidebar-footer{display:none}.sidebar nav{display:flex;justify-content:space-around}.nav{font-size:18px;flex-direction:column;gap:3px;width:30%;padding:6px;margin:0;background:transparent;color:#819176}.nav span{font-size:10px}.nav.active{background:#e8eedb;color:var(--green)}main{margin-left:0;padding-bottom:80px}.topbar{height:62px;padding:0 20px}.private-badge{font-size:9px}.page{padding:26px 18px}.page-heading{align-items:flex-start;margin:2px 0 24px}.page-heading>button{font-size:12px;padding:11px;white-space:nowrap}.page-heading h1{font-size:28px;letter-spacing:-.9px}.page-heading p.muted{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.5px}.stats{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.stat.featured{grid-column:1/-1}.stat{padding:22px 18px;gap:12px}.stat strong{font-size:30px}.stat.featured strong{font-size:42px}.stat-decoration{top:43px;font-size:55px}.stat small{font-size:10px}.stat>span{font-size:11px}.insight-grid{grid-template-columns:1fr;gap:16px;margin-bottom:16px}.panel{padding:22px 18px}.panel-heading{margin-bottom:20px}.panel-heading h2{font-size:18px}.toolbar{gap:10px;align-items:end}.month-control{display:block}.month-control input{font-size:12px;padding:9px;max-width:160px}.export-buttons{gap:6px}.export-buttons .button{padding:11px 10px;font-size:11px}.receipt-table th,.receipt-table td{padding:14px 5px;font-size:11px}.receipt-table .item-count{display:none}.receipt-table th.item-count{display:none}.receipts-panel .panel-heading{align-items:start;flex-direction:column}.search,.search input{width:100%}.capture-grid{grid-template-columns:1fr;gap:0}.upload-panel{padding:40px 20px}.capture-note{padding:30px 12px}.capture-note h2{font-size:28px}.capture-note h2 br{display:none}.login{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:36px 24px;min-height:100dvh}.mobile-brand{display:block;font-size:25px;letter-spacing:-.8px;margin-bottom:58px}.login-form h2{font-size:34px}dialog{width:100%;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0}.editor-header{padding:22px 18px}.editor-layout{display:block;padding:20px 18px}.photo-pane{width:100%;margin-bottom:24px}.photo-pane img{max-height:270px}.editor-footer{padding:14px 16px;padding-bottom:max(14px,env(safe-area-inset-bottom));flex-wrap:wrap}.editor-footer button{font-size:12px;padding:12px}.form-grid{gap:12px}.item-values{grid-template-columns:1fr 1fr}.item-values input,.item-values select{font-size:16px}.editor-fields input,.editor-fields textarea{font-size:16px}.reconciliation{font-size:11px}}
@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s,filter .15s}.page{animation:appear .2s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

.topbar-actions{display:flex;align-items:center;gap:12px}.mobile-logout{display:none}@media(max-width:760px){.mobile-logout{display:inline-flex;font-size:11px}.private-badge{display:none}}

body:has(dialog[open]){overflow:hidden}@media(max-width:760px){dialog{max-width:none}}

#camera-dialog{width:min(760px,96vw)}.camera-body{padding:20px}.camera-body video{display:block;width:100%;max-height:min(60dvh,calc(92dvh - 260px));min-height:180px;object-fit:contain;background:#132c24;border-radius:10px}.camera-body p{margin:14px 0 0}@media(max-width:760px){#camera-dialog{width:100%}}
.connection-panel{margin-bottom:22px;max-width:860px}.connection-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.connection-panel code{overflow-wrap:anywhere;font-size:12px}.connection-panel select{max-width:620px}.connection-panel .checkbox{align-items:flex-start;line-height:1.6}.connection-panel .checkbox input{margin-top:2px}#plan-welcome{max-width:520px}#plan-welcome .camera-body{padding:28px}@media(max-width:760px){.nav{width:24%}.connection-panel .panel-heading{align-items:flex-start;flex-direction:column}}

/* Keep German price labels readable on desktop and phones. */
.item-values{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.item-values{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{flex-wrap:wrap;gap:14px}.topbar{gap:8px}.private-badge{white-space:normal}.nav{width:25%}}
