.phead { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.qrbox { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 4px; margin: 6px 0; }
.qrbox svg { width: 100%; height: 100%; display: block; }

/* ── editor 3 colunas ── */
body.ed-mode #tabs, body.ed-mode #planStrip { display: none !important; }
.view.full { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.edv { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--redes-bg); }
.edh { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--redes-surface); border-bottom: 1px solid var(--redes-line); flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.edh > * { flex: none; }
.edh .sp { flex: 1; }
.e-title { font: 700 16px/1.2 'Manrope', system-ui, sans-serif; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-url { font-size: 13px; color: var(--redes-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.e-save { font-size: 12.5px; color: var(--redes-muted); } .e-save.bad { color: #d4493a; font-weight: 600; }
.e-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--redes-surface-2, rgba(128,128,128,.14)); color: var(--redes-muted); white-space: nowrap; }
.e-pill.ok { background: rgba(47,167,122,.16); color: #2fa77a; } .e-pill.warn { background: rgba(212,160,60,.18); color: #b98a22; } .e-pill.bad { background: rgba(212,73,58,.15); color: #d4493a; }
.e-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); font: 600 13.5px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); text-decoration: none; cursor: pointer; }
.e-btn:hover { border-color: var(--redes-primary); } .e-btn:disabled, .e-btn.off { opacity: .5; pointer-events: none; }
.e-btn.pri { background: var(--redes-primary); border-color: var(--redes-primary); color: #fff; }
.e-btn.bad { color: #d4493a; } .e-btn.sm { min-height: 34px; padding: 0 12px; } .e-btn.wide { width: 100%; } .e-btn.dash { border-style: dashed; background: transparent; width: 100%; margin-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--redes-line); border-radius: 10px; overflow: hidden; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; background: var(--redes-surface); color: var(--redes-text); font: 600 13px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); cursor: pointer; }
.seg button.on { background: var(--redes-primary); color: #fff; }
.mobtog { display: none; }
.edb { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr) 344px; }
.edb[hidden], .pubscr[hidden] { display: none; }
.edl, .edr { background: var(--redes-surface); overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.edl { border-right: 1px solid var(--redes-line); } .edr { border-left: 1px solid var(--redes-line); padding: 16px; gap: 12px; }
.tabs { }
.edl .tabs { display: flex; gap: 4px; padding: 0 16px; border: 0; }
.edl .tabs button { min-height: 48px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--redes-muted); font: 700 14px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); cursor: pointer; }
.edl .tabs button.on { color: var(--redes-text); border-bottom-color: var(--redes-primary); }
.lbody { padding: 12px 16px; flex: 1; }
.lfoot { padding: 14px 16px 16px; border-top: 1px solid var(--redes-line); }
.ls { font: 700 12px/1.2 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); color: var(--redes-muted); margin: 0 0 8px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; border: 1px solid var(--redes-line); border-radius: 12px; background: var(--redes-surface); cursor: pointer; }
.row.sel { border-color: var(--redes-primary); box-shadow: 0 0 0 1px var(--redes-primary); background: rgba(47,167,122,.08); }
.row.off { opacity: .55; } .row.over { border-style: dashed; border-color: var(--redes-primary); } .row.drag { opacity: .4; }
.grip { color: var(--redes-muted); cursor: grab; font-size: 14px; letter-spacing: -3px; padding: 0 4px; user-select: none; }
.ico { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--redes-line); display: grid; place-items: center; color: var(--redes-primary); background: var(--redes-bg); }
.rt { flex: 1; min-width: 0; } .rt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rt small { display: block; color: var(--redes-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi { flex: none; width: 26px; height: 32px; border: 0; background: none; color: var(--redes-muted); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.mi:hover:not(:disabled) { background: var(--redes-bg); color: var(--redes-text); } .mi:disabled { opacity: .3; cursor: default; } .mi.bad { color: #d4493a; }
.pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .pal.big { grid-template-columns: repeat(3, 1fr); }
.pal button { padding: 0; border: 1px solid var(--redes-line); border-radius: 9px; background: var(--redes-surface); overflow: hidden; cursor: pointer; color: var(--redes-text); }
.pal button.on { border: 2px solid var(--redes-primary); }
.sws { display: flex; height: 26px; } .sws i { flex: 1; } .pn { display: block; font: 600 10.5px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); padding: 6px 2px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fnts { display: flex; flex-direction: column; gap: 6px; }
.fnts button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--redes-line); border-radius: 10px; background: var(--redes-surface); color: var(--redes-text); text-align: left; cursor: pointer; }
.fnts button.on { border: 2px solid var(--redes-primary); padding: 9px 11px; background: rgba(47,167,122,.08); }
.fa { font-size: 26px; line-height: 1; width: 40px; flex: none; text-align: center; } .fb b { display: block; font-size: 13.5px; } .fb small { display: block; color: var(--redes-muted); font-size: 12px; margin-top: 2px; }
.edm { display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 32px 24px; min-height: 0; background: var(--redes-bg); }
.phone { width: 414px; max-width: 100%; height: min(760px, 100%); min-height: 520px; background: #1b1d1c; border-radius: 44px; padding: 12px 12px 0; box-shadow: 0 30px 60px rgba(0,0,0,.18); flex: none; }
.phin { height: 100%; background: #fff; border-radius: 34px 34px 0 0; overflow: hidden; }
.phone.desk { width: 100%; max-width: 980px; border-radius: 14px; padding: 10px 10px 0; } .phone.desk .phin { border-radius: 6px 6px 0 0; }
.phin iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.f { display: flex; flex-direction: column; gap: 6px; } .fl { font: 700 12.5px/1.2 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); } .fh { font-size: 12px; color: var(--redes-muted); line-height: 1.45; margin: 0; }
.fi { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); font: 400 14px/1.3 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); }
textarea.fi { resize: vertical; } .fi:focus { outline: 2px solid var(--redes-primary); outline-offset: 0; }
.ch2 { display: grid; gap: 8px; } .ch2 button { min-height: 46px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); font: 600 13px/1.2 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); text-align: left; cursor: pointer; }
.ch2 button.on { border: 2px solid var(--redes-primary); background: rgba(47,167,122,.1); padding: 7px 9px; }
.icg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } .icg button { height: 42px; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); display: grid; place-items: center; cursor: pointer; }
.icg button.on { border: 2px solid var(--redes-primary); color: var(--redes-primary); }
.none { padding: 24px 8px; color: var(--redes-muted); font-size: 13.5px; line-height: 1.5; } .none b { display: block; color: var(--redes-text); margin-bottom: 4px; }
.rhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .rhead small { display: block; font-size: 12px; color: var(--redes-muted); } .rhead b { font-size: 17px; }
.racts { display: flex; gap: 8px; flex: none; }
.sw { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--redes-line); border-radius: 10px; font: 700 12px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); } .sw.wide { margin-bottom: 8px; }
.sw input { width: 24px; height: 24px; padding: 0; border: 0; background: none; } .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.gstrip { height: 36px; border-radius: 10px; border: 1px solid var(--redes-line); }
.rg { display: flex; align-items: center; gap: 12px; } .rg input { flex: 1; accent-color: var(--redes-primary); }
.subi { border: 1px solid var(--redes-line); border-radius: 12px; padding: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; } .sh { display: flex; justify-content: space-between; align-items: center; font: 700 12.5px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); }
.ck { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; } .ck input { width: 20px; height: 20px; accent-color: var(--redes-primary); }
.imgup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .imgup img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--redes-line); }
.addg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .addg button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid var(--redes-line); border-radius: 12px; background: var(--redes-surface); color: var(--redes-text); text-align: left; cursor: pointer; } .addg button:hover { border-color: var(--redes-primary); } .addg svg { color: var(--redes-primary); }
.cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cbox { border: 1px solid var(--redes-line); border-radius: 12px; padding: 12px; } .cbox.good { border-color: #2fa77a; background: rgba(47,167,122,.08); }
.cbox em { display: block; font: 700 10.5px/1 var(--redes-font-main, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); letter-spacing: .1em; color: var(--redes-muted); font-style: normal; } .cbox b { display: block; font-size: 22px; margin: 6px 0 2px; } .cbox small { color: var(--redes-muted); font-size: 12px; }
.bar { display: block; height: 6px; border-radius: 9px; background: var(--redes-line); margin-top: 10px; overflow: hidden; } .bar u { display: block; height: 100%; background: #2fa77a; } .bar.bad u { background: #d4493a; }
.cmpn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2fa77a; font-weight: 600; margin: 12px 0; } .cmp .acts { display: flex; justify-content: flex-end; gap: 8px; }
.lead { padding: 10px 0; border-bottom: 1px solid var(--redes-line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; } .lead .m { width: 100%; font-size: 12.5px; color: var(--redes-muted); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .kv div { border: 1px solid var(--redes-line); border-radius: 12px; padding: 12px; } .kv b { display: block; font-size: 24px; } .kv span { font-size: 12px; color: var(--redes-muted); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 80px; } .spark i { flex: 1; background: var(--redes-primary); border-radius: 2px 2px 0 0; opacity: .8; }
/* publicação */
.pubscr { flex: 1; overflow-y: auto; min-height: 0; } .pw { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; }
.phd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .phd h1 { margin: 0 0 4px; font-size: 24px; } .phd p { margin: 0; color: var(--redes-muted); }
.addbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } .pcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pc { background: var(--redes-surface); border: 1px solid var(--redes-line); border-radius: 16px; padding: 20px; } .pc h2 { margin: 0 0 4px; font-size: 18px; } .psub { margin: 0 0 14px; color: var(--redes-muted); font-size: 13.5px; line-height: 1.5; }
.slugrow { display: flex; align-items: center; border: 1px solid var(--redes-line); border-radius: 10px; overflow: hidden; margin: 6px 0 8px; flex-wrap: wrap; } .slugrow .pre { padding: 0 12px; background: var(--redes-bg); align-self: stretch; display: flex; align-items: center; color: var(--redes-muted); font-size: 13.5px; border-right: 1px solid var(--redes-line); } .slugrow .fi { border: 0; flex: 1; min-width: 120px; border-radius: 0; } .slugrow .e-pill { margin: 0 8px; }
.hr { height: 1px; background: var(--redes-line); margin: 16px 0; } .soon { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px; border: 1px dashed var(--redes-line); border-radius: 10px; color: var(--redes-muted); font-size: 13px; line-height: 1.45; }
.qrw { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.drop { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--redes-line); border-radius: 12px; padding: 14px; margin-bottom: 14px; } .thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; background: var(--redes-bg); display: grid; place-items: center; overflow: hidden; color: var(--redes-muted); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.who2 { display: flex; gap: 12px; align-items: center; padding: 10px 0; } .who2 > div { flex: 1; } .who2 small { display: block; color: var(--redes-muted); font-size: 12.5px; } .avc { width: 40px; height: 40px; border-radius: 50%; background: var(--redes-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 1560px) { .e-url { display: none; } }
@media (max-width: 1100px) { .edb { grid-template-columns: 300px minmax(0, 1fr) 300px; } .e-url { display: none; } }
@media (max-width: 900px) {
  .view.full { overflow-y: auto; } .edb { display: flex; flex-direction: column; } .edl, .edr { border: 0; overflow: visible; } .edm { display: none; padding: 12px; }
  .edv.show-prev .edm { display: flex; } .edv.show-prev .edl, .edv.show-prev .edr { display: none; } .mobtog { display: inline-flex; }
  .phone { height: 70vh; } .pgrid2 { grid-template-columns: 1fr; } .e-title { max-width: 140px; }
}

/* lista de páginas */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.pcard { background: var(--redes-surface); border: 1px solid var(--redes-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pc-head { display: flex; gap: 12px; align-items: flex-start; }
.pc-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--redes-bg); border: 1px solid var(--redes-line); color: var(--redes-primary); display: grid; place-items: center; }
.pc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-title { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.pc-url { font-size: 12.5px; color: var(--redes-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.pc-url:hover { color: var(--redes-primary); text-decoration: underline; }
.pc-note { margin: 0; font-size: 12.5px; color: var(--redes-muted); padding: 8px 10px; border-radius: 10px; background: var(--redes-bg); }
.pc-note.warn { color: #b98a22; background: rgba(212,160,60,.14); font-weight: 600; }
.pc-tools { display: flex; gap: 6px; border-top: 1px solid var(--redes-line); padding-top: 12px; flex-wrap: wrap; }
.pt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); font: 600 13px/1 var(--redes-font-main, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.pt:hover { border-color: var(--redes-primary); }
.pt.main { background: var(--redes-primary); border-color: var(--redes-primary); color: #fff; padding: 0 16px; }
.pt.bad { color: #d4493a; margin-left: auto; } .pt.bad:hover { border-color: #d4493a; background: rgba(212,73,58,.08); }
.pt:not(.main) span { display: none; }
@media (max-width: 420px) { .pc-tools .pt:not(.main) { flex: 1; } }

/* janelas: cabeçalho com botão fechar */
.mx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; position: sticky; top: -18px; background: var(--redes-surface); padding-top: 2px; z-index: 2; }
.mx-head h2 { margin: 0 !important; }
.mx-close { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--redes-line); background: var(--redes-surface); color: var(--redes-text); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mx-close:hover { border-color: #d4493a; color: #d4493a; }
/* linhas de bloco: ações aparecem ao passar o mouse ou no bloco selecionado (sempre visíveis em telas de toque) */
.row { position: relative; min-height: 56px; }
.row .mi { display: none; }
.row:hover .mi, .row.sel .mi, .row:focus-within .mi { display: grid; }
@media (hover: none) { .row .mi { display: grid; } }
.subi .sh > span:last-child { display: flex; gap: 2px; align-items: center; }

/* amostras de cor */
.swc { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--redes-line); border-radius: 10px; cursor: pointer; min-width: 0; }
.swc:hover { border-color: var(--redes-primary); }
.swc.wide { margin-bottom: 8px; padding: 8px; }
.chip-w { position: relative; flex: none; width: 30px; height: 30px; }
.chip-c { position: absolute; inset: 0; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.chip-w input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swt { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.25; }
.swt b { font-size: 11.5px; letter-spacing: .02em; color: var(--redes-muted); font-weight: 700; }
.swc.wide .swt span { font-weight: 700; color: var(--redes-text); }
.cols .swc { padding: 5px; gap: 6px; } .cols .chip-w { width: 26px; height: 26px; }
.row.fixed { border-style: dashed; cursor: pointer; }
.fixtag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--redes-muted); background: var(--redes-bg); padding: 3px 7px; border-radius: 99px; }
