.ed{display:grid;gap:20px;align-items:start}
@media(min-width:1180px){.ed{grid-template-columns:minmax(0,1fr) 340px}}
.saved{display:inline-flex;align-items:center;gap:6px;border:1px solid #e3e6f4;border-radius:12px;padding:9px 14px;font-size:14px;color:#5b6285;background:#fff;min-width:96px;max-width:240px;justify-content:center;text-align:center}
.save-note{color:#3a4070;font-size:14.5px;line-height:1.45;max-width:68ch;margin:6px 0 0}
.ed .tabs{flex-wrap:wrap;overflow:visible}
#pay-setup .act small{display:block;margin-top:2px}
#pay-setup .pay-sec{border:1px solid #eceefa;border-radius:16px;padding:14px 16px;margin:0 0 14px;background:#fff;min-width:0}
#pay-setup .pay-sec h2{margin:0 0 6px}
#pay-setup label{display:block;font-weight:700;font-size:14px;margin:10px 0;color:#12163f}
#pay-setup input,#pay-setup textarea,#pay-setup select{display:block;width:100%;box-sizing:border-box;margin-top:6px}
#pay-setup .pay-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#pay-setup .pay-qr{width:140px;max-width:100%;margin-top:10px}
#pay-setup .pay-qr svg{width:100%;height:auto;display:block}
#pay-setup .pay-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
#pay-setup .act{align-items:flex-start}
.ed .tabs .tab-off{display:inline-flex}
.ed .tabs button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.ed .tabs button{padding:10px 12px}}
.saved.ok{color:#16a34a}.saved.ok .ic{stroke-width:3}.saved.bad{color:#dc2626}.saved.busy{color:#4a2fd0}
.saved:empty{display:none}
.ed-panels{margin-top:18px}
.ed-panels label,.ed-panels legend,.lbl{font-size:14px;font-weight:600;color:#4f5690}
.ed-panels input:not([type=checkbox]):not([type=radio]):not([type=file]),.ed-panels select,.ed-panels textarea{border-radius:14px;color:#12163f;font-weight:600}
.ed-panels textarea{font-weight:500;line-height:1.45}
.subtabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.subtabs button{border:1.5px solid #d9dced;background:#fff;border-radius:999px;padding:7px 14px;font-weight:700;font-size:13px;color:#3a4070}
.subtabs button[aria-selected=true]{background:#efeaff;border-color:#5b4cf0;color:#3b3fd0}
.count{display:block;text-align:right;color:#7a80a8;font-weight:500;font-size:12px;margin-top:4px}
.err{color:#dc2626;font-size:13px;margin:-6px 0 10px;min-height:0}.err:empty{display:none}
.h2{font-size:17px;color:#12163f;margin:18px 0 10px}.h2:first-child{margin-top:4px}
.h3{font-size:14px;font-weight:700;color:#4f5690;margin:22px 0 8px}
#alert-log{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6fd;padding:10px;border-radius:12px;font-size:13px}
.muted-l{color:#5b6285;font-size:13.5px;margin:2px 0 10px}
.photo-row{display:grid;gap:18px;margin-top:6px}
@media(min-width:620px){.photo-row{grid-template-columns:150px 1fr}}
.photo{display:grid;gap:10px;justify-items:center;align-content:start}
.photo img{width:104px;height:104px;border-radius:50%;object-fit:cover;box-shadow:0 8px 22px rgba(40,40,140,.25);border:3px solid #fff}
.btn-cfg fieldset{border:0;padding:0;margin:0}
.btn-cfg legend{margin-bottom:8px;padding:0}
.lay{display:flex!important;align-items:center;gap:10px;font-weight:600!important;color:#1a1f55!important;margin:0 0 10px}
.lay input{width:18px;height:18px;accent-color:#4a46e8;flex:none}
.lay-thumb{width:46px;height:64px;border-radius:8px;border:1px solid #d9dced;flex:none;background:#f4f5fb}
.lay-classic{background:linear-gradient(#efe8ff 40%,#fff 40%)}
.lay-card{background:linear-gradient(#1a1038 30%,#5b3cc4 30% 55%,#fff 55%)}
.lay-prestige{background:radial-gradient(80% 40% at 50% 18%,#ff2bd6,#14081f 42%,#ffe14a 43% 52%,#14081f 53%)}
.chk{display:flex!important;align-items:center;gap:10px;font-weight:500!important;color:#1a1f55!important;margin-bottom:8px!important}
.chk input{width:18px;height:18px;accent-color:#4a46e8;flex:none}
.add-btn{border:0;background:none;color:#3b3fd0;font-weight:700;font-size:14.5px;padding:6px 0}
.row-ed{display:grid;grid-template-columns:minmax(0,0.8fr) minmax(0,1.4fr);gap:10px;align-items:end;margin-bottom:6px}
.row-ed .err{grid-column:1/-1;margin:-6px 0 6px}
.row-ed label{margin-bottom:0!important;min-width:0}
.row-ed.is-hidden{opacity:.72}
.row-acts,.media-acts,.vid-acts{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.row-acts{grid-column:1/-1;justify-content:flex-end;min-width:0;max-width:100%}
.link-short{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;flex:1 1 auto;margin-right:auto}
.link-short code{min-width:0;overflow-wrap:anywhere;font-size:13px}
@media(max-width:560px){.link-short{flex-basis:100%}}
.row-ed .sl-qr{grid-column:1/-1;justify-self:end}
.row-acts .bk-x,.media-acts .bk-x{width:40px;height:44px}
.add-btn:disabled{opacity:.45}
.av-fallback,.vid-fallback{display:grid;place-items:center;background:linear-gradient(135deg,#b04cf3,#e946d6);color:#fff;font-weight:800}
.av-fallback{width:104px;height:104px;border-radius:50%;font-size:36px;box-shadow:0 8px 22px rgba(40,40,140,.25);border:3px solid #fff}
.vid-fallback{width:96px;height:96px;border-radius:16px;font-size:12px;text-align:center;padding:8px}
.x{border:0;background:#f1f2fb;color:#4f5690;width:40px;height:44px;border-radius:12px;display:grid;place-items:center}
.x:hover{background:#fde6e6;color:#dc2626}
.media-ed figure.is-hidden{opacity:.6}
.media-ed figure.is-hidden img{filter:grayscale(.4)}
@media(max-width:560px){.row-ed{grid-template-columns:1fr}.row-acts{justify-content:flex-end}}
.socials-ed{display:grid;gap:0 14px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.sl-row{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid #eceef8;min-width:0}
.sl-main{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.sl-kw{width:8.5rem;max-width:100%;min-width:0}
.sl-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;max-width:100%}
.sl-add{display:grid;gap:8px;margin-top:12px}
@media(min-width:720px){.sl-add{grid-template-columns:minmax(0,8rem) minmax(0,1fr) auto;align-items:end}}
.sl-qr{max-width:140px}
.sl-qr svg{width:100%;height:auto}
.vid{display:flex;gap:16px;align-items:center;margin-bottom:6px}.vid img{width:96px;height:96px;object-fit:cover;border-radius:16px}.vid p{margin-bottom:10px;color:#3a4070;font-size:14px}
.media-ed{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-bottom:8px}
.media-ed figure{position:relative;margin:0}.media-ed img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;display:block}
.media-ed input{width:100%;margin-top:6px;border:1.5px solid var(--field);border-radius:10px;padding:7px 9px;font-size:13px}
.media-ed .x{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.25)}
.accents{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.acc{display:flex!important;align-items:center;gap:10px;border:1.5px solid var(--field);border-radius:14px;padding:10px 16px;margin:0!important;color:#1a1f55!important}
.acc input{position:absolute;opacity:0}.acc span{width:22px;height:22px;border-radius:50%}
.acc-violet span{background:linear-gradient(135deg,#b04cf3,#e946d6)}.acc-pink span{background:linear-gradient(135deg,#f06292,#ff7a59)}.acc-blue span{background:linear-gradient(135deg,#4f8cff,#22d3ee)}
.acc-neon-m span{background:#14081f;box-shadow:inset 0 0 0 3px #ff2bd6}.acc-neon-b span{background:#070b22;box-shadow:inset 0 0 0 3px #3df0ff}.acc-neon-p span{background:#14081f;box-shadow:inset 0 0 0 3px #ffe14a}
.acc:has(input:checked){border-color:#5b4cf0;box-shadow:0 0 0 3px rgba(124,92,255,.2)}
.acc:has(input:focus-visible){outline:2px solid #5b4cf0;outline-offset:2px}
.edprev-in{background:#f4f6fd;border:1px solid #eceefa;border-radius:20px;padding:16px 14px 20px;text-align:center}
.edprev h2{font-size:15px;color:#12163f;margin-bottom:12px}
@media(min-width:1180px){.edprev{position:sticky;top:14px}}
.edprev .phone{max-width:290px;padding:7px;box-shadow:0 12px 30px rgba(20,20,90,.35);background:linear-gradient(150deg,#1b2154,#0a0d26)}
.edprev .phone-screen{height:560px;overflow-y:auto;border-radius:34px;scrollbar-width:none}
.edprev .phone-notch{background:#050719}
.edprev .btn{margin-top:14px}
.edprev .pp{text-align:left}
.ed>*,.photo-row>*{min-width:0}

/* Page builder tab (Revision 14) */
.bd-head{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;margin-bottom:6px}
.bd-toggle{margin:0!important;font-weight:700!important;font-size:15.5px}
.bd-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bd-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:700;background:#eef0fb;color:#4f5690}
.bd-status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.bd-draft{background:#fff4dc;color:#8a5a00}.bd-changed{background:#fff4dc;color:#8a5a00}.bd-live{background:#e3f7ea;color:#16794a}.bd-lock{background:#f1f2fb;color:#5b6285}
.bd-count{font-size:12.5px;color:#5b6285;font-weight:600}
.bd-fix{margin:4px 0 10px!important}
.bk-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.bk-empty{border:1.5px dashed #cfd3ee;border-radius:14px;padding:18px;text-align:center;color:#5b6285;font-size:14px}
.bk{border:1.5px solid #dfe2f6;border-radius:14px;background:#fff}
.bk-bad{border-color:#e5484d}
.bk-hid{background:#f7f8fd}.bk-hid .bk-main{opacity:.65}
.bk-bar{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 12px;flex-wrap:wrap}
.bk-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f1f0ff;color:#4a46e8;font-size:18px;flex:none}
.bk-main{flex:1 1 140px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:0;background:none;text-align:left;padding:4px 2px;color:#12163f;min-height:40px;justify-content:center}
.bk-main b{font-size:14.5px}
.bk-main small{font-size:12.5px;color:#5b6285;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk-main:focus-visible,.bk-x:focus-visible,.bd-type:focus-visible{outline:2px solid #5b4cf0;outline-offset:2px}
.bk-badge{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 9px;background:#eef0fb;color:#4f5690}
.bk-badge-lock{background:#fde8e8;color:#b42318}
.bk-acts{display:flex;gap:4px;margin-left:auto}
.bk-x{border:0;background:#f1f2fb;color:#4f5690;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font-size:17px}
.bk-x:hover:not(:disabled){background:#e5e7fb}
.bk-x:disabled{opacity:.35}
.bk-x[aria-pressed=true]{background:#fff4dc;color:#8a5a00}
.bk-del:hover:not(:disabled){background:#fde6e6;color:#dc2626}
.ic.up{transform:rotate(180deg)}
.bk-form{border-top:1px solid #eceefa;padding:12px 14px 6px}
.bk-form label .err{display:block;margin:4px 0 0}
.bk-form .count{margin-top:2px}
.bk-img{display:grid;gap:8px;justify-items:start;margin-bottom:10px}
.bk-img img{width:120px;height:120px;object-fit:cover;border-radius:12px}
.bk-noimg{display:grid;place-items:center;width:120px;height:80px;border-radius:12px;background:#f1f2fb;color:#5b6285;font-size:12.5px}
.linkish{border:0;background:none;color:#3b3fd0;font-weight:700;padding:0;text-decoration:underline;font-size:inherit}
.bd-add .h2{margin-top:22px}
.bd-types{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.bd-type{display:flex;gap:10px;align-items:flex-start;text-align:left;border:1.5px solid #dfe2f6;background:#fff;border-radius:14px;padding:10px 12px;color:#12163f;min-height:56px}
button.bd-type:hover:not(:disabled){background:#f6f5ff;border-color:#bfc6f5}
button.bd-type:disabled{opacity:.5}
.bd-type b{display:block;font-size:14px}.bd-type small{display:block;font-size:12px;color:#5b6285;line-height:1.35;margin-top:2px}
.bd-type-lock{background:#f7f8fd;border-style:dashed}
.bd-type-lock a{color:#3b3fd0;font-weight:700}
.bd-t-ic{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f1f0ff;color:#4a46e8;font-size:17px;flex:none}
.bd-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid #eceefa}
.bd-foot .muted-l{margin:0}
.bd-foot .btn:disabled{opacity:.5}
.bd-locked{display:flex;gap:14px;align-items:flex-start;border:1.5px dashed #cfd3ee;border-radius:14px;padding:16px}
.bd-locked .h2{margin-top:0}
@media(max-width:560px){.bk-acts{margin-left:0;width:100%;justify-content:flex-end}.bd-types{grid-template-columns:1fr}}
