*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0}body{background:#f3f2ec;color:#273b34;font:15px/1.45 system-ui,sans-serif;display:grid;grid-template-rows:72px minmax(0,1fr);height:100dvh;overflow:hidden}header{padding:10px 28px;border-bottom:1px solid #dcdfd4;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:23px;font-weight:800;line-height:1.25;color:inherit;text-decoration:none}.brand span{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:500}header p{color:#6c7b6e;font-size:13px}.viewSwitch{display:none}main{display:grid;grid-template-columns:minmax(340px,410px) minmax(0,1fr);gap:24px;width:100%;max-width:1440px;margin:auto;padding:20px 28px;height:100%;min-height:0}aside{background:#fffdf8;border:1px solid #e1e4d8;border-radius:22px;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.editor{display:flex;flex-direction:column;min-height:0;flex:1}.intro{padding:20px 24px 14px}small{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#75846f}h1{font-size:27px;line-height:1.15;margin:7px 0 0}h2{font-size:25px;line-height:1.2;margin:12px 0 18px}.tabs{display:flex;margin:0 18px;gap:3px;border-bottom:1px solid #e4e5db}.tabs button{padding:11px 7px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#74816d;font-size:13px;flex:1}.tabs [aria-selected=true]{color:#2d4e3b;border-color:#67825b}.panel{padding:8px 24px 20px;overflow:auto;min-height:0;flex:1}label{display:block;font-weight:650;margin:13px 0 6px}select,input,textarea{width:100%;font:inherit;color:inherit;padding:10px 12px;border:1px solid #cbd4c4;border-radius:10px;background:#fff}textarea{resize:vertical;min-height:76px}input[type=checkbox]{width:17px;height:17px;accent-color:#55744e}.hint{font-size:12px;color:#6f7b69;line-height:1.5;margin:9px 0}.hint a,.credit a{color:#416a57}.included{background:#eef1e6;border-radius:14px;padding:15px;margin-top:20px;font-size:13px}.included p{margin:6px 0 0;color:#61735d}.checks{display:grid;gap:8px;padding:6px 0}.checks label{position:relative;margin:0;border:1px solid #dbe1d3;padding:10px 9px 10px 40px;border-radius:11px;font-size:13px;background:white;cursor:pointer}.checks label:has(input:checked){border-color:#718e62;background:#f0f5e9}.checks input{position:absolute;left:12px;top:13px;margin:0}.checks span{display:block;font-size:11px;font-weight:400;color:#76806f}.actions{border-top:1px solid #e1e5d8;padding:10px 20px 18px;background:#fffdf8;flex-shrink:0}#saveStatus{margin:0 0 8px;font-size:12px;line-height:1.4;color:#617750;overflow-wrap:anywhere}#saveStatus:empty{display:none}#mainActions{display:grid;gap:8px}button,.buttonLink{cursor:pointer;border:0;background:#2d4e3b;color:#fff;border-radius:11px;padding:12px 14px;font:inherit;font-size:14px;font-weight:650;text-decoration:none;text-align:center}.secondary{background:#e8eddf;color:#375439}.textButton{background:none;color:#51694d;padding:0;font-size:12px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ac88bc;outline-offset:2px}#telegramFallback{font-size:12px}#telegramFallback>a{display:block;margin-top:9px;color:#385e48}#telegramFallback .buttonLink{color:white}article{display:flex;flex-direction:column;min-width:0;min-height:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:white;border-radius:14px;flex-shrink:0}.toolbar span{display:block;font-size:11px;color:#74816d;margin-top:2px}#open{color:#42644b;font-size:12px;white-space:nowrap}.notice{font-size:11px;color:#7d8674;text-align:center;margin:9px 0;flex-shrink:0}iframe{display:block;width:100%;max-width:430px;flex:1;min-height:0;border:5px solid white;border-radius:22px;margin:0 auto;background:white;box-shadow:0 14px 42px #263b3414}audio{width:100%;margin:12px 0}.credit{font-size:11px;color:#77826f;margin-top:16px}.checkout{padding:18px 24px;overflow:auto;min-height:0;flex:1}.checkoutHead{display:flex;align-items:center;justify-content:space-between;gap:8px}.formRow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.briefNav{display:flex;gap:10px;margin-top:20px}.briefNav button{flex:1}.review{border-radius:13px;background:#eef1e8;padding:14px;font-size:13px;white-space:pre-line;overflow-wrap:anywhere;margin:14px 0}.receipt{padding:25px;overflow:auto;flex:1;min-height:0}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-height:770px) and (min-width:851px){body{grid-template-rows:62px minmax(0,1fr)}main{padding:14px 24px}.intro{padding:14px 24px 10px}h1{font-size:24px}.included{margin-top:14px;padding:12px}.panel{padding-bottom:12px}.actions{padding-bottom:12px}}
@media(max-width:850px){body{grid-template-rows:70px minmax(0,1fr)}header{padding:10px 16px}header p{display:none}.brand{font-size:20px}.brand span{font-size:8px}.viewSwitch{display:flex;gap:4px;background:#e6eadc;padding:3px;border-radius:10px}.viewSwitch button{padding:8px 10px;background:none;color:#67765f;font-size:12px}.viewSwitch .active{background:white;color:#2d4e3b;box-shadow:0 2px 4px #0001}main{display:block;padding:12px;height:100%}aside,article{height:100%}article{display:none}body.previewing aside{display:none}body.previewing article{display:flex}.intro{padding:18px 22px 12px}h1{font-size:26px}.panel{padding-left:22px;padding-right:22px}.toolbar{padding:10px 14px}iframe{width:100%;max-width:430px}.notice{font-size:10px}.actions{padding:12px 20px}.checkout{padding:18px 22px}.included{margin-top:16px}.hint{font-size:12px}}

.checkout{display:flex;flex-direction:column;overflow:hidden}.checkout h2,.checkoutHead{flex-shrink:0}.checkout form{display:flex;flex-direction:column;flex:1;min-height:0}.briefStep{flex:1;min-height:0;overflow:auto;padding-right:3px}.briefNav{flex-shrink:0;padding-top:10px;margin-top:6px;border-top:1px solid #e1e5d8}#contactValue{margin-top:8px}
.tabs button{font-size:12px;padding-left:3px;padding-right:3px;white-space:nowrap}#interests{min-height:98px}#chooseLook{margin-top:14px;width:100%}#child .included{margin-top:14px;padding:12px}.interestReview{background:#eef1e8;border-radius:12px;padding:12px;margin-top:16px;font-size:12px}.interestReview p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 10px;max-height:92px;overflow:auto}
#child #interests{min-height:104px;height:124px}#child>.hint{font-size:12px;line-height:1.5;margin:9px 0}#child #chooseLook{margin-top:10px;padding:10px}#prepareCards{width:100%;margin-top:8px}.captionReview{background:#fffdf8;border:1px solid #dce2d4;border-radius:14px;margin:12px auto 0;padding:10px 14px;width:100%;max-width:650px;flex-shrink:0;max-height:42%;overflow:auto}.captionReview>p{font-size:12px;line-height:1.45;margin:0 0 8px}.captionActions{display:flex;gap:8px;flex-wrap:wrap}.captionActions button{font-size:12px;padding:10px 12px;flex:1;min-width:130px}#changesPanel label{font-size:12px;margin-top:8px}#captionChanges{resize:vertical;min-height:64px;height:70px}#applyChanges{font-size:12px;margin-top:7px;width:100%}#refreshOrder{margin:0 0 10px}#storyState{font-size:11px;overflow-wrap:anywhere}
#continueBot:disabled{cursor:not-allowed}#telegramLocalHint{margin-bottom:0;font-size:10px}
.operatorMessages{white-space:pre-line;overflow-wrap:anywhere;background:#edf1e4;border-left:3px solid #78926c;padding:10px;margin:8px 0;font-size:12px;max-height:120px;overflow:auto}
.producedReview{margin:12px auto 0;background:#fffdf8;border:1px solid #dce2d4;border-radius:20px;padding:20px;width:100%;max-width:650px;min-height:0;overflow:auto;flex:1}.producedReview .buttonLink{display:block;margin:14px 0}.producedReview h2{margin:6px 0 10px;font-size:24px}.producedReview p{font-size:14px;margin:8px 0}.finalActions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.finalActions:not(:has(button:not([hidden]))){display:none}.finalActions button{flex:1;min-width:150px}#previewChanges{height:90px;min-height:70px}#sendPreviewChanges{width:100%;margin-top:8px}#refreshProduced{margin-top:16px;font-size:12px}
#invitationViewer{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;max-width:none;height:100dvh;max-height:none;overflow:hidden;background:#f3f2ec;color:#273b34}#invitationViewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.reviewViewerBar{padding:calc(10px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));background:#fffdf8;border-bottom:1px solid #dce2d4;box-shadow:0 2px 10px #273b3410;z-index:1}#reviewReturn{min-height:44px;max-width:100%;font-size:14px}#reviewInvitation{width:100%;max-width:none;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;flex:none}
@media(min-width:851px){.intro{padding:14px 22px 10px}.tabs button{padding-top:9px;padding-bottom:9px}.panel{padding:6px 22px 12px}.panel>label{margin-top:10px;margin-bottom:5px}.panel .hint,#child>.hint{margin:6px 0}#child #interests{height:104px;min-height:104px}#prepareCards{margin-top:6px}#child #chooseLook{margin-top:8px}.actions{padding:10px 20px 12px}#mainActions{gap:6px}#mainActions button{padding-top:10px;padding-bottom:10px}}

.parentRsvp{margin-top:12px;padding:12px 0 0;border-top:1px solid var(--line,#dce2d5)}.parentRsvp h3{margin:0 0 8px;font-size:18px}
.parentRsvpList{padding-left:1.5rem}.parentRsvpList li{padding:.65rem .2rem;border-bottom:1px solid #dce2d5;overflow-wrap:anywhere}.parentRsvpList p{margin:.35rem 0}.parentRsvpTotals{font-weight:700}

/* One workspace per order stage. The form and phone preview remain together during input. */
#invitationSection{display:flex;flex-direction:column;min-height:0;flex:1}
.workspaceTools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.workspaceHeading{min-width:0}.workspaceHeading>b{display:block}
.orderState{border-radius:20px;background:#e8eddf;padding:5px 10px;color:#375439;font-size:12px;white-space:nowrap}
.workspaceStatus{font-size:12px;color:#50654e;line-height:1.4;margin:12px 0 0;overflow-wrap:anywhere}
.workspaceStatus:empty{display:none}
.orderProgress{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0;margin:18px 0;color:#7c8677;font-size:12px}
.orderProgress li{border-top:3px solid #e5e8de;padding-top:7px}
.orderProgress li[data-done=true]{border-color:#a5b895;color:#516a47}
.orderProgress [aria-current=step]{border-color:#31523e;color:#294a35;font-weight:700}
.orderSections{display:flex;gap:18px;border-bottom:1px solid #dce2d5;margin:0;padding:0}
.orderSections button{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#718069;padding:12px 2px;font-size:14px}
.orderSections [aria-selected=true]{border-bottom-color:#31523e;color:#294a35}
.orderDetails,.receiptDetails{font-size:13px}.orderDetails>summary,.receiptDetails>summary{cursor:pointer;font-weight:650;color:#526b48}
.orderDetails{border-top:1px solid #dce2d5;padding-top:14px;margin-top:18px}.orderDetails .review{margin-bottom:0}
body.orderWorkspace main{display:block;max-width:1080px;margin:0 auto;padding:20px 28px;height:100%}
body.orderWorkspace aside,body.orderWorkspace .viewSwitch{display:none}
body.orderWorkspace #orderWorkspace{display:flex;width:100%;height:auto;max-height:100%;min-height:0;overflow:auto;background:#fffdf8;border:1px solid #dce2d4;border-radius:20px;padding:24px}
body.orderWorkspace #orderHeader{padding:0;background:none;border-radius:0;gap:20px;width:100%}
body.orderWorkspace #previewTitle{font-size:22px;line-height:1.25}
body.orderWorkspace #orderIdentity{display:block;margin-bottom:5px}
body.orderWorkspace #summary{font-size:13px;margin-top:5px}
body.orderWorkspace #invitationSection{display:block;flex:none;width:100%}
body.orderWorkspace .producedReview{flex:none;max-width:none;width:100%;padding:18px 0 0;margin:0;border:0;background:none;border-radius:0;overflow:visible}
body.orderWorkspace .producedReview>small{display:none}
body.orderWorkspace .producedReview h2{font-size:21px;margin:0 0 8px}
body.orderWorkspace .producedReview .buttonLink{margin:14px 0;min-height:44px}
body.orderWorkspace .finalActions{margin:12px 0}
body.orderWorkspace #guestResponses{margin:0;padding:18px 0 0;border:0}
body.orderWorkspace #guestResponses p{font-size:14px}
body.orderWorkspace #guestResponses h3{margin-top:0;font-size:21px}
body.orderWorkspace .parentRsvpList{margin:12px 0}
body.orderWorkspace #guestResponses>button{font-size:12px;padding:10px 14px;min-height:44px}
body.editorWorkspace .toolbar,body.cardsWorkspace .toolbar{max-width:430px;width:100%;margin:0 auto}
body.editorWorkspace .captionReview,body.cardsWorkspace .captionReview{max-width:430px}
body.editorWorkspace #open,body.cardsWorkspace #open{display:none}
body.editorWorkspace aside,body.cardsWorkspace aside{align-self:start;height:auto;max-height:100%}
body.cardsWorkspace .receipt{flex:none;padding:22px}
body.cardsWorkspace .actions{display:none}
body.cardsWorkspace .receiptDetails .review{max-height:220px;overflow:auto}
body.editorWorkspace #storyState{display:none}
@media(max-width:850px){
 body.orderWorkspace main{padding:12px}
 body.orderWorkspace #orderWorkspace{padding:18px}
 body.orderWorkspace #orderHeader{align-items:flex-start;flex-wrap:wrap;gap:10px}
 body.orderWorkspace #previewTitle{font-size:21px}
 body.orderWorkspace .workspaceTools{width:100%;justify-content:space-between}
 body.orderWorkspace .orderProgress{font-size:11px;gap:5px;margin:16px 0}
 body.orderWorkspace .orderSections{gap:16px}
}

.toolbar h2{font-size:16px;line-height:1.3;margin:0}
body.orderWorkspace .producedReview>h2{display:none}
