.template-editor-page{position:relative;min-height:100vh;background:var(--user-workspace-gradient),var(--user-workspace-background)}.template-editor-nav{position:sticky;top:0;z-index:40;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:60px;padding:8px clamp(16px,2.5vw,42px);border-bottom:1px solid var(--user-workspace-border);background:var(--user-surface-glass);box-shadow:0 8px 30px rgba(42,28,24,.05);backdrop-filter:blur(16px)}.template-editor-back-link{display:inline-flex;align-items:center;gap:8px;color:var(--user-brand);font-size:.74rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;cursor:pointer;padding:8px 0;transition:color .25s ease,opacity .25s ease}.template-editor-back-link:hover{color:var(--user-accent)}.template-editor-back-link .back-arrow-icon{transition:transform .25s cubic-bezier(.2,1,.2,1)}.template-editor-back-link:hover .back-arrow-icon{transform:translateX(-4px)}.template-editor-nav-actions{display:flex;align-items:center;gap:10px}.template-editor-nav-actions .primary-button,.template-editor-nav-actions .secondary-button{box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding:0 18px!important;font-size:.72rem!important;font-weight:900!important;letter-spacing:.14em!important;text-transform:uppercase!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;transition:background-color .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease!important}.template-editor-nav-actions .secondary-button{border:1px solid var(--user-border-strong)!important;color:var(--user-brand)!important;background:var(--user-surface-glass)!important;cursor:pointer!important}.template-editor-nav-actions .secondary-button:hover{background:var(--user-accent-faint)!important;color:var(--user-accent)!important}.template-editor-status-badge{box-sizing:border-box!important;height:38px!important;padding:0 12px 0 6px!important;font-size:.72rem!important;font-weight:900!important;letter-spacing:.14em!important;text-transform:uppercase!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;gap:8px!important;color:var(--user-success)!important;background:none!important;border:none!important;cursor:default!important}.status-dot{width:8px;height:8px;border-radius:50%;background-color:var(--user-success);display:inline-block;box-shadow:0 0 0 2px var(--user-success-soft)}.template-editor-nav-actions .primary-button{border:none!important;background:var(--user-accent)!important;color:var(--user-button-foreground)!important;cursor:pointer!important}.template-editor-nav-actions .primary-button:hover{background:var(--accent-dark)!important;opacity:.95!important}.editor-alert{margin-top:14px;padding:12px 14px;border:1px solid var(--user-border-strong);border-radius:8px;color:var(--user-accent);background:rgba(255,250,246,.78);font-size:.9rem;font-weight:800}.auth-page{display:grid;min-height:100vh;place-items:center;padding:28px 18px;background:var(--user-workspace-gradient),var(--user-workspace-background)}.auth-panel{width:min(100%,460px);padding:clamp(24px,4vw,42px);border:1px solid var(--user-workspace-border);border-radius:8px;background:var(--user-surface-glass);box-shadow:0 24px 70px rgba(42,28,24,.12)}.auth-panel h1{margin:8px 0;color:var(--user-brand);font-family:var(--font-serif),Georgia,serif;font-size:clamp(2.2rem,5vw,3.8rem);line-height:.95}.auth-panel>p:not(.section-kicker){margin:0;color:var(--user-workspace-text-muted);line-height:1.55}.auth-callback-actions{display:flex;margin-top:24px}.auth-form{display:grid;gap:16px;margin-top:28px}.auth-form .primary-button{min-height:52px!important;min-width:100%!important;padding:0 24px!important;border-radius:8px!important;font-size:.88rem!important;font-weight:800!important;box-shadow:0 4px 12px rgba(91,32,44,.12)!important;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1)}.auth-form .primary-button:hover:not(:disabled){opacity:.95;transform:translateY(-1px);box-shadow:0 6px 16px rgba(91,32,44,.18)!important}.auth-form .primary-button:active:not(:disabled){transform:translateY(0)}.auth-form label{display:grid;gap:8px;color:var(--user-workspace-text-subtle);font-size:.72rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.auth-form input{min-height:52px;width:100%;border:1px solid var(--user-border-strong);border-radius:8px;padding:0 16px;color:var(--user-input-text);background:var(--user-input-surface);font:inherit;font-size:1rem;font-weight:700;letter-spacing:0}.auth-error,.auth-message{margin:0;padding:10px 12px;border-radius:8px;font-size:.9rem;font-weight:800;line-height:1.4}.auth-error{color:var(--user-accent);background:var(--user-accent-soft)}.auth-message{color:var(--user-success);background:var(--user-success-soft)}.auth-links{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:22px}.auth-links a{color:var(--user-brand);font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.account-layout{display:flex;flex-direction:column;min-height:100vh}.account-page{flex:1;padding:44px clamp(18px,4vw,72px) 54px;background:var(--user-workspace-gradient),var(--user-workspace-background)}.account-nav{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:66px;margin:0 calc(clamp(18px, 4vw, 72px) * -1);padding:8px clamp(18px,4vw,72px);border-bottom:1px solid var(--user-workspace-border);background:var(--user-surface-glass);box-shadow:0 10px 34px rgba(42,28,24,.08);backdrop-filter:blur(16px)}.account-brand{display:inline-flex;align-items:center;gap:10px;color:var(--app-brand);font-family:var(--font-serif),Georgia,serif;font-size:2.1rem;font-weight:700;line-height:.9}.account-container{display:grid;grid-template-columns:1fr;max-width:680px;margin:0 auto;align-items:start;width:100%}.account-sidebar{position:sticky;top:110px;background:var(--user-surface-tint);border:1px solid var(--user-border);border-radius:12px;padding:16px;box-shadow:var(--user-shadow-soft);backdrop-filter:blur(8px)}.sidebar-nav{display:flex;flex-direction:column;gap:8px}.sidebar-link{display:flex;align-items:center;min-height:44px;padding:0 16px;border-radius:8px;color:var(--user-workspace-text-subtle);font-size:.82rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;transition:all .25s cubic-bezier(.4,0,.2,1);text-decoration:none}.sidebar-link:hover{color:var(--user-brand);background:var(--user-accent-soft);transform:translateX(4px)}.sidebar-link.active{color:var(--user-button-foreground);background:var(--user-accent);box-shadow:var(--user-shadow-accent)}.account-content{min-width:0;width:100%}.account-nav .secondary-button{justify-self:end;min-height:42px;padding:0 18px;box-shadow:none;white-space:nowrap}.account-loading{display:grid;min-height:100vh;place-items:center;color:var(--user-brand);font-size:.82rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.account-header{width:100%;margin:0 0 34px;text-align:left}.account-header h1{margin:0;color:var(--user-brand);font-family:var(--font-serif),Georgia,serif;font-size:clamp(3.4rem,6vw,5.8rem);line-height:.92}.account-header p:not(.section-kicker){color:var(--user-muted);font-size:1.08rem;line-height:1.6}.settings-layout{max-width:480px}.account-grid,.settings-layout{display:flex;flex-direction:column;gap:24px;width:100%;margin:0}.account-grid .profile-card{width:100%}.profile-header{display:flex;align-items:center;gap:20px;margin-bottom:8px}.account-card,.settings-panel{display:grid;align-content:start;gap:18px;min-width:0;min-height:260px;padding:clamp(22px,3vw,30px);overflow:hidden;border:1px solid var(--user-border);border-radius:8px;background:var(--user-surface-tint);box-shadow:var(--user-shadow-lifted)}.profile-card{grid-row:span 2}.dashboard-card{grid-column:span 2}.account-grid>.account-card:last-child{grid-column:2/-1}.account-card>.card-badge,.settings-section-heading span{width:-moz-max-content;width:max-content;padding:6px 10px;border-radius:999px;color:var(--user-accent);background:var(--user-accent-soft);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.account-card h2,.settings-section-heading h2{margin:0;color:var(--user-brand);font-family:var(--font-serif),Georgia,serif;font-size:clamp(2rem,3vw,3.1rem);line-height:1;overflow-wrap:anywhere}.profile-card h2{font-size:clamp(1.7rem,2.2vw,2.35rem);line-height:1.05}.dashboard-card h2{font-size:clamp(2.5rem,4vw,4.4rem)}.account-card p,.settings-panel p{margin:0;color:var(--user-muted);line-height:1.55}.profile-avatar{display:grid;width:82px;height:82px;place-items:center;border:1px solid var(--user-border);border-radius:50%;color:var(--user-button-foreground);background:var(--app-brand);font-family:var(--font-serif),Georgia,serif;font-size:2.5rem;font-weight:700}.account-details{display:grid;gap:0;margin:8px 0 0}.account-details div,.metric-list div,.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--user-border)}.account-details div{align-items:flex-start;flex-direction:column;gap:8px}.account-details dt,.metric-list strong,.settings-toggle-row strong{color:var(--user-workspace-text-subtle);font-size:.76rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.account-details dd{max-width:100%;margin:0;overflow-wrap:anywhere;color:var(--user-muted);font-size:.92rem;font-weight:700;line-height:1.35;text-align:left}.metric-list{display:grid;gap:0}.metric-list b{color:var(--user-brand);font-size:1.1rem}.account-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}.account-list{display:grid;gap:12px;margin:0;padding-left:20px;color:var(--user-muted);line-height:1.55}.settings-panel label{display:grid;gap:8px;color:var(--user-workspace-text-subtle);font-size:.72rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.settings-panel input:not([type]),.settings-panel input[type=email],.settings-panel input[type=password],.settings-panel input[type=text]{min-height:52px;width:100%;border:1px solid var(--user-border-strong);border-radius:8px;padding:0 16px;color:var(--user-input-text);background:var(--user-input-surface);font:inherit;font-size:1rem;font-weight:700;letter-spacing:0}.settings-panel input[readonly]{color:var(--user-muted);background:rgba(250,244,237,.72)}.settings-panel input[type=checkbox]{width:22px;height:22px;accent-color:var(--user-accent)}.settings-panel .primary-button,.settings-panel .secondary-button{min-height:44px;padding:0 20px;border-radius:8px;font-size:.8rem;justify-self:start;box-shadow:none}.billing-balance-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.billing-balance-row>div{display:grid;gap:10px}.billing-balance-row h2{margin:0;color:var(--user-brand);font-family:var(--font-serif),Georgia,serif;font-size:clamp(3rem,6vw,5rem);line-height:.85}.billing-balance-row>strong{flex:0 0 auto;color:var(--user-brand)}.credit-pack-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.credit-pack{display:grid;gap:4px;min-width:0;border:1px solid var(--user-border-strong);border-radius:8px;padding:16px 12px;color:var(--user-brand);background:var(--user-input-surface);cursor:pointer;text-align:left}.credit-pack.selected{border-color:var(--user-accent);background:var(--user-accent-soft);box-shadow:0 0 0 2px var(--user-accent-faint)}.credit-pack strong{font-family:var(--font-serif),Georgia,serif;font-size:2rem;line-height:1}.credit-pack span{color:var(--user-muted);font-size:.78rem;font-weight:800}.credit-pack b{margin-top:6px;font-size:.88rem}.billing-history{display:grid;gap:0;border-top:1px solid var(--user-border);padding-top:14px}.billing-history h3{margin:0 0 6px;color:var(--user-brand)}.billing-history>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:10px 0;border-bottom:1px solid var(--user-border);color:var(--user-muted);font-size:.82rem}.billing-history time{color:var(--user-workspace-text-muted)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%}@media (max-width:580px){.form-row{grid-template-columns:1fr}.billing-balance-row{display:grid}.credit-pack-list{grid-template-columns:1fr}.billing-history>div{grid-template-columns:minmax(0,1fr) auto}.billing-history time{grid-column:1/-1}}.auth-divider{display:flex;align-items:center;text-align:center;margin:20px 0;color:var(--user-workspace-text-muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.auth-divider:after,.auth-divider:before{content:"";flex:1;border-bottom:1px solid var(--user-border-strong)}.auth-divider:not(:empty):before{margin-right:.8em}.auth-divider:not(:empty):after{margin-left:.8em}.google-login-button-frame{min-height:52px}.google-login-button-frame,.google-login-button-frame>div{width:100%;display:flex;justify-content:center}.google-login-button-frame iframe{max-width:100%}.google-login-button{width:100%;min-height:52px!important;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--user-surface-glass);border:1px solid var(--user-border-strong);border-radius:8px;color:var(--user-brand);font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;cursor:pointer;box-shadow:none;transition:all .25s cubic-bezier(.4,0,.2,1)}.google-login-button-frame:hover .google-login-button:not(:disabled),.google-login-button:hover:not(:disabled){background:var(--user-input-surface);border-color:var(--user-brand);transform:translateY(-1px)}.google-login-button-frame:active .google-login-button:not(:disabled),.google-login-button:active:not(:disabled){transform:translateY(0)}.google-login-button:disabled{opacity:.64;cursor:wait}.google-icon{flex-shrink:0}.avatar-clickable{position:relative;cursor:pointer;border-radius:50%;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease;width:82px;height:82px;display:inline-block;border:1px solid var(--user-border)}.avatar-clickable:hover{transform:scale(1.04);box-shadow:0 6px 18px rgba(118,44,57,.15)}.avatar-clickable-hover-overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;color:#ffffff;opacity:0;transition:opacity .2s ease;border-radius:50%}.avatar-clickable:hover .avatar-clickable-hover-overlay{opacity:1}.avatar-clickable-hover-overlay svg{width:22px;height:22px}.dialog-avatar-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:24px 0;gap:16px}.dialog-avatar-preview .large-avatar{width:120px;height:120px;border-radius:50%;border:2px solid var(--user-border);box-shadow:var(--user-shadow-lifted);overflow:hidden}.dialog-avatar-preview .fallback-large{font-size:3.5rem}.avatar-dialog-actions{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:16px}.avatar-dialog-actions .primary-button,.avatar-dialog-actions .secondary-button{width:100%;min-height:48px;font-size:.82rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.avatar-dialog-confirm-box{text-align:center;padding:20px;background:var(--user-accent-faint);border:1px solid var(--user-border);border-radius:12px;margin-top:16px;width:100%;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.avatar-dialog-confirm-box p{color:var(--user-input-text);font-size:.95rem;font-weight:800;margin:0 0 16px;line-height:1.45}.avatar-dialog-confirm-buttons{display:flex;gap:12px;justify-content:center}.avatar-dialog-confirm-buttons .confirm-btn-no,.avatar-dialog-confirm-buttons .confirm-btn-yes{min-width:110px!important;width:auto!important;height:40px!important;min-height:40px!important;padding:0 16px!important;font-size:.78rem!important;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;cursor:pointer;transition:all .2s ease}.avatar-dialog-confirm-buttons .confirm-btn-yes{background:var(--user-accent)!important;color:#ffffff!important;border:none!important}.avatar-dialog-confirm-buttons .confirm-btn-yes:hover{background:var(--accent-dark)!important}.avatar-dialog-confirm-buttons .confirm-btn-no{background:transparent!important;color:var(--user-brand)!important;border:1px solid var(--user-border-strong)!important}.avatar-dialog-confirm-buttons .confirm-btn-no:hover{background:var(--user-accent-soft)!important}.avatar-loading-spinner{display:flex;align-items:center;justify-content:center;color:var(--user-accent);margin:16px 0}.avatar-loading-spinner svg{animation:avatar-spin 1s linear infinite;width:28px;height:28px}@keyframes avatar-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.template-editor-workspace{display:grid;grid-template-columns:minmax(360px,1fr) minmax(380px,520px);gap:clamp(20px,3vw,48px);min-height:100vh;padding:clamp(14px,2vw,28px)}.template-editor-preview-pane{position:sticky;top:28px;display:grid;height:calc(100vh - 56px);min-height:0;place-items:center}@media (min-width:981px){.template-editor-page{height:calc(100dvh - 55px);min-height:0;overflow:hidden}.template-editor-page .template-editor-workspace{box-sizing:border-box;height:100%;min-height:0;overflow:hidden}.template-editor-page .template-editor-preview-pane{position:static;height:100%;padding-left:clamp(40px,8vw,120px)}.template-editor-page .template-editor-panel{height:100%;overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}}.template-editor-frame{display:block;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;opacity:0}.template-editor-frame.is-ready{opacity:1}.template-editor-device-frame{position:relative;width:var(--phone-frame-width);overflow:visible;border-radius:16%/7.7%;background:transparent;aspect-ratio:9/18.7;box-shadow:0 34px 90px rgba(15,17,22,.34);container-type:inline-size}.template-editor-device-frame:after{position:absolute;z-index:10;inset:0;border:1.66cqw solid #191919;border-radius:inherit;content:"";pointer-events:none}.template-editor-device-viewport{position:absolute;z-index:1;inset:1.66cqw;width:auto;height:auto;overflow:visible;border-radius:14.36cqw;background:transparent}.template-editor-preview-loading{position:absolute;z-index:3;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;padding:24px;color:var(--accent-dark);background:var(--phone-frame-background,#fffdfa);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-align:center;text-transform:uppercase}.template-editor-panel{display:grid;align-content:start;gap:14px;min-width:0}.template-editor-tabs{position:sticky;top:0;z-index:5;display:flex;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;border-bottom:1px solid rgba(223,168,108,.1);background:#16100f}.template-editor-tabs::-webkit-scrollbar{display:none}.template-editor-tabs button{min-height:48px;min-width:0;flex:1 0 auto;border:0;border-bottom:2px solid transparent;padding:0 16px;color:#8c7673;background:transparent;font:inherit;font-size:.78rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.template-editor-tabs button.active{border-bottom-color:#dfa86c;color:#dfa86c;background:rgba(223,168,108,.04)}.template-variant-actions,.template-variant-badges,.template-variant-card-heading,.template-variant-checks,.template-variant-header-actions,.template-variant-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.template-variant-card-heading{justify-content:space-between}.template-variant-header-actions{justify-content:flex-end}.template-variant-actions button,.template-variant-card-heading button,.template-variant-row-actions button{min-height:36px;border:0;border-radius:999px;padding:0 14px;color:#fffaf4;background:var(--accent);font:inherit;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.template-variant-actions button:disabled,.template-variant-card-heading button:disabled,.template-variant-row-actions button:disabled{cursor:not-allowed;opacity:.55}.template-variant-list{display:grid;gap:10px}.template-variant-row{display:grid;gap:12px;padding:12px;border:1px solid rgba(118,44,57,.12);border-radius:8px;background:rgba(255,250,244,.72)}.template-variant-row.selected{border-color:var(--accent)}.template-variant-selector-backdrop{backdrop-filter:blur(6px)}.template-variant-selector-modal{width:min(100%,760px);max-height:calc(100vh - 40px);overflow:hidden}.template-variant-selector-modal .template-variant-list{min-height:0;overflow-y:auto;padding-right:4px}.template-variant-selector-modal .template-variant-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}.template-variant-selector-modal .template-variant-row-actions{grid-column:1/-1}.template-variant-rename-backdrop{backdrop-filter:blur(6px)}.template-variant-rename-modal{width:min(100%,460px);gap:22px;border-radius:18px;padding:28px;box-shadow:0 28px 90px rgba(47,31,34,.3),0 2px 8px rgba(47,31,34,.08)}.template-variant-rename-header{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:start;gap:14px}.template-variant-rename-header h2,.template-variant-rename-header p{margin:0}.template-variant-rename-header h2{color:var(--accent-dark);font-size:1.25rem}.template-variant-rename-header p{margin-top:5px;color:var(--muted);font-size:.86rem;font-weight:700;line-height:1.45}.template-variant-rename-mark{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;color:#fffaf4;background:linear-gradient(145deg,var(--accent),var(--accent-dark));font-family:Georgia,serif;font-size:1.05rem;font-weight:800;box-shadow:0 8px 20px rgba(118,44,57,.22)}.template-variant-rename-close{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:50%;padding:0 0 2px;color:var(--muted);background:rgba(118,44,57,.07);font:inherit;font-size:1.45rem;line-height:1;cursor:pointer}.template-variant-rename-close:hover{color:var(--accent-dark);background:rgba(118,44,57,.12)}.template-variant-rename-field{display:grid;gap:8px}.template-variant-rename-field span{color:var(--accent-dark);font-size:.76rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.template-variant-rename-field input{width:100%;min-height:52px;border:1px solid rgba(118,44,57,.2);border-radius:12px;padding:0 16px;color:var(--accent-dark);background:#fffaf4;font:inherit;font-size:1rem;font-weight:800;outline:none;transition:border-color .16s ease,box-shadow .16s ease}.template-variant-rename-field input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(118,44,57,.1)}.template-variant-rename-error{margin:-10px 0 0;color:#9f3138;font-size:.82rem;font-weight:800}.template-variant-summary{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;min-width:0}.template-variant-summary p,.template-variant-summary small,.template-variant-summary strong{display:block;min-width:0}.template-variant-summary strong{color:var(--accent-dark)}.template-variant-empty,.template-variant-summary p,.template-variant-summary small{margin:0;color:var(--muted)}.template-variant-summary p{overflow-wrap:anywhere;font-size:.82rem}.template-variant-summary small{font-size:.72rem;font-weight:800}.template-variant-thumb{display:grid;width:56px;aspect-ratio:8/9;place-items:center;overflow:hidden;border-radius:8px;color:var(--accent-dark);background:rgba(118,44,57,.1);font-size:.78rem;font-weight:900}.template-variant-thumb img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.template-variant-badges span{border:1px solid rgba(118,44,57,.14);border-radius:999px;padding:5px 9px;color:var(--accent-dark);background:rgba(118,44,57,.07);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.template-variant-badges span.selected-badge{border-color:rgba(46,125,50,.35);color:#1b5e20;background:rgba(46,125,50,.12)}.template-variant-selection-status{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:10px 14px;border-radius:8px;font-size:.82rem;font-weight:600}.template-variant-selection-status.is-selected{border:1px solid rgba(46,125,50,.3);background:rgba(46,125,50,.08);color:#1b5e20}.template-variant-selection-status.is-none{border:1px solid rgba(118,44,57,.15);background:rgba(118,44,57,.05);color:var(--muted)}.template-variant-selection-status strong{color:inherit;font-weight:800}.template-variant-selection-status small{font-size:.75rem;opacity:.85}.status-indicator-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.status-indicator-dot.active{background:#2e7d32;box-shadow:0 0 0 3px rgba(46,125,50,.2)}.status-indicator-dot.muted{background:#9e9e9e}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.template-editor-panel-heading{display:grid;gap:8px;padding:2px 2px 8px}.template-editor-panel-heading h1{margin:0;color:var(--accent-dark);font-family:var(--font-serif),Georgia,serif;font-size:clamp(2.1rem,3vw,3.4rem);line-height:.98}.template-editor-panel-heading p:not(.section-kicker){margin:0;color:var(--muted);line-height:1.55}.envelope-card-library-help{margin:0 0 14px;color:rgba(51,34,29,.7);font:500 .82rem/1.45 var(--font-sans),Arial,sans-serif}.envelope-card-editor-header{padding-right:32px;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left}.envelope-card-editor-header>div{display:grid;gap:6px}.envelope-card-library-list{display:flex;flex-direction:column;gap:8px}.envelope-card-item-actions,.envelope-card-library-actions,.envelope-card-photo-actions{display:flex;align-items:center;gap:6px}.envelope-card-library-actions .ghost-button{min-height:32px;padding:0 9px;font-size:.67rem}.envelope-template-fields{margin-top:14px;display:grid;gap:12px}.template-design-editor-dialog{width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;display:block;overflow:hidden;padding:12px}.template-design-editor-body{width:100%;height:100%;min-height:0;overflow:hidden}.envelope-card-library-item{padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid rgba(91,32,44,.12);border-radius:9px;background:rgba(255,255,255,.6)}.envelope-card-library-item .check-field{min-width:0;margin:0}.envelope-card-library-item .check-field span,.envelope-card-library-item>span{min-width:0;display:flex;flex-direction:column;gap:3px}.envelope-card-library-item>span strong{font-size:.82rem}.envelope-card-library-item>span small{overflow:hidden;color:rgba(51,34,29,.58);font-size:.7rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.envelope-card-library-item .check-field strong{font-size:.82rem}.envelope-card-library-item .check-field small{overflow:hidden;color:rgba(51,34,29,.58);font-size:.7rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.curtain-section-library-help{margin:0 0 14px;color:rgba(51,34,29,.7);font:500 .82rem/1.45 var(--font-sans),Arial,sans-serif}.curtain-section-library-list{display:flex;flex-direction:column;gap:8px}.curtain-section-library-item{padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid rgba(91,32,44,.12);border-radius:9px;background:rgba(255,255,255,.6)}.curtain-section-library-item>span{min-width:0;display:flex;flex-direction:column;gap:3px}.curtain-section-library-item strong{font-size:.82rem}.curtain-section-library-item small{overflow:hidden;color:rgba(51,34,29,.58);font-size:.7rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.curtain-section-library-item .ghost-button{min-height:30px;padding:0 10px;font-size:.66rem}.envelope-card-item-actions{flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}.envelope-card-item-actions .ghost-button{min-height:30px;padding:0 8px;font-size:.66rem}.envelope-card-item-actions .ghost-button.is-danger{color:#8b2638;border-color:rgba(139,38,56,.24)}.envelope-card-add-button{width:100%;margin-top:12px;justify-content:center}.envelope-intro-layer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.envelope-intro-layer-actions .ghost-button{min-height:38px;padding-inline:8px}.envelope-intro-layer-help{margin:10px 0;color:var(--muted-text,#806d66);font-size:.78rem;line-height:1.45}.envelope-intro-layer-list{display:flex;flex-direction:column;gap:7px}.envelope-intro-layer-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;overflow:hidden;border:1px solid rgba(91,32,44,.13);border-radius:10px;background:rgba(255,253,249,.78)}.envelope-intro-layer-item.is-active{border-color:#7d2c36;box-shadow:0 0 0 1px rgba(125,44,54,.12)}.envelope-intro-layer-item>button{min-width:0;padding:10px 11px;display:flex;flex-direction:column;gap:4px;color:#33221d;text-align:left;border:0;background:transparent;cursor:pointer}.envelope-intro-layer-item>button small{color:#8e7667;font-size:.68rem}.envelope-intro-layer-item>div{padding-right:7px;display:flex;gap:4px}.envelope-intro-layer-item>div button{width:29px;height:29px;color:#7d2c36;border:1px solid rgba(125,44,54,.18);border-radius:7px;background:#fffaf5;cursor:pointer}.envelope-intro-layer-item>div button:disabled{opacity:.3;cursor:not-allowed}.envelope-intro-layer-item>div button.is-danger{color:#a51f2f;border-color:rgba(165,31,47,.2)}.envelope-intro-selected-layer{margin-top:18px;padding-top:4px;border-top:1px solid rgba(91,32,44,.1)}.envelope-intro-color-field>span,.envelope-intro-range-field>span,.envelope-intro-selected-layer h4{color:#6d5042;font:800 .7rem/1 var(--font-sans),sans-serif;letter-spacing:.06em;text-transform:uppercase}.envelope-intro-selected-layer h4{margin:15px 0 13px}.envelope-intro-color-field,.envelope-intro-field,.envelope-intro-range-field{margin-bottom:13px;display:flex;flex-direction:column;gap:7px}.envelope-intro-range-field input{width:100%;accent-color:#7d2c36}.envelope-intro-transform-toggles{margin-bottom:13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.envelope-intro-transform-toggles label{min-width:0;padding:9px 10px;display:flex;align-items:center;gap:8px;color:#6d5042;border:1px solid rgba(67,45,34,.16);border-radius:8px;background:#fffdf9;font:700 .72rem/1.2 var(--font-sans),sans-serif}.envelope-intro-transform-toggles input{margin:0;accent-color:#7d2c36}.envelope-intro-library-button{width:100%;min-height:38px;margin:0 0 13px;box-sizing:border-box}.envelope-background-picker-dialog{width:min(1040px,calc(100vw - 32px));max-width:1040px;max-height:min(820px,calc(100dvh - 32px));padding:24px;grid-template-rows:auto auto minmax(0,1fr);color:#33221d;border:1px solid rgba(91,32,44,.16);border-radius:18px;background:#fffaf5;overflow:hidden}.envelope-background-picker-toolbar{display:flex;align-items:center;gap:12px}.envelope-background-picker-toolbar .primary-button{height:40px;min-height:40px;min-width:auto;padding:0 20px;border-radius:10px;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 12px rgba(91,32,44,.16);cursor:pointer}.envelope-background-picker-toolbar .primary-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.envelope-background-picker-toolbar .primary-button:active:not(:disabled){transform:translateY(0)}.envelope-background-picker-toolbar .primary-button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.envelope-background-picker-toolbar>span{margin-left:auto;color:#8e7667;font:750 .68rem/1 var(--font-sans),sans-serif;text-transform:uppercase}.envelope-background-picker-toolbar>input{display:none}.envelope-background-picker-body{min-height:0;display:flex;flex-direction:column;gap:12px;overflow:hidden}.envelope-background-picker-error{margin:0;color:#a51f2f;font:700 .75rem/1.4 var(--font-sans),sans-serif}.envelope-background-picker-empty{min-height:240px;display:grid;place-items:center;color:#80695b;text-align:center;font:600 .82rem/1.5 var(--font-sans),sans-serif}.envelope-background-picker-grid{flex:1;min-height:0;padding:4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;overflow-y:auto}.envelope-background-picker-card{position:relative;min-width:0;border:1px solid rgba(67,45,34,.12);border-radius:10px;background:#fffaf5;overflow:hidden}.envelope-background-picker-card:focus-within,.envelope-background-picker-card:hover{border-color:#7d2c36;box-shadow:0 0 0 2px rgba(125,44,54,.1)}.envelope-background-picker-select{width:100%;min-width:0;padding:9px;display:flex;flex-direction:column;gap:7px;color:#33221d;border:0;background:transparent;text-align:left;cursor:pointer}.envelope-background-picker-select:disabled{cursor:not-allowed;opacity:.68}.envelope-background-picker-select small,.envelope-background-picker-select strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.envelope-background-picker-select small{color:#80695b}.envelope-background-picker-preview{position:relative;width:100%;aspect-ratio:1;display:grid;place-items:center;color:#80695b;border-radius:8px;background-color:#f8f4ee;background-image:linear-gradient(45deg,#e8e0d6 25%,transparent 0),linear-gradient(-45deg,#e8e0d6 25%,transparent 0),linear-gradient(45deg,transparent 75%,#e8e0d6 0),linear-gradient(-45deg,transparent 75%,#e8e0d6 0);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;overflow:hidden;font-size:.72rem;text-align:center}.envelope-background-picker-preview img{-o-object-fit:contain;object-fit:contain}.envelope-background-picker-delete{position:absolute;top:14px;right:14px;z-index:2;width:28px;height:28px;padding:0 0 2px;color:#fff;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(125,44,54,.92);cursor:pointer;font:700 1.05rem/1 var(--font-sans),sans-serif}.envelope-background-picker-delete:disabled{cursor:not-allowed;opacity:.55}@media (max-width:620px){.envelope-intro-layer-actions{grid-template-columns:1fr}.envelope-background-picker-dialog{padding:18px}.envelope-background-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.envelope-card-dialog{width:min(1040px,calc(100vw - 32px));max-width:1040px;max-height:min(820px,calc(100vh - 32px))}.curtain-section-editor-dialog,.envelope-card-dialog{padding:24px;color:#33221d;border:1px solid rgba(91,32,44,.16);border-radius:18px;background:#fffaf5;overflow:hidden}.curtain-section-editor-dialog{width:min(1240px,calc(100vw - 32px));max-width:1240px;height:min(820px,calc(100dvh - 32px));max-height:min(820px,calc(100dvh - 32px));grid-template-rows:auto minmax(0,1fr)}.curtain-section-editor-dialog-header{min-height:36px;padding-right:34px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;text-align:left}.curtain-section-editor-dialog-body{min-height:0;padding-right:4px;overflow-y:auto;overscroll-behavior:contain}.curtain-section-editor-dialog-body.has-preview{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:20px;padding-right:0;overflow:hidden}.curtain-section-editor-controls{min-width:0}.curtain-section-editor-dialog-body.has-preview .curtain-section-editor-controls{min-height:0;padding-right:4px;overflow-y:auto;overscroll-behavior:contain}.curtain-section-editor-preview{align-items:stretch;min-width:0}.curtain-section-editor-preview,.curtain-section-preview{display:flex;justify-content:center;min-height:0;overflow:hidden}.curtain-section-preview{align-items:flex-start;width:100%;height:100%}.curtain-section-preview-card{position:relative;flex:0 1 auto;width:auto;height:100%;max-width:100%;overflow:hidden;border:1px solid rgba(91,32,44,.14);border-radius:14px;background:#f2ece4;box-shadow:0 16px 40px rgba(51,34,29,.1);aspect-ratio:9/18.7}.curtain-section-preview-frame{display:block;width:100%;height:100%;border:0;opacity:0;background:#fff;overscroll-behavior:contain;touch-action:pan-y;transition:opacity .16s ease}.curtain-section-preview-frame.is-ready{opacity:1}.curtain-section-preview-loading{position:absolute;inset:0;z-index:1;display:grid;place-content:center;justify-items:center;gap:10px;color:rgba(51,34,29,.68);font-size:.78rem;font-weight:700}@media (max-width:920px){.curtain-section-editor-dialog-body.has-preview{grid-template-columns:1fr;grid-template-rows:minmax(240px,42%) minmax(0,1fr)}}.envelope-card-catalog-dialog{max-width:720px}.envelope-card-editor-dialog{height:min(820px,calc(100dvh - 32px));grid-template-rows:auto minmax(0,1fr)}.envelope-card-catalog-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto}.envelope-card-catalog-item{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(91,32,44,.12);border-radius:10px;background:rgba(255,255,255,.72)}.envelope-card-catalog-item>div{min-width:0;display:flex;flex-direction:column;gap:3px}.envelope-card-catalog-item small{color:rgba(51,34,29,.62);font-size:.75rem}.envelope-card-editor-layout{min-height:0;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);gap:20px;overflow:hidden}.envelope-card-dialog-preview{min-height:520px;border:1px solid rgba(91,32,44,.12);border-radius:14px;background:#efe5d9;overflow:hidden}.envelope-card-dialog-fields{min-height:0;padding-right:4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.envelope-editable-text-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.envelope-editable-text-scale{display:flex;flex-direction:column;gap:4px}.envelope-editable-text-scale>span{color:rgba(51,34,29,.68);font-size:.75rem;font-weight:700;letter-spacing:.02em;text-transform:none;line-height:1}.envelope-editable-text-scale input[type=range]{width:100%}.envelope-card-empty-editor{margin:0;padding:18px;color:rgba(51,34,29,.65);border:1px dashed rgba(91,32,44,.18);border-radius:10px;text-align:center}@media (max-width:760px){.curtain-section-library-item,.envelope-card-editor-layout,.envelope-card-library-item{grid-template-columns:1fr}.envelope-card-item-actions{justify-content:flex-start}.envelope-card-dialog{padding:18px;overflow-y:auto}.curtain-section-editor-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);padding:18px}.envelope-card-editor-dialog{height:auto;grid-template-rows:none}.envelope-card-editor-layout{overflow:visible}.envelope-card-dialog-preview{min-height:420px}.envelope-card-dialog-fields{overflow:visible}}.envelope-photos-editor-wrapper{display:flex;flex-direction:column;gap:16px;width:100%}.envelope-reorder-photos-container{display:flex;flex-direction:column;gap:10px}.envelope-reorder-photos-header{display:flex;flex-direction:column;gap:4px}.envelope-reorder-photos-title-row{display:flex;align-items:center;gap:8px;color:#591726;font-weight:700;font-size:15px}.envelope-reorder-icon{display:inline-flex;align-items:center;justify-content:center;color:#591726}.envelope-reorder-photos-subtitle{margin:0;font-size:12px;color:#7c6a6e;line-height:1.4}.envelope-photo-thumbs-row{display:flex;align-items:stretch;gap:12px;width:100%;padding:4px 0 8px}.envelope-photo-thumbs-row.is-dragging-active .envelope-photo-thumb-card *{pointer-events:none}.envelope-photo-dots-sep{display:flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:52px;color:rgba(91,32,44,.35);padding:0 2px}.envelope-photo-thumb-card{position:relative;flex:1;min-width:80px;max-width:125px;border:1.5px solid rgba(91,32,44,.14);border-radius:12px;background:#ffffff;padding:6px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease;display:flex;flex-direction:column;gap:6px;box-sizing:border-box}.envelope-photo-thumb-card:hover{border-color:rgba(91,32,44,.3)}.envelope-photo-thumb-card.is-selected{border:2px solid #591726;box-shadow:0 2px 8px rgba(89,23,38,.12)}.envelope-photo-thumb-card.is-dragging{opacity:.4;transform:scale(.96);border-style:dashed}.envelope-photo-thumb-card.is-drag-over{border:2px dashed #591726;background:rgba(89,23,38,.04);transform:scale(1.04)}.envelope-photo-thumb-badge-row{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.envelope-photo-badge{width:20px;height:20px;border-radius:50%;background:#3b0e18;color:#ffffff;font-size:11px;font-weight:700}.envelope-photo-badge,.envelope-photo-drag-handle{display:flex;align-items:center;justify-content:center}.envelope-photo-drag-handle{color:rgba(91,32,44,.45)}.envelope-photo-thumb-img-wrapper{width:100%;aspect-ratio:4/5;border-radius:8px;overflow:hidden;background:transparent;display:flex;align-items:center;justify-content:center}.envelope-photo-thumb-img-wrapper.is-empty{background:rgba(91,32,44,.06)}.envelope-photo-thumb-img-wrapper img{max-width:100%;max-height:100%;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:8px;border:1px solid rgba(91,32,44,.12);box-sizing:border-box}.envelope-photo-placeholder-num{font-size:18px;font-weight:700;color:rgba(91,32,44,.4)}.envelope-photo-thumb-arrows{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:2px}.envelope-photo-arrow-btn{width:32px;height:26px;border-radius:6px;border:1px solid rgba(91,32,44,.3);background:#ffffff;color:#591726;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.envelope-photo-arrow-btn:hover:not(:disabled){background:rgba(89,23,38,.08);border-color:#591726}.envelope-photo-arrow-btn:disabled{opacity:.35;cursor:not-allowed;pointer-events:auto}.envelope-add-photo-card{flex:1;min-width:80px;max-width:125px;align-self:stretch;border:1.5px dashed rgba(91,32,44,.3);border-radius:12px;background:rgba(255,255,255,.5);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 6px;box-sizing:border-box;cursor:pointer;transition:all .2s ease}.envelope-add-photo-card:hover{background:rgba(255,255,255,.85);border-color:#591726}.envelope-add-photo-icon-circle{width:34px;height:34px;border-radius:50%;background:rgba(89,23,38,.08);color:#591726;font-size:20px;font-weight:500;display:flex;align-items:center;justify-content:center}.envelope-add-photo-text{font-size:12px;font-weight:600;color:#591726}.envelope-photos-divider{border:0;border-top:1px solid rgba(91,32,44,.12);margin:6px 0 12px;width:100%}.envelope-edit-photo-container{display:flex;flex-direction:column;gap:12px}.envelope-edit-photo-title{margin:0;font-size:13px;font-weight:700;letter-spacing:.05em;color:#591726;text-transform:uppercase}.envelope-edit-photo-body{display:flex;gap:16px;align-items:center}.envelope-edit-photo-left{width:130px}.envelope-edit-photo-left,.envelope-edit-photo-preview{flex-shrink:0;display:flex;align-items:center;justify-content:center}.envelope-edit-photo-preview{max-width:130px;max-height:140px;width:auto;height:auto;border-radius:10px;overflow:hidden;background:transparent;border:1px solid rgba(91,32,44,.12)}.envelope-edit-photo-preview.is-empty{width:120px;height:120px;background:rgba(91,32,44,.06)}.envelope-edit-photo-preview img{max-width:130px;max-height:140px;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;display:block;border-radius:9px}.envelope-edit-photo-right{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}.envelope-edit-photo-caption-label{font-size:14px;font-weight:700;color:#591726;display:flex;align-items:center;gap:4px}.envelope-optional-tag{font-weight:400;color:#7c6a6e;font-size:13px}.envelope-edit-photo-textarea-wrapper{position:relative;width:100%}.envelope-edit-photo-textarea-wrapper textarea{width:100%;height:110px;padding:10px 12px 28px;border:1px solid rgba(91,32,44,.18);border-radius:10px;background:#ffffff;font-size:13px;color:#2c2527;resize:none;font-family:inherit;box-sizing:border-box}.envelope-edit-photo-textarea-wrapper textarea:focus{outline:none;border-color:#591726;box-shadow:0 0 0 2px rgba(89,23,38,.1)}.envelope-edit-photo-char-count{position:absolute;bottom:8px;right:12px;font-size:12px;color:#8c7b7f;pointer-events:none}.envelope-edit-photo-actions-row{display:flex;align-items:center;gap:20px;margin-top:4px}.envelope-edit-action-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:none;padding:0;cursor:pointer;font-size:14px;font-weight:600;color:#591726;transition:opacity .15s ease}.envelope-edit-action-btn:hover{opacity:.8}.envelope-edit-action-btn.is-remove{color:#e11d48}.envelope-photo-picker-dialog{max-width:720px;overflow-y:auto}.envelope-photo-picker-tabs{display:flex;flex-wrap:wrap;gap:8px}.envelope-photo-picker-tabs button{min-height:38px;padding:0 14px;color:rgba(51,34,29,.72);border:1px solid rgba(91,32,44,.14);border-radius:999px;background:rgba(91,32,44,.05);cursor:pointer;font:800 .75rem/1 var(--font-sans),Arial,sans-serif}.envelope-photo-picker-tabs button.is-active{color:#fffaf5;border-color:#5b202c;background:#5b202c}.envelope-photo-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.envelope-photo-picker-item{min-width:0;padding:8px;display:flex;flex-direction:column;gap:8px;color:#33221d;border:1px solid rgba(91,32,44,.14);border-radius:12px;background:rgba(255,255,255,.72);cursor:pointer;text-align:left}.envelope-photo-picker-asset{position:relative;min-width:0}.envelope-photo-picker-asset .envelope-photo-picker-item{width:100%}.envelope-photo-picker-delete{position:absolute;top:14px;right:14px;width:28px;height:28px;display:grid;place-items:center;color:#fff;border:0;border-radius:999px;background:rgba(91,32,44,.88);box-shadow:0 3px 10px rgba(51,34,29,.24);cursor:pointer;font-size:1rem;line-height:1}.envelope-photo-picker-delete:disabled{opacity:.55;cursor:wait}.envelope-photo-picker-item:hover{border-color:rgba(91,32,44,.45);box-shadow:0 8px 24px rgba(51,34,29,.1)}.envelope-photo-picker-item img{width:100%;aspect-ratio:4/5;border-radius:8px;-o-object-fit:contain;object-fit:contain}.envelope-photo-picker-item span{padding:0 3px 2px;overflow:hidden;font:800 .74rem/1.2 var(--font-sans),Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.envelope-photo-picker-note,.envelope-photo-picker-upload p{margin:0 0 12px;color:rgba(51,34,29,.68);font:500 .8rem/1.5 var(--font-sans),Arial,sans-serif}.envelope-photo-picker-upload{padding:20px;border:1px dashed rgba(91,32,44,.22);border-radius:12px;background:rgba(255,255,255,.5);text-align:center}.envelope-photo-picker-upload .primary-button{display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;min-width:auto;padding:0 20px;border-radius:10px;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 12px rgba(91,32,44,.16);cursor:pointer}.envelope-photo-picker-upload .primary-button.is-disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.envelope-photo-picker-upload input{display:none}@media (max-width:560px){.envelope-photo-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.local-editor-status{width:min(720px,calc(100% - 32px));margin:0 auto;padding-top:clamp(70px,12vw,140px)}.local-editor-status.is-loading{justify-items:center;min-height:100vh;padding-top:0;place-content:center;text-align:center}.local-editor-status.is-loading .section-kicker{margin-top:6px}.full-template-preview-page{width:100vw;min-height:100vh;overflow:hidden;background:#fffdfa}.preview-toolbar{position:fixed;z-index:50;top:18px;left:18px;display:flex;flex-direction:column;align-items:center;gap:12px}.preview-viewport{position:relative;width:100vw;height:100vh}.preview-frame-loading{position:absolute;z-index:3;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;color:var(--accent-dark);background:#fffdfa;font-size:.82rem;font-weight:900;letter-spacing:.14em;text-align:center;text-transform:uppercase}.preview-frame{display:block;width:100%;height:100%;border:0;background:transparent}.live-template-preview-page{min-height:100vh}body:has(.live-template-preview-page),html:has(.live-template-preview-page){scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:contain}body:has(.live-template-preview-page)::-webkit-scrollbar,html:has(.live-template-preview-page)::-webkit-scrollbar{display:none}@media (max-width:767px){.live-template-preview-page:not(.force-desktop){background:transparent;padding:0;display:block}.live-template-preview-page:not(.force-desktop) .invite-renderer{width:100%;margin:0}.live-template-preview-page:not(.force-desktop) .invite-renderer-stage{border:0;border-radius:0;box-shadow:none;overflow:visible}}.live-template-preview-page.force-mobile{background:transparent;padding:0;display:block}.live-template-preview-page.force-mobile .invite-renderer{width:100%;margin:0}.live-template-preview-page.force-mobile .invite-renderer-stage{border:0;border-radius:0;box-shadow:none;overflow:visible}@media (min-width:768px){.live-template-preview-page:not(.force-mobile){height:100vh;overflow:hidden;display:flex;justify-content:center;align-items:stretch;background:radial-gradient(circle at center,#fbf7f0 0,#dcd1c4 100%);padding:0;box-sizing:border-box}.live-template-preview-page:not(.force-mobile) .invite-renderer{width:min(600px,65vh,calc(100vw - 64px));min-width:min(360px,100vw);height:100%;margin:0 auto;position:relative;display:flex;flex-direction:column;z-index:1}.live-template-preview-page:not(.force-mobile) .invite-renderer:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 15px 0 20px -10px rgba(0,0,0,.18),inset -15px 0 20px -10px rgba(0,0,0,.18);z-index:2}.live-template-preview-page:not(.force-mobile) .invite-renderer-stage{flex:1;position:relative;border:2px solid #d6a84f;border-top:none;border-bottom:none;border-radius:0;background:#fffdf8;box-shadow:none;overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.live-template-preview-page:not(.force-mobile) .invite-renderer-stage::-webkit-scrollbar{display:none}}.live-template-preview-page.force-desktop{height:100vh;overflow:hidden;display:flex;justify-content:center;align-items:stretch;background:radial-gradient(circle at center,#fbf7f0 0,#dcd1c4 100%);padding:0;box-sizing:border-box}.live-template-preview-page.force-desktop .invite-renderer{width:min(600px,65vh,calc(100vw - 64px));min-width:min(360px,100vw);height:100%;margin:0 auto;position:relative;display:flex;flex-direction:column;z-index:1}.live-template-preview-page.force-desktop .invite-renderer:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 15px 0 20px -10px rgba(0,0,0,.18),inset -15px 0 20px -10px rgba(0,0,0,.18);z-index:2}.live-template-preview-page.force-desktop .invite-renderer-stage{flex:1;position:relative;border:2px solid #d6a84f;border-top:none;border-bottom:none;border-radius:0;background:#fffdf8;box-shadow:none;overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.live-template-preview-page.force-desktop .invite-renderer-stage::-webkit-scrollbar{display:none}.preview-back-link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(103,35,23,.18);border-radius:50%;color:#672317;background:rgba(255,253,250,.82);box-shadow:0 12px 28px rgba(42,28,24,.12);backdrop-filter:blur(10px);transition:all .2s ease}.preview-back-link:hover{background:#672317;color:#fffaf7;transform:translateY(-2px)}.preview-device-toggle{display:flex;flex-direction:column;gap:8px;padding:6px;border:1px solid rgba(103,35,23,.18);border-radius:24px;background:rgba(255,253,250,.82);box-shadow:0 12px 28px rgba(42,28,24,.12);backdrop-filter:blur(10px)}.preview-device-toggle button{display:grid;width:38px;height:38px;place-items:center;border:0;border-radius:50%;color:#672317;background:transparent;cursor:pointer;transition:all .2s ease}.preview-device-toggle button:hover:not(.active){background:rgba(103,35,23,.08)}.preview-device-toggle button.active{color:#fffaf7;background:#672317}.preview-back-link svg,.preview-device-toggle button svg{width:20px;height:20px;display:block}.preview-icon{position:relative;display:block;color:currentColor}.preview-icon-desktop{width:21px;height:14px;border:2px solid;border-radius:3px}.preview-icon-desktop:before{position:absolute;bottom:-7px;left:50%;width:2px;height:5px;background:currentColor;content:"";transform:translateX(-50%)}.preview-icon-desktop:after{position:absolute;right:3px;bottom:-9px;left:3px;height:2px;border-radius:999px;background:currentColor;content:""}.preview-icon-mobile{width:13px;height:22px;border:2px solid;border-radius:4px}.preview-icon-mobile:after{position:absolute;bottom:2px;left:50%;width:4px;height:2px;border-radius:999px;background:currentColor;content:"";transform:translateX(-50%)}.preview-mobile{display:grid;min-height:100vh;place-items:start center;padding:18px;background:linear-gradient(90deg,rgba(24,29,39,.16),transparent 22%,transparent 78%,rgba(24,29,39,.16)),#e9e2d9}.preview-tablet{display:grid;min-height:100vh;place-items:center;padding:18px;background:linear-gradient(90deg,rgba(24,29,39,.12),transparent 22%,transparent 78%,rgba(24,29,39,.12)),#e9e2d9}.preview-laptop{display:grid;min-height:100vh;place-items:center;padding:34px 60px 52px;background:linear-gradient(90deg,rgba(24,29,39,.1),transparent 22%,transparent 78%,rgba(24,29,39,.1)),#e9e2d9}.preview-none{display:block;min-height:100vh;padding:0}.preview-no-frame{position:relative;width:100%;height:100vh}@media (max-width:760px){.preview-laptop{padding:80px 14px 28px}}.editor-topbar a,.preview-header>a:first-child{color:var(--accent-dark);font-size:.78rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}[data-tooltip]{position:relative}[data-tooltip]:after{content:attr(data-tooltip);left:calc(100% + 10px);padding:6px 10px;border-radius:6px;background:#2a1c18;color:#fffaf7;font-size:.72rem;font-weight:600;white-space:nowrap;box-shadow:0 4px 12px rgba(42,28,24,.16)}[data-tooltip]:after,[data-tooltip]:before{position:absolute;top:50%;transform:translateY(-50%) translateX(-4px);opacity:0;visibility:hidden;transition:all .25s cubic-bezier(.4,0,.2,1);pointer-events:none;z-index:100}[data-tooltip]:before{content:"";left:calc(100% + 4px);border:4px solid transparent;border-right-color:#2a1c18}[data-tooltip]:hover:after,[data-tooltip]:hover:before{opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}.timeline-accordion{display:flex;flex-direction:column;gap:12px;width:100%}.timeline-accordion-item{border:1px solid rgba(57,37,35,.08);border-radius:12px;background:rgba(255,255,255,.45);overflow:hidden;transition:all .2s ease;width:100%}.timeline-accordion-item:hover{border-color:rgba(198,154,69,.3);background:rgba(255,255,255,.65)}.timeline-accordion-item.active{border-color:#c69a45;background:rgba(255,255,255,.85);box-shadow:0 4px 20px rgba(198,154,69,.06)}.timeline-accordion-header{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.timeline-accordion-header-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.timeline-accordion-badge{background:rgba(198,154,69,.12);color:#c69a45;font-weight:700;font-size:.75rem;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.timeline-accordion-title{font-size:.9rem;font-weight:600;color:#392523;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-accordion-actions{display:flex;align-items:center;gap:6px}.timeline-action-btn{background:none;border:none;color:rgba(57,37,35,.5);cursor:pointer;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease}.timeline-action-btn:hover:not(:disabled){background:rgba(57,37,35,.05);color:#392523}.timeline-action-btn:disabled{opacity:.25;cursor:not-allowed}.timeline-action-btn.delete:hover:not(:disabled){background:rgba(118,44,57,.08);color:#762c39}.timeline-accordion-chevron{transition:transform .2s ease;color:rgba(57,37,35,.4)}.timeline-accordion-item.active .timeline-accordion-chevron{transform:rotate(180deg)}.timeline-accordion-content{padding:16px;border-top:1px dashed rgba(198,154,69,.15);display:flex;flex-direction:column;gap:14px}.section-divider{border-top:1px solid rgba(118,44,57,.12)!important}.template-editor-back-button-floating{position:fixed;top:24px;left:24px;z-index:50;display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;height:38px;padding:0 16px;border:1px solid var(--user-border-strong);border-radius:999px;color:var(--user-brand);background:var(--user-surface-glass);backdrop-filter:blur(8px);font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;cursor:pointer;box-shadow:0 4px 12px rgba(42,28,24,.08);transition:all .2s ease}.template-editor-back-button-floating:hover{background:var(--user-accent-faint);color:var(--user-accent);border-color:var(--user-accent-soft);transform:translateX(-2px)}.template-editor-back-button-floating .back-arrow-icon{transition:transform .2s ease}.template-editor-back-button-floating:hover .back-arrow-icon{transform:translateX(-2px)}@media (max-width:768px){.template-editor-back-button-floating{position:fixed;top:14px;left:14px;height:32px;font-size:.65rem;padding:0 12px}}.publish-settings-card,.publish-settings-content{display:grid;gap:12px}.publish-status-row{display:flex;align-items:center;gap:8px}.publish-status-row .status-label{font-size:.85rem;font-weight:700;color:var(--user-workspace-text-subtle)}.publish-actions-row{display:flex;gap:10px;width:100%}.publish-actions-row .primary-button,.publish-actions-row .secondary-button{flex:1;box-sizing:border-box;height:42px;min-height:42px;padding:0 16px;font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;white-space:nowrap}.template-editor-status-badge.status-draft{color:var(--user-workspace-text-muted)!important}.template-editor-status-badge.status-draft .status-dot.draft-dot{background-color:var(--user-workspace-text-muted)!important;box-shadow:none!important}.admin-actions-row{margin-top:12px;display:flex;gap:8px}.template-editor-main-toolbar{position:sticky;top:0;z-index:12;padding:8px;border:1px solid rgba(91,32,44,.1);border-radius:12px;background:rgba(255,250,244,.96);box-shadow:0 5px 16px rgba(91,32,44,.08);backdrop-filter:blur(8px)}.admin-actions-row .secondary-button{flex:1;box-sizing:border-box;height:38px;min-height:38px;padding:0 14px;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;white-space:nowrap}.template-editor-page .scratch-controls-editor-card[class*=controlsCard],.template-editor-page .scratch-editor-controls[class*=controlsCard]{width:100%!important;max-width:100%!important;background:transparent!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important;padding:0!important}.template-editor-page input[type=range]{accent-color:#dfa86c!important}.envelope-events-editor-container{display:flex;flex-direction:column;gap:14px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.envelope-events-section-header{display:flex;align-items:center;justify-content:space-between;margin-top:4px;width:100%}.envelope-events-section-title{margin:0;font-size:13px;font-weight:800;letter-spacing:.06em;color:#3c2424;text-transform:uppercase}.envelope-events-count-wrapper{display:flex;align-items:center;gap:10px}.envelope-events-count-text{font-size:13px;color:#6b5e5f;font-weight:500}.envelope-add-event-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:transparent;border:1px dashed #7a4249;border-radius:8px;color:#591726;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:all .2s ease;white-space:nowrap}.envelope-add-event-btn:hover:not(:disabled){background:rgba(89,23,38,.06)}.envelope-add-event-btn:disabled{opacity:.4;cursor:not-allowed}.envelope-events-cards-grid{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:10px;width:100%;max-width:100%;min-width:0;padding-bottom:8px;padding-top:2px;scrollbar-width:thin;scrollbar-color:rgba(89,23,38,.3) transparent;-webkit-overflow-scrolling:touch;box-sizing:border-box}.envelope-events-cards-grid::-webkit-scrollbar{height:4px}.envelope-events-cards-grid::-webkit-scrollbar-track{background:transparent}.envelope-events-cards-grid::-webkit-scrollbar-thumb{background:rgba(89,23,38,.3);border-radius:4px}.envelope-event-card{flex:0 0 145px;width:145px;min-width:145px;max-width:145px;display:flex;flex-direction:column;padding:12px;border-radius:12px;background:#ffffff;border:1px solid #ebe4dd;cursor:pointer;transition:all .2s ease;min-height:125px;position:relative;box-sizing:border-box}.envelope-event-card:hover{border-color:#c9b8ab}.envelope-event-card.is-selected{background:#fffdf9;border:2px solid #591726;box-shadow:0 4px 12px rgba(89,23,38,.08)}.envelope-event-card-top{display:flex;align-items:center;justify-content:space-between;width:100%}.envelope-event-card-badge{width:24px;height:24px;border-radius:50%;background:#f5efe9;color:#591726;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}.envelope-event-card-badge.is-active{background:#591726;color:#ffffff}.envelope-event-card-menu-btn{background:none;border:none;color:#6b5e5f;padding:2px;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center}.envelope-event-card-menu-btn:hover{color:#2c2527}.envelope-event-card-title{margin-top:10px;font-size:14px;font-weight:700;color:#2c2527;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.envelope-event-card-datetime{margin-top:6px;font-size:12px;font-weight:600;color:#c39645;text-transform:uppercase;letter-spacing:.02em}.envelope-event-card-venue{margin-top:6px;font-size:12px;color:#6b5e5f;display:flex;align-items:center;gap:4px}.envelope-event-card-venue,.envelope-event-card-venue span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.envelope-event-details-container{display:flex;flex-direction:column;gap:12px}.envelope-event-details-header{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.envelope-event-details-title{margin:0;font-size:13px;font-weight:800;letter-spacing:.06em;color:#3c2424;text-transform:uppercase}.envelope-remove-event-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fdf2f2;border:1px solid #f8d7d7;border-radius:8px;color:#d93838;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:all .2s ease}.envelope-remove-event-btn:hover:not(:disabled){background:#fbe5e5;border-color:#f1c1c1}.envelope-remove-event-btn:disabled{opacity:.4;cursor:not-allowed}.envelope-event-form-fields{display:flex;flex-direction:column;gap:12px}.envelope-event-field{display:flex;flex-direction:column;gap:6px}.envelope-event-field-label{font-size:12px;font-weight:800;letter-spacing:.05em;color:#3c2424;text-transform:uppercase}.envelope-event-input-counter{position:absolute;right:12px;font-size:11px;font-weight:500;color:#8c726c;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.envelope-event-input{width:100%;height:40px;padding:0 12px;background:#fffdfb;border:1px solid #e5ddd6;border-radius:8px;font-size:14px;color:#2c2527;box-sizing:border-box;transition:all .2s ease}.envelope-event-input:focus{outline:none;border-color:#591726;box-shadow:0 0 0 2px rgba(89,23,38,.1)}.envelope-event-field-grid{display:grid;gap:12px}.envelope-event-field-grid.two{grid-template-columns:repeat(2,1fr)}.envelope-event-input-wrapper{position:relative;width:100%;display:flex;align-items:center}.envelope-event-input-wrapper .envelope-event-input{padding-right:36px;position:relative}.envelope-event-input::-webkit-calendar-picker-indicator{position:absolute;top:0;right:0;width:36px;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.envelope-event-input-icon{position:absolute;right:12px;color:#6b5e5f;pointer-events:none}.guided-editor-card .editor-card-header{align-items:center}.guided-editor-card{min-width:0;max-width:100%;overflow:hidden}.guided-editor-navigation{display:flex;align-items:center;gap:8px}.guided-editor-navigation .ghost-button{min-height:38px;padding:8px 12px;white-space:nowrap}.guided-editor-visibility-toggle{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:8px 11px;border:1px solid #b9d4c2;border-radius:10px;background:#edf8f0;color:#326044;font-size:.78rem;font-weight:800;cursor:pointer;white-space:nowrap}.guided-editor-visibility-toggle:hover{background:#e2f2e7}.guided-editor-visibility-toggle:disabled{cursor:not-allowed;opacity:.55}.guided-editor-visibility-toggle.is-hidden{border-color:#d9c9c6;background:#f4eeec;color:#806c68}.guided-editor-visibility-toggle.is-hidden:hover{background:#eee4e1}.guided-editor-visibility-toggle svg{width:16px;height:16px}.guided-editor-progress{color:#806c68;font-size:.78rem;font-weight:700;white-space:nowrap}.guided-scratch-editor{display:flex;align-items:center;gap:10px}.guided-scratch-date-trigger{flex:1;min-width:0;height:46px;min-height:46px}.guided-scratch-button.primary-button.compact,.guided-scratch-editor .guided-scratch-button{flex:0 0 auto;height:46px;min-height:46px;max-height:46px;min-width:auto;padding:0 16px;border-radius:8px;font-size:.78rem;letter-spacing:.05em;justify-content:center;align-items:center}.guided-scratch-warning{display:flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid rgba(180,40,40,.25);border-radius:8px;background:rgba(254,242,242,.95);color:#991b1b;font-size:.8rem;font-weight:600;line-height:1.35}.guided-editor-color-row{display:flex;flex-wrap:wrap;gap:10px}.guided-editor-color-trigger{width:48px;height:48px;padding:3px;border:1px solid #dfd0ca;border-radius:10px;cursor:pointer}.editor-event-collection,.editor-location-collection,.editor-photo-collection{width:100%;min-width:0;max-width:100%;overflow:hidden;box-sizing:border-box}.editor-collection-details-heading,.editor-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-collection-details-heading h3,.editor-collection-heading h3{margin:0;color:#3c2424;font-size:.82rem;letter-spacing:.04em}.editor-collection-heading-actions{display:flex;align-items:center;gap:10px;color:#806c68;font-size:.78rem}.editor-collection-add-button,.editor-collection-remove-button{min-height:40px;padding:8px 13px;border:1px dashed #9f6670;border-radius:10px;background:transparent;color:#65202e;font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}.editor-collection-add-button:disabled,.editor-collection-remove-button:disabled{cursor:not-allowed;opacity:.4}.editor-event-card-strip,.editor-location-card-strip,.editor-photo-card-strip{display:flex;gap:12px;width:100%;max-width:100%;margin-top:16px;padding:2px 2px 10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#c8aaa7 transparent;scrollbar-width:thin;box-sizing:border-box}.editor-event-card{display:flex;flex:0 0 164px;min-height:148px;padding:16px;border:1px solid #e3d7d0;border-radius:13px;background:#fffdfb;color:#382d2d;text-align:left;flex-direction:column;gap:8px;cursor:pointer}.editor-event-card.is-selected{border:2px solid #641b2c;box-shadow:0 3px 9px rgba(90,27,42,.08)}.editor-event-card-number{display:grid;width:30px;height:30px;border-radius:999px;background:#641b2c;color:#fff;font-size:.78rem;font-weight:800;place-items:center}.editor-event-card strong{font-size:.96rem;line-height:1.18}.editor-event-card-date{color:#c8932d;font-size:.78rem;font-weight:800}.editor-event-card-venue{max-width:100%;color:#766a67;font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-location-card{display:flex;flex:0 0 175px;min-height:52px;padding:10px 14px;border:1px solid #e3d7d0;border-radius:12px;background:#fffdfb;color:#382d2d;text-align:left;flex-direction:column;justify-content:center;gap:0;cursor:pointer;transition:all .2s ease}.editor-location-card.is-selected{border:2px solid #641b2c;box-shadow:0 3px 9px rgba(90,27,42,.08)}.editor-location-card-header{display:flex;align-items:center;gap:10px;width:100%}.editor-location-card-number{display:grid;flex:0 0 26px;width:26px;height:26px;border-radius:999px;background:#641b2c;color:#fff;font-size:.75rem;font-weight:800;place-items:center}.editor-location-card strong{flex:1;min-width:0;font-size:.88rem;line-height:1.25;font-weight:700;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word}.editor-collection-divider{width:100%;margin:14px 0;border:0;border-top:1px solid #eadfd8}.editor-collection-details{display:flex;flex-direction:column;gap:14px}.editor-collection-details .field input,.editor-collection-details .field textarea{font-weight:500;font-size:.92rem;color:#2c2527}.editor-collection-remove-button{border-color:#efc0bd;color:#dd7772}.editor-location-details-actions{display:flex;align-items:center;gap:8px}.editor-location-collection .editor-collection-add-button{display:inline-flex;align-items:center;gap:5px}.editor-location-details-actions .editor-collection-remove-button,.editor-location-reset-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.editor-location-move-button{display:grid;width:40px;height:40px;padding:0;border:1px solid #decac7;border-radius:10px;background:#fffdfb;color:#641b2c;cursor:pointer;place-items:center}.editor-location-move-button:disabled{cursor:not-allowed;opacity:.35}.editor-location-textarea-counter{position:relative}.editor-location-textarea-counter textarea{width:100%;padding-bottom:28px}.editor-location-textarea-counter>span{position:absolute;right:12px;bottom:9px;color:#8c726c;font-size:.72rem}.editor-location-reset-button{width:100%;min-height:42px;margin-top:16px;border:1px dashed #c8aaa7;border-radius:10px;background:#f5eae5;color:#65202e;font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}.editor-field-with-counter{position:relative}.editor-field-with-counter input{padding-right:58px}.editor-field-with-counter>span{position:absolute;top:50%;right:12px;color:#8c726c;font-size:.72rem;transform:translateY(-50%)}.editor-photo-card{flex:0 0 138px;padding:9px;border:1px solid #e5d8d2;border-radius:13px;background:#fffdfb;transition:border-color .15s ease,opacity .15s ease,transform .15s ease}.editor-photo-card.is-selected{border:2px solid #641b2c}.editor-photo-card.is-dragged{opacity:.5}.editor-photo-card.is-drag-over{transform:translateX(4px)}.editor-photo-card-heading{display:flex;align-items:center;justify-content:space-between;min-height:26px;color:#8b7470;font-size:.78rem;font-weight:800}.editor-photo-card-heading span:first-child{display:grid;width:26px;height:26px;border-radius:999px;background:#641b2c;color:white;place-items:center}.editor-photo-drag-handle{display:inline-flex;align-items:center;justify-content:center;color:#b99b98;cursor:grab}.editor-photo-thumbnail{position:relative;width:100%;aspect-ratio:4/5;margin-top:7px;padding:0;overflow:hidden;border:0;border-radius:8px;background:#f4ebe7;cursor:pointer}.editor-photo-selected-preview img,.editor-photo-thumbnail img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.editor-photo-card-arrows{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.editor-photo-card-arrows button{display:grid;min-height:32px;border:1px solid #decac7;border-radius:8px;background:white;color:#641b2c;cursor:pointer;place-items:center}.editor-photo-card-arrows button:disabled{cursor:not-allowed;opacity:.35}.editor-photo-add-card{display:grid;flex:0 0 138px;min-height:208px;border:1px dashed #c79ca1;border-radius:13px;background:rgba(255,253,251,.55);color:#641b2c;cursor:pointer;place-content:center;place-items:center;gap:9px}.editor-photo-add-card>span{display:grid;width:46px;height:46px;border-radius:999px;background:#f5e8e5;font-size:1.4rem;place-items:center}.editor-photo-add-card>span svg{display:block}.editor-photo-details{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:stretch}.editor-photo-selected-preview{overflow:hidden;border-radius:10px;background:#f4ebe7;aspect-ratio:1}.editor-photo-selected-preview[data-photo-shape=portrait]{aspect-ratio:4/5}.editor-photo-selected-preview[data-photo-shape=landscape]{aspect-ratio:5/4}.editor-photo-caption{display:flex;min-width:0;flex-direction:column;gap:8px;color:#4d2b30;font-size:.82rem;font-weight:800}.editor-photo-caption small{color:#8c7774;font-weight:500}.editor-photo-caption>div{position:relative;display:flex;flex:1;min-height:140px}.editor-photo-caption textarea{display:block;flex:1;width:100%;min-height:140px;padding:12px 12px 30px;box-sizing:border-box;resize:vertical}.editor-photo-caption>div>small{position:absolute;right:10px;bottom:9px}.editor-photo-actions{display:flex;align-items:center;gap:20px;margin-top:14px}.editor-photo-actions button{display:inline-flex;align-items:center;gap:8px;padding:4px 0;border:0;background:none;color:#641b2c;font:inherit;font-weight:800;cursor:pointer}.editor-photo-actions button.is-remove{color:#ef334c}.editor-collection-empty{margin:16px 0 0;color:#806c68}@media (max-width:680px){.template-variant-selector-modal .template-variant-row{grid-template-columns:1fr}.template-variant-selector-modal .template-variant-badges,.template-variant-selector-modal .template-variant-row-actions{grid-column:1}.guided-editor-card .editor-card-header{align-items:flex-start;flex-direction:column}.guided-editor-navigation{width:100%;flex-wrap:wrap}.guided-editor-progress{margin-right:auto}.editor-collection-details-heading,.editor-collection-heading{align-items:flex-start;flex-direction:column}.editor-location-details-actions{width:100%;flex-wrap:wrap}.editor-location-details-actions .editor-collection-remove-button{flex:1}.editor-collection-heading-actions{width:100%;justify-content:space-between}.editor-photo-details{grid-template-columns:1fr}.editor-photo-selected-preview{width:min(220px,100%)}}