/* Webbly visual editor (assets/editor.js): full-screen shell around the live website.
   Dark chrome to match the dashboard; silver-white accent (#e4e4e7) for selection, a stronger blue (#5b7cff) inside
   the page so outlines show on light and dark websites alike. */
.ed{position:fixed;inset:0;z-index:2000;display:grid;grid-template-rows:60px minmax(0,1fr);background:#0b0b0d;color:#eef0f5;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
body.ed-open{overflow:hidden}.ed{height:100vh;height:100dvh;overscroll-behavior:contain}html.wb-locked-page{overflow:hidden;overscroll-behavior:none}
.ed button{font:inherit;color:inherit}
.ed-top{display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.08);min-width:0}
.ed-name{display:grid;gap:2px;min-width:0;margin-right:auto}.ed-name b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ed-name span{font-size:12px;color:#8f8f99;white-space:nowrap}
.ed-tools{display:flex;align-items:center;gap:6px}
.ed-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 14px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,transform .1s}
.ed-btn:hover{background:rgba(255,255,255,.11)}.ed-btn:active{transform:scale(.98)}
.ed-btn.ed-primary{background:#eef0f5;color:#0b0b0d;border-color:#eef0f5}.ed-btn.ed-primary:hover{background:#fff}.ed-btn.ed-primary[disabled]{opacity:.55;cursor:default}
.ed-btn.ghost{background:transparent}.ed-btn.small{height:32px;padding:0 11px;font-size:12.5px}.ed-btn.wide{width:100%}
.ed-btn.danger{color:#ff8a7a;border-color:rgba(255,138,122,.3)}
.ed-btn[aria-pressed=true]{border-color:#e4e4e7;color:#ffffff}
.ed-ico{width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:transparent;font-size:17px;cursor:pointer}.ed-ico:hover{background:rgba(255,255,255,.08)}.ed-ico[disabled]{opacity:.3;cursor:default}
.ed-seg{display:flex;padding:3px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.ed-seg button{border:0;background:none;height:30px;padding:0 12px;border-radius:8px;font-size:12.5px;font-weight:600;color:#a3a3ad;cursor:pointer}.ed-seg button.on{background:#eef0f5;color:#0b0b0d}
.ed-body{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0}
.ed-side{position:relative;overflow-y:auto;border-right:1px solid rgba(255,255,255,.08);background:#0e0e11}
.ed-tabs{position:sticky;top:0;z-index:2;display:flex;background:#0e0e11;border-bottom:1px solid rgba(255,255,255,.08)}
.ed-tabs button{flex:1;height:46px;border:0;background:none;font-size:13px;font-weight:600;color:#8f8f99;border-bottom:2px solid transparent;cursor:pointer}.ed-tabs [aria-selected=true]{color:#eef0f5;border-bottom-color:#e4e4e7}
.ed-sheet-x{display:none}
.ed-panel{padding:16px 16px 40px}
.ed-hint{font-size:13px;color:#a3a3ad;line-height:1.55;margin:0 0 14px}.ed-hint b{color:#eef0f5}
.ed-tip{font-size:12.5px;color:#7d7d88;line-height:1.55;margin:18px 0 0}
.ed-h4{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f8f99;margin:20px 0 10px}.ed-h4:first-child{margin-top:4px}
.ed-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.ed-card{display:grid;gap:4px;text-align:left;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);cursor:pointer;transition:border-color .15s,background .15s}
.ed-card:hover{border-color:#e4e4e7;background:rgba(255,255,255,.07)}.ed-card b{font-size:13px}.ed-card small{font-size:11.5px;color:#8f8f99;line-height:1.4}
.ed-thumb{display:grid;gap:4px;height:58px;padding:8px;border-radius:8px;background:#1a1a20;margin-bottom:4px;overflow:hidden}
.ed-thumb i{display:block;border-radius:3px;background:#3a3a45}
.t-text i:nth-child(1){width:60%;height:8px;background:#e4e4e7}.t-text i:nth-child(2),.t-text i:nth-child(3){height:5px}.t-text i:nth-child(3){width:70%}
.t-imagetext{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr 1fr}.t-imagetext i:nth-child(1){grid-row:1/4;background:#4a4a58}.t-imagetext i:nth-child(2){height:7px;background:#e4e4e7;align-self:center}.t-imagetext i:nth-child(3){height:5px}
.t-banner{background:#4a4a58;align-content:end}.t-banner i:nth-child(1){width:55%;height:7px;background:#fff}.t-banner i:nth-child(2){width:35%;height:5px;background:#c9c9d2}.t-banner i:nth-child(3){display:none}
.t-free{position:relative}.t-free i{position:absolute}.t-free i:nth-child(1){left:8px;top:9px;width:42%;height:8px;background:#e4e4e7}.t-free i:nth-child(2){right:8px;top:8px;width:34%;height:40px;background:#4a4a58}.t-free i:nth-child(3){left:8px;bottom:9px;width:24%;height:9px;background:#eef0f5;border-radius:6px}
.ed-chips{display:flex;flex-wrap:wrap;gap:6px}
.ed-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:transparent;font-size:12.5px;font-weight:600;color:#c8c8d0;cursor:pointer}
.ed-chip:hover{border-color:rgba(255,255,255,.3)}.ed-chip.on{background:#eef0f5;color:#0b0b0d;border-color:#eef0f5}.ed-chip em{font-style:normal;font-size:10px;color:#e4e4e7}
.ed-dot{width:13px;height:13px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(128,128,128,.6)}
.ed-swatches{display:flex;flex-wrap:wrap;gap:8px}
.ed-sw{width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.ed-sw.on{outline:2px solid #eef0f5;outline-offset:2px}
.ed-sw.auto{background:conic-gradient(#e4e4e7,#f472b6,#fbbf24,#34d399,#e4e4e7)}
.ed-sw.custom{position:relative;overflow:hidden;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red)}.ed-sw.custom input{position:absolute;inset:-6px;opacity:0;cursor:pointer}
.ed-btn.wide+.ed-h4{margin-top:22px}
.ed-list{display:grid;gap:6px}.ed-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04);font-size:13px}
.ed-f{display:grid;gap:6px;margin:0 0 12px}.ed-f span{font-size:12.5px;font-weight:600;color:#a3a3ad}.ed-f small{font-weight:500;opacity:.7}
.ed-f input,.ed-f select,.ed-f textarea{width:100%;min-width:0;height:42px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#16161b;color:#eef0f5;font:inherit;font-size:16px}
.ed-f textarea{height:auto;padding:10px 12px;resize:vertical;line-height:1.5}
.ed-f input:focus,.ed-f select:focus,.ed-f textarea:focus{outline:none;border-color:#e4e4e7;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.ed-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ed-canvas{position:relative;min-width:0;min-height:0;padding:14px;background:#17171c;display:flex;justify-content:center}
.ed-stage{position:relative;width:100%;height:100%;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.45);transition:width .3s cubic-bezier(.2,.7,.2,1)}
.ed-canvas.phone .ed-stage{width:390px;max-width:100%;border-radius:28px;border:8px solid #2a2a31}
.ed-frame{position:absolute;inset:0;width:1px;min-width:100%;max-width:100%;height:100%;border:0;background:#fff;visibility:hidden}.ed-frame.on{visibility:visible}
.ed.previewing .ed-side{opacity:.45;pointer-events:none}
.ed-mobnav{display:none}
.ed-modal{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:16px;background:rgba(5,5,8,.62)}.ed-modal[hidden]{display:none}
.ed-modal-card{width:min(460px,100%);max-height:calc(100% - 20px);overflow-y:auto;padding:22px;border-radius:18px;background:#121216;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 80px rgba(0,0,0,.5)}
.ed-modal-card h3{font-size:18px;margin:0 0 8px}
.ed-col{display:grid;gap:8px}.ed-file{position:relative;cursor:pointer}
.ed-modal-acts{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}.ed-modal-acts span{flex:1}
.ed-prodimg{display:flex;gap:12px;align-items:center;margin:4px 0 14px}.ed-prodimg img,.ed-prodimg>span{width:72px;height:88px;border-radius:10px;object-fit:cover;background:#1d1d23;display:grid;place-items:center;font-size:11px;color:#7d7d88;text-align:center}.ed-prodimg div{display:flex;gap:6px;flex-wrap:wrap}
/* quick start after "Use this template" */
.ed-qs{position:fixed;inset:0;z-index:2100;display:grid;place-items:center;padding:16px;background:rgba(5,5,8,.7);backdrop-filter:blur(6px);font-family:Inter,system-ui,sans-serif;color:#eef0f5}
.ed-qs-card{width:min(480px,100%);padding:28px;border-radius:20px;background:#111115;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 90px rgba(0,0,0,.55)}
.ed-qs-k{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#a1a1aa}
/* The quick start sits outside .ed, so it needs the editor's colours and a solid white Start button of its own. */
.ed-qs{--e-ac:#f4f4f6;--e-acf:#f4f4f6;--e-aci:#e4e4e7}
.ed-qs .ed-btn.ed-primary{background:#f4f4f6;border-color:#f4f4f6;color:#0a0a0b;font-weight:700}
.ed-qs .ed-btn.ed-primary:hover{background:#d4d4d8;border-color:#d4d4d8}
.ed-qs .ed-btn.ed-primary:disabled{opacity:.75;cursor:wait}
.ed-qs .ed-f select{appearance:auto}
.ed-qs-hint{margin:-4px 0 12px;font-size:13px;line-height:1.5;color:#a3a3ad}.ed-qs-hint a{color:#f4f4f6;font-weight:600;text-underline-offset:3px}
.ed-qs-card h2{font-size:26px;margin:8px 0 6px;letter-spacing:-.01em}.ed-qs-card>p{color:#a3a3ad;font-size:14.5px;line-height:1.55;margin:0 0 18px}
.ed-qs-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.ed-qs-alt{text-align:center;margin:14px 0 0}.ed-qs-alt button{border:0;background:none;color:#8f8f99;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
@media(max-width:900px){
  .ed{grid-template-rows:56px minmax(0,1fr) 58px}
  .ed-top{gap:6px;padding:0 8px}.ed-name span{display:none}.ed-seg{display:none}
  .ed-top .ed-btn{height:36px;padding:0 10px;font-size:12.5px}.ed-top [data-ed=preview]{display:none}
  .ed-body{grid-template-columns:minmax(0,1fr)}
  .ed-canvas{padding:0}.ed-stage,.ed-canvas.phone .ed-stage{width:100%;border:0;border-radius:0;box-shadow:none}
  .ed-side{position:fixed;left:0;right:0;bottom:58px;z-index:10;max-height:min(68vh,560px);border:0;border-top:1px solid rgba(255,255,255,.1);border-radius:18px 18px 0 0;box-shadow:0 -20px 50px rgba(0,0,0,.5);transform:translateY(calc(100% + 60px));transition:transform .3s cubic-bezier(.2,.8,.2,1)}
  .ed-side.open{transform:none}
  .ed-tabs{display:none}.ed-side{padding-top:50px}.ed-side::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:rgba(255,255,255,.18);margin:8px auto 0}.ed-sheet-x{display:grid;place-items:center;position:absolute;top:4px;right:6px;z-index:3;width:36px;height:36px;border:0;border-radius:50%;background:rgba(20,20,26,.92);color:#a3a3ad;font-size:16px;cursor:pointer}
  .ed-mobnav{display:flex;border-top:1px solid rgba(255,255,255,.08);background:#0e0e11}
  .ed-mobnav button{flex:1;border:0;background:none;font-size:13.5px;font-weight:600;color:#a3a3ad;cursor:pointer}.ed-mobnav button.on{color:#eef0f5}
}
@media(max-width:420px){.ed-top [data-ed=exit]{padding:0 8px}.ed-ico{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.ed-side,.ed-stage{transition:none}}
body.ed-open .wai-btn,body.ed-open .wai-panel,body.ed-open .wai{display:none!important}
.ed-qs button{font:inherit;color:inherit}
body.ed-qs-open .wai-btn,body.ed-qs-open .wai-panel{display:none!important}
/* typography selects (Design panel) */
.ed-select{width:100%;height:40px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#16161b;color:#eef0f5;font:inherit;font-size:14px}
.ed-select:focus{outline:none;border-color:#e4e4e7}
/* product photo manager */
.ed-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px}
.ed-ph{position:relative;margin:0;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:#1d1d23;border:1px solid rgba(255,255,255,.1)}
.ed-ph img{width:100%;height:100%;object-fit:cover;display:block}
.ed-ph.main{border-color:#e4e4e7;box-shadow:0 0 0 1px #e4e4e7}
.ed-ph figcaption{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:4px;background:linear-gradient(transparent,rgba(0,0,0,.7))}
.ed-ph figcaption span{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:0 4px;color:#ffffff}
.ed-ph figcaption button{width:26px;height:26px;border-radius:7px;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:12px;cursor:pointer}.ed-ph figcaption button:hover{background:#000}
.ed-ph.add{display:grid;place-content:center;justify-items:center;gap:4px;cursor:pointer;border-style:dashed;color:#a3a3ad;font-size:22px;background:transparent;width:100%}
.ed-ph.add span{font-size:11.5px;font-weight:600}.ed-ph.add:hover{border-color:#e4e4e7;color:#eef0f5}
.ed-tip-tight{margin:8px 0 14px!important}
/* page switcher (top bar) and Pages panel */
.ed-pagesel{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#8f8f99}.ed-pagesel select{height:36px;max-width:170px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#16161b;color:#eef0f5;font:inherit;font-size:13.5px;font-weight:600}
.ed-pages>div{padding:4px 4px 4px 6px}.ed-pages>div.on{background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.ed-pages span{display:flex;gap:4px}
.ed-pagename{flex:1;min-width:0;text-align:left;border:0;background:none;color:#eef0f5;font:inherit;font-size:13.5px;font-weight:600;padding:8px 6px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Edit items window */
.ed-modal-card.wide{width:min(620px,100%)}
.ed-items{display:grid;gap:10px;margin-bottom:12px;max-height:min(56vh,560px);overflow-y:auto;padding-right:4px}
.ed-item{border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px;background:rgba(255,255,255,.02)}
.ed-item-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ed-item-top b{font-size:13px}.ed-item-top span{display:flex;gap:4px}
.ed-ico.sm{width:30px;height:30px;font-size:13px;border-radius:8px}
.ed-item-f{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.ed-item-f>*{grid-column:1/-1}.ed-item-f .ed-f.short{grid-column:auto}
.ed-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#c8c8d0;margin:0 0 10px}.ed-check input{width:18px;height:18px;accent-color:#e4e4e7}
.ed-iphoto{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ed-iphoto img,.ed-iphoto i{width:56px;height:56px;border-radius:9px;object-fit:cover;background:#1d1d23;display:grid;place-items:center;font-size:10px;font-style:normal;color:#7d7d88}
/* thumbnails for the new section types */
.t-cta{background:#e4e4e7;align-content:center}.t-cta i:nth-child(1){width:50%;height:7px;background:#0b0b0d}.t-cta i:nth-child(2){width:30%;height:9px;background:#fff;border-radius:6px}.t-cta i:nth-child(3){display:none}
.t-quote{place-content:center;justify-items:center}.t-quote i:nth-child(1){width:14px;height:14px;border-radius:50%;background:#e4e4e7}.t-quote i:nth-child(2){width:70%;height:6px}.t-quote i:nth-child(3){width:40%;height:5px}
.t-cards,.t-pricing,.t-stats,.t-team,.t-gallery{grid-template-columns:repeat(3,1fr);align-items:stretch}.t-cards i,.t-pricing i,.t-team i,.t-gallery i{background:#3a3a45}.t-pricing i:nth-child(2){background:#e4e4e7}.t-team i{border-radius:50% 50% 4px 4px}.t-gallery{grid-template-rows:1fr}
.t-stats i{background:none;position:relative}.t-stats i:after{content:'99';position:absolute;inset:0;display:grid;place-items:center;color:#e4e4e7;font:800 13px/1 Inter,sans-serif}
.t-pricelist i,.t-faq i,.t-info i{height:6px;align-self:center}.t-pricelist i{background:linear-gradient(90deg,#3a3a45 40%,transparent 40% 80%,#e4e4e7 80%)}.t-faq i{border-right:6px solid #e4e4e7}.t-info i:nth-child(1){width:60%;background:#e4e4e7}
.t-divider{align-content:center}.t-divider i:nth-child(1){height:2px}.t-divider i:nth-child(2),.t-divider i:nth-child(3){display:none}
@media(max-width:900px){.ed-pagesel span{display:none}.ed-pagesel select{max-width:110px;height:34px}.ed-mobnav button{font-size:12.5px}}
/* ✨ AI tab */
.ed-ai{display:flex;flex-direction:column;gap:10px}
.ed-ai-log{display:flex;flex-direction:column;gap:8px;max-height:min(46vh,420px);overflow-y:auto;padding:2px}
.ed-msg{max-width:92%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ed-msg.me{align-self:flex-end;background:#eef0f5;color:#0b0b0d;border-bottom-right-radius:4px}
.ed-msg.ai{align-self:flex-start;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-bottom-left-radius:4px}
.ed-msg-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ed-msg.busy{display:flex;gap:5px;padding:14px}.ed-msg.busy i{width:7px;height:7px;border-radius:50%;background:#e4e4e7;animation:edDot 1s infinite ease-in-out}.ed-msg.busy i:nth-child(2){animation-delay:.15s}.ed-msg.busy i:nth-child(3){animation-delay:.3s}
@keyframes edDot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:none}}
.ed-sugg{display:flex;flex-wrap:wrap;gap:6px}.ed-sugg .ed-chip{height:auto;min-height:34px;padding:7px 12px;text-align:left;line-height:1.35;white-space:normal}
.ed-ai-form{display:grid;gap:8px}.ed-ai-form textarea{width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#16161b;color:#eef0f5;font:inherit;font-size:15px;line-height:1.45;resize:vertical}
.ed-ai-form textarea:focus{outline:none;border-color:#e4e4e7;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
/* pop-up & banner switches */
.ed-switch{display:flex;align-items:center;gap:10px;font-size:13.5px;color:#c8c8d0;margin:0 0 12px;cursor:pointer}.ed-switch input{width:18px;height:18px;accent-color:#e4e4e7}
@media(prefers-reduced-motion:reduce){.ed-msg.busy i{animation:none}}
/* Check my website + version history */
.ed-hint{color:#a3a3ad;font-size:13.5px;line-height:1.5;margin:0 0 14px}
.ed-chks,.ed-vers{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.ed-chk{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;background:#17171c;border:1px solid rgba(255,255,255,.07)}
.ed-chk>i{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:800;background:rgba(255,255,255,.16);color:#ffffff}
.ed-chk.fix>i{background:rgba(255,180,90,.18);color:#ffc98a}
.ed-chk>div{flex:1;min-width:0;display:grid;gap:2px}.ed-chk b{font-size:13.5px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.ed-chk span{font-size:12px;color:#8f8f99}
.ed-chk .ed-btn,.ed-vers .ed-btn{flex:none;height:32px;padding:0 12px;font-size:12.5px}
.ed-vers li{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#17171c;border:1px solid rgba(255,255,255,.07)}
.ed-vers li>div{flex:1;min-width:0;display:grid;gap:2px}.ed-vers b{font-size:13.5px}.ed-vers span{font-size:12px;color:#8f8f99;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-verprev{margin:4px 0 10px}.ed-verprev[hidden]{display:none}
.ed-verprev-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}.ed-verprev-bar b{font-size:13px}
.ed-verprev-box{position:relative;height:300px;overflow:hidden;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#fff}
.ed-verprev-box iframe{position:absolute;left:0;top:0;width:1280px;height:1600px;border:0;transform-origin:0 0;pointer-events:none}
@media(max-width:520px){.ed-vers li{flex-wrap:wrap}.ed-vers li>div{flex-basis:100%}}
/* Top bar: one solid button (Publish), the rest quiet; History and Check in the ⋯ menu; live save status */
.ed-body{grid-template-columns:316px minmax(0,1fr)}
.ed-tabs button{font-size:12.5px;padding:0 2px}
.ed-top .ed-tools{gap:6px}
.ed-pub{min-width:96px;font-weight:700}
.ed-exit span{font-weight:600}
.ed-save{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#8f8f99;white-space:nowrap}
.ed-save .ok{font-style:normal;color:#e4e4e7;font-weight:700}
.ed-saveerr{border:0;background:none;padding:0;color:#ffb37a!important;font:inherit;font-size:12px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ed-more{position:relative}
.ed-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:220px;padding:6px;border-radius:14px;background:#17171c;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 50px rgba(0,0,0,.5);display:grid;gap:2px}
.ed-menu[hidden]{display:none}
.ed-menu button{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 12px;border:0;border-radius:9px;background:none;text-align:left;font-size:13.5px;font-weight:500;cursor:pointer}
.ed-menu button:hover,.ed-menu button:focus-visible{background:rgba(255,255,255,.08);outline:none}.ed-menu button[disabled]{opacity:.35;cursor:default}
.ed-menu i{width:18px;text-align:center;font-style:normal;color:#e4e4e7}
.ed-mi-phone{display:none!important}
/* AI tab: the typing box first, short one-line suggestions */
.ed-sugg .ed-chip{min-height:32px;height:32px;padding:0 12px;white-space:nowrap;font-size:12.5px}
.ed-ai .ed-h4{margin:8px 0 2px}
.ed-ai-log:empty{display:none}
.ed-lock{margin:0 0 14px!important;color:#c9b991!important}
@media(max-width:900px){
  .ed-body{grid-template-columns:minmax(0,1fr)}
  .ed-prev,.ed-pagesel,.ed-exit span,.ed-histbtn span{display:none}
  .ed-histbtn{width:40px;padding:0}
  /* phones: every button in the editor bar is at least 40px, so it's easy to hit with a thumb */
  .ed-histbtn,.ed-more .ed-ico{min-width:40px;min-height:40px}
  .ed-sheet-x{width:40px!important;height:40px!important;margin:-8px -8px 0 0!important}
  .ed-mi-phone{display:flex!important}
  .ed-name span{display:inline-flex}.ed-save{font-size:11px}
  .ed-name b{font-size:13px}
  .ed-pub{min-width:0}
  .ed-mobnav button{font-size:12px;padding:0 1px}
}
/* ===== Rail layout: website | panel | labelled icon rail (a bottom bar on phones).
   Ink theme to match the dashboard (assets/builder-skin.css): flat black, one purple accent for the main
   action, the open tab and selections. ===== */
.ed{--e-bg:#09090b;--e-side:#0e0e11;--e-card:#121215;--e-card2:#17171b;--e-line:#1f1f24;--e-line2:#2b2b32;--e-tx:#f4f4f6;--e-tx2:#d2d2d8;--e-mu:#9b9ba5;--e-ac:#f4f4f6;--e-acf:#f4f4f6;--e-aci:#e4e4e7;
  grid-template-rows:56px minmax(0,1fr);background:var(--e-bg);color:var(--e-tx);caret-color:var(--e-aci)}
.ed ::selection{background:rgba(255,255,255,0.26);color:#fff}
.ed :focus-visible{outline:2px solid var(--e-ac);outline-offset:2px}
.ed *{scrollbar-width:thin;scrollbar-color:#2b2b32 transparent}
.ed .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* top bar */
.ed-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;padding:0 12px;background:var(--e-side);border-bottom:1px solid var(--e-line)}
.ed-tl,.ed-tr{display:flex;align-items:center;gap:8px;min-width:0}.ed-tr{justify-content:flex-end}
.ed-tl .ed-name{margin-right:0;flex:0 1 auto}
.ed-name span{color:var(--e-mu)}
.ed-hist{display:flex;gap:2px;margin-left:6px;padding-left:10px;border-left:1px solid var(--e-line)}
.ed-ico{display:inline-grid;place-items:center;border-color:transparent;color:var(--e-tx2);transition:background .15s,color .15s}.ed-ico:hover{background:var(--e-card2);color:var(--e-tx)}
.ed-exit{padding:0 12px 0 8px;color:var(--e-tx2)}.ed-exit:hover{color:var(--e-tx)}
.ed-seg{background:var(--e-card);border-color:var(--e-line)}
.ed-seg button{display:inline-flex;align-items:center;gap:7px;padding:0 14px;color:var(--e-mu);transition:background .15s,color .15s}.ed-seg button:hover{color:var(--e-tx)}
.ed-seg button.on{background:var(--e-card2);color:var(--e-tx);box-shadow:inset 0 0 0 1px var(--e-line2)}
.ed-btn{border-color:var(--e-line2);background:var(--e-card)}.ed-btn:hover{background:var(--e-card2)}.ed-btn.ghost{background:transparent}.ed-btn.ghost:hover{background:var(--e-card2)}
.ed-btn.ed-primary{background:var(--e-acf);border-color:var(--e-acf);color:#0a0a0b}.ed-btn.ed-primary:hover{background:#d4d4d8;border-color:#d4d4d8}
.ed-btn[aria-pressed=true]{border-color:var(--e-ac);color:var(--e-aci)}
.ed-menu{background:var(--e-card2);border-color:var(--e-line2)}.ed-menu i{display:inline-grid;place-items:center;color:var(--e-aci)}
.ed-save .ok{color:var(--e-aci)}
/* body: website | panel | rail */
.ed-body{grid-template-columns:minmax(0,1fr) 340px 84px;grid-template-rows:minmax(0,1fr)}
.ed-canvas{grid-column:1;grid-row:1;padding:16px 16px 72px;background:#111114}
.ed-side{grid-column:2;grid-row:1;border-right:0;border-left:1px solid var(--e-line);background:var(--e-side)}
.ed-rail{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:2px;padding:10px 8px;overflow-y:auto;background:var(--e-side);border-left:1px solid var(--e-line)}
.ed-rail button{display:grid;justify-items:center;gap:5px;padding:9px 2px 8px;border:0;border-radius:12px;background:none;color:var(--e-mu);font-size:11px;font-weight:600;line-height:1.1;cursor:pointer;transition:background .15s,color .15s}
.ed-rail button:hover{background:var(--e-card);color:var(--e-tx)}
.ed-rail button.on{background:rgba(255,255,255,0.11);color:var(--e-tx)}.ed-rail button.on svg{color:var(--e-aci)}
.ed-rail button:active{transform:scale(.97)}
.ed.ed-panel-off .ed-body{grid-template-columns:minmax(0,1fr) 0 84px}.ed.ed-panel-off .ed-side{display:none}
.ed.previewing .ed-rail{opacity:.45;pointer-events:none}
/* panel header */
.ed-phead{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:10px;padding:18px 16px 14px;background:var(--e-side);border-bottom:1px solid var(--e-line)}
.ed-phead>div{flex:1;min-width:0}.ed-phead h3{margin:0;font-size:15px;font-weight:650;letter-spacing:-.01em;color:var(--e-tx)}.ed-phead p{margin:4px 0 0;font-size:12.5px;line-height:1.45;color:var(--e-mu)}
.ed-sheet-x{display:grid;place-items:center;flex:none;width:30px;height:30px;margin:-4px -4px 0 0;border:0;border-radius:8px;background:none;color:var(--e-mu);cursor:pointer}.ed-sheet-x:hover{background:var(--e-card2);color:var(--e-tx)}
.ed-panel{padding:16px 16px 40px}
.ed-h4{font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--e-tx2);margin:22px 0 10px}
.ed-hint{color:var(--e-mu)}.ed-hint b{color:var(--e-tx)}.ed-tip{color:#86868f}
/* controls in the ink palette */
.ed-chip{border-color:var(--e-line2);color:var(--e-tx2);transition:border-color .15s,background .15s}.ed-chip:hover{border-color:#3a3a44;background:var(--e-card)}
.ed-chip.on{background:rgba(255,255,255,0.12);border-color:var(--e-ac);color:#fff}.ed-chip em{color:var(--e-aci)}
.ed-card{border-color:var(--e-line);background:var(--e-card)}.ed-card:hover{border-color:var(--e-ac);background:rgba(255,255,255,0.053)}.ed-card small{color:var(--e-mu)}
.ed-thumb{background:var(--e-card2)}
.ed-sw.on{outline-color:var(--e-aci)}
.ed-f span{color:var(--e-tx2)}.ed-f small{color:var(--e-mu);font-weight:500}
.ed-f input,.ed-f select,.ed-f textarea,.ed-select,.ed-ai-form textarea,.ed-pagesel select{background:var(--e-card);border-color:var(--e-line2);color:var(--e-tx)}
.ed-f input::placeholder,.ed-f textarea::placeholder,.ed-ai-form textarea::placeholder{color:#6f6f7a}
.ed-f input:focus,.ed-f select:focus,.ed-f textarea:focus,.ed-select:focus,.ed-ai-form textarea:focus{border-color:var(--e-ac);box-shadow:0 0 0 3px rgba(255,255,255,0.15)}
.ed-switch input,.ed-check input{accent-color:var(--e-ac)}
.ed-list>div{background:var(--e-card)}
.ed-pages>div.on{background:rgba(255,255,255,0.09);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.3)}
.ed-modal-card{background:var(--e-card);border-color:var(--e-line2)}
.ed-ph.main{border-color:var(--e-ac);box-shadow:0 0 0 1px var(--e-ac)}.ed-ph figcaption span{color:var(--e-aci)}
.ed-chk,.ed-vers li{background:var(--e-card2);border-color:var(--e-line)}.ed-chk>i{background:rgba(255,255,255,0.12);color:var(--e-aci)}
/* AI: a chat that fills the panel, with the box at the bottom */
.ed-p-ai{display:flex;flex-direction:column;min-height:calc(100% - 76px);padding-bottom:16px}
.ed-p-ai .ed-ai{flex:1;display:flex;flex-direction:column;gap:12px}
.ed-p-ai .ed-ai-log{max-height:none;flex:1}
.ed-msg.me{background:var(--e-acf);color:#0a0a0b}
.ed-msg.ai{background:var(--e-card);border-color:var(--e-line2);color:var(--e-tx2)}
.ed-msg.intro{max-width:100%;display:grid;gap:6px;padding:14px;white-space:normal}.ed-msg.intro b{color:var(--e-tx);font-size:14px;font-weight:600}
.ed-msg.busy i{background:var(--e-aci)}
.ed-ai-form{margin-top:auto;position:sticky;bottom:0;padding-top:10px;background:var(--e-side)}
/* Templates */
.ed-tpls{display:grid;gap:8px}
.ed .ed-tpl{font:inherit;display:grid;gap:4px;text-align:left;padding:12px 14px;border-radius:12px;border:1px solid var(--e-line);background:var(--e-card);cursor:pointer;transition:border-color .15s,background .15s}
.ed-tpl:hover{border-color:var(--e-line2);background:var(--e-card2)}.ed-tpl.on{border-color:var(--e-ac);background:rgba(255,255,255,0.075)}
.ed-tpl b{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--e-tx)}
.ed-tpl small{font-size:12px;line-height:1.45;color:var(--e-mu)}
.ed-tpl em{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--e-aci);border:1px solid rgba(255,255,255,0.34);border-radius:5px;padding:1px 5px}
/* Background */
.ed-hero{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;border:1px solid var(--e-line);background:var(--e-card)}
.ed-hero img,.ed-hero-ph{flex:none;width:64px;height:46px;border-radius:8px;object-fit:cover;background:var(--e-card2);display:grid;place-items:center;color:var(--e-mu)}
.ed-hero>div{flex:1;min-width:0;display:grid;gap:2px}.ed-hero b{font-size:13.5px;font-weight:600}.ed-hero small{font-size:12px;color:var(--e-mu);line-height:1.4}
.ed-bgrow{padding:12px;border-radius:12px;border:1px solid var(--e-line);background:var(--e-card);margin-bottom:8px}.ed-bgrow.on{border-color:rgba(255,255,255,0.38)}
.ed-bgrow-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.ed .ed-bgname{min-width:0;font-family:inherit;line-height:1.3;border:0;background:none;padding:0;font-size:13.5px;font-weight:600;color:var(--e-tx);text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ed-bgname:hover{color:var(--e-aci)}
.ed-swatches.sm{gap:7px}.ed-swatches.sm .ed-sw{width:24px;height:24px}
/* Logo */
.ed-logo-box{display:grid;place-items:center;height:150px;margin-bottom:12px;border-radius:14px;border:1px solid var(--e-line);background:repeating-conic-gradient(#18181c 0 25%,#121215 0 50%) 0 0/16px 16px}
.ed-logo-box img{max-width:80%;max-height:110px;object-fit:contain}
.ed-logo-mono{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--e-card2);box-shadow:inset 0 0 0 1px var(--e-line2);font-size:24px;font-weight:700;letter-spacing:.02em;color:var(--e-aci)}
/* SEO: a plain search-result preview */
.ed-serp{margin:0 0 16px;padding:14px 16px;border-radius:12px;background:#fff;color:#202124;font-family:Arial,Helvetica,sans-serif}
.ed-serp span{display:block;font-size:12px;color:#4d5156;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-serp b{display:block;margin:5px 0 4px;font-size:17px;font-weight:400;line-height:1.3;color:#1a0dab;overflow-wrap:anywhere}
.ed-serp p{margin:0;font-size:13px;line-height:1.5;color:#4d5156;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ed-f>span small{float:right;font-variant-numeric:tabular-nums}
/* dock: save / preview / check, bottom centre over the website */
.ed-dock{position:absolute;left:50%;bottom:16px;z-index:5;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:5px;border-radius:14px;background:#141417;box-shadow:0 0 0 1px var(--e-line2),0 14px 34px rgba(0,0,0,.5)}
.ed-dock button{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:0;border-radius:10px;background:none;color:var(--e-tx2);font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.ed-dock button:hover{background:var(--e-card2);color:var(--e-tx)}.ed-dock button:active{transform:scale(.98)}
.ed-dock [aria-pressed=true]{color:var(--e-aci)}
.ed-dock .sep{width:1px;height:20px;margin:0 3px;background:var(--e-line2)}
@media(max-width:1180px){.ed-body{grid-template-columns:minmax(0,1fr) 310px 78px}.ed.ed-panel-off .ed-body{grid-template-columns:minmax(0,1fr) 0 78px}.ed-name span{display:none}}
/* phones and small tablets: the rail becomes a bottom bar; each tool opens as a sheet */
@media(max-width:900px){
  .ed{grid-template-rows:56px minmax(0,1fr) 64px}
  .ed-top{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0 8px}
  .ed-hist{margin-left:2px;padding-left:4px}.ed-name span{display:inline-flex}
  .ed-body,.ed.ed-panel-off .ed-body{grid-template-columns:minmax(0,1fr)}
  .ed-canvas{padding:0}.ed-dock{display:none}
  .ed-side,.ed.ed-panel-off .ed-side{display:block;grid-column:1;bottom:64px;padding-top:0;border-left:0}
  .ed-side::before{position:relative;z-index:3}
  .ed-phead{padding:12px 14px}
  .ed-rail{position:fixed;left:0;right:0;bottom:0;z-index:11;height:64px;flex-direction:row;gap:0;padding:4px 4px calc(4px + env(safe-area-inset-bottom));overflow-x:auto;overflow-y:hidden;border-left:0;border-top:1px solid var(--e-line);scrollbar-width:none;overscroll-behavior-x:contain}
  .ed-rail::-webkit-scrollbar{display:none}
  .ed-rail button{flex:0 0 66px;gap:4px;padding:7px 0 5px;font-size:10.5px}
  .ed-p-ai{min-height:0}
}
@media(prefers-reduced-motion:reduce){.ed-rail button,.ed-dock button,.ed-tpl{transition:none}}
/* Business details → Your shops (Barbershop layout) */
.ed-loc{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px 12px 4px;margin:0 0 10px}
.ed-loc-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ed-loc-h b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-loc-h .ed-btn.sm{padding:5px 10px;font-size:12px}

/* Undo / Redo: labelled on wide screens, icons on phones; disabled ones stay visible so people know they exist. */
.ed-histbtn{width:auto;padding:0 10px;gap:6px;display:inline-flex;align-items:center}.ed-histbtn span{font-size:13px;font-weight:600}
.ed-histbtn[disabled]{opacity:.42!important}
@media(max-width:900px){.ed-histbtn{width:36px;padding:0;justify-content:center}.ed-histbtn span{display:none}}

/* Dropdowns: the open list is drawn by the browser, which ignored the dark theme (white list, light-grey text that
   couldn't be read). color-scheme makes the browser draw it dark; the option colours cover browsers that don't. */
.ed,.ed-qs,.ed-modal,.wb-start{color-scheme:dark}
.ed select,.ed-qs select,.ed-modal select,.wb-start select{color-scheme:dark}
.ed select option,.ed-qs select option,.ed-modal select option,.wb-start select option,
.ed select optgroup,.ed-qs select optgroup{background:#141416;color:#f4f4f5}
.ed select option:disabled,.ed-qs select option:disabled{color:#8b8b93}
/* Style panel: second and highlight colours */
.ed-color2{display:flex;align-items:center;gap:10px;margin-top:12px}
.ed-color2>span{flex:1;display:grid;gap:2px;font-size:13px}.ed-color2 small{color:var(--e-mu,#8f8f99);font-size:12px}
/* Font choosers: names shown in their own font */
.ed-fonts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:248px;overflow:auto;padding:2px;margin-bottom:6px;overscroll-behavior:contain}
.ed-font{min-height:44px;padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:transparent;color:#eee;font-size:17px;line-height:1.15;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-font:first-child{font-family:inherit;font-size:14px;grid-column:1/-1}
.ed-font:hover{border-color:rgba(255,255,255,.4)}
.ed-font.on{border-color:#fff;background:#fff;color:#0c0c0e}
.ed-font:focus-visible{outline:2px solid #fff;outline-offset:2px}
