/* Editor dos sites novos (modelo "site-clinica"): estilos escopados em .sed, sem tocar no editor original. */
.sed .tsws { display: flex; gap: 6px; flex-wrap: wrap; }
.sed .tsw { display: inline-flex; width: 44px; height: 44px; padding: 5px; gap: 0; border-radius: 12px; border: 1px solid var(--a-ctl); background: var(--a-raised); overflow: hidden; }
.sed .tsw span { flex: 1; height: 100%; }
.sed .tsw span:first-child { border-radius: 7px 0 0 7px; }
.sed .tsw span:last-child { border-radius: 0 7px 7px 0; }
.sed .tsw[aria-pressed=true] { outline: 2px solid var(--redes-primary); outline-offset: 2px; }
.sed .segb { display: inline-flex; border: 1px solid var(--a-ctl); border-radius: 12px; overflow: hidden; }
.sed .seg-b { min-height: 44px; padding: 0 16px; border: 0; background: var(--a-raised); color: var(--redes-text); font-weight: 600; }
.sed .seg-b + .seg-b { border-left: 1px solid var(--a-ctl); }
.sed .seg-b[aria-pressed=true] { background: var(--a-emph); color: var(--redes-primary); }
.sed .lthumb { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 10px; position: relative; overflow: hidden; background: #f4ece1; }
.sed .lthumb i { position: absolute; display: block; }
.sed .lthumb.l-aurora i:nth-child(1) { left: 6px; top: 14px; width: 26px; height: 5px; background: #231f1c; border-radius: 2px; box-shadow: 0 9px 0 #8f6b33, 0 18px 0 -1px #d4af77; }
.sed .lthumb.l-aurora i:nth-child(2) { right: 6px; top: 8px; width: 22px; height: 46px; border-radius: 12px 12px 4px 4px; background: #d4af77; }
.sed .lthumb.l-atelier { background: #f4f1ec; }
.sed .lthumb.l-atelier i:nth-child(1) { left: 6px; top: 8px; right: 6px; height: 14px; background: #121212; }
.sed .lthumb.l-atelier i:nth-child(2) { left: 6px; top: 26px; width: 30px; height: 4px; background: #6e5426; }
.sed .lthumb.l-atelier i:nth-child(3) { left: 0; right: 0; bottom: 6px; height: 22px; background: #b08d57; }
.sed .lthumb.l-vitalle { background: #fbfaff; }
.sed .lthumb.l-vitalle i:nth-child(1) { left: 5px; top: 5px; width: 30px; height: 54px; border-radius: 9px; background: #efeafd; }
.sed .lthumb.l-vitalle i:nth-child(2) { right: 5px; top: 5px; width: 22px; height: 30px; border-radius: 9px; background: #b9a6f2; }
.sed .lthumb.l-vitalle i:nth-child(3) { right: 5px; bottom: 5px; width: 22px; height: 20px; border-radius: 9px; background: #1e1b2e; }
.sed .stage { height: calc(100dvh - 330px); }
.sed .mact { display: flex; gap: 8px; flex-wrap: wrap; }
.sed .mbar .check { margin: 0; min-height: 44px; align-items: center; }
.sed .lthumb.l-glow { background: #fff9ee; }
.sed .lthumb.l-glow i:nth-child(1) { left: 5px; top: 18px; width: 14px; height: 34px; border-radius: 99px; background: #fce5d6; }
.sed .lthumb.l-glow i:nth-child(2) { left: 14px; top: 10px; width: 18px; height: 46px; border-radius: 99px; background: #f3b08f; border: 2px solid #fff9ee; }
.sed .lthumb.l-glow i:nth-child(3) { right: 6px; top: 4px; width: 26px; height: 56px; border-radius: 99px; background: #e0602c; border: 2px solid #fff9ee; }
.sed .lthumb.l-serena { background: #fff; }
.sed .lthumb.l-serena i:nth-child(1) { left: 8px; right: 8px; top: 12px; height: 5px; background: #23241e; box-shadow: 0 9px 0 #23241e; }
.sed .lthumb.l-serena i:nth-child(2) { left: 22px; top: 31px; width: 20px; height: 26px; border-radius: 99px 99px 0 0; background: #a3a78e; }
.sed .lthumb.l-serena i:nth-child(3) { left: 4px; bottom: 7px; width: 14px; height: 18px; border-radius: 0 12px 0 12px; background: #5d604f; box-shadow: 42px 0 0 #5d604f; }
.sed .lthumb.l-noir { background: linear-gradient(180deg, #3a3640, #111114); }
.sed .lthumb.l-noir i:nth-child(1) { left: 7px; bottom: 22px; width: 34px; height: 6px; background: #f3efe8; box-shadow: 0 9px 0 #d9b779; }
.sed .lthumb.l-noir i:nth-child(2) { left: 7px; bottom: 7px; width: 18px; height: 6px; border: 1px solid #d9b779; }
.sed .lthumb.l-noir i:nth-child(3) { right: 6px; top: 10px; width: 2px; height: 30px; background: rgba(217,183,121,.6); }
.view.sed-view { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sed.edwrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sed .edtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--redes-line); background: var(--redes-surface); }
.sed .edtop .back { min-height: 36px; }
.sed .edname { font: 700 15px var(--redes-font-display); max-width: 30vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sed .svstate { font-size: 12.5px; font-weight: 700; color: var(--a-ok); }
.sed .svstate.dirty { color: var(--a-warn); }
.sed .svstate.bad { color: var(--a-bad); }
.sed .sp1 { flex: 1; }
.sed .edtop .seg-b { min-height: 36px; }
.sed .edgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 420px 1fr; }
.sed .edform { min-height: 0; overscroll-behavior: contain; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--redes-line); background: var(--redes-bg); }
.sed .edsec { border: 1px solid var(--redes-line); border-radius: 12px; background: var(--redes-surface); padding: 0 12px; }
.sed .edsec[open] { padding-bottom: 12px; }
.sed .edsec summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.sed .edsec summary::-webkit-details-marker { display: none; }
.sed .edsec summary b { flex: 1; font-size: 14.5px; }
.sed .edsec summary .muted { font-size: 12px; }
.sed .edsec.off summary b { color: var(--redes-muted); text-decoration: line-through; }
.sed .edsec .vis input { width: 20px; height: 20px; accent-color: var(--redes-primary); margin: 0; }
.sed .mvs { display: flex; gap: 4px; }
.sed .ib2 { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--a-ctl); background: var(--a-raised); color: var(--redes-text); font-weight: 700; }
.sed .ib2[disabled] { opacity: .35; }
.sed .edsec .field textarea { min-height: 64px; }
.sed .edsec .lb { display: block; font-size: 13px; font-weight: 600; color: var(--a-text2); margin: 10px 0 4px; }
.sed .lminis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.sed .lmini { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--a-ctl); background: var(--a-raised); color: var(--redes-text); font-size: 12.5px; }
.sed .lmini .lthumb { width: 54px; height: 44px; }
.sed .lmini[aria-pressed=true] { border-color: var(--redes-primary); box-shadow: inset 0 0 0 1px var(--redes-primary); }
.sed .lthumb.l-maison{background:#f7f2ea}
.sed .lthumb.l-maison i:nth-child(1){left:5px;top:12px;width:26px;height:5px;background:#431e2a;box-shadow:0 8px 0 #7c3c45,0 16px 0 -1px #431e2a}
.sed .lthumb.l-maison i:nth-child(2){right:5px;top:5px;width:20px;height:32px;background:#b17667;border:3px solid #ede0d7}
.sed .lthumb.l-maison i:nth-child(3){right:2px;bottom:3px;width:18px;height:8px;background:#fffcf7}
.sed .lthumb.l-pulse{background:#16131c}
.sed .lthumb.l-pulse i:nth-child(1){left:12px;right:12px;top:6px;height:5px;background:#f5f3ed;box-shadow:0 8px 0 #d6f285}
.sed .lthumb.l-pulse i:nth-child(2){left:5px;right:5px;bottom:4px;height:19px;border-radius:5px;background:linear-gradient(135deg,#554563,#ada094)}
.sed .lthumb.l-pulse i:nth-child(3){right:8px;bottom:6px;width:12px;height:8px;border-radius:2px;background:#d6f285}
.sed .lthumb.l-forma{background:#f1efea}
.sed .lthumb.l-forma i:nth-child(1){left:19px;right:4px;top:5px;height:5px;background:#272822;box-shadow:0 7px 0 #8b4227}
.sed .lthumb.l-forma i:nth-child(2){left:4px;right:4px;top:21px;height:16px;background:#c67550}
.sed .lthumb.l-forma i:nth-child(3){left:4px;top:6px;width:8px;height:1px;background:#272822}
.sed .lthumb.l-botanica{background:#f4f2e6}
.sed .lthumb.l-botanica i:nth-child(1){left:5px;top:13px;width:23px;height:5px;background:#203c31;box-shadow:0 8px 0 #4c6748}
.sed .lthumb.l-botanica i:nth-child(2){right:4px;top:4px;width:24px;height:33px;background:#adbb8c;border-radius:20px 20px 3px 3px}
.sed .lthumb.l-botanica i:nth-child(3){right:20px;bottom:2px;width:14px;height:19px;background:#4c6748;border-radius:15px;border:2px solid #f4f2e6}
.sed .lthumb.l-atlas{background:#f4f7fb}
.sed .lthumb.l-atlas i:nth-child(1){left:4px;top:12px;width:22px;height:5px;background:#182b4a;box-shadow:0 8px 0 #315e98}
.sed .lthumb.l-atlas i:nth-child(2){right:4px;top:5px;width:22px;height:20px;background:#a6cae8;border-radius:3px}
.sed .lthumb.l-atlas i:nth-child(3){right:16px;top:27px;width:10px;height:12px;background:#182b4a;border-radius:3px;box-shadow:12px 0 0 #a6cae8}
.sed .rows2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sed .rowit { display: grid; gap: 6px; padding: 10px; border-radius: 10px; border: 1px dashed var(--a-ctl); background: var(--a-raised); }
.sed .rowit .redes-input { min-height: 38px; font-size: 13.5px; }
.sed .rowit textarea.redes-input { min-height: 54px; }
.sed .rowbtns { display: flex; gap: 6px; justify-content: flex-end; }
.sed .warnt { color: var(--a-warn); }
.sed .addsec { display: flex; gap: 8px; padding: 4px 0 20px; }
.sed .addsec select { flex: 1; }
.sed .edstage { display: flex; justify-content: center; background: repeating-conic-gradient(var(--a-raised) 0% 25%, var(--redes-bg) 0% 50%) 50% / 24px 24px; overflow: hidden; }
.sed .edstage[data-device=tablet],
.sed .edstage[data-device=mobile] { padding: 16px; }
.sed .edbox { width: 100%; height: 100%; max-width: 100%; transition: width .3s ease; background: #fff; }
.sed .edstage[data-device=mobile] .edbox { border: 8px solid #1b1d1c; border-radius: 30px; overflow: hidden; height: calc(100% - 8px); }
.sed .edstage[data-device=tablet] .edbox { border: 10px solid #1b1d1c; border-radius: 22px; overflow: hidden; height: calc(100% - 8px); }
.sed .edframe { display: block; width: 100%; height: 100%; border: 0; }
.sed .imgrow { display: flex; gap: 10px; align-items: center; }
.sed .imgth { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--a-ctl); background: var(--a-raised); display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--redes-muted); padding: 2px; }
.sed .imgth img { width: 100%; height: 100%; object-fit: cover; }
.sed .imgbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.sed .galed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.sed .gitem { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--a-ctl); background: var(--a-raised); }
.sed .gitem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.sed .gitem .redes-input { min-height: 34px; font-size: 12px; padding: 4px 8px; }
.stockdlg { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 18px; border: 1px solid var(--redes-line); border-radius: 16px; background: var(--redes-surface); color: var(--redes-text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.stockdlg::backdrop { background: rgba(0,0,0,.55); }
.stockhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.stockhead h3 { margin: 0 0 2px; font-size: 18px; }
.stockhead a { color: var(--redes-primary); font-weight: 700; }
.stockbar { display: grid; grid-template-columns: 1fr 170px auto; gap: 8px; margin-bottom: 6px; }
.stockgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 8px; }
.stockitem { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--a-raised); }
.stockitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.stockitem:hover img,
.stockitem:focus-visible img { transform: scale(1.05); }
.stockitem:focus-visible { outline: 3px solid var(--redes-primary); outline-offset: 2px; }
.stockitem .by { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stockitem.busy { opacity: .55; cursor: progress; }
.stockitem.done { border-color: var(--a-ok); }
.stockitem.done::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--a-ok); color: #fff; font-weight: 800; }
.rowit.wimg { grid-template-columns: 64px 1fr; }
.rimgw { display: flex; flex-direction: column; gap: 4px; align-items: center; grid-row: span 4; }
.rimg { width: 64px; height: 64px; padding: 0; border-radius: 10px; border: 1px dashed var(--a-ctl); background: var(--a-raised); color: var(--redes-muted); font-size: 11.5px; font-weight: 700; overflow: hidden; cursor: pointer; }
.rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sed .edname { font-size: 15px; font-weight: 700; }
.sed .hint { font-size: 12.5px; color: var(--a-text2); margin: 6px 0 0; }
.sed .muted { color: var(--redes-muted); }
.sed .sp1 { flex: 1; }
.sed .redes-input { width: 100%; }
.sed .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sed .sdomain { padding: 12px; border: 1px solid var(--redes-line); border-radius: 12px; background: var(--redes-surface); }
.sed .sdomain code { background: var(--a-raised); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 900px) {
  .view.sed-view { overflow-y: auto; display: block; }
  .sed .edgrid { grid-template-columns: 1fr; }
  .sed .edform { border-right: 0; max-height: none; }
  .sed .edstage { min-height: 70vh; }
  .stockbar { grid-template-columns: 1fr; } .stockgrid { grid-template-columns: repeat(2, 1fr); } .stockdlg { padding: 12px; }
}

/* estilos Lumière, Éclat, Pétala e Prisma */
.sed .lthumb.l-lumiere { background: radial-gradient(circle at 80% 15%, #dca0af, transparent 60%), radial-gradient(circle at 10% 70%, #fbeaee, transparent 60%), #fffafa; }
.sed .lthumb.l-lumiere i:nth-child(1) { left: 6px; top: 16px; width: 24px; height: 5px; background: #33191f; border-radius: 2px; box-shadow: 0 9px 0 #9c4560; }
.sed .lthumb.l-lumiere i:nth-child(2) { right: 5px; top: 10px; width: 28px; height: 30px; background: #dca0af; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.sed .lthumb.l-lumiere i:nth-child(3) { left: 6px; bottom: 8px; width: 22px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #9c4560, #dca0af); }
.sed .lthumb.l-eclat { background: linear-gradient(180deg, #8a7366, #2c2420); }
.sed .lthumb.l-eclat i:nth-child(1) { left: 6px; bottom: 16px; width: 40px; height: 8px; background: #fff; }
.sed .lthumb.l-eclat i:nth-child(2) { left: 6px; bottom: 8px; right: 6px; height: 1px; background: rgba(255,255,255,.6); }
.sed .lthumb.l-eclat i:nth-child(3) { left: 0; top: 0; bottom: 0; width: 12px; background: #fbf8f6; box-shadow: 26px 0 0 -0px rgba(251,248,246,0); }
.sed .lthumb.l-petala { background: radial-gradient(circle at 70% 40%, #ffe8dc, #fff9f5 70%); }
.sed .lthumb.l-petala i:nth-child(1) { right: 6px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: #f0ac92; box-shadow: 0 0 0 4px #fff9f5, 0 0 0 5px #a4482b; }
.sed .lthumb.l-petala i:nth-child(2) { left: 6px; top: 18px; width: 20px; height: 5px; background: #3a2224; border-radius: 2px; box-shadow: 0 9px 0 #a4482b; }
.sed .lthumb.l-petala i:nth-child(3) { left: 14px; top: 4px; width: 8px; height: 8px; border-radius: 80% 0 80% 0; background: #f0ac92; }
.sed .lthumb.l-prisma { background: linear-gradient(180deg, #f7fafd 55%, #e5edf7); }
.sed .lthumb.l-prisma i:nth-child(1) { left: 6px; top: 14px; width: 26px; height: 7px; background: #18243a; border-radius: 2px; box-shadow: 0 10px 0 #37578f; }
.sed .lthumb.l-prisma i:nth-child(2) { right: 6px; top: 9px; width: 22px; height: 30px; border-radius: 5px; background: linear-gradient(135deg, #37578f, #a2badc); transform: perspective(60px) rotateY(-18deg); }
.sed .lthumb.l-prisma i:nth-child(3) { left: 0; right: 0; bottom: 0; height: 14px; background-image: linear-gradient(rgba(55,87,143,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(55,87,143,.4) 1px, transparent 1px); background-size: 8px 8px; }

.sed .imgpos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; } .sed .imgpos .lb { margin: 0 6px 0 0; } .sed .imgpos[hidden] { display: none; } .sed .imgpos .ipb { width: auto; min-width: 34px; padding: 0 10px; } .sed .imgpos.compact { margin: 4px 0 0; gap: 4px; } .sed .imgpos.compact .ipb { padding: 0 8px; } .sed .imgpos .ipb[aria-pressed=true] { background: var(--redes-accent, #2563eb); color: #fff; border-color: transparent; }

/* subpáginas dentro do editor do site */
.edsec .subp .spr, .edsec .gled .gli { background: var(--a-raised, var(--redes-surface)); }

.sed .edsec.preview-selected { border-color: var(--redes-primary); box-shadow: 0 0 0 2px var(--a-emph); }
