body { line-break: strict; word-break: normal; overflow-wrap: break-word; }
p, dd { text-wrap: pretty; }
h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.phrase { display: inline-block; max-width: 100%; vertical-align: top; }
.en { font-family: var(--en); }
.names { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.venue-name { margin-top: 26px; }
.table-numbers { display: flex; align-items: baseline; gap: 26px; margin-top: 14px; font: 700 60px/1.1 var(--en); }
.table-numbers small { font: 500 14px var(--jp); color: #aaa; }
.access-actions { display: flex; gap: 24px; margin-top: 24px; font-weight: 700; }
.access-actions a { padding-block: 10px; }
.access-note { margin-top: 18px; color: #ccc; font-size: 14px; }
.short-notes { display: grid; gap: 24px; margin-top: 32px; }
.rules-brief { padding-bottom: 20px; }
.rules-brief small { display: block; color: #666; margin-top: 10px; }
.attendance-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px; margin-top: 28px; }
.attendance-form label { display: grid; gap: 8px; font-size: 14px; }
.attendance-form label span { display: flex; align-items: baseline; gap: 7px; font-size: 16px; }
.attendance-form input { width: 78px; background: transparent; border: 0; border-bottom: 1px solid #222; font: 700 24px/1.5 var(--en); padding: 4px 6px; min-height: 44px; }
.attendance-form button { border: 1px solid #333; background: transparent; padding: 8px 15px; font-size: 14px; }
.quantity-basis { margin-top: 18px; color: #625f58; }
.capacity-note { margin-top: 12px; color: #b1000e; }
.sync-status { font-size: 13px; color: #625f58; min-height: 22px; margin-top: 20px; }
.sync-status.is-error, .form-error { color: #b1000e; }
.shopping-check-hint { margin-top: 14px; font-size: 14px; font-weight: 700; }
.editable-list { margin-top: 18px; border-top: 1px solid var(--line); }
.editable-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.editable-row h3 { font-size: 18px; line-height: 1.45; }
.editable-row .quantity { font-size: 19px; font-weight: 700; margin-top: 6px; }
.editable-row .row-meta { color: #625f58; font-size: 14px; margin-top: 6px; }
.purchase-check { width: 22px; height: 22px; margin: 4px 0 0; accent-color: #e50914; }
.check-target { padding-block: 4px; min-height: 44px; display: block; }
.editable-row.is-done h3 { text-decoration: line-through; color: #777; }
.text-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 5px; font-size: 14px; padding: 8px 0; }
.row-edit { white-space: nowrap; margin-left: 2px; }
.add-button { border: 1px solid #333; background: transparent; padding: 12px 20px; width: 100%; font-weight: 700; margin-top: 20px; }
.shared-budget-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .9fr); gap: 56px; margin-top: 28px; }
.expenses .editable-row { grid-template-columns: minmax(0,1fr) auto; }
.expense-price { font-family: var(--en); font-size: 24px; font-weight: 700; }
.empty-list { padding: 28px 0; color: #625f58; }
.bill-people { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bill-people span { display: flex; align-items: baseline; gap: 8px; }
.bill-people input { width: 74px; background: transparent; color: #fff; border: 0; border-bottom: 1px solid #aaa; min-height: 44px; font: 700 27px var(--en); }
.bill-auto { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 14px; }
.bill-auto input { width: 18px; height: 18px; accent-color: #fff; }
.bill-rounding { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 14px; }
.bill-rounding select { color: #fff; background: #292624; border: 1px solid #777; min-height: 44px; padding: 6px 12px; }
.bill-update { width: 100%; margin-top: 18px; border: 1px solid #999; color: #fff; background: transparent; padding: 8px; font-size: 14px; }
.bill-label { margin-top: 32px; }
.buyer-totals { font-size: 14px; margin-top: 24px; }
.buyer-totals > div { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; }
.buyer-totals dt { font-size: 14px; font-weight: 500; }
.buyer-totals dd { white-space: nowrap; font-family: var(--en); font-weight: 700; }
#missing-caption:not(:empty) { margin-top: 16px; }
#import-budget { margin-top: 18px; }
:disabled { opacity: .5; cursor: wait; }
dialog { background: var(--paper); color: #000; border: 0; padding: 26px; width: min(480px, calc(100% - 24px)); max-height: 90dvh; margin: auto; }
dialog::backdrop { background: #000b; }
.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.dialog-head h2 { font-family: var(--jp); font-size: 24px; }
#edit-form label { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
#edit-form input:not([type=checkbox]), #edit-form select { background: transparent; border: 1px solid #aaa; width: 100%; padding: 10px; min-height: 44px; font-size: 16px; }
.quantity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quantity-fields label:last-child { grid-column: 1 / -1; }
#edit-form .done-label { display: flex; align-items: center; gap: 10px; }
.done-label input { width: 20px; height: 20px; }
#rule-explanation { margin-top: 12px; color: #666; }
.amount-input { display: flex; align-items: center; gap: 10px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 24px; margin-top: 26px; }
.save-button { border: 0; background: #111; color: #fff; min-width: 120px; padding: 12px 24px; }
.form-error:not(:empty) { margin-top: 18px; font-size: 14px; }
#undo-bar { position: fixed; z-index: 80; inset: auto 12px 16px; max-width: 500px; margin: auto; background: #111; color: #fff; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
#undo-bar button { background: transparent; border: 0; color: #fff; text-decoration: underline; white-space: nowrap; }
@media(max-width:760px) { .shared-budget-layout { grid-template-columns: 1fr; gap: 36px; } .budget-receipt { padding-inline: 24px; } .overview-facts { column-gap: 16px; } .overview-facts dd { font-size: 16px; } .table-numbers { font-size: 52px; } .attendance-form { gap: 16px; } .attendance-form button { margin-left: auto; } }
@media(max-width:380px) { .attendance-form { gap: 14px; } .attendance-form button { margin-left: 0; } .access-actions { gap: 18px; } }

.people-edit { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 0; text-decoration: none; }
.people-edit:hover .people-counts { text-decoration: underline; }
.people-counts { display: flex; flex-wrap: wrap; gap: 0 8px; }
.people-edit .ui-icon { width: 15px; height: 15px; color: #625f58; }

.editable-row .quantity-note { color: #625f58; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.footer-meta { display: grid; gap: 7px; }
.site-footer .copyright { color: #bdb9b0; font-family: var(--jp); font-size: 12px; }

.child-counts { flex-basis: 100%; width: 100%; border-bottom: 1px solid var(--line); }
.child-counts summary { align-items: center; gap: 10px; padding-block: 10px; min-height: 44px; font-size: 14px; }
.child-counts summary > span { color: #625f58; font-size: 12px; transform: none; }
.child-fields { display: flex; gap: 24px; margin-block: 12px; }
.child-counts > p { margin-block: 12px; color: #625f58; }
.meal-plan { margin-top: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.meal-plan summary { min-height: 44px; padding-block: 10px; }
.meal-plan p { margin-bottom: 12px; }
.meal-plan .small { color: #625f58; }
#meal-portions { font-weight: 700; }
