:root{--bg: #0e1411;--surface: #18201c;--surface-2: #222c27;--line: #2c3832;--text: #f1ece0;--muted: #95a39b;--felt-1: #1f5c43;--felt-2: #123a2b;--accent: #e8b04a;--accent-ink: #261a05;--debt: #ff6b5e;--ok: #5fd39a;--radius: 18px;--tabbar-h: 64px;--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0}body{background:var(--bg);color:var(--text);font:16px/1.45 -apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:var(--accent);text-decoration:none}h1,h2,h3{margin:0;line-height:1.2}h3{font-size:1.05rem;margin-bottom:10px}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.mono{font-family:ui-monospace,SF Mono,Menlo,monospace}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.pad{padding:32px 0}.grow{flex:1;min-width:0}.row{display:flex;gap:8px;align-items:center}.row-between{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.row-between h3{margin-bottom:10px}.stack{display:flex;flex-direction:column;gap:16px}.eyebrow{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.text-danger,.debt{color:var(--debt)}.splash{display:grid;place-items:center;height:100dvh;font-size:48px}.shell{min-height:100dvh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.topbar-title{display:flex;flex-direction:column;min-width:0}.topbar-name{font-weight:700;font-size:1.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{max-width:560px;margin:0 auto;padding:8px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px)}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;height:calc(var(--tabbar-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:.7rem;font-weight:600}.tab.active{color:var(--accent)}.icon-btn{width:40px;height:40px;flex:none;display:grid;place-items:center;border:0;border-radius:50%;background:var(--surface-2);color:var(--text)}.icon-btn.sm{width:28px;height:28px;font-size:.65rem}.icon-btn:disabled{opacity:.3}.hero{display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 16px 16px;border-radius:24px;background:radial-gradient(120% 90% at 50% 0%,var(--felt-1),var(--felt-2) 70%);box-shadow:inset 0 1px #ffffff14}.hero-compact{padding-top:16px}.hero-pill{padding:5px 14px;border-radius:999px;background:#ffffff1f;font-size:.85rem;font-weight:600}.hero-amount{font-size:clamp(2.6rem,13vw,3.4rem);font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.hero-split{width:100%;display:grid;grid-template-columns:1fr 1fr;border:1px solid rgba(255,255,255,.14);border-radius:14px;margin-top:6px}.hero-split>div{display:flex;flex-direction:column;align-items:center;padding:10px 6px;gap:2px}.hero-split>div+div{border-left:1px solid rgba(255,255,255,.14)}.hero-split span{font-size:.8rem;color:#f1ece0bf}.hero-split strong{font-size:1.15rem}.card{background:var(--surface);border-radius:var(--radius);padding:16px}.section-title{font-size:.95rem;color:var(--muted);font-weight:600;margin-bottom:10px}.debt-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.debt-amount{font-size:1.8rem;font-weight:800;color:var(--ok);font-variant-numeric:tabular-nums}.debt-card.has-debt .debt-amount{color:var(--debt)}.debt-badge{font-size:.8rem;padding:6px 10px;border-radius:999px;background:var(--surface-2);white-space:nowrap}.stat-list,.member-list,.history,.type-list{list-style:none;margin:0;padding:0}.stat-list li{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:8px 0;border-top:1px solid var(--line)}.stat-list li:first-child{border-top:0}.avatar{--hue: 140;width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;font-weight:700;font-size:.85rem;background:hsl(var(--hue) 45% 30%);color:hsl(var(--hue) 70% 88%)}.member-list li{border-top:1px solid var(--line)}.member-list li:first-child{border-top:0}.member-list.compact li{display:flex;align-items:center;gap:12px;padding:10px 0}.member-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px 0;background:none;border:0;text-align:left}.member-row.inactive{opacity:.5}.sub{display:block;font-size:.85rem;color:var(--muted)}.sub.debt{color:var(--debt)}.chev{color:var(--muted);font-size:1.4rem;line-height:1}.role{font-size:.72rem;font-weight:700;padding:4px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.role-owner{background:#e8b04a29;color:var(--accent)}.role-kassenwart{background:#5fd39a24;color:var(--ok)}.hist-group+.hist-group{margin-top:20px}.hist-day{font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding-bottom:8px}.hist-person{background:var(--bg);border-radius:14px;padding:10px 12px}.hist-person.is-open{padding-bottom:4px}.hist-person+.hist-person{margin-top:8px}.hist-person-head{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;text-align:left}.hist-person.is-open .hist-person-head{padding-bottom:6px}.hist-chevron{color:var(--muted);font-size:1.4rem;line-height:1;transition:transform .15s}.hist-chevron.open{transform:rotate(90deg)}.hist-person-head .avatar{width:32px;height:32px;font-size:.75rem}.avatar-cash{background:var(--surface-2);font-size:1rem!important}.hist-person-name{font-weight:700}.hist-person-name .sub{font-weight:400}.hist-person-sums{display:flex;gap:10px;font-weight:700;font-size:.95rem}.history li{display:flex;gap:10px;padding:8px 0;border-top:1px solid var(--line);align-items:center}.history li:first-child{border-top:0}.hist-icon{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--surface);font-size:.95rem}.hist-title{font-size:.95rem}.hist-meta{font-size:.75rem;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}.hist-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.hist-amount{font-weight:700}.debt{color:var(--debt)}.plus{color:var(--ok)}.hist-amount.plus:before,.hist-amount.minus:before{content:"+"}.hist-amount.minus:before{content:"−"}.reversed .hist-title,.reversed .hist-amount{text-decoration:line-through;opacity:.5}.tag{font-size:.7rem;padding:1px 6px;border-radius:6px;background:var(--surface-2);color:var(--muted)}.link-btn{background:none;border:0;padding:0;color:var(--muted);font-size:.8rem;text-decoration:underline}.member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}.member-chip{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:16px;background:var(--surface);border:2px solid transparent;transition:transform .1s,border-color .15s}.member-chip:active{transform:scale(.96)}.member-chip.selected{border-color:var(--accent);background:var(--surface-2)}.chip-name{font-weight:600;font-size:.9rem;line-height:1.2;max-width:100%;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.chip-debt{font-size:.75rem;color:var(--muted)}.penalty-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;transition:opacity .2s}.step-disabled .penalty-grid{opacity:.35}.penalty-btn{min-height:96px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:8px;padding:14px;border-radius:16px;border:0;text-align:left;background:linear-gradient(160deg,#3a201d,#2a1715);box-shadow:inset 0 1px #ffffff0f;transition:transform .1s}.penalty-btn:not(:disabled):active{transform:scale(.96)}.penalty-name{font-weight:600;line-height:1.25}.penalty-amount{font-size:1.25rem;font-weight:800;color:#ffb3aa}.penalty-custom{background:var(--surface)}.penalty-custom .penalty-amount{color:var(--muted);font-size:1rem}.type-list li{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line)}.type-list li:first-child{border-top:0}.reorder{display:flex;flex-direction:column;gap:4px;padding:6px 0}.type-row{flex:1;display:flex;align-items:center;gap:12px;padding:14px 0;background:none;border:0;text-align:left}.form{display:flex;flex-direction:column;gap:14px}.form label,.label-text{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted);font-weight:500}input:not([type=checkbox]){width:100%;padding:14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);font-size:16px;outline:none}input:focus{border-color:var(--accent)}.money-input{display:flex;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}.money-input:focus-within{border-color:var(--accent)}.money-input input{border:0;background:none;font-size:1.2rem;font-weight:700;font-variant-numeric:tabular-nums}.money-input span{padding-right:14px;color:var(--muted);font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:999px;border:0;font-weight:700;font-size:1rem;transition:transform .1s,opacity .15s}.btn:not(:disabled):active{transform:scale(.98)}.btn:disabled{opacity:.45}.btn.full{width:100%}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-secondary{background:var(--surface-2);color:var(--text)}.btn-danger{background:var(--debt);color:#2a0703}.btn-danger-outline{background:transparent;color:var(--debt);border:1px solid color-mix(in srgb,var(--debt) 50%,transparent)}.error-box{margin:0;padding:10px 12px;border-radius:10px;background:#ff6b5e1f;color:var(--debt);font-size:.9rem}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px;gap:4px;border-radius:14px;background:var(--surface)}.segmented button{padding:10px;border:0;border-radius:10px;background:none;color:var(--muted);font-weight:600}.segmented button.active{background:var(--surface-2);color:var(--text)}.toggle{flex-direction:row!important;align-items:center;gap:6px;color:var(--muted)}.big-amount{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0 8px}.big-amount .num{font-size:3rem;font-weight:800;letter-spacing:-.02em}.quick-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:-4px}.quick{padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);font-weight:600;font-size:.9rem;font-variant-numeric:tabular-nums}.quick.active{border-color:var(--accent);color:var(--accent)}.payment-result{padding:12px 14px;border-radius:12px;background:var(--bg);display:flex;flex-direction:column;gap:4px}.payment-result>div{display:flex;justify-content:space-between;color:var(--muted)}.payment-result strong{color:var(--ok)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease-out}.sheet{width:100%;max-width:560px;max-height:92dvh;overflow-y:auto;background:var(--surface);border-radius:24px 24px 0 0;padding:8px 16px calc(20px + var(--safe-bottom));animation:slide-up .22s cubic-bezier(.2,.9,.3,1)}.sheet-handle{width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 10px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sheet-head h2{font-size:1.2rem}@keyframes slide-up{0%{transform:translateY(100%)}}@keyframes fade{0%{opacity:0}}.credentials{background:var(--bg);border-radius:14px;padding:14px;margin-bottom:14px}.credentials dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:10px 0 14px;align-items:baseline}.credentials dt{color:var(--muted);font-size:.85rem}.credentials dd{margin:0}.credentials dd.big{font-size:1.4rem;font-weight:700;color:var(--accent);letter-spacing:.04em}.toast,.confirm-bar{position:fixed;left:16px;right:16px;z-index:60;bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 12px);max-width:528px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;background:var(--text);color:var(--bg);box-shadow:0 10px 30px #0006;animation:fade .15s}.toast-error{background:var(--debt);color:#2a0703}.toast-action{background:none;border:0;color:var(--felt-1);font-weight:800;white-space:nowrap}.confirm-bar{flex-wrap:wrap;background:var(--surface-2);color:var(--text)}.confirm-bar .btn{min-height:40px}.auth{max-width:420px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 48px) 16px 32px;display:flex;flex-direction:column;gap:20px}.auth-brand{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.auth-brand h1{font-size:2rem;font-weight:800;letter-spacing:-.02em}.dice-row{display:flex;gap:8px;margin-bottom:8px}.die{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:var(--text);box-shadow:0 6px #cfc6b3}.die:after{content:"";width:14px;height:14px;border-radius:50%;background:#b8322a}.die:nth-child(1){transform:rotate(-8deg)}.die:nth-child(3){transform:rotate(7deg)}.profile-head{display:flex;align-items:center;gap:14px}.profile-head .avatar{width:56px;height:56px;font-size:1.1rem}.profile-name{font-size:1.2rem;font-weight:700}@media (min-width: 720px){.member-grid{grid-template-columns:repeat(4,1fr)}}.invite-card{display:flex;flex-direction:column;gap:12px}.invite-card h3,.invite-card p{margin:0}.invite-link{padding:12px;border-radius:12px;background:var(--bg);font-size:.85rem;word-break:break-all;color:var(--accent)}.auth .btn{text-decoration:none}.form p{margin:0}.step{display:flex;flex-direction:column;gap:12px}.step-head{display:flex;align-items:center;gap:10px}.step-head h3{margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.step-no{width:26px;height:26px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:.85rem}.step-disabled .step-no{background:var(--surface-2);color:var(--muted)}.step-hint{margin:0}.step .member-chip{background:var(--bg)}.step .member-chip.selected{background:var(--surface-2)}.picked{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--bg);border:2px solid var(--accent);animation:fade .15s}.picked-name{display:block;font-weight:700;font-size:1.05rem}.btn-sm{min-height:38px;padding:0 14px;font-size:.9rem}.tonight{display:flex;flex-direction:column;gap:14px}.tonight h3{margin:0}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;gap:8px}.tile{display:flex;flex-direction:column;gap:2px;padding:12px 10px;border-radius:14px;background:var(--bg);min-width:0}.tile.card{background:var(--surface)}.tile-value{font-size:1.3rem;font-weight:800;overflow:hidden;text-overflow:ellipsis}.tile-label{font-size:.75rem;color:var(--muted)}.highlights{list-style:none;margin:0;padding:0}.highlights li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}.highlights li:first-child{border-top:0}.hl-icon{width:28px;text-align:center;font-size:1.1rem}.hl-value{font-weight:700;text-align:right}.rounds{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.round{background:var(--bg);border-radius:12px}.round-head{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;background:none;border:0;text-align:left}.round-no{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--surface-2);font-weight:800;font-size:.85rem}.round-no.live{background:var(--accent);color:var(--accent-ink)}.round-title{display:block;font-weight:600}.round-total{font-weight:700}.round-items{list-style:none;margin:0;padding:0 12px 8px 52px}.round-items li{display:flex;gap:8px;padding:5px 0;font-size:.9rem;border-top:1px solid var(--line)}.round-items li.round-end{color:var(--debt)}.page-title{font-size:1.4rem}.year-select{padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-size:1rem;font-weight:700}.hero-split.three{grid-template-columns:repeat(3,1fr)}.month-chart{display:flex;flex-direction:column;gap:8px}.chart-readout{display:flex;flex-direction:column;gap:0;min-height:62px}.chart-readout strong{font-size:1.4rem}.bars{display:grid;grid-template-columns:repeat(12,1fr);align-items:end;height:140px;border-bottom:1px solid var(--line)}.bar-slot{height:100%;display:flex;align-items:flex-end;justify-content:center;background:none;border:0;padding:0 1px}.bar{width:min(100%,22px);min-height:0;border-radius:4px 4px 0 0;background:var(--accent);opacity:.85;transition:opacity .15s}.bar-slot.active .bar{opacity:1;box-shadow:0 0 0 2px var(--surface)}.bars:has(.active) .bar-slot:not(.active) .bar{opacity:.4}.bar-axis{display:grid;grid-template-columns:repeat(12,1fr);text-align:center;font-size:.7rem;color:var(--muted)}.ranking{list-style:none;margin:0;padding:0}.ranking li{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.ranking li:first-child{border-top:0}.ranking .avatar{width:34px;height:34px;font-size:.75rem}.rank{width:18px;text-align:center;color:var(--muted);font-weight:700}.ranking li:first-child .rank{color:var(--accent)}.rank-name{display:block;font-weight:600}.rank-total{font-weight:700}.share{display:block;height:4px;margin-top:6px;border-radius:2px;background:var(--surface-2);overflow:hidden}.share span{display:block;height:100%;border-radius:2px;background:var(--accent);opacity:.7}.stat-list.two li{grid-template-columns:1fr auto}.tag-round{margin-left:8px;background:#e8b04a29;color:var(--accent);vertical-align:middle}.check-row{flex-direction:row!important;align-items:flex-start;gap:12px!important;color:var(--text)!important}.check-row input{width:22px;height:22px;margin-top:2px;accent-color:var(--accent);flex:none}
