:root{--canvas: #f3f5f9;--bg: #ffffff;--surface: #f8fafc;--surface-alt: #eef2f7;--border: #e2e8f0;--border-strong: #cbd5e1;--primary: #1d4ed8;--primary-dark: #1e40af;--primary-darker: #1e3a8a;--primary-soft: #eff6ff;--primary-ring: rgba(29, 78, 216, .28);--text: #0f172a;--text-muted: #475569;--text-faint: #64748b;--text-on-primary: #ffffff;--paid: #15803d;--paid-soft: #ecfdf3;--overdue: #b91c1c;--overdue-soft: #fef2f2;--pending: #b45309;--pending-soft: #fffbeb;--info: #0e7490;--info-soft: #ecfeff;--disabled: #cbd5e1;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow: 0 12px 32px rgba(15, 23, 42, .16);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-pill: 999px;--touch: 48px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{font-family:var(--font);background:var(--canvas);color:var(--text);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}p{margin:0}a{color:var(--primary)}:focus-visible{outline:3px solid var(--primary-ring);outline-offset:2px}.app{max-width:560px;margin:0 auto;min-height:100%;height:100%;display:flex;flex-direction:column;background:var(--canvas);position:relative}.screen{flex:1;min-height:0;overflow-y:auto;padding:16px;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}.screen>*,.screen-flush>.scroll-body>*{flex-shrink:0}.screen-flush{padding:0;gap:0}.screen-flush>.scroll-body{flex:1;overflow-y:auto;padding:16px;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));scrollbar-gutter:stable both-edges;display:flex;flex-direction:column;gap:12px}.page-header{display:flex;align-items:center;gap:8px;min-height:48px}.page-header .page-back{margin-left:-12px}.page-heading{flex:1;min-width:0}.page-title{margin:0;font-size:22px;font-weight:750;letter-spacing:-.01em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-subtitle{font-size:13px;color:var(--text-faint);margin-top:2px}.page-actions{display:flex;align-items:center;gap:2px;margin-right:-8px}.badge-wrap{position:relative}.badge{position:absolute;top:6px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-pill);background:var(--overdue);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--canvas)}.tabbar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;display:flex;background:#fffffff5;-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0px);z-index:30}.tabbar-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:60px;color:var(--text-faint);text-decoration:none;border:none;background:transparent;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.tabbar-item.active{color:var(--primary)}.tabbar-item svg{display:block}.tabbar-item .icon-box{width:52px;height:28px;border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;background:transparent;transition:background-color .15s ease}.tabbar-item.active .icon-box{background:var(--primary-soft)}.topbar{display:flex;align-items:center;gap:4px;padding:4px 8px;min-height:56px;border-bottom:1px solid var(--border);background:var(--bg)}.topbar-title{font-size:17px;font-weight:650;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:var(--touch);min-height:var(--touch);border:none;background:transparent;color:var(--text);border-radius:var(--radius-pill);cursor:pointer;padding:0 8px;gap:4px;transition:background-color .15s ease}.icon-button:hover{background:var(--surface-alt)}.icon-button:active{background:var(--border)}.icon-button:disabled{opacity:.4;cursor:default;background:transparent}.card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;background:var(--bg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:8px}.card-title{font-size:16px;font-weight:650}.card-subtitle{font-size:13px;color:var(--text-faint);margin-top:-4px}.segmented{display:flex;background:var(--surface-alt);border-radius:var(--radius-md);padding:4px;gap:4px}.segment{flex:1;min-height:40px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:var(--radius-sm);font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;padding:4px 6px;text-align:center;color:var(--text-muted);cursor:pointer;transition:background-color .15s ease,color .15s ease}.segment:hover{color:var(--text)}.segment.active{background:var(--bg);color:var(--primary);box-shadow:0 1px 3px #0f172a1f}.chip-row{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:0 14px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg);font-family:inherit;font-size:13px;font-weight:500;color:var(--text-muted);cursor:pointer;white-space:nowrap}.chip:hover{border-color:var(--border-strong)}.chip:disabled{opacity:.55;cursor:default}.chip.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:600}.pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--radius-pill);font-size:11.5px;font-weight:700;white-space:nowrap;line-height:1.35}.status-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field-label{font-size:13px;color:var(--text-muted);font-weight:600}.input,.select,.date-input{width:100%;min-height:var(--touch);border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:0 12px;font-family:inherit;font-size:16px;color:var(--text);background:var(--bg);transition:border-color .15s ease,box-shadow .15s ease}textarea.input{padding-top:12px;padding-bottom:12px;line-height:1.4;resize:vertical}.select,.date-input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.select-wrap{position:relative;display:flex}.select-wrap:after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:2px solid var(--text-faint);border-bottom:2px solid var(--text-faint);transform:translateY(-70%) rotate(45deg);pointer-events:none}.select-wrap select{padding-right:36px;text-overflow:ellipsis}.input:focus,.select:focus,.date-input:focus,.search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.input:disabled,.select:disabled,.date-input:disabled{background:var(--surface-alt);color:var(--text-faint)}.input::placeholder,.search-input::placeholder{color:#94a3b8}.readonly-text{font-size:15px;color:var(--text-muted);min-height:var(--touch);display:flex;align-items:center;padding:0 4px}.hint{font-size:12.5px;color:var(--text-faint);line-height:1.45}.error-text{font-size:13px;color:var(--overdue)}.checkbox-row{display:flex;align-items:center;gap:12px;min-height:var(--touch);cursor:pointer}.checkbox-row input{width:20px;height:20px;accent-color:var(--primary);flex:none}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--touch);border-radius:var(--radius-md);font-family:inherit;font-size:15px;font-weight:650;padding:0 18px;cursor:pointer;border:1px solid transparent;gap:8px;text-decoration:none;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,transform .05s ease}.btn:active:not(:disabled){transform:scale(.98)}.btn-primary{background:var(--primary);color:var(--text-on-primary);box-shadow:0 1px 2px #1d4ed84d}.btn-primary:hover{background:var(--primary-dark)}.btn-ghost{background:var(--bg);border-color:var(--border-strong);color:var(--text)}.btn-ghost:hover{background:var(--surface)}.btn-danger{background:var(--bg);border-color:#fecaca;color:var(--overdue)}.btn-danger:hover{background:var(--overdue-soft)}.btn-sm{min-height:40px;font-size:14px;padding:0 14px}.btn-block{width:100%}.btn:disabled{background:var(--disabled);color:var(--text-on-primary);cursor:default;border-color:var(--disabled);box-shadow:none}.btn-ghost:disabled,.btn-danger:disabled{background:var(--bg);color:var(--text-faint);border-color:var(--border)}.row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:2px 0}.row-label{font-size:14px;color:var(--text-muted);flex:1}.row-value{font-size:14px;font-weight:600;flex:1.4;text-align:right;word-break:break-word;font-variant-numeric:tabular-nums}.row-value.paid{color:var(--paid)}.row-value.overdue{color:var(--overdue)}.divider{height:1px;background:var(--border);margin:4px 0}.section-title{font-size:13px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-top:8px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.section-header .section-title{margin-top:0}.progress-track{height:6px;border-radius:3px;background:var(--surface-alt);overflow:hidden}.progress-fill{height:6px;border-radius:3px;background:var(--paid);transition:width .3s ease}.progress-fill.overdue{background:var(--overdue)}.dot-row{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}.dot{width:9px;height:9px;border-radius:50%;background:var(--border)}.dot-paid{background:var(--paid)}.dot-missed{background:#fca5a5}.modal-dialog{position:fixed;top:0;right:0;bottom:0;left:0;margin:0;padding:16px;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;border:0;color:var(--text);background:transparent}.modal-dialog[open]{display:flex;align-items:flex-end;justify-content:center}.modal-dialog::backdrop{background:#0f172a80}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-6px;margin-right:-10px}.modal-header h2{margin:0}body:has(dialog[open]) .screen,body:has(dialog[open]) .scroll-body{overflow:hidden}.modal-card{background:var(--bg);border-radius:20px;width:100%;max-width:560px;max-height:100%;overflow-y:auto;padding:20px;box-shadow:var(--shadow);overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;animation:slide-up .2s ease-out}@keyframes slide-up{0%{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-title{font-size:19px;font-weight:700;line-height:1.25}.modal-actions{display:flex;gap:12px;margin-top:4px;position:sticky;bottom:-20px;background:var(--bg);padding:12px 0;border-top:1px solid var(--surface-alt)}@media(min-width:640px){.modal-dialog[open]{align-items:center}}@media(prefers-reduced-motion:reduce){.modal-card{animation:none}*{transition:none!important}}.modal-actions .btn{flex:1}.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;font-size:14px;font-weight:700;letter-spacing:.02em;-webkit-user-select:none;user-select:none}.avatar-lg{width:56px;height:56px;font-size:19px}.customer-card{position:relative;border:1px solid var(--border);border-radius:var(--radius-lg);padding:14px;background:var(--bg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:10px;overflow:hidden}a.customer-card:hover{border-color:var(--border-strong)}.customer-card.is-overdue:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--overdue)}.customer-card .card-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.customer-card .card-identity{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.customer-card .card-name{font-size:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;text-decoration:none}a.card-name:hover{color:var(--primary)}.card-meta{font-size:12.5px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-trailing{flex:none;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.amount-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:var(--surface);border-radius:var(--radius-md);padding:10px 12px}.amount-cell{min-width:0}.amount-cell .amount-label{font-size:11.5px;color:var(--text-faint);font-weight:500}.amount-value{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amount-value.paid{color:var(--paid)}.amount-value.overdue{color:var(--overdue)}.progress-caption{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums}.card-actions{display:flex;gap:8px}.card-actions .btn{flex:1}.card-actions .btn-primary{flex:2}.list-header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600;color:var(--text-muted)}.list-stats{display:flex;gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}.list-stat{display:inline-flex;align-items:center;gap:6px}.list-stat:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--text-faint)}.list-stat.paid:before{background:var(--paid)}.list-stat.overdue:before{background:var(--overdue)}.list-stack{display:flex;flex-direction:column;gap:10px}.search-wrap{position:relative;flex:0 0 auto;width:100%;display:flex}.search-wrap>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-faint);pointer-events:none}.search-input{width:100%;min-height:var(--touch);border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:0 12px 0 42px;font-family:inherit;font-size:16px;color:var(--text);background:var(--bg)}.search-input::-webkit-search-cancel-button{cursor:pointer}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.filter-row.with-action{grid-template-columns:1fr 1fr auto}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;gap:6px;text-align:center;border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--bg)}.empty-title{font-size:16px;font-weight:650}.empty-body{font-size:14px;color:var(--text-muted);max-width:34ch}.empty .btn{margin-top:8px}.spinner-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px 0}.spinner{position:relative;display:grid;place-items:center;width:40px;height:40px}.spinner:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border:3px solid var(--surface-alt);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}.spinner-icon{position:relative;display:inline-flex;color:var(--primary)}.spinner-label{font-size:12px;color:var(--text-muted)}@keyframes spin{to{transform:rotate(360deg)}}.notice{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-radius:var(--radius-md);padding:10px 12px;font-size:13.5px;line-height:1.45;border:1px solid transparent}.notice-info{background:var(--info-soft);color:#155e75;border-color:#a5f3fc}.notice-error{background:var(--overdue-soft);color:var(--overdue);border-color:#fecaca}.notice-success{background:var(--paid-soft);color:var(--paid);border-color:#bbf7d0}.notice .icon-button{min-width:28px;min-height:28px;margin:-4px -6px -4px 0;color:inherit}.sync-strip{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 12px;border-radius:var(--radius-md);background:var(--bg);border:1px solid var(--border);font-size:13px;font-weight:600;min-height:48px}.sync-strip .sync-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--paid);box-shadow:0 0 0 3px var(--paid-soft)}.sync-strip.is-pending .sync-dot{background:var(--pending);box-shadow:0 0 0 3px var(--pending-soft)}.sync-strip.is-review .sync-dot{background:var(--overdue);box-shadow:0 0 0 3px var(--overdue-soft)}.sync-strip .sync-text{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}.sync-strip .btn{flex:none}.spin{animation:spin .9s linear infinite}.day-summary{border-radius:var(--radius-lg);background:var(--bg);border:1px solid var(--border);box-shadow:var(--shadow-sm);overflow:hidden}.ds-hero{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-darker) 100%);color:#fff;padding:16px;display:flex;flex-direction:column;gap:14px}.ds-hero .ds-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.ds-eyebrow{font-size:12.5px;font-weight:600;opacity:.85}.ds-headline{font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums}.ds-date{position:relative;flex:none}.ds-date .date-input{min-height:36px;width:auto;font-size:14px;font-weight:600;padding:0 10px;border-radius:var(--radius-pill);border:1px solid rgba(255,255,255,.35);background:#ffffff24;color:#fff;color-scheme:dark}.ds-date .date-input:focus{border-color:#fff;box-shadow:0 0 0 3px #ffffff59}.ds-hero-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ds-hero-grid .ds-cell{background:#ffffff1f;border-radius:var(--radius-md);padding:8px 10px;min-width:0}.ds-hero-grid .ds-cell .ds-label{font-size:11.5px;color:#fffc}.ds-hero-grid .ds-cell .ds-value{font-size:15px;color:#fff}.ds-hero-grid .ds-cell .ds-value.overdue{color:#fecaca}.ds-hero-grid .ds-cell .ds-value.paid{color:#fff}.ds-body{padding:12px 16px 16px}.day-summary .ds-grid,.ds-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 16px}.ds-cell{min-width:0}.ds-cell .ds-label{font-size:12px;color:var(--text-faint)}.ds-cell .ds-value{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-cell .ds-value.paid{color:var(--paid)}.ds-cell .ds-value.overdue{color:var(--overdue)}.ds-toggle{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;border:none;border-top:1px solid var(--border);background:var(--bg);color:var(--primary);font-family:inherit;font-size:13.5px;font-weight:650;cursor:pointer;min-height:44px}.ds-toggle:hover{background:var(--surface)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{background:var(--surface);border-radius:var(--radius-md);padding:10px 12px;min-width:0}.stat-label{font-size:11.5px;color:var(--text-faint);font-weight:500}.stat-value{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-value.paid{color:var(--paid)}.stat-value.overdue{color:var(--overdue)}.keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.key{min-height:56px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font-family:inherit;font-size:20px;font-weight:600;cursor:pointer;font-variant-numeric:tabular-nums}.key:hover{background:var(--surface-alt)}.key:active{background:var(--border)}.key.wide{grid-column:span 2}.key.primary{background:var(--primary-soft);color:var(--primary);border-color:#bfdbfe}.amount-display{display:flex;justify-content:space-between;align-items:baseline;gap:12px;background:var(--surface);border-radius:var(--radius-md);padding:12px 14px}.amount-display .total-value{font-size:28px}.quick-amounts{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:2px}.quick-amounts .chip{flex:none;flex-direction:column;align-items:flex-start;gap:0;min-height:48px;border-radius:var(--radius-md);padding:4px 12px;line-height:1.25}.quick-amounts .chip small{font-size:11px;font-weight:500;color:var(--text-faint)}.quick-amounts .chip strong{font-size:14px;font-variant-numeric:tabular-nums}.quick-amounts .chip.active small{color:var(--primary)}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;font-size:11.5px;color:var(--text-faint);font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:10px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);white-space:nowrap}.table td{padding:10px;border-bottom:1px solid var(--surface-alt);white-space:nowrap}.table tbody tr:hover td{background:var(--surface)}.table td.num,.table th.num{text-align:right;font-variant-numeric:tabular-nums}.settings-section{display:flex;flex-direction:column;gap:8px}.settings-section-title{font-size:16px;font-weight:600}.list-group{display:flex;flex-direction:column;gap:6px}.list-group-title{font-size:12.5px;font-weight:700;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;padding:0 4px;margin-top:6px}.list-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}.list-card>.setting-action,.list-card>.list-row{border:none;border-radius:0;border-bottom:1px solid var(--surface-alt)}.list-card>:last-child{border-bottom:none}.list-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;background:var(--bg)}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:var(--touch);border-bottom:1px solid var(--surface-alt)}.setting-row .row-label{font-size:15px}.setting-action{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;border:1px solid var(--border);border-radius:var(--radius-md);padding:8px 14px;background:var(--bg);font-family:inherit;font-size:15px;color:var(--text);cursor:pointer;text-align:left;width:100%;transition:background-color .15s ease}.setting-action:hover{background:var(--surface)}.setting-action>svg:last-child{color:var(--text-faint);flex:none}.setting-action.danger{color:var(--overdue)}.setting-icon{flex:none;width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--primary-soft);color:var(--primary)}.setting-icon.owner{background:#f5f3ff;color:#6d28d9}.setting-icon.danger{background:var(--overdue-soft);color:var(--overdue)}.setting-text{flex:1;min-width:0;display:flex;flex-direction:column}.setting-text .hint{font-size:12.5px}.setting-value{font-size:13px;color:var(--text-faint);font-variant-numeric:tabular-nums}.profile{display:flex;align-items:center;gap:14px}.profile-text{flex:1;min-width:0}.profile-name{font-size:20px;font-weight:750;line-height:1.2;overflow-wrap:anywhere}.profile-meta{font-size:13px;color:var(--text-faint);margin-top:2px}.enroll-screen{flex:1;overflow-y:auto;padding:32px 16px 24px;display:flex;flex-direction:column;gap:16px;justify-content:flex-start}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:16px;color:var(--text)}.brand-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-darker) 100%);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #1d4ed84d}.enroll-title{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin-top:8px}.auth-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:12px}.amount-input-row{display:flex;align-items:stretch;gap:8px}.amount-input-row .input{flex:1;min-width:0}.amount-input-row .input.amount{font-size:18px;font-weight:650;font-variant-numeric:tabular-nums}.keypad-toggle{min-height:var(--touch);min-width:var(--touch);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--bg);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted)}.keypad-toggle:hover{background:var(--surface)}.keypad-toggle:disabled{opacity:.5;cursor:default}.stepper{display:grid;grid-template-columns:var(--touch) 1fr var(--touch);gap:8px}.stepper .input{text-align:center;font-weight:650;font-variant-numeric:tabular-nums}.stepper .btn{padding:0;font-size:20px;min-height:var(--touch)}.total-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:4px;padding-top:12px;border-top:1px solid var(--border)}.total-label{font-size:15px;font-weight:600;color:var(--text-muted)}.total-value{font-size:22px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums}.schedule-row{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px;border-bottom:1px solid var(--surface-alt)}.schedule-row:last-child{border-bottom:none}.schedule-seq{width:26px;color:var(--text-faint);font-variant-numeric:tabular-nums;flex:none}.schedule-date{flex:1;min-width:0}.schedule-amount{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.timeline-item{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--surface-alt)}.timeline-item:first-of-type{padding-top:0}.timeline-item:last-child{border-bottom:none;padding-bottom:0}.timeline-top{display:flex;align-items:center;gap:8px}.timeline-amount{font-size:17px;font-weight:750;font-variant-numeric:tabular-nums;flex:1}.timeline-breakdown{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:12.5px;color:var(--text-muted);font-variant-numeric:tabular-nums}.ring{position:relative;flex:none}.ring-label{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums}.clickable{cursor:pointer}.no-select{-webkit-user-select:none;user-select:none}.flex-between{display:flex;justify-content:space-between;align-items:center;gap:8px}.flex-gap{display:flex;gap:8px;align-items:center}.mt-sm{margin-top:8px}.mt-md{margin-top:12px}.mb-sm{margin-bottom:8px}.text-muted{color:var(--text-muted)}.text-faint{color:var(--text-faint)}.text-small{font-size:12.5px}.text-overdue{color:var(--overdue)}.text-paid{color:var(--paid)}.num{font-variant-numeric:tabular-nums}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:561px){body{background:#e7ebf2}.app{border-left:1px solid var(--border);border-right:1px solid var(--border);box-shadow:0 0 40px #0f172a0f}}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-links{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}.auth-link{color:var(--primary);font-weight:600;text-decoration:none;font-size:14px;padding:10px 8px;border-radius:var(--radius-sm)}.auth-link:hover{text-decoration:underline}.device-row,.tenant-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--surface-alt)}.device-row:last-child,.tenant-row:last-child{border-bottom:none;padding-bottom:0}.device-row>div:first-child,.tenant-row>div:first-child{min-width:0;overflow-wrap:anywhere}.row-title{font-weight:600}.tenant-row{flex-wrap:wrap}.row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.invite-link{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:var(--surface-alt);border-radius:var(--radius-sm);padding:10px;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.support-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--pending-soft);color:#8a4b00;border:1px solid #f5c983;border-radius:var(--radius-md);padding:10px 12px;font-size:13px}.table-scroll{overflow-x:auto;margin:8px 0}.data-table{border-collapse:collapse;font-size:12px;width:100%}.data-table th,.data-table td{text-align:left;padding:8px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table th{color:var(--text-muted);font-weight:600;text-transform:capitalize;background:var(--surface)}.pill-button{border:none;cursor:pointer;font-family:inherit;background:var(--overdue-soft);color:var(--overdue);min-height:28px}
