/* Spending context, category drill-down and saved payment destinations. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.statistics-grid{align-items:start}.statistics-panel{padding:24px}.statistics-panel>.between>h2{font-size:19px}.filter-label{font-size:11px;color:var(--muted);margin:20px 0 9px}.member-filters{margin:0 0 17px;gap:5px;flex-wrap:nowrap;overflow-x:auto;padding:3px 1px 7px;scrollbar-width:none}.member-filters::-webkit-scrollbar{display:none}.member-filters .filter-chip{min-height:38px;padding:8px 9px;font-size:11px;flex-shrink:0;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}.spending-person{border-top:1px solid var(--line);padding-top:19px;display:flex;gap:10px;align-items:center}.spending-person h3{font-size:16px;line-height:1.4}.spending-person p{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.5}.spending-person .avatar.small,.family-summary-icon{width:39px;height:39px;flex-shrink:0}.spending-person .avatar .emoji{font-size:25px}.family-summary-icon{display:grid;place-items:center;border-radius:14px;color:var(--blue);background:#eef4ff}.family-summary-icon svg{width:21px;height:21px}.spending-count{font-size:16px;font-weight:600;text-align:right;line-height:1.2}.spending-count small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:4px}.chart-stage{display:grid;place-items:center;margin:10px 0 0}.interactive-donut{width:234px;height:234px;margin:2px auto 5px;background:transparent!important;position:relative}.interactive-donut:before{display:none}.spending-ring{width:100%;height:100%;overflow:visible;position:absolute;inset:0}.ring-segment{cursor:pointer;transition:opacity .25s,stroke-width .25s;outline:none;stroke-linecap:butt}.ring-segment:hover,.ring-segment:focus-visible,.ring-segment.selected{stroke-width:29}.ring-segment:focus-visible{filter:drop-shadow(0 0 2px #152641)}.ring-segment.dimmed{opacity:.25}.interactive-donut .donut-center{pointer-events:none;max-width:162px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center}.chart-center-label{color:var(--muted);font-size:11px;max-width:150px;line-height:1.4}.interactive-donut .donut-center strong{font-size:29px;font-weight:650;letter-spacing:-1px;line-height:1.2}.interactive-donut .donut-center small{font-size:10px;color:var(--muted)}.chart-help{text-align:center;color:var(--muted);font-size:10px;line-height:1.5;margin:0 0 15px}.spending-categories{display:grid;gap:4px}.spending-category{display:flex;align-items:center;gap:11px;padding:12px 8px;border:1px solid transparent;border-radius:14px;width:100%;text-align:left;min-height:64px;transition:background .2s,border-color .2s}.spending-category:hover{background:#f6f8fc}.spending-category.selected{background:var(--category-light);border-color:var(--category-color)}.spending-category .category-icon{width:36px;height:36px;border-radius:12px;color:var(--category-color);background:var(--category-light)}.spending-category .category-icon svg{width:18px;height:18px}.category-label{font-size:12px;font-weight:550;display:block;line-height:1.4}.category-meter{height:3px;width:100%;max-width:110px;border-radius:5px;background:#eaf0f7;display:block;margin-top:7px;overflow:hidden}.category-meter i{height:100%;background:var(--category-color);display:block;border-radius:5px}.category-numbers{text-align:right;flex-shrink:0;min-width:70px}.category-numbers b{display:block;font-weight:600;font-size:13px;white-space:nowrap}.category-numbers small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.category-chevron{width:13px;height:13px;color:#97a7bd}.stats-scope{font-size:10px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line);margin-top:16px;padding-top:13px}.clear-category{margin-top:10px}.operations-context{font-size:11px;color:var(--muted);margin:-7px 0 6px;line-height:1.6}.statistics-panel #month-filter{font-size:12px;min-height:36px;border-radius:10px;background:#fff;max-width:112px}
dialog .close-sheet{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;top:14px;right:14px;padding:0;margin:0;border:0;line-height:1;border-radius:50%;color:#6d7e94;background:#f2f5fa;z-index:2}dialog .close-sheet svg{width:20px;height:20px;display:block;flex:none}dialog .close-sheet:hover{background:#e5edf8;color:#244675}dialog .sheet-title{max-width:calc(100% - 44px)}.success-content .sheet-title{max-width:100%}.success-content{padding-top:10px}
.reminder-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.reminder-heading h3{font-size:15px}.payment-reminders{display:grid;gap:13px}.payment-reminder{border:1px solid #e0e9f7;background:linear-gradient(145deg,#f6f9ff,#fff);border-radius:21px;padding:18px}.reminder-top{display:flex;align-items:center;gap:10px}.reminder-top h3{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.reminder-top p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px}.reminder-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e8f0ff;color:var(--blue);flex-shrink:0}.reminder-icon svg{width:20px;height:20px}.reminder-edit{width:36px;height:36px;flex-shrink:0}.reminder-edit svg{width:17px;height:17px}.reminder-amount{font-size:27px;letter-spacing:-.6px;font-weight:650;margin:18px 0 15px}.reminder-cta{margin-top:14px}.reminder-cta .primary-btn,.reminder-cta .secondary-btn{font-size:13px;min-height:46px;padding:11px 12px}.reminder-cta svg{width:18px;height:18px}.payment-host{display:block;color:var(--muted);font-size:10px;text-align:center;margin-top:9px;line-height:1.5;overflow-wrap:anywhere}.mark-paid{font-size:11px;margin-top:12px}.mark-paid svg{width:14px;height:14px}.payment-disclaimer{font-size:10px;line-height:1.7;color:var(--muted);margin:15px 2px 14px}.payment-reminder.is-paid{background:#f3faf6;border-color:#d4eadf}.is-paid .reminder-icon{background:#e2f3e9;color:var(--green)}.is-paid .reminder-amount{color:var(--green)}.reminder-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.reminder-fields .form-field{min-width:0;margin:0}.reminder-fields input{padding:12px 10px;max-width:100%;min-width:0}.notification-setting{border-top:1px solid var(--line)}.events-title{font-size:15px;margin:24px 0 6px}.delete-reminder{color:#aa5353;margin-top:16px}.payment-link:focus-visible{outline-offset:4px}
@container app (max-width:650px){.statistics-panel{padding:20px}.statistics-panel>.between>h2{font-size:18px}.member-filters .filter-chip{padding-inline:9px}.interactive-donut{width:224px;height:224px}.spending-category{padding:11px 5px}.statistics-panel .between{gap:8px}}
@container app (max-width:365px){.statistics-panel{padding:16px}.statistics-panel>.between>h2{font-size:16px}.member-filters{gap:5px}.member-filters .filter-chip{font-size:11px;padding-inline:10px}.interactive-donut{width:214px;height:214px}.spending-category{gap:8px}.category-label{font-size:11px}.category-numbers b{font-size:12px}.category-numbers{min-width:62px}.category-chevron{display:none}.statistics-panel #month-filter{font-size:11px;max-width:99px}}
@media(max-width:650px){dialog .close-sheet{top:16px;right:16px}.reminder-fields{gap:9px}.payment-reminder{padding:16px}.sheet-handle{margin-bottom:24px}.reminder-cta .primary-btn,.reminder-cta .secondary-btn{min-height:48px}}
@media(prefers-reduced-motion:reduce){.ring-segment,.spending-category,.member-filters .filter-chip{transition:none}}

/* Home calendar: selection is drafted here, then applied to the same card. */
.budget-panel .section-title{flex-wrap:wrap}.budget-panel .period-chip{min-height:36px;max-width:100%;color:#536e93;background:#f9fbff;white-space:nowrap}.budget-panel .period-chip:hover{background:#edf4ff;border-color:#afcdfb}.home-period-caption{font-size:10px;line-height:1.6;color:var(--muted);margin-top:7px}.budget-note.period-info{color:var(--muted)}
.period-picker .sheet-desc{margin-bottom:20px}.period-presets{display:flex;gap:6px;margin-bottom:19px}.period-presets button{min-height:38px;border:1px solid #e2e9f4;border-radius:12px;padding:9px 12px;font-size:11px;white-space:nowrap;transition:background .2s,color .2s}.period-presets button.active{background:#edf4ff;border-color:#bbd4fc;color:var(--blue)}.period-presets button:hover{background:#edf4ff}
.period-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.period-fields label{min-width:0;background:#f5f8fc;border:1px solid #e5ecf5;border-radius:14px;padding:10px 12px}.period-fields label:focus-within{border-color:#7db2fe;background:#f0f6ff}.period-fields label>span{font-size:10px;color:var(--muted);display:block;margin-bottom:5px}.period-fields input{font-size:14px;color:var(--ink);background:transparent;border:0;min-width:0;max-width:100%;width:100%;padding:0;line-height:24px;font-variant-numeric:tabular-nums;outline-offset:3px;color-scheme:light}.period-fields input::-webkit-calendar-picker-indicator{width:14px;opacity:.45;margin-left:1px;padding:0}
.period-calendar-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}.period-calendar-head h3{font-size:16px;letter-spacing:-.3px}.period-calendar-head svg{width:18px;height:18px}.period-calendar-head .calendar-back{transform:rotate(180deg)}.period-calendar-head .icon-btn{border:1px solid #e9eef6;width:36px;height:36px;border-radius:12px}.period-weekdays,.period-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.period-weekdays{font-size:9px;letter-spacing:.6px;color:#93a0b4;margin:0 0 10px}.period-weekdays span:nth-last-child(-n+2){color:#6584b2}.period-days{grid-auto-rows:43px;min-height:258px;align-content:start;row-gap:0}.period-cell{position:relative;display:grid;place-items:center;margin-block:2px;isolation:isolate}.period-cell.in-range:before{content:'';position:absolute;inset:0;background:#ecf3ff;z-index:-1}.period-cell.range-start:before{border-radius:50% 0 0 50%}.period-cell.range-end:before{border-radius:0 50% 50% 0}.period-cell.range-start.range-end:before{border-radius:50%}.period-day{width:38px;height:38px;max-width:100%;border-radius:50%;padding:0;display:grid;place-items:center;font-size:13px;font-variant-numeric:tabular-nums;position:relative;transition:background .15s,color .15s,box-shadow .15s}.period-day:hover{background:#d9e8ff}.period-day.is-today:after{content:'';position:absolute;bottom:4px;width:3px;height:3px;border-radius:50%;background:var(--blue)}.period-day.endpoint{color:#fff;background:var(--blue);box-shadow:0 3px 8px #0667f928}.period-day.endpoint:after{background:#fff}.period-day:focus-visible{outline:2px solid #91b9f3;outline-offset:0}.period-hint{font-size:10px;line-height:1.6;color:var(--muted);margin:9px 0 5px;min-height:32px}.period-picker .form-error:empty{display:none}.period-footer{background:white;padding-top:10px}.period-footer .primary-btn{min-height:48px;font-size:13px}.period-footer .primary-btn svg{width:17px;height:17px}.period-cancel{justify-content:center;margin-top:6px;min-height:36px;font-size:12px;color:#71829b}
@media(max-width:360px){.period-presets{gap:5px}.period-presets button{padding-inline:8px;font-size:10px}.period-fields{gap:8px}.period-fields label{padding-inline:9px}.period-fields input{font-size:13px}.period-days{grid-auto-rows:40px;min-height:240px}.period-day{height:36px;width:36px}.period-picker .sheet-title{font-size:22px}}
@media(prefers-reduced-motion:reduce){.period-day,.period-presets button{transition:none}}
