/* CLENA Sites: compact, accessible subscription dashboard and full-height editor shell. */
.swatch.noir{background:linear-gradient(130deg,#111114,#68666d)}
.swatch.oceano{background:linear-gradient(130deg,#0a2e50,#3dbde1)}
.swatch.sage{background:linear-gradient(130deg,#314a37,#a2c6a0)}

html,body{min-height:100%}
.shell{padding:0 clamp(14px,1.8vw,30px) 116px!important}
.top{position:sticky!important;top:0;z-index:45!important;margin:0 -2px 17px!important;padding:11px clamp(14px,1.6vw,25px)!important;border-radius:0 0 16px 16px!important;border-top:0;box-shadow:0 8px 22px #27133e0d}
.top .logo{font-size:22px!important}
.top .top-link{display:none!important}
.top-actions .pill{max-width:220px}
.editor-view{min-height:calc(100dvh - 125px);max-width:none}
.editor-view>.eyebrow{display:none}
.editor-view .heading{font-size:clamp(28px,2.6vw,40px)!important;margin:2px 0 5px!important;letter-spacing:-.05em}
.editor-view .top-creator-row{margin-bottom:11px!important;align-items:center!important}
.editor-view #editorUrl{display:none!important}
.editor-summary{display:none!important}
.editor-view .editor-grid{gap:15px!important}
.editor-view .tabs{top:75px!important;max-height:calc(100dvh - 170px)!important;overflow-y:auto!important;scrollbar-width:none!important;padding:9px!important;border-radius:16px!important}
.editor-view .tabs::-webkit-scrollbar{display:none!important}
.editor-view .tab{min-height:44px!important;padding:10px 12px!important;font-size:12px!important;border-radius:10px!important}
.editor-view .tab .tab-icon{font-size:17px!important}
.editor-view #section{min-height:calc(100dvh - 195px)!important;padding:clamp(18px,2vw,32px)!important;border-radius:17px!important}
.editor-view #section h2{font-size:clamp(24px,2vw,31px)!important;margin:0 0 16px!important}
.editor-view #section .field{margin-bottom:13px!important;gap:6px!important}
.editor-view #section .field input:not([type=file]),.editor-view #section .field select{min-height:44px!important;padding:10px 13px!important;font-size:14px!important;border-radius:10px!important}
.editor-view #section .field textarea{min-height:100px!important;padding:10px 13px!important;font-size:14px!important;border-radius:10px!important}
.editor-view #section .field label{font-size:11px!important}
.editor-view #section .field .btn{min-height:38px;font-size:12px}
.editor-view .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.editor-view .swatch{height:105px!important}
.editor-view .theme-card{padding:7px!important}
.editor-view .theme-card small{font-size:10px}
.editor-view .list-item{padding:15px!important}
.bottom{padding:9px clamp(14px,1.8vw,30px) calc(9px + env(safe-area-inset-bottom))!important}
.bottom-inner .btn{min-height:42px!important;padding:8px 15px!important;font-size:12px!important;min-width:140px!important;border-radius:10px!important}
.bottom-inner #saveBtn{min-width:176px!important}
.editor-preview{top:75px!important;height:calc(100dvh - 168px)!important;min-height:490px;max-height:840px;border-radius:21px!important}
.editor-preview .preview-head{height:55px;padding:10px 15px;justify-content:center!important}
.editor-preview .preview-head .preview-title{text-align:center;align-items:center}
.editor-preview .preview-head .preview-title strong{font-size:12px}
.editor-preview .preview-head .preview-title small{font-size:10px}
.editor-preview .preview-tools{display:none!important}
.editor-preview .preview-stage{height:calc(100% - 55px)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important;overflow:hidden!important;background:#ede9f3!important}
.editor-preview .phone-shell{position:relative;display:flex;flex-direction:column;width:min(100%,300px);height:min(100%,650px);margin:auto;border:7px solid #201e26;border-radius:38px;background:#201e26;box-shadow:0 15px 36px #0f0b2433,0 0 0 1px #87838e;overflow:hidden}
.editor-preview .phone-shell:before{content:"";position:absolute;z-index:3;left:50%;top:5px;transform:translateX(-50%);width:79px;height:19px;border-radius:14px;background:#201e26;pointer-events:none}
.editor-preview .phone-screen{position:relative;min-height:0;flex:1;border-radius:30px;overflow:hidden;background:#140d22}
.editor-preview iframe{display:block!important;width:100%!important;max-width:none!important;height:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#140d22}
.editor-preview .phone-home{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:4;width:86px;height:4px;background:#fff9;border-radius:12px;pointer-events:none}
.editor-preview[data-device=mobile] iframe{max-width:none}
.editor-view .editor-grid{grid-template-columns:205px minmax(430px,1fr) minmax(265px,21vw)}
.photo-field>label:first-child{font-weight:850!important}
.photo-picker{display:flex;align-items:center;gap:15px;padding:13px;border:1px solid #e7dff2;border-radius:16px;background:#faf8fd}
.photo-thumb{position:relative;display:grid;place-items:center;flex:0 0 112px;width:112px;height:96px;overflow:hidden;border:1px solid #e8dff2;border-radius:12px;background:linear-gradient(130deg,#ece2fb,#f7f1fc)}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.photo-thumb.is-empty img{display:none}
.photo-thumb.is-empty:after{content:"✦";font-size:30px;color:#aa83e9}
.photo-picker-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.photo-picker-actions p{font-size:11px!important;line-height:1.5!important;color:#80728c;max-width:360px}
.photo-picker-actions .btn{min-height:38px;font-size:12px;padding:8px 12px}
.photo-remove{min-height:30px;padding:5px 8px;border:0;background:transparent;color:#9c5d70;font-size:11px;cursor:pointer}
.photo-picker input[data-field]{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.photo-field>.media-preview{display:none!important}
.mobile-section-nav{z-index:35!important}
.billing-locked .editor-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:min(100%,1000px);margin:0 auto}
.billing-locked .tabs,.billing-locked .mobile-section-nav,.billing-locked .editor-preview,.billing-locked .bottom,.billing-locked .editor-summary{display:none!important}
.billing-locked #section{min-height:0!important}
.billing-locked .top-creator-row{max-width:1000px;margin-left:auto!important;margin-right:auto!important}
.billing-locked .shell{padding-bottom:30px!important}
.sites-billing{width:100%;max-width:100%;color:#2e2544}
.billing-heading{margin-bottom:23px}
.billing-heading h2{font:850 clamp(25px,3vw,36px)/1.15 Outfit,system-ui;letter-spacing:-.05em;margin:6px 0 9px}
.billing-heading p,.billing-muted{margin:0;color:#81778c;font-size:12px;line-height:1.65}
.billing-kicker{font-size:10px;letter-spacing:.12em;font-weight:850;text-transform:uppercase;color:#8656d1}
.billing-summary{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:17px 20px;border:1px solid #e8def4;border-radius:16px;background:linear-gradient(115deg,#fbf9ff,#f2eafa)}
.billing-summary h3{margin:4px 0 6px;font:800 clamp(17px,2vw,23px)/1.2 Outfit,system-ui;letter-spacing:-.035em}
.billing-summary p{font-size:11px;margin:0;color:#80728c}
.billing-status{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:7px 12px;font-size:10px;font-weight:850;white-space:nowrap}
.billing-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.billing-status.active{background:#e5f8ed;color:#237852}
.billing-status.warning{background:#fff0d9;color:#986016}
.billing-status.blocked{background:#fce9ee;color:#a43256}
.billing-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 22px}
.billing-stats>div{min-width:0;padding:13px 15px;background:#fff;border:1px solid #eae4f2;border-radius:13px}
.billing-stats small{display:block;font-size:10px;color:#897d99;margin-bottom:6px}
.billing-stats strong{display:block;font-size:13px;color:#312448;overflow-wrap:anywhere}
.billing-section-title{margin:23px 0 13px}
.billing-section-title h3{font:800 19px Outfit,system-ui;letter-spacing:-.04em;margin:0 0 3px}
.billing-section-title p{font-size:11px;color:#857791;margin:0}
.billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.billing-plan{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:18px 16px;border:1px solid #e7dff1;border-radius:16px;background:#fff;color:#30243f;text-align:left;cursor:pointer;transition:border .2s,transform .2s,box-shadow .2s}
.billing-plan:hover{transform:translateY(-3px);border-color:#a882e3;box-shadow:0 12px 28px #58389a16}
.billing-plan.selected{border:2px solid #8559d7;padding:17px 15px;background:#fcfaff}
.billing-plan-head{display:flex;align-items:center;justify-content:space-between;gap:7px}
.billing-plan-head strong{font-size:14px;font-weight:850}
.billing-discount{padding:4px 8px;border-radius:99px;background:#f2e8ff;color:#7046bf;font-size:10px;font-weight:850;white-space:nowrap}
.billing-plan>small{font-size:10px;color:#857893}
.billing-price{font:850 clamp(20px,2.4vw,29px)/1 Outfit,system-ui;letter-spacing:-.055em;margin-top:7px;white-space:nowrap}
.billing-was{font-size:10px;color:#91879f;min-height:15px}
.billing-plan-cta{margin-top:auto;display:block;padding:10px 8px;background:#5e39c4;border-radius:9px;color:#fff;font-size:11px;font-weight:850;text-align:center}
.billing-plan.selected .billing-plan-cta{background:linear-gradient(100deg,#5d39c4,#9564e8)}
.billing-wait{padding:15px 18px;margin-top:16px;border:1px solid #eadff6;border-radius:14px;background:#faf8ff}
.billing-wait strong{font-size:13px}
.billing-wait p{margin:6px 0 10px;font-size:12px;color:#766489}
.billing-copy{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border:0;border-radius:10px;background:#6440cd;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.billing-pix{margin-top:17px;padding:19px;border:1px solid #e4d7f4;border-radius:17px;background:#f9f6fe}
.billing-pix-intro{display:flex;flex-direction:column;gap:3px}
.billing-pix-intro strong{font-size:14px}
.billing-pix-intro small{font-size:11px;color:#847894}
.billing-pix-body{display:flex;align-items:center;gap:22px;margin-top:15px}
.billing-qr{width:180px;height:180px;flex:0 0 180px;display:grid;place-items:center;border:1px solid #e7dbf4;border-radius:13px;background:#fff;padding:10px}
.billing-qr img{display:block;width:100%;height:100%;object-fit:contain}
.billing-pix-info{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.billing-pix-info>span{font-size:11px;color:#80768e}
.billing-pix-info>strong{font:850 29px Outfit,system-ui}
.billing-pix-info p{margin:0;font-size:12px;line-height:1.6;color:#655879}
.billing-pix-info small{font-size:10px;color:#8f849b}
.billing-history{margin-top:22px;border:1px solid #e7dfef;border-radius:16px;background:#fff;overflow:hidden}
.billing-history-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid #efe9f4}
.billing-history-title h3{font:800 17px Outfit,system-ui;margin:0}
.billing-refresh{border:1px solid #eee5f6;background:#faf7ff;color:#7349be;border-radius:10px;padding:8px 12px;font-size:11px;font-weight:750;cursor:pointer}
.billing-table-wrap{overflow-x:auto;scrollbar-width:thin}
.billing-table{width:100%;min-width:470px;border-collapse:collapse;text-align:left}
.billing-table th{padding:11px 14px;font-size:10px;font-weight:800;color:#8c809b;background:#faf8fd}
.billing-table td{padding:12px 14px;font-size:12px;color:#544666;border-top:1px solid #f1ebf6}
.billing-invoice-badge{display:inline-flex;border-radius:99px;padding:5px 9px;background:#f4eff9;font-size:10px;font-weight:850}
.billing-invoice-badge.paid{color:#268355;background:#e7f7ed}
.billing-invoice-badge.pending{color:#9b711b;background:#fff2df}
.billing-invoice-badge.cancelled,.billing-invoice-badge.expired{color:#94616c;background:#faeff2}
.sites-billing-notice:not(:empty){margin-top:13px;padding:12px 15px;border-radius:11px;border:1px solid #dcd0ef;background:#f4effe;color:#64439b;font-size:12px}
.sites-billing-notice.is-error:not(:empty){border-color:#f4d7dd;background:#fff4f5;color:#a83a53}
@media(min-width:1160px) and (max-width:1449px){
 .editor-view .editor-grid{grid-template-columns:190px minmax(430px,1fr) minmax(265px,295px)!important}
 .editor-preview{display:block!important}
}
@media(min-width:1450px){
 .editor-view .editor-grid{grid-template-columns:205px minmax(480px,1fr) minmax(285px,310px)!important}
 .editor-preview{display:block!important}
}
@media(min-width:1700px){
 .editor-view .editor-grid{grid-template-columns:215px minmax(550px,1fr) minmax(300px,330px)!important}
}
@media(min-width:740px) and (max-width:1159px){
 .editor-view .editor-grid{grid-template-columns:190px minmax(0,1fr)!important}
 .editor-view .tabs{display:grid!important}
 .editor-preview{display:none!important}
}
@media(max-width:739px){
 .shell{padding:0 10px calc(137px + env(safe-area-inset-bottom))!important}
 .top{position:sticky!important;top:0;margin:0 -10px 13px!important;padding:9px 12px!important;border-radius:0 0 15px 15px!important}
 .top .logo{font-size:20px!important}
 .top #accountBadge{display:none!important}
 .top-actions .install-app-btn{grid-row:2}
 .editor-view .top-creator-row{margin-bottom:11px!important}
 .editor-view .heading{font-size:26px!important;margin:2px 0 5px!important}
 .editor-view .editor-grid{grid-template-columns:1fr!important;gap:9px!important}
 .editor-view #section{min-height:0!important;padding:16px 14px!important;border-radius:15px!important}
 .editor-view #section h2{font-size:23px!important}
 .editor-view #section .field input:not([type=file]),.editor-view #section .field textarea,.editor-view #section .field select{font-size:16px!important}
 .mobile-section-nav{top:67px!important;margin:0 0 2px!important;padding:6px 0!important;border-radius:13px!important}
 .mobile-nav-caption{display:none!important}
 .mobile-nav-track{padding:0 8px 2px!important;gap:5px!important}
 .mobile-nav-button{min-width:63px!important;min-height:53px!important;padding:7px 9px!important;border-radius:10px!important;font-size:9px!important}
 .mobile-nav-button i{font-size:18px!important}
 .editor-view .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .editor-view .swatch{height:92px!important}
 .photo-picker{gap:10px;padding:10px}
 .photo-thumb{width:87px;height:85px;flex:0 0 87px}
 .photo-picker-actions .btn{padding:7px 9px!important;min-height:37px!important}
 .photo-picker-actions p{font-size:10px!important}
 .bottom{padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important}
 .bottom-inner .btn{min-height:45px!important;height:45px!important;font-size:11px!important;padding:9px 7px!important;min-width:0!important}
 .bottom-inner #saveBtn{min-width:0!important}
 .editor-save-state{font-size:9px!important}
 .billing-locked .editor-grid{grid-template-columns:minmax(0,1fr)!important}
 .billing-locked #section{padding:17px 12px!important}
 .billing-summary{padding:14px}
 .billing-summary h3{font-size:19px}
 .billing-stats{grid-template-columns:1fr 1fr}
 .billing-stats>div:last-child{grid-column:1/-1}
 .billing-plans{grid-template-columns:1fr;gap:10px}
 .billing-plan{padding:14px!important}
 .billing-plan.selected{padding:13px!important}
 .billing-price{font-size:25px}
 .billing-plan-head strong{font-size:14px}
 .billing-pix{padding:13px}
 .billing-pix-body{flex-direction:column;gap:12px}
 .billing-pix-info{align-items:center;text-align:center}
 .billing-qr{width:210px;height:210px;flex:0 0 210px}
}
@media(prefers-reduced-motion:reduce){
 .billing-plan,.editor-view .tab{transition:none!important}
}

/* Standalone in-editor phone preview, no navigation away from the workspace. */
.preview-close{display:none;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #e8e0f3;border-radius:10px;background:#f8f4fd;color:#50358d;font-size:16px;font-weight:800;cursor:pointer}
body.studio-preview-open{overflow:hidden!important}
body.studio-preview-open .editor-preview{
 display:flex!important;flex-direction:column!important;position:fixed!important;
 inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
 z-index:100!important;width:100%!important;height:100dvh!important;min-height:0!important;
 max-height:none!important;border-radius:0!important;background:#f4f1f9!important
}
body.studio-preview-open .editor-preview .preview-head{
 display:flex!important;justify-content:space-between!important;flex:0 0 58px!important;
 width:100%;height:58px!important;padding:8px max(15px,env(safe-area-inset-right))!important
}
body.studio-preview-open .editor-preview .preview-stage{
 height:auto!important;flex:1!important;min-height:0!important;padding:15px!important
}
body.studio-preview-open .editor-preview .phone-shell{
 width:min(calc(100% - 20px),340px)!important;
 height:min(calc(100% - 10px),730px)!important;flex:0 1 auto!important
}
body.studio-preview-open .editor-preview .preview-close{display:flex!important}
@media(min-width:740px) and (max-width:1159px){
 .editor-view .tabs{display:grid!important;position:sticky!important;top:75px!important;
   max-height:calc(100dvh - 170px)!important;overflow-y:auto!important;
   overflow-x:hidden!important;grid-auto-flow:row!important;align-content:start!important;
   scrollbar-width:none!important}
}
@media(max-width:739px){
 .editor-view #section{scroll-margin-top:143px!important}
 body.studio-preview-open .editor-preview .phone-shell{width:min(calc(100% - 20px),340px)!important}
}

/* Clear image quota and private administration link. */
.sites-management-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:38px;padding:9px 12px;border:1px solid #e1d7f2;border-radius:11px;background:#f8f5fd;color:#6a44af;font-size:11px;font-weight:850;text-decoration:none}
.sites-management-link:hover{background:#eee5fc}
.site-image-quota{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;margin:3px 0 20px;padding:13px 17px;border:1px solid #e6dcec;border-radius:13px;background:linear-gradient(120deg,#fcfaff,#f5efff)}
.site-image-quota strong{display:block;font-size:12px;color:#36254f}
.site-image-quota small{display:block;margin-top:4px;font-size:10px;color:#837493;line-height:1.5}
.site-image-counter{display:inline-flex;justify-content:center;align-items:center;padding:8px 12px;min-width:72px;border-radius:99px;background:#e7def8;color:#5c38a4;font-size:13px;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.site-image-counter.is-full{background:#fff0e9;color:#af5831}
.billing-lifetime{margin:20px 0 23px;padding:18px 19px;border:1px solid #cce9d7;border-radius:15px;background:linear-gradient(120deg,#ecf9f1,#fbfffc)}
.billing-lifetime strong{display:block;color:#286b48;font-size:14px;font-weight:850}
.billing-lifetime p{color:#5f816c;font-size:12px;line-height:1.7;margin:7px 0 0}
@media(max-width:739px){
 .top .sites-management-link{grid-column:1/-1;grid-row:auto;justify-self:start;padding:6px 10px;min-height:34px}
 .site-image-quota{padding:12px;gap:9px}
 .site-image-quota strong{font-size:11px}
 .site-image-counter{font-size:12px}
}

/* Extended premium themes: the editor cards represent their real palettes. */
.swatch.prisma{background:radial-gradient(circle at 75% 20%,#577bc9,transparent 45%),linear-gradient(135deg,#111a3d,#2e3674)!important}
.swatch.terracota{background:radial-gradient(circle at 78% 20%,#e7ab7f,transparent 48%),linear-gradient(135deg,#714037,#b77a5a)!important}
.swatch.sereno{background:radial-gradient(circle at 77% 22%,#96c0bf,transparent 47%),linear-gradient(135deg,#173d49,#426a74)!important}

/* Site subscription Pix: readable, self-contained payment panel. */
.sites-billing .billing-pix{padding:clamp(18px,2.2vw,30px);margin-top:23px;border:1px solid #d9c8ed;border-radius:22px;background:linear-gradient(135deg,#fff,#f6f0ff);box-shadow:0 12px 32px #351b690c}
.sites-billing .billing-pix-intro strong{font:850 clamp(18px,2vw,24px)/1.2 Outfit,system-ui;color:#2e1c48}
.sites-billing .billing-pix-intro small{font-size:12px;color:#796c8d}
.sites-billing .billing-pix-body{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);align-items:center;gap:clamp(18px,3vw,38px)}
.sites-billing .billing-qr{width:100%;height:auto;aspect-ratio:1;min-width:0;padding:14px;border:1px solid #e2d6ec;background:#fff;border-radius:18px;box-shadow:0 8px 24px #24144810}
.sites-billing .billing-qr img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
.sites-billing .billing-qr-help{max-width:170px;font-size:12px;line-height:1.5;text-align:center;color:#7a698c}
.sites-billing .billing-pix-info{width:100%;min-width:0;align-items:stretch;gap:9px}
.sites-billing .billing-pix-info>strong{font:850 clamp(26px,3vw,37px)/1.1 Outfit,system-ui;color:#2e1c48}
.sites-billing .billing-pix-info p{max-width:530px;font-size:12px;line-height:1.65}
.sites-billing .billing-pix-code-label{font-size:11px;font-weight:850;color:#564072;margin-top:8px}
.sites-billing .billing-pix-code{display:block;width:100%;max-width:100%;min-width:0;min-height:75px;resize:vertical;border:1px solid #ded0e8;border-radius:12px;background:#fff;padding:11px 13px;color:#443453;font:500 11px/1.5 ui-monospace,monospace;overflow-wrap:anywhere;word-break:break-all}
.sites-billing #billingCopy{min-height:45px;align-self:flex-start;padding:10px 18px;font-weight:850;border-radius:11px}
@media(max-width:760px){.sites-billing .billing-pix-body{grid-template-columns:minmax(0,1fr);justify-items:center;gap:20px}.sites-billing .billing-qr{max-width:270px}.sites-billing .billing-pix-info{width:100%}.sites-billing #billingCopy{width:100%;align-self:stretch}}

/* Confirmation appears directly on the Pix button for a short, reversible interval. */
.sites-billing #billingCopy{display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .18s,border-color .18s,color .18s}
.sites-billing #billingCopy i{font-size:17px}
.sites-billing #billingCopy.is-copied{background:#e8f6ee!important;border-color:#b7e2c8!important;color:#216c48!important}
@media(prefers-reduced-motion:reduce){.sites-billing #billingCopy{transition:none}}
