:root{--brand:#4f46e5;--bg:#faf8fc;--surface:#ffffff;--surface-hover:#f3f1f7;--surface-selected:#e0e7ff;--surface-muted:#f4f2f8;--text:#172033;--text-muted:#5b6475;--border:#e7e4ee;--grid:#eeecf3;--accent:#4338ca;--accent-contrast:#ffffff;--accent-soft:#e0e7ff;--danger:#b42318;--warn-bg:#fef3c7;--warn-text:#7a4a00;--good:#146c2e;--tone-identity-bg:#e8f0fe;--tone-identity:#1d4ed8;--tone-insurance-bg:#e6f4ea;--tone-insurance:#137333;--tone-vehicle-bg:#fef3e2;--tone-vehicle:#8a4b00;--tone-property-bg:#efe9fd;--tone-property:#5b3cc4;--tone-finance-bg:#e4f7fb;--tone-finance:#00639b;--tone-education-bg:#fce7f3;--tone-education:#9d174d;--tone-warranty-bg:#ecfccb;--tone-warranty:#3f6212;--good-bg:#e6f4ea;--danger-bg:#fce8e6;--shadow:0 1px 2px rgba(23,32,51,0.06);--shadow-lifted:0 6px 20px rgba(23,32,51,0.16);--radius:16px;--space:16px;color-scheme:light}@media (prefers-color-scheme:dark){:root{--brand:#818cf8;--bg:#12141a;--surface:#1c1f27;--surface-hover:#262a34;--surface-selected:#312e81;--surface-muted:#232731;--text:#e8eaf0;--text-muted:#a3a9b6;--border:#2f3440;--grid:#2a2e39;--accent:#a5b4fc;--accent-contrast:#1e1b4b;--accent-soft:#312e81;--danger:#f2b8b5;--warn-bg:#4a3b10;--warn-text:#fde293;--good:#6dd58c;--tone-identity-bg:#0b2e66;--tone-identity:#a8c7fa;--tone-insurance-bg:#0f3d1f;--tone-insurance:#81c995;--tone-vehicle-bg:#45290a;--tone-vehicle:#fdc983;--tone-property-bg:#2e2363;--tone-property:#cfbcff;--tone-finance-bg:#003548;--tone-finance:#7fd0f5;--tone-education-bg:#500724;--tone-education:#f9a8d4;--tone-warranty-bg:#1a2e05;--tone-warranty:#bef264;--good-bg:#0f3d1f;--danger-bg:#4a1714;--shadow:0 1px 2px rgba(0,0,0,0.4);--shadow-lifted:0 6px 20px rgba(0,0,0,0.6);color-scheme:dark}}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,Roboto,Segoe UI,system-ui,-apple-system,sans-serif;font-size:14px}h1{font-size:28px;font-weight:400;margin:0 0 16px}h2{font-size:16px;font-weight:500;margin:0}a{color:var(--accent);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}input,select,textarea{background:transparent;border:1px solid var(--border);border-radius:8px;padding:10px 12px;width:100%;min-width:0}select optgroup,select option{background:var(--surface)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,svg:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.muted{color:var(--text-muted)}.small{font-size:12px}.spacer{flex:1 1}.fine-print{color:var(--text-muted);font-size:12px;line-height:1.5;margin:24px 0 8px}.icon-button{display:inline-grid;place-items:center;width:48px;height:48px;border:none;border-radius:50%;background:transparent;color:var(--text-muted);flex-shrink:0}.icon-button.active,.icon-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.outline-button,.primary-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;min-height:44px;padding:9px 20px;font-weight:500;white-space:nowrap}.primary-button{border:none;background:var(--accent);color:var(--accent-contrast)}.outline-button{border:1px solid var(--border);background:transparent;color:var(--accent)}.outline-button:hover,.text-button:hover{background:var(--surface-hover)}.text-button{border:none;padding:8px 12px;background:transparent;color:var(--accent)}.outline-button.danger,.text-button.danger{color:var(--danger)}.button-row{display:flex;flex-wrap:wrap;gap:8px}.menu{position:relative}.menu-popover{position:absolute;right:0;top:44px;z-index:30;min-width:220px;padding:8px 0;background:var(--surface);border-radius:12px;box-shadow:var(--shadow-lifted)}.menu-popover hr{border:none;border-top:1px solid var(--border);margin:8px 0}.menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px 10px 8px;border:none;background:none;color:var(--text);text-align:left;white-space:nowrap}.profile-menu .menu-item,a.menu-item{padding-left:16px}.menu-item:hover:not(:disabled){background:var(--surface-hover)}.menu-item.danger{color:var(--danger)}.menu-check{display:inline-block;width:24px;text-align:center;color:var(--accent)}.menu-caption{margin:4px 16px 8px;font-size:12px}.empty,.menu-caption{color:var(--text-muted)}.empty{padding:12px 0;margin:0}.center-message{padding:48px 16px;text-align:center;color:var(--danger)}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:var(--surface-muted);color:var(--text-muted);font-size:12px;white-space:nowrap}.badge.warn{background:var(--warn-bg);color:var(--warn-text)}.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.chip,.chip-row{align-items:center}.chip{display:inline-flex;gap:6px;padding:6px 14px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text)}.chip.selected{background:var(--accent-soft);border-color:transparent}.chip-index{place-items:center;width:18px;height:18px;background:var(--accent);color:var(--accent-contrast);font-size:11px}.chip-index,.icon-chip{display:inline-grid;border-radius:50%}.icon-chip{place-items:center;width:32px;height:32px;flex-shrink:0}.icon-chip.large{width:48px;height:48px}.avatar{display:inline-grid;place-items:center;border-radius:50%;background:var(--tone-property-bg);color:var(--tone-property);font-weight:500;flex-shrink:0}.avatar.primary{background:var(--accent);color:var(--accent-contrast)}.splash{height:100vh}.login{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px 32px;background:var(--surface);border-radius:24px;box-shadow:var(--shadow);text-align:center}.login-card h1{margin:0}.login-card p{margin:0 0 12px;color:var(--text-muted);line-height:1.5}.login-card .fine-print,.login-card .hint{font-size:12px;margin:8px 0 0}.login-card .error{color:var(--danger)}.brand-logo{display:inline-block;width:32px;height:32px;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14zM9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z'/%3E%3C/svg%3E") 50% /55% no-repeat,linear-gradient(135deg,#6366f1,#4338ca);flex-shrink:0}.brand-logo.large{width:56px;height:56px}.brand-logo.login-logo{width:72px;height:72px}.shell{min-height:100vh;display:grid;grid-template-columns:96px 1fr;grid-template-rows:64px 1fr;grid-template-areas:"top top" "nav main"}.topbar{grid-area:top;position:-webkit-sticky;position:sticky;top:0;z-index:20;justify-content:space-between;padding:0 16px 0 24px;background:var(--bg)}.brand,.topbar{display:flex;align-items:center}.brand{gap:12px;color:var(--text);font-size:20px}.profile-chip{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}.profile-chip svg{transform:rotate(90deg);color:var(--text-muted)}.profile-item span{display:flex;flex-direction:column;flex:1 1}.profile-item small{color:var(--text-muted);text-transform:capitalize}.profile-item small.plain{text-transform:none}.profile-item.selected{background:var(--accent-soft)}.nav{grid-area:nav;position:-webkit-sticky;position:sticky;top:64px;align-self:start;gap:12px;padding-top:88px}.nav,.nav-item{display:flex;flex-direction:column;align-items:center}.nav-item{justify-content:center;min-width:64px;min-height:48px;gap:4px;color:var(--text-muted);font-size:12px;font-weight:500}.nav-icon{display:grid;place-items:center;width:56px;height:32px;border-radius:16px}.nav-item:hover .nav-icon{background:var(--surface-hover)}.nav-item.current{color:var(--accent);font-weight:700}.nav-item.current .nav-icon{background:var(--accent-soft);color:var(--accent)}.content{grid-area:main;min-width:0;padding:8px 24px 120px 8px}.page{max-width:1040px;margin:0 auto}.page-header,.section-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}.page-header h1{margin:0;flex:1 1}.section-header{justify-content:space-between;margin-top:24px}.fab-wrap{position:fixed;right:24px;bottom:24px;z-index:25;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.fab{display:flex;align-items:center;gap:8px;height:56px;padding:0 20px 0 16px;border:none;border-radius:16px;background:var(--brand);color:#ffffff;box-shadow:var(--shadow-lifted);font-weight:500}@media (max-width:720px){.shell{grid-template-columns:1fr;grid-template-rows:56px 1fr;grid-template-areas:"top" "main"}.topbar{padding:0 8px 0 16px}.brand span:last-child{font-size:18px}.profile-chip-name{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:20;flex-direction:row;justify-content:space-around;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:0 -1px 0 var(--border)}.content{padding:4px 16px 168px}.fab-wrap{right:16px;bottom:calc(96px + env(safe-area-inset-bottom))}.fab-label{display:none}.fab{padding:0 16px}h1{font-size:24px}}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--space);margin-bottom:var(--space)}.panel-header{margin-bottom:8px}.panel-header,.panel-header h2{display:flex;align-items:center;gap:8px}.panel-header h2{flex:1 1}.panel-title{margin-bottom:8px}.sheet-caption{margin:4px 0 8px;color:var(--text-muted);font-size:12px;font-weight:500}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px;margin-bottom:var(--space)}.quick-action{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left}.quick-action:hover{background:var(--surface-hover)}.quick-text{display:flex;flex-direction:column;min-width:0}.quick-text strong{font-weight:500}.quick-text small{color:var(--text-muted);font-size:12px}.sheet-list{list-style:none;margin:0 0 8px;padding:0}.sheet-item{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:8px 10px;border:none;border-radius:12px;background:transparent;color:var(--text);text-align:left}.sheet-item svg{color:var(--text-muted)}.sheet-item:hover{background:var(--surface-hover)}.empty-state{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;text-align:center;color:var(--text-muted)}.empty-state p{max-width:420px;margin:0;line-height:1.5}.data-table{width:100%;border-collapse:collapse}.data-table td,.data-table th{text-align:left;padding:8px 4px;border-bottom:1px solid var(--grid)}.data-table th{color:var(--text-muted);font-weight:500;font-size:12px}.data-table .num{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:none;border-radius:28px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lifted)}.dialog.wide{width:min(680px,calc(100vw - 32px))}.dialog::-webkit-backdrop{background:rgba(0,0,0,.4)}.dialog::backdrop{background:rgba(0,0,0,.4)}.dialog-body{display:flex;flex-direction:column;max-height:calc(100vh - 32px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 12px 8px 24px}.dialog-header h2{font-size:20px;font-weight:400}.dialog-content{padding:8px 24px;overflow-y:auto}.dialog-footer{display:flex;align-items:center;gap:8px;padding:12px 16px 16px}@media (max-width:720px){.dialog.sheet{width:100vw;max-width:100vw;height:-moz-fit-content;height:fit-content;margin:auto 0 0;border-radius:28px 28px 0 0}.dialog.sheet,.dialog.sheet .dialog-body{max-height:85vh}.dialog.sheet .dialog-content{flex:none;padding-bottom:calc(16px + env(safe-area-inset-bottom))}.dialog.wide:not(.sheet),.dialog:not(.sheet){width:100vw;max-width:100vw;height:100%;max-height:100%;margin:0;border-radius:0}.dialog:not(.sheet) .dialog-body{height:100%;max-height:none}.dialog-content{flex:1 1}}.form{gap:14px}.field,.form{display:flex;flex-direction:column}.field{gap:6px;flex:1 1;min-width:0}.field-label{font-weight:500}.field-hint,.field-label{font-size:12px;color:var(--text-muted)}.field-hint{margin:-6px 0 0;line-height:1.45}.field-row{display:flex;gap:12px}@media (max-width:560px){.field-row{flex-wrap:wrap}.field-row>.field{flex-basis:calc(50% - 6px)}}.fieldset{border:1px solid var(--border);border-radius:12px;padding:8px 12px 12px;margin:0 0 8px}.fieldset legend{padding:0 6px;font-size:12px;color:var(--text-muted)}.check{display:flex;align-items:center;gap:10px}.check input{width:auto}.notice{margin:0;padding:10px 14px;border-radius:12px;background:var(--surface-muted);color:var(--text-muted);line-height:1.45}.form-error{margin:4px 0 0;color:var(--danger)}.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:24px 16px;border:1px dashed var(--border);border-radius:16px;text-align:center;cursor:pointer}.dropzone.has-file,.dropzone:hover{background:var(--surface-muted)}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}.dropzone span{color:var(--text-muted);font-size:12px}.settings .panel p{margin:0 0 12px}.danger-zone .outline-button.danger{border-color:var(--danger)}.nsw{--nsw-surface:#ffffff;--nsw-hover:#f1f3f4;--nsw-current:var(--accent-soft);--nsw-text:#1f1f1f;--nsw-muted:#5f6368;--nsw-icon:#5f6368;--nsw-shadow:0 6px 24px rgba(32,33,36,0.18);position:relative;flex-shrink:0}@media (prefers-color-scheme:dark){.nsw{--nsw-surface:#2a2b30;--nsw-hover:#35363b;--nsw-current:var(--accent-soft);--nsw-text:#e8eaed;--nsw-muted:#a8abb0;--nsw-icon:#c4c7cc;--nsw-shadow:0 6px 24px rgba(0,0,0,0.6)}}.nsw-button{display:grid;place-items:center;width:44px;height:44px;border:none;border-radius:50%;background:transparent;color:var(--nsw-icon);cursor:pointer}.nsw-button.open,.nsw-button:hover{background:var(--nsw-hover)}.nsw-button:focus-visible,.nsw-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.nsw-panel{position:absolute;top:48px;right:0;z-index:60;width:296px;max-width:calc(100vw - 24px);padding:12px;border-radius:24px;background:var(--nsw-surface);box-shadow:var(--nsw-shadow);color:var(--nsw-text)}.nsw-title{margin:4px 8px 10px;font-size:13px;font-weight:500;color:var(--nsw-muted)}.nsw-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:4px;gap:4px;margin:0;padding:0}.nsw-tile{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:84px;padding:10px 4px;border-radius:16px;color:var(--nsw-text);text-decoration:none}.nsw-tile:hover{background:var(--nsw-hover)}.nsw-tile.current{background:var(--nsw-current)}.nsw-logo{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;flex-shrink:0}.nsw-rupee{color:#ffffff;font-size:22px;font-weight:700;line-height:1}.nsw-name{font-size:13px;font-weight:500}.topbar-actions{display:flex;align-items:center;gap:4px}.tone-identity{background:var(--tone-identity-bg);color:var(--tone-identity)}.tone-insurance{background:var(--tone-insurance-bg);color:var(--tone-insurance)}.tone-vehicle{background:var(--tone-vehicle-bg);color:var(--tone-vehicle)}.tone-property{background:var(--tone-property-bg);color:var(--tone-property)}.tone-finance{background:var(--tone-finance-bg);color:var(--tone-finance)}.tone-education{background:var(--tone-education-bg);color:var(--tone-education)}.tone-warranty{background:var(--tone-warranty-bg);color:var(--tone-warranty)}.tone-other{background:var(--surface-muted);color:var(--text-muted)}.badge.danger{background:var(--danger-bg);color:var(--danger)}.badge.good{background:var(--good-bg);color:var(--good)}.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-gap:12px;gap:12px;margin-bottom:var(--space)}.category-tile{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);color:var(--text)}.category-tile:hover{background:var(--surface-hover)}.category-tile .category-text{display:flex;flex-direction:column;min-width:0}.category-tile small{color:var(--text-muted)}.bill-list{list-style:none;margin:0;padding:4px 8px}.bill-list:empty{display:none}.panel>.bill-list{padding:0;margin:0 -8px}.bill-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 8px;border:none;border-radius:12px;background:transparent;color:var(--text);text-align:left}.bill-row:hover{background:var(--surface-hover)}.bill-text{display:flex;flex-direction:column;gap:2px;flex:1 1;min-width:0}.bill-text strong{font-weight:500}.bill-text span,.bill-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bill-side,.bill-text span{color:var(--text-muted)}.bill-side{display:flex;align-items:center;gap:8px;flex:none}.badge .short{display:none}@media (max-width:560px){.badge .long{display:none}.badge .short,.details-head .badge .long{display:inline}.details-head .badge .short{display:none}.bill-row{gap:14px;padding:10px 8px}}.search{position:relative;margin-bottom:8px}.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.search input{padding-left:44px;border-radius:999px;background:var(--surface);min-height:44px}.timeline{padding-top:4px;padding-bottom:4px}.timeline-label{padding:14px 8px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}.timeline-label:first-child{padding-top:6px}.timeline-label:not(:first-child){margin-top:6px;border-top:1px solid var(--grid)}.timeline-label.overdue{color:var(--danger)}.next-card{display:flex;flex-direction:column;gap:14px;margin-bottom:var(--space);padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.next-card.overdue{border-color:color-mix(in srgb,var(--danger) 35%,var(--border));background:linear-gradient(var(--danger-bg),var(--danger-bg)) top /100% 4px no-repeat,var(--surface)}.next-card.soon,.next-card.today{border-color:color-mix(in srgb,var(--warn-text) 30%,var(--border));background:linear-gradient(var(--warn-bg),var(--warn-bg)) top /100% 4px no-repeat,var(--surface)}.next-kicker{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}.next-card.overdue .next-kicker{color:var(--danger)}.next-card.soon .next-kicker,.next-card.today .next-kicker{color:var(--warn-text)}.next-main{display:flex;align-items:center;gap:14px}.next-text{display:flex;flex-direction:column;gap:2px;flex:1 1;min-width:0}.next-text h2{font-size:20px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-text span{color:var(--text-muted)}.next-actions{display:flex;flex-wrap:wrap;gap:8px}@media (max-width:560px){.next-side .badge{display:none}.next-actions .primary-button{flex:1 1}}.details{display:flex;flex-direction:column;gap:16px;padding-bottom:8px}.details-head{display:flex;align-items:center;gap:14px}.details-head-text{display:flex;flex-direction:column;align-items:flex-start;gap:6px;color:var(--text-muted)}.pay-callout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 12px 12px 16px;border-radius:12px;background:var(--warn-bg);color:var(--warn-text)}.pay-callout.overdue{background:var(--danger-bg);color:var(--danger)}.number-box{display:flex;flex-direction:column;gap:4px;padding:12px 8px 12px 16px;border-radius:12px;background:var(--surface-muted)}.number-row{display:flex;align-items:center;gap:8px}.number-value{flex:1 1;min-width:0;font-size:22px;font-weight:500;letter-spacing:.04em;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow-wrap:anywhere;-webkit-user-select:all;-moz-user-select:all;user-select:all}.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px 16px;gap:14px 16px;margin:0}.facts dt{font-size:12px;font-weight:500;color:var(--text-muted)}.facts dd{margin:2px 0 0}.notes p{margin:4px 0 0;white-space:pre-wrap;line-height:1.5}.chip-row.tight{margin:-6px 0 0}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px}.switch-row input{width:20px;height:20px;flex:none;accent-color:var(--accent)}.switch-row span{display:flex;flex-direction:column}.switch-row small{color:var(--text-muted)}.privacy-points{margin:0;padding-left:20px;line-height:1.55}.privacy-points li+li{margin-top:8px}.amount{color:var(--text);font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.amount.varies{font-weight:400}.amount.varies,.bill-row.stopped .amount,.bill-row.stopped .bill-text strong{color:var(--text-muted)}.badge svg{vertical-align:-2px}.page-lead{margin:-8px 0 12px}.next-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}.next-amount{font-size:22px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px;margin-bottom:var(--space)}.stat-tile{display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px 16px;border-radius:var(--radius);background:var(--surface-muted)}.stat-tile strong{font-size:20px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-label,.stat-tile small{color:var(--text-muted);font-size:12px}.stat-label{font-weight:500}.stat-tile.danger{background:var(--danger-bg)}.stat-tile.danger .stat-label,.stat-tile.danger strong{color:var(--danger)}@media (max-width:560px){.stat-grid{gap:8px}.stat-tile{padding:12px}.stat-tile strong{font-size:16px}}.timeline-label.with-total{display:flex;justify-content:space-between;gap:12px}.timeline-label.with-total span:last-child{color:var(--text);letter-spacing:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.details-amount{margin-left:auto;font-size:24px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.details-amount.varies{font-size:14px;font-weight:400;color:var(--text-muted)}.pay-history{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--grid)}.pay-history-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.pay-history p{margin:0}.pay-timeline{list-style:none;margin:0;padding:0}.pay-timeline li{position:relative;display:flex;align-items:flex-start;gap:12px;padding:8px 0 8px 22px}.pay-timeline li:before{content:"";position:absolute;left:5px;top:0;bottom:0;width:2px;background:var(--grid)}.pay-timeline li:first-child:before{top:16px}.pay-timeline li:last-child:before{bottom:calc(100% - 16px)}.pay-timeline li:only-child:before{display:none}.pay-dot{position:absolute;left:0;top:11px;width:12px;height:12px;border-radius:50%;background:var(--good-bg);box-shadow:inset 0 0 0 2px var(--good)}.pay-timeline .bill-text span{white-space:normal}.pay-note{font-style:italic}.pay-actions{display:flex;flex:none;margin-top:-4px}.pay-for{margin:0}.amount-input{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px}.amount-input:focus-within{outline:2px solid var(--accent);outline-offset:-1px}.amount-input>span{padding-left:12px;color:var(--text-muted)}.amount-input input{border:none;outline:none;flex:1 1;min-width:0;padding-left:6px}