/* Hive Wall theme: warm and premium, its own brand. Loaded last; restyles the shared layout (base.css + site.css).
   Layout idea: soft paper-toned sections, rounded cards lifted by gentle shadows, one honey highlight, elegant serif headings. */
:root {
  --milk: #FBF8F3; --paper: #F3EDE4; --mist: #E7F0EE; --blush: #F8EAE5;
  --ink-h: #213335; --soft: #5D6D6E; --hair: rgba(33,51,53,.12);
  --honey: #E2A13A; --honey-d: #B97D1C; --rose: #C9665A; --sage: #8DB09A;
  --lift: 0 14px 34px rgba(33,51,53,.10), 0 2px 6px rgba(33,51,53,.06);
  --lift-s: 0 6px 16px rgba(33,51,53,.10);
  --bg: var(--milk); --ink0: var(--ink-h); --muted0: var(--soft); --card: #FFFFFF; --panel: #FFFFFF; --line: var(--hair); --edge: var(--hair);
  --red: var(--ink-h); --red-d: var(--ink-h); --accent: var(--rose); --sun: var(--honey); --sun-d: var(--honey-d); --pill: var(--ink-h); --pill-ink: #fff;
  --ray: transparent; --h2s: transparent; --room: #E9E4DC;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif; --body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif; --hand: 'Caveat', 'Segoe Print', cursive;
}
:root[data-light="night"] {
  --milk: #121A1B; --paper: #182224; --mist: #152225; --blush: #211A1C; --ink-h: #EEF3F1; --soft: #AAB9B7; --hair: rgba(255,255,255,.12);
  --honey: #EDB257; --honey-d: #C98D2C; --rose: #E99486;
  --lift: 0 14px 34px rgba(0,0,0,.45); --lift-s: 0 6px 16px rgba(0,0,0,.4);
  --bg: var(--milk); --ink0: var(--ink-h); --muted0: var(--soft); --card: #1C2829; --panel: #1C2829; --line: var(--hair); --edge: var(--hair);
  --red: #EEF3F1; --red-d: #EEF3F1; --pill: #EEF3F1; --pill-ink: #121A1B; --room: #1E2526;
}
body { font-family: var(--body); font-weight: 500; color: var(--ink-h); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; text-shadow: none; }
h3 { line-height: 1.15; }
h1 em, h2 em, .on-color h2 em, .hero h1 em { font-style: normal; display: inline; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--honey) 42%, transparent) 62% 92%, transparent 92%); color: var(--rose); padding: 0 .04em; border-radius: 0; transform: none; box-shadow: none; text-shadow: none; }
.lede { font-weight: 500; color: var(--soft); }
.kicker { font-weight: 700; }
.eyebrow, .on-color .eyebrow { background: color-mix(in srgb, var(--honey) 22%, transparent); color: var(--ink-h); border-radius: 99px; padding: 8px 14px; font-weight: 800; }
.mono { letter-spacing: .08em; }

/* buttons: soft pills */
.btn { border-radius: 999px; background: var(--ink-h); color: var(--milk); font-weight: 800; min-height: 52px; padding: 0 26px; box-shadow: 0 10px 22px rgba(33,51,53,.18); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(33,51,53,.22); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(33,51,53,.18); }
.btn.ghost, .btn.ghost.sm { background: var(--card); color: var(--ink-h); box-shadow: inset 0 0 0 1.5px var(--hair), var(--lift-s); }
.btn.ghost:hover, .btn.ghost.sm:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink-h) 35%, transparent), var(--lift-s); }
.btn.ghost:active, .btn.ghost.sm:active { box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn.sun { background: var(--honey); color: #2A2116; box-shadow: 0 10px 22px rgba(185,125,28,.28); }
.btn.sun:hover { box-shadow: 0 14px 28px rgba(185,125,28,.32); }
.btn.sm { min-height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: 0 6px 14px rgba(33,51,53,.16); }
.free { background: color-mix(in srgb, var(--honey) 25%, transparent); color: var(--ink-h); }

/* sections: soft paper tones instead of sunbursts and honeycombs */
.sec { border-top: 0; }
.bg-rays { background: radial-gradient(70% 60% at var(--ro, 15% 0%), var(--blush), transparent 70%), var(--milk); }
.bg-foil { background: linear-gradient(170deg, var(--mist), var(--milk) 75%); }
.bg-foil::before { display: none; }
.bg-honey, :root[data-light="night"] .bg-honey { background: var(--paper); }
.bg-honey::before { opacity: .07; filter: invert(1); }
:root[data-light="night"] .bg-honey::before { filter: none; opacity: .05; }
.bg-honey.grass, :root[data-light="night"] .bg-honey.grass { background: var(--mist); }
.bg-honey.fire, :root[data-light="night"] .bg-honey.fire { background: var(--blush); }
.bg-honey.navy, :root[data-light="night"] .bg-honey.navy { background: #213335; }
.bg-honey.navy::before { filter: none; opacity: .06; }
.bg-soft::after { background: linear-gradient(100deg, color-mix(in srgb, var(--milk) 92%, transparent) 0 46%, color-mix(in srgb, var(--milk) 70%, transparent)); }
.on-color { --ink: var(--ink-h); --muted: var(--soft); color: var(--ink-h); }
.on-color h2 { text-shadow: none; }
.strip { border-top: 0; }

/* top bars */
.mockbar { background: var(--paper); color: var(--soft); font-weight: 700; }
.xmas { background: var(--ink-h) !important; color: var(--milk) !important; }
.bar { background: color-mix(in srgb, var(--milk) 88%, transparent); border-bottom: 1px solid var(--hair); }
.nav { font-weight: 700; }
.nav a:hover { color: var(--rose); }
.icon, .lightsw { border-radius: 999px; background: var(--card); color: var(--ink-h); box-shadow: inset 0 0 0 1.5px var(--hair); }
.icon b { background: var(--rose); box-shadow: 0 0 0 2px var(--milk); }
.cur-pick select { border-radius: 999px !important; box-shadow: inset 0 0 0 1.5px var(--hair) !important; background-color: var(--card) !important; }
.menu { border-radius: 20px; box-shadow: var(--lift), inset 0 0 0 1px var(--hair); }

/* logo: a fine hexagon outline holding a heart, then the name in the serif */
.hv { font-family: var(--display); letter-spacing: 0; gap: .4em; }
.hv-mark { width: 1.2em; height: 1.05em; filter: none; }
.hv-mark i { background: var(--honey); }
.hv-mark i::after { content: ""; position: absolute; inset: 9%; background: var(--milk); -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.hv-mark b { color: var(--rose); z-index: 1; }
.hv em { color: var(--honey-d); font-style: normal; }
footer .hv-mark i::after { background: #213335; }

/* hero */
.hero-facts li { font-weight: 700; }
.dot { box-shadow: none; width: 10px; height: 10px; }
.hero-badge { box-shadow: var(--lift-s); font-weight: 700; }

/* card panels: white, rounded, gently lifted */
.tcg { background: var(--card); color: var(--ink-h); border-radius: 26px; padding: 14px; box-shadow: var(--lift); }
.work.t-water, .work.t-fire, .work.t-lightning, .work.t-linework, .work.t-psychic, .work.t-darkness { --f1: var(--card); --f2: var(--card); color: var(--ink-h); }
.tcg-art { background: var(--paper); box-shadow: none; border-radius: 18px; }
.tcg-body { background: transparent; }
.tcg-foot div { background: var(--paper); color: var(--ink-h); }
.tag { background: color-mix(in srgb, var(--honey) 24%, transparent); color: var(--ink-h); }
.nmx, .hp { font-family: var(--display); }
.styles p.say { color: var(--soft); font-weight: 600; }
.t-edge { background: #EDE8E0; }
.pl-row { border-bottom: 1px solid var(--hair); }
.pl-bar { background: var(--paper); }
.pl-bar i { background: linear-gradient(90deg, var(--sage), color-mix(in srgb, var(--sage) 60%, #fff)); }
.pl-best { background: color-mix(in srgb, var(--honey) 16%, transparent); }
.burst-w { filter: none; }
.burst { clip-path: none; border-radius: 50%; background: var(--honey); color: #2A2116; transform: rotate(-8deg); box-shadow: 0 12px 26px rgba(185,125,28,.3); font-family: var(--display); padding: 0; }
.flav code { opacity: .6; }

/* photos and room shots */
.photo { border: 0; border-radius: 24px; box-shadow: var(--lift); }
.count, .rooms figcaption { box-shadow: var(--lift-s); }
details { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hair); background: var(--card); }
details summary { font-family: var(--body); font-weight: 800; }

/* family pieces */
.polaroid { box-shadow: 0 26px 50px rgba(33,51,53,.22), 0 2px 6px rgba(33,51,53,.1); border-radius: 4px; }
.tape { background: color-mix(in srgb, var(--honey) 55%, transparent); }
.polaroid figcaption { font-family: var(--hand); font-size: 1.35rem; color: #33403F; }
.mshow { border-radius: 28px; box-shadow: var(--lift); }
.mhandle { box-shadow: 0 0 10px rgba(255,255,255,.8); }
.mhandle button { background: var(--card); color: var(--ink-h); box-shadow: var(--lift); }
.mlab { box-shadow: var(--lift-s); color: #213335; border-radius: 99px; }
.mstep { background: var(--card); box-shadow: var(--lift-s); }
.mstep b.n { background: color-mix(in srgb, var(--honey) 28%, transparent); color: var(--ink-h); box-shadow: none; font-family: var(--display); }
.idea, .keep, .set-card { border-radius: 26px; box-shadow: var(--lift); }
.idea .hc { background: linear-gradient(140deg, var(--paper), var(--blush) 55%, var(--mist)); }
.idea .pr b { font-family: var(--display); }
.keep .pic { border-bottom: 0; border-radius: 26px 26px 0 0; }
.keep .pic + .ic { filter: drop-shadow(0 4px 8px rgba(33,51,53,.18)); }
.yr b { font-family: var(--display); }
footer { background: #213335; border-top: 0; color: #C7D3D1; }
:root[data-light="night"] footer { background: #0C1213; }

/* builder */
.b-pal, .b-sum { background: var(--milk); }
.b-pal { border-right: 1px solid var(--hair); }
.b-sum { border-left: 1px solid var(--hair); }
.seg { border-radius: 999px; box-shadow: var(--lift-s); }
.seg button { border-radius: 999px; }
.b-msg { border-radius: 999px; box-shadow: var(--lift); }
.nudge { box-shadow: inset 0 0 0 1px var(--hair); border-radius: 16px; }
.nudge.hot { background: color-mix(in srgb, var(--honey) 22%, var(--card)); color: var(--ink-h); box-shadow: none; }
.ph-drop { border: 2px dashed color-mix(in srgb, var(--ink-h) 25%, transparent); border-radius: 20px; }
.ph-drop b { font-family: var(--display); }
.ph { box-shadow: var(--lift-s); border-radius: 14px; }
.ph[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--honey), var(--lift-s); }
.b-steps li span { background: color-mix(in srgb, var(--honey) 28%, transparent); box-shadow: none; font-family: var(--display); color: var(--ink-h); }
.stylepick button { box-shadow: inset 0 0 0 1px var(--hair); border-radius: 14px; }
.stylepick button[aria-pressed="true"] { background: color-mix(in srgb, var(--honey) 25%, var(--card)); color: var(--ink-h); box-shadow: inset 0 0 0 2px var(--honey); }
.big { font-family: var(--display); }
.demo-note { background: var(--paper); color: var(--soft); box-shadow: none; }
.sheet-in { border-radius: 26px; box-shadow: var(--lift); }
.crop-wrap { filter: drop-shadow(0 10px 20px rgba(33,51,53,.2)); }

/* line-up: warning when people cross the dashed line */
.crop-msg { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--honey) 22%, var(--card)); color: var(--ink-h); font-weight: 700; }
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.fld input { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--hair); background: var(--card); color: var(--ink-h); font: 600 1rem var(--body); }
.b-msg .spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--honey); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.engine-pill { font: 800 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--paper); color: var(--soft); }

/* ---------- 18 Nov: occasions, gift cards, 10% signup, sale bar, words on tiles ---------- */
.xmas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.xmas .sb-hot { color: var(--honey); font-weight: 900; }
.xmas .sb-left { padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--honey) 30%, transparent); }
.xmas a { color: var(--honey); }
@media (max-width: 560px) { .xmas .sb-post { display: none; } }

.occs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.occ { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 24px; background: var(--card); color: var(--ink-h); box-shadow: var(--lift); min-width: 0; }
.occ h3 { font-size: 1.3rem; }
.occ p { font-size: .95rem; line-height: 1.45; flex: 1; margin: 0; }
.occ .btn { align-self: flex-start; }
.oc-pic { padding: 4px 6px 2px; }
.oc-hex { position: relative; display: grid; align-items: end; justify-items: center; width: 100%; aspect-ratio: 1 / .866; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.oc-words { margin-bottom: 13%; padding: 0 14%; text-align: center; font: 700 clamp(1.35rem, 2.3vw, 1.7rem)/1 var(--hand); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 1px 2px rgba(0,0,0,.5); }

.gifts { align-items: start; }
.gc-live { background: linear-gradient(140deg, #2F4A4C, #213335 60%, #182627); color: #fff; box-shadow: var(--lift); }
.gift-card.gc-live > span { color: var(--honey); }
.gc-live .gc-hexes { right: 3%; width: 44%; aspect-ratio: 1; }
.gc-live .gc-hexes i { position: absolute; width: 60%; aspect-ratio: 1 / .866; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.gc-live .gc-hexes i:nth-child(1) { left: 0; top: 4%; } .gc-live .gc-hexes i:nth-child(2) { left: 43%; top: 29%; } .gc-live .gc-hexes i:nth-child(3) { left: 0; top: 54%; }
.gc-to { position: absolute; left: 7%; top: 24%; max-width: 52%; font: 700 clamp(1.3rem, 3.4vw, 1.75rem)/1.05 var(--hand); font-style: normal; color: #fff; overflow-wrap: anywhere; }
.gc-msg { max-width: 420px; margin: 0; font: 700 1.4rem/1.25 var(--hand); color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.gc-form, .hello-form { display: flex; flex-direction: column; gap: 14px; }
.gc-side { min-width: 0; } .gc-thanks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; } .gc-form .small { margin: 0; }
.fld .amt, .fld small span { font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.amt { display: flex; align-items: center; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.amt i { font: 900 1.1rem/1 var(--body); font-style: normal; padding-left: 14px; color: var(--ink-h); }
.fld .amt input { box-shadow: none; background: transparent; padding-left: 6px; }
.fld small { text-align: start; }
.gc-amts button { cursor: pointer; } .gc-amts button[aria-pressed="true"] { background: var(--ink-h); color: var(--milk); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; font-weight: 600; color: var(--ink-h); }
.chk input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink-h); }
.hello-done { display: flex; flex-direction: column; gap: 8px; }
.hello-done > span { font: 900 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.hello-done small { color: var(--soft); }
.signup { background: var(--card); color: var(--ink-h); box-shadow: var(--lift), inset 0 0 0 1px var(--hair); }
.signup .btn { align-self: flex-start; }

.rows .off { color: var(--rose); }
#sWas { color: var(--soft); font-size: .62em; }
.gift-chk { font-weight: 800; }

.words-in { width: min(620px, 100%); }
.wcrop { cursor: move; }
.wcrop:focus-visible { outline: 3px solid var(--honey); outline-offset: 4px; }
.w-group { display: flex; flex-direction: column; gap: 8px; }
.w-lab { font: 900 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted0); }
.w-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.w-fonts button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 8px 4px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink-h); box-shadow: inset 0 0 0 1.5px var(--hair); cursor: pointer; }
.w-fonts button b { line-height: 1.15; }
.w-fonts button small { font: 700 .74rem/1 var(--body); color: var(--soft); }
.w-fonts button[aria-pressed="true"] { background: color-mix(in srgb, var(--honey) 16%, var(--card)); box-shadow: inset 0 0 0 2.5px var(--ink-h); }
.w-cols { display: flex; flex-wrap: wrap; gap: 12px; }
.w-cols button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); cursor: pointer; }
.w-cols button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink-h); }
.w-lines, .w-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.w-lines .chip, .w-sugg .chip { min-height: 38px; padding: 0 14px; font-size: .86rem; cursor: pointer; }
.sheet .row.w-acts { justify-content: flex-start; }
.sheet .seg { align-self: flex-start; }
@media (max-width: 420px) { .w-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav { gap: clamp(16px, 1.7vw, 26px); }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav { display: none; } .menu-btn { display: grid; } }

/* ---------- 18 Nov: checkout box, thank-you, reviews (hidden until 3 are published) ---------- */
.co-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--hair); }
.co-box select { appearance: auto; }
.rv-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rv-card { margin: 0; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 22px; background: var(--card); color: var(--ink-h); box-shadow: var(--lift); }
.rv-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.rv-st { color: var(--honey-d); font-size: 1.3rem; letter-spacing: 2px; }
.rv-card blockquote { margin: 0; font-weight: 600; }
.rv-card figcaption { font-weight: 800; font-size: .9rem; color: var(--soft); }

/* ---------- 18 Nov: wall blend controls (scenery blend, photo border) ---------- */
.fxbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--hair); }
.fxbox .chk small { display: block; font-weight: 600; font-size: .82rem; color: var(--soft); }
.fx-opts { display: flex; flex-direction: column; gap: 10px; }
.fx-mats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fx-mats button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-h); cursor: pointer; }
.fx-mats button i { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: center / cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fx-mats button small { font: 700 .62rem/1.15 var(--body); text-align: center; color: var(--soft); }
.fx-mats button[aria-pressed="true"] i { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--ink-h); }
.fx-mats button[aria-pressed="true"] small { color: var(--ink-h); }
.fx-mats button:disabled, .fxbox .seg button:disabled { opacity: .55; cursor: default; }
.fxbox .zoomrow span { min-width: 7.2em; font-size: .9rem; }
.fxbox .seg { align-self: flex-start; }

/* ---------- 18 Nov: phone builder (Lewis): the wall fills the screen; tapping a space or "Add a tile" opens the photo screen;
   price and Order always at the bottom; Merge and Undo merge over the wall. Desktop keeps its three columns. ---------- */
.m-acts, .m-bar, .m-scrim, .sheet-head { display: none; }
.mergebar { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  body.in-builder .mockbar, body.in-builder .xmas { display: none; }
  #v-builder .b-app { display: block; position: relative; height: calc(100svh - var(--bar) - 66px - env(safe-area-inset-bottom, 0px)); }
  #v-builder .b-wall { position: absolute; inset: 0; display: block; height: auto; }
  #v-builder .bstage { position: absolute; inset: 0; height: auto; touch-action: none; }
  #v-builder .b-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 0; pointer-events: auto; scrollbar-width: none; }
  #v-builder .b-top .seg { flex: none; padding: 3px; }
  #v-builder .b-top .seg button { min-height: 32px; padding: 0 9px; font-size: .8rem; }
  #v-builder .b-msg { position: absolute; left: 10px; right: 10px; bottom: 62px; z-index: 3; transform: none; margin: 0; max-width: none; flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 18px; }
  .m-acts { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; gap: 8px; justify-content: center; }
  .m-acts .btn { min-height: 42px; padding: 0 14px; flex: 0 1 auto; }
  .m-acts .btn:disabled { opacity: .45; }
  #v-builder .b-pal, #v-builder .b-sum { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: flex; max-height: 86svh; overflow-y: auto;
    border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(33,51,53,.22); background: var(--milk);
    padding: 0 16px calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .28s ease; visibility: hidden; }
  #v-builder .b-pal.open, #v-builder .b-sum.open { transform: none; visibility: visible; }
  .sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px; padding: 14px 16px 10px; background: var(--milk); font: 400 1.25rem/1.2 var(--display); }
  .sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--hair); }
  .m-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink-h); font-size: 1.5rem; line-height: 1; box-shadow: inset 0 0 0 1.5px var(--hair); cursor: pointer; }
  #v-builder .b-pal .b-steps, #v-builder .b-pal .demo-note, #v-builder .b-pal > .mini-h { display: none; }
  #v-builder .b-pal .ph-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-scrim { position: fixed; inset: 0; z-index: 60; display: block; background: rgba(15, 25, 26, .35); }
  .m-scrim[hidden] { display: none; }
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 66px; padding: 8px max(14px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: var(--card); border-top: 1px solid var(--hair); box-shadow: 0 -6px 20px rgba(33,51,53,.08); }
  .m-tot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: none; color: var(--ink-h); text-align: left; cursor: pointer; padding: 0; }
  .m-tot b { font: 800 .82rem/1.2 var(--body); color: var(--soft); }
  .m-tot > span { font: 400 1.35rem/1.1 var(--display); }
  .m-tot s { font-size: .75em; color: var(--soft); }
  .m-bar .btn { min-height: 48px; padding: 0 26px; }
  #v-builder .mergebar { display: none; }
}

/* ---------- 18 Nov: painting online in the line-up screen ---------- */
.crop-wrap { position: relative; }
.crop.locked { pointer-events: none; }
.paint-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background: color-mix(in srgb, var(--milk) 78%, transparent); color: var(--ink-h); -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.paint-wait b { font: 400 1.35rem/1.2 var(--display); }
.paint-wait small { max-width: 280px; color: var(--soft); font-weight: 700; }
.paint-wait .spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--hair); border-top-color: var(--honey); animation: spin .9s linear infinite; }
.sheet .row.paint-row { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* language picker (18 Nov 2026, as ExtendACard): header on wide screens, in the menu on phones, always in the footer */
.lang-pick[hidden] { display: none !important; }
@media (max-width: 980px) { .tools .lang-pick { display: none; } }
.menu-lang { padding: 12px 0 4px; }
.legal-foot .lang-pick select, .f-legal .lang-pick select { height: 38px; font-size: .84rem; }
/* right-to-left (Arabic) */
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 22px; }

/* the logo (Lewis, 18 Nov 2026): three tiles, honey / rose / teal, turned 6 degrees */
.hv { display: inline-flex; align-items: center; gap: .3em; }
.hvm { height: 1.5em; width: auto; flex: none; overflow: visible; }
.hvm polygon { stroke-width: 2.4; stroke-linejoin: round; }
.hvm .a { fill: var(--honey); stroke: var(--honey); } .hvm .b { fill: var(--rose); stroke: var(--rose); } .hvm .c { fill: var(--hv-teal, #3E6466); stroke: var(--hv-teal, #3E6466); }
footer .hvm .a { fill: #EDB257; stroke: #EDB257; } footer .hvm .b { fill: #E99486; stroke: #E99486; } footer .hvm .c, :root[data-light="night"] .hvm .c { fill: #7FA9A6; stroke: #7FA9A6; }

/* cookie bar (18 Nov 2026): only shown when analytics or ad pixels are set up; nothing loads before a yes */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 640px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: var(--card); color: var(--ink-h); box-shadow: inset 0 0 0 1.5px var(--hair), var(--lift); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cookie p { margin: 0; flex: 1 1 280px; font-size: .92rem; line-height: 1.45; } .cookie p a { text-decoration: underline; }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cookie .ck-opts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; } .cookie .ck-opts label { display: flex; gap: 6px; align-items: center; }
