.custom-panels{display:grid;gap:18px;margin:0 0 18px}
.custom-panels h3{font-size:.96rem;margin:7px 0 0}
.custom-order-row,.custom-color{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;border-bottom:1px solid #ddd}
.custom-choice{min-height:37px;line-height:1.4}
#admin-custom-preview{font:600 14px/1.4 sans-serif;position:sticky;top:0;padding:8px 14px;z-index:80;background:#242424;color:#fff;text-align:center}
#home .home-custom-title{color:var(--wq-dark-ink,#efefef);font-family:var(--wq-home-font,inherit);margin:.7em 0 .3em}
#home .home-custom-intro{color:var(--wq-dark-ink,#efefef);max-width:34em;margin:0 auto;padding:0 1em;font-size:.96rem;text-align:center}
#home .home-custom-image{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}
#home [data-custom-block]{background:var(--wq-paper,#f8f8f8);color:var(--wq-ink,#242424)}
#home .home-custom-blocks{font-family:var(--wq-home-font,inherit)}
#home .tagline{font-family:var(--wq-home-font,inherit)}
body[data-custom-home-font] #home .tagline .silver-heading{font-family:var(--wq-home-font)}
body[data-custom-home-font] .site-header .brand{font-family:var(--wq-home-font)}
body[data-custom-palette] #home .hero{background:var(--wq-dark,#0b0b0b)}
body[data-custom-palette] #home .home-fold{background:var(--wq-dark,#0b0b0b)}
body[data-custom-palette] #home .hero::after{background:linear-gradient(180deg,var(--wq-dark,#0b0b0b),var(--wq-paper,#f5f5f5))}
body[data-custom-palette] #home .tagline .silver-heading,body[data-custom-palette] .site-header .brand .brand-wordmark{color:var(--wq-dark-ink,#efefef);background-image:none;filter:none}
body[data-custom-palette] #home .home-offer,body[data-custom-palette] #home .content-row,body[data-custom-palette] #home .section-title{background:var(--wq-paper,#f5f5f5);color:var(--wq-ink,#242424)}
body[data-custom-palette] #home .home-offer small{color:inherit}
body[data-custom-palette] .edition-reading .reading-heading,body[data-custom-palette] .edition-reading .edition-light{background:var(--wq-paper,#eee);color:var(--wq-ink,#232323)}
body[data-custom-palette] .edition-reading .edition-dark{background:var(--wq-dark,#232323);color:var(--wq-dark-ink,#ededed)}
.home-brand-subtitle{display:none}
body[data-view=home] .home-brand-subtitle:not([hidden]){display:block;color:var(--wq-dark-ink,#ddd);font-size:.66em;line-height:1.25;white-space:normal}
#home:has(.home-custom-image:not([hidden])) .orb-stage{min-height:180px}
#home .home-custom-intro:not([hidden]){position:relative;z-index:2;margin:.35em auto 0}
#home .home-custom-title:not([hidden]){line-height:1.25;font-size:clamp(23px,5.5vw,43px);text-align:center}
#home [data-custom-block]{font-family:var(--wq-home-font,inherit)}
body:not([data-custom-palette]) #home [data-custom-block]{background:none;color:inherit}
body[data-custom-palette] #home .home-offer :is(strong,span),body[data-custom-palette] #home .section-title{color:var(--wq-ink,#242424)}
@media(max-width:520px){.workspace-tabs button{min-width:0;font-size:clamp(11px,3.2vw,14px);padding-inline:4px}}
/* True same-origin mobile preview. Defaults do not alter the public pages. */
.custom-live-grid{display:grid;grid-template-columns:minmax(0,430px) minmax(240px,1fr);align-items:start;gap:16px}
.custom-live-window{position:relative;overflow:hidden;border:1px solid #a8a8a8;background:#ececec}
.custom-live-frame{display:block;width:100%;height:min(64dvh,690px);min-height:370px;border:0}
.custom-frame-state{position:absolute;inset:8px 8px auto;z-index:1;background:#242424;color:#fafafa;padding:8px 10px;font-size:12px;pointer-events:none}
.custom-view-tabs,.custom-spot-list,.custom-live-media .actions{display:flex;gap:6px;flex-wrap:wrap}
.custom-view-tabs{margin:0 0 10px}
.custom-view-tabs button.active,.custom-spot-list [aria-pressed=true]{background:#202020;color:#fafafa;border-color:#202020}
.custom-live-inspector h2{font-size:1.14rem;margin:0 0 9px}
.custom-size-row{display:grid;grid-template-columns:auto minmax(70px,1fr) auto auto;align-items:center;gap:6px;margin:10px 0}
.custom-size-row input[type=range]{padding:0;border:0;accent-color:#242424}
.custom-size-row output{min-width:3em;text-align:right;font-variant-numeric:tabular-nums}
.custom-size-row button,.custom-spot-list button,.custom-view-tabs button{min-height:38px;padding:5px 10px;font-size:.82rem}
.custom-live-media{display:grid;gap:7px}
.custom-live-media textarea{min-height:50px}
.custom-advanced{margin:14px 0}.custom-advanced summary{min-height:42px;padding:10px 0;cursor:pointer}
[data-visual-sized]{zoom:var(--wq-visual-scale,1)}
.custom-spot-banner{display:block;width:100%;max-height:240px;object-fit:contain;object-position:center;margin:0 auto 12px}
#member .custom-spot-banner{max-width:26%;max-height:78px;margin:0}
body[data-custom-embedded] [data-custom-slot]{cursor:crosshair}
body[data-custom-embedded] [data-custom-selected]{outline:2px solid #825843;outline-offset:-2px}
@media(max-width:690px){.custom-live-grid{grid-template-columns:minmax(0,1fr);gap:9px}.custom-live-frame{min-height:290px;height:46dvh}.custom-live-inspector{padding:10px;grid-row:1}.custom-size-row{margin:7px 0}}
#books > .page-heading[data-visual-picture],#news > .page-heading[data-visual-picture]{position:relative;isolation:isolate;overflow:hidden}
#books > .page-heading[data-visual-picture]::before,#books > .page-heading[data-visual-picture]::after,#news > .page-heading[data-visual-picture]::before,#news > .page-heading[data-visual-picture]::after{content:none}
#books > .page-heading[data-visual-picture] > .custom-spot-banner,#news > .page-heading[data-visual-picture] > .custom-spot-banner{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;margin:0;opacity:.48;z-index:-1}
.custom-direct{margin:10px 0 12px}.custom-direct [hidden]{display:none!important}

/* The editor reuses the actual frontend, without an embedded preview or side inspector. */
.visual-start{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.visual-start a{min-height:70px;display:grid;place-items:center;background:#232323;color:#f6f6f6;text-decoration:none;font-size:1.04rem}
.visual-toolbar{background:#f1f1f1;color:#171717;border-bottom:1px solid #c9c9c9;padding:8px 12px 6px;font:14px/1.35 system-ui}
.visual-toolbar-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:7px}
.visual-toolbar-row>a{justify-self:start;color:#343434;text-underline-offset:3px}
.visual-toolbar-row>.visual-publish{justify-self:end}
.visual-toolbar button,.visual-dialog button{border:1px solid #aaa;background:#fff;color:#1b1b1b;padding:7px 10px;cursor:pointer;white-space:nowrap}
.visual-toolbar .visual-publish,.visual-dialog .visual-publish{background:#202020;color:#fff;border-color:#202020}
.visual-toolbar .visual-publish:disabled{opacity:.48;cursor:default}
.visual-page-switch{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.visual-page-switch button[aria-current=page]{background:#202020;color:#fff}
.visual-tip{margin:5px 0 0;color:#444;font-size:12px;text-align:center}.visual-status{display:block;text-align:center;font-size:12px;color:#333}.visual-status:empty{display:none}
body[data-visual-edit] [data-visual-editable]{cursor:pointer}
body[data-visual-edit] [data-visual-editable]:focus-visible{outline:1px dashed #999;outline-offset:3px}
@media(hover:hover){body[data-visual-edit] [data-visual-editable]:hover{outline:1px dashed #868686;outline-offset:-1px}}
.visual-dialog{box-sizing:border-box;border:1px solid #a2a2a2;background:#fafafa;color:#191919;width:min(92vw,410px);padding:18px;font:15px/1.4 system-ui;border-radius:8px}
.visual-dialog::backdrop{background:#0008}.visual-dialog h2{margin:0 0 14px;font-size:1.17rem}.visual-dialog form{display:grid;gap:11px}
.visual-dialog label{display:grid;gap:4px}.visual-dialog input:not([type=checkbox]),.visual-dialog textarea{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #bbb;background:white;color:#171717;padding:8px;font:16px/1.4 system-ui}
.visual-dialog .visual-check{display:flex;gap:7px;align-items:center}.visual-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.visual-form-error{color:#7a2121;margin:0;font-size:13px}.visual-form-error:empty{display:none}
.visual-toolbar{position:sticky;top:0;z-index:40}
