.room-postcard-camera{position:absolute;right:12px;bottom:14px;z-index:12;display:flex;align-items:center;gap:6px;min-height:44px;padding:9px 12px;border:2px solid #fff9e7;border-radius:16px;background:#fff9e7ed;color:#376c62;font-size:12px;font-weight:700;box-shadow:0 3px 10px #314d3826;touch-action:manipulation}.room-postcard-camera svg{width:23px;height:23px}.room-postcard-camera[hidden]{display:none!important}.room-postcard-camera:focus-visible,.postcard-close:focus-visible{outline:3px solid #d69f32;outline-offset:3px}.room-postcard-dialog{box-sizing:border-box;padding:0;width:min(94vw,510px);max-width:510px;max-height:90dvh;overflow:hidden;border:1px solid #dec8a4;border-radius:26px;background:#fff9ed;color:#315e53;box-shadow:0 20px 70px #173c4266}.room-postcard-dialog[open]{display:flex;flex-direction:column}.room-postcard-dialog::backdrop{background:#203e416b;backdrop-filter:blur(3px)}.postcard-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:#fff9ed;flex-shrink:0;border-bottom:1px solid #e8dcc7;margin:0!important}.postcard-header h2{font-size:21px;margin:0}.postcard-scroll{overflow:auto;min-height:0;padding:14px 18px}.postcard-preview{background:#efe8d7;border-radius:14px;overflow:hidden;min-height:160px;display:grid;place-items:center}.postcard-preview img{display:block;max-width:100%;width:auto;max-height:58dvh;object-fit:contain}.postcard-loading{padding:35px 15px;text-align:center;font-size:15px;color:#668076}.postcard-status{font-size:12px;text-align:center;line-height:1.5;color:#78816d;margin:12px 0 0;min-height:18px}.postcard-actions{display:flex;flex-direction:column;gap:9px;flex-shrink:0;padding:13px 18px max(15px,env(safe-area-inset-bottom));border-top:1px solid #e8dcc7;background:#fff9ed}.postcard-actions button{width:100%;min-height:46px;margin:0;padding:11px 16px;font-size:16px;border-radius:15px}.postcard-actions .primary{background:#287c70;color:#fffaf0;border:1px solid #236a61;box-shadow:0 3px 0 #1d5c53}.postcard-actions .secondary{background:#fffaf0;color:#416f62;border:1px solid #cbd6bc;box-shadow:none}.postcard-actions button:disabled{opacity:.5;cursor:wait}@media(max-height:600px){.postcard-header{padding:6px 14px}.postcard-preview img{max-height:42dvh}.postcard-scroll{padding:8px 14px}.postcard-actions{padding:8px 14px;gap:6px}.postcard-status{margin-top:6px}.postcard-actions button{min-height:40px;font-size:14px}}

.room-postcard-camera{width:46px;height:46px;min-width:46px;justify-content:center;padding:10px;border-radius:50%}.room-postcard-camera svg{width:24px;height:24px}

.postcard-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.postcard-spinner{display:block;width:38px;height:38px;box-sizing:border-box;border:4px solid #d8e4d3;border-top-color:#287c70;border-right-color:#d8ac58;border-radius:50%;animation:postcard-spin .9s linear infinite}@keyframes postcard-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.postcard-spinner{animation:none;border-top-color:#287c70}}

.postcard-saved{margin:0;text-align:center;padding:12px 8px;min-height:22px;font-size:14px;font-weight:600;color:#397966}.postcard-send-feedback{margin:2px 4px 5px;text-align:center;font-size:12px;line-height:1.4;color:#537d6c}.postcard-send-feedback[hidden]{display:none!important}

.postcard-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.postcard-actions .postcard-send{grid-column:2;grid-row:1}.postcard-actions .postcard-save,.postcard-actions .postcard-saved{grid-column:1;grid-row:1}.postcard-actions .postcard-send-feedback{grid-column:1/-1}.postcard-actions .postcard-close-link{grid-column:1/-1;justify-self:center;width:auto;min-height:40px;padding:8px 18px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#537568;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.postcard-close-link:hover{color:#193f43}.postcard-close-link:focus-visible{outline:3px solid #d69f32;outline-offset:2px}@media(max-width:380px){.postcard-actions .primary,.postcard-actions .secondary{font-size:14px;padding:11px 5px}}

.postcard-preview{position:relative;width:100%;box-sizing:border-box;max-height:58dvh}.postcard-preview img{position:absolute;inset:0;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain}.postcard-loading{position:absolute;inset:0;box-sizing:border-box}@media(max-height:600px){.postcard-preview{max-height:42dvh}}

.room-postcard-dialog{width:min(94vw,510px,calc(58dvh * var(--postcard-aspect) + 2px));min-width:min(94vw,300px);background:#fff9ed}.postcard-scroll{padding:0;background:#fff9ed}.postcard-preview{max-height:none;min-height:0;background:transparent;border-radius:0}.postcard-status{padding:0 18px 12px}.postcard-header,.postcard-actions{background:#fff9ed}@media(max-height:600px){.room-postcard-dialog{width:min(94vw,510px,calc(42dvh * var(--postcard-aspect) + 2px))}.postcard-scroll{padding:0}.postcard-preview{max-height:none}}

.room-postcard-dialog{width:min(calc(100vw - 16px),720px);max-width:calc(100vw - 16px);min-width:0;background:#fff8e9}.postcard-preview{height:min(58dvh,calc((min(calc(100vw - 16px),720px) - 2px) * var(--postcard-height-ratio)));max-height:none;aspect-ratio:auto!important;background:transparent}.postcard-scroll,.postcard-header,.postcard-actions{background:#fff8e9}@media(max-height:600px){.room-postcard-dialog{width:min(calc(100vw - 16px),720px)}.postcard-preview{height:min(42dvh,calc((min(calc(100vw - 16px),720px) - 2px) * var(--postcard-height-ratio)))}}

.postcard-status[hidden]{display:none!important}

.room-postcard-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.postcard-scroll{flex:1;display:flex;flex-direction:column;justify-content:safe center;min-height:0}.postcard-preview{flex-shrink:0}.postcard-actions{flex-shrink:0}

.postcard-actions .postcard-send[hidden],.postcard-actions .postcard-save[hidden]{display:block!important;visibility:hidden;pointer-events:none}.postcard-action-reveal{animation:postcard-action-reveal .4s ease-out both}@keyframes postcard-action-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.postcard-action-reveal{animation:none}}

.postcard-actions .postcard-send{position:relative;isolation:isolate}.postcard-send.postcard-action-reveal::after{content:'';position:absolute;inset:-3px;border:2px solid #ffd463;border-radius:18px;opacity:0;pointer-events:none;animation:postcard-send-glow 1.5s ease-in-out .9s 2}@keyframes postcard-send-glow{0%,100%{opacity:0;box-shadow:0 0 0 0 #ffd46300}45%{opacity:1;box-shadow:0 0 14px 5px #ffd46388}75%{opacity:.3;box-shadow:0 0 20px 8px #ffd46333}}.postcard-send:disabled::after{animation:none}@media(prefers-reduced-motion:reduce){.postcard-send.postcard-action-reveal::after{animation:none}}

.postcard-actions .postcard-send{display:flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(#ffe988,#ffd34d);color:#194f48;border:2px solid #c58e22;box-shadow:inset 0 2px #fff5c5,0 3px 0 #bb851c;font-weight:800}.postcard-send svg{width:20px;height:20px;flex-shrink:0}.postcard-actions .postcard-send:hover{background:linear-gradient(#fff0a3,#ffdb62)}.postcard-send.postcard-action-reveal::after{content:none;animation:none}.postcard-send.postcard-action-reveal{animation:postcard-action-reveal .4s ease-out both,postcard-send-pop .55s ease-in-out .8s}.postcard-send.postcard-action-reveal::before{content:'✦ ✧ ✦';position:absolute;right:10px;top:-15px;color:#d29a20;font-size:27px;letter-spacing:9px;line-height:1;opacity:0;pointer-events:none;animation:postcard-send-sparkles 1.1s ease-out .95s both}@keyframes postcard-send-pop{0%,100%{transform:scale(1)}45%{transform:scale(1.035)}}@keyframes postcard-send-sparkles{0%{opacity:0;transform:translateY(7px) scale(.5)}35%{opacity:1;transform:translateY(-10px) scale(1.1)}100%{opacity:0;transform:translateY(-37px) scale(.9)}}@media(prefers-reduced-motion:reduce){.postcard-send.postcard-action-reveal,.postcard-send.postcard-action-reveal::before{animation:none}}

.postcard-actions .postcard-save,.postcard-actions .postcard-send{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:52px;min-height:52px;padding:10px 8px;line-height:1.2}.postcard-send span{white-space:nowrap}@media(max-width:380px){.postcard-actions .postcard-save,.postcard-actions .postcard-send{font-size:14px;padding:10px 5px}}
.postcard-send.postcard-action-reveal::after{content:'';position:absolute;inset:0;border:0;border-radius:inherit;box-shadow:none;background:linear-gradient(110deg,transparent 35%,#ffffff22 42%,#ffffffe0 49%,#ffffff22 56%,transparent 63%);background-size:300% 100%;background-position:100% 0;pointer-events:none;opacity:0;animation:postcard-send-sheen .9s ease-in-out 5s 1 both}@keyframes postcard-send-sheen{0%{opacity:0;background-position:100% 0}15%{opacity:.85}85%{opacity:.85}100%{opacity:0;background-position:0% 0}}@media(prefers-reduced-motion:reduce){.postcard-send.postcard-action-reveal::after{animation:none}}
