#componentsWindow .window-content { padding: 0 !important; }
.dc-button.style-6{color:#fff!important;background:#5865f2}
.dc-select{width:100%;min-height:38px;padding:0 10px;color:#b5bac1;border:1px solid #1e1f22;border-radius:4px;background:#1e1f22}.dc-file{margin:7px 0;padding:10px;display:flex;gap:8px;border-radius:4px;background:#232428;color:#b5bac1}.dc-file span{color:#00a8fc}
.cb-delivery{margin-bottom:16px;padding:11px;border:1px solid rgba(var(--theme-rgb), .15);border-radius:11px;background:rgba(var(--theme-rgb), .045)}.cb-delivery:before{content:"PUBLICAÇÃO";display:block;margin-bottom:8px;color:var(--theme-accent,#55e6c1);font-size:8px;font-weight:900;letter-spacing:.12em}.cb-delivery label{display:grid;gap:5px;margin:8px 0;color:#82969b;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.cb-delivery select{width:100%;min-height:35px;padding:0 8px;color:#dce8e5;border:1px solid rgba(var(--theme-rgb), .16);border-radius:8px;background:#0c181d}
.cb-message-import{display:flex;flex-direction:column;gap:7px;margin-bottom:11px;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.06)}.cb-message-import label{width:100%;margin:0!important}.cb-message-import input{width:100%;min-width:0;box-sizing:border-box}.cb-message-import>[data-load-message]{width:100%;min-height:34px;padding:0 10px;flex:none}.cb-message-import>small{display:block;min-height:0;color:#6f858a;font-size:8px;line-height:1.4}.cb-message-import .cb-update-message{width:100%;min-height:36px;flex:none;color:#071e18;background:var(--theme-accent,#55e6c1);font-weight:850}.cb-message-import .cb-update-message[hidden]{display:none}
.cb-member-picker input{width:100%;min-height:35px;padding:0 9px;box-sizing:border-box;color:#dce8e5;border:1px solid rgba(var(--theme-rgb), .16);border-radius:8px;background:#0c181d}.cb-member-picker [data-user-results]{display:grid;gap:4px;max-height:210px;overflow-y:auto}.cb-member-picker [data-user-results]>button{min-height:38px;padding:5px 7px;display:flex;align-items:center;gap:8px;text-align:left}.cb-member-picker img,.cb-selected-user img{width:27px;height:27px;border-radius:50%;object-fit:cover}.cb-selected-user{padding:7px;display:flex;align-items:center;gap:8px;border-radius:8px;background:rgba(var(--theme-rgb), .07)}.cb-selected-user b,.cb-selected-user small{display:block}.cb-selected-user small{color:#71858b;font-size:8px}
.cb-add-grid button[draggable="true"]{cursor:grab}.cb-node[draggable="true"]>.cb-node-main{cursor:grab}.cb-node.dragging{opacity:.35}.cb-node.drop-target{border-color:var(--theme-accent,#55e6c1)!important;background:rgba(var(--theme-rgb), .12)!important;box-shadow:inset 0 0 0 2px rgba(var(--theme-rgb), .13)}.cb-node.drop-target:after{content:"SOLTE DENTRO";display:block;padding:6px;color:var(--theme-accent,#55e6c1);border-top:1px dashed rgba(var(--theme-rgb), .3);font-size:8px;font-weight:900;text-align:center;letter-spacing:.1em}.cb-tree.root-drop-target{outline:2px dashed rgba(var(--theme-rgb), .55);outline-offset:-7px;background:rgba(var(--theme-rgb), .035)}
.cb-recent-section{margin-top:17px;padding-top:14px;border-top:1px solid rgba(255,255,255,.06)}.cb-recent-section>header{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.cb-recent-section>header b{font-size:10px;text-transform:uppercase;letter-spacing:.09em}.cb-recent-section>header small{font-size:8px}.cb-recents{max-height:224px;display:grid;gap:5px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}.cb-recent{position:relative;min-height:51px;border:1px solid rgba(255,255,255,.055);border-radius:9px;background:#132128;overflow:hidden}.cb-recent.active{border-color:rgba(var(--theme-rgb), .4);background:rgba(var(--theme-rgb), .08)}.cb-recent>button:first-child{width:100%;min-height:51px;padding:6px 30px 6px 7px;display:flex;align-items:center;gap:8px;border:0;background:transparent;text-align:left}.cb-recent>button:first-child i{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:7px;background:rgba(var(--theme-rgb), .09);font-style:normal}.cb-recent>button:first-child span{min-width:0}.cb-recent b,.cb-recent small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cb-recent b{font-size:9px}.cb-recent small{margin-top:3px;color:#6e8187;font-size:7px}.cb-recent-delete{position:absolute;right:6px;top:50%;width:25px;height:25px;padding:0;opacity:0;transform:translateY(-50%) scale(.85);color:#ff8c94!important;border-color:rgba(255,90,105,.2)!important;background:#29191d!important;transition:.16s}.cb-recent:hover .cb-recent-delete,.cb-recent:focus-within .cb-recent-delete{opacity:1;transform:translateY(-50%) scale(1)}.cb-recent-empty{padding:20px 8px;color:#61757b;font-size:9px;text-align:center;border:1px dashed rgba(255,255,255,.07);border-radius:9px}
.cb-media-editor{display:grid;gap:8px}.cb-media-editor>section{position:relative;padding:9px;border:1px solid rgba(var(--theme-rgb), .12);border-radius:9px;background:#0e1a20}.cb-media-editor>section>b{color:#9bb0ab;font-size:9px}.cb-media-editor>section>button{position:absolute;right:7px;top:7px;width:23px;height:23px;padding:0;color:#ff9299}.dc-thumbnail{width:82px;height:82px;flex:0 0 82px;display:block;object-fit:cover;border-radius:5px}
.cb-app { height: 100%; min-height: 0; display: grid; grid-template-columns: 210px minmax(0,1fr) 250px; color:#dce7e5; background:#0d171c; overflow:hidden; font:12px Inter,system-ui,sans-serif; }
.cb-app button,.cb-app input,.cb-app textarea,.cb-app select { font:inherit; }
.cb-app button { color:#aec0bc; border:1px solid rgba(var(--theme-rgb), .13); background:#142229; border-radius:9px; cursor:pointer; }
.cb-app button:hover { color:#effffb; border-color:rgba(var(--theme-rgb), .34); background:#1a3035; }
.cb-app button.primary { color:#072019; background:var(--theme-accent,#55e6c1); font-weight:850; }
.cb-palette,.cb-inspector { min-height:0; padding:16px; overflow-y:auto; background:#101c22; }
.cb-palette { border-right:1px solid rgba(var(--theme-rgb), .12); }.cb-inspector{border-left:1px solid rgba(var(--theme-rgb), .12)}
.cb-palette>header,.cb-inspector>header { display:flex; flex-direction:column; gap:3px; margin-bottom:16px; }.cb-app header b{font-size:14px}.cb-app header small{color:#71858b;font-size:10px}
.cb-add-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.cb-add-grid button{min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.cb-add-grid i{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;color:var(--theme-accent,#55e6c1);background:rgba(var(--theme-rgb), .09);font-style:normal}.cb-add-grid span{font-size:10px;font-weight:750}
.cb-tools{display:grid;gap:7px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.06)}.cb-tools button{min-height:36px;text-align:left;padding:0 11px}
.cb-workspace{min-width:0;min-height:0;display:flex;flex-direction:column}.cb-toolbar{min-height:54px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(var(--theme-rgb), .1);background:#111f25}.cb-toolbar>div{display:flex;align-items:center;gap:7px}.cb-toolbar span{color:#698087;font-size:9px}.cb-toolbar button{min-height:32px;padding:0 10px;font-size:10px}
.cb-canvas{min-height:0;flex:1;display:grid;grid-template-columns:minmax(250px,.8fr) minmax(320px,1.2fr);overflow:hidden}.cb-tree{padding:12px;overflow-y:auto;border-right:1px solid rgba(var(--theme-rgb), .1)}
.cb-node{margin-bottom:6px;border:1px solid rgba(255,255,255,.055);border-radius:10px;background:#132128;overflow:hidden}.cb-node.selected{border-color:rgba(var(--theme-rgb), .48);background:#162b30}.cb-node-main{width:calc(100% - 116px);min-height:49px;padding:7px!important;display:flex;align-items:center;gap:9px;border:0!important;background:transparent!important;text-align:left}.cb-node-main i{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:7px;background:rgba(var(--theme-rgb), .09);font-style:normal}.cb-node-main span{min-width:0}.cb-node-main b,.cb-node-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cb-node-main small{max-width:180px;margin-top:3px;color:#6f848b;font-size:8px}.cb-node-actions{float:right;margin-top:-43px;margin-right:6px;display:flex;gap:3px}.cb-node-actions button{width:24px;height:27px;padding:0}.cb-children{margin:0 7px 7px 22px;padding-left:8px;border-left:1px solid rgba(var(--theme-rgb), .14)}.cb-children .cb-node{background:#101d23}
.cb-preview-wrap{min-width:0;min-height:0;padding:15px;overflow-y:auto;background:#0b1419}.cb-preview-wrap>header{display:flex;justify-content:space-between;margin-bottom:10px;color:#637980;font-size:8px;font-weight:850;letter-spacing:.12em}.cb-preview-wrap>header i{color:#8b9da3;font-style:normal}.cb-preview{width:min(100%,620px);margin:auto;padding:15px;border-radius:8px;background:#313338;color:#dbdee1;box-sizing:border-box;font-family:Arial,sans-serif}.dc-container{position:relative;margin-bottom:8px;padding:12px 12px 12px 16px;border-radius:5px;background:#2b2d31;overflow:hidden}.dc-container:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--accent)}.dc-text{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.dc-text h1,.dc-text h2,.dc-text h3{margin:3px 0 7px;color:#f2f3f5}.dc-text h1{font-size:20px}.dc-text h2{font-size:17px}.dc-text h3{font-size:14px}.dc-text small{color:#949ba4}.dc-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:8px 0}.dc-gallery img{width:100%;max-height:250px;display:block;object-fit:cover;border-radius:4px}.dc-gallery img:only-child{grid-column:1/-1}.dc-divider{height:1px;margin:8px 0;background:#3f4147}.dc-divider.space-2{margin:16px 0}.dc-section{display:flex;align-items:center;justify-content:space-between;gap:12px}.dc-actions{display:flex;flex-wrap:wrap;gap:6px}.dc-button{min-height:32px;padding:0 12px;display:inline-flex;align-items:center;border-radius:3px;color:#fff!important;background:#4e5058;text-decoration:none;font-weight:650}.dc-button.style-1{background:#5865f2}.dc-button.style-3{background:#248046}.dc-button.style-4{background:#da373c}.dc-button.style-5{background:#4e5058}
.cb-type{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:10px;border-radius:10px;background:rgba(var(--theme-rgb), .06)}.cb-type i{width:32px;height:32px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:8px;background:rgba(var(--theme-rgb), .1);font-style:normal}.cb-type b,.cb-type small{display:block}.cb-type small{color:#71858b;font-size:9px}.cb-inspector label{display:grid;gap:6px;margin:11px 0;color:#82969b;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.cb-inspector input,.cb-inspector textarea,.cb-inspector select,.cb-modal input,.cb-modal textarea{width:100%;padding:9px;box-sizing:border-box;outline:0;color:#dfeae7;border:1px solid rgba(var(--theme-rgb), .16);border-radius:8px;background:#0c181d}.cb-inspector textarea{min-height:90px;resize:vertical;text-transform:none}.cb-inspector .check{display:flex;grid-template:none;align-items:center}.cb-inspector .check input{width:auto}.cb-inspector>div>button{width:100%;min-height:34px;margin-top:6px}.cb-raw{min-height:160px!important;font-family:monospace!important;font-size:9px!important}.cb-empty{padding:35px 12px;color:#657980;text-align:center}
.cb-modal{position:absolute;z-index:30;inset:50% auto auto 50%;width:min(620px,calc(100% - 30px));padding:20px;transform:translate(-50%,-50%);box-sizing:border-box;border:1px solid rgba(var(--theme-rgb), .25);border-radius:16px;background:#142229;box-shadow:0 30px 90px rgba(0,0,0,.6)}.cb-modal[hidden]{display:none}.cb-modal>button{position:absolute;right:13px;top:13px;width:30px;height:30px}.cb-modal h3{margin:0 0 14px}.cb-modal textarea{min-height:280px;resize:vertical;font-family:monospace;font-size:10px}.cb-modal input{margin-top:8px}.cb-modal footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.cb-modal footer button{min-height:36px;padding:0 14px}
@media(max-width:900px){.cb-app{grid-template-columns:150px minmax(0,1fr)}.cb-inspector{position:absolute;right:8px;top:64px;bottom:8px;width:240px;z-index:10;box-shadow:-20px 0 50px rgba(0,0,0,.35)}.cb-canvas{grid-template-columns:1fr}.cb-preview-wrap{display:none}.cb-add-grid{grid-template-columns:1fr}.cb-toolbar button{padding:0 6px;font-size:8px}}
@media(max-width:560px){.cb-app{grid-template-columns:1fr}.cb-palette{display:none}.cb-inspector{display:none}.cb-toolbar{align-items:flex-start;flex-direction:column;padding:8px}.cb-toolbar>div:last-child{width:100%;overflow-x:auto}.cb-canvas{display:block}.cb-tree{height:100%;box-sizing:border-box;border:0}.cb-modal textarea{min-height:45dvh}}

/* O editor usa todo o espaço; propriedades agora são abertas sob demanda. */
.cb-app{position:relative;grid-template-columns:210px minmax(0,1fr)}
.cb-node-main{width:calc(100% - 146px)}
.cb-node-actions [data-edit]{color:var(--theme-highlight,#69ead0);border-color:rgba(var(--theme-rgb), .3);background:rgba(var(--theme-rgb), .09)}
.cb-properties-overlay{position:absolute;z-index:29;inset:0;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:rgba(3,10,12,.54);backdrop-filter:blur(8px)}.cb-properties-overlay[hidden]{display:none}
.cb-properties-modal{width:min(760px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(var(--theme-rgb), .3);border-radius:16px;background:#142229;box-shadow:0 30px 90px rgba(0,0,0,.65)}.cb-properties-modal>header{min-height:63px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(var(--theme-rgb), .14)}.cb-properties-modal>header>div{display:flex;flex-direction:column;gap:3px}.cb-properties-modal>header button{width:31px;height:31px;padding:0;font-size:18px}
.cb-properties-content{min-height:0;display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);overflow:auto}.cb-properties-content>.cb-delivery{margin:15px;border-right:0}.cb-properties-content>.cb-inspector{position:static;width:auto;min-width:0;padding:15px;overflow-y:auto;border-left:1px solid rgba(var(--theme-rgb), .12);box-shadow:none}.cb-properties-content .cb-inspector textarea{min-height:140px}
@media(max-width:900px){.cb-app{grid-template-columns:150px minmax(0,1fr)}.cb-properties-content>.cb-inspector{display:block}}
@media(max-width:560px){.cb-properties-overlay{padding:10px}.cb-properties-modal{max-height:calc(100dvh - 20px)}.cb-properties-content{display:block;overflow-y:auto}.cb-properties-content>.cb-delivery{margin:10px}.cb-properties-content>.cb-inspector{display:block;border-left:0;border-top:1px solid rgba(var(--theme-rgb), .12)}}

/* Layout realmente utilizável em celulares. */
@media(max-width:560px){
  #componentsWindow .window-content{overflow:hidden!important;touch-action:manipulation}
  .cb-app{height:100%;display:flex;flex-direction:column;overflow:hidden}
  .cb-palette{display:block;flex:0 0 auto;max-height:184px;padding:8px 9px;overflow-x:hidden;overflow-y:auto;border:0;border-bottom:1px solid rgba(var(--theme-rgb), .14)}
  .cb-palette>header{display:none}.cb-mode-tabs{position:sticky;z-index:3;top:-8px;margin:0 0 7px;padding:3px 0;background:#101c22}
  .cb-mode-tabs button{min-height:38px;font-size:10px}.cb-open-leaks{min-height:42px;margin-bottom:7px;grid-template-columns:25px 1fr}.cb-open-leaks small{display:none}
  .cb-add-grid{display:grid;grid-auto-flow:column;grid-auto-columns:68px;grid-template-columns:none;gap:6px;padding-bottom:4px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
  .cb-add-grid button{min-height:62px;padding:5px;scroll-snap-align:start}.cb-add-grid span{font-size:8px;text-align:center}.cb-add-grid i{width:23px;height:23px}
  .cb-tools{display:flex;gap:6px;margin-top:7px;padding-top:7px;overflow-x:auto}.cb-tools button{min-width:max-content;min-height:36px;padding:0 10px;text-align:center}
  .cb-recent-section{display:none}.cb-workspace{flex:1;min-height:0;overflow:hidden}
  .cb-toolbar{min-height:0;flex:0 0 auto;align-items:stretch;flex-direction:column;gap:6px;padding:7px 8px}
  .cb-toolbar>div:first-child{min-height:30px;overflow-x:auto}.cb-toolbar>div:last-child{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible}
  .cb-toolbar button{min-width:0;min-height:38px;padding:3px 4px;font-size:8px;white-space:normal;line-height:1.15}.cb-leak-switch{margin-left:2px!important}.cb-leak-switch em{white-space:nowrap}
  .cb-canvas{min-height:0;display:block;overflow:hidden}.cb-tree{height:100%;padding:8px;overflow-y:auto;overscroll-behavior:contain}
  .cb-node{margin-bottom:8px}.cb-node-main{width:100%;min-height:52px;box-sizing:border-box;padding:8px!important}.cb-node-main small{max-width:calc(100vw - 100px)}
  .cb-node-actions{float:none;margin:0;padding:0 7px 7px;display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.cb-node-actions button{width:auto;height:36px;font-size:14px}
  .cb-children{margin-left:10px;padding-left:6px}.cb-preview-wrap{display:none}
  .cb-classic-editor{display:block;overflow-y:auto}.cb-classic-fields{padding:14px 11px}.cb-classic-fields textarea{min-height:130px}.cb-classic-editor>.cb-preview-wrap{display:block;min-height:300px;padding:11px}
  .cb-field-row{grid-template-columns:1fr}.cb-leaks{padding:10px}.cb-leaks>header{top:-10px;margin:-10px -10px 10px;padding:10px 12px}.cb-leak-feed{grid-template-columns:1fr}.cb-leak-card{grid-template-columns:58px minmax(0,1fr)}.cb-leak-card>img,.cb-leak-thumb{width:58px;height:58px}
  .cb-properties-overlay,.cb-repost-overlay,.cb-save-overlay{position:fixed;inset:0;padding:7px;z-index:100}
  .cb-properties-modal{width:100%;max-height:calc(100dvh - 14px);border-radius:13px}.cb-properties-modal>header{position:sticky;top:0;z-index:2;min-height:54px;background:#142229}
  .cb-properties-content>.cb-delivery,.cb-properties-content>.cb-inspector{padding:11px;margin:0}.cb-inspector input,.cb-inspector select{min-height:44px}.cb-inspector textarea{min-height:125px}
  .cb-repost-overlay>section,.cb-save-overlay form{max-height:calc(100dvh - 14px);padding:20px 14px;overflow-y:auto}.cb-repost-overlay section>div button{min-height:72px}
  .cb-modal{position:fixed;width:calc(100% - 14px);max-height:calc(100dvh - 14px);padding:16px 12px;overflow-y:auto}.cb-modal textarea{min-height:38dvh}
}
@media(max-width:390px){.cb-palette{max-height:174px}.cb-toolbar>div:last-child{grid-template-columns:repeat(2,1fr)}.cb-toolbar button{min-height:34px}.cb-node-actions button{height:38px}.cb-leak-switch em{display:none}}
@media(pointer:coarse){.cb-recent-delete{opacity:1;transform:translateY(-50%) scale(1)}.cb-app button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}}

.cb-app [hidden]{display:none!important}.cb-mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:14px 0 8px}.cb-mode-tabs button{min-height:32px;font-size:9px;font-weight:850}.cb-mode-tabs button.active{color:#062019;border-color:var(--theme-accent,#55e6c1);background:var(--theme-accent,#55e6c1)}.cb-open-leaks{width:100%;min-height:54px;padding:8px 10px;display:grid;grid-template-columns:29px 1fr;align-items:center;text-align:left}.cb-open-leaks>span{grid-row:1/3;width:25px;height:25px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:7px;background:rgba(var(--theme-rgb), .1)}.cb-open-leaks b{font-size:10px}.cb-open-leaks small{color:#71858b;font-size:8px}.cb-open-leaks.active{border-color:rgba(var(--theme-rgb), .5);background:rgba(var(--theme-rgb), .1)}
.cb-classic-editor{min-height:0;flex:1;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr);overflow:hidden}.cb-classic-fields{padding:clamp(18px,3vw,36px);overflow-y:auto}.cb-classic-fields label{display:grid;gap:7px;margin-bottom:17px;color:#8ca09f;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.cb-classic-fields input,.cb-classic-fields textarea{width:100%;box-sizing:border-box;padding:12px;color:#e5efed;border:1px solid rgba(var(--theme-rgb), .18);border-radius:10px;outline:0;background:#0a161b}.cb-classic-fields textarea{min-height:170px;resize:vertical;text-transform:none;line-height:1.5}.cb-field-row{display:grid;grid-template-columns:130px 1fr;gap:12px}.dc-embed{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 14px 14px 18px;border-radius:4px;background:#2b2d31;overflow:hidden}.dc-embed:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--embed-color)}.dc-embed h3{margin:0 0 8px;font-size:16px}.dc-embed p{margin:0;line-height:1.45}.dc-embed small{display:block;margin-top:15px;color:#aeb4bb}.dc-embed-thumb{width:80px;height:80px;object-fit:cover;border-radius:4px}.dc-embed-image{grid-column:1/-1;width:100%;max-height:350px;object-fit:cover;border-radius:4px}
.dc-auto-video{width:100%;max-height:380px;display:block;margin-top:8px;border-radius:5px;background:#111}
.cb-leaks{min-height:0;flex:1;display:flex;flex-direction:column;padding:18px;overflow-y:auto;background:#0b151a}.cb-leaks>header{position:sticky;z-index:2;top:-18px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:-18px -18px 14px;padding:16px 20px;border-bottom:1px solid rgba(var(--theme-rgb), .12);background:rgba(13,24,29,.96);backdrop-filter:blur(12px)}.cb-leaks>header div{display:grid;gap:3px}.cb-leaks>header small{color:#71858b}.cb-leaks select{min-width:220px;padding:9px;color:#dce7e5;border:1px solid rgba(var(--theme-rgb), .2);border-radius:9px;background:#101f25}.cb-leak-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}.cb-leak-card{min-width:0;display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;padding:13px;border:1px solid rgba(var(--theme-rgb), .12);border-radius:13px;background:#111f25}.cb-leak-card>img{width:110px;height:110px;object-fit:cover;border-radius:9px;background:#091216}.cb-leak-card>div{min-width:0}.cb-leak-card header,.cb-leak-card footer{display:flex;align-items:center;gap:8px}.cb-leak-card header{justify-content:space-between;color:#70868b;font-size:8px}.cb-leak-card header span{color:var(--theme-accent,#55e6c1);font-weight:850}.cb-leak-card h3{margin:8px 0;color:#e5efed;font-size:13px;line-height:1.35}.cb-leak-card p{display:-webkit-box;overflow:hidden;margin:0 0 10px;color:#95a7a8;font-size:10px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}.cb-leak-card footer{margin-top:10px;flex-wrap:wrap;color:#70868b;font-size:8px}.cb-leak-card footer span{margin-right:auto}.cb-leak-card a{color:#9db1ae;text-decoration:none}.cb-leak-card footer button{min-height:29px;padding:0 10px;color:#062019;background:var(--theme-accent,#55e6c1);font-weight:850}.cb-leak-sentinel{padding:28px;color:#71858b;text-align:center}
@media(max-width:760px){.cb-classic-editor{display:block;overflow-y:auto}.cb-classic-editor>.cb-preview-wrap{min-height:420px}.cb-leak-feed{grid-template-columns:1fr}.cb-leaks>header{align-items:stretch;flex-direction:column}.cb-leaks select{min-width:0}.cb-leak-card{grid-template-columns:80px minmax(0,1fr)}.cb-leak-card>img{width:80px;height:80px}}
.cb-repost-overlay{position:absolute;z-index:40;inset:0;display:grid;place-items:center;padding:20px;background:rgba(2,8,10,.7);backdrop-filter:blur(8px)}.cb-repost-overlay>section{position:relative;width:min(620px,100%);padding:25px;box-sizing:border-box;border:1px solid rgba(var(--theme-rgb), .28);border-radius:17px;background:#132229;box-shadow:0 30px 90px rgba(0,0,0,.65)}.cb-repost-overlay>section>button{position:absolute;right:14px;top:14px;width:31px;height:31px}.cb-repost-overlay>section>span{color:var(--theme-accent,#55e6c1);font-size:8px;font-weight:900;letter-spacing:.13em}.cb-repost-overlay h3{margin:7px 0 5px;font-size:20px}.cb-repost-overlay p{margin:0 0 20px;color:#7e9296}.cb-repost-overlay section>div{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.cb-repost-overlay section>div button{min-height:115px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;text-align:left}.cb-repost-overlay section>div i{width:30px;height:30px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:8px;background:rgba(var(--theme-rgb), .1);font-style:normal}.cb-repost-overlay section>div b{color:#e5efed}.cb-repost-overlay section>div small{color:#71858b;line-height:1.4}@media(max-width:600px){.cb-repost-overlay section>div{grid-template-columns:1fr}.cb-repost-overlay section>div button{min-height:78px}}
.cb-leak-feed{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));align-items:start;gap:9px}.cb-leak-card{align-self:start;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:9px;border-radius:11px;cursor:pointer}.cb-leak-card>img{width:64px;height:64px}.cb-leak-card header{font-size:7px}.cb-leak-card h3{display:-webkit-box;overflow:hidden;margin:5px 0;font-size:11px;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cb-leak-card p{display:none;margin:7px 0;font-size:9px}.cb-leak-card footer{margin-top:5px;font-size:7px}.cb-leak-card footer button{min-height:25px;padding:0 8px;font-size:8px}.cb-leak-card.expanded{grid-template-columns:90px minmax(0,1fr);padding:12px}.cb-leak-card.expanded>img{width:90px;height:90px}.cb-leak-card.expanded h3{-webkit-line-clamp:initial;font-size:13px}.cb-leak-card.expanded p{display:block}.cb-leak-delivery{margin-bottom:12px;padding:10px;border:1px solid rgba(var(--theme-rgb), .25);border-radius:10px;background:rgba(var(--theme-rgb), .06)}.cb-leak-delivery>b{color:var(--theme-accent,#55e6c1);font-size:8px;letter-spacing:.1em}.cb-leak-delivery>small{color:#7e9296;font-size:8px}.cb-leak-delivery .check{display:flex;align-items:center;gap:7px;text-transform:none}.cb-leak-delivery .check input{width:auto}.cb-translation{display:grid;gap:7px;margin-top:12px;padding:10px;border:1px solid rgba(var(--theme-rgb), .18);border-radius:10px;background:rgba(var(--theme-rgb), .045)}.cb-translation>b{color:var(--theme-accent,#55e6c1);font-size:9px}.cb-translation>small{color:#7e9296}.cb-translation textarea{min-height:110px!important}.cb-translation button{min-height:34px}
.cb-leak-card{height:104px;box-sizing:border-box;overflow:hidden}.cb-leak-card>div:not(.cb-leak-thumb){min-height:0;display:flex;flex-direction:column}.cb-leak-thumb{width:64px;height:64px;display:grid;place-items:center;color:#547078;border-radius:8px;background:#0b171c;font-size:20px}.cb-leak-card h3{margin-bottom:2px}.cb-leak-card h4{min-height:12px;display:-webkit-box;overflow:hidden;margin:0;color:#e6bd55;font-size:9px;font-weight:750;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:1}.cb-leak-card footer{margin-top:auto}.cb-leak-card.expanded{height:auto;min-height:150px;overflow:visible}.cb-leak-card.expanded .cb-leak-thumb{width:90px;height:90px}.cb-leak-card.expanded h4{-webkit-line-clamp:initial;font-size:10px}
.cb-save-overlay{position:absolute;z-index:45;inset:0;display:grid;place-items:center;padding:20px;background:rgba(2,8,10,.72);backdrop-filter:blur(9px)}.cb-save-overlay form{position:relative;width:min(430px,100%);padding:25px;box-sizing:border-box;border:1px solid rgba(var(--theme-rgb), .3);border-radius:17px;background:#14242a;box-shadow:0 30px 90px rgba(0,0,0,.65)}.cb-save-overlay form>button{position:absolute;right:14px;top:14px;width:31px;height:31px}.cb-save-overlay form>span{color:var(--theme-accent,#55e6c1);font-size:8px;font-weight:900;letter-spacing:.13em}.cb-save-overlay h3{margin:7px 0 5px;font-size:20px}.cb-save-overlay p{margin:0 0 19px;color:#7e9296}.cb-save-overlay label{display:grid;gap:7px;color:#9db0ad;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.cb-save-overlay input{width:100%;min-height:44px;padding:0 12px;box-sizing:border-box;color:#e9f2f0;border:1px solid rgba(var(--theme-rgb), .22);border-radius:10px;outline:0;background:#0b171c}.cb-save-overlay input:focus{border-color:var(--theme-accent,#55e6c1);box-shadow:0 0 0 3px rgba(var(--theme-rgb), .1)}.cb-save-overlay footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.cb-save-overlay footer button{min-height:38px;padding:0 15px}
.cb-leak-switch{height:30px;display:flex!important;align-items:center;gap:7px;margin-left:10px!important;color:#91a5a2!important;font-size:9px!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}.cb-leak-switch input{position:absolute;opacity:0;pointer-events:none}.cb-leak-switch i{position:relative;width:31px;height:17px;border:1px solid rgba(var(--theme-rgb), .25);border-radius:99px;background:#0b171c;transition:.2s}.cb-leak-switch i:after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#667b7f;transition:.2s}.cb-leak-switch input:checked+i{border-color:var(--theme-accent,#55e6c1);background:rgba(var(--theme-rgb), .18)}.cb-leak-switch input:checked+i:after{left:16px;background:var(--theme-accent,#55e6c1)}.cb-leak-switch em{font-style:normal;font-weight:750}.cb-toolbar [data-editor-leak-game]{min-height:30px;max-width:155px;padding:0 8px;color:#dce8e5;border:1px solid rgba(var(--theme-rgb), .2);border-radius:8px;background:#0d1a20;font-size:9px}

/* Mantido no fim do arquivo para vencer as regras de desktop declaradas acima. */
@media(max-width:560px){
 .cb-mode-tabs{margin:0 0 7px}.cb-open-leaks{min-height:42px}.cb-add-grid{grid-template-columns:none}.cb-add-grid button{min-height:62px}
 .cb-classic-editor{display:block;overflow-y:auto}.cb-classic-fields{padding:14px 11px}.cb-classic-fields textarea{min-height:130px}.cb-classic-editor>.cb-preview-wrap{display:block;min-height:300px;padding:11px}
 .cb-leaks{padding:10px}.cb-leaks>header{top:-10px;margin:-10px -10px 10px;padding:10px 12px}.cb-leak-card{grid-template-columns:58px minmax(0,1fr)}.cb-leak-card>img{width:58px;height:58px}
 .cb-field-row{grid-template-columns:1fr}.cb-node-main{width:100%}.cb-node-actions{float:none;margin:0;padding:0 7px 7px;display:grid;grid-template-columns:repeat(5,1fr)}
}

/* Component Builder como página completa do MintHub. */
body.component-builder-open{--cb-site-header-height:68px;overflow:hidden!important}
body.component-builder-open #taskbar{display:none!important}
body.component-builder-open .site-header{position:fixed!important;top:0;right:0;left:0;z-index:2147483005!important;width:100%;overflow:visible!important;box-sizing:border-box}
body.component-builder-open .site-header>*{position:relative;z-index:4}
body.component-builder-open #dashboardSidebar{z-index:2147483007!important;background:rgba(18,29,35,.96);pointer-events:auto!important}
body.component-builder-open #dashboardSidebar{
 transform:translate3d(-108%,0,0) scale(.985)!important;
 opacity:.35;
 visibility:hidden;
 transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .25s ease,visibility 0s linear .42s!important;
 will-change:transform,opacity;
}
body.component-builder-open #dashboardSidebar.open{
 transform:translate3d(0,0,0) scale(1)!important;
 opacity:1;
 visibility:visible;
 transition-delay:0s!important;
}
body.component-builder-open:has(#dashboardSidebar.open)::before{
 content:"";
 position:fixed;
 z-index:2147483006;
 inset:var(--cb-site-header-height) 0 0;
 background:rgba(2,8,11,.5);
 backdrop-filter:blur(4px);
 pointer-events:auto;
 animation:cbNavigationBackdrop .28s ease both;
}
body.component-builder-open #dashboardSidebar>*{
 opacity:0;
 transform:translateX(-18px);
}
body.component-builder-open #dashboardSidebar.open>*{
 animation:cbNavigationItem .34s cubic-bezier(.16,1,.3,1) both;
}
body.component-builder-open #dashboardSidebar.open>*:nth-child(1){animation-delay:.07s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(2){animation-delay:.10s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(3){animation-delay:.13s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(4){animation-delay:.16s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(5){animation-delay:.19s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(6){animation-delay:.22s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(7){animation-delay:.25s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(8){animation-delay:.28s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(9){animation-delay:.31s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(10){animation-delay:.34s}
body.component-builder-open #dashboardSidebar.open>*:nth-child(n+11){animation-delay:.37s}
@keyframes cbNavigationBackdrop{from{opacity:0}to{opacity:1}}
@keyframes cbNavigationItem{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}
body.component-builder-open :is(.radio-mixer-panel,.leak-notifications-panel,.profile-menu-backdrop){z-index:2147483008!important}
body.component-builder-open #componentsWindow.component-builder-standalone-shell{position:fixed!important;z-index:2147483000!important;inset:var(--cb-site-header-height) 0 0!important;width:100vw!important;height:calc(100dvh - var(--cb-site-header-height))!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#0b151a!important}
body.component-builder-open #componentsWindow>.dashboard-app-header{display:none!important}
body.component-builder-open #componentsWindow>.window-content{width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
body.component-builder-open #componentsWindow .cb-app{width:100%;height:100%;grid-template-columns:220px minmax(0,1fr);background:radial-gradient(circle at 100% 0,rgba(var(--theme-rgb), .09),transparent 32%),#0b151a}

/* Remapeamento visual do editor. */
body.component-builder-open .cb-palette{padding:22px 17px;border-right-color:rgba(var(--theme-rgb), .16);background:linear-gradient(180deg,#122128,#0e1a20)}
body.component-builder-open .cb-palette>header{margin:-2px 0 18px;padding:0 2px 17px;border-bottom:1px solid rgba(var(--theme-rgb), .12)}
body.component-builder-open .cb-palette>header b{color:#effffb;font-size:17px;letter-spacing:-.025em}
body.component-builder-open .cb-palette>header small{margin-top:3px;color:#78908a}
body.component-builder-open .cb-mode-tabs{padding:4px;border:1px solid rgba(var(--theme-rgb), .1);border-radius:12px;background:#0b171c}
body.component-builder-open .cb-mode-tabs button{min-height:36px;border:0;border-radius:9px}
body.component-builder-open .cb-open-leaks{margin:12px 0 16px;border-radius:13px}
body.component-builder-open .cb-add-grid{gap:8px}
body.component-builder-open .cb-add-grid button{min-height:72px;border-radius:12px;background:rgba(255,255,255,.025)}
body.component-builder-open .cb-workspace{background:#0b151a}
body.component-builder-open .cb-toolbar{min-height:66px;padding:0 20px;border-bottom-color:rgba(var(--theme-rgb), .14);background:rgba(16,30,36,.94);backdrop-filter:blur(18px)}
body.component-builder-open .cb-toolbar>div:first-child>b{color:#f1fffb;font-size:15px}
body.component-builder-open .cb-toolbar button{min-height:38px;padding:0 13px;border-radius:10px}
body.component-builder-open .cb-canvas{grid-template-columns:minmax(380px,1fr) minmax(480px,1.35fr);gap:10px;padding:10px;background:#091216}
body.component-builder-open .cb-tree,body.component-builder-open .cb-preview-wrap{border:1px solid rgba(var(--theme-rgb), .1);border-radius:16px;background:#101c22}
body.component-builder-open .cb-tree{padding:12px;border-right:1px solid rgba(var(--theme-rgb), .1)}
body.component-builder-open .cb-preview-wrap{padding:18px;background:linear-gradient(145deg,#101b21,#0a1318)}
body.component-builder-open .cb-preview{width:min(100%,920px);border:1px solid rgba(255,255,255,.06);border-radius:12px;box-shadow:0 22px 55px rgba(0,0,0,.3)}
body.component-builder-open .cb-node{border-radius:12px;background:#14242b}

@media(max-width:900px){
 body.component-builder-open #componentsWindow .cb-app{grid-template-columns:170px minmax(0,1fr)}
 body.component-builder-open .cb-canvas{grid-template-columns:1fr;padding:9px}
 body.component-builder-open .cb-tree{border-radius:14px}
}
@media(max-width:560px){
 body.component-builder-open{--cb-site-header-height:62px}
 body.component-builder-open #componentsWindow .cb-app{display:flex;grid-template-columns:none}
 body.component-builder-open .cb-palette{max-height:196px;padding:9px 10px;background:#101e24}
 body.component-builder-open .cb-toolbar{min-height:0;padding:8px 9px}
 body.component-builder-open .cb-toolbar>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body.component-builder-open .cb-toolbar button{min-height:38px;padding:3px 5px}
 body.component-builder-open .cb-toolbar .primary{grid-column:span 2}
 body.component-builder-open .cb-canvas{padding:7px;background:#0b151a}
 body.component-builder-open .cb-tree{padding:8px;border:1px solid rgba(var(--theme-rgb), .1);border-radius:13px}
}

/* O Builder usa as superfícies derivadas pelo Theme Sync. */
.theme-sync-active .cb-app,
.theme-sync-active body.component-builder-open #componentsWindow .cb-app,
.theme-sync-active .cb-workspace,
.theme-sync-active .cb-leaks{
    background:var(--theme-surface-deep)!important;
}
.theme-sync-active .cb-palette,
.theme-sync-active .cb-toolbar,
.theme-sync-active .cb-tree,
.theme-sync-active .cb-preview-wrap,
.theme-sync-active .cb-inspector,
.theme-sync-active .cb-node,
.theme-sync-active .cb-leak-card,
.theme-sync-active .cb-modal,
.theme-sync-active .cb-properties-modal{
    background:var(--theme-surface)!important;
}
.theme-sync-active .cb-node.selected,
.theme-sync-active .cb-recent.active{
    background:rgba(var(--theme-rgb),.11)!important;
}

/* Galeria profissional e importação de vídeo compartilhadas pelo site e Activity. */
.cb-app :is(.cb-add-grid i,.cb-node-main i,.cb-type i,.cb-gallery-import i,.cb-gallery-file>span,.cb-media-editor>section>header>span) svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cb-add-grid button{position:relative;overflow:hidden;transition:transform .18s ease,border-color .18s ease,background .18s ease}.cb-add-grid button:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0,rgba(var(--theme-rgb),.14),transparent 62%);opacity:0;transition:opacity .18s}.cb-add-grid button:hover{transform:translateY(-2px)}.cb-add-grid button:hover:before{opacity:1}.cb-add-grid button>*{position:relative}
.cb-gallery-import{margin:0 0 15px;padding:14px;border:1px solid rgba(var(--theme-rgb),.22);border-radius:15px;background:linear-gradient(145deg,rgba(var(--theme-rgb),.085),rgba(6,16,20,.35));box-shadow:inset 0 1px rgba(255,255,255,.025)}
.cb-gallery-import>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.cb-gallery-import>header>i{width:34px;height:34px;display:grid;place-items:center;flex:none;color:var(--theme-accent,#55e6c1);border:1px solid rgba(var(--theme-rgb),.22);border-radius:10px;background:rgba(var(--theme-rgb),.09);font-style:normal}.cb-gallery-import>header b,.cb-gallery-import>header small{display:block}.cb-gallery-import>header b{color:#eaf6f3;font-size:11px}.cb-gallery-import>header small{margin-top:2px;color:#78908e;font-size:8px}
.cb-gallery-file{min-height:72px!important;margin:0!important;padding:10px!important;display:flex!important;grid-template:none!important;align-items:center;gap:11px;border:1px dashed rgba(var(--theme-rgb),.35);border-radius:12px;background:rgba(4,13,16,.38);cursor:pointer;text-transform:none!important;letter-spacing:0!important;transition:.18s}.cb-gallery-file:hover{border-color:var(--theme-accent,#55e6c1);background:rgba(var(--theme-rgb),.075)}.cb-gallery-file input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.cb-gallery-file>span{width:38px;height:38px;display:grid;place-items:center;flex:none;color:#071b16;border-radius:10px;background:var(--theme-accent,#55e6c1);font-size:20px;font-weight:800}.cb-gallery-file b,.cb-gallery-file small{display:block}.cb-gallery-file b{color:#dce9e6;font-size:10px}.cb-gallery-file small{margin-top:3px;color:#718784;font-size:8px}
.cb-gallery-or{height:25px;display:flex;align-items:center;gap:8px;color:#617773;font-size:7px;font-weight:900;letter-spacing:.12em}.cb-gallery-or:before,.cb-gallery-or:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.06)}
.cb-video-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.cb-video-url-row input{min-width:0;margin:0!important}.cb-video-url-row button{min-height:38px;padding:0 12px;color:#061b15;background:var(--theme-accent,#55e6c1);border-color:transparent;font-weight:850}.cb-video-import-status{margin-top:8px;padding:8px 9px;color:#748985;border:1px solid rgba(255,255,255,.045);border-radius:8px;background:rgba(0,0,0,.13);font-size:8px;line-height:1.45}.cb-video-import-status.ready{color:#8ff1d9;border-color:rgba(var(--theme-rgb),.2);background:rgba(var(--theme-rgb),.065)}
.cb-media-editor>section{padding:11px;border-radius:12px}.cb-media-editor>section>header{display:grid;grid-template-columns:30px minmax(0,1fr) 27px;align-items:center;gap:8px;margin-bottom:9px}.cb-media-editor>section>header>span{width:30px;height:30px;display:grid;place-items:center;color:var(--theme-accent,#55e6c1);border-radius:8px;background:rgba(var(--theme-rgb),.09)}.cb-media-editor>section>header b,.cb-media-editor>section>header small{display:block}.cb-media-editor>section>header b{color:#dce9e6;font-size:9px}.cb-media-editor>section>header small{margin-top:2px;color:#708582;font-size:7px}.cb-media-editor>section>header button{width:27px;height:27px;padding:0;color:#ff9299}.cb-add-media{width:100%;min-height:38px;margin-top:9px}
.dc-gallery :is(img,video){width:100%;max-height:280px;display:block;object-fit:cover;border-radius:4px}.dc-gallery :is(img,video):only-child{grid-column:1/-1}.dc-gallery-attachment{min-height:150px;padding:18px;grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px dashed #53606d;border-radius:6px;background:linear-gradient(145deg,#24272d,#1d2025);text-align:center}.dc-gallery-attachment i{width:36px;height:36px;display:grid;place-items:center;color:#6ee7c5;border-radius:50%;background:rgba(85,230,193,.09);font-style:normal}.dc-gallery-attachment i svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.dc-gallery-attachment b{color:#e5e8ec;font-size:11px}.dc-gallery-attachment small{color:#949ba4;font-size:9px}
.cb-processing-overlay{position:absolute;z-index:120;inset:0;display:grid;place-items:center;padding:18px;background:rgba(2,9,11,.82);backdrop-filter:blur(12px)}.cb-processing-overlay>section{width:min(420px,100%);padding:28px;box-sizing:border-box;text-align:center;border:1px solid rgba(var(--theme-rgb),.3);border-radius:20px;background:linear-gradient(145deg,#13272a,#0b171c);box-shadow:0 30px 100px rgba(0,0,0,.65)}.cb-processing-mark{position:relative;width:58px;height:58px;display:grid;place-items:center;margin:0 auto 15px}.cb-processing-mark>i{position:absolute;inset:0;border:2px solid rgba(var(--theme-rgb),.15);border-top-color:var(--theme-accent,#55e6c1);border-radius:50%;animation:cbProcessSpin .85s linear infinite}.cb-processing-mark>span{width:38px;height:38px;display:grid;place-items:center;color:#062019;border-radius:50%;background:var(--theme-accent,#55e6c1);font-size:13px}.cb-processing-overlay small{color:var(--theme-accent,#55e6c1);font-size:8px;font-weight:900;letter-spacing:.12em}.cb-processing-overlay h3{margin:7px 0 6px;color:#ecf8f5;font-size:21px}.cb-processing-overlay p{margin:0;color:#91a5a1;font-size:10px;line-height:1.55}.cb-processing-track{height:4px;margin:20px 0 12px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.06)}.cb-processing-track i{width:45%;height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,transparent,var(--theme-accent,#55e6c1),transparent);animation:cbProcessTrack 1.25s ease-in-out infinite}.cb-processing-overlay em{color:#647975;font-size:8px;font-style:normal}@keyframes cbProcessSpin{to{transform:rotate(360deg)}}@keyframes cbProcessTrack{from{transform:translateX(-120%)}to{transform:translateX(260%)}}
.cb-builder-toast{position:absolute;z-index:180;right:18px;bottom:18px;width:min(390px,calc(100% - 36px));padding:13px 15px;box-sizing:border-box;color:#dffff6;border:1px solid rgba(var(--theme-rgb),.38);border-radius:12px;background:rgba(9,31,27,.97);box-shadow:0 18px 60px rgba(0,0,0,.58);font-size:10px;font-weight:750;line-height:1.45;opacity:0;transform:translateY(9px);transition:opacity .2s ease,transform .2s ease}.cb-builder-toast.visible{opacity:1;transform:none}.cb-builder-toast.error{color:#ffd9dd;border-color:rgba(255,91,110,.55);background:rgba(48,17,23,.98)}
@media(max-width:560px){.cb-video-url-row{grid-template-columns:1fr}.cb-video-url-row button{min-height:42px}.cb-processing-overlay>section{padding:24px 17px}}

/* Modo automático exclusivo da Activity. */
.cb-auto-mode{margin:10px 0 12px;padding:10px;border:1px solid rgba(123,153,255,.2);border-radius:13px;background:linear-gradient(145deg,rgba(91,116,205,.105),rgba(7,18,23,.3))}.cb-auto-mode>label{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0!important;cursor:pointer;text-transform:none!important;letter-spacing:0!important}.cb-auto-mode>label>span{min-width:0}.cb-auto-mode>label b,.cb-auto-mode>label small{display:block}.cb-auto-mode>label b{color:#aebeff;font-size:8px;letter-spacing:.12em}.cb-auto-mode>label small{margin-top:3px;color:#71838c;font-size:7px}.cb-auto-mode>label input{position:absolute;width:1px!important;height:1px!important;opacity:0}.cb-auto-mode>label>i{position:relative;width:31px;height:17px;flex:none;border:1px solid rgba(132,158,255,.28);border-radius:99px;background:#0a161d}.cb-auto-mode>label>i:after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#657383;transition:.2s}.cb-auto-mode>label input:checked+i{border-color:#8fa8ff;background:rgba(104,132,232,.2)}.cb-auto-mode>label input:checked+i:after{left:16px;background:#9cb2ff;box-shadow:0 0 10px rgba(133,160,255,.6)}
.cb-auto-mode>div{display:grid;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.055)}.cb-auto-mode>div textarea{min-width:0;width:100%;min-height:105px;padding:9px;box-sizing:border-box;resize:vertical;outline:0;color:#e3e9ff;border:1px solid rgba(129,154,247,.2);border-radius:9px;background:#09161b;font-family:inherit;font-size:8px;line-height:1.5}.cb-auto-mode>div textarea:focus{border-color:#8da5ff;box-shadow:0 0 0 3px rgba(110,137,235,.09)}.cb-auto-mode>div button{min-height:37px;display:flex;align-items:center;justify-content:center;gap:7px;color:#091329;border-color:#91a9ff;background:linear-gradient(100deg,#91a9ff,#73e6d0);font-size:8px;font-weight:900}.cb-auto-mode>div button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.cb-auto-mode>div>small{color:#697d86;font-size:7px;line-height:1.4}.cb-auto-spinner{width:13px;height:13px;border:2px solid rgba(7,21,27,.25);border-top-color:#07151b;border-radius:50%;animation:cbProcessSpin .7s linear infinite}

/* Alternador de edição/preview: aparece apenas quando a largura pede uma UI móvel. */
.cb-mobile-view-tabs{display:none}

/* Regras finais e autocontidas para celular. Mantê-las no fim evita que o desktop
   reintroduza grids largos ou alturas fixas nas superfícies móveis. */
@media(max-width:560px),(max-width:900px) and (max-height:560px){
  body.component-builder-open{--cb-site-header-height:clamp(54px,16vw,62px)}
  body.component-builder-open #componentsWindow.component-builder-standalone-shell{width:100%!important;height:calc(100dvh - var(--cb-site-header-height))!important}
  #componentsWindow .window-content,.cb-app,.cb-workspace{min-width:0!important;min-height:0!important}
  .cb-app{display:flex!important;flex-direction:column;overflow:hidden}

  .cb-palette{position:relative;flex:0 0 121px!important;max-height:none!important;padding:8px!important;box-sizing:border-box;overflow:hidden!important}
  .cb-palette>header,.cb-tools,.cb-recent-section{display:none!important}
  .cb-mode-tabs{position:static!important;width:calc(100% - 49px);height:41px;margin:0 0 7px!important;padding:3px!important;box-sizing:border-box}
  .cb-mode-tabs button{min-height:33px!important;font-size:10px!important}
  .cb-open-leaks{position:absolute;top:8px;right:8px;width:41px!important;height:41px;min-height:41px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center;border-radius:10px!important}
  .cb-open-leaks>span{grid-row:auto;width:27px;height:27px}.cb-open-leaks b,.cb-open-leaks small{display:none!important}
  .cb-add-grid{height:65px;display:grid!important;grid-auto-flow:column;grid-auto-columns:70px;grid-template-columns:none!important;gap:6px;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scroll-snap-type:x proximity;scrollbar-width:none}
  .cb-add-grid::-webkit-scrollbar{display:none}.cb-add-grid button{min-height:61px!important;height:61px;padding:4px;scroll-snap-align:start}.cb-add-grid span{font-size:8px}
  .cb-palette:has([data-component-tools][hidden]){flex-basis:57px!important}
  .cb-palette:has(.cb-auto-mode){flex-basis:174px!important}
  .cb-palette:has([data-auto-fields]:not([hidden])){overflow-y:auto!important;flex-basis:min(45dvh,300px)!important}
  .cb-palette:has(.cb-open-leaks.active){flex-basis:57px!important;overflow:hidden!important}
  .cb-auto-mode{margin:0 0 7px;padding:7px}.cb-auto-mode>label small{display:none}.cb-auto-mode>div textarea{font-size:16px}

  .cb-workspace{flex:1;overflow:hidden}.cb-toolbar{flex:0 0 auto;gap:5px;padding:6px 8px!important}
  .cb-toolbar>div:first-child{min-height:27px}.cb-toolbar>div:last-child{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;overflow:visible!important}
  body.component-builder-open .cb-toolbar .primary{grid-column:auto}
  .cb-toolbar button,body.component-builder-open .cb-toolbar button{min-width:0;min-height:42px!important;padding:3px!important;font-size:9px!important;line-height:1.1;white-space:normal}
  .cb-toolbar [data-editor-leak-game]{min-width:105px;max-width:135px}.cb-toolbar>div:first-child>b{font-size:13px!important}

  .cb-mobile-view-tabs{flex:0 0 39px;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px 8px;border-bottom:1px solid rgba(var(--theme-rgb),.12);background:#0d1a20}
  .cb-mobile-view-tabs button{min-height:31px;border:0;background:transparent;font-size:10px;font-weight:850}
  .cb-mobile-view-tabs button.active{color:#071e18;background:var(--theme-accent,#55e6c1)}

  .cb-canvas,.cb-classic-editor{min-height:0;flex:1!important;display:block!important;overflow:hidden!important;padding:6px!important}
  .cb-tree,.cb-classic-fields,.cb-classic-editor>.cb-preview-wrap{width:100%;height:100%;min-height:0!important;padding:8px!important;box-sizing:border-box;overflow-y:auto!important;overscroll-behavior:contain}
  .cb-canvas>.cb-preview-wrap{display:none!important;width:100%;height:100%;min-height:0;padding:10px!important;box-sizing:border-box;overflow-y:auto}
  .cb-mobile-preview .cb-canvas>.cb-tree,.cb-mobile-preview .cb-classic-fields{display:none!important}
  .cb-mobile-preview .cb-canvas>.cb-preview-wrap,.cb-mobile-preview .cb-classic-editor>.cb-preview-wrap{display:block!important}
  .cb-mobile-preview .cb-classic-editor>.cb-preview-wrap{height:100%;min-height:0!important}
  .cb-classic-editor>.cb-preview-wrap{display:none!important}
  .cb-preview{width:100%;padding:11px}.dc-gallery{grid-template-columns:1fr}.dc-section{align-items:stretch;flex-direction:column}.dc-thumbnail{width:72px;height:72px}

  .cb-node-main{width:100%!important}.cb-node-main small{max-width:calc(100vw - 96px)}
  .cb-node-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}.cb-node-actions button{min-height:42px;height:42px!important}
  .cb-classic-fields{padding:12px 9px!important}.cb-classic-fields textarea{min-height:120px!important}.cb-field-row{grid-template-columns:1fr!important}
  .cb-leaks{padding:9px!important}.cb-leaks>header{top:-9px;margin:-9px -9px 9px;padding:10px!important}.cb-leak-card{grid-template-columns:58px minmax(0,1fr)!important}.cb-leak-card>img,.cb-leak-thumb{width:58px!important;height:58px!important}

  .cb-properties-overlay,.cb-repost-overlay,.cb-save-overlay,.cb-processing-overlay{padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))!important}
  .cb-properties-modal{max-height:calc(100dvh - 14px)!important}.cb-properties-content{overflow-y:auto!important}.cb-properties-content>.cb-delivery,.cb-properties-content>.cb-inspector{padding:12px!important;margin:0!important}
  .cb-inspector input,.cb-inspector select,.cb-inspector textarea,.cb-delivery input,.cb-delivery select,.cb-classic-fields input,.cb-classic-fields textarea,.cb-modal input,.cb-modal textarea,.cb-save-overlay input{font-size:16px!important}
  .cb-builder-toast{position:fixed;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px)}
}

@media(max-width:360px){
  .cb-toolbar span{display:none}.cb-leak-switch em{display:none}.cb-toolbar [data-editor-leak-game]{min-width:96px}
  .cb-add-grid{grid-auto-columns:64px}.cb-node-actions{gap:4px}.cb-children{margin-left:5px}
}
