@font-face{font-family:Fraunces;src:url(/fonts/fraunces-latin.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}@font-face{font-family:DM Sans;src:url(/fonts/dmsans-latin.woff2)format("woff2");font-weight:100 1000;font-style:normal;font-display:swap}:root{--ink:#16161d;--muted:#4a4a57;--paper:#f5f3ee;--card:#fff;--primary:#2b2a6b;--primary-soft:#e9e8f3;--owed:#b4471f;--owed-soft:#fbeee8;--settled:#1f6b4a;--line:#e2dfd6;--line-strong:#cfcabc;--radius:14px;--shadow:0 1px 2px #16161d0d, 0 10px 28px -20px #16161d73;--font-display:"Fraunces", Georgia, "Times New Roman", serif;--font-body:"DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--wrap:720px;--gap:clamp(1.75rem, 4vw, 3.5rem);--tap:48px}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%}body{background:var(--paper);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased;overflow-wrap:break-word;margin:0;font-size:1rem;line-height:1.6}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--font-display);letter-spacing:-.015em;font-weight:700;line-height:1.12}button{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--ink);outline-offset:2px;border-radius:6px}.skip{z-index:100;background:var(--primary);color:#fff;border-radius:var(--radius);padding:12px 16px;font-weight:600;text-decoration:none;position:absolute;top:-80px;left:12px}.skip:focus{top:12px}.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding-inline:20px}.topbar{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);background:#f5f3eeeb;position:sticky;top:0}.topbar__inner{align-items:center;gap:8px;min-height:58px;display:flex}.topbar__brand{flex-direction:column;gap:1px;min-width:0;display:flex}.topbar__mark{font-family:var(--font-display);letter-spacing:.16em;text-transform:uppercase;color:var(--primary);font-size:1.05rem;font-weight:800;line-height:1.1}.topbar__shop{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.topbar__actions{flex:none;gap:8px;margin-left:auto;display:flex}.icon{flex:none;width:22px;height:22px}.hero{background:var(--primary);color:#fff;padding-block:clamp(1.75rem,4vw,2.75rem) clamp(1.5rem,4vw,2.5rem)}.hero__label{letter-spacing:.14em;text-transform:uppercase;color:#d9d8ea;font-size:.78rem;font-weight:600}.hero__amount{font-family:var(--font-display);letter-spacing:-.03em;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"lnum" 1, "tnum" 1;margin-top:6px;font-size:clamp(2.6rem,12vw,4.25rem);font-weight:800;line-height:1.02}.hero__meta{color:#d9d8ea;flex-wrap:wrap;gap:4px 14px;margin-top:14px;font-size:.9rem;display:flex}.hero__meta strong{color:#fff;font-weight:600}.actions{flex-wrap:wrap;gap:10px;padding-block:18px;display:flex}.btn{min-height:var(--tap);border-radius:var(--radius);color:var(--ink);cursor:pointer;background:#fff;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:1rem;font-weight:600;transition:transform .12s,background-color .12s;display:inline-flex}.btn:active{transform:translateY(1px)}.btn .icon{width:20px;height:20px}.btn--primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn--primary:hover{background:#232259}.btn--quiet{border-color:var(--line-strong);background:#fff}.btn--block{width:100%}.btn--small{min-height:44px;padding:0 14px;font-size:.9rem}.btn:disabled{opacity:.65;cursor:progress}.auth{padding-block:clamp(1.75rem,5vw,3.25rem) 0}.auth__title{letter-spacing:-.02em;font-size:clamp(1.9rem,6vw,2.5rem)}.auth__lede{color:var(--muted);max-width:46ch;margin-top:10px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:16px;margin-top:clamp(1.25rem,4vw,2rem);padding:clamp(1.1rem,3vw,1.6rem);display:flex}.field{flex-direction:column;gap:6px;display:flex}.field__label{font-size:.92rem;font-weight:600}.field__input{min-height:var(--tap);border:1px solid var(--line-strong);border-radius:var(--radius);width:100%;color:var(--ink);font:inherit;background:#fff;padding:0 14px}.field__input:focus-visible{outline:3px solid var(--primary);outline-offset:1px;border-color:var(--primary)}.form-error{background:var(--owed-soft);color:var(--owed);border-radius:var(--radius);border:1px solid #eccbbd;padding:10px 14px;font-size:.92rem;font-weight:600}.field__input--invalid{border-color:var(--owed);background:#fffaf8}.field__error{color:var(--owed);font-size:.88rem;font-weight:600}.sheet__form{flex-direction:column;gap:16px;margin-top:16px;display:flex}.boot{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:60vh;padding:24px;display:flex}.boot__title{font-size:1.3rem}.boot__text{color:var(--muted);max-width:40ch}.empty--error{background:var(--owed-soft);border-style:solid;border-color:#eccbbd}.empty--error .empty__title{color:var(--owed)}.customers{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.customer{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);min-height:var(--tap);color:inherit;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;text-decoration:none;transition:border-color .12s,background-color .12s;display:flex}.customer:hover{border-color:var(--line-strong);background:#fffefb}.customer__chevron{width:18px;height:18px;color:var(--muted);flex:none}.customer__main{flex-direction:column;min-width:0;display:flex}.customer__name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.customer__phone{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.82rem}.customer__amount{font-family:var(--font-display);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;flex:none;font-size:1.15rem;font-weight:700}.customer__amount--owed{color:var(--owed)}.topbar__back{min-height:44px;color:var(--primary);flex:none;align-items:center;gap:2px;padding-right:8px;font-size:.92rem;font-weight:600;text-decoration:none;display:inline-flex}.topbar__back .icon{width:20px;height:20px}.topbar__brand--compact{margin-left:4px}.detail{padding-block:clamp(1.25rem,3vw,2rem) clamp(.5rem,2vw,1rem)}.detail__head{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;padding:clamp(16px,4vw,22px);display:flex}.detail__identity{min-width:0}.detail__name{letter-spacing:-.02em;font-size:clamp(1.6rem,6vw,2.1rem)}.detail__phone{color:var(--muted);font-variant-numeric:tabular-nums;margin-top:4px}.detail__balance{text-align:right;flex-direction:column;gap:2px;display:flex}.detail__balance-label{letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-size:.75rem;font-weight:600}.detail__balance-amount{font-family:var(--font-display);letter-spacing:-.02em;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;font-size:clamp(1.8rem,7vw,2.4rem);font-weight:800;line-height:1.05}.detail__balance-amount--owed{color:var(--owed)}.entries{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.entry{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);min-height:var(--tap);flex-direction:column;justify-content:space-between;align-items:stretch;gap:10px;padding:12px 16px;display:flex}.entry__row{justify-content:space-between;align-items:center;gap:12px;display:flex}.entry__actions{justify-content:flex-end;gap:8px;display:flex}.btn--danger{background:var(--owed);color:#fff;border-color:var(--owed)}.btn--danger:hover{background:#9d3c19}.btn--danger-quiet{color:var(--owed);border-color:#eccbbd}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.receipt{border-top:1px dashed var(--line-strong);flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px;display:flex}.receipt__thumb{border:1px solid var(--line-strong);border-radius:var(--radius);cursor:pointer;background:#fff;flex:none;justify-content:center;align-items:center;width:56px;height:56px;padding:0;display:inline-flex;overflow:hidden}.receipt__img{object-fit:cover;width:100%;height:100%;display:block}.receipt__placeholder{background:var(--primary-soft);width:100%;height:100%}.receipt__error{flex-basis:100%}.layer__panel--viewer{max-width:min(92vw,560px);max-height:88vh;overflow:auto}.receipt__full{margin-top:12px}.receipt__full-img{border-radius:var(--radius);width:100%;height:auto;display:block}.reminder__text{resize:vertical;height:auto;min-height:128px;padding:12px 14px;line-height:1.5}.reminder__actions{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.reminder__actions .btn{flex:46%;text-decoration:none}.reminder__fallback{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;display:flex}.reminder__number{color:var(--muted);font-variant-numeric:tabular-nums}.reminder__note{color:var(--muted);text-align:left;margin-top:10px;font-size:.88rem}.backup__lede{color:var(--muted);max-width:60ch}.backup__actions{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.backup__actions .btn{flex:46%}.backup__note{color:var(--muted);margin-top:10px;font-size:.85rem}.backup__result{border:1px solid var(--line-strong);border-left:4px solid var(--settled);border-radius:var(--radius);background:#fff;margin-top:14px;padding:12px 14px}.backup__result--bad{border-left-color:var(--owed);background:var(--owed-soft)}.backup__errors{margin:8px 0 0;padding-left:20px;font-size:.9rem}.backup__file{color:var(--muted);margin-top:6px;font-size:.85rem}@media (width<=430px){.backup__actions{flex-direction:column}.backup__actions .btn{flex-basis:auto;width:100%}.reminder__actions{flex-direction:column}.reminder__actions .btn{flex-basis:auto;width:100%}}.entry__main{flex-direction:column;min-width:0;display:flex}.entry__date{font-variant-numeric:tabular-nums;font-weight:600}.entry__note{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.entry__side{flex:none;align-items:center;gap:10px;display:flex}.entry__type{letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:3px 8px;font-size:.72rem;font-weight:700}.entry__type--credit{background:var(--owed-soft);color:var(--owed)}.entry__type--payment{color:var(--settled);background:#e5f1eb}.entry__amount{font-family:var(--font-display);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;font-size:1.1rem;font-weight:700}.entry__amount--credit{color:var(--owed)}.entry__amount--payment{color:var(--settled)}@media (width<=430px){.detail__balance{text-align:left}}.detail__actions{padding-block:4px 8px}@media (width<=430px){.detail__actions{flex-direction:column}.detail__actions .btn{width:100%}}.section{padding-block:clamp(1.25rem,3vw,2rem)}.section__head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.section__title{font-size:1.15rem;font-weight:700}.section__count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85rem}.empty{background:var(--card);border:1px dashed var(--line-strong);border-radius:var(--radius);text-align:center;padding:28px 22px}.empty__mark{background:var(--primary-soft);width:52px;height:52px;color:var(--primary);border-radius:50%;justify-content:center;align-items:center;margin-bottom:12px;display:inline-flex}.empty__mark .icon{width:26px;height:26px}.empty__title{margin-bottom:6px;font-size:1.15rem}.empty__message{color:var(--muted);max-width:34ch;margin:0 auto;font-size:.94rem}.footer-note{color:var(--muted);text-align:center;padding-block:28px 40px;font-size:.8rem}.layer{z-index:60;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.layer__backdrop{cursor:pointer;background:#16161d73;border:none;padding:0;animation:.16s both fade;position:absolute;inset:0}.layer__panel{background:var(--paper);border-radius:var(--radius);width:100%;max-width:440px;padding:20px;animation:.16s both fade;position:relative;box-shadow:0 20px 60px -24px #16161d99}.sheet__title{margin-bottom:8px;font-size:1.35rem}.sheet__message{color:var(--ink)}.sheet__actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.sheet__actions .btn{flex:0 auto}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
