:root{--bg:#f7f7f4;--card:#fff;--ink-strong:#0b0b0b;--ink:#3d4348;--muted:#8a8d91;--warn:#dc2626;--due:#d97706;--ok:#15803d;--border:#3d43482e;--brand-blue:#1e9cd7;--brand-blue-deep:#1273b5;--brand-black:#0b0b0b;--hero-bg:linear-gradient(135deg, #1273b5, #1e9cd7);--card-radius:8px;--card-shadow:0 1px 2px #1273b50f;font-family:Nunito Sans,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0}.muted{color:var(--muted)}.small{font-size:.85rem}.strong{font-weight:700}.warn{color:var(--warn)}.due{color:var(--due)}.ok{color:var(--ok)}.error{color:var(--warn);font-size:.9rem}h1{margin:0 0 4px;font-size:1.6rem}h2{margin:0;font-size:1rem}button{cursor:pointer;font-family:inherit}input,select,.btn-secondary{font-family:inherit;font-size:1rem}input,select{border:1px solid var(--border);width:100%;min-height:52px;color:var(--ink-strong);background:#fff;border-radius:4px;margin:0;padding:0 14px;font-weight:600}button.link,button.link-center{color:var(--brand-blue);background:0 0;border:none;padding:8px 0;font-weight:600}button.link-center{text-align:center;width:100%;display:block}button.link:hover:not(:disabled),button.link-center:hover:not(:disabled){color:var(--brand-blue-deep)}.btn-primary,.btn-secondary{border-radius:4px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:52px;font-size:16px;font-weight:700;text-decoration:none;display:flex}.btn-primary{background:var(--brand-blue);color:#fff;border:none}.btn-primary:hover:not(:disabled){background:var(--brand-blue-deep)}.btn-primary:disabled{opacity:.5;cursor:default}.btn-secondary{color:var(--ink-strong);border:1px solid var(--border);background:#fff}.btn-sm{flex-grow:1;width:auto;min-height:44px;font-size:15px}.app-shell{background:var(--card);flex-direction:column;max-width:430px;min-height:100vh;margin:0 auto;display:flex;position:relative}.screen{flex-direction:column;flex-grow:1;min-height:100vh;display:flex}.screen-body{flex-direction:column;flex-grow:1;gap:20px;padding:20px 16px 96px;display:flex}.auth-screen{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{text-align:center;width:100%;max-width:380px}.auth-logo{max-width:200px;margin:0 auto 16px;display:block}.auth-title{color:var(--ink-strong);font-size:1.8rem;font-weight:800}.auth-sub{color:var(--muted);margin:0 0 20px}.auth-form{text-align:left;flex-direction:column;gap:10px;display:flex}.auth-form label{color:var(--muted);font-size:.9rem;font-weight:600;display:block}.auth-form input{margin-top:4px}.auth-form .btn-primary{margin-top:8px}.hero{background:var(--hero-bg);color:#fff;flex-direction:column;gap:4px;padding:20px 24px 28px;display:flex}.hero-top{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.hero-wordmark{letter-spacing:-.02em;font-size:16px;font-weight:800}.hero-avatar-btn{color:#fff;background:#ffffff1f;border:none;border-radius:999px;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.hero-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#ffffffd9;font-size:13px;font-weight:600}.owed-number{letter-spacing:-.02em;margin:2px 0;font-size:52px;font-weight:800;line-height:1}.hero-status{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.hero-status-sub{color:#ffffffd9;font-size:13px}.hero-nudge{color:#ffffffd9;align-items:center;gap:6px;margin-top:10px;font-size:12px;display:flex}.header-brand{background:var(--hero-bg);color:#fff;flex-direction:column;gap:14px;padding:16px 16px 20px;display:flex}.header-brand-plain{gap:10px}.header-brand-top-row{justify-content:space-between;align-items:center;display:flex}.header-brand-edit-btn{color:#fff;background:0 0;border:none;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.back-link{color:#ffffffd9;background:0 0;border:none;align-items:center;gap:8px;min-height:44px;padding:0;font-size:14px;font-weight:600;display:flex}.header-brand-title{letter-spacing:-.02em;font-size:22px;font-weight:800}.header-brand-row{justify-content:space-between;align-items:flex-end;display:flex}.header-brand-main{flex-direction:column;gap:2px;display:flex}.header-brand-name{letter-spacing:-.02em;font-size:22px;font-weight:800}.header-brand-sub{color:#ffffffbf;font-size:13px}.header-brand-owed{flex-direction:column;align-items:flex-end;display:flex}.header-brand-owed-label{text-transform:uppercase;letter-spacing:.08em;color:#ffffffd9;font-size:12px;font-weight:600}.header-brand-owed-amount{font-size:26px;font-weight:800}.controls-row{flex-direction:column;gap:10px;display:flex}.search-field{border:1px solid var(--border);min-height:44px;color:var(--muted);background:#fff;border-radius:4px;align-items:center;gap:8px;padding:0 14px;display:flex}.search-field input{min-height:42px;color:var(--ink-strong);background:0 0;border:none;flex-grow:1;padding:0}.search-clear-btn{width:32px;height:32px;color:var(--muted);background:0 0;border:none;justify-content:center;align-items:center;display:flex}.section{flex-direction:column;gap:10px;display:flex}.section-title{text-transform:uppercase;letter-spacing:.06em;color:var(--ink);font-size:14px;font-weight:700}.section-title-warn{color:var(--warn)}.section-title-due{color:var(--due)}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--card-radius);box-shadow:var(--card-shadow);text-align:left;flex-direction:column;gap:12px;width:100%;padding:16px;display:flex}.card-row{flex-direction:row;justify-content:space-between;align-items:center}.card-main-link{text-align:left;width:100%;color:inherit;background:0 0;border:none;justify-content:space-between;align-items:flex-start;gap:12px;padding:0;display:flex}.card-main{flex-direction:column;gap:2px;display:flex}.card-name{color:var(--ink-strong);font-size:17px;font-weight:700}.card-right{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.card-owed{font-size:20px;font-weight:800}.card-actions{gap:8px;display:flex}.pill{border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700}.pill-warn-solid{background:var(--warn);color:#fff}.pill-warn-soft{color:var(--warn);background:#dc26261a;padding:2px 10px;font-size:11px}.pill-due-solid{background:var(--due);color:#fff}.pill-due-soft{color:var(--due);background:#d977061f;padding:2px 10px;font-size:11px}.ok-check{color:var(--ok);align-items:center;gap:6px;font-size:14px;font-weight:700;display:flex}.fab{background:var(--brand-blue);color:#fff;border:none;border-radius:999px;justify-content:center;align-items:center;width:56px;height:56px;display:flex;position:fixed;bottom:24px;right:calc(50% - 195px);box-shadow:0 4px 12px #1273b540}@media (width<=430px){.fab{right:20px}}.statement-card{background:var(--card);border:1px solid var(--border);border-radius:var(--card-radius);box-shadow:var(--card-shadow);overflow:hidden}.statement-period{color:var(--ink-strong);background:#3d43480d;border-top:1px solid #3d43481a;padding:12px 16px;font-size:13px;font-weight:700}.statement-card>div:first-child>.statement-period{border-top:none}.statement-row{border-top:1px solid #3d43481a;flex-direction:column;gap:4px;padding:12px 16px;display:flex}.statement-row-main{justify-content:space-between;font-size:14px;display:flex}.statement-row-flat{flex-direction:row;justify-content:space-between;font-size:14px}.statement-explainer{padding-top:2px}.statement-empty{margin:0;padding:12px 16px}.sticky-actions{background:linear-gradient(to top, var(--bg) 70%, #f7f7f400);gap:8px;padding:12px 16px 20px;display:flex;position:sticky;bottom:0}.sticky-actions .btn-secondary{width:auto;padding:0 18px}.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--card-radius);flex-direction:column;gap:14px;padding:16px;display:flex}.field{flex-direction:column;flex-grow:1;gap:6px;display:flex}.field-label{color:var(--ink);font-size:13px;font-weight:700}.field-row{gap:12px;display:flex}.explainer-card{border-radius:var(--card-radius);background:#1e9cd714;border:1px solid #1e9cd74d;flex-direction:column;gap:2px;padding:14px 16px;display:flex}.explainer-title{color:var(--brand-blue-deep);font-size:14px;font-weight:700}.sheet-overlay{z-index:50;background:#0b0b0b8c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:#fff;border-radius:14px 14px 0 0;flex-direction:column;gap:18px;width:100%;max-width:430px;padding:12px 20px 28px;display:flex;box-shadow:0 -8px 24px #0b0b0b33}.sheet-handle{background:#3d434833;border-radius:999px;align-self:center;width:40px;height:4px}.sheet-head{flex-direction:column;gap:4px;display:flex}.sheet-title{color:var(--ink-strong);letter-spacing:-.02em;font-size:20px;font-weight:800}.amount-input{min-height:56px;color:var(--ink-strong);font-size:28px;font-weight:800}.chip-row{gap:8px;display:flex}.chip{border:1px solid var(--border);min-height:44px;color:var(--ink);background:#fff;border-radius:999px;flex-grow:1;font-size:14px;font-weight:700}.chip-selected{border:1px solid var(--brand-blue);color:var(--brand-blue-deep);background:#1e9cd71a}.sheet-actions{flex-direction:column;gap:10px;display:flex}.settings-list{padding:0;overflow:hidden}.settings-row{border:none;border-bottom:1px solid var(--border);width:100%;min-height:56px;color:var(--ink-strong);text-align:left;background:0 0;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;font-size:15px;font-weight:700;display:flex}.settings-row:last-child{border-bottom:none}.settings-row-danger{color:var(--warn);gap:8px}.pill-ok-soft{color:var(--ok);background:#15803d1a;font-size:12px}.pill-muted-soft{color:var(--muted);background:#3d434814;font-size:12px}.bullet-list{flex-direction:column;gap:6px;margin:0;padding-left:20px;font-size:14px;display:flex}.center-text{text-align:center}.key-input-row{align-items:stretch;gap:8px;display:flex}.key-input-row input{flex-grow:1}.key-toggle-btn{border:1px solid var(--border);min-width:56px;color:var(--muted);background:0 0;border-radius:4px;flex-shrink:0;font-size:13px;font-weight:700}.error-card{border-radius:var(--card-radius);color:var(--ink);background:#dc262614;border:1px solid #dc26264d;padding:14px 16px;font-size:13px}.error-card strong{color:var(--warn)}.status-card{border-radius:var(--card-radius);flex-direction:column;gap:8px;padding:18px;font-size:14px;display:flex}.status-card-ok{background:#15803d14;border:1px solid #15803d4d}.status-card-title{color:var(--ok);align-items:center;gap:8px;font-size:16px;font-weight:800;display:flex}.test-link-card{border:1px solid var(--border);border-radius:var(--card-radius);background:#3d43480d;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.test-link-url{word-break:break-all;color:var(--ink-strong);font-size:12px}.reminder-preview-card{background:var(--card);border:1px solid var(--border);box-shadow:var(--card-shadow);border-radius:8px 8px 8px 2px;padding:14px 16px;font-size:14px;line-height:1.55}.brand-link{color:var(--brand-blue)}.settings-manage{flex-direction:column;gap:10px;margin-top:8px;display:flex}.danger-link{color:var(--warn)}.pay-nudge{border-radius:var(--card-radius);background:#1e9cd714;border:1px solid #1e9cd74d;align-items:center;gap:8px;padding:12px 14px;display:flex}.pay-nudge-body{text-align:left;background:0 0;border:none;flex-direction:column;flex-grow:1;gap:2px;padding:0;display:flex}.pay-nudge-title{color:var(--brand-blue-deep);font-size:14px;font-weight:800}.pay-nudge-dismiss{color:var(--muted);background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.payment-result-body{text-align:center;flex-grow:1;justify-content:center;align-items:center;gap:8px}.payment-result-title{color:var(--ink-strong);font-size:20px;font-weight:800}.empty-body{text-align:center;flex-direction:column;flex-grow:1;justify-content:center;align-items:center;gap:20px;padding:32px;display:flex}.empty-copy{flex-direction:column;align-items:center;gap:6px;display:flex}.empty-title{color:var(--ink-strong);font-size:18px;font-weight:800}.empty-sub{max-width:260px}.empty-body .btn-primary{width:auto;padding:0 28px}.toast{left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:1000;border-radius:var(--card-radius);color:#fff;cursor:pointer;max-width:calc(100% - 32px);padding:12px 16px;font-size:.95rem;position:fixed;transform:translate(-50%);box-shadow:0 4px 12px #0000002e}.toast-success{background:var(--ok)}.toast-error{background:var(--warn)}.field-label-row{align-items:center;gap:2px;display:flex}.info-btn{width:28px;height:28px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;margin:-6px 0;padding:0;transition:color .15s,background-color .15s;display:inline-flex}.info-btn:hover,.info-btn[aria-expanded=true]{color:var(--brand-blue-deep);background:#1e9cd71a}.info-btn:focus-visible{outline:2px solid var(--brand-blue);outline-offset:1px}.field-hint{border-left:3px solid var(--brand-blue);border-radius:0 var(--card-radius) var(--card-radius) 0;color:var(--ink);background:#1e9cd712;margin:0;padding:10px 12px;font-size:13px;line-height:1.45;animation:.15s ease-out field-hint-in}@keyframes field-hint-in{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.field-hint{animation:none}.info-btn{transition:none}}a.settings-row{color:var(--ink);box-sizing:border-box;font-weight:600;text-decoration:none}.legal-body{color:var(--ink);gap:0;padding-bottom:32px;line-height:1.55}.legal-body h2{color:var(--ink-strong);margin:20px 0 6px;font-size:16px}.legal-body p,.legal-body ul{margin:0 0 10px;font-size:15px}.legal-body ul{padding-left:20px}.legal-body li{margin-bottom:4px}.legal-meta{color:var(--muted);font-size:13px!important}.terms-check,.auth-form .terms-check{color:var(--ink);text-align:left;align-items:flex-start;gap:10px;font-size:14px;font-weight:400;line-height:1.45;display:flex}.terms-check input,.auth-form .terms-check input{width:20px;height:20px;min-height:0;accent-color:var(--brand-blue-deep);flex-shrink:0;margin:1px 0 0;padding:0}.auth-legal{color:var(--muted);text-align:center;margin:14px 0 0;font-size:13px}
