#guestFormBackdrop { background:rgba(24,22,19,.55); backdrop-filter:blur(5px); }
#guestForm .rsvp-saved-answer { font-size:12px; color:#8b8376; margin:0 0 12px; line-height:1.5; }
#guestForm .rsvp-block { border:1px solid #e9e3d9!important; border-radius:14px!important; padding:18px!important; box-sizing:border-box; }
#guestForm .rsvp-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px; background:#f3f0ea; border-radius:12px; }
#guestForm .rsvp-choices label { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; margin:0; padding:6px; box-sizing:border-box; border:1px solid transparent; border-radius:9px; color:#81796b; font-size:13px; font-weight:500; text-align:center; cursor:pointer; transition:background .15s,color .15s; }
#guestForm .rsvp-choices input[type=radio] { position:absolute; width:1px; height:1px; opacity:0; margin:0; padding:0; }
#guestForm .rsvp-choices label:has(input:checked) { background:#fff; color:#68532c; border-color:#e4d9c2; box-shadow:0 2px 5px #342b1910; font-weight:700; }
#guestForm .rsvp-choices label:has(input[value="1"]:checked) { background:#fff; color:#286046; border-color:#cbded2; }
#guestForm .rsvp-choices label:has(input[value="0"]:checked) { background:#fff; color:#a34d45; border-color:#e8d3d0; }
#guestForm .rsvp-choices label:has(input:checked)::before { content:'✓'; font-size:12px; }
#guestForm .rsvp-choices label:has(input:focus-visible) { outline:2px solid #98752c; outline-offset:2px; }
#guestForm .rsvp-choices label:has(input:disabled) { opacity:.5; cursor:wait; }
@media(max-width:400px) { #guestForm .rsvp-choices label { font-size:11px; gap:3px; padding:4px; } }
.guest-delete-overlay { position:fixed; inset:0; z-index:100000; align-items:center; justify-content:center; background:#18161399; backdrop-filter:blur(5px); padding:20px; }
.guest-delete-card { width:min(440px,100%); box-sizing:border-box; background:#fffdf9; border:1px solid #e4dccb; border-radius:20px; padding:30px; box-shadow:0 30px 100px #18161345; }
.guest-delete-card h2 { margin:12px 0; font-size:23px; }
.guest-delete-card p { color:#756e61; line-height:1.6; font-size:14px; }
.guest-delete-card .guest-editor-eyebrow { color:#947023; font-size:10px; font-weight:700; letter-spacing:1px; }
.guest-delete-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:24px; }
.guest-delete-actions .btn { min-height:42px; border-radius:10px; }
.guest-delete-actions .dark { background:#a63b32; color:white; }
#addForm.add-form { width:min(1400px,96vw); max-width:1400px; max-height:94dvh; padding:0; border:1px solid #e4dccb; border-radius:24px; background:#fffdf9; box-shadow:0 30px 100px #18161345; color:#29251e; }
#addForm .guest-editor-header { display:flex; gap:20px; align-items:flex-start; justify-content:space-between; padding:28px 30px 24px; border-bottom:1px solid #eae4d8; background:#f7f3eb; }
#addForm .guest-editor-eyebrow { font-size:10px; font-weight:700; letter-spacing:1.7px; color:#947023; }
#addForm h2 { position:static; margin:9px 0; padding:0; border:0; background:transparent; font-size:26px; letter-spacing:-.6px; }
#addForm .guest-editor-header p { margin:0; color:#756e61; font-size:13px; line-height:1.6; }
#addForm .guest-editor-close { flex-shrink:0; width:36px; height:36px; border-radius:50%; border:1px solid #ddd4c4; background:transparent; font-size:25px; color:#756e61; cursor:pointer; }
#guestForm { padding:24px 30px 0; gap:20px; }
#guestForm .guest-editor-section { font-size:12px; font-weight:700; color:#947023; letter-spacing:.4px; }
#guestForm label { font-size:12px; font-weight:600; color:#494236; }
#guestForm input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]), #guestForm select { box-sizing:border-box; width:100%; min-height:46px; padding:11px 13px; border:1px solid #dfd8cb; border-radius:10px; background:#fff; color:#29251e; font:inherit; font-size:14px; }
#guestForm input:focus-visible, #guestForm select:focus-visible, #guestForm button:focus-visible { outline:2px solid #947023; outline-offset:3px; }
#guestForm small { display:block; margin-top:8px; font-size:12px; line-height:1.5; color:#827968; }
#guestForm .guest-phone-field label span { margin-left:6px; color:#8c8478; font-weight:400; }
#guestForm input[type=checkbox], #guestForm input[type=radio] { accent-color:#947023; }
#guestForm .check-grid { gap:10px; }
#guestForm .check-item { background:#faf8f3; border-color:#e7dfd1; border-radius:12px; min-height:48px; margin:0; box-sizing:border-box; }
#guestForm .guest-editor-options { padding-top:18px; border-top:1px solid #eee7db; }
#guestForm .guest-editor-options .guest-editor-section { margin-bottom:12px; }
#guestForm .tag-inline-details { margin-top:12px; }
#guestForm .guest-real-preview { min-width:0; padding:14px; border:1px solid #e4d8bd; border-radius:14px; background:#f4efe5; }
.guest-preview-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; font-size:12px; color:#514735; }
.guest-preview-device { border:1px solid #d8cdb9; padding:7px 10px; background:#fffdf9; color:#756e61; cursor:pointer; font-size:11px; }
.guest-preview-device[aria-pressed=true] { background:#29251e; color:white; border-color:#29251e; }
#guest-preview-status { margin:8px 0; color:#756e61; font-size:12px; }
#guest-preview-status:empty { display:none; }
#guest-preview-stage { position:relative; overflow:hidden; min-height:160px; background:#e6dfd2; border-radius:10px; }
#guest-preview-frame { position:absolute; top:0; border:0; transform-origin:top left; background:white; }
#guestForm .guest-name-preview { border:1px solid #e4d8bd; border-radius:14px; padding:20px; background:linear-gradient(135deg,#f9f4e9,#fffdf9); text-align:center; overflow-wrap:anywhere; }
#guestForm .guest-preview-caption { color:#947023; font-size:9px; letter-spacing:1.5px; font-weight:700; margin-bottom:20px; }
#guestForm .guest-preview-title { font-size:12px; letter-spacing:1.4px; margin-bottom:8px; }
#guestForm .guest-preview-fullname { font-family:Georgia,serif; font-size:27px; line-height:1.3; color:#30291f; }
#guestForm .guest-preview-line2 { font-size:15px; margin-top:8px; color:#756e61; }
#guestForm .guest-name-preview small { margin-top:20px; font-size:11px; }
#guestForm .guest-name-preview [hidden] { display:none !important; }
#guestForm .full[style*="justify-content:flex-end"] { position:sticky; bottom:0; z-index:3; margin:0 -30px; padding:18px 30px; background:#fffdf9; border-top:1px solid #eae4d8; }
#guestForm .btn { min-height:43px; border-radius:10px; padding:10px 22px; font-weight:600; }
#guestForm .btn.dark { background:#947023; border-color:#947023; color:white; }
#guestForm .btn.outline { background:transparent; border-color:#dcd3c3; color:#514735; }
@media(min-width:1050px) {
  #guestForm { grid-template-columns:repeat(2,minmax(0,1fr)) minmax(390px,1.7fr); align-items:start; }
  #guestForm .full { grid-column:1 / 3; }
  #guestForm .guest-real-preview { grid-column:3; grid-row:1 / span 20; position:sticky; top:16px; }
  #guestForm .full[style*="justify-content:flex-end"] { grid-column:1 / 3; margin-right:0; }
}
@media(min-width:601px) and (max-width:1049px) {
  #addForm.add-form { width:min(900px,96vw); }
}
@media(max-width:600px) {
  #addForm.add-form { width:96vw; border-radius:18px; max-height:94dvh; }
  #addForm .guest-editor-header { padding:22px 20px; }
  #addForm h2 { font-size:23px; }
  #guestForm { grid-template-columns:1fr; padding:20px 20px 0; gap:17px; }
  #guestForm .full[style*="justify-content:flex-end"] { margin:0 -20px; padding:15px 20px; }
  #guestForm .check-grid { grid-template-columns:1fr; }
}
#addForm .guest-members-editor{width:100%;min-width:0;box-sizing:border-box;padding:18px;border:1px solid #e5e8ed;border-radius:10px;background:#fafbfc}#addForm .guest-members-editor h3{margin:0 0 8px;font-size:15px}#addForm .guest-members-editor p,#addForm .guest-members-editor small{font-size:12px;color:#718096;line-height:1.5}#addForm .guest-members-editor small{display:block;margin-top:10px}#addForm .guest-member-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.4fr) auto;align-items:end;gap:10px;margin:12px 0}#addForm .guest-member-row label{margin:0;min-width:0}#addForm .guest-member-row button{margin:0;min-height:39px}@media(max-width:600px){#addForm .guest-member-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#addForm .guest-member-row button{grid-column:1/-1;justify-self:end}}
#rsvp-responses.uses-person-matrix{display:none!important}#addForm .guest-attendance-editor{background:#fff;border:1px solid #dbe5e4;border-radius:12px;padding:18px}#addForm .guest-attendance-editor>header h3{font-size:18px;color:#294d53;margin:0 0 6px}#addForm .guest-attendance-editor>header p{font-size:12px;margin:0 0 16px;color:#6d8185}.guest-meal-totals{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.guest-meal-totals article{display:flex;flex-direction:column;gap:5px;flex:1;min-width:150px;background:#eff5f3;border-radius:8px;padding:12px}.guest-meal-totals article>strong{font-size:12px;color:#35575a}.guest-meal-totals article>span{font-size:13px;color:#2b6a50}#guestForm .guest-meal-totals small{margin:0;font-size:10px}.guest-meal-warning{color:#9a7026!important}.guest-attendance-scroll{overflow:auto;border:1px solid #dce5e4;border-radius:9px}.guest-attendance-matrix{border-collapse:collapse;width:100%;min-width:620px}.guest-attendance-matrix th{padding:10px;background:#f3f7f6;color:#4b686d;text-align:left;font-size:11px;vertical-align:top;min-width:150px}.guest-attendance-matrix th:first-child{min-width:210px}.guest-attendance-matrix td{padding:8px 10px;border-top:1px solid #edf1ef;vertical-align:middle}#guestForm .guest-attendance-matrix input,#guestForm .guest-attendance-matrix select{width:100%;min-height:35px;padding:6px 8px;font-size:12px;margin:0;background:#fff;border:1px solid #d5dfdd;border-radius:6px;box-sizing:border-box}#guestForm .guest-attendance-matrix .guest-person-presence.yes{background:#eaf5ee;color:#286a4d;border-color:#bfdbca}#guestForm .guest-attendance-matrix .guest-person-presence.no{background:#fbeeea;color:#994f44;border-color:#e7d0c9}#guestForm .guest-attendance-matrix .guest-person-presence.unknown{color:#8b742f;background:#fff9e9;border-color:#e6dbb7}.guest-meal-bulk{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}#guestForm .guest-meal-bulk button{font-size:9px;padding:4px 6px;border:1px solid #cdded6;border-radius:4px;background:#fff;color:#4a7063;cursor:pointer;min-height:25px}.guest-not-invited{font-size:11px;color:#93a1a4}.guest-matrix-note{font-size:11px!important;color:#73878b!important;line-height:1.6;margin:12px 0 0!important}@media(max-width:600px){#addForm .guest-attendance-editor{padding:12px}.guest-attendance-matrix th:first-child,.guest-attendance-matrix td:first-child{position:sticky;left:0;z-index:1;background:#fff;min-width:155px}.guest-attendance-matrix th:first-child{background:#f3f7f6;z-index:2}}
/* Put attendance first when editing; retain identity and invitation settings in a separate tab. */
#guestForm>.guest-attendance-editor{grid-column:1/-1;grid-row:1;order:-1}#guestForm .guest-real-preview{grid-row:2/span 20}.guest-editor-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #e2e9e5;padding-bottom:12px;margin-bottom:16px}#guestForm .guest-editor-tabs button{border:1px solid #d4dfd9;border-radius:7px;background:#fff;color:#617b73;padding:8px 12px;cursor:pointer;font-size:12px}#guestForm .guest-editor-tabs button[aria-pressed=true]{background:#315d52;color:white;border-color:#315d52}#guestForm .guest-editor-tabs button:disabled{opacity:.5;cursor:wait}#guestForm.is-person-view{display:block}#guestForm.is-person-view>:not(.guest-attendance-editor):not(.guest-form-actions):not(input[type=hidden]){display:none!important}#guestForm.is-person-view .guest-form-actions{margin:18px -30px 0;padding:15px 30px}@media(max-width:600px){#guestForm.is-person-view .guest-form-actions{margin:15px -20px 0;padding:12px 20px}#guestForm .guest-editor-tabs button{flex:1;font-size:11px;padding:8px}.guest-editor-tabs{gap:5px}}
