:root{--gold:#d4af37;--gold2:#f5d76e;--dark:#141414;--dark2:#1e1e1e;--card:#ffffff;--ink:#1a1a1a;--muted:#666;--line:#e5e0d0;--red:#c0392b;--green:#1e7d32;--radius:14px}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg,#f7f3e8);color:var(--ink)}
a{color:#8a6d00}
header.top{position:sticky;top:0;z-index:20;background:#141414;color:#fff;padding:10px 16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.logo{display:flex;gap:10px;align-items:center;cursor:pointer}
.logo .crown{font-size:28px}
.crown-img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}
.crown-hero{width:72px;height:72px;border-radius:50%;object-fit:cover}
.logo b{font-size:20px;letter-spacing:.5px}
.logo small{display:block;color:var(--gold2);font-size:11px}
nav.main{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
nav.main button{background:transparent;border:1px solid #444;color:#fff;padding:8px 12px;border-radius:999px;cursor:pointer}
nav.main button.active,nav.main button:hover{background:var(--gold);color:#141414;border-color:var(--gold)}
/* Header search (Dec 2, 2026): the panel drops under the header
   bar at full width, so it wraps cleanly beneath the nav row on
   phones; rows match the dark header. */
.hdr-search{flex-basis:100%;background:#1d1d1f;border:1px solid #333;border-radius:12px;padding:10px}
.hdr-search-bar{display:flex;gap:8px;align-items:center}
.hdr-search-bar input{flex:1;padding:10px 14px;border-radius:999px;border:1px solid #444;background:#141414;color:#fff;font-size:15px;min-width:0}
.hdr-search-close{background:transparent;border:1px solid #444;color:#fff;border-radius:999px;width:36px;height:36px;cursor:pointer;flex:none}
.hdr-search-results{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.hdr-search-results:empty{margin-top:0}
.hdr-search-row{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;border:1px solid #333;color:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;width:100%;font-size:14px}
.hdr-search-row:hover{background:#2a2a2e}
.hs-kind{font-size:11px;border:1px solid #555;border-radius:999px;padding:1px 7px;color:#ccc;flex:none}
.hs-sub{color:#aaa;font-size:12px}
.hdr-search-none{color:#bbb;padding:8px 10px;font-size:14px}
#nav-search-btn svg{display:block}
.langsel select{padding:8px;border-radius:8px}
main{max-width:1080px;margin:0 auto;padding:18px 14px 60px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin:14px 0;box-shadow:0 2px 10px rgba(0,0,0,.06)}
h1{font-size:28px;margin:6px 0}h2{font-size:22px;margin:4px 0 10px}h3{font-size:17px;margin:10px 0 6px}
p{line-height:1.55}.muted{color:var(--muted);font-size:14px}.small{font-size:13px}
.btn{display:inline-block;background:var(--gold);color:#141414;border:0;padding:11px 18px;border-radius:999px;font-weight:700;cursor:pointer;margin:4px 4px 4px 0;text-decoration:none}
.btn.dark{background:#141414;color:#fff}.btn.ghost{background:#fff;border:1px solid #999;color:#222}.btn.danger{background:var(--red);color:#fff}.btn:disabled{opacity:.5;cursor:not-allowed}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #bbb;border-radius:10px;margin:5px 0 10px;font-size:15px;background:#fff}
label{font-weight:600;font-size:14px}
/* Cover text colour picker (Dec 1, 2026): a row of palette swatches
   plus a native colour wheel, used by the product form and the
   Template Area editor for the title and subtitle colours. The
   swatches wrap, so the row stays contained at phone width; the
   wheel input overrides the full-width form rule above. */
.ccp{box-sizing:border-box}
.ccp-sw{width:26px;height:26px;min-width:26px;padding:0;margin:0;border:1px solid rgba(0,0,0,.3);border-radius:50%;cursor:pointer;flex:0 0 auto}
.ccp-sw.ccp-on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gold);border-color:transparent}
input.ccp-wheel{width:48px;height:30px;min-width:48px;padding:0;margin:0;border:1px solid rgba(0,0,0,.3);border-radius:8px;background:#fff;cursor:pointer;flex:0 0 auto}
/* Password visibility eye (Nov 28, 2026): the wrap holds the input and
   the eye rides inside the box's right edge; the input keeps right
   padding so typed text never runs under the eye. The wrap carries the
   standard input margins, so every form's spacing is unchanged. */
.pw-wrap{display:block;position:relative;margin:5px 0 10px}
.pw-wrap input{margin:0;padding-right:46px}
.pw-eye{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;margin:0;background:transparent;border:0;border-radius:999px;color:#666;cursor:pointer}
.pw-eye:hover{color:#1a1a1a;background:rgba(0,0,0,.05)}
.pw-eye:focus-visible{outline:2px solid var(--gold);outline-offset:1px;color:#1a1a1a}
.pw-eye svg{display:block;pointer-events:none;flex:none}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.store-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;cursor:pointer}
.store-card:hover{border-color:var(--gold)}
.price{font-size:22px;font-weight:800}.strike{text-decoration:line-through;color:#999;font-size:15px;margin-left:8px}
.badge{display:inline-block;background:#fff3c4;border:1px solid var(--gold);color:#6b5300;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;margin:2px}
.badge.tick{background:#141414;color:var(--gold2);border-color:#141414}
.wt-first-card{border:2px solid var(--gold);background:#fffdf2}
.tick-badge{display:inline-flex;align-items:center;gap:5px;font-weight:700}
.tick-badge .tick-svg{flex:none;display:block}
.badge.free{background:#e6f4ea;color:var(--green);border-color:#a3d9a5}
.plan-state-subscribed{background:#e6f4ea;color:#137333;border-color:#a3d9a5}
.plan-state-upgrade{background:#e8f0fe;color:#1e40af;border-color:#93c5fd}
.plan-state-downgrade{background:#f1f3f4;color:#5f6368;border-color:#dadce0}
.tag{font-size:12px;color:#555}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.tabs button{padding:9px 13px;border-radius:999px;border:1px solid #aaa;background:#fff;cursor:pointer}
.tabs button.active{background:#141414;color:#fff}
/* Cover frame (Dec 3, 2026 — Bigger Layout proof fix): the cover
   image is inset 10px inside its grey area on every side
   (box-sizing:border-box + padding on the img itself; the area's
   height — 300px base, 360px in the storefront scale — is the
   BORDER box, so the footprint never changes). Why: a cover whose
   artwork runs edge to edge (the chess book's 3D mockup ends in a
   mirrored reflection at the very bottom of the file) otherwise
   lands its last row of pixels exactly ON the area's bottom edge,
   so the artwork's own fade zone reads as the area clipping it.
   With the frame, the whole composition — reflection included —
   sits visibly INSIDE the area, and the wrapper's overflow:hidden
   (kept for the radius + text overlay) can never touch the image:
   under object-fit:contain the rendered content lives inside the
   img's content box, which is now inset from every edge. */
.cover{width:100%;height:300px;object-fit:contain;border-radius:10px;background:#eee;box-sizing:border-box;padding:10px}
/* Audiobook covers + the shared image cropper (Nov 30, 2026):
   a stored image is ALWAYS shown in full — object-fit: contain on
   a neutral letterbox backdrop, never cropped by the platform.
   The only crop that can exist is one the seller deliberately
   made in the cropper below. */
.ab-cover-img{object-fit:contain;background:#eee;border-radius:10px;display:block}
/* Bundle images (067): main cover + thumbnail strip on the storefront
   card, and the editor's image strip. Every image shows WHOLE
   (object-fit: contain), never cropped — Director's standing rule. */
.bd-cover{width:100%;max-height:280px;object-fit:contain;background:#eee;border-radius:10px;display:block;margin:6px 0}
.bd-thumbs{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 8px}
.bd-thumb{width:54px;height:54px;object-fit:contain;background:#fff;border:1px solid #ddd;border-radius:8px;cursor:pointer}
.bd-img-strip{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0}
.bd-img-thumb{display:inline-block;text-align:center;max-width:96px}
.bd-img-thumb img{width:72px;height:72px;object-fit:contain;background:#fff;border:1px solid #ddd;border-radius:8px;display:block;margin:0 auto}
.bd-img-main-tag{display:inline-block;font-size:11px;font-weight:700;margin-top:2px}
.bd-img-btn{font-size:11px;padding:2px 6px;margin-top:2px}
.ab-cover-editor{width:200px;height:200px}
.ab-cover-thumb{width:54px;height:54px;flex:none}
.ab-cover-listen{width:100%;height:300px}
.ab-cover-player{width:100%;height:200px;margin-bottom:8px}
/* The same 10px cover frame as .cover above, for the two
   buyer-facing audiobook cover areas (listen page + player):
   heights stay the area heights (300/340 listen, 200/230 player);
   the image content is contained inside the inset content box.
   The studio editor/thumb sizes are deliberately not framed. */
.ab-cover-listen,.ab-cover-player{box-sizing:border-box;padding:10px}
.cropper-overlay{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.cropper-card{background:#fff;color:#222;border-radius:14px;padding:16px;max-width:420px;width:100%;max-height:92vh;overflow:auto}
.cropper-stage{position:relative;width:100%;overflow:hidden;background:#eee;border-radius:10px;touch-action:none;cursor:grab}
.cropper-stage img{position:absolute;max-width:none;user-select:none;-webkit-user-select:none}
.cropper-aspects{display:flex;gap:6px;margin:10px 0 4px}
.cropper-zoom{width:100%}
.vv-rec-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#d33;vertical-align:middle;animation:vvRecPulse 1s ease-in-out infinite}
@keyframes vvRecPulse{0%,100%{opacity:1}50%{opacity:.25}}
.avatar{width:64px;height:64px;border-radius:50%;background:var(--gold);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800}
.avatar-img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none}
.logo-preview{width:96px;height:96px;border-radius:50%;object-fit:cover;display:block;margin:8px 0}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.swatches{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.sw{width:34px;height:34px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #999;cursor:pointer}
.sw.sel{box-shadow:0 0 0 3px var(--gold)}
table{width:100%;border-collapse:collapse;font-size:14px}
/* L7: wide Board/order tables scroll inside their card instead of
   overflowing a narrow phone screen. */
.card{overflow-x:auto}
img{max-width:100%}
.connect-msg{background:#fff8d6;border:1px solid var(--gold);border-radius:10px;padding:12px;margin:12px 0;font-weight:600}
/* Inline dialogs (M2): the modal uiAlert/uiConfirm/uiPrompt render
   into. Capped to the viewport with internal scroll on short screens. */
.ui-modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.ui-modal{max-width:440px;width:100%;max-height:85vh;overflow:auto;margin:0}
.ui-modal-body p{margin:6px 0}
.ui-modal-btns{margin-top:12px;justify-content:flex-end}
th,td{border-bottom:1px solid #eee;padding:8px;text-align:left;vertical-align:top}
.chat{border:1px solid var(--line);border-radius:12px;padding:12px;max-height:420px;overflow:auto;background:#fffdf4}
.msg{margin:8px 0;padding:10px 12px;border-radius:12px;max-width:85%}
.msg.me{background:#141414;color:#fff;margin-left:auto}
.msg.micron{background:#fff;border:1px solid var(--gold)}
.slot{padding:9px 12px;border:1px solid #999;border-radius:10px;background:#fff;cursor:pointer;margin:4px}
.slot.taken{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.slot.sel{background:var(--gold);font-weight:700}
/* Floating store assistant — gold "?" button, bottom-right, every page. */
.assistant-fab{position:fixed;right:18px;bottom:18px;z-index:50;width:56px;height:56px;border-radius:50%;border:2px solid #141414;background:var(--gold);color:#141414;font-size:28px;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.assistant-fab:hover{background:var(--gold2)}
.assistant-panel{position:fixed;right:18px;bottom:86px;z-index:50;width:min(340px,calc(100vw - 36px));max-height:min(70vh,560px);overflow:auto;background:#fff;border:1px solid var(--gold);border-radius:var(--radius);padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.assistant-panel h3{margin:0 0 8px}
.notice{background:#fff8d6;border:1px solid var(--gold);border-radius:10px;padding:12px;margin:12px 0}
/* Per-tab instruction banner + guide poster (studio tabs): a quiet
   "how this works" line at the very top of each tab, with the area's
   poster above it where one exists. Display only. */
.tab-help{background:#fffdf4;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:14px;line-height:1.5}
.tab-guide{display:block;width:100%;max-width:440px;margin:0 auto 12px;border-radius:14px}
.tab-help-actions{margin:0 0 12px}
.tab-help-hidden{display:flex;align-items:center;justify-content:space-between;gap:10px}
.warn{background:#fdecea;border:1px solid #e0a49e;border-radius:10px;padding:12px;margin:12px 0}
footer{color:#444;text-align:center;padding:20px;font-size:13px}
@media(max-width:640px){h1{font-size:23px}nav.main{margin-left:0}}

/* Store templates — the active template is set on <body data-template> by
   render() (home = Royal Classic) and viewStore() (the seller's pick).
   Each theme overrides the shared variables, plus the header background
   where the theme calls for it. Royal Classic keeps the current gold
   defaults. Midnight Stage is a dark page with light cards (card text is
   forced dark so it stays readable on the white cards). */
body[data-template="Royal Classic"]{--gold:#d4af37;--gold2:#f5d76e;--ink:#1a1a1a;--card:#ffffff;--radius:14px}
body[data-template="Midnight Stage"]{--gold:#c9a227;--gold2:#f5d76e;--ink:#e8e8e8;--card:#ffffff;--muted:#a9a9b3;--radius:14px;background:#12121a}
body[data-template="Midnight Stage"] header.top{background:#000}
body[data-template="Midnight Stage"] .card,body[data-template="Midnight Stage"] .store-card{color:#1a1a1a}
body[data-template="Midnight Stage"] .card .muted,body[data-template="Midnight Stage"] .store-card .muted{color:#666}
body[data-template="Midnight Stage"] footer{color:#b0b0b8}
body[data-template="Island Fresh"]{--gold:#2ec4b6;--gold2:#8fe3d8;--ink:#123332;--card:#f2fbf9;--radius:16px}
body[data-template="Island Fresh"] header.top{background:#0f766e}
body[data-template="Island Fresh"] a{color:#0f766e}
body[data-template="Rosewood"]{--gold:#b23a48;--gold2:#e8a0ae;--ink:#2b1418;--card:#fdf6f7;--radius:14px}
body[data-template="Rosewood"] header.top{background:#5c0a1e}
body[data-template="Rosewood"] a{color:#7b1f2b}
body[data-template="Mono Minimal"]{--gold:#141414;--gold2:#8a8a8a;--ink:#111111;--card:#ffffff;--radius:4px}
body[data-template="Mono Minimal"] header.top{background:#000}
body[data-template="Mono Minimal"] .btn:not(.ghost){color:#fff}
body[data-template="Mono Minimal"] nav.main button.active,body[data-template="Mono Minimal"] nav.main button:hover{color:#fff}
body[data-template="Mono Minimal"] .slot.sel{color:#fff}
body[data-template="Forest Retreat"]{--gold:#2d6a4f;--gold2:#95d5b2;--ink:#14261c;--card:#f4faf5;--radius:12px}
body[data-template="Forest Retreat"] header.top{background:#1b4332}
body[data-template="Forest Retreat"] a{color:#1b4332}
/* Added later — same shape as the originals: light themes set the shared
   variables + header background + link colour; the dark themes (Charcoal
   Pro, Royal Navy, Cherry Noir) follow Midnight Stage — dark page, white
   cards, card text forced dark so it stays readable. */
body[data-template="Golden Hour"]{--gold:#e09f3e;--gold2:#f6d186;--ink:#33240a;--card:#fffaf0;--radius:14px}
body[data-template="Golden Hour"] header.top{background:#8a5a13}
body[data-template="Golden Hour"] a{color:#9e6b1e}
body[data-template="Ocean Deep"]{--gold:#0077b6;--gold2:#90e0ef;--ink:#062a3a;--card:#f0faff;--radius:14px}
body[data-template="Ocean Deep"] header.top{background:#023e8a}
body[data-template="Ocean Deep"] a{color:#0077b6}
body[data-template="Blush Boutique"]{--gold:#e5989b;--gold2:#ffcdb2;--ink:#38222a;--card:#fff7f7;--radius:18px}
body[data-template="Blush Boutique"] header.top{background:#b56576}
body[data-template="Blush Boutique"] a{color:#b56576}
body[data-template="Charcoal Pro"]{--gold:#9a9a9a;--gold2:#ced4da;--ink:#e9ecef;--card:#ffffff;--muted:#adb5bd;--radius:6px;background:#212529}
body[data-template="Charcoal Pro"] header.top{background:#000}
body[data-template="Charcoal Pro"] .card,body[data-template="Charcoal Pro"] .store-card{color:#1a1a1a}
body[data-template="Charcoal Pro"] .card .muted,body[data-template="Charcoal Pro"] .store-card .muted{color:#666}
body[data-template="Charcoal Pro"] footer{color:#b0b0b8}
body[data-template="Tropical Pop"]{--gold:#06d6a0;--gold2:#ffd166;--ink:#07332a;--card:#f4fffb;--radius:16px}
body[data-template="Tropical Pop"] header.top{background:#0b8457}
body[data-template="Tropical Pop"] a{color:#0b8457}
body[data-template="Lavender Calm"]{--gold:#8267c9;--gold2:#cdbcf5;--ink:#241b3a;--card:#f8f6ff;--radius:16px}
body[data-template="Lavender Calm"] header.top{background:#5a4a9e}
body[data-template="Lavender Calm"] a{color:#5a4a9e}
body[data-template="Desert Sand"]{--gold:#c08552;--gold2:#e6ccb2;--ink:#33241a;--card:#fdf8f2;--radius:12px}
body[data-template="Desert Sand"] header.top{background:#7f5539}
body[data-template="Desert Sand"] a{color:#7f5539}
body[data-template="Emerald Luxe"]{--gold:#c9a227;--gold2:#f5d76e;--ink:#0c2b21;--card:#f3faf6;--radius:14px}
body[data-template="Emerald Luxe"] header.top{background:#064e3b}
body[data-template="Emerald Luxe"] a{color:#064e3b}
body[data-template="Candy Shop"]{--gold:#ef476f;--gold2:#ffa8c5;--ink:#38101f;--card:#fff5f8;--radius:20px}
body[data-template="Candy Shop"] header.top{background:#d81159}
body[data-template="Candy Shop"] a{color:#d81159}
body[data-template="Arctic Clean"]{--gold:#4dabcf;--gold2:#bde0f5;--ink:#10222e;--card:#ffffff;--radius:10px}
body[data-template="Arctic Clean"] header.top{background:#2c6e8f}
body[data-template="Arctic Clean"] a{color:#2c6e8f}
body[data-template="Sunset Glow"]{--gold:#e76f51;--gold2:#f6bd8f;--ink:#33150c;--card:#fff8f3;--radius:14px}
body[data-template="Sunset Glow"] header.top{background:#bc4b26}
body[data-template="Sunset Glow"] a{color:#bc4b26}
body[data-template="Royal Navy"]{--gold:#d4af37;--gold2:#f5d76e;--ink:#e8ecf4;--card:#ffffff;--muted:#9aa7bd;--radius:12px;background:#0a1628}
body[data-template="Royal Navy"] header.top{background:#050d18}
body[data-template="Royal Navy"] .card,body[data-template="Royal Navy"] .store-card{color:#1a1a1a}
body[data-template="Royal Navy"] .card .muted,body[data-template="Royal Navy"] .store-card .muted{color:#666}
body[data-template="Royal Navy"] footer{color:#9aa7bd}
body[data-template="Cherry Noir"]{--gold:#e5383b;--gold2:#ff8fa3;--ink:#f3e9ea;--card:#ffffff;--muted:#b8a4a8;--radius:14px;background:#160a0c}
body[data-template="Cherry Noir"] header.top{background:#000}
body[data-template="Cherry Noir"] .card,body[data-template="Cherry Noir"] .store-card{color:#1a1a1a}
body[data-template="Cherry Noir"] .card .muted,body[data-template="Cherry Noir"] .store-card .muted{color:#666}
body[data-template="Cherry Noir"] footer{color:#b8a4a8}
body[data-template="Mint Cream"]{--gold:#3aa981;--gold2:#a7e8c9;--ink:#14342a;--card:#f6fdf9;--radius:16px}
body[data-template="Mint Cream"] header.top{background:#1e7a55}
body[data-template="Mint Cream"] a{color:#1e7a55}
body[data-template="Coffee House"]{--gold:#a9744f;--gold2:#ddb892;--ink:#2a1a12;--card:#fbf6f0;--radius:12px}
body[data-template="Coffee House"] header.top{background:#4b2e20}
body[data-template="Coffee House"] a{color:#6f4518}
body[data-template="Violet Dream"]{--gold:#8338ec;--gold2:#cfb3ff;--ink:#22103d;--card:#f9f5ff;--radius:16px}
body[data-template="Violet Dream"] header.top{background:#5f27b8}
body[data-template="Violet Dream"] a{color:#5f27b8}
/* Flagship Looks (Dec 2, 2026): six complete storefront personalities,
   applied in one tap from the Customize tab as template + bg (+ decor
   cleared) — see FLAGSHIP_LOOKS in app.js. Same shape as the other
   templates (variables + header bar + link colour), plus the font
   pairing and, for the two looks whose hero gradient is dark, light
   hero text via .store-hero. The platform loads no webfonts, so the
   pairings use its system stacks: serif looks Georgia, sans looks the
   system-ui stack, grotesk looks Helvetica Neue. The two dark looks
   carry DARK cards (their spec card colours), so no forced-dark card
   text — card text stays the light --ink. */
body[data-template="Crown Classic"]{--gold:#d4a24e;--gold2:#f0d089;--ink:#12211f;--card:#ffffff;--radius:14px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body[data-template="Crown Classic"] h1,body[data-template="Crown Classic"] h2,body[data-template="Crown Classic"] h3{font-family:Georgia,'Times New Roman',serif}
body[data-template="Crown Classic"] header.top{background:#07332f}
body[data-template="Crown Classic"] a{color:#0e4d45}
body[data-template="Crown Classic"] .store-hero{color:#faf6ee}
body[data-template="Crown Classic"] .store-hero .tag,body[data-template="Crown Classic"] .store-hero .muted{color:#d8e6dd}
body[data-template="Blush Atelier"]{--gold:#c4748a;--gold2:#f3cfc9;--ink:#3d2b2e;--card:#ffffff;--radius:18px;font-family:'Helvetica Neue',Arial,sans-serif}
body[data-template="Blush Atelier"] h1,body[data-template="Blush Atelier"] h2,body[data-template="Blush Atelier"] h3{font-family:Georgia,'Times New Roman',serif}
body[data-template="Blush Atelier"] header.top{background:#c4748a}
body[data-template="Blush Atelier"] a{color:#a8546e}
body[data-template="Blush Atelier"] .btn:not(.ghost){color:#fff}
body[data-template="Editorial Cream"]{--gold:#c96f4a;--gold2:#e9c39a;--ink:#1d1a16;--card:#fffdf7;--radius:12px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body[data-template="Editorial Cream"] h1,body[data-template="Editorial Cream"] h2,body[data-template="Editorial Cream"] h3{font-family:Georgia,'Times New Roman',serif}
body[data-template="Editorial Cream"] header.top{background:#1d1a16}
body[data-template="Editorial Cream"] a{color:#b25a38}
body[data-template="Editorial Cream"] .btn:not(.ghost){color:#fff}
body[data-template="Midnight Empire"]{--gold:#e3b341;--gold2:#f5d76e;--ink:#f2f2f0;--card:#17171b;--muted:#a9a9b3;--radius:14px;background:#0c0c0e;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body[data-template="Midnight Empire"] h1,body[data-template="Midnight Empire"] h2,body[data-template="Midnight Empire"] h3{font-family:'Helvetica Neue',Arial,sans-serif;letter-spacing:.5px}
body[data-template="Midnight Empire"] header.top{background:#000}
body[data-template="Midnight Empire"] footer{color:#a9a9b3}
body[data-template="Island Azure"]{--gold:#ff7a59;--gold2:#ffc4b2;--ink:#0d2b45;--card:#ffffff;--radius:16px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body[data-template="Island Azure"] header.top{background:#0d2b45}
body[data-template="Island Azure"] a{color:#14607e}
body[data-template="Island Azure"] .btn:not(.ghost){color:#fff}
body[data-template="Island Azure"] .store-hero{color:#fdf6e9}
body[data-template="Island Azure"] .store-hero .tag,body[data-template="Island Azure"] .store-hero .muted{color:#cfe0ea}
body[data-template="Mint Noir"]{--gold:#3ddc97;--gold2:#a9f0d8;--ink:#e8f5ee;--card:#12181a;--muted:#8fa89b;--radius:14px;background:#0a0f0d;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body[data-template="Mint Noir"] h1,body[data-template="Mint Noir"] h2,body[data-template="Mint Noir"] h3{font-family:'Helvetica Neue',Arial,sans-serif;letter-spacing:.5px}
body[data-template="Mint Noir"] header.top{background:#000}
body[data-template="Mint Noir"] footer{color:#8fa89b}
/* Flagship Looks picker (Customize tab): one card per look — hero
   gradient swatch, name, one-line description, current marker. */
.look-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0}
.look-card{display:block;text-align:left;border:2px solid var(--line);border-radius:12px;padding:0;overflow:hidden;background:var(--card);cursor:pointer;width:100%}
.look-card.sel{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.3)}
.look-sw{display:block;height:44px}
.look-meta{display:block;padding:8px 10px}
.look-name{display:block;font-weight:700}
.look-desc{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.look-cur{display:block;font-size:11px;font-weight:700;color:#2563eb;margin-top:4px}
/* Store cover image (migration 061): the seller's photo fills the
   hero card behind the logo and name. The layer stack is photo
   (framed from the seller's focal point via object-position —
   the stored image itself is never cropped), optional look tint
   (the template accent at low opacity), then the legibility scrim
   whose colour/strength were computed from the photo's brightness
   at pick time. The tone classes carry (0,3,0)+ specificity so
   they beat the per-template .store-hero text rules whenever a
   cover is set; with no cover none of this applies and the hero
   paints exactly as before. */
.store-hero.has-cover{position:relative;overflow:hidden}
/* Big banner (Director, Dec 2, 2026 — "make the layout look bigger
   than that"): with a cover, the hero is a proper profile banner —
   a tall cinematic band with the logo, name, badges and bio riding
   in its lower part over the photo (flex-end composition). The
   scrim is a flat full-band overlay, so legibility behaviour is
   unchanged at the new size, and the focal point (object-position)
   matters more at this aspect and keeps working untouched. Both
   .card.store-hero contexts — the storefront and the Customize
   page preview — share these rules, so sellers frame exactly what
   buyers get. */
.card.store-hero.has-cover{display:flex;flex-direction:column;justify-content:flex-end;min-height:380px;padding:30px 30px 24px}
.card.store-hero.has-cover .avatar,.card.store-hero.has-cover .avatar-img{width:84px;height:84px}
.card.store-hero.has-cover .avatar{font-size:32px}
/* No-cover big hero (Director, Dec 2, 2026, later the same night —
   "it doesn't read bigger"): a store with NO cover photo gets the
   SAME presence — 380px / 252px, the big 84px / 68px avatar and
   the flex-end composition — over whatever it already wears
   (flagship gradient, decoration style or plain template
   background). Size and composition only: templates, decor,
   flagship behaviour and the paint precedence are untouched. */
.card.store-hero:not(.has-cover){position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:380px;padding:30px 30px 24px}
.card.store-hero:not(.has-cover) .avatar,.card.store-hero:not(.has-cover) .avatar-img{width:84px;height:84px}
.card.store-hero:not(.has-cover) .avatar{font-size:32px}
@media (max-width:640px){
.card.store-hero.has-cover{min-height:252px;padding:22px 20px 18px}
.card.store-hero.has-cover .avatar,.card.store-hero.has-cover .avatar-img{width:68px;height:68px}
.card.store-hero.has-cover .avatar{font-size:27px}
.card.store-hero:not(.has-cover){min-height:252px;padding:22px 20px 18px}
.card.store-hero:not(.has-cover) .avatar,.card.store-hero:not(.has-cover) .avatar-img{width:68px;height:68px}
.card.store-hero:not(.has-cover) .avatar{font-size:27px}
}
.hero-cover-layer{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
.hero-cover-img{width:100%;height:100%;object-fit:cover;display:block}
.hero-cover-tint{position:absolute;inset:0;background:var(--gold);opacity:.18;pointer-events:none}
.hero-scrim{position:absolute;inset:0;pointer-events:none}
.store-hero .hero-content{position:relative;z-index:1}
.card.store-hero.has-cover.hero-tone-light{color:#ffffff}
.card.store-hero.has-cover.hero-tone-light .tag,.card.store-hero.has-cover.hero-tone-light .muted{color:rgba(255,255,255,.85)}
.card.store-hero.has-cover.hero-tone-dark{color:#16181d}
.card.store-hero.has-cover.hero-tone-dark .tag,.card.store-hero.has-cover.hero-tone-dark .muted{color:rgba(20,22,28,.72)}
/* No-cover legibility at the big size: the four flagship looks
   whose hero text is light (Crown Classic, Midnight Empire,
   Island Azure, Mint Noir) run 120deg gradients that END in a
   bright stop (gold / mint / teal) at the bottom-right — at
   212px centred the text sat over the dark zone, but riding low
   at 380px it would land on the bright stop and wash out. A
   bottom-anchored dark fade under the content (hero-content is
   z-index 1) restores the dark zone behind the text. Scoped to
   those four templates and to the no-cover state only; the two
   light looks (Blush Atelier, Editorial Cream) carry dark text
   over mid-tone ends and need nothing, and flat template
   backgrounds do not shift with size. */
body[data-template="Crown Classic"] .card.store-hero:not(.has-cover)::before,body[data-template="Midnight Empire"] .card.store-hero:not(.has-cover)::before,body[data-template="Island Azure"] .card.store-hero:not(.has-cover)::before,body[data-template="Mint Noir"] .card.store-hero:not(.has-cover)::before{content:'';position:absolute;left:0;right:0;bottom:0;height:68%;background:linear-gradient(to top,rgba(0,0,0,.42),rgba(0,0,0,0));pointer-events:none}
/* Directory card hero (Dec 3, 2026 — Director: "show the background
   image here for the user store too"): the Stores directory card
   and the home Boost strip card open with a header zone that
   mirrors the store's own storefront hero — the same cover layer
   stack (photo framed from the focal point, look tint, legibility
   scrim; the card renderer never emits the motion class) and the
   same fallback paint (Decoration Style > Flagship gradient >
   template background). Only the size is card-sized: the hero's
   tall banner becomes a compact band, and the bio + counts stay on
   the card's plain surface below it. The tone + look text rules
   are re-scoped here because the hero's own rules key on
   body[data-template] (the PAGE's template) or on .card.store-hero
   — a directory card must wear its OWN store's look. */
.store-card .store-card-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:118px;margin:-16px -16px 12px;padding:16px;border-radius:var(--radius) var(--radius) 0 0}
.storefront .store-card .store-card-hero{margin:-22px -22px 14px;padding:20px 22px 16px}
.store-card .store-card-hero.has-cover.hero-tone-light{color:#ffffff}
.store-card .store-card-hero.has-cover.hero-tone-light .tag,.store-card .store-card-hero.has-cover.hero-tone-light .muted{color:rgba(255,255,255,.85)}
.store-card .store-card-hero.has-cover.hero-tone-dark{color:#16181d}
.store-card .store-card-hero.has-cover.hero-tone-dark .tag,.store-card .store-card-hero.has-cover.hero-tone-dark .muted{color:rgba(20,22,28,.72)}
.store-card .store-card-hero.look-crown-classic{color:#faf6ee}
.store-card .store-card-hero.look-crown-classic .tag{color:#d8e6dd}
.store-card .store-card-hero.look-midnight-empire{color:#f2f2f0}
.store-card .store-card-hero.look-midnight-empire .tag{color:#a9a9b3}
.store-card .store-card-hero.look-island-azure{color:#fdf6e9}
.store-card .store-card-hero.look-island-azure .tag{color:#cfe0ea}
.store-card .store-card-hero.look-mint-noir{color:#e8f5ee}
.store-card .store-card-hero.look-mint-noir .tag{color:#8fa89b}
.store-card .store-card-hero.hero-look-fade::before{content:'';position:absolute;left:0;right:0;bottom:0;height:68%;background:linear-gradient(to top,rgba(0,0,0,.42),rgba(0,0,0,0));pointer-events:none}
@keyframes heroKenBurns{from{transform:scale(1.03) translate(0,0)}to{transform:scale(1.15) translate(-1.6%,1.2%)}}
.hero-cover-img.hero-motion{animation:heroKenBurns 26s ease-in-out infinite alternate}
@media (prefers-reduced-motion: reduce){.hero-cover-img.hero-motion{animation:none}}
/* Customize cover control: the true preview is a live banner —
   tapping it sets the focal point (the dot marks it). */
.cover-preview{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;padding:14px;min-height:150px;cursor:crosshair;margin:8px 0}
/* With a cover picked, the control's true preview takes the same
   banner proportions + flex-end composition as the live hero, so
   what the seller frames here is what buyers get. */
.cover-preview.has-cover{display:flex;flex-direction:column;justify-content:flex-end;min-height:216px;padding:18px}
@media (max-width:640px){.cover-preview.has-cover{min-height:176px}}
/* The control's NO-cover preview state takes the same proportions
   (216px / 176px, flex-end) so the seller frames the big no-cover
   hero at the same scale as the cover one. */
.cover-preview:not(.has-cover){display:flex;flex-direction:column;justify-content:flex-end;min-height:216px;padding:18px}
@media (max-width:640px){.cover-preview:not(.has-cover){min-height:176px}}
.cover-focal-dot{position:absolute;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px rgba(0,0,0,.5);z-index:2;pointer-events:none}
.cover-toggle{display:block;margin:6px 0;font-weight:400}
/* Announcement banner on the home page (owner-set; empty = hidden). */
.announce{background:#d4af37;color:#141414;font-weight:700;text-align:center;padding:12px 16px;border-radius:12px;margin:0 0 12px}

.pay-card{margin:14px 0}
.owner-flash{outline:3px solid #d4af37 !important;outline-offset:2px}
.pay-logo{height:30px;width:auto;max-width:160px;display:block;margin:2px 0 10px}
.pay-logo-link{display:inline-block;cursor:pointer}
.pay-logo-btn{background:none;border:0;padding:0;display:inline-block;cursor:pointer}
.paddle-badge{display:inline-block;background:#101828;color:#fff;font-weight:700;font-size:13px;letter-spacing:.4px;border-radius:999px;padding:3px 12px;vertical-align:middle;border:0;font-family:inherit;cursor:pointer}
.paddle-badge:hover{background:#1d2939}
.paddle-badge:active{transform:scale(.96)}
.paddle-badge:focus-visible{outline:2px solid #101828;outline-offset:2px}
.paddle-pay-btn{border:1px solid #101828;color:#101828;font-weight:700}
.connect-btn{margin:8px 0 2px}
.connected-line{margin:6px 0;font-weight:600}
.owner-suggest{border:1px solid var(--line);border-radius:10px;background:var(--card);margin-top:6px;overflow:hidden}
.owner-suggest-row{display:flex;align-items:center;min-height:44px;padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--line);font-size:15px;color:var(--ink)}
.owner-suggest-row:last-child{border-bottom:none}
.owner-suggest-row b{background:rgba(212,175,55,.35);border-radius:3px;padding:0 1px}
.owner-suggest-none{color:var(--muted);cursor:default}
/* Coming-soon third plan + tools (display only — no price, no
   purchase path, nothing activates). Blue is the future verified
   badge colour, kept apart from the gold/White Tick family. */
.cs-ribbon{background:linear-gradient(135deg,#3b82f6,#1e40af);border-color:#93c5fd;color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.45);letter-spacing:.6px;text-transform:uppercase}
.cs-tag{background:#e8effe;border-color:#2563eb;color:#1e40af}
/* Decorated premium treatment (Director, Nov 28): the Creator Mode
   plan card gets a deep-blue gradient, a glowing border, corner ring
   + sparkle accents and a halo around the blue badge, so it reads as
   the decorated tier beside the plain Monthly/Yearly cards. The Board
   card wears the same blue family, lighter. Pure CSS — every word,
   the no-price line and the disabled button stay exactly as they are. */
.store-card.cs-card{cursor:default;position:relative;overflow:hidden;color:#eaf1ff;border:1px solid #60a5fa;background:radial-gradient(circle at 88% 8%,rgba(255,255,255,.22) 0 2px,transparent 3px),radial-gradient(circle at 78% 22%,rgba(191,219,254,.5) 0 1.5px,transparent 2.5px),radial-gradient(circle at 94% 32%,rgba(255,255,255,.35) 0 1.5px,transparent 2.5px),radial-gradient(120% 90% at 85% 0%,#3b82f6 0%,transparent 55%),linear-gradient(160deg,#0a2566 0%,#1e40af 52%,#2563eb 100%);box-shadow:0 12px 30px rgba(30,64,175,.38),0 0 0 1px rgba(147,197,253,.35),inset 0 1px 0 rgba(255,255,255,.28)}
.store-card.cs-card:hover{border-color:#93c5fd;box-shadow:0 14px 34px rgba(30,64,175,.48),0 0 0 1px rgba(147,197,253,.55),inset 0 1px 0 rgba(255,255,255,.28)}
.store-card.cs-card::before{content:"";position:absolute;top:-34px;right:-34px;width:104px;height:104px;border-radius:50%;border:10px solid rgba(147,197,253,.28);pointer-events:none}
.store-card.cs-card::after{content:"";position:absolute;top:14px;right:16px;width:16px;height:16px;background:linear-gradient(135deg,#fff,#bfdbfe);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);pointer-events:none}
.store-card.cs-card h3{color:#fff;font-size:21px;letter-spacing:.4px;text-shadow:0 1px 10px rgba(147,197,253,.65)}
.store-card.cs-card p{color:#dbeafe}
.store-card.cs-card svg{filter:drop-shadow(0 0 5px rgba(147,197,253,.95)) drop-shadow(0 0 2px rgba(255,255,255,.65))}
.cs-price{font-size:17px;color:#fff;font-weight:800;letter-spacing:.2px}
.store-card.cs-card p.cs-save{color:#fcd34d;font-weight:700}
.store-card.cs-card .btn:disabled{background:rgba(255,255,255,.14);color:#eaf1ff;border:1px solid rgba(255,255,255,.5);opacity:.9}
.card.cs-board{border:1px solid #bfdbfe;border-top:3px solid #2563eb;background:linear-gradient(180deg,#eff6ff 0%,#fff 70%);box-shadow:0 4px 16px rgba(37,99,235,.14)}
.card.cs-board h3{color:#1e40af;font-size:18px}
.card.cs-board svg{filter:drop-shadow(0 0 4px rgba(37,99,235,.5))}

/* Plan comparison table (display only, under the plan cards) */
.cmp-wrap{overflow-x:auto;margin-top:16px}
.cmp-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;font-size:14px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.cmp-table th{background:#503fa8;color:#fff;text-align:left;padding:10px 12px;font-weight:700}
.cmp-table td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:top;color:var(--ink)}
.cmp-table td.cmp-pro,.cmp-table th.cmp-pro-h{background:#fdf6dd}
.cmp-table th.cmp-pro-h{background:#46368f}
.cmp-table .cmp-yes{color:var(--gold);font-weight:800;font-size:16px;text-align:center}
.cmp-table .cmp-no{color:var(--muted);text-align:center}
.cmp-note{color:var(--muted);font-size:12px;margin-top:8px}
.cmp-pill{display:inline-block;background:var(--gold);color:#141414;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:800;margin-left:6px;vertical-align:2px;white-space:nowrap}
/* Crown Omega column (Dec 3, 2026): the parked tier rides in the
   Omega card's own black + gold — a dark header and a pale gold
   column tint, mirroring the Pro column's purple/cream pairing.
   On phones the whole table fits the screen at once (Dec 3, 2026
   fix below): fixed layout, no sideways swipe to reach Omega. */
.cmp-table td.cmp-om,.cmp-table th.cmp-om-h{background:#f7efdb}
.cmp-table th.cmp-om-h{background:#141414;color:#f5d77f}
.cmp-table td:first-child{min-width:140px}
@media (max-width:640px){
 .cmp-wrap{overflow-x:visible}
 .cmp-table{table-layout:fixed;font-size:11.5px}
 .cmp-table th,.cmp-table td{padding:7px 6px;overflow-wrap:anywhere}
 .cmp-table th{width:23.33%;font-size:11px;vertical-align:top}
 .cmp-table th:first-child{width:30%}
 .cmp-table td:first-child{min-width:0}
 .cmp-table .cmp-yes{font-size:14px}
 .cmp-pill{display:block;margin:4px 0 0;padding:2px 6px;font-size:10px;line-height:1.3;text-align:center;white-space:normal}
}

/* Crown Pro (Nov 28, 2026): blue verified badge, Featured Pro tag,
   Boost strip/tag, Pro studio panel, decoration swatches. The Pro
   blue (#2563eb family) is kept apart from the gold White Tick
   marks and the Standard card styling — additive classes only. */
.pro-badge{display:inline-flex;align-items:center;gap:4px;color:#2563eb;font-size:12.5px;font-weight:800;line-height:1;vertical-align:middle;margin-left:5px;white-space:nowrap}
.pro-badge svg{flex:none;display:block}
.pro-featured{display:inline-block;background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:2px}
.om-badge{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#0B0D12,#1a1d26);color:#F5D77F;border:1px solid rgba(212,175,55,.75);font-size:10.5px;font-weight:800;letter-spacing:.08em;padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:2px;white-space:nowrap}
.om-badge-mark{color:#D4AF37;font-size:11px;line-height:1}
.pro-boost-tag{display:inline-block;background:#0ea5e9;color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:2px}
.boost-strip{margin-top:14px}
.boost-strip .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:10px}
.pro-panel{border:1.5px solid #2563eb;background:linear-gradient(160deg,rgba(37,99,235,.07),rgba(37,99,235,.02));border-radius:14px;padding:16px;margin:0 0 16px}
.pro-panel h3{margin-top:0;color:#1d4ed8}
.pro-panel .pro-sub{border-top:1px dashed rgba(37,99,235,.35);padding-top:12px;margin-top:12px}
.pro-panel .pro-sub:first-of-type{border-top:none;padding-top:0;margin-top:4px}
.pro-active-note{background:rgba(37,99,235,.1);border:1px solid rgba(37,99,235,.45);color:var(--ink);border-radius:10px;padding:9px 12px;font-weight:700;margin:0 0 10px}
.pro-concierge-line{margin-top:10px;font-size:13px;font-weight:700;color:#1d4ed8}
.decor-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.decor-sw{width:64px;height:44px;border-radius:10px;border:2px solid var(--line);cursor:pointer;padding:0}
.decor-sw.sel{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.3)}
/* Decoration Styles on the store page: the chosen style themes EVERY
   card viewStore renders, not just the header. viewStore wraps its
   output in .store-decor[data-decor] ONLY when decorStyleOf() returns a
   style (Pro/WT store with a style chosen), so home, the directory,
   the studio and plain stores never see these rules. --dc-bg = section
   card background, --dc-inner = nested card background, --dc-border =
   border/accent, --dc-text/--dc-muted/--dc-link = readable text colours
   on those backgrounds. The header card keeps its full-strength inline
   gradient — an inline style beats these rules. Buttons, badges,
   inputs and slots keep their own colours and stay usable. */
.store-decor[data-decor] .card{background:var(--dc-bg);border-color:var(--dc-border);color:var(--dc-text)}
.store-decor[data-decor] .card .card{background:var(--dc-inner)}
.store-decor[data-decor] .card .muted,.store-decor[data-decor] .card .tag{color:var(--dc-muted)}
.store-decor[data-decor] .card a{color:var(--dc-link)}
.store-decor.decor-royal-gold{--dc-bg:linear-gradient(135deg,#fbf0cd 0%,#f6e3a1 60%,#eed488 100%);--dc-inner:linear-gradient(135deg,#fdf8e3 0%,#faedb9 60%,#f6e3a1 100%);--dc-border:#c9a227;--dc-text:#2e2403;--dc-muted:#6d5a14;--dc-link:#7a5c00}
.store-decor.decor-ocean-wave{--dc-bg:linear-gradient(135deg,#dff3fb 0%,#bfe6f5 60%,#a5dbf2 100%);--dc-inner:linear-gradient(135deg,#eef9fd 0%,#d8f0fa 60%,#bfe6f5 100%);--dc-border:#0077b6;--dc-text:#04263b;--dc-muted:#33566b;--dc-link:#005f8f}
.store-decor.decor-sunset-glow{--dc-bg:linear-gradient(135deg,#fdeed9 0%,#fbd9bd 60%,#f8c9a3 100%);--dc-inner:linear-gradient(135deg,#fef6ec 0%,#fce8d2 60%,#fbd9bd 100%);--dc-border:#e76f51;--dc-text:#3d1c0d;--dc-muted:#7c4a30;--dc-link:#a83e1c}
.store-decor.decor-forest-canopy{--dc-bg:linear-gradient(135deg,#e2f3e7 0%,#cdeeda 60%,#b7e3c8 100%);--dc-inner:linear-gradient(135deg,#eff8f1 0%,#ddf1e3 60%,#cdeeda 100%);--dc-border:#2d6a4f;--dc-text:#0e2a1e;--dc-muted:#3d5c4c;--dc-link:#1d5c3d}
.store-decor.decor-midnight-neon{--dc-bg:linear-gradient(135deg,#2a1454 0%,#1d0f3d 60%,#170b31 100%);--dc-inner:linear-gradient(135deg,#3b1c74 0%,#2a1454 60%,#22104a 100%);--dc-border:#f72585;--dc-text:#f4efff;--dc-muted:#c9b8f2;--dc-link:#ffd166}
.store-decor.decor-rose-garden{--dc-bg:linear-gradient(135deg,#fdeeea 0%,#f9dcd6 60%,#f5ccc4 100%);--dc-inner:linear-gradient(135deg,#fef5f3 0%,#fce7e2 60%,#f9dcd6 100%);--dc-border:#b56576;--dc-text:#38191f;--dc-muted:#77525b;--dc-link:#96404f}
.store-decor.decor-desert-dunes{--dc-bg:linear-gradient(135deg,#f7ecdc 0%,#eddcc3 60%,#e6cfa9 100%);--dc-inner:linear-gradient(135deg,#fbf4e8 0%,#f3e6cf 60%,#eddcc3 100%);--dc-border:#c08552;--dc-text:#33220f;--dc-muted:#6f5940;--dc-link:#8a5a24}
.store-decor.decor-arctic-frost{--dc-bg:linear-gradient(135deg,#e8f6fc 0%,#d3edf9 60%,#bde0f5 100%);--dc-inner:linear-gradient(135deg,#f4fbfe 0%,#e2f3fb 60%,#d3edf9 100%);--dc-border:#4dabcf;--dc-text:#0b2f42;--dc-muted:#3d5f72;--dc-link:#14719c}
.store-decor.decor-crimson-royale{--dc-bg:linear-gradient(135deg,#fdecec 0%,#fbdada 60%,#f6c6c6 100%);--dc-inner:linear-gradient(135deg,#fef3f3 0%,#fce4e4 60%,#fbdada 100%);--dc-border:#a4161a;--dc-text:#3d0608;--dc-muted:#7c3a3d;--dc-link:#8a6d1c}
.store-decor.decor-lavender-dream{--dc-bg:linear-gradient(135deg,#f3eafd 0%,#e7d7fc 60%,#dcc7fa 100%);--dc-inner:linear-gradient(135deg,#f9f5fe 0%,#f0e6fd 60%,#e7d7fc 100%);--dc-border:#9d4edd;--dc-text:#2c1052;--dc-muted:#5f4a86;--dc-link:#7b2cbf}
.store-decor.decor-emerald-city{--dc-bg:linear-gradient(135deg,#e6f7ee 0%,#cdf0dd 60%,#b2e4cb 100%);--dc-inner:linear-gradient(135deg,#f2fbf5 0%,#dcf5e7 60%,#cdf0dd 100%);--dc-border:#059669;--dc-text:#07301f;--dc-muted:#38604c;--dc-link:#047857}
.store-decor.decor-chocolate-luxe{--dc-bg:linear-gradient(135deg,#f7ead9 0%,#efdcbf 60%,#e6cda3 100%);--dc-inner:linear-gradient(135deg,#fbf3e6 0%,#f5e8d0 60%,#efdcbf 100%);--dc-border:#6f4518;--dc-text:#2e1c0d;--dc-muted:#6b5138;--dc-link:#8a5a24}
.store-decor.decor-peach-sorbet{--dc-bg:linear-gradient(135deg,#fff0e6 0%,#ffe0d1 60%,#ffd3ba 100%);--dc-inner:linear-gradient(135deg,#fff7f1 0%,#ffead9 60%,#ffe0d1 100%);--dc-border:#e5989b;--dc-text:#40231a;--dc-muted:#7d5546;--dc-link:#b3543f}
.store-decor.decor-sky-cotton{--dc-bg:linear-gradient(135deg,#eaf7fe 0%,#d8f1fd 60%,#c2e8fb 100%);--dc-inner:linear-gradient(135deg,#f5fcff 0%,#e6f6fe 60%,#d8f1fd 100%);--dc-border:#38bdf8;--dc-text:#0b3049;--dc-muted:#3d6076;--dc-link:#0284c7}
.store-decor.decor-monochrome{--dc-bg:linear-gradient(135deg,#f1f1f1 0%,#e4e4e4 60%,#d6d6d6 100%);--dc-inner:linear-gradient(135deg,#fafafa 0%,#efefef 60%,#e4e4e4 100%);--dc-border:#111111;--dc-text:#111111;--dc-muted:#555555;--dc-link:#000000}
.store-decor.decor-rainbow-pop{--dc-bg:linear-gradient(135deg,#ffe3e3 0%,#fff3c4 35%,#dff5d2 65%,#d9ecff 100%);--dc-inner:linear-gradient(135deg,#fff1f1 0%,#fff9dd 35%,#edfbe4 65%,#eaf5ff 100%);--dc-border:#6a4c93;--dc-text:#232323;--dc-muted:#5c5c5c;--dc-link:#1982c4}
.store-decor.decor-coffee-house{--dc-bg:linear-gradient(135deg,#f6ecdf 0%,#eee0cb 60%,#e4d0ae 100%);--dc-inner:linear-gradient(135deg,#fbf5ea 0%,#f4e9d6 60%,#eee0cb 100%);--dc-border:#8d6748;--dc-text:#2e2013;--dc-muted:#6d5942;--dc-link:#7c4a21}
.store-decor.decor-cherry-blossom{--dc-bg:linear-gradient(135deg,#fdeef5 0%,#fadbe9 60%,#f6c6da 100%);--dc-inner:linear-gradient(135deg,#fef6fa 0%,#fce6f0 60%,#fadbe9 100%);--dc-border:#e56b9f;--dc-text:#40182a;--dc-muted:#7d4a5e;--dc-link:#c2437d}
.store-decor.decor-deep-ocean{--dc-bg:linear-gradient(135deg,#0d3d5c 0%,#093048 60%,#062539 100%);--dc-inner:linear-gradient(135deg,#12506f 0%,#0d3d5c 60%,#093048 100%);--dc-border:#12a5a0;--dc-text:#eefaff;--dc-muted:#a9cedd;--dc-link:#5eead4}
.store-decor.decor-golden-hour{--dc-bg:linear-gradient(135deg,#fdf0d3 0%,#fbe3ac 60%,#f8d47e 100%);--dc-inner:linear-gradient(135deg,#fef7e3 0%,#fcecc4 60%,#fbe3ac 100%);--dc-border:#d97706;--dc-text:#3a2403;--dc-muted:#75591f;--dc-link:#b45309}
.store-decor.decor-mint-fresh{--dc-bg:linear-gradient(135deg,#e2fbf3 0%,#c9f7e8 60%,#a9f0d8 100%);--dc-inner:linear-gradient(135deg,#f0fdf8 0%,#dcfaef 60%,#c9f7e8 100%);--dc-border:#14b8a6;--dc-text:#07332c;--dc-muted:#38665c;--dc-link:#0f766e}
.store-decor.decor-royal-purple{--dc-bg:linear-gradient(135deg,#ece5fb 0%,#dbcefa 60%,#c9b3f5 100%);--dc-inner:linear-gradient(135deg,#f5f1fe 0%,#e9e1fc 60%,#dbcefa 100%);--dc-border:#94a3b8;--dc-text:#22094f;--dc-muted:#57468a;--dc-link:#6d28d9}
.store-decor.decor-coral-reef{--dc-bg:linear-gradient(135deg,#ffe9e2 0%,#ffd9cc 60%,#ffc4b2 100%);--dc-inner:linear-gradient(135deg,#fff4ef 0%,#ffe6da 60%,#ffd9cc 100%);--dc-border:#ff6f61;--dc-text:#3d1a12;--dc-muted:#7c5040;--dc-link:#0e7c86}
.store-decor.decor-charcoal-slate{--dc-bg:linear-gradient(135deg,#3b4756 0%,#2b3542 60%,#1f2733 100%);--dc-inner:linear-gradient(135deg,#4a586a 0%,#3b4756 60%,#2b3542 100%);--dc-border:#94a3b8;--dc-text:#f1f5f9;--dc-muted:#b6c2d2;--dc-link:#7dd3fc}
/* All-in-One Autonomous Micron AI command center (Pro Tools tab) */
.pro-cc-pills{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px}
.pro-cc-pill{border-radius:999px;margin:0}
.pro-cc-ws{border-top:1px solid var(--line);padding-top:10px;margin-top:4px}
.pro-cc-kind{display:inline-block;background:#2563eb;color:#fff;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}
.pro-cc-actions{margin-top:10px}

/* Per-tool Drafts boxes (migration 040): one box inside each tool */
.drafts-box{border:1px dashed var(--line);border-radius:10px;padding:10px 12px;margin:12px 0}
.drafts-box h4{margin:0 0 6px}
.draft-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.draft-main{min-width:0;overflow-wrap:anywhere}
.draft-actions{white-space:nowrap}

/* Help walkthrough video (Help view + home Help area) */
.help-video h3{margin-top:0}
.help-video .video-wrap{position:relative;padding-top:56.25%;border-radius:12px;overflow:hidden;background:#000}
.help-video .video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* Tap-to-load facade: thumbnail + play button only, the real YouTube
   player iframe is swapped in by playHelpVideo() on tap, so the card
   no longer sits black while the heavy player payload loads. */
.help-video .video-facade{position:absolute;inset:0;width:100%;height:100%;display:block;padding:0;border:0;background:#000;cursor:pointer;-webkit-appearance:none;appearance:none}
.help-video .video-facade img{width:100%;height:100%;object-fit:cover;display:block}
.help-video .video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:68px;height:48px;border-radius:12px;background:rgba(255,0,0,.92);color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.35);pointer-events:none}
.help-video .video-facade:hover .video-play,.help-video .video-facade:focus-visible .video-play{background:#ff0000}
.help-video .video-facade:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Customize live preview (Nov 29, 2026): the mini store page inside the
   Customize tab. The frame's background is painted inline by
   paintCustPreview() with the same rule viewStore uses (decor base,
   else a dark template's fixed page colour, else the pending bg
   colour). The template variable sets below mirror the
   body[data-template] rules at the top of this file, scoped to the
   preview frame so the studio page itself never changes theme. The
   four dark templates also force card text dark, exactly like their
   body rules. Decor styles need no rules here — the preview reuses
   the real .store-decor classes above. */
.cust-preview{margin:20px 0 4px}
.cust-preview-title{font-weight:700;margin:0 0 8px}
.cust-preview-page{border:1px solid var(--line);border-radius:14px;padding:12px;color:var(--ink)}
.cust-preview-page .card{margin:10px 0}
.cust-preview-page[data-template="Royal Classic"]{--gold:#d4af37;--gold2:#f5d76e;--ink:#1a1a1a;--card:#ffffff;--radius:14px}
.cust-preview-page[data-template="Midnight Stage"]{--gold:#c9a227;--gold2:#f5d76e;--ink:#e8e8e8;--card:#ffffff;--muted:#a9a9b3;--radius:14px}
.cust-preview-page[data-template="Midnight Stage"] .card{color:#1a1a1a}
.cust-preview-page[data-template="Midnight Stage"] .card .muted{color:#666}
.cust-preview-page[data-template="Island Fresh"]{--gold:#2ec4b6;--gold2:#8fe3d8;--ink:#123332;--card:#f2fbf9;--radius:16px}
.cust-preview-page[data-template="Rosewood"]{--gold:#b23a48;--gold2:#e8a0ae;--ink:#2b1418;--card:#fdf6f7;--radius:14px}
.cust-preview-page[data-template="Mono Minimal"]{--gold:#141414;--gold2:#8a8a8a;--ink:#111111;--card:#ffffff;--radius:4px}
.cust-preview-page[data-template="Mono Minimal"] .btn:not(.ghost){color:#fff}
.cust-preview-page[data-template="Forest Retreat"]{--gold:#2d6a4f;--gold2:#95d5b2;--ink:#14261c;--card:#f4faf5;--radius:12px}
.cust-preview-page[data-template="Golden Hour"]{--gold:#e09f3e;--gold2:#f6d186;--ink:#33240a;--card:#fffaf0;--radius:14px}
.cust-preview-page[data-template="Ocean Deep"]{--gold:#0077b6;--gold2:#90e0ef;--ink:#062a3a;--card:#f0faff;--radius:14px}
.cust-preview-page[data-template="Blush Boutique"]{--gold:#e5989b;--gold2:#ffcdb2;--ink:#38222a;--card:#fff7f7;--radius:18px}
.cust-preview-page[data-template="Charcoal Pro"]{--gold:#9a9a9a;--gold2:#ced4da;--ink:#e9ecef;--card:#ffffff;--muted:#adb5bd;--radius:6px}
.cust-preview-page[data-template="Charcoal Pro"] .card{color:#1a1a1a}
.cust-preview-page[data-template="Charcoal Pro"] .card .muted{color:#666}
.cust-preview-page[data-template="Tropical Pop"]{--gold:#06d6a0;--gold2:#ffd166;--ink:#07332a;--card:#f4fffb;--radius:16px}
.cust-preview-page[data-template="Lavender Calm"]{--gold:#8267c9;--gold2:#cdbcf5;--ink:#241b3a;--card:#f8f6ff;--radius:16px}
.cust-preview-page[data-template="Desert Sand"]{--gold:#c08552;--gold2:#e6ccb2;--ink:#33241a;--card:#fdf8f2;--radius:12px}
.cust-preview-page[data-template="Emerald Luxe"]{--gold:#c9a227;--gold2:#f5d76e;--ink:#0c2b21;--card:#f3faf6;--radius:14px}
.cust-preview-page[data-template="Candy Shop"]{--gold:#ef476f;--gold2:#ffa8c5;--ink:#38101f;--card:#fff5f8;--radius:20px}
.cust-preview-page[data-template="Arctic Clean"]{--gold:#4dabcf;--gold2:#bde0f5;--ink:#10222e;--card:#ffffff;--radius:10px}
.cust-preview-page[data-template="Sunset Glow"]{--gold:#e76f51;--gold2:#f6bd8f;--ink:#33150c;--card:#fff8f3;--radius:14px}
.cust-preview-page[data-template="Royal Navy"]{--gold:#d4af37;--gold2:#f5d76e;--ink:#e8ecf4;--card:#ffffff;--muted:#9aa7bd;--radius:12px}
.cust-preview-page[data-template="Royal Navy"] .card{color:#1a1a1a}
.cust-preview-page[data-template="Royal Navy"] .card .muted{color:#666}
.cust-preview-page[data-template="Cherry Noir"]{--gold:#e5383b;--gold2:#ff8fa3;--ink:#f3e9ea;--card:#ffffff;--muted:#b8a4a8;--radius:14px}
.cust-preview-page[data-template="Cherry Noir"] .card{color:#1a1a1a}
.cust-preview-page[data-template="Cherry Noir"] .card .muted{color:#666}
.cust-preview-page[data-template="Mint Cream"]{--gold:#3aa981;--gold2:#a7e8c9;--ink:#14342a;--card:#f6fdf9;--radius:16px}
.cust-preview-page[data-template="Coffee House"]{--gold:#a9744f;--gold2:#ddb892;--ink:#2a1a12;--card:#fbf6f0;--radius:12px}
.cust-preview-page[data-template="Violet Dream"]{--gold:#8338ec;--gold2:#cfb3ff;--ink:#22103d;--card:#f9f5ff;--radius:16px}
/* Flagship Looks in the preview frame: same variables, fonts and hero
   text colours as the body[data-template] rules above, scoped to the
   frame. The dark looks' cards are dark, so no .card colour override. */
.cust-preview-page[data-template="Crown Classic"]{--gold:#d4a24e;--gold2:#f0d089;--ink:#12211f;--card:#ffffff;--radius:14px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cust-preview-page[data-template="Crown Classic"] h1,.cust-preview-page[data-template="Crown Classic"] h2,.cust-preview-page[data-template="Crown Classic"] h3{font-family:Georgia,'Times New Roman',serif}
.cust-preview-page[data-template="Crown Classic"] .store-hero{color:#faf6ee}
.cust-preview-page[data-template="Crown Classic"] .store-hero .tag,.cust-preview-page[data-template="Crown Classic"] .store-hero .muted{color:#d8e6dd}
.cust-preview-page[data-template="Blush Atelier"]{--gold:#c4748a;--gold2:#f3cfc9;--ink:#3d2b2e;--card:#ffffff;--radius:18px;font-family:'Helvetica Neue',Arial,sans-serif}
.cust-preview-page[data-template="Blush Atelier"] h1,.cust-preview-page[data-template="Blush Atelier"] h2,.cust-preview-page[data-template="Blush Atelier"] h3{font-family:Georgia,'Times New Roman',serif}
.cust-preview-page[data-template="Blush Atelier"] .btn:not(.ghost){color:#fff}
.cust-preview-page[data-template="Editorial Cream"]{--gold:#c96f4a;--gold2:#e9c39a;--ink:#1d1a16;--card:#fffdf7;--radius:12px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cust-preview-page[data-template="Editorial Cream"] h1,.cust-preview-page[data-template="Editorial Cream"] h2,.cust-preview-page[data-template="Editorial Cream"] h3{font-family:Georgia,'Times New Roman',serif}
.cust-preview-page[data-template="Editorial Cream"] .btn:not(.ghost){color:#fff}
.cust-preview-page[data-template="Midnight Empire"]{--gold:#e3b341;--gold2:#f5d76e;--ink:#f2f2f0;--card:#17171b;--muted:#a9a9b3;--radius:14px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cust-preview-page[data-template="Midnight Empire"] h1,.cust-preview-page[data-template="Midnight Empire"] h2,.cust-preview-page[data-template="Midnight Empire"] h3{font-family:'Helvetica Neue',Arial,sans-serif;letter-spacing:.5px}
.cust-preview-page[data-template="Island Azure"]{--gold:#ff7a59;--gold2:#ffc4b2;--ink:#0d2b45;--card:#ffffff;--radius:16px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cust-preview-page[data-template="Island Azure"] .btn:not(.ghost){color:#fff}
.cust-preview-page[data-template="Island Azure"] .store-hero{color:#fdf6e9}
.cust-preview-page[data-template="Island Azure"] .store-hero .tag,.cust-preview-page[data-template="Island Azure"] .store-hero .muted{color:#cfe0ea}
.cust-preview-page[data-template="Mint Noir"]{--gold:#3ddc97;--gold2:#a9f0d8;--ink:#e8f5ee;--card:#12181a;--muted:#8fa89b;--radius:14px;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cust-preview-page[data-template="Mint Noir"] h1,.cust-preview-page[data-template="Mint Noir"] h2,.cust-preview-page[data-template="Mint Noir"] h3{font-family:'Helvetica Neue',Arial,sans-serif;letter-spacing:.5px}
/* Subscription welcome celebration: a full-screen gold greeting shown
   ONCE per store + plan when a Standard / Crown Pro subscription is
   first seen live in the studio. Pure CSS confetti (no libraries),
   light enough for phones; the overlay element lives on document.body
   so render() never rebuilds it. */
.welcome-overlay{position:fixed;inset:0;z-index:120;background:rgba(20,16,4,.74);display:flex;align-items:center;justify-content:center;padding:18px;overflow:hidden}
.welcome-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.wc-piece{position:absolute;top:-16px;width:9px;height:14px;border-radius:2px;opacity:0;animation-name:wc-fall;animation-timing-function:linear;animation-iteration-count:infinite}
@keyframes wc-fall{0%{transform:translate3d(0,-4vh,0) rotate(0deg);opacity:0}8%{opacity:1}88%{opacity:1}100%{transform:translate3d(var(--wc-x,0px),106vh,0) rotate(var(--wc-r,300deg));opacity:0}}
.welcome-card{position:relative;background:linear-gradient(160deg,#fffdf4,#fdf3d0);border:2px solid var(--gold);border-radius:20px;max-width:430px;width:100%;text-align:center;padding:30px 22px 26px;box-shadow:0 18px 50px rgba(0,0,0,.45);animation:wc-pop .45s ease both}
.welcome-overlay.is-pro .welcome-card{border-color:#2563eb;background:linear-gradient(160deg,#f2f7ff,#fdf3d0)}
.welcome-crown{display:flex;justify-content:center;animation:wc-bob 2.4s ease-in-out infinite}
.welcome-crown .crown-hero{width:96px;height:96px;border:3px solid var(--gold);box-shadow:0 6px 22px rgba(212,175,55,.5)}
.welcome-overlay.is-pro .welcome-crown .crown-hero{border-color:#2563eb;box-shadow:0 6px 22px rgba(37,99,235,.4)}
.welcome-title{font-size:34px;line-height:1.15;margin:12px 0 2px;color:#8a6d00}
.welcome-overlay.is-pro .welcome-title{color:#1d4ed8}
.welcome-plan{font-size:23px;margin:2px 0 8px;color:var(--ink)}
.welcome-sub{font-size:16px;color:#444;margin:4px 0 8px}
.welcome-btn{font-size:17px;padding:13px 28px;margin-top:10px}
@keyframes wc-pop{from{transform:scale(.86);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes wc-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media (prefers-reduced-motion:reduce){.wc-piece{display:none}.welcome-card,.welcome-crown{animation:none}}

/* Audiobook Studio (Crown Pro, migration 028): studio section in the
   Pro Tools tab — book list, page editor, generation progress and
   the read-along player. Gold/crown language, phone-first. */
.ab-new{border-top:1px dashed rgba(37,99,235,.35);padding-top:10px;margin-top:10px}
.ab-book{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid rgba(37,99,235,.25);border-radius:12px;padding:10px 12px;margin:8px 0;background:rgba(255,255,255,.55)}
.ab-book-main{min-width:0}
.ab-book-actions{flex:none}
.ab-block{border-top:1px dashed rgba(37,99,235,.35);padding-top:12px;margin-top:14px}
.ab-voices{display:flex;flex-wrap:wrap;gap:8px}
.ab-voice{display:flex;gap:6px;align-items:center;border:1px solid rgba(37,99,235,.25);border-radius:999px;padding:4px 6px}
.ab-voice.sel{border-color:var(--gold);background:#fff8dc}
.ab-page{border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:10px 12px;margin:10px 0;background:rgba(255,255,255,.6)}
.ab-page-head{margin-bottom:6px}
.ab-page textarea{width:100%;box-sizing:border-box}
.ab-page-foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.ab-regen{color:#9a6a00;font-weight:600}
.ab-fail-tag{color:#b00020;border-color:#b00020}
.ab-progress{height:12px;border-radius:999px;background:rgba(0,0,0,.12);overflow:hidden;margin:8px 0}
.ab-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),#2563eb);border-radius:999px;transition:width .3s ease}
.ab-check{display:flex;gap:8px;align-items:center;font-weight:600;margin:10px 0}
.ab-check input{width:auto}
/* Cover page note + free-preview toggle + product-page preview card
   (Dec 1, 2026). The toggle rides inside the flex page foot, so it
   drops its block margins there. */
.ab-cover-page-note{margin:0 0 6px}
.ab-page-foot .ab-free-toggle{margin:0;font-weight:500}
.ab-preview-card{margin-top:14px}
.ab-player{border:1.5px solid var(--gold);border-radius:14px;padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px));background:linear-gradient(170deg,#fffdf4,#fdf6da);margin-top:10px;margin-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.ab-player-head{margin-bottom:8px;color:#6b5300}
.ab-player-stage{width:100%;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:8px;overflow:hidden}
.ab-player-canvas{display:block;width:100%;height:auto}
.ab-player-now{margin:8px 0 4px}
.ab-player-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ab-player-bar select{flex:1;min-width:130px}
/* Buyer listen page (Phase 3): the delivered buyer's read-along player
   + MP3/PDF downloads. Reuses the .ab-player factory styling above. */
.ab-listen{max-width:760px;margin-left:auto;margin-right:auto;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
.ab-downloads{margin:8px 0 14px;padding-left:20px}
.ab-downloads li{margin:7px 0}
.ab-downloads a{font-weight:600}
@media (max-width:480px){
  .ab-book{flex-direction:column;align-items:flex-start}
  .ab-page-foot{flex-direction:column;align-items:flex-start;gap:6px}
}

/* Store dock: the signed-in store's round avatar, bottom-left,
   with a tap-open menu (My Studio / Sign out). */
.store-dock{position:fixed;left:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:50}
.store-dock-btn{width:48px;height:48px;border-radius:50%;border:2px solid #141414;padding:0;overflow:hidden;cursor:pointer;background:var(--gold);box-shadow:0 4px 14px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center}
.store-dock-btn .avatar,.store-dock-btn .avatar-img{width:44px;height:44px;font-size:19px;flex:none}
.store-dock-menu{position:absolute;left:0;bottom:58px;width:212px;background:#fff;color:#141414;border:1px solid var(--gold);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:12px;display:flex;flex-direction:column;gap:8px}
.store-dock-menu .sd-name{font-weight:800;font-size:16px}
.store-dock-menu .sd-user{color:#6b6250;font-size:13px;margin-top:-6px}
.store-dock-menu[hidden]{display:none}
/* Dock plan block (Director, Dec 4, 2026): the plan status line(s)
   under the store name in the dock menu. The line is a full-width
   left-aligned button when the plan carries an action; tapping it
   reveals Cancel / Renew directly underneath. */
.store-dock-menu .sd-plan{border-top:1px solid #eee5cf;padding-top:8px}
.store-dock-menu .sd-plan-line{display:block;width:100%;text-align:left;background:none;border:0;padding:2px;color:#141414;font-size:13px;line-height:1.35}
button.sd-plan-line{cursor:pointer;font:inherit}
.store-dock-menu .sd-plan-date{display:block;color:#6b6250;font-size:12px}
.store-dock-menu .sd-plan-none{color:#6b6250}
.store-dock-menu .sd-plan-actions{padding:6px 2px 2px}
.store-dock-menu .sd-plan-actions[hidden]{display:none}
.store-dock-menu .sd-plan-note{font-size:12px;color:#6b6250;margin:0 0 6px}
.store-dock-menu .sd-plan-act{font-size:13px;padding:6px 10px}

/* Crown Omega teaser card: "Obsidian & Liquid Gold Shimmer"
   (Director, Nov 29, 2026). Deep obsidian frosted glass with a
   luminous gold gradient border; two slow-drifting metallic gold
   light waves (transform/opacity only, GPU-friendly) under a
   lightweight canvas of floating gold dust (see initOmegaDust in
   app.js). Text sits above the effects layer and stays razor
   sharp: the waves are soft, blurred and low-alpha by design. */
.om-ribbon{background:linear-gradient(135deg,#e8c766,#b8860b);border-color:#ffe9a8;color:#141414;box-shadow:0 2px 8px rgba(184,134,11,.45);letter-spacing:.6px;text-transform:uppercase}
.store-card.om-card{cursor:default;position:relative;overflow:hidden;color:#f7efdb;border:1px solid transparent;background:linear-gradient(rgba(11,13,19,.82),rgba(11,13,19,.82)) padding-box,linear-gradient(140deg,#f5d77f 0%,#d4af37 30%,#7a5c14 55%,#d4af37 80%,#f5d77f 100%) border-box;backdrop-filter:blur(10px) saturate(1.25);-webkit-backdrop-filter:blur(10px) saturate(1.25);box-shadow:0 12px 30px rgba(0,0,0,.55),inset 0 1px 0 rgba(245,215,127,.22)}
.store-card.om-card>*:not(.om-fx){position:relative;z-index:1}
.store-card.om-card h3{color:#ffd95e}
.store-card.om-card .small{color:#e3d5ab}
.store-card.om-card::after{content:"";position:absolute;z-index:2;top:14px;right:16px;width:16px;height:16px;background:linear-gradient(135deg,#fff2c4,#c9a227);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);pointer-events:none}
.om-fx{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;background:linear-gradient(165deg,#0b0d12 0%,#0e1016 55%,#0b0d12 100%);pointer-events:none}
.om-fx::before,.om-fx::after{content:"";position:absolute;border-radius:50%;filter:blur(26px);will-change:transform,opacity}
.om-fx::before{width:130%;height:75%;left:-25%;top:-30%;background:radial-gradient(closest-side,rgba(212,175,55,.34),rgba(212,175,55,.10) 55%,transparent 72%);animation:omWaveA 17s ease-in-out infinite alternate}
.om-fx::after{width:120%;height:70%;right:-30%;bottom:-35%;background:radial-gradient(closest-side,rgba(245,215,127,.26),rgba(168,140,255,.10) 52%,rgba(212,175,55,.08) 62%,transparent 74%);animation:omWaveB 23s ease-in-out infinite alternate}
@keyframes omWaveA{from{transform:translate3d(-4%,-2%,0) scale(1)}to{transform:translate3d(7%,5%,0) scale(1.13)}}
@keyframes omWaveB{from{transform:translate3d(5%,3%,0) scale(1.1);opacity:.75}to{transform:translate3d(-6%,-4%,0) scale(.96);opacity:1}}
.om-dust{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Crown Omega plan card: billing toggle + annual pricing block.
   Obsidian & Liquid Gold, matching the .om-card family above. */
.om-bill-toggle{display:inline-flex;gap:4px;padding:4px;margin:10px 0 8px;border:1px solid rgba(212,175,55,.55);border-radius:999px;background:rgba(0,0,0,.45);box-shadow:inset 0 1px 0 rgba(245,215,127,.18)}
.om-bill-btn{appearance:none;border:0;border-radius:999px;background:transparent;color:#e3d5ab;padding:6px 16px;font:inherit;font-size:13px;font-weight:700;letter-spacing:.3px;cursor:pointer}
.om-bill-btn.sel{background:linear-gradient(135deg,#f5d77f 0%,#d4af37 55%,#b8860b 100%);color:#141414;box-shadow:0 2px 8px rgba(184,134,11,.45)}
.om-price{color:#ffd95e}
.om-permo{display:inline-block;padding:3px 10px;border-radius:999px;background:linear-gradient(135deg,#f5d77f,#b8860b);border:1px solid #ffe9a8;color:#141414;font-size:12px;font-weight:800;letter-spacing:.4px;vertical-align:middle;box-shadow:0 2px 8px rgba(184,134,11,.45)}
.om-save{color:#f5d77f !important;font-weight:700}
.om-save s{color:#e3d5ab;opacity:.75;font-weight:400}
.om-active-note{background:rgba(212,175,55,.12);border:1px solid rgba(212,175,55,.55);color:#f7efdb;border-radius:10px;padding:9px 12px;font-weight:700;margin:0 0 10px}
/* Omega Glistening Canvas (migration 036): the shared living backdrop.
   Any element with .om-bg gets an obsidian-family base plus two light
   layers drifting on transform/opacity ONLY (GPU-composited, no
   repaint) — used by the Customize preview tiles (.om-tile) and by
   Crown Omega storefronts (.store-decor wrapper). Content always sits
   above the layers (>* z-index), and the decor variables below keep
   every card on a clean, near-opaque dark frosted surface so product
   covers, prices and bio text stay razor sharp over the moving light.
   prefers-reduced-motion freezes the layers into a static luxury
   gradient (see the media block under the pricing-card rules). */
.om-bg{position:relative;overflow:hidden;isolation:isolate}
.om-bg::before,.om-bg::after{content:"";position:absolute;border-radius:50%;pointer-events:none;will-change:transform,opacity;z-index:0}
.om-bg>*{position:relative;z-index:1}
.om-bg-gold{background:#0B0D12}
.om-bg-gold::before{width:95%;height:62%;left:-18%;top:-24%;background:radial-gradient(closest-side,rgba(212,175,55,.34),rgba(212,175,55,0) 72%);filter:blur(30px);animation:omWaveA 17s ease-in-out infinite alternate}
.om-bg-gold::after{width:85%;height:58%;right:-15%;bottom:-26%;background:radial-gradient(closest-side,rgba(245,215,127,.28),rgba(168,140,255,.08) 55%,rgba(245,215,127,0) 75%);filter:blur(34px);animation:omWaveB 21s ease-in-out infinite alternate}
.om-bg-aurora{background:#0d1026}
.om-bg-aurora::before{width:130%;height:110%;left:-15%;top:-30%;border-radius:0;background:radial-gradient(closest-side at 22% 30%,rgba(212,175,55,.22),transparent 70%),radial-gradient(closest-side at 78% 75%,rgba(150,90,255,.24),transparent 70%);filter:blur(26px);animation:omWaveA 22s ease-in-out infinite alternate}
.om-bg-aurora::after{width:80%;height:60%;right:-14%;top:-18%;background:radial-gradient(closest-side,rgba(64,110,255,.30),rgba(64,110,255,0) 72%);filter:blur(30px);animation:omWaveB 19s ease-in-out infinite alternate}
.om-bg-platinum{background:#14181f}
.om-bg-platinum::before{width:230%;height:130%;left:-65%;top:-15%;border-radius:0;background:linear-gradient(112deg,transparent 32%,rgba(226,232,240,.10) 47%,rgba(170,185,205,.05) 54%,transparent 68%);animation:omSheen 15s ease-in-out infinite alternate}
.om-bg-platinum::after{width:85%;height:55%;right:-16%;bottom:-24%;background:radial-gradient(closest-side,rgba(190,200,215,.16),rgba(190,200,215,0) 72%);filter:blur(30px);animation:omWaveB 24s ease-in-out infinite alternate}
@keyframes omSheen{from{transform:translate3d(-7%,0,0)}to{transform:translate3d(7%,0,0)}}
/* Omega storefront card surfaces: dark frosted glass, light text. */
.store-decor.decor-omega-gold{--dc-bg:linear-gradient(160deg,rgba(23,26,34,.97),rgba(13,15,20,.98));--dc-inner:linear-gradient(160deg,rgba(31,34,44,.96),rgba(18,20,27,.97));--dc-border:rgba(212,175,55,.55);--dc-text:#f5f1e6;--dc-muted:#c9c2ae;--dc-link:#f5d77f}
.store-decor.decor-omega-aurora{--dc-bg:linear-gradient(160deg,rgba(19,23,44,.97),rgba(12,14,28,.98));--dc-inner:linear-gradient(160deg,rgba(27,32,58,.96),rgba(16,18,36,.97));--dc-border:rgba(140,150,255,.50);--dc-text:#eef0ff;--dc-muted:#aab1d6;--dc-link:#a9c2ff}
.store-decor.decor-omega-platinum{--dc-bg:linear-gradient(160deg,rgba(26,31,40,.97),rgba(16,19,25,.98));--dc-inner:linear-gradient(160deg,rgba(35,41,52,.96),rgba(21,25,32,.97));--dc-border:rgba(190,200,215,.50);--dc-text:#eef1f5;--dc-muted:#a7b0bd;--dc-link:#dbe4f0}
/* The Customize picker tiles + lock badge. */
.om-tiles{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.om-tile{flex:1 1 150px;min-height:96px;border-radius:14px;border:1px solid var(--line);cursor:pointer;color:#f5f1e6;text-align:left;padding:10px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;font:inherit}
.om-tile.sel{border-color:#d4af37;box-shadow:0 0 0 3px rgba(212,175,55,.35)}
.om-tile-name{font-weight:800;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.65)}
.om-tile-cur{font-size:11px;font-weight:700;color:#f5d77f;letter-spacing:.05em;text-transform:uppercase}
.om-lock-badge{display:inline-block;padding:5px 12px;border-radius:999px;border:1px solid rgba(212,175,55,.65);color:#8a6d1c;background:rgba(212,175,55,.10);font-size:12px;font-weight:700}
@media (prefers-reduced-motion: reduce){
  .om-fx::before,.om-fx::after{animation:none}
  .om-bg::before,.om-bg::after{animation:none}
}

/* Audiobook tier usage counter (Nov 29, 2026): one compact line above the studio. */
.ab-usage-line{font-size:13px;color:var(--muted);font-weight:600;margin:2px 0 10px}

/* Narrator widget (Nov 30, 2026): the floating generation circle.
   Body-level, fixed; drag anywhere, tuck to a screen edge (the
   dock-l / dock-r classes slide it 55% off-screen, leaving a gold
   sliver to tap back). The ring is the whole-book progress; the
   pulse runs only while generating, and reduced motion calms it. */
#ab-widget{position:fixed;right:14px;bottom:108px;z-index:60;width:58px;height:58px;transition:transform .25s ease}
#ab-widget.dock-l{transform:translateX(-55%)}
#ab-widget.dock-r{transform:translateX(55%)}
.abw-circle{position:relative;width:58px;height:58px;border-radius:50%;border:1px solid rgba(212,175,55,.65);background:rgba(11,13,19,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;padding:0;touch-action:none;box-shadow:0 6px 18px rgba(0,0,0,.35);color:#f5f1e6}
.abw-circle svg{position:absolute;inset:0;transform:rotate(-90deg);pointer-events:none}
.abw-track{fill:none;stroke:rgba(212,175,55,.22);stroke-width:4}
.abw-ring{fill:none;stroke:#d4af37;stroke-width:4;stroke-linecap:round;stroke-dasharray:157.1;stroke-dashoffset:157.1;transition:stroke-dashoffset .4s ease}
#ab-widget.st-paused .abw-ring,#ab-widget.st-pausing .abw-ring{stroke:#9aa3ad}
#ab-widget.st-stopped .abw-ring{stroke:#c96a2c}
#ab-widget.st-done .abw-ring{stroke:#3fae6a}
#ab-widget.st-running .abw-circle::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(212,175,55,.5);animation:abwPulse 1.6s ease-out infinite;pointer-events:none}
@keyframes abwPulse{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.28);opacity:0}}
.abw-count{position:relative;font-size:12px;font-weight:800;letter-spacing:.02em}
.abw-panel{position:absolute;bottom:66px;right:0;width:248px;background:#ffffff;border:1px solid #e3ddcb;border-radius:14px;box-shadow:0 12px 30px rgba(10,15,25,.28);color:#14202b;padding:12px;z-index:61}
#ab-widget.pl .abw-panel{left:0;right:auto}
.abw-title{font-weight:800;font-size:14px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.abw-prog{font-size:13px;font-weight:700}
.abw-state{font-size:12px;color:#5b6b7a;margin:2px 0 8px}
.abw-btns{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.abw-btns .btn{padding:7px 12px;font-size:13px}
.abw-dismiss{margin-left:auto;padding:7px 10px}
/* Clean product-only page (#/p/<user>/<productId>): the platform
   header, footer, floating assistant and narrator widget all hide —
   the buyer sees the product and nothing else. */
body.clean-page header.top,body.clean-page #site-footer,body.clean-page #assistant-fab,body.clean-page #assistant-panel,body.clean-page #ab-widget{display:none!important}
.clean-wrap{max-width:640px;margin:0 auto;padding:6px 0 10px}
/* Back-to-store bar (Dec 3, 2026): one control at the top of the
   clean product page — back arrow + the seller's logo + name —
   linking to that seller's storefront. The whole bar is the tap
   target: min-height 64px with padding, sized for a phone thumb.
   TEXT COLOURS ARE SELF-CONTAINED (fix, Dec 3): the bar's surface is
   var(--card), but several store templates (Cherry Noir, Midnight
   Stage, Charcoal Pro, Royal Navy) pair a near-white --ink with a
   WHITE --card, so inheriting the theme text colour washed the
   writing out to invisibility on the bar. The name/sub/chevron
   therefore carry explicit dark hex values keyed to the bar's own
   light surface — never the theme's --ink/--muted. The only two
   templates whose --card is DARK (Midnight Empire #17171b, Mint
   Noir #12181a) get the light-text override below, keyed to those
   templates' card colour. */
.cp-backbar{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;margin:8px 0 0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 10px rgba(0,0,0,.06);text-decoration:none;color:#1a1a1a;cursor:pointer}
.cp-backbar:hover,.cp-backbar:active{border-color:var(--gold)}
.cp-back-arrow{flex:none;width:40px;height:40px;border-radius:50%;background:var(--dark);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;line-height:1}
.cp-back-text{display:flex;flex-direction:column;min-width:0}
.cp-back-name{font-weight:800;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#1a1a1a}
.cp-back-sub{font-size:13px;color:#595959;line-height:1.3}
.cp-back-chev{margin-left:auto;flex:none;font-size:26px;font-weight:700;color:#595959;line-height:1}
body[data-template="Midnight Empire"] .cp-backbar,body[data-template="Mint Noir"] .cp-backbar{color:#f5f5f2}
body[data-template="Midnight Empire"] .cp-back-name,body[data-template="Mint Noir"] .cp-back-name{color:#f5f5f2}
body[data-template="Midnight Empire"] .cp-back-sub,body[data-template="Mint Noir"] .cp-back-sub,body[data-template="Midnight Empire"] .cp-back-chev,body[data-template="Mint Noir"] .cp-back-chev{color:#b0b3b8}
.storefront .cp-backbar .avatar,.storefront .cp-backbar .avatar-img{width:44px;height:44px;flex:none}
.storefront .cp-backbar .avatar{font-size:19px}
@media (prefers-reduced-motion: reduce){
  #ab-widget.st-running .abw-circle::after{animation:none}
  #ab-widget{transition:none}
}
/* Voice Vault (migration 038): engine key rows + the consent box. */
.vv-key-row{border-top:1px solid rgba(128,128,128,.35);padding:10px 0}
.vv-key-row input{margin:4px 0}
.vv-consent{border:1px solid rgba(201,162,39,.75);border-radius:10px;padding:12px;margin:10px 0}
.vv-sample-panel{border:1px solid rgba(128,128,128,.45);border-radius:10px;padding:12px;margin:0 0 10px}
.vv-sample-panel input{margin:4px 0}
/* Crown Agent (#/agent): live-support workspace. Platform cards +
   gold accents; ca- classes carry the chat/steps/summary layout. */
.ca-wrap{max-width:1060px;margin:0 auto;padding:6px 0 16px;overflow-x:clip}
.ca-center{text-align:center;padding-top:36px}
.ca-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
@media (max-width:820px){.ca-grid{grid-template-columns:1fr}}
.ca-hl{color:#b8912a}
.ca-lede{font-size:16px;line-height:1.55}
.ca-flow{margin:18px 0}
.ca-flow-item{display:flex;gap:12px;margin:0 0 14px}
.ca-flow-item>div{min-width:0}
.ca-flow-item h3{margin:0 0 2px;font-size:15px}
.ca-flow-item p{margin:0;font-size:13.5px;line-height:1.5}
.ca-flow-num{flex:none;font-weight:800;color:#b8912a;font-size:15px;padding-top:1px}
.ca-need ul{margin:6px 0 0;padding-left:18px;font-size:13.5px;line-height:1.6}
.ca-intake h2{margin-top:0}
.ca-label{display:block;font-weight:700;font-size:13.5px;margin:14px 0 6px}
.ca-issue-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
@media (max-width:640px){.ca-issue-grid{grid-template-columns:minmax(0,1fr)}}
.ca-issue-opt{display:flex;gap:8px;align-items:flex-start;min-width:0;border:1px solid rgba(128,128,128,.4);border-radius:10px;padding:10px;cursor:pointer}
.ca-issue-opt.picked{border-color:rgba(212,175,55,.8);background:rgba(212,175,55,.08)}
/* Phone layout fix (Dec 1, 2026): the global form rule
   (input,select,textarea{width:100%;padding:10px 12px;...}) also
   hits the agent area's radio/checkbox inputs. In a flex row the
   100%-wide input hogs the whole card — Chromium squeezed the
   label text into the remainder, iOS Safari pushed it off the
   card's right edge entirely and ballooned the radio box's
   height, leaving tall empty option cards with the text outside
   the screen (Director's iPhone recording). Reset radio/checkbox
   inputs inside the agent area to their natural size and let the
   text bodies flex + wrap inside their cards. */
.ca-issue-opt input,.ca-check-item input{flex:none;width:auto;height:auto;padding:0;margin:3px 0 0;border:0;border-radius:0;background:none}
.ca-opt-body{flex:1;min-width:0}
.ca-opt-body strong{display:block;font-size:14px;overflow-wrap:break-word}
.ca-opt-body span{font-size:12.5px;opacity:.75;line-height:1.4;display:block;overflow-wrap:break-word}
.ca-intake input[type="text"],.ca-intake textarea{width:100%;box-sizing:border-box}
.ca-error{color:#b3261e;font-weight:600;font-size:13.5px}
.ca-connect{width:100%;padding:12px;font-size:15px}
.ca-lock{border:1px solid rgba(212,175,55,.65);background:rgba(212,175,55,.07);margin-top:16px}
.ca-spinner{width:44px;height:44px;border-radius:50%;border:4px solid rgba(128,128,128,.3);border-top-color:#b8912a;margin:0 auto 16px;animation:ca-spin 0.9s linear infinite}
@keyframes ca-spin{to{transform:rotate(360deg)}}
.ca-conn-steps{list-style:none;padding:0;margin:18px auto 0;max-width:340px;text-align:left}
.ca-conn-steps li{padding:7px 0;font-size:14.5px;opacity:.45}
.ca-conn-steps li.done{opacity:1}
.ca-tick{display:inline-block;width:20px;height:20px;border-radius:50%;background:rgba(212,175,55,.15);color:#8a6d1c;text-align:center;font-size:12px;line-height:20px;margin-right:8px}
.ca-conn-steps li.done .ca-tick{background:#b8912a;color:#fff}
.ca-ws-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.ca-callbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
/* Maya Fix Card (Dec 1, 2026): gold-bordered, visually distinct
   from chat bubbles — the seller must never mistake a proposed
   fix for conversation. */
.ca-fix-card{border:2px solid #d4af37;border-radius:12px;padding:12px 14px;margin:10px 0;background:rgba(212,175,55,.07)}
.ca-fix-card h4{margin:0 0 6px;font-size:.95rem}
.ca-fix-card p{margin:6px 0}
.ca-agent-id{display:flex;gap:10px;align-items:center}
/* Maya's avatar (Dec 1, 2026): a small round cartoon lady,
   inline SVG, CSS-only motion — no images, no libraries, so it
   never slows a phone down. Decorative presence, never a
   control: pointer-events:none, taps pass straight through.
   The .st-* state class is set from the live agent state by
   caPaintAvatar() (idle / listening / speaking / thinking). */
.ca-avatar{width:40px;height:40px;flex:none;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#fdf3e0;pointer-events:none;vertical-align:middle}
.ca-callbar .ca-avatar{width:38px;height:38px}
.ca-av-svg{width:100%;height:100%;display:block}
.ca-av-fig{transform-box:fill-box;transform-origin:50% 90%}
.ca-avatar.st-idle .ca-av-fig{animation:ca-av-breathe 3.8s ease-in-out infinite}
.ca-av-eyes{transform-box:fill-box;transform-origin:center;animation:ca-av-blink 4.8s ease-in-out infinite}
.ca-avatar.st-listening{animation:ca-av-ringpulse 1.5s ease-out infinite}
.ca-avatar.st-listening .ca-av-fig{animation:ca-av-sway 2.2s ease-in-out infinite}
.ca-avatar.st-speaking .ca-av-fig{animation:ca-av-bob .72s ease-in-out infinite}
.ca-av-mouth{transform-box:fill-box;transform-origin:center}
.ca-avatar.st-speaking .ca-av-mouth{animation:ca-av-talk .34s ease-in-out infinite alternate}
.ca-av-ring{stroke:#d4af37;stroke-width:1.6;stroke-dasharray:4 5;opacity:0;transform-box:fill-box;transform-origin:center}
.ca-avatar.st-thinking .ca-av-ring{opacity:.95;animation:ca-av-spin 5s linear infinite}
.ca-avatar.st-thinking .ca-av-eyes{animation:none;transform:translateY(-1.1px)}
@keyframes ca-av-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025) translateY(-.4px)}}
@keyframes ca-av-blink{0%,91%,100%{transform:scaleY(1)}94.5%{transform:scaleY(.08)}}
@keyframes ca-av-ringpulse{0%{box-shadow:0 0 0 0 rgba(46,160,67,.45)}70%{box-shadow:0 0 0 9px rgba(46,160,67,0)}100%{box-shadow:0 0 0 0 rgba(46,160,67,0)}}
@keyframes ca-av-sway{0%,100%{transform:rotate(-1.6deg)}50%{transform:rotate(1.6deg)}}
@keyframes ca-av-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.1px)}}
@keyframes ca-av-talk{from{transform:scaleY(.35)}to{transform:scaleY(1.3)}}
@keyframes ca-av-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.ca-live-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(46,160,67,.5);color:#1e7d32;border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:700}
.ca-dot{width:8px;height:8px;border-radius:50%;background:#2ea043;display:inline-block;animation:ca-pulse 1.6s ease-in-out infinite}
@keyframes ca-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.ca-stats{display:flex;flex-wrap:wrap;gap:18px;font-size:12px}
.ca-stats b{display:block;font-size:14px}
.ca-progress-track{height:8px;border-radius:99px;background:rgba(128,128,128,.25);margin:12px 0 4px;overflow:hidden}
.ca-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#d4af37,#b8912a);border-radius:99px;transition:width .5s ease}
.ca-ws-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin-top:10px}
@media (max-width:820px){.ca-ws-grid{grid-template-columns:1fr}}
.ca-chat header{font-weight:700;margin-bottom:8px;display:flex;gap:8px;align-items:center}
.ca-chat-log{height:340px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px}
.ca-msg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:break-word}
.ca-msg.agent{background:rgba(212,175,55,.10);border:1px solid rgba(212,175,55,.35);align-self:flex-start;border-bottom-left-radius:4px}
.ca-msg.user{background:rgba(70,120,200,.12);border:1px solid rgba(70,120,200,.3);align-self:flex-end;border-bottom-right-radius:4px}
.ca-msg.system{align-self:center;background:none;border:none;font-size:12px;opacity:.65;padding:2px}
.ca-who{display:block;font-size:11px;font-weight:700;opacity:.7;margin-bottom:2px}
.ca-typing{padding:6px 4px}
.ca-typing i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b8912a;margin-right:4px;animation:ca-pulse 1s infinite}
.ca-quick{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ca-qchip{border:1px solid rgba(128,128,128,.45);background:none;border-radius:999px;padding:6px 11px;font-size:12.5px;cursor:pointer;color:inherit}
.ca-chat-form{display:flex;gap:8px}
.ca-chat-form input{flex:1;min-width:0}
.ca-step{margin-bottom:14px}
.ca-step.locked{opacity:.55}
.ca-step-head{display:flex;gap:10px;align-items:flex-start}
.ca-step-head>div{min-width:0}
.ca-step-head h3{margin:0;font-size:15.5px}
.ca-badge{flex:none;width:26px;height:26px;border-radius:50%;background:#b8912a;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}
.ca-step.locked .ca-badge{background:rgba(128,128,128,.5)}
.ca-step-state{margin-left:auto;font-size:12px;font-weight:700;opacity:.75;white-space:nowrap}
.ca-chips{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.ca-chip{text-align:left;border:1px solid rgba(128,128,128,.45);background:none;border-radius:10px;padding:9px 11px;font-size:13px;cursor:pointer;color:inherit}
.ca-chip.picked{border-color:rgba(212,175,55,.85);background:rgba(212,175,55,.10);font-weight:600}
.ca-diag{display:none;border:1px solid rgba(212,175,55,.6);border-radius:10px;padding:11px;background:rgba(212,175,55,.06)}
.ca-diag.show{display:block}
.ca-diag h4{margin:0 0 4px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#8a6d1c}
.ca-diag p{margin:4px 0 0;font-size:13.5px;line-height:1.55}
.ca-checks{list-style:none;margin:0;padding:0}
.ca-check-item{border-top:1px solid rgba(128,128,128,.25);padding:9px 0}
.ca-check-item label{display:flex;gap:9px;cursor:pointer;align-items:flex-start}
.ca-check-item input{flex:none;width:auto;height:auto;padding:0;margin:3px 0 0;border:0;border-radius:0;background:none}
.ca-ci-text{flex:1;min-width:0}
.ca-ci-text strong{display:block;font-size:14px}
.ca-ci-text span{font-size:12.5px;opacity:.78;line-height:1.5;display:block}
.ca-check-item.done .ca-ci-text strong{text-decoration:line-through;opacity:.65}
.ca-finish{width:100%;padding:12px}
.ca-sum-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
@media (max-width:820px){.ca-sum-grid{grid-template-columns:1fr}}
.ca-kv{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;font-size:14px;margin:0 0 12px}
.ca-kv dt{font-weight:700;opacity:.75}
.ca-kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.ca-log-list{list-style:none;margin:0;padding:0;font-size:13.5px}
.ca-log-list li{display:flex;gap:10px;padding:6px 0;border-top:1px solid rgba(128,128,128,.22);line-height:1.5}
.ca-lt{font-variant-numeric:tabular-nums;font-weight:700;color:#8a6d1c;white-space:nowrap}
.ca-copied{display:none;color:#1e7d32;font-weight:700;font-size:13px}
.ca-copied.show{display:inline}
@media (prefers-reduced-motion: reduce){.ca-spinner,.ca-dot,.ca-typing i,.ca-avatar,.ca-avatar *{animation:none}}

/* ---------- Token Store (Nov 30, 2026) ----------
   Split two-sided selector: Simple Tokens LEFT (green S coin),
   Crown Tokens RIGHT (white crown coin). The coins are inline
   SVG (.tk-coin) so they stay crisp at every size. */
.tk-coin{vertical-align:-5px;flex:none}
.tk-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tk-topup{margin-left:8px}
.tk-upsign{display:flex;align-items:center;gap:6px;margin-top:10px}
.tk-overlay{position:fixed;inset:0;background:rgba(10,8,4,.62);z-index:1200;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:24px 12px}
.tk-sheet{background:var(--card,#17130c);border:1px solid var(--line,#3a2f1c);border-radius:16px;max-width:860px;width:100%;padding:18px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.tk-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.tk-head h3{margin:0}
.tk-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.tk-grid{grid-template-columns:1fr}}
.tk-side{border-radius:14px;padding:16px;border:1px solid var(--line,#3a2f1c)}
.tk-side-simple{background:linear-gradient(160deg,rgba(34,180,94,.14),rgba(34,180,94,.04));border-color:rgba(34,180,94,.45)}
.tk-side-crown{background:linear-gradient(160deg,rgba(212,175,55,.16),rgba(255,255,255,.05));border-color:rgba(212,175,55,.55)}
.tk-side-head{display:flex;align-items:center;gap:10px}
.tk-side-head h4{margin:0}
.tk-side input[type=number]{width:110px}
.tk-bal{font-size:15px}
.tk-total{font-size:16px;margin:10px 0}
.tk-fund-legend{line-height:1.9}
.tk-fund-line{display:flex;align-items:center;gap:7px}
.tk-alloc-row{display:flex;gap:8px;align-items:center}
.tk-alloc-row input{width:90px}
/* Studio toolbar — tool finder + settings gear (Dec 1, 2026).
   Phone-safe by construction: the bar is a flex row inside the
   studio card, the search side shrinks (min-width:0), the dropdown
   and the settings panel are anchored to the bar and can never be
   wider than it, and every row is a full-width tap target. */
.tf-bar{position:relative;display:flex;gap:8px;align-items:flex-start;margin:12px 0 4px}
.tf-search{position:relative;flex:1;min-width:0}
.tf-search input{width:100%;margin:0}
/* Area icons (Director, Dec 2, 2026): one inline-SVG system beside
   the area names in the studio's listings — the all-in-one status
   list, the tab bar, the tool search and the settings panel.
   18px, gold, stroke-width 2 with round caps — the same stroke
   system as the settings gear in the studio toolbar. Decorative
   only (aria-hidden in the markup); rows keep their own colours,
   statuses and click behaviour. */
.area-ic{width:18px;height:18px;display:inline-block;vertical-align:-4px;margin-right:6px;color:var(--gold);flex:none}
.stg-row.danger .area-ic{color:inherit}
.tf-drop{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;background:#fff;border:1px solid var(--gold);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);overflow:hidden}
.tf-opt{display:block;width:100%;text-align:left;padding:12px 14px;background:#fff;border:0;border-bottom:1px solid var(--line);cursor:pointer;font-size:15px;color:var(--ink)}
.tf-opt:last-child{border-bottom:0}
.tf-opt:hover{background:#fdf6dd}
.tf-none{padding:12px 14px;color:var(--muted);font-size:14px}
.tf-gear{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid #999;background:#fff;color:#222;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.tf-gear:hover{border-color:var(--gold);color:#8a6d00}
.stg-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:70;width:min(320px,calc(100vw - 32px));background:#fff;border:1px solid var(--gold);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.2);overflow:hidden;padding:6px 0}
.stg-id{padding:10px 14px 8px;border-bottom:1px solid var(--line)}
.stg-row{display:block;width:100%;text-align:left;padding:12px 14px;background:#fff;border:0;cursor:pointer;font-size:15px;color:var(--ink)}
.stg-row:hover{background:#fdf6dd}
.stg-row.danger{color:var(--red);font-weight:700}
.stg-sep{border-top:1px solid var(--line);margin:6px 0}
/* Owner free-token grant rows (Dec 1, 2026). */
.owntk-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:11px 12px;margin:0 0 6px;background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:14px;color:var(--ink)}
.owntk-row.sel{border:2px solid var(--gold);background:#fdf6dd}
.owntk-who{min-width:0;overflow-wrap:anywhere}
.owntk-bal{flex:none;display:inline-flex;align-items:center;gap:3px;font-weight:700}
.owntest-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;margin:0 0 6px;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:14px;color:var(--ink)}
/* Help page "?" mark (Dec 1, 2026) — the "?" identity lives in
   the Help area now, in its header and on its floating assistant
   button, nowhere else. */
.help-qmark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--gold);color:#141414;font-weight:800;font-size:20px;margin-right:9px;vertical-align:middle}

/* ============================================================
   BIGGER STOREFRONT LAYOUT (Director, Dec 3, 2026 — "make the
   layout bigger in every part of the store", confirmed for EVERY
   store on the platform). One systematic scale-up, ~15–25% on
   the buyer-facing surfaces, scoped to the .storefront wrapper
   that viewStore / viewProduct / viewMembersRoom / viewListen /
   viewStores put around their output (see app.js). Because every
   rule hangs off .storefront:
     - the seller STUDIO and owner area keep their current
       density (they never render inside .storefront — the
       Customize mini preview included);
     - the scale rides on top of ALL 22 templates + the 6
       Flagship Looks: these rules set SIZES only, never colours,
       so template variables, decor styles and hero legibility
       (cover scrim/tone, the no-cover fade) are untouched, and
       the Dec 2 big hero (380px / 252px) keeps its size;
     - images keep the whole-image rule — .cover and the
       .ab-cover-* classes keep object-fit:contain from their
       base rules; only their boxes grow.
   Concrete steps (base -> bigger): page canvas 1080 -> 1200px;
   base text 16 -> 17px; h1 28 -> 34, h2 22 -> 27, h3 17 -> 21;
   card padding 18 -> 24px, card margin 14 -> 20px; buttons
   11/18px -> 14/26px padding at 17px (a ~50px tap target);
   price 22 -> 27px; product cover 300 -> 360px tall; form
   fields 15 -> 17px text with 13/15px padding; booking slots
   get a 48px minimum height; directory grid columns
   250 -> 300px minimum. The phone block below keeps every
   target >= 44px and the grid single-column-safe (the minmax
   floor is capped at 100% of the column, so nothing can push
   the page sideways). */
main#app:has(.storefront){max-width:1200px}
.storefront{font-size:17px;line-height:1.6}
.storefront p{line-height:1.6}
.storefront h1{font-size:34px}
.storefront h2{font-size:27px;margin:6px 0 14px}
.storefront h3{font-size:21px;margin:12px 0 8px}
.storefront h4{font-size:18px}
.storefront .muted{font-size:16px}
.storefront .small{font-size:15px}
.storefront .tag{font-size:14px}
.storefront label{font-size:16px}
.storefront .card{padding:24px;margin:20px 0}
.storefront .card .card{padding:20px;margin:14px 0}
.storefront .btn{padding:14px 26px;font-size:17px}
.storefront .price{font-size:27px}
.storefront .strike{font-size:18px}
.storefront .badge{font-size:14px;padding:5px 12px}
.storefront .cover{height:360px}
.storefront .ab-cover-listen{height:340px}
.storefront .ab-cover-player{height:230px}
.storefront input:not([type=checkbox]):not([type=radio]):not([type=file]),.storefront select,.storefront textarea{font-size:17px;padding:13px 15px}
.storefront .slot{padding:13px 18px;font-size:16px;min-height:48px;margin:5px}
.storefront .grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:20px}
.storefront .store-card{padding:22px}
.storefront .avatar{width:72px;height:72px;font-size:30px}
.storefront .avatar-img{width:72px;height:72px}
.storefront .notice,.storefront .connect-msg{padding:16px;font-size:17px}
.storefront table{font-size:16px}
.storefront th,.storefront td{padding:11px}
/* The platform home testimonials card is the one buyer-facing
   testimonial surface (stores have no testimonial section of
   their own); it takes the same type step so the quotes read at
   storefront scale. The owner moderation list is NOT scaled. */
#home-testimonials{font-size:17px;line-height:1.6}
#home-testimonials h2{font-size:27px}
@media (max-width:640px){
.storefront h1{font-size:29px}
.storefront h2{font-size:24px}
.storefront h3{font-size:19px}
.storefront .card{padding:20px;margin:16px 0}
.storefront .card .card{padding:18px}
.storefront .btn{padding:13px 20px}
.storefront .cover{height:300px}
.storefront .ab-cover-listen{height:300px}
.storefront .grid{grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr));gap:16px}
#home-testimonials h2{font-size:24px}
}
/* Membership video posts (Phase 2, Dec 3, 2026): the room player
   never overflows the card, and the ended-state Next button is
   unmissable — gold ring + a short pulse — because when a video
   finishes, that button is what the member is meant to see. */
.mb-video-card video{max-height:70vh}
.mb-video-nav{margin-top:10px}
.mb-video-next-hot{outline:3px solid #d4af37;outline-offset:2px;box-shadow:0 0 0 5px rgba(212,175,55,.35);animation:mbNextPulse 1s ease-in-out 3}
@keyframes mbNextPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
/* Invite share logo buttons (Dec 3, 2026): the glyph sits centred
   in the row's existing ghost-button footprint — the button keeps
   its padding and line, only the word is gone. */
.share-btn{display:inline-flex;align-items:center;justify-content:center}
.share-ic{width:20px;height:20px;display:block}
