.workspace{grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);grid-template-areas:"preview form";direction:ltr}
.workspace>.preview-panel{grid-area:preview;direction:rtl}
.workspace>aside{grid-area:form;direction:rtl;min-width:0}
.guided-controls{min-width:0;border:1px solid var(--line);border-radius:24px;background:linear-gradient(150deg,#F3EBDF,#FFFDF9);padding:24px}
.guided-steps{display:flex;gap:6px;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:24px}
.guided-steps button{flex:1;min-width:0;min-height:44px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);padding:8px 5px;font-size:11px;line-height:1.6}
.guided-steps button[aria-current=step]{color:var(--gold);border-color:rgba(143,91,34,.23);background:rgba(143,91,34,.05)}
.guided-form,.guided-panel,.guided-fields,.guided-field{min-width:0}
.guided-panel h2{font-size:24px;line-height:1.4;letter-spacing:-.025em;font-weight:400;margin:0 0 9px}
.guided-hint{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 22px}
.guided-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:18px 14px}
.guided-panel[data-guided-panel="0"] .guided-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.guided-field:only-child{grid-column:1/-1}
.guided-field>label{display:block;color:#3A3025;font-size:12px;line-height:1.6;margin-bottom:8px;overflow-wrap:anywhere}
.guided-input{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;background:#FFFFFF;color:#2D251D;border:1px solid var(--line-2);border-radius:11px;padding:12px;font-size:16px;line-height:1.5}
textarea.guided-input{min-height:82px;resize:vertical}
.guided-input::placeholder{color:#9A8775;font-size:13px}
.guided-input:focus{border-color:var(--gold)}
.guided-input[aria-invalid=true]{border-color:#C45A56}
.guided-input:is([type=date],[type=time]){color-scheme:light;direction:ltr;text-align:start}
.guided-error{display:block;color:#A63D40;font-size:11px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}
.guided-error:empty,.guided-status:empty{display:none}
.guided-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:25px}
.guided-actions button{min-height:46px;white-space:normal}
.guided-actions button:last-child{margin-inline-start:auto}
.guided-status{font-size:12px;color:var(--pink);line-height:1.7;margin:18px 0 0}
.guided-advanced{border-top:1px solid var(--line);margin-top:24px;padding-top:10px}
.guided-advanced>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;list-style:none;font-size:12px;color:var(--muted)}
.guided-advanced>summary::-webkit-details-marker{display:none}
.guided-advanced>summary::after{content:"＋";color:var(--pink);font-size:19px}
.guided-advanced[open]>summary::after{content:"−"}
.guided-advanced>summary:focus-visible{outline:2px solid var(--pink);outline-offset:4px;border-radius:4px}
.guided-advanced-body{min-width:0;padding-top:14px}
.guided-advanced .scene-controls{padding:0;background:none;border:0;border-radius:0}
.guided-advanced .scene-controls__heading{display:none}
.guided-advanced .scene-controls__input{font-size:16px!important;min-height:44px}
.guided-advanced .scene-controls__occurrence{min-height:44px}
.guided-advanced .scene-controls__style-field input[type=range]{min-height:44px}
.guided-advanced .scene-controls__color{height:44px}
#invitationPreviewDialog{width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:18px 22px;overflow:auto}
#invitationPreviewDialog[open]{display:flex;flex-direction:column;gap:12px}
#invitationPreviewDialog .dialog-head{flex:none;min-width:0}
#invitationPreviewDialog .dialog-head h2{font-size:20px;line-height:1.4}
#closeInvitationPreview{flex:none;min-width:44px;min-height:44px}
#previewDialogStage{display:flex;justify-content:center;align-items:center;min-width:0;min-height:0;flex:1 1 auto}
#previewDialogStage .preview-stage{width:100%;min-height:0;padding:10px;border-radius:16px}
#invitationPreviewDialog canvas{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 190px);object-fit:contain;cursor:default}
#previewPlay{min-height:44px}
#previewProgress{font-size:12px;color:var(--muted);line-height:1.6;margin:0;overflow-wrap:anywhere}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) minmax(310px,1fr);gap:18px}.guided-controls{padding:20px}.guided-steps{gap:3px}.guided-steps button{font-size:10px}}
@media(max-width:760px){
 .studio-header{height:68px;padding-inline:16px;gap:12px}.brand{width:140px}.catalog-link{display:none}.header-actions{gap:3px}.header-actions .button{min-height:44px;padding:8px 10px;font-size:11px}
 main{padding:20px 16px 40px}.studio-intro{display:block;margin-bottom:18px}.studio-intro h1{font-size:29px}.studio-intro p:last-child{font-size:12px}.studio-intro #saveStatus{display:block;font-size:10px;margin-top:9px}
 .workspace-heading{padding:16px 0;gap:12px}.workspace-heading h2{font-size:15px}.workspace-heading span{font-size:10px}.workspace-heading .button{padding:8px 12px;min-height:44px;font-size:11px}
 .workspace{display:flex;flex-direction:column;gap:18px}.workspace>.preview-panel,.workspace>aside{width:100%;min-width:0}.workspace>aside{order:-1}
 .guided-controls{padding:20px;border-radius:18px}.guided-steps{margin-bottom:22px;padding-bottom:13px}.guided-steps button{font-size:11px}.guided-panel h2{font-size:23px}.guided-hint{margin-bottom:20px}.guided-fields{gap:17px 12px}.guided-actions{margin-top:22px}.guided-actions .button{padding:10px 13px;font-size:12px}
 .preview-stage{min-height:0;padding:14px;border-radius:18px}.preview-stage canvas{max-height:540px}.preview-caption{font-size:11px}.export-actions select{font-size:16px;min-height:44px;max-width:100%}
 #invitationPreviewDialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:12px;gap:10px;border-radius:18px}#invitationPreviewDialog .dialog-head h2{font-size:17px}#invitationPreviewDialog canvas{max-height:calc(100dvh - 175px)}#previewDialogStage .preview-stage{padding:8px;border-radius:12px}
}
@media(max-width:379px){.guided-panel[data-guided-panel="0"] .guided-fields{grid-template-columns:minmax(0,1fr)}.guided-controls{padding:17px}.guided-steps button{font-size:10px}.brand{width:124px}.studio-intro h1{font-size:27px}}

body:has(.guided-advanced[open]) #invitationCanvas{touch-action:none;cursor:grab}
.guided-preview-actions{display:flex;align-items:center;gap:12px;flex:none;min-width:0}.guided-preview-actions p{flex:1}.guided-preview-actions button{flex:none}

/* The sample stays visible; personal details are rendered only for delivery. */
body.studio-collection-editor .export-panel,body.studio-collection-editor #studioCollectionOffer{display:none}
.guided-panel + .guided-panel{border-top:1px solid var(--line);margin-top:28px;padding-top:25px}
.guided-input{text-align:right}
.guided-input:is([type=date],[type=time]){text-align:right}
.guided-controls{text-align:right}
.sample-note{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 14px}
.studio-order{margin:42px 0 10px;direction:rtl;text-align:right}
.studio-order-heading{max-width:750px;margin-bottom:25px}
.studio-order-heading h2{font-size:30px;font-weight:400;line-height:1.5}
.studio-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.studio-packages .plan-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:28px;border:1px solid var(--line);border-radius:22px;background:#FFFDF9}
.studio-packages .plan-card--recommended{border:2px solid var(--gold);background:#F3EBDF}
.studio-packages ul{padding-inline-start:20px;line-height:2;flex:1}
.studio-packages .plan-price{font-size:38px;margin:8px 0}
.studio-packages .plan-recommendation{align-self:flex-start;border-radius:20px;background:var(--gold);color:white;padding:5px 12px;font-size:12px}
.studio-packages .package-delivery{margin-top:15px;font-weight:600}
.studio-packages .button{width:100%;min-height:48px;font-size:14px}
.studio-order>.studio-digital-note{margin-top:24px;font-size:14px}
.studio-order>[data-order-status]{line-height:1.8}
@media(max-width:760px){.workspace>aside{order:0}.studio-packages{grid-template-columns:1fr}.studio-order-heading h2{font-size:25px}.studio-packages .plan-card{padding:24px}}

/* The same controls stay stacked below the desktop breakpoint. */
body.desktop-workspace{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.desktop-workspace .studio-header{height:4rem;flex:none;padding-inline:1.5rem}
.desktop-workspace .brand{width:9rem}
.desktop-workspace main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:100rem;padding:1rem 1.5rem}
.desktop-workspace .studio-intro{align-items:center;margin-bottom:.5rem;gap:1rem;flex:none}
.desktop-workspace .studio-intro h1{font-size:1.375rem;margin:0;letter-spacing:-.025em}
.desktop-workspace .studio-intro .eyebrow,.desktop-workspace .studio-intro p:last-child{display:none}
.desktop-workspace .workspace-heading{padding:.5rem 0 .75rem;flex:none;border-top:0}
.desktop-workspace .workspace-heading h2{font-size:.9375rem}
.desktop-workspace .workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(29rem,1fr);gap:1.5rem;align-items:stretch}
.desktop-workspace .preview-panel{display:flex;flex-direction:column;min-height:0}
.desktop-workspace .preview-caption{font-size:.75rem;margin:0 0 .375rem}
.desktop-workspace .sample-note{font-size:.6875rem;margin:0 0 .75rem}
.desktop-workspace .preview-stage{flex:1;min-height:0;padding:1rem;border-radius:1.25rem}
.desktop-workspace .preview-stage canvas{height:100%;width:auto;max-height:100%;max-width:100%;object-fit:contain}
.desktop-workspace .preview-status{flex:none;margin:.5rem 0 0}
.desktop-workspace .preview-credit{flex:none;font-size:.625rem;margin:.375rem 0 0}
.desktop-workspace .workspace-editor{display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);border-radius:1.25rem;background:#FFFDF9;overflow:hidden}
.workspace-tabs{display:flex;flex:none;border-bottom:1px solid var(--line);padding:.5rem .75rem;gap:.375rem}
.workspace-tabs button{flex:1;min-height:2.75rem;border:1px solid transparent;border-radius:.75rem;background:transparent;color:var(--muted);font-size:.8125rem}
.workspace-tabs button[aria-selected=true]{background:#F3EBDF;color:var(--gold);border-color:var(--line)}
.desktop-workspace .workspace-panels{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:1.25rem}
.desktop-workspace .guided-controls{border:0;padding:0;border-radius:0;background:none}
.desktop-workspace .guided-panel h2{font-size:1.25rem}
.desktop-workspace .guided-hint{margin-bottom:1rem}
.desktop-workspace .guided-fields{gap:1rem .875rem}
.desktop-workspace .guided-panel+.guided-panel{margin-top:1.5rem;padding-top:1.5rem}
.desktop-workspace .am-music{padding:0;border:0;background:none;box-shadow:none;margin:0}
.desktop-workspace .am-music__tracks{max-height:23rem}
.desktop-workspace .studio-order{margin:0}
.desktop-workspace .studio-order-heading{margin-bottom:1rem}
.desktop-workspace .studio-order-heading h2{font-size:1.25rem;margin:0 0 .5rem}
.desktop-workspace .studio-order-heading .eyebrow{display:none}
.desktop-workspace .studio-packages{grid-template-columns:1fr;gap:1rem}
.desktop-workspace .studio-packages .plan-card{padding:1.25rem;gap:.375rem;border-radius:1rem}
.desktop-workspace .studio-packages .plan-card h3{font-size:1.125rem}
.desktop-workspace .studio-packages .plan-price{font-size:1.75rem;margin:0}
.desktop-workspace .studio-packages .package-delivery{margin-top:.5rem}
.desktop-workspace .studio-order>.studio-digital-note{font-size:.75rem;margin-top:1rem}
.workspace-actions{flex:none;padding:.875rem 1.25rem;border-top:1px solid var(--line);background:#FFFDF9}
.workspace-actions>#workspaceNext,.workspace-actions>[data-deliver]{width:100%}
.workspace-package-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.workspace-package-actions .button{white-space:normal;font-size:.75rem;padding:.625rem .375rem;min-height:3.25rem}
.workspace-actions [data-order-status]{font-size:.75rem;line-height:1.6;margin:.5rem 0 0}
.workspace-actions [data-order-status]:empty{display:none}
.workspace-actions:has([data-deliver]:not([hidden])) :is(#workspaceNext,#workspacePackageActions){display:none}
.workspace-actions #exportProgress{margin:.5rem 0 0}

.desktop-workspace .studio-packages ul{flex:none;margin:.5rem 0;line-height:1.7}
.desktop-workspace .studio-packages li{margin-bottom:.375rem}
.desktop-workspace .studio-packages .plan-price b{font-size:1.875rem}
.desktop-workspace .studio-packages .package-delivery{margin-bottom:0}
@media(max-width:1023px){body.studio-collection-editor .workspace{display:flex;flex-direction:column}body.studio-collection-editor .workspace>.preview-panel,body.studio-collection-editor .workspace>aside{width:100%;order:0}}

.desktop-workspace .checkout-return-status{flex:none;margin:.25rem 0 .5rem;padding:.5rem .75rem;font-size:.75rem}

.studio-order-heading .studio-digital-note{margin:.75rem 0 0;line-height:1.7}
.studio-order-heading .studio-digital-note strong{display:block;font-size:1rem;color:var(--text)}
.studio-order-heading .studio-digital-note small{font-size:.75rem;color:var(--muted)}
@media(max-width:1023px){
 body.studio-collection-editor main{padding-bottom:calc(10rem + env(safe-area-inset-bottom))}
 body.studio-collection-editor .workspace-actions{position:fixed;inset-inline:0;bottom:0;z-index:20;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));box-shadow:0 -.25rem 1rem rgba(45,37,29,.06)}
 body.studio-collection-editor #studioOrder{scroll-margin-top:1rem}
}
