/* CLENA Sites — editor experience v3. Isolated from other CLENA products. */
:root{--studio-bg:#f5f2fb;--studio-ink:#241739;--studio-primary:#7046db;--studio-secondary:#a662e9;--studio-line:#e8e1f3;--studio-soft:#f5f0ff;--studio-shadow:0 22px 66px rgba(48,28,94,.09)}
html{scroll-padding-top:95px}
body{max-width:100%;min-width:320px;overflow-x:clip;background:radial-gradient(ellipse at 1% 0%,#ede3ff 0,transparent 34%),radial-gradient(ellipse at 100% 12%,#fbe9f7 0,transparent 32%),var(--studio-bg);color:var(--studio-ink)}
button,a,select,input,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a37ff0;outline-offset:3px}
.shell{width:100%;max-width:none!important;margin:0 auto;padding:20px clamp(18px,2.35vw,48px) 145px}
.top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;max-width:none;margin-bottom:26px;padding:15px 22px;border-radius:20px;border:1px solid #e7dff3;background:rgba(255,255,255,.88);box-shadow:0 10px 36px #36205d0b;backdrop-filter:blur(22px);animation:studio-slide-down .65s both}
.top .logo{font-size:clamp(23px,2vw,29px);font-weight:900;letter-spacing:-.075em;white-space:nowrap}
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.top-actions .pill{max-width:min(30vw,260px);background:#f2edfc;color:#63439e}
.top-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;min-height:41px;background:#f4f0fe;border:1px solid #ebe5fa;border-radius:12px;white-space:nowrap;transition:background .2s,transform .2s}
.top-link:hover{background:#ebe1ff;transform:translateY(-1px)}
.top #logout{min-height:41px!important}
.install-app-btn{display:none;align-items:center;gap:7px;min-height:41px;padding:8px 14px;border:1px solid #d9c9f5;border-radius:12px;background:#fff;color:#5b38b1;font-size:12px;font-weight:800;white-space:nowrap}
.install-app-btn.available{display:inline-flex}
.editor-view{min-width:0;padding-top:0;animation:studio-fade-up .5s both}
.editor-view>.eyebrow{font-size:11px;letter-spacing:.2em;color:#7d6a97}
.editor-view .top-creator-row{display:flex;gap:18px;align-items:flex-end;justify-content:space-between;margin:0 0 12px!important}
.editor-view .top-creator-row>div{min-width:0}
.editor-view .heading{font:850 clamp(38px,4vw,62px)/1.05 Outfit,system-ui;letter-spacing:-.07em;margin:12px 0 10px}
.editor-view #editorUrl{display:inline-block;max-width:100%;color:#7755a7;font-size:12px;font-weight:800;word-break:break-word;line-height:1.5}
.editor-view #publicationStatus{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;background:#f1ebff;color:#6742aa;border:1px solid #e8defa;border-radius:99px;white-space:nowrap;font-size:12px}
.editor-view #publicationStatus[data-published="true"]{background:#eaf9f1;border-color:#cdeedc;color:#267a53}
.editor-summary{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 24px}
.editor-summary span{border-radius:100px;border:1px solid #e8e1f0;background:#ffffffbd;padding:9px 13px;color:#796c88;font-size:11px;font-weight:750}
.editor-summary span i{color:#825bd7}
.editor-view .editor-grid{display:grid;grid-template-columns:228px minmax(0,1fr);align-items:start;gap:20px;width:100%;max-width:none}
.editor-view .editor-grid>.editor-workspace{min-width:0;max-width:100%}
.editor-view .tabs{display:grid;position:sticky;top:16px;max-height:calc(100dvh - 48px);overflow-y:auto;overflow-x:hidden;align-content:start;gap:5px;border:1px solid #e8e0f2;padding:12px;border-radius:21px;background:rgba(255,255,255,.95);box-shadow:var(--studio-shadow);scrollbar-width:thin}
.editor-view .tab{display:flex;align-items:center;gap:13px;min-height:49px;width:100%;padding:12px 14px;background:transparent;border:0;border-radius:12px;color:#6c5b81;text-align:left;font-size:13px;font-weight:800;line-height:1.3;transition:background .22s,color .22s,transform .22s}
.editor-view .tab:hover{background:#f5efff;color:#6944bd;transform:translateX(3px)}
.editor-view .tab[aria-selected="true"]{color:white;background:linear-gradient(115deg,#5a32bb,#8c5ce1);box-shadow:0 10px 22px #6740bf35}
.editor-view .tab[aria-selected="true"]:hover{transform:none}
.editor-view .tab .tab-icon{font-size:19px;flex:0 0 20px}
.editor-view #section{width:100%;min-width:0;min-height:420px;padding:clamp(24px,3.15vw,48px)!important;border:1px solid #e9e1f3;border-radius:24px;background:#fff;box-shadow:var(--studio-shadow);animation:studio-fade-up .38s both;overflow:visible}
.editor-view #section h2{font:850 clamp(27px,2.7vw,39px)/1.12 Outfit,system-ui;color:#291b42;letter-spacing:-.052em;margin:2px 0 27px}
.editor-view #section .field{max-width:none;min-width:0;gap:8px;margin-bottom:20px}
.editor-view #section .field label{font-size:12px;line-height:1.4;font-weight:800;color:#504366}
.editor-view #section input:not([type=file]),.editor-view #section textarea,.editor-view #section select{width:100%;max-width:100%;min-width:0;padding:13px 16px;min-height:53px;font-size:15px;line-height:1.55;border:1px solid #e4ddec;border-radius:13px;background:#fbfaff;color:#2e2444;transition:border-color .22s,box-shadow .22s,background .22s}
.editor-view #section textarea{min-height:122px;resize:vertical}
.editor-view #section input:focus,.editor-view #section textarea:focus,.editor-view #section select:focus{border-color:#8b64d9;background:white;box-shadow:0 0 0 4px #8054dc16;outline:0}
.editor-view #section input::placeholder,.editor-view #section textarea::placeholder{color:#a199b1}
.editor-view #section .btn{transition:transform .23s,box-shadow .23s,filter .23s}
.editor-view #section .btn:hover:not(:disabled){filter:saturate(1.07)}
.editor-view #section .btn.outline{background:white;border:1px solid #e2d9ee;color:#6740ad}
.editor-view .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.editor-view .theme-card{min-width:0;padding:9px;border:2px solid #eee9f5;border-radius:17px;background:#fbf9ff;transition:transform .22s,border-color .22s,box-shadow .22s}
.editor-view .theme-card:hover{transform:translateY(-5px);box-shadow:0 14px 29px #45207317}
.editor-view .theme-card.active{border-color:#7f51dc;box-shadow:0 0 0 4px #8754e117}
.editor-view .swatch{height:clamp(96px,10vw,168px);border-radius:12px}
.editor-view .list-item{background:#fcfaff;border:1px solid #ece5f4;border-radius:19px;padding:22px;margin-bottom:14px;transition:box-shadow .23s,border-color .23s}
.editor-view .list-item:hover{border-color:#d9cafa;box-shadow:0 10px 24px #45207310}
.editor-view #editorMsg{max-width:none;margin:15px 0 0;line-height:1.6;font-size:12px;border:1px solid #ebe3f9;background:#f5f0ff;color:#64498d;border-radius:14px;padding:15px 18px}
.editor-view #editorMsg.error{border-color:#ffd9e3;background:#fff4f6;color:#a72f54}
.media-preview{display:flex;align-items:center;gap:12px;min-height:72px;padding:11px;margin-top:10px;border:1px dashed #dac9ef;border-radius:13px;background:#faf8ff}
.media-preview img{width:68px;height:62px;flex:none;object-fit:cover;border-radius:9px;background:#efe9f7}
.media-preview .media-caption{display:flex;flex-direction:column;gap:3px;min-width:0;color:#655576;font-size:12px;line-height:1.35}
.media-preview .media-caption small{font-size:10px;color:#948ba4;overflow-wrap:anywhere}
.media-preview.is-empty img{display:none}
.editor-preview{display:none;position:sticky;top:16px;min-width:0;height:min(75dvh,810px);border:1px solid #e5def0;border-radius:23px;background:#fff;box-shadow:var(--studio-shadow);overflow:hidden}
.editor-preview .preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;background:#fff;border-bottom:1px solid #eee8f5}
.editor-preview .preview-title{display:flex;flex-direction:column;gap:1px;min-width:0}
.editor-preview .preview-title strong{font-size:13px;color:#2c1c49}
.editor-preview .preview-title small{font-size:10px;color:#857895}
.editor-preview .preview-tools{display:flex;align-items:center;gap:5px}
.editor-preview .preview-tool{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:#f4effb;color:#6546a2;cursor:pointer;transition:background .2s}
.editor-preview .preview-tool:hover,.editor-preview .preview-tool[aria-pressed=true]{background:#e6dafa;color:#5932b3}
.editor-preview .preview-stage{display:grid;place-items:start center;min-height:0;height:calc(100% - 64px);background:repeating-linear-gradient(45deg,#f2edf8,#f2edf8 10px,#f8f5fb 10px,#f8f5fb 20px);padding:13px;overflow:hidden}
.editor-preview iframe{display:block;width:100%;height:100%;max-width:100%;border:1px solid #dfd6ed;border-radius:11px;background:white;box-shadow:0 10px 22px #1e123222;transition:max-width .36s cubic-bezier(.2,.7,.2,1),border-radius .36s}
.editor-preview[data-device="mobile"] iframe{max-width:310px;border-radius:19px}
.editor-preview .preview-empty{padding:35px 18px;text-align:center;color:#85758b;font-size:12px}
.bottom{position:fixed;bottom:0;left:0;right:0;z-index:20;padding:12px clamp(16px,2.5vw,48px) calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e7dff2;background:rgba(255,255,255,.95);backdrop-filter:blur(24px);box-shadow:0 -12px 35px #35225712}
.bottom-inner{display:flex;max-width:none;margin:0;justify-content:flex-end;gap:12px;align-items:center}
.bottom-inner .btn{flex:0 0 auto;min-height:48px;min-width:180px!important;padding:12px 21px;border-radius:12px}
.bottom-inner #saveBtn{min-width:240px!important}
.bottom-inner #saveBtn[data-dirty="true"]{box-shadow:0 0 0 4px #9066df18,0 12px 26px #7854cd38}
.editor-save-state{display:inline-flex;align-items:center;gap:8px;margin-right:auto;padding:9px 12px;color:#78668b;font-size:12px;font-weight:800;white-space:nowrap}
.editor-save-state:before{content:"";width:8px;height:8px;border-radius:50%;background:#70be99}
.editor-save-state[data-state="dirty"]:before{background:#e7ac5e;box-shadow:0 0 0 4px #f9e8cd}
.editor-save-state[data-state="saving"]:before{background:#7c55cd;animation:studio-pulse 1s infinite}
.editor-save-state[data-state="error"]:before{background:#ef6a87}
.mobile-section-nav{display:none}
.mobile-toast{transition:opacity .2s,transform .2s}
@media(min-width:1450px){
 .editor-view .editor-grid{grid-template-columns:226px minmax(530px,1fr) minmax(290px,25vw);gap:20px}
 .editor-preview{display:block}
}
@media(min-width:1650px){
 .editor-view .editor-grid{grid-template-columns:238px minmax(580px,1fr) minmax(320px,24vw);gap:24px}
}
@media(min-width:740px) and (max-width:1449px){
 .editor-view .editor-grid{grid-template-columns:220px minmax(0,1fr)}
 .editor-view #section{max-width:none}
}
@media(max-width:920px){
 .top{gap:10px;padding:13px 16px}
 .top-actions{gap:7px}
 .editor-view .editor-grid{grid-template-columns:minmax(0,1fr)}
 .editor-view .tabs{display:flex;flex-wrap:nowrap;position:relative;top:auto;max-height:none;overflow-x:auto;overflow-y:hidden;gap:6px}
 .editor-view .tab{flex:0 0 auto;width:auto;white-space:nowrap}
 .editor-view #section{min-height:0}
 .editor-preview{display:none}
}
@media(max-width:739px){
 html{scroll-padding-top:118px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{overflow-x:clip}
 .shell{padding:12px 12px calc(168px + env(safe-area-inset-bottom))}
 .top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:12px 13px;margin-bottom:22px;border-radius:16px}
 .top .logo{grid-column:1;grid-row:1;font-size:22px}
 .top-actions{display:contents}
 .top .top-link{grid-column:2;grid-row:1;padding:8px 10px;min-height:40px;font-size:11px}
 .top #logout{grid-column:3;grid-row:1;padding:8px 10px!important;min-height:40px!important;font-size:12px}
 .top #accountBadge{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%;font-size:11px;min-width:0}
 .top .install-app-btn{grid-column:1/-1;grid-row:3;justify-self:start;min-height:35px;padding:6px 10px}
 .access-layout{padding:0;display:block}
 #adminIntro{display:none}
 .access-card{padding:23px 19px;max-width:none}
 .access-card .heading{font-size:clamp(28px,8vw,38px)}
 .setup-view{margin:12px 0;max-width:none}
 .setup-view .card{padding:23px 17px}
 .editor-view .heading{font-size:clamp(29px,8.6vw,41px);margin:9px 0 7px;line-height:1.08}
 .editor-view>.eyebrow{font-size:10px;letter-spacing:.12em}
 .editor-view .top-creator-row{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:start!important;margin-bottom:12px!important}
 .editor-view .top-creator-row>div{min-width:0}
 .editor-view #publicationStatus{justify-self:start;font-size:10px;padding:7px 10px}
 .editor-view #editorUrl{font-size:11px;overflow-wrap:anywhere}
 .editor-summary{display:none}
 .editor-view .editor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .editor-view .tabs{display:none!important}
 .mobile-section-nav{display:block;position:sticky;top:8px;z-index:18;min-width:0;margin:0 -2px 1px;padding:9px 0 10px;border:1px solid #e4dced;border-radius:17px;background:rgba(255,255,255,.97);box-shadow:0 10px 26px #32205018;backdrop-filter:blur(22px);overflow:hidden}
 .mobile-section-nav>label,.mobile-section-nav>select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
 .mobile-nav-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 13px 9px;color:#87769a;font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
 .mobile-nav-track{display:flex;align-items:stretch;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding:1px 12px 4px}
 .mobile-nav-track::-webkit-scrollbar{display:none}
 .mobile-nav-button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:0 0 auto;min-width:78px;min-height:65px;padding:9px 11px;border:1px solid transparent;border-radius:12px;background:#f7f4fb;color:#725e88;font-size:10px;line-height:1.15;font-weight:850;white-space:nowrap;scroll-snap-align:center;transition:transform .2s,background .2s,color .2s}
 .mobile-nav-button i{font-size:20px;line-height:1}
 .mobile-nav-button[aria-current="page"]{background:linear-gradient(135deg,#5f37c8,#9365ea);color:white;box-shadow:0 6px 14px #673bc42b}
 .mobile-nav-button:active{transform:scale(.96)}
 .editor-view .editor-grid>.editor-workspace{min-width:0}
 .editor-view #section{padding:21px 17px!important;margin:0;border-radius:19px;min-height:0;scroll-margin-top:105px}
 .editor-view #section h2{font-size:clamp(24px,6vw,29px);margin-bottom:21px}
 .editor-view #section .field{margin-bottom:17px}
 .editor-view #section .field label{font-size:13px}
 .editor-view #section input:not([type=file]),.editor-view #section textarea,.editor-view #section select{font-size:16px!important;min-height:50px;padding:12px 13px}
 .editor-view #section textarea{min-height:112px}
 .editor-view #section .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .editor-view .theme-card{padding:7px}
 .editor-view .swatch{height:99px}
 .editor-view .list-item{padding:15px 13px}
 .editor-view .list-item .btn.danger{width:100%}
 .editor-view #editorMsg{font-size:12px;padding:12px 14px;margin-top:11px}
 .media-preview{gap:9px}
 .media-preview img{width:56px;height:56px}
 .bottom{padding:9px max(12px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .bottom-inner{gap:8px;display:grid;grid-template-columns:34% minmax(0,1fr)}
 .bottom-inner .editor-save-state{grid-column:1/-1;padding:0 4px 3px;font-size:10px;margin-right:0}
 .bottom-inner .btn{width:100%;min-width:0!important;min-height:50px;height:50px;padding:11px 8px;border-radius:12px;font-size:12px;white-space:normal}
 .bottom-inner #previewBtn{grid-column:1;min-width:0!important}
 .bottom-inner #saveBtn{grid-column:2;min-width:0!important}
 .mobile-toast.visible{bottom:calc(111px + env(safe-area-inset-bottom));left:12px;right:12px}
 body.studio-keyboard-open .bottom{transform:translateY(calc(100% + 12px));transition:transform .22s}
}
@media(max-width:365px){
 .top .logo{font-size:19px}
 .top .top-link{padding:7px;font-size:10px}
 .top #logout{font-size:11px;padding:7px!important}
 .mobile-nav-button{min-width:73px;padding-inline:8px}
 .bottom-inner .btn{font-size:11px}
}
@media(prefers-reduced-motion:no-preference){
 .editor-view .tab .tab-icon,.top .logo{transition:transform .24s}
 .editor-view .tab:hover .tab-icon{transform:scale(1.12) rotate(-5deg)}
}
@keyframes studio-fade-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes studio-slide-down{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@keyframes studio-pulse{50%{box-shadow:0 0 0 6px #8a60d520}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.top,.editor-view,.editor-view #section{animation:none!important}.editor-view *,#editorArea *,#editorArea *:before,#editorArea *:after{transition:none!important;animation:none!important}}
