.after-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.after-task{background:#f8f8f4;border:1px solid #e5e8df;border-radius:18px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;color:inherit}.after-task small{color:#6b7068}.after-task .badge{font-size:12px}.after-total{display:block;font-size:28px;margin:12px 0 20px}.after-filter{display:flex;align-items:end;gap:12px}.after-filter .field{flex:1;min-width:0}.after-gifts{margin:20px 0}.after-gift{display:flex;justify-content:space-between;gap:16px;width:100%;padding:16px;background:#fff;border:1px solid #e6e8e1;border-radius:14px;margin:8px 0;text-align:left;color:inherit}.after-gift span:last-child{text-align:right;flex-shrink:0}.after-gift small{display:block;color:#73796d;font-size:12px;line-height:1.7;margin-top:5px}.after-gift strong{overflow-wrap:anywhere}.after-entry{border-color:#dfe7d9;background:#f4f7ef}.after-entry strong{font-size:15px}@media(max-width:600px){.after-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.after-task{padding:13px;gap:8px}.after-filter{display:grid;grid-template-columns:1fr 100px}.after-filter button{grid-column:1/-1}.after-gift{padding:13px}.after-total{font-size:25px}}
.app-shell[data-screen="afterWedding"] .page-title{padding:24px 0 12px}.app-shell[data-screen="afterWedding"] .notice{padding:12px;font-size:12px}.app-shell[data-screen="afterWedding"] .page-title p{margin-bottom:10px}
.gift-sheet{padding:20px}.gift-sheet-scroll{overflow-x:auto}.gift-sheet-columns{display:grid;grid-template-columns:minmax(60px,.85fr) minmax(54px,.75fr) minmax(88px,1.1fr) minmax(114px,1.6fr);gap:6px;min-width:334px}.gift-sheet-head{font-size:12px;font-weight:700;line-height:1.5;padding:10px 0;background:#f4f6f2;border-top:1px solid #dce3d8;border-bottom:1px solid #dce3d8}.gift-sheet-head span{padding:0 4px}.gift-sheet-row{margin:0;padding:10px 0 6px;border-bottom:1px solid #e5e8e0;min-width:334px}.gift-cell{display:block;min-width:0}.gift-cell input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px 5px;font-size:16px;line-height:1.4;border:1px solid #dfe3db;border-radius:7px;background:#fff;color:#252a26}.gift-cell input:focus{outline:2px solid #a6bb9b;outline-offset:1px}.gift-cell input[name="amount"]{text-align:right;font-variant-numeric:tabular-nums}.gift-row-foot{display:flex;align-items:center;gap:10px;min-height:30px;font-size:11px;color:#687360}.gift-row-foot [data-after-gift]{margin-left:auto}.gift-row-foot .text-btn{font-size:12px;min-height:30px;padding:3px 0}.gift-row-foot [data-gift-status]{overflow-wrap:anywhere}.gift-save-error [data-gift-status]{color:#ad3939}.gift-new-row{border:0;padding-top:14px}.gift-add-btn{width:100%;margin-top:10px;min-height:44px}.gift-search{margin:12px 0;font-size:13px}.gift-search summary{cursor:pointer}.gift-search .after-filter{margin:10px 0}.gift-settlement-title{margin-top:24px}.gift-read-row{padding:12px 0;border-bottom:1px solid #e5e8e0;font-size:14px;overflow-wrap:anywhere}.gift-read-row small{display:block;font-size:11px;color:#697064}.gift-cell .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){.gift-sheet{padding:12px 10px}.gift-sheet-columns{grid-template-columns:minmax(0,1fr) minmax(0,.75fr) minmax(82px,1.35fr) minmax(0,1.35fr);gap:4px;min-width:0}.gift-sheet-row{min-width:0}.gift-sheet-head{font-size:11px}.gift-sheet-head span{padding:0 2px}.gift-cell input{padding:8px 3px}.gift-sheet .section-head h2{font-size:18px}}
.gift-search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.gift-search-bar .field{min-width:0;margin:0}.gift-search-bar input{min-width:0;font-size:16px}.gift-search-bar button{min-height:44px}.gift-search details{margin-top:12px}.gift-search details .field{margin:10px 0}.gift-search-result{padding:12px;background:#f2f5ee;border-radius:10px;font-size:13px;line-height:1.8}.gift-reciprocity{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:#555f50;width:fit-content;cursor:pointer}.gift-reciprocity input{appearance:auto;width:18px;height:18px;min-height:0;accent-color:#617658;margin:0}.gift-reciprocity:has(input:checked){font-weight:700;color:#475d3e}.gift-exempt-badge{font-weight:700;color:#475d3e}
.gift-row-foot{flex-wrap:wrap}.gift-payment{border:1px solid #dfe5d9;border-radius:12px;margin:16px 0;padding:12px;min-width:0}.gift-payment legend{font-size:14px;font-weight:700;padding:0 6px}.gift-payment input{font-size:16px}.gift-payment .field{min-width:0}

.guest-management{
 --guest-fill:#f6f6f5;--guest-on:#272928;--guest-on-text:#fff;--guest-groom:#365958;--guest-bride:#665064;
 --guest-groom-fill:#e3eeec;--guest-bride-fill:#eee7ef;
}
html[data-theme="dark"] .guest-management{
 --guest-fill:#242424;--guest-on:#f2f2f2;--guest-on-text:#222;--guest-groom:#b8d7d1;--guest-bride:#dfc9dc;
 --guest-groom-fill:#334440;--guest-bride-fill:#4b3b4a;
}
.guest-management .section-head h2{margin:0}
.guest-scope-single{display:none}
.guest-privacy{margin:10px 0;font-size:13px;line-height:1.5}
.guest-privacy summary{width:fit-content;padding:5px 0;cursor:pointer}
.guest-privacy p{margin:4px 0}
.app-shell[data-screen="afterWedding"] .after-tabs.after-guest-tabs{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0 12px}
.app-shell[data-screen="afterWedding"] .after-tabs.after-guest-tabs button{font-size:12px;padding:5px 3px}
.guest-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:12px 0;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--guest-fill)}
.guest-view-switch button{min-height:42px;padding:5px 8px;border:0;border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.guest-view-switch button[aria-pressed="true"]{background:var(--guest-on);color:var(--guest-on-text);font-weight:700}
.guest-summary{margin-bottom:8px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--guest-fill)}
.guest-summary h3{margin:0 0 8px;font-size:15px}
.guest-summary dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 8px;margin:0;padding-top:8px;border-top:1px solid var(--line)}
.guest-summary dt{font-size:12px;word-break:keep-all}
.guest-summary dd{margin:3px 0 0;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.guest-summary [data-side="groom"] dd{color:var(--guest-groom)}
.guest-summary [data-side="bride"] dd{color:var(--guest-bride)}
.guest-totals{margin-bottom:4px}
.guest-management .guest-filters{display:grid;grid-template-columns:minmax(78px,1fr) minmax(0,2fr) auto;gap:6px;margin-bottom:10px}
.guest-filters :is(input,select,button){min-width:0;min-height:44px;margin:0;padding:6px 8px}
.guest-filters :is(input,select){width:100%;font-size:16px}
.guest-list{display:grid;gap:8px}
.guest-item{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--guest-fill);overflow-wrap:anywhere}
.guest-row-heading,.guest-row-details{display:flex;align-items:center;gap:5px 8px}
.guest-row-heading{justify-content:space-between;align-items:flex-start}
.guest-row-heading small{font-size:12px;color:var(--muted)}
.guest-attendance{flex:none;padding:2px 6px;border:1px solid var(--line);border-radius:5px;font-size:12px}
.guest-attendance[data-status="yes"]{color:var(--guest-groom);background:var(--guest-groom-fill)}
.guest-row-details{flex-wrap:wrap;margin-top:8px;padding-top:4px;border-top:1px solid var(--line);font-size:13px}
.guest-row-details .text-btn{margin-inline-start:auto;min-height:36px}
.guest-side{padding:2px 6px;border-radius:4px;background:var(--paper)}
.guest-side[data-side="groom"]{color:var(--guest-groom);background:var(--guest-groom-fill)}
.guest-side[data-side="bride"]{color:var(--guest-bride);background:var(--guest-bride-fill)}
.guest-item p{margin:4px 0;font-size:12px}
.guest-management :is([data-guest-more],.guest-import,.guest-archive,.guest-refresh){margin-top:10px}
.guest-refresh{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border-top:1px solid var(--line);font-size:13px}
.guest-refresh button{min-height:42px}
.guest-archive button{display:block}
.guest-rsvp-list{max-height:45vh;overflow:auto}

.record-payment{display:flex;flex-wrap:wrap;align-items:last baseline;gap:8px 14px;min-width:0;margin:12px 0;padding:0;border:0}
.record-payment legend{font-size:13px;font-weight:600;padding:0;margin-bottom:3px}
.record-payment-options{display:flex;flex-wrap:wrap;gap:4px 12px}
.record-payment-options label{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:13px;cursor:pointer}
.record-payment-options input[type="radio"]{appearance:auto;width:16px;height:16px;margin:0;padding:0;accent-color:#323232}
.record-payment-detail{display:grid;gap:3px;flex:1 1 105px;max-width:280px;min-width:0;font-size:12px}
.record-payment-detail[hidden]{display:none}
.record-payment-detail input{box-sizing:border-box;min-width:0;min-height:40px;padding:8px 10px;font-size:16px}
.gift-sheet-row .record-payment{margin:8px 0 4px}
