/* editor: the page is the main object. Panels are white, the desk around the page is light gray. */
.editor{display:flex;flex-direction:column;height:100dvh;background:var(--bg);position:relative}
body.is-editor{overflow:hidden}
.grow{flex:1;min-width:0}

/* ---------- top bar ---------- */
.ed-top{position:relative;display:flex;align-items:center;gap:4px;min-height:60px;padding:0 12px;background:var(--bg);border-bottom:1px solid var(--line);flex-shrink:0}
.ed-title{display:flex;flex-direction:column;min-width:0;max-width:280px;margin:0 8px 0 2px}
.ed-title b{font-size:16px;font-weight:700;letter-spacing:-.03em;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-title small{font-size:11px;line-height:1.3;font-weight:500;color:var(--ink-3)}
.ed-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.ed-actions{display:flex;align-items:center;gap:2px;margin-left:auto}
.ed-publish{margin-left:8px;gap:7px}
.ed-publish[data-dirty]::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.9}
.ed-top.is-preview .ed-title{flex-direction:row;align-items:center}
.ed-top.is-preview .seg{margin-left:auto}
.device-switch>button{padding:0 12px}

/* ---------- body: rail | panel | canvas | inspector ---------- */
.ed-body{flex:1;min-height:0;display:grid;grid-template-columns:80px var(--fly,0px) minmax(0,1fr) var(--insp,0px);grid-template-rows:minmax(0,1fr)}
.editor.has-panel{--fly:320px}
.editor.has-inspector{--insp:340px}
.editor.is-preview .ed-body{grid-template-columns:0 0 minmax(0,1fr) 0}
.ed-rail{grid-column:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;background:var(--bg);border-right:1px solid var(--line)}
.ed-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:68px;min-height:60px;color:var(--ink-3);font-size:10.5px;font-weight:600}
.ed-rail .ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;transition:background-color .18s,color .18s}
.ed-rail button:hover .ic{background:var(--fill)}
.ed-rail button[aria-pressed=true]{color:var(--ink)}
.ed-rail button[aria-pressed=true] .ic{background:var(--ink);color:var(--on-ink)}
.ed-panel,.ed-inspector{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--paper)}
.ed-panel{grid-column:2;border-right:1px solid var(--line)}
.ed-inspector{grid-column:4;border-left:1px solid var(--line)}
.ed-panel[hidden],.ed-inspector[hidden]{display:none}
.ed-panel.is-entering>*,.ed-inspector.is-entering>*{animation:slide-in-x .2s var(--ease) both}
.ed-inspector.is-entering>*{animation-name:slide-in-r}
@keyframes slide-in-x{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@keyframes slide-in-r{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:60px;padding:8px 10px 4px 20px;flex-shrink:0}
.panel-head h2{font-family:var(--display);font-size:24px;font-weight:700;letter-spacing:-.045em}
.panel-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 20px 30px;scrollbar-width:thin}
.panel-foot{position:sticky;bottom:-30px;margin:16px -20px -30px;padding:12px 20px 16px;background:var(--paper);border-top:1px solid var(--line)}
.panel-hint{margin:12px 2px 0}
.insp-type{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.insp-type b{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.insp-type .app-icon{color:var(--ink-3)}
.insp-tools{display:flex;align-items:center;gap:0;flex-shrink:0}
.insp-tools .ibtn{width:36px;height:36px}
.insp-tools .ibtn.is-danger{color:var(--danger)}
.ibtn.is-small{width:34px;height:34px}
.insp-foot{display:grid;gap:8px;margin-top:18px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.group-title{margin:26px 0 12px;font-size:12px;font-weight:600;color:var(--ink-3)}
.panel-body>.group-title:first-child{margin-top:4px}
.mt{margin-top:12px}
.only-phone{display:none}
.quick{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:4px 0 12px}
.quick .chips{margin:0}
.quick>.field{margin:0}
.swatches.is-row{display:flex;gap:16px;margin:14px 0 4px}

/* ---------- canvas ---------- */
.ed-canvas{grid-column:3;position:relative;min-width:0;overflow:auto;overscroll-behavior:contain;padding:28px 28px 56px;background:var(--bg);scrollbar-width:thin}
.frame{margin:0 auto;background:#fff;border-radius:4px;box-shadow:0 0 0 1px var(--line),var(--soft);overflow:hidden;transition:width .24s var(--ease)}
.editor.is-preview .ed-canvas{padding-top:28px}

/* ---------- panels: layers ---------- */
.layers{display:grid;gap:2px}
.layer{display:flex;align-items:center;gap:0;margin-left:calc(var(--d,0) * 14px);border-radius:12px;transition:background-color .12s}
.layer:hover{background:var(--fill)}
.layer.is-on{background:var(--ink);color:var(--on-ink)}
.layer.is-hidden .layer-name{opacity:.5}
.layer.is-dragging{opacity:.5}
.layer.is-target{box-shadow:inset 0 0 0 1.5px var(--ink)}
.layer-grip{display:grid;place-items:center;width:28px;min-height:46px;color:var(--ink-4);cursor:grab;touch-action:none}
.layer.is-on .layer-grip,.layer.is-on .layer-name .app-icon{color:inherit}
.layer.is-on .ibtn{color:var(--on-ink)}
.layer-name{display:flex;flex:1;align-items:center;gap:10px;min-width:0;min-height:46px;padding:0 6px 0 2px;text-align:left;font-size:14px;font-weight:500}
.layer-name span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.layer-name .app-icon{color:var(--ink-3)}

/* ---------- panels: pages ---------- */
.page-list{display:grid;gap:8px;margin:16px 0}
.page-row{display:flex;align-items:center;gap:0;border-radius:var(--r2);background:var(--fill);transition:background-color .15s}
.page-row.is-on{background:var(--ink);color:var(--on-ink)}
.page-row.is-on .ibtn,.page-row.is-on .page-text small{color:var(--on-ink)}
.page-row.is-hidden .page-main{opacity:.55}
.page-main{display:flex;flex:1;align-items:center;gap:10px;min-width:0;min-height:56px;padding:0 6px 0 14px;text-align:left}
.page-text{display:flex;flex-direction:column;flex:1;min-width:0}
.page-text b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-text small{font-size:11px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis}
.page-row .chip{box-shadow:inset 0 0 0 1px currentColor;color:inherit}

/* ---------- panels: design ---------- */
.presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
.preset{display:flex;flex-direction:column;gap:6px;text-align:left}
.preset small{font-size:11px;font-weight:600;color:var(--ink-2)}
.preset-art{position:relative;display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.preset-art i,.preset-art b,.preset-art em{position:absolute;display:block;border-radius:2px}
.preset-art i{left:12%;top:16%;width:76%;height:46%;border-radius:5px;box-shadow:0 0 0 1px rgb(0 0 0/.08)}
.preset-art b{left:18%;top:26%;width:32%;height:8px}
.preset-art em{left:18%;top:44%;width:52%;height:4px;opacity:.7}
.preset[aria-pressed=true] .preset-art{box-shadow:inset 0 0 0 2px var(--ink)}
.swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px;margin-bottom:6px}
.swatch-field{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.swatch-label{font-size:11px;font-weight:600;color:var(--ink-2);text-align:center;line-height:1.2}
.swatches.is-row .swatch-field{flex-direction:row;gap:8px}
.fontcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fontcard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:10px 10px 11px;border-radius:var(--r2);background:var(--fill);text-align:left;transition:background-color .15s,color .15s}
.fontcard:hover{background:var(--fill-2)}
.fontcard span{font-size:22px;line-height:1.1}
.fontcard small{font-size:10px;font-weight:600;color:var(--ink-3);overflow-wrap:anywhere;line-height:1.25}
.fontcard[aria-pressed=true]{background:var(--ink);color:var(--on-ink)}
.fontcard[aria-pressed=true] small{color:var(--on-ink);opacity:.7}
.patterns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.pattern{display:flex;flex-direction:column;gap:5px;align-items:center;font-size:11px;font-weight:600;color:var(--ink-2)}
.pattern span{display:block;width:100%;aspect-ratio:1;border-radius:12px;background-color:#fff;box-shadow:inset 0 0 0 1px var(--line-2)}
.pattern-dots span{background-image:radial-gradient(#9a9a9a 1px,transparent 1px);background-size:8px 8px}
.pattern-stripes span{background-image:repeating-linear-gradient(135deg,transparent 0 5px,#d6d6d6 5px 10px)}
.pattern-grid span{background-image:linear-gradient(#cfcfcf 1px,transparent 1px),linear-gradient(90deg,#cfcfcf 1px,transparent 1px);background-size:9px 9px}
.pattern-paper span{background-image:repeating-linear-gradient(0deg,transparent 0 3px,#00000008 3px 4px)}
.pattern[aria-pressed=true] span{box-shadow:inset 0 0 0 2px var(--ink)}
.shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shape{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 9px;border-radius:var(--r2);background:var(--fill);font-size:11px;font-weight:600;color:var(--ink-2);transition:background-color .15s}
.shape:hover{background:var(--fill-2)}
.shape span{display:block;width:26px;height:26px;border:2px solid currentColor;border-right:0;border-bottom:0}
.shape.line span{width:28px;height:0;border-left:0;border-bottom:0}
.shape[aria-pressed=true]{background:var(--ink);color:var(--on-ink)}
.inline-fields{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px}
.imgpicks{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.imgpick{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;text-align:left;color:var(--ink-2)}
.imgpick-art{display:grid;place-items:center;aspect-ratio:16/10;border-radius:var(--r2);background:var(--fill);color:var(--ink-3);overflow:hidden}
.imgpick-art img{width:100%;height:100%;object-fit:cover}
.row-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}
.row-switch b{display:block;font-size:14px;font-weight:600}
.row-switch small{display:block;font-size:11px;color:var(--ink-3)}
.ed-panel .group,.ed-inspector .group{background:var(--fill)}

/* ---------- inspector pieces ---------- */
.imgbox{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;margin:4px 0 16px;align-items:start}
.imgbox-art{display:grid;place-items:center;aspect-ratio:1;border-radius:var(--r2);background:var(--fill);color:var(--ink-3);overflow:hidden}
.imgbox-art img{width:100%;height:100%;object-fit:cover}
.imgbox-art.is-multi{grid-template-columns:1fr 1fr;gap:2px}
.imgbox-actions{display:grid;gap:8px}
.imgbox-actions label.btn{cursor:pointer}
.link-edit{padding:14px 14px 2px;margin-bottom:12px;border-radius:var(--r2);background:var(--fill)}
.link-edit .input{background:var(--paper)}
.link-edit .btn{margin:0 0 12px}
.xy{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.acc{border-top:1px solid var(--line);margin-top:18px}
.acc>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;font-size:14px;font-weight:600;list-style:none;cursor:pointer;user-select:none}
.acc>summary::-webkit-details-marker{display:none}
.acc>summary .app-icon{color:var(--ink-3);transition:transform .18s var(--ease)}
.acc[open]>summary .app-icon{transform:rotate(180deg)}
.acc-body{padding:2px 0 14px}
.acc-plain{border:0;margin-top:8px}
.acc-plain>summary{padding:0 4px}

/* ---------- empty page inside the canvas ---------- */
.empty-canvas{padding:45px 10px;min-height:260px;display:grid;place-items:center}
.empty-page-message{display:grid;justify-items:center;gap:8px;text-align:center;max-width:280px;font-family:var(--font);color:#444}
.empty-page-message>svg{width:34px;height:34px;color:#8a8a8a}
.empty-page-message h3{font:600 16px/1.4 var(--font)}
.empty-page-message p{font:13px/1.55 var(--font);color:#767676}
.empty-page-message .btn{margin-top:6px;background:#161616;color:#fff;border-radius:10px}

/* ---------- editing affordances on the page itself ---------- */
.is-editable .site-block{cursor:pointer;outline:1px solid transparent;outline-offset:2px}
.is-editable .site-block:hover{outline-color:rgb(22 22 22/.35)}
.is-editable .site-block.selected{outline:2px solid #161616;outline-offset:0}
.is-editable [contenteditable=true]{outline:1px dashed #161616;cursor:text;min-width:20px}
.block-label{display:none;position:absolute;left:-1px;top:-22px;z-index:4;align-items:center;gap:4px;padding:4px 7px;border-radius:4px 4px 0 0;background:#161616;color:#fff;font:500 10px/1 var(--font);white-space:nowrap}
.block-label svg{width:11px;height:11px}
.site-block.selected>.block-label{display:flex}
.site-block.block-section>.block-label{top:-20px}
.site-block.block-section:has(.site-block.selected){outline:1px dashed var(--s-line)}
.block-hidden{opacity:.35}
.section-add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:40px;margin-top:12px;border:1px dashed currentColor;border-radius:6px;background:transparent;color:inherit;opacity:.6;font:12px var(--font)}
.section-add:hover{opacity:1}
.section-add svg{width:15px;height:15px}

/* fixed canvas pieces */
.reference-editable{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.reference-editable:hover{outline:1px dashed #161616}
.reference-editable.selected{outline:1.5px solid #161616;cursor:grab;touch-action:none}
.reference-editable.selected:not([data-ref-kind=shape]){z-index:10}
.reference-editable.dragging{cursor:grabbing}
.reference-editable:focus-visible{outline:2px solid #161616}
.reference-node [contenteditable=true]{cursor:text;outline:1px dashed #161616;min-height:100%}
.ref-overlay{position:absolute;z-index:40;pointer-events:none;box-sizing:border-box;container-type:size}
.ref-handle{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border:1.5px solid #161616;border-radius:2px;background:#fff;pointer-events:auto;box-sizing:border-box;touch-action:none}
.ref-handle::before{content:'';position:absolute;inset:-9px}
.ref-handle[data-handle=nw]{left:0;top:0;cursor:nwse-resize}.ref-handle[data-handle=n]{left:50%;top:0;cursor:ns-resize}
.ref-handle[data-handle=ne]{left:100%;top:0;cursor:nesw-resize}.ref-handle[data-handle=e]{left:100%;top:50%;cursor:ew-resize}
.ref-handle[data-handle=se]{left:100%;top:100%;cursor:nwse-resize}.ref-handle[data-handle=s]{left:50%;top:100%;cursor:ns-resize}
.ref-handle[data-handle=sw]{left:0;top:100%;cursor:nesw-resize}.ref-handle[data-handle=w]{left:0;top:50%;cursor:ew-resize}
.ref-guide{position:absolute;z-index:39;pointer-events:none;background:#d6336c}
.ref-guide.v{top:0;bottom:0;width:1px;margin-left:-.5px}.ref-guide.h{left:0;right:0;height:1px;margin-top:-.5px}
@container (max-height:46px){.ref-handle[data-handle=n],.ref-handle[data-handle=s]{display:none}.ref-handle::before{inset:-4px}}
@container (max-width:46px){.ref-handle[data-handle=e],.ref-handle[data-handle=w]{display:none}}
@container (max-height:46px) and (max-width:46px){.ref-handle:not([data-handle=se]){display:none}}
@media(pointer:coarse){.ref-handle{width:14px;height:14px;margin:-7px 0 0 -7px}.ref-handle::before{inset:-12px}}

/* ---------- tutorial: a ring on the real control and one short card ---------- */
.tour{position:fixed;inset:0;z-index:70;pointer-events:none}
.tour-ring{position:fixed;border-radius:16px;box-shadow:0 0 0 2px var(--ink),0 0 0 100vmax rgb(0 0 0/.32);transition:left .22s var(--ease),top .22s var(--ease),width .22s var(--ease),height .22s var(--ease)}
.tour-card{position:fixed;left:max(12px,calc(50% - 180px));width:min(360px,calc(100% - 24px));padding:16px 16px 14px;border-radius:var(--r3);background:var(--paper);box-shadow:var(--float);pointer-events:auto;animation:pop .24s var(--ease) both}
.tour-card[data-place=top]{top:calc(70px + var(--safe-t))}
.tour-card[data-place=bottom]{bottom:calc(16px + var(--safe-b))}
@media(max-width:760px){.tour-card[data-place=bottom]{bottom:calc(92px + var(--safe-b))}}
.tour-card header{display:flex;align-items:center;justify-content:space-between}
.tour-count{font-size:12px;font-weight:600;color:var(--ink-3)}
.tour-card .progress{display:flex;gap:4px;margin:8px 0 12px}
.progress i{flex:1;height:3px;border-radius:2px;background:var(--fill-2)}
.progress i.is-on{background:var(--ink)}
.tour-card h2{font-family:var(--display);font-size:24px;font-weight:700;letter-spacing:-.045em;line-height:1}
.tour-card p{margin-top:6px;font-size:14px;line-height:1.4;color:var(--ink-2)}
.tour-card footer{display:flex;align-items:center;gap:4px;margin-top:14px}
.tour-card .btn-primary:not(.is-ready){background:var(--fill);color:var(--ink)}
.hint-pop{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 8px);margin:0 auto 12px;padding:6px 6px 6px 16px;border-radius:var(--rp);background:var(--ink);color:var(--on-ink);box-shadow:var(--soft);font-size:13px;font-weight:500;line-height:1.3;animation:drop .3s var(--ease) both}
.hint-pop .btn{box-shadow:none;background:var(--on-ink);color:var(--ink)}
.lead-text{margin-bottom:12px}

/* ---------- media and dialogs ---------- */
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:14px 10px}
.shot{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0}
.shot-pick{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:var(--r2);background:var(--fill);overflow:hidden}
.shot-pick img{width:100%;height:100%;object-fit:cover;display:block}
.shot.is-on .shot-pick{box-shadow:inset 0 0 0 3px var(--ink)}
.shot-check{position:absolute;left:8px;top:8px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:var(--on-ink)}
.shot-check .app-icon{width:14px;height:14px}
.shot-meta{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--ink-3);min-width:0}
.shot-meta>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.shot-del{position:absolute;right:6px;top:6px;width:32px;height:32px;background:var(--paper);box-shadow:var(--soft)}
.shot-add{display:grid;place-items:center;aspect-ratio:1;border-radius:var(--r2);background:var(--ink);color:var(--on-ink);cursor:pointer;text-align:center;font-size:12px;transition:transform .15s var(--ease)}
.shot-add:active{transform:scale(.97)}
.shot-add span{display:grid;gap:4px;justify-items:center}
.done{display:grid;justify-items:center;gap:8px;margin:4px 0 18px;text-align:center}
.done-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--on-ink)}
.done-address{font-family:var(--display);font-size:24px;font-weight:700;letter-spacing:-.04em;overflow-wrap:anywhere}
.row.is-danger,.row.is-danger .title{color:var(--danger)}
.btn-danger-fill{background:var(--danger);color:#fff;box-shadow:none}
.btn-danger-fill:hover{background:var(--danger);opacity:.88}
.link-fields{margin-bottom:6px}
.steps{display:grid;gap:6px;margin:12px 0;padding:0;list-style:none}

/* ---------- tablet ---------- */
@media(max-width:1100px) and (min-width:761px){
 .editor.has-panel{--fly:286px}
 .editor.has-inspector{--insp:300px}
 .ed-title{max-width:150px}
}

/* ---------- phone: the page fills the screen; tools are a dock and sheets ---------- */
.ed-bar{display:none}
@media(max-width:760px){
 .editor{height:100dvh}
 .ed-top{min-height:calc(56px + var(--safe-t));padding:var(--safe-t) 6px 0;gap:0}
 .ed-center{display:none}
 .ed-title{flex:1;max-width:none;margin:0 4px}
 .ed-title b{font-size:15px}
 .ed-actions{margin-left:0;gap:0}
 .ed-actions .ibtn{width:40px;height:40px}
 .ed-publish{margin-left:4px;min-height:38px;padding:0 15px}
 .ed-top.is-preview{gap:6px;padding-inline:8px}
 .ed-top.is-preview .ed-center{display:block;position:static;transform:none}
 .ed-top.is-preview .ed-title{display:none}
 .only-phone{display:block}
 .ed-body{display:block;position:relative}
 .ed-rail{display:none}
 .ed-canvas{position:absolute;inset:0;padding:10px 10px calc(96px + var(--safe-b))}
 .frame{border-radius:6px}
 .ed-panel,.ed-inspector{position:absolute;z-index:20;left:0;right:0;border:0;border-radius:var(--r4) var(--r4) 0 0;box-shadow:var(--float)}
 .ed-panel{bottom:0;max-height:64%;padding-bottom:calc(84px + var(--safe-b) + var(--kb,0px))}
 .ed-panel.is-open,.ed-inspector.is-open{animation:rise .26s var(--ease) both}
 .ed-inspector{bottom:var(--kb,0px);max-height:56%}
 .ed-inspector .panel-body{padding-bottom:calc(26px + var(--safe-b))}
 .ed-panel.is-entering>*,.ed-inspector.is-entering>*{animation:none}
 .panel-head{position:relative;padding-top:20px;min-height:58px}
 .panel-head::before{content:'';position:absolute;top:8px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:2px;background:var(--fill-3)}
 .panel-head h2{font-size:22px}
 .insp-tools .ibtn,.ibtn.is-small{width:40px;height:40px}
 .panel-body{padding:4px 16px 22px}
 .panel-foot{bottom:-22px;margin:12px -16px -22px}
 .ed-bar{position:absolute;left:16px;right:16px;bottom:calc(14px + var(--safe-b) + var(--kb,0px));z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:420px;margin:0 auto;pointer-events:none}
 .ed-pill{display:flex;align-items:center;gap:2px;padding:5px;border-radius:var(--rp);background:var(--fill-2);box-shadow:var(--soft);pointer-events:auto}
 .ed-pill>button{display:flex;align-items:center;gap:7px;height:46px;min-width:46px;padding:0 13px;border-radius:var(--rp);color:var(--ink-3);font-size:13px;font-weight:600;transition:background-color .2s,color .2s}
 .ed-pill>button>span:not(.ic){display:none}
 .ed-pill>button[aria-pressed=true]{background:var(--paper);color:var(--ink);padding:0 16px 0 14px;box-shadow:0 1px 3px rgb(0 0 0/.08)}
 .ed-pill>button[aria-pressed=true]>span:not(.ic){display:inline}
 .ed-bar .ic{display:grid;place-items:center}
 .ed-bar .app-icon{width:20px;height:20px}
 .ed-add{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--ink);color:var(--on-ink);box-shadow:var(--soft);pointer-events:auto;transition:transform .15s var(--ease)}
 .ed-add:active{transform:scale(.94)}
 .ed-add .app-icon{width:22px;height:22px}
 .ed-add[aria-pressed=true]{background:var(--paper);color:var(--ink)}
 .editor.has-inspector .ed-bar{display:none}
 .editor.has-inspector .ed-canvas{padding-bottom:58%}
 .editor.is-preview .ed-canvas{padding-bottom:16px}
 .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .swatch{width:44px;height:44px}
}
@media(max-width:360px){.ed-actions .ibtn{width:36px}.ed-bar{left:10px;right:10px}.ed-pill>button{padding:0 11px}.ed-publish{padding:0 11px}}
.block-text:has(.content-placeholder){min-height:64px}
