/* QCK site — theme system + bento grid + glass widgets + editor chrome.
   Lifted from nxtwk's liquid-glass bento. A "theme" = a token scope below;
   add a new [data-theme="x"] block to add a theme. */

/* ── self-hosted variable fonts (served from /fonts) ── */
@font-face { font-family:'Satoshi'; src:url(/fonts/Satoshi-Variable.woff2) format('woff2'); font-weight:300 900; font-display:swap; }
@font-face { font-family:'Mona Sans'; src:url(/fonts/MonaSans-VF.woff2) format('woff2'); font-weight:200 900; font-stretch:75% 125%; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url(/fonts/Montserrat.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url(/fonts/SpaceGrotesk.woff2) format('woff2'); font-weight:300 700; font-display:swap; }
@font-face { font-family:'Fraunces'; src:url(/fonts/Fraunces.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Awesome Serif'; src:url(/fonts/AwesomeSerif-VF.woff2) format('woff2'); font-weight:100 700; font-style:normal; font-display:swap; }
@font-face { font-family:'Awesome Serif'; src:url(/fonts/AwesomeSerif-Italic-VF.woff2) format('woff2'); font-weight:100 700; font-style:italic; font-display:swap; }
@font-face { font-family:'Victor Mono'; src:url(/fonts/VictorMono.woff2) format('woff2'); font-weight:100 700; font-display:swap; }
@font-face { font-family:'Inter'; src:url(/fonts/Inter.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Anton'; src:url(/fonts/Anton.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Pixelify Sans'; src:url(/fonts/PixelifySans.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Area'; src:url(/fonts/ic-area.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Ashford'; src:url(/fonts/ic-fontspringdemoashf.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Bentona'; src:url(/fonts/ic-bentonawilson.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Benzin'; src:url(/fonts/ic-benzinregular.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Causten'; src:url(/fonts/ic-caustenregular.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Chloe'; src:url(/fonts/ic-chloe.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK F37 Moon'; src:url(/fonts/ic-f37moon.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Fifties'; src:url(/fonts/ic-vvdsfifties.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Flatline'; src:url(/fonts/ic-flatlinesans.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Genty'; src:url(/fonts/ic-gentydemo.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Growth'; src:url(/fonts/ic-growth.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Gunterz Round'; src:url(/fonts/ic-fontspringdemogunt.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Gunterz'; src:url(/fonts/ic-gunterz.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Inge'; src:url(/fonts/ic-inge.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Kapra Neue'; src:url(/fonts/ic-kapraneuepro.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Lapoya'; src:url(/fonts/ic-lapoya.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Lemon'; src:url(/fonts/ic-lemon.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Love'; src:url(/fonts/ic-love.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Mathreal'; src:url(/fonts/ic-mathreal.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Morning'; src:url(/fonts/ic-morningmemories.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Neiko'; src:url(/fonts/ic-neiko.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Nimbus'; src:url(/fonts/ic-nimbus.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Didot'; src:url(/fonts/ic-nndidotmodernstd.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Right Slab'; src:url(/fonts/ic-pprightslab.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Runalto'; src:url(/fonts/ic-runalto.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Sigurd'; src:url(/fonts/ic-sigurd.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Simplicité'; src:url(/fonts/ic-hvsimplicite.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Singleton'; src:url(/fonts/ic-singleton.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Swell'; src:url(/fonts/ic-swell.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Versailles'; src:url(/fonts/ic-versailles.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'QCK Voyage'; src:url(/fonts/ic-voyage.woff2) format('woff2'); font-weight:100 900; font-display:swap; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --gutter: clamp(12px, 3vw, 26px);
  --maxw: 1100px;
  /* QCK app chrome — FIXED, never follows the site theme */
  --qck: #FB5A2D;
  --qck-ink: #1a0a04;
  --qck-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* page background (per-site) */
  --page-bg: #07070a;
  /* site-theme fallbacks (the real values are injected on .wrap) */
  --ink: #F4F2EE; --ink-dim: rgba(244,242,238,0.62); --ink-faint: rgba(244,242,238,0.34);
  --hair: rgba(255,255,255,0.10); --accent: #FB5A2D; --on-accent: #1a0a04;
  --card-bg: rgba(255,255,255,0.06); --card-border: rgba(255,255,255,0.14);
  --card-shadow: 0 22px 50px -24px rgba(0,0,0,0.55); --radius: 30px; --gap: 14px; --blur: 22px;
  --font: var(--qck-font);
}

/* ------------------------------- base ------------------------------- */
body {
  min-height: 100dvh;
  background: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font: 16px/1.5 var(--qck-font);           /* chrome default font */
  -webkit-font-smoothing: antialiased;
  padding: var(--gutter);
  transition: background-color .3s;
}
a { color: inherit; }
/* the SITE CANVAS — theme tokens are injected here, so the site changes but the
   QCK chrome (toolbar, modals) outside it never does */
.wrap {
  max-width: var(--maxw); margin: 0 auto;
  color: var(--ink);
  font-family: var(--font);
  container-type: inline-size;            /* so device preview triggers the real layout */
  transition: max-width .45s cubic-bezier(.32,.72,0,1);
}
/* device preview (desktop only) — constrain the canvas width */
body.dev-mobile .wrap { max-width: 400px; }
body.dev-tablet .wrap { max-width: 800px; }

/* site header (logo + name) */
.site-head {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 4px 22px;
}
.site-logo {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover;
  background: var(--card-bg); border: 1px solid var(--card-border);
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
}
.site-id { min-width: 0; }
.site-name { font-size: clamp(20px, 4vw, 30px); font-weight: 650; letter-spacing: -0.02em; }
.site-tagline { color: var(--ink-dim); font-size: clamp(13px, 2vw, 15px); margin-top: 2px; }

/* ------------------------------- grid ------------------------------- */
/* nxtwk-style bento: 12 cols + a FIXED row track so width and height are
   independent tiers. Height tiers span whole rows, so "1 tall = 2 short
   stacked" always lines up (4 rows + 3 gaps === two ×(2 rows + 1 gap) + gap). */
.qck-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); /* minmax(0,..) prevents min-content blowout */
  grid-auto-rows: var(--row, 94px);
  grid-auto-flow: row dense;
  gap: var(--gap);
}
/* width tiers: small=4 (1/3) · medium=8 (2/3) · large=12 (full) */
.w { grid-column: span 8; min-width: 0; }
.w.s { grid-column: span 4; }
.w.m { grid-column: span 8; }
.w.l { grid-column: span 12; }
/* height tiers: short · medium · tall (every .w carries exactly one) */
.w.h-s { grid-row: span 2; }
.w.h-m { grid-row: span 3; }
.w.h-l { grid-row: span 4; }

/* mobile: single column, content height (a min keeps small cards from collapsing) */
@container (max-width: 720px) {
  .qck-grid { grid-auto-rows: minmax(96px, auto); }
  .w, .w.s, .w.m, .w.l { grid-column: 1 / -1; }
  .w.h-s, .w.h-m, .w.h-l { grid-row: auto; }
}

/* --------- card: the look is driven by the theme's FILL style --------- */
.card {
  position: relative; height: 100%;
  border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform .18s cubic-bezier(.32,.72,0,1), border-radius .25s, box-shadow .2s;
}
a.card:hover { filter: brightness(1.04); }
.card.w-openable { cursor: pointer; }
/* Squircle corner tier = continuous curvature (iOS superellipse), not a circular arc with
   dead-straight sides. corner-shape needs a non-zero border-radius (already set) and falls
   back to normal rounding on browsers without support (Chrome 139+). */
[data-corner="squircle"] .card { corner-shape: squircle; }
.vibe-card.is-squircle, .tmini-card.is-squircle, .preset-btn.is-squircle { corner-shape: squircle; }

/* fill styles are set per-widget (.w[data-i][data-fill]) so a widget can override the theme */
/* GLASS — nxtwk "liquid glass": multi-layer inset bevel + soft drop + radial sheen */
.w[data-i][data-fill="glass"] .card {
  background: var(--card-bg); outline: var(--border-w, 1px) solid var(--card-border); outline-offset: 0;
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 0 rgba(0,0,0,0.30),
    inset 1px 0 0 0 rgba(255,255,255,0.04),
    inset -1px 0 0 0 rgba(0,0,0,0.10),
    var(--card-drop, 0 20px 50px -20px rgba(0,0,0,0.55)),
    var(--card-glow, 0 0 transparent);
}
.w[data-i][data-fill="glass"] .card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(140% 100% at 0% 0%, rgba(255,255,255,0.08), transparent 45%); }

.w[data-i][data-fill="solid"] .card { background: var(--card-bg); outline: var(--border-w, 1px) solid var(--card-border); outline-offset: 0; box-shadow: var(--card-drop, 0 16px 40px -30px rgba(0,0,0,0.4)), var(--card-glow, 0 0 transparent); }

.w[data-i][data-fill="gradient"] .card {
  --ink: #fff; --ink-dim: rgba(255,255,255,0.82); --ink-faint: rgba(255,255,255,0.62); --hair: rgba(255,255,255,0.28);
  color: #fff;
  background: var(--card-grad, linear-gradient(150deg, hsl(var(--w-hue, 18) 88% 60%), hsl(calc(var(--w-hue, 18) + 34) 82% 46%)));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--card-drop, 0 26px 54px -24px hsl(var(--w-hue, 18) 80% 40% / .55)), var(--card-glow, 0 0 transparent);
}
.w[data-i][data-fill="gradient"] .card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 0 0, rgba(255,255,255,0.24), transparent 45%); }
.w[data-i][data-fill="gradient"] .wg-header .btn-cta { background: rgba(255,255,255,0.92); color: #111; }

.w[data-i][data-fill="outline"] .card { background: var(--card-bg); outline: var(--border-w, 2px) solid var(--card-border); outline-offset: 0; box-shadow: var(--card-drop, none), var(--card-glow, 0 0 transparent); }

/* bold = filled block, no border, heavy drop shadow (punchy/elevated) */
.w[data-i][data-fill="bold"] .card { background: var(--card-bg); border: var(--border-w, 0) solid var(--card-border); box-shadow: var(--card-drop, 0 24px 50px -22px rgba(0,0,0,0.6)), var(--card-glow, 0 0 transparent); }

.w[data-i][data-fill="plain"] .card { background: var(--card-bg); border: 0; box-shadow: none; border-radius: 0; padding: clamp(6px,1.2vw,12px) clamp(2px,1vw,8px) clamp(16px,2vw,22px); border-bottom: 1px solid var(--card-border); }

/* multi = each card a different colour from the theme palette; ink derives per card */
.w[data-i][data-fill="multi"] .card {
  background: var(--w-card, #1c1c22);
  border: var(--border-w, 0) solid var(--card-border, transparent); /* honors the Border tab */
  --ink: var(--w-cardink, #fff); --ink-dim: var(--w-carddim, rgba(255,255,255,0.7)); --ink-faint: var(--w-cardfaint, rgba(255,255,255,0.45));
  --hair: var(--w-cardhair, rgba(255,255,255,0.18));
  color: var(--w-cardink, #fff);
  box-shadow: var(--card-drop, 0 22px 50px -26px rgba(0,0,0,0.5)), var(--card-glow, 0 0 transparent);
}
.w[data-i][data-fill="multi"] .wg-ttl, .w[data-i][data-fill="multi"] .wg-bighead, .w[data-i][data-fill="multi"] .wg-header h1, .w[data-i][data-fill="multi"] .lk-label, .w[data-i][data-fill="multi"] .hr-day { color: var(--w-cardink, #fff); }
.w[data-i][data-fill="multi"] .wg-header p, .w[data-i][data-fill="multi"] .wg-dsc, .w[data-i][data-fill="multi"] .lk-desc { color: var(--w-carddim, rgba(255,255,255,0.7)); }
.w[data-i][data-fill="multi"] .ic, .w[data-i][data-fill="multi"] .wg-ico { background: var(--w-cardhair, rgba(255,255,255,0.16)); border-color: var(--w-cardhair, rgba(255,255,255,0.22)); color: var(--w-cardink); }
/* accent-driven bits (hours time, link arrow) read as the card ink on a coloured card */
.w[data-i][data-fill="multi"] .hr-time, .w[data-i][data-fill="multi"] .hr-s-time, .w[data-i][data-fill="multi"] .lk-go { color: var(--w-cardink, #fff); opacity: .9; }

/* IMAGE — an uploaded image as the card background, with a darken scrim for legibility */
.w[data-i][data-fill="image"] .card {
  background-image: var(--card-img); background-size: cover; background-position: center;
  --ink: #fff; --ink-dim: rgba(255,255,255,0.84); --ink-faint: rgba(255,255,255,0.62); --hair: rgba(255,255,255,0.22); --card-border: rgba(255,255,255,0.22);
  color: #fff; outline: var(--border-w, 0) solid var(--card-border); outline-offset: 0;
  box-shadow: var(--card-drop, 0 22px 50px -26px rgba(0,0,0,0.5)), var(--card-glow, 0 0 transparent);
}
.w[data-i][data-fill="image"] .card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,calc(var(--card-scrim, 0.4) * 0.45)), rgba(0,0,0,var(--card-scrim, 0.4))); }
/* lift TEXT/content above the scrim — but never clobber absolutely-positioned helpers
   (.wim = the widget's own picture, the expand +, the editor tools/badge) */
.w[data-i][data-fill="image"] .card > *:not(.wim):not(.w-expand):not(.w-tools):not(.w-hidebadge):not(.lk-ext) { position: relative; z-index: 1; }
/* ── the expand modal wears the OPENING widget's fill style (matches the card it came from) ── */
.wm-card[data-fill="glass"] { background: var(--card-bg); outline: var(--border-w, 1px) solid var(--card-border); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.22), inset 0 -1px 0 0 rgba(0,0,0,0.3), var(--card-drop, 0 24px 60px -24px rgba(0,0,0,0.6)), var(--card-glow, 0 0 transparent); }
.wm-card[data-fill="solid"] { background: var(--card-bg); outline: var(--border-w, 1px) solid var(--card-border); box-shadow: var(--card-drop, 0 24px 60px -30px rgba(0,0,0,0.5)), var(--card-glow, 0 0 transparent); }
.wm-card[data-fill="bold"] { background: var(--card-bg); box-shadow: var(--card-drop, 0 24px 60px -22px rgba(0,0,0,0.6)), var(--card-glow, 0 0 transparent); }
.wm-card[data-fill="outline"] { background: var(--card-bg); outline: var(--border-w, 2px) solid var(--card-border); }
.wm-card[data-fill="gradient"] { color: #fff; background: var(--card-grad, linear-gradient(150deg, hsl(var(--w-hue, 18) 88% 60%), hsl(calc(var(--w-hue, 18) + 34) 82% 46%))); }
.wm-card[data-fill="image"] { color: #fff; background-image: var(--card-img); background-size: cover; background-position: center; }
.wm-card[data-fill="image"]::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,calc(var(--card-scrim, 0.4) * 0.5)), rgba(0,0,0,var(--card-scrim, 0.4))); }
.wm-card[data-fill="image"] > * { position: relative; z-index: 1; }
/* a Link block whose card fill is an image → clean featured-link look: label bottom, badge corner, no extra thumbnail */
.w[data-i][data-fill="image"] .wg-link { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 130px; }
.w[data-i][data-fill="image"] .wg-link .lk-ic { display: none; }
/* media widgets render their OWN picture full-bleed — it sits above the theme card-image + scrim */
.w[data-i][data-fill="image"] .wg-image > .wim, .w[data-i][data-fill="image"] .wg-gallery .wim { z-index: 1; }
.w[data-i][data-fill="image"] .wg-image::after { display: none; }

/* ── button styles (per-preset, set via data-btnstyle) ── */
[data-btnstyle="soft"] .btn-cta, [data-btnstyle="soft"] .wg-btn { background: color-mix(in srgb, var(--btn-bg) 18%, transparent) !important; color: var(--btn-bg) !important; }
[data-btnstyle="outline"] .btn-cta, [data-btnstyle="outline"] .wg-btn { background: transparent !important; border: 1.5px solid var(--btn-bg); color: var(--btn-bg) !important; }
[data-btnstyle="arrow"] .btn-cta { border-radius: 999px; padding: 8px 8px 8px 22px; gap: 12px; }
[data-btnstyle="arrow"] .btn-cta::after { content: "→"; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--btn-text, #fff); color: var(--btn-bg, #111); font-size: 16px; font-weight: 700; line-height: 1; }
[data-btnstyle="arrow"] .wg-btn { position: relative; border-radius: 999px; padding-right: 46px; }
[data-btnstyle="arrow"] .wg-btn::after { content: "→"; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--btn-text, #111); color: var(--btn-bg, #fff); font-size: 16px; font-weight: 700; line-height: 1; }
/* soft / outline button styles apply to the Buttons widget too */
[data-btnstyle="soft"] .wg-btn { background: color-mix(in srgb, var(--btn-bg) 18%, transparent) !important; color: var(--btn-bg) !important; }
[data-btnstyle="outline"] .wg-btn { background: transparent !important; border: 1.5px solid var(--btn-bg); color: var(--btn-bg) !important; }

/* ── shared content elements themes can use ── */
.badge-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); white-space: nowrap; }
.badge-pill svg { width: 13px; height: 13px; }
.circ-btn { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; text-decoration: none; transition: transform .14s, filter .14s; }
.circ-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.circ-btn svg { width: 20px; height: 20px; }
.circ-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* inner group: image + gradient fills, optional glow */
[data-infill="image"] .wg-inner { background-image: var(--in-img); background-size: cover; background-position: center; }
.wg-inner { box-shadow: var(--in-glow, none); }

/* icon chip style */
[data-icons="solid"] .wg-link .ic { background: var(--icon-color, var(--accent)); border-color: transparent; color: #fff; }
[data-icons="line"] .wg-link .ic svg { color: var(--icon-color, var(--ink)); }
.w[data-i][data-fill="gradient"] .wg-link .ic { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ------------------------- widget: header ------------------------- */
.wg-header { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.wg-header h1 { margin: 0; font-family: var(--h1-font, var(--font)); font-size: calc(clamp(28px, 5vw, 48px) * var(--h1-scale, 1)); font-weight: var(--h1-weight, 700); font-style: var(--h1-style, normal); color: var(--h1-color, var(--ink)); text-shadow: var(--h1-glow, none); letter-spacing: -0.03em; line-height: 1.05; }
.wg-header p { margin: 0; font-family: var(--h2-font, var(--font)); color: var(--h2-color, var(--ink-dim)); font-size: calc(clamp(15px, 2vw, 19px) * var(--h2-scale, 1)); font-weight: var(--h2-weight, 600); font-style: var(--h2-style, normal); text-shadow: var(--h2-glow, none); max-width: 34ch; }
[data-display="huge"] .wg-header h1 { font-size: calc(clamp(34px, 8vw, 66px) * var(--h1-scale, 1)); letter-spacing: -0.045em; text-transform: uppercase; line-height: .92; }
[data-display="serif"] .wg-header h1 { letter-spacing: -0.012em; font-size: calc(clamp(32px, 6.5vw, 58px) * var(--h1-scale, 1)); }
.wg-header .btn-cta {
  align-self: flex-start; margin-top: 8px;
  background: var(--btn-bg, #fff); color: var(--btn-text, #111);
  text-decoration: none; font-family: var(--btn-font, var(--lb-font, var(--font))); font-weight: var(--btn-weight, 650); font-size: calc(15px * var(--btn-size, 1));
  padding: 12px 20px; border-radius: var(--btn-radius, calc(var(--radius) * 0.55 + 6px));
  transition: transform .18s var(--ease, ease), filter .18s, box-shadow .18s; will-change: transform;
}
/* button hover animations (set per theme via data-bthover on .wrap) */
[data-bthover="lift"] .wg-header .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }
[data-bthover="grow"] .wg-header .btn-cta:hover { transform: scale(1.05); }
[data-bthover="fade"] .wg-header .btn-cta:hover { filter: brightness(.9); }
[data-fill="gradient"] .wg-header .btn-cta { background: rgba(255,255,255,0.92); color: #111; }

/* ------------------------- widget: link ------------------------- */
a.wg-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: calc(var(--radius) * 0.4 + 4px);
  background: var(--icon-chip, color-mix(in srgb, var(--ink) 9%, transparent)); border: 1px solid var(--card-border);
  display: grid; place-items: center;
}
.ic svg { width: 22px; height: 22px; }
.wg-link .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 600); font-style: var(--lb-style, normal); color: var(--lb-color, var(--ink)); font-size: calc(18px * var(--lb-scale, 1)); letter-spacing: -0.01em; }
.wg-link .lk-desc { font-family: var(--ds-font, var(--font)); color: var(--ds-color, var(--ink-dim)); font-size: calc(14px * var(--ds-scale, 1)); font-weight: var(--ds-weight, 400); font-style: var(--ds-style, normal); }
.wg-link .lk-host { color: var(--ink-faint); font-size: 12px; margin-top: auto; word-break: break-all; }
.w.s a.wg-link .lk-desc { display: none; }

/* ------------------------- widget: hours ------------------------- */
/* inner card: a styled group inside the widget (theme-controlled via Cards/Border → Inner) */
.wg-inner { background: var(--in-bg); border: var(--in-border-w, 0) solid var(--in-border, transparent); border-radius: var(--in-radius, 18px); padding: 6px 12px; margin: 14px 0 2px; }
[data-infill="glass"] .wg-inner { backdrop-filter: blur(var(--in-blur, 20px)) saturate(140%); -webkit-backdrop-filter: blur(var(--in-blur, 20px)) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.30), 0 8px 24px -14px rgba(0,0,0,0.5), var(--in-glow, 0 0 transparent); }
[data-infill="glass"] .wg-hours .row { border-bottom-color: rgba(255,255,255,0.08); }
.wg-hours .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--hair); font-family: var(--lb-font, var(--font)); font-size: calc(15px * var(--lb-scale, 1)); font-weight: var(--lb-weight, 400); font-style: var(--lb-style, normal); color: var(--lb-color, var(--ink)); }
.wg-hours .row:last-child { border-bottom: 0; }
.wg-hours .row.today { color: var(--accent); font-weight: 600; }
.wg-hours .row .cl { font-family: var(--ds-font, var(--font)); color: var(--ds-color, var(--ink-dim)); font-weight: var(--ds-weight, 400); font-size: calc(1em * var(--ds-scale, 1) / var(--lb-scale, 1)); }
.wg-hours .row.closed .cl { color: var(--ink-faint); }
.w.s .wg-hours .row:nth-child(n+4) { display: none; } /* compact in square */

/* ===================== widgets v2 — every widget × every size its own layout ===================== */
.wg-link, .wg-text, .wg-contact, .wg-whatsapp, .wg-form, .wg-map, .wg-instagram, .wg-icons, .wg-gallery, .wg-countdown, .wg-hours { display: flex; flex-direction: column; }
/* universal heading (overline) — consistent across every widget */
.wg-h { margin: 0 0 12px; font-family: var(--lb-font, var(--font)); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-faint); }
.wg-bighead { margin: 0 0 6px; font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 800); font-style: var(--h1-style, normal); font-size: clamp(22px, 3.4vw, 34px); color: var(--h1-color, var(--ink)); letter-spacing: -0.02em; line-height: 1.05; }

/* shared base head: overline LABEL · TITLE · DESCRIPTION — each hidden when empty.
   Typography tracks the theme's per-element roles (label/title/description). */
.wg-head2 { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; min-width: 0; }
.wg-head2:last-child { margin-bottom: 0; }
/* ── unified body: pinned head above, body fills the remaining card height ──
   so widgets never leave a dead gap at the bottom and never overlap themselves. */
.wg-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wg-body.bd-top { justify-content: flex-start; }
.wg-body.bd-center { justify-content: safe center; } /* "safe" → never spill content over the head when it doesn't fit */
.wg-body.bd-between { justify-content: space-between; }
.wg-body.bd-fill > * { flex: 1 1 auto; min-height: 0; }
.wg-ov { font-family: var(--lb-font, var(--font)); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-faint); }
.wg-ttl { margin: 0; font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-style: var(--h1-style, normal); color: var(--h1-color, var(--ink)); text-shadow: var(--h1-glow, none); letter-spacing: -0.02em; line-height: 1.08; font-size: calc(clamp(18px, 2.4vw, 23px) * var(--h1-scale, 1)); }
.wg-dsc { margin: 0; font-family: var(--ds-font, var(--font)); color: var(--ds-color, var(--ink-dim)); font-weight: var(--ds-weight, 400); font-style: var(--ds-style, normal); font-size: calc(14px * var(--ds-scale, 1)); line-height: 1.5; }
.sz-l .wg-ttl { font-size: calc(clamp(22px, 3.2vw, 32px) * var(--h1-scale, 1)); }
.sz-l .wg-dsc { font-size: calc(15px * var(--ds-scale, 1)); }
.sz-s .wg-ttl { font-size: calc(16px * var(--h1-scale, 1)); }
.sz-s .wg-head2 { margin-bottom: 8px; }
.ic.sm { width: 36px; height: 36px; }
.ic.sm svg { width: 18px; height: 18px; }
.lk-fav { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.wim-empty { display: grid; place-items: center; min-height: 130px; color: var(--ink-faint); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.wim-empty svg { width: 36px; height: 36px; }

/* ---- LINK — the whole card IS the button (one destination, opens a new tab) ---- */
.wg-link { position: relative; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.wg-link:hover { transform: translateY(-2px); }
.wg-link .lk-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: calc(var(--radius) * 0.3 + 4px); display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--icon-color, var(--ink)); overflow: hidden; }
.wg-link .lk-ic svg { width: 22px; height: 22px; }
.wg-link .lk-ic.lk-img { background-size: cover; background-position: center; }
.wg-link .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); font-style: var(--lb-style, normal); color: var(--lb-color, var(--ink)); font-size: clamp(16px, 2vw, 19px); letter-spacing: -0.01em; min-width: 0; }
[data-icons="solid"] .wg-link .lk-ic:not(.lk-img) { background: var(--icon-color, var(--accent)); color: #fff; }
/* external-link badge — top-right corner, like the + (signals: opens a new tab) */
.wg-link .lk-ext { position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); opacity: .85; transition: opacity .15s; }
.wg-link:hover .lk-ext { opacity: 1; }
.wg-link .lk-ext svg { width: 15px; height: 15px; }
/* link bar — thumb left · label (wide & short); reserve room for the corner badge */
.wg-link.lk-bar { flex-direction: row; align-items: center; gap: 14px; padding-right: clamp(50px, 7vw, 58px); }
.wg-link.lk-bar .lk-label { flex: 1; }
/* link tile — thumb on top · label under (small square, or any tall block) */
.wg-link.lk-tile { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.wg-link.lk-tile .lk-ic { width: 50px; height: 50px; }
.wg-link.lk-tile .lk-ic svg { width: 26px; height: 26px; }
.wg-link.lk-tile.sz-s { justify-content: space-between; }
.wg-link.lk-tile .lk-label { font-size: clamp(17px, 2.2vw, 22px); }

/* ---- TEXT ---- */
.wg-text { gap: 8px; justify-content: center; }
.wg-p { margin: 0; font-family: var(--ds-font, var(--font)); color: var(--ds-color, var(--ink-dim)); font-size: calc(15px * var(--ds-scale, 1)); line-height: 1.55; white-space: pre-wrap; }
.wg-text.sz-l .wg-p { font-size: 17px; }

/* ---- IMAGE ---- */
.wg-image { padding: 0 !important; position: relative; min-height: 150px; }
.wg-image.sz-l { min-height: 320px; }
.wim { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wg-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; color: #fff; font-size: 13.5px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.wg-imgcap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 30px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.74)); }
.wg-imgcap .wg-ov { color: rgba(255,255,255,0.82); }
.wg-imgttl { font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-style: var(--h1-style, normal); font-size: clamp(17px, 2vw, 23px); color: #fff; letter-spacing: -0.01em; line-height: 1.1; }
.wg-imgdsc { font-family: var(--ds-font, var(--font)); font-size: 13.5px; color: rgba(255,255,255,0.84); }

/* ---- TEXT + IMAGE ---- */
.wg-textimage { display: flex; flex-direction: column; gap: 14px; }
.wg-textimage .ti-text { display: flex; flex-direction: column; justify-content: center; }
.wg-textimage .ti-text .wg-head2 { margin: 0; }
.ti-img { width: 100%; flex: 1 1 auto; min-height: 120px; background-size: cover; background-position: center; border-radius: 16px; }
/* roundness options */
.ti-sh-square { border-radius: 0; }
.ti-sh-round { border-radius: 16px; }
.ti-sh-pill { border-radius: 999px; }
.ti-sh-circle { border-radius: 50%; aspect-ratio: 1; flex: 0 0 auto; width: clamp(96px, 40%, 200px); align-self: center; }
/* below = image then text (default column); above = text then image */
.wg-textimage.ti-above:not(.sz-l) { flex-direction: column-reverse; }
/* large = side by side; align left → image left, right → image right */
.wg-textimage.sz-l:not(.ti-over) { flex-direction: row; align-items: stretch; gap: clamp(18px, 2.5vw, 32px); }
.wg-textimage.sz-l.ti-al-right:not(.ti-over) { flex-direction: row-reverse; }
.wg-textimage.sz-l .ti-img { width: 46%; flex: 0 0 46%; min-height: 100%; }
.wg-textimage.sz-l .ti-img.ti-sh-circle { width: clamp(120px, 26%, 240px); flex: 0 0 auto; align-self: center; }
.wg-textimage.sz-l .ti-text { flex: 1; min-width: 0; }
/* over = image as full background, text overlaid (poster) */
.wg-textimage.ti-over { padding: 0 !important; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.ti-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.12) 55%, transparent); }
.ti-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-faint); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ti-noimg svg { width: 40px; height: 40px; }
.ti-overtext { position: relative; z-index: 1; margin-top: auto; padding: clamp(18px, 2.4vw, 28px); }
.ti-over .ti-overtext .wg-ttl, .ti-over .ti-overtext .wg-ov { color: #fff; }
.ti-over .ti-overtext .wg-dsc { color: rgba(255,255,255,0.82); }
.ti-over .ti-overtext .wg-head2 { margin: 0; }

/* ---- GALLERY ---- */
.wg-gallery.sz-s { padding: 0 !important; position: relative; min-height: 150px; }
.gal-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wg-gallery { display: flex; flex-direction: column; }
.wg-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px; padding: 2px; flex: 1 1 auto; min-height: 0; }
.wg-strip::-webkit-scrollbar { display: none; }
.wg-shot { flex: 0 0 auto; width: 33%; min-width: 120px; height: 100%; min-height: 0; aspect-ratio: 4 / 3; border-radius: 14px; background-size: cover; background-position: center; scroll-snap-align: start; }
.wg-gallery.sz-m .wg-shot { width: 44%; }
/* smallest gallery → cover image with the title overlaid */
.wg-gallery.gal-cover { padding: 0 !important; position: relative; overflow: hidden; background-size: cover; background-position: center; justify-content: flex-end; --ink: #fff; --lb-color: #fff; --ink-dim: rgba(255,255,255,0.86); --ink-faint: rgba(255,255,255,0.72); }
.gal-cover .gal-scrim { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,0.7)); }
.gal-cover .gal-overtext { position: relative; z-index: 1; padding: clamp(14px, 2.5vw, 18px); }
.gal-cover .gal-overtext .wg-head2 { margin: 0; }
.gal-cover .wim-empty { position: absolute; inset: 0; }
/* gallery lightbox modal — one big image + thumbnails to pick from */
.wx-lightbox { display: flex; flex-direction: column; gap: 14px; }
.wx-main { width: 100%; aspect-ratio: 16/10; border-radius: 16px; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.05); }
.wx-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wx-thumbs::-webkit-scrollbar { display: none; }
.wx-thumb { flex: 0 0 auto; width: 96px; height: 72px; border-radius: 10px; background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; padding: 0; opacity: .6; transition: opacity .15s, border-color .15s; }
.wx-thumb:hover { opacity: 1; }
.wx-thumb.on { opacity: 1; border-color: var(--ink, #fff); }
/* gallery editor — reorder arrows on each photo */
.gal-move { position: absolute; left: 4px; top: 4px; display: flex; gap: 4px; }
.gal-move button { width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.gal-move button:disabled { opacity: .35; pointer-events: none; }
.gal-move svg { width: 12px; height: 12px; }
.wg-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wg-mcell { aspect-ratio: 1; border-radius: 12px; background-size: cover; background-position: center; min-height: 64px; }

/* ---- HOURS ---- */
.wg-htop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding-right: 34px; }
.wg-htop .wg-h { margin: 0; }
/* ============================ OPENING HOURS (redesign) ============================ */
/* status block: red/green dot + bold label + accent "Opens 09:00" sub-line */
.hr-st { display: flex; align-items: flex-start; gap: 9px; }
.hr-st.inline { align-items: center; flex-wrap: wrap; }
.hr-st-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.hr-st.inline .hr-st-dot { margin-top: 0; }
.hr-st-dot.off { background: #F0563C; box-shadow: 0 0 0 3px color-mix(in srgb, #F0563C 22%, transparent); }
.hr-st-dot.on { background: #34C759; box-shadow: 0 0 0 3px color-mix(in srgb, #34C759 22%, transparent); }
.hr-st-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hr-st-label { font-family: var(--lb-font, var(--font)); font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.15; }
.hr-st-sub { font-family: var(--ds-font, var(--font)); color: var(--accent); font-size: 13.5px; }
.hr-st.inline .hr-st-sub { margin-left: 4px; }
/* day = an inner-card row (wears the preset's inner-card design). today = accent. */
.hr-days { flex: 1 1 auto; min-height: 0; }
.hr-days.col { display: flex; flex-direction: column; gap: 8px; }
.hr-days.col .hr-day { flex: 1 1 0; min-height: 0; }
.hr-days.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
.hr-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-radius: var(--in-radius, 16px); background: var(--in-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: var(--in-border-w, 1px) solid var(--in-border, color-mix(in srgb, var(--ink) 10%, transparent)); }
.hr-day-n { font-family: var(--lb-font, var(--font)); font-weight: 600; color: var(--in-ink, var(--ink)); white-space: nowrap; }
.hr-day-t { font-family: var(--ds-font, var(--font)); color: var(--in-ink-dim, var(--ink-dim)); white-space: nowrap; }
.hr-day-t.shut { color: var(--in-ink-dim, var(--ink-faint)); }
/* today = the inner group filled with the accent + light text (works on every theme) */
.hr-day.today { background: var(--accent); border-color: var(--accent); }
.hr-day.today .hr-day-n { color: var(--on-accent, #fff); font-weight: 700; }
.hr-day.today .hr-day-t { color: var(--on-accent, #fff); font-weight: 700; }
/* card layouts — status on top, days fill the rest */
.wg-hours.hr-list, .wg-hours.hr-grid, .wg-hours.hr-upcoming { gap: 14px; }
/* small · short → status + big today time + sub */
.hr-mini .hr-mini-top { display: flex; align-items: center; gap: 8px; }
.hr-mini .hr-bigtime { font-family: var(--h1-font, var(--font)); font-weight: 700; font-size: clamp(24px, 8vw, 32px); color: var(--ink); line-height: 1.05; margin: 6px 0 4px; }
.hr-mini .hr-st-sub { color: var(--accent); font-size: 14px; }
/* small · medium → upcoming relative rows (plain, no card) */
.hr-rel { display: flex; flex-direction: column; }
.hr-rel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.hr-rel-row:last-child { border-bottom: 0; }
.hr-rel-d { font-family: var(--lb-font, var(--font)); font-weight: 600; color: var(--ink); }
.hr-rel-t { font-family: var(--ds-font, var(--font)); color: var(--ink-dim); white-space: nowrap; }
.hr-rel-t.shut { color: var(--ink-faint); }
/* wide · short → banner: status left, big today time right */
.wg-hours.hr-banner .wg-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.hr-banner-today { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hr-banner-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.hr-banner-time { font-family: var(--h1-font, var(--font)); font-weight: 700; font-size: clamp(24px, 4vw, 40px); color: var(--ink); line-height: 1; white-space: nowrap; }
/* large · tall → ring + week list side by side */
.wg-hours.hr-showcase { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 28px; align-items: center; }
.hr-show-list { min-width: 0; align-self: stretch; display: flex; }
.hr-show-list .hr-days.col { flex: 1; }
/* 24h ring dial */
.hr-ring { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hr-ring-dial { position: relative; width: 100%; max-width: 220px; aspect-ratio: 1; }
.hr-ring-svg { width: 100%; height: 100%; display: block; }
.hr-ring-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 13%, transparent); stroke-width: 8; }
.hr-ring-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.hr-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.hr-ring-st { font-family: var(--lb-font, var(--font)); font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #34C759; }
.hr-ring-h { font-family: var(--h1-font, var(--font)); font-weight: 700; font-size: clamp(34px, 7vw, 52px); color: var(--ink); line-height: 1; }
.hr-ring-sub { font-size: 13px; color: var(--ink-dim); }
.hr-ring-now { font-family: var(--ds-font, var(--font)); font-size: 14px; color: var(--ink-dim); }
/* modal content — ring left + full week list right (uses the standard modal chrome) */
.hr-modal { display: grid; grid-template-columns: minmax(160px, 230px) 1fr; gap: 32px; align-items: center; }
.hr-modal-left { display: flex; justify-content: center; }
.hr-modal-right .wx-head { margin-bottom: 16px; }
.hr-modal .hr-days.col { gap: 11px; }
.hr-modal .hr-days.col .hr-day { flex: 0 0 auto; padding: 17px 22px; font-size: 16px; }
.hr-modal .hr-ring-dial { max-width: 200px; }
@media (max-width: 680px) { .hr-modal { grid-template-columns: 1fr; gap: 22px; } .hr-modal-right .wx-head { justify-content: center; } .wg-hours.hr-showcase { grid-template-columns: 1fr; gap: 18px; } }
.wx-cal { display: flex; flex-direction: column; }
.wx-cal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 6px; border-bottom: 1px solid var(--hair); }
.wx-cal-row:last-child { border-bottom: 0; }
.wx-cal-day { display: flex; align-items: baseline; gap: 10px; font-family: var(--lb-font, var(--font)); }
.wx-cal-day b { font-weight: 650; font-size: 17px; color: var(--ink); }
.wx-cal-row.today .wx-cal-day b { color: var(--accent); }
.wx-cal-date { font-size: 13px; color: var(--ink-faint); }
.wx-cal-time { font-family: var(--ds-font, var(--font)); font-size: 16px; color: var(--ink-dim); }
.wx-cal-row.today .wx-cal-time { color: var(--accent); font-weight: 650; }
.wx-cal-time.shut { color: var(--ink-faint); }
.wk-list { display: flex; flex-direction: column; }
.wk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.wk-row:last-child { border-bottom: 0; }
.wk-row.today { color: var(--accent); }
.wk-day { display: flex; align-items: baseline; gap: 8px; font-family: var(--lb-font, var(--font)); }
.wk-day b { font-weight: 650; }
.wk-date { font-size: 12px; color: var(--ink-faint); }
.wk-row.today .wk-date { color: var(--accent); }
.wk-time { font-family: var(--ds-font, var(--font)); color: var(--ink-dim); }
.wk-row.today .wk-time { color: var(--accent); font-weight: 650; }

/* ---- CONTACT ---- */
/* accent icon chip (rounded square) — the shared element across every contact layout */
.ct-chip { width: 44px; height: 44px; flex: 0 0 auto; border-radius: min(var(--in-radius, 14px), 14px); display: grid; place-items: center; background: var(--icon-bg, color-mix(in srgb, var(--accent) 14%, transparent)); border: 1px solid var(--icon-bd, transparent); color: var(--icon-fg, var(--accent)); }
.ct-chip svg { width: 22px; height: 22px; }
.ct-chip.lg { width: 50px; height: 50px; }
.ct-chip.lg svg { width: 24px; height: 24px; }
.ct-title { font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-size: clamp(20px, 2.4vw, 26px); color: var(--h1-color, var(--ink)); margin-bottom: 6px; }
/* value rows (chip + value) — floating, no tile */
.ct-rows { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.ct-rows.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ct-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-val { font-family: var(--lb-font, var(--font)); font-weight: 650; font-size: 16px; color: var(--lb-color, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* horizontal label banner (chip + LABEL/value) — wide + short */
.ct-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; width: 100%; }
.ct-lrow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-lr-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-lr-l { font-family: var(--lb-font, var(--font)); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-color, var(--ink-faint)); }
.ct-lr-v { font-family: var(--lb-font, var(--font)); font-weight: 650; font-size: 16px; color: var(--lb-color, var(--ink)); white-space: nowrap; }
/* labelled groups (chip + label/value) — spacious, large + tall */
.ct-groups { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.ct-groups.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.ct-groups .ct-chip { width: 48px; height: 48px; }
.ct-groups .ct-lr-v { font-size: clamp(17px, 2vw, 21px); }
.ct-groups.two .ct-lr-v { font-size: 17px; }
/* teaser (chat chip + title + subtitle) — medium + short */
.wg-contact.ct-teaser .wg-body { flex-direction: row; align-items: center; gap: 16px; }
.ct-teaser-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-teaser-t { font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-size: clamp(19px, 2.2vw, 24px); color: var(--h1-color, var(--ink)); }
.ct-teaser-s { font-family: var(--ds-font, var(--font)); font-size: 14px; color: var(--ds-color, var(--ink-dim)); text-transform: capitalize; }
/* contact modal — big tappable icon-chip rows (chip · label/value · chevron) */
.ct-mlist { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ct-mrow { display: flex; align-items: center; gap: 16px; padding: 12px 8px; text-decoration: none; border-radius: 14px; transition: background .12s; }
.ct-mrow:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ct-mrow-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ct-mrow-l { font-family: var(--lb-font, var(--font)); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ds-color, var(--ink-faint)); }
.ct-mrow-v { font-family: var(--lb-font, var(--font)); font-weight: 650; font-size: 17px; color: var(--lb-color, var(--ink)); word-break: break-word; }
.ct-mrow-go { flex: 0 0 auto; color: var(--ink-faint); display: grid; }
.ct-mrow-go svg { width: 18px; height: 18px; }
.wx-sub { font-family: var(--ds-font, var(--font)); font-size: 15px; color: var(--ink-dim); margin: 6px 0 0; }

/* ---- WHATSAPP ---- */
/* ============================ WHATSAPP (chat) — accent-coloured ============================ */
.wg-whatsapp { gap: 14px; }
.wa-head { display: flex; align-items: center; gap: 13px; }
.wa-ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px; background: var(--icon-bg, var(--accent)); border: 1px solid var(--icon-bd, transparent); color: var(--icon-fg, var(--on-accent)); display: grid; place-items: center; }
.wa-ic svg { width: 24px; height: 24px; }
.wa-ic.lg { width: 56px; height: 56px; border-radius: 16px; }
.wa-ic.lg svg { width: 28px; height: 28px; }
.wa-htx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-title, .wa-mtitle { font-family: var(--lb-font, var(--font)); font-weight: 700; font-size: 17px; color: var(--ink); }
.wa-status { display: flex; align-items: center; gap: 7px; font-family: var(--ds-font, var(--font)); font-size: 13.5px; color: var(--accent); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
/* faux message input (display only — the whole card opens the modal) */
.wa-faux { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 16px; height: 48px; border-radius: min(var(--input-radius, 12px), 24px); background: var(--input-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: 1px solid var(--input-bd, var(--card-border)); color: color-mix(in srgb, var(--input-ink, var(--ink)) 55%, transparent); font-size: 15px; }
/* the send button wears the preset's BUTTON style */
.wa-sendbtn { width: 48px; height: 48px; flex: 0 0 auto; border-radius: var(--btn-radius, 12px); background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; }
.wa-sendbtn svg { width: 20px; height: 20px; }
.wa-bar { display: flex; align-items: center; gap: 10px; }
.wa-bar.grow { flex: 1; }
/* banner (wide · short) */
.wg-whatsapp.wa-banner .wg-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.wg-whatsapp.wa-banner .wa-head { flex: 0 0 auto; }
/* chat layout (header + greeting bubble + message bar) */
.wg-whatsapp.wa-chat { gap: 14px; }
.wa-stream { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wg-whatsapp.wa-chat .wa-bar { margin-top: auto; }
/* greeting bubble = the INNER CARD (styleable via the Inner card design) */
.wa-bubble { align-self: flex-start; max-width: 92%; background: var(--in-bg, color-mix(in srgb, var(--ink) 8%, transparent)); border: var(--in-border-w, 1px) solid var(--in-border, var(--card-border)); border-radius: min(var(--in-radius, 16px), 20px); border-bottom-left-radius: 5px; padding: 11px 15px; font-family: var(--ds-font, var(--font)); font-size: 15px; color: var(--in-ink, var(--ink)); }
.wa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-sub { margin: 0 0 14px; font-family: var(--ds-font, var(--font)); color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; }

/* ---- FORM ---- */
/* form widget — a clean PREVIEW (opens the form modal, like WhatsApp) + small teaser */
.wg-form { gap: 12px; justify-content: flex-start; }
.wg-form.form-teaser { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; -webkit-appearance: none; appearance: none; }
.form-teaser .ct-teaser-s { text-transform: none; }
.ff-head { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.ff-title { font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-size: clamp(18px, 2.3vw, 24px); color: var(--h1-color, var(--ink)); letter-spacing: -0.01em; line-height: 1.1; }
.ff-sub { font-family: var(--ds-font, var(--font)); font-size: 14px; color: var(--ds-color, var(--ink-dim)); }
/* preview fields (non-interactive faux inputs that mirror the real form) */
.ff-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-height: 0; align-content: start; }
.ff-field { min-width: 0; }
.ff-field.wide { grid-column: 1 / -1; }
.ff-faux { width: 100%; background: var(--input-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: 1px solid var(--input-bd, var(--card-border)); border-radius: min(var(--input-radius, 14px), 22px); color: color-mix(in srgb, var(--input-ink, var(--ink)) 50%, transparent); padding: 13px 15px; font-family: var(--font); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ff-faux.ff-area { min-height: 64px; }
.ff-choice.faux { display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.ff-choice.faux .ff-opt { display: inline-block; }
/* corner send pill — small, bottom-right, wears the preset button tokens */
.ff-send { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; cursor: pointer; background: var(--btn-bg, #fff); color: var(--btn-text, #111); border-radius: var(--btn-radius, 999px); font-family: var(--btn-font, var(--font)); font-weight: var(--btn-weight, 700); font-size: calc(15px * var(--btn-size, 1)); transition: filter .12s; }
.ff-send:hover { filter: brightness(1.05); }
.ff-send-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--btn-text, #111) 16%, transparent); }
.ff-send-ic svg { width: 15px; height: 15px; color: var(--btn-text, #111); }
/* MODAL form (the real, functional one) */
.wg-forminline { display: flex; flex-direction: column; gap: 10px; }
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wg-input { width: 100%; background: var(--input-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: 1px solid var(--input-bd, var(--card-border)); border-radius: min(var(--input-radius, 14px), 22px); color: var(--input-ink, var(--ink)); padding: 13px 15px; font: inherit; font-size: 15px; outline: none; transition: border-color .12s; }
.wg-input::placeholder { color: color-mix(in srgb, var(--input-ink, var(--ink)) 48%, transparent); }
.wg-input:focus { border-color: var(--input-color, var(--ink)); }
textarea.wg-input { resize: vertical; min-height: 88px; line-height: 1.45; }
.ff-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-opt { flex: 1 1 auto; min-width: 84px; padding: 12px 14px; border-radius: min(var(--input-radius, 14px), 22px); border: 1px solid var(--input-bd, var(--card-border)); background: var(--input-bg, color-mix(in srgb, var(--ink) 6%, transparent)); color: var(--input-ink, var(--ink)); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.ff-opt:hover { border-color: var(--accent); }
.ff-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 700; }
.ff-submit { width: 100%; margin-top: 2px; }
/* short height → one inline row: head · fields · send */
.wg-form.form-banner { flex-direction: row; align-items: center; gap: 16px; }
.form-banner .ff-head { max-width: 34%; }
.form-banner .ff-preview { display: flex; flex: 1 1 auto; gap: 10px; align-items: center; min-width: 0; }
.form-banner .ff-field { flex: 1 1 0; min-width: 0; }
.form-banner .ff-field.wide { display: none; }
.form-banner .ff-faux.ff-area { display: none; }
.form-banner .ff-send { align-self: center; flex: 0 0 auto; }
/* whatsapp preset shown as a chat bubble */
.wa-bubble { align-self: flex-start; max-width: 90%; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 1px solid var(--card-border); border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-family: var(--ds-font, var(--font)); font-size: 14px; color: var(--ds-color, var(--ink-dim)); margin: 2px 0 10px; }

/* ---- COUNTDOWN ---- */
/* ============================ COUNTDOWN (redesign) ============================ */
.wg-countdown { gap: 14px; font-variant-numeric: tabular-nums; }
.cd-ov { font-family: var(--lb-font, var(--font)); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cd-date { font-family: var(--lb-font, var(--font)); font-size: 15px; font-weight: 600; color: var(--ink-dim); }
.cd-head { display: flex; flex-direction: column; gap: 3px; }
/* the big hero number (accent gradient) */
.cd-hero { font-family: var(--h1-font, var(--font)); font-weight: 800; line-height: .85; font-size: clamp(46px, 12vw, 92px); background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 75%, #fff 25%), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* unit tiles (inner-card style; last/most-urgent = accent) */
.cd-tiles { display: flex; gap: 10px; }
.cd-tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: var(--in-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: var(--in-border-w, 1px) solid var(--in-border, color-mix(in srgb, var(--ink) 9%, transparent)); }
.cd-tn { font-family: var(--h1-font, var(--font)); font-weight: 800; line-height: 1; font-size: clamp(22px, 4vw, 40px); color: var(--in-ink, var(--ink)); }
.cd-tl { font-family: var(--lb-font, var(--font)); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--in-ink-dim, var(--ink-faint)); }
.cd-tile.on { background: var(--accent); border-color: var(--accent); }
.cd-tile.on .cd-tn, .cd-tile.on .cd-tl { color: var(--on-accent, #fff); }
/* s·s big */
.wg-countdown.cd-big .cd-bigrow { display: flex; align-items: center; gap: 14px; }
.cd-bigtx { display: flex; flex-direction: column; min-width: 0; }
.cd-biglead { font-family: var(--lb-font, var(--font)); font-size: 17px; font-weight: 700; color: var(--ink); }
.cd-bigsub { font-family: var(--ds-font, var(--font)); font-size: 14px; color: var(--ink-dim); }
/* s·m hero + tiles */
.wg-countdown.cd-herotiles { gap: 10px; }
.cd-heroline { display: flex; align-items: baseline; gap: 8px; }
.cd-heronote { font-family: var(--ds-font, var(--font)); font-size: 16px; font-weight: 600; color: var(--ink-dim); }
.cd-herotiles .cd-hero { font-size: clamp(40px, 16vw, 64px); }
/* s·l stacked rows */
.cd-rows { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; margin-top: 4px; }
.cd-row { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--in-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: var(--in-border-w, 1px) solid var(--in-border, color-mix(in srgb, var(--ink) 9%, transparent)); }
.cd-rn { font-family: var(--h1-font, var(--font)); font-weight: 800; font-size: clamp(28px, 5vw, 42px); color: var(--in-ink, var(--ink)); line-height: 1; }
.cd-rl { font-family: var(--lb-font, var(--font)); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--in-ink-dim, var(--ink-faint)); }
.cd-row.on { background: var(--accent); border-color: var(--accent); }
.cd-row.on .cd-rn, .cd-row.on .cd-rl { color: var(--on-accent, #fff); }
/* l·s inline banner */
.wg-countdown.cd-inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.cd-inrow { display: flex; align-items: flex-start; gap: 8px; }
.cd-iu { display: flex; flex-direction: column; align-items: center; }
.cd-in { font-family: var(--h1-font, var(--font)); font-weight: 800; font-size: clamp(28px, 4vw, 48px); color: var(--ink); line-height: 1; }
.cd-il { font-family: var(--lb-font, var(--font)); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.cd-iu.on .cd-in, .cd-iu.on .cd-il { color: var(--accent); }
.cd-colon { font-family: var(--h1-font, var(--font)); font-weight: 800; font-size: clamp(24px, 3.5vw, 40px); color: var(--ink-faint); line-height: 1; }
/* tiles row (m·s / m·m / l·m) */
.wg-countdown.cd-tilesrow { justify-content: center; }
.cd-tilesrow .cd-tiles { margin-top: 4px; }
/* showcase (tall) */
.wg-countdown.cd-showcase { justify-content: space-between; }
.cd-sc-top { display: flex; flex-direction: column; gap: 6px; }
.cd-sc-lead { font-family: var(--lb-font, var(--font)); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cd-sc-title { margin: 0; font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 800); font-size: clamp(26px, 5vw, 48px); color: var(--ink); line-height: 1.05; }
.cd-sc-sub { font-family: var(--ds-font, var(--font)); font-size: 16px; color: var(--ink-dim); }
.cd-showcase .cd-tiles { margin-top: 18px; }
/* end state — message replaces the countdown */
.cd-doneview { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; text-align: center; }
.cd-donemsg { font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 800); font-size: clamp(24px, 5vw, 46px); line-height: 1.1; color: var(--accent); }
.wg-countdown.cd-inline.cd-isdone { flex-direction: column; justify-content: center; }

/* ---- MAP ---- */
.wg-map { gap: 12px; }
/* themeable faux-map illustration (land + roads + accent pin) */
.map-art-wrap { position: relative; display: block; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: var(--map-land); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 24px; transform: translate(-50%, -88%); filter: drop-shadow(0 4px 5px rgba(0,0,0,0.35)); pointer-events: none; z-index: 1; }
.map-pin svg { width: 100%; height: auto; display: block; }
/* marker with a photo (a rounded image card above a glowing dot) */
.map-dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--map-pin, var(--accent)); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 0 16px 2px color-mix(in srgb, var(--map-pin, var(--accent)) 70%, transparent); z-index: 1; pointer-events: none; }
.map-photo { position: absolute; left: 50%; bottom: calc(50% + 14px); transform: translateX(-50%); width: 84px; height: 60px; border-radius: 12px; background-size: cover; background-position: center; border: 3px solid #fff; box-shadow: 0 10px 22px -6px rgba(0,0,0,0.45); z-index: 2; pointer-events: none; }
.map-photo::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #fff; }
.map-tx { display: block; min-width: 0; }
.map-ot { display: block; font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-size: clamp(16px, 2.1vw, 20px); color: var(--h1-color, var(--ink)); letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-os { display: block; font-family: var(--ds-font, var(--font)); color: var(--ds-color, var(--ink-dim)); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-dirlink { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: var(--accent); font-family: var(--lb-font, var(--font)); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.map-dirlink svg { width: 15px; height: 15px; }
.map-dir { flex: 0 0 auto; }
/* full-bleed maps (compact + banner): the map IS the card surface, so drop the preset's heavy
   border/outline and use one clean hairline that always follows the corner radius. */
.wg-map.map-compact, .wg-map.map-banner { padding: 0; overflow: hidden; position: relative; background: var(--map-land); }
.w[data-i] .card.map-compact, .w[data-i] .card.map-banner, .wm-card.map-compact, .wm-card.map-banner { outline: none !important; border: 0 !important; box-shadow: var(--card-drop, 0 16px 40px -30px rgba(0,0,0,0.4)) !important; }
.wg-map.map-compact::after, .wg-map.map-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid color-mix(in srgb, var(--map-ink) 12%, transparent); pointer-events: none; z-index: 3; }
/* small → full-bleed map with a floating label pill */
.wg-map.map-compact { display: block; width: 100%; height: 100%; min-height: 150px; cursor: pointer; text-align: left; font: inherit; }
.map-compact .map-art-wrap { position: absolute; inset: 0; border-radius: inherit; }
.map-compact .map-pill { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: block; background: var(--card-bg, rgba(18,18,22,0.86)); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-family: var(--lb-font, var(--font)); font-weight: 650; font-size: 15px; box-shadow: 0 6px 16px -10px rgba(0,0,0,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* wide + short → full-bleed banner with overlaid title + button */
.wg-map.map-banner { min-height: 150px; }
.map-banner .map-art-wrap { position: absolute; inset: 0; border-radius: inherit; }
.map-banner .map-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.05) 70%, transparent); }
.map-banner .map-ot { color: #fff; }
.map-banner .map-os { color: rgba(255,255,255,0.82); }
/* m + short → split: map left, text right */
.wg-map.map-split { flex-direction: row; align-items: stretch; gap: 14px; min-height: 124px; }
.map-split .map-art-wrap { flex: 1 1 56%; min-width: 0; }
.map-split .map-side { flex: 1 1 44%; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
/* m/l taller → stacked: map fills, text + directions below */
.wg-map.map-stack .map-art-wrap { width: 100%; flex: 1 1 auto; min-height: 120px; }
.map-stack .map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* map preview in the preset Map tab */
.map-prevbox { position: relative; width: 100%; height: 92px; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }

/* empty-space block — invisible on the live site, a faint guide in the editor */
.wg-spacer { position: relative; width: 100%; height: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; }
.wg-spacer.is-edit { min-height: 44px; border: 1.5px dashed var(--hair, rgba(255,255,255,0.16)); border-radius: 14px; }
.wg-spacer .sp-hint { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint, rgba(255,255,255,0.4)); pointer-events: none; }
.wg-spacer .sp-line { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(72%, 320px); height: 1px; background: var(--hair, rgba(255,255,255,0.16)); }
.wg-spacer.has-divider.is-edit .sp-hint { background: var(--page-bg, transparent); padding: 0 10px; position: relative; z-index: 1; }

/* ---- BUTTONS (multiple links) ---- */
.wg-buttons { gap: 10px; justify-content: center; }
.wg-btnstack { display: flex; flex-direction: column; gap: 9px; }
.wg-btn { display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; padding: 14px 16px; border-radius: var(--btn-radius, calc(var(--radius) * 0.55 + 6px)); background: var(--btn-bg, #fff); color: var(--btn-text, #111); font-family: var(--btn-font, var(--lb-font, var(--font))); font-weight: var(--btn-weight, 650); font-size: calc(15px * var(--btn-size, 1)); transition: transform .15s, filter .15s; }
.wg-btn:hover { transform: translateY(-1px); filter: brightness(.96); }
.wg-btn-ic { display: grid; }
.wg-btn-ic svg { width: 18px; height: 18px; }

/* ---- INSTAGRAM (profile) ---- */
.wg-instagram { gap: 8px; text-decoration: none; }
.ig-avatar { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; background-size: cover; background-position: center; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ig-avatar.grad { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.ig-avatar.grad svg { width: 28px; height: 28px; }
.wg-instagram.sz-s { align-items: center; text-align: center; gap: 10px; justify-content: center; }
.wg-instagram.sz-s .ig-avatar { width: 72px; height: 72px; }
.wg-instagram.sz-s .ig-avatar.grad svg { width: 36px; height: 36px; }
.ig-top, .ig-head { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.ig-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wg-instagram .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); font-size: 16px; color: var(--lb-color, var(--ink)); }
.wg-instagram .lk-label.big { font-size: clamp(18px, 2.6vw, 22px); }
.wg-instagram .lk-desc { font-family: var(--ds-font, var(--font)); font-size: 13.5px; color: var(--ds-color, var(--ink-dim)); }
.wg-instagram.sz-l { gap: 12px; }
.ig-feed { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.ig-cell { aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; min-height: 56px; }
.ig-follow { align-self: flex-start; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF) !important; color: #fff !important; }

/* ---- ICONS ---- */
.wg-icons { justify-content: center; }
.wg-iconrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wg-ico { width: 46px; height: 46px; border-radius: calc(var(--radius) * 0.4 + 4px); display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 1px solid var(--card-border); color: var(--icon-color, var(--ink)); transition: transform .15s; }
.wg-ico:hover { transform: translateY(-2px); }
.wg-ico svg { width: 22px; height: 22px; }
/* buttons everywhere: keep their icon small (was rendering giant) */
.btn-cta svg, .wm-body .btn-cta svg { width: 19px; height: 19px; flex: 0 0 auto; }
/* base CTA button — wears the preset's button tokens (incl. pill radius) everywhere */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border: 0; cursor: pointer; text-decoration: none; background: var(--btn-bg, #fff); color: var(--btn-text, #111); border-radius: var(--btn-radius, calc(var(--radius) * 0.55 + 6px)); font-family: var(--btn-font, var(--lb-font, var(--font))); font-weight: var(--btn-weight, 650); font-size: calc(15px * var(--btn-size, 1)); transition: filter .15s, transform .15s; }
.btn-cta:hover { filter: brightness(1.05); }
.btn-cta svg { color: var(--btn-text, #111); }

/* + expand affordance — TOP-right, like nxtwk */
/* + expand: derives from the card's own ink, so it auto-matches every card style
   (glass, solid, coloured multi…) with no separate setting. */
.w-expand { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); backdrop-filter: blur(10px); opacity: .9; transition: opacity .15s, transform .15s; z-index: 3; }
.w-expand:hover { opacity: 1; transform: scale(1.08); }
.w-expand svg { width: 17px; height: 17px; }
body.is-owner .w-expand { display: none; } /* hide while editing (tools take the corner); shows in preview/public */
body.is-owner.preview .w-expand { display: grid; }

/* ===================== expand modal — centered, max 1240, themed glass (nxtwk morph) ===================== */
.wm-scrim { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(14px, 3vw, 40px); background: rgba(4,4,8,0.42); opacity: 0; transition: opacity .26s ease; }
.wm-scrim.on { display: flex; opacity: 1; }
.wm-card { display: block; position: relative; width: min(1240px, 100%); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: clamp(22px, 3vw, 34px); color: var(--ink); padding: clamp(26px, 4vw, 52px); }
/* the morph: source card (name set inline in JS, old state) and modal share a
   name so the browser tweens card → modal. */
.wm-card { view-transition-name: wmorph; }
::view-transition-group(wmorph) { animation-duration: .42s; animation-timing-function: cubic-bezier(.32,.72,0,1); }
::view-transition-old(wmorph), ::view-transition-new(wmorph) { border-radius: clamp(22px, 3vw, 34px); overflow: clip; height: 100%; }
/* siblings recede while a card is expanded */
body.wm-open #grid .w { transition: opacity .3s ease, transform .3s ease; }
body.wm-open #grid .w.wm-source { opacity: 0; }
/* the modal mirrors a big glass card so it reads as part of the theme */
/* fallback glass — only when the modal has no specific fill (otherwise the fill rules above win) */
[data-base="dark"] .wm-card:not([data-fill]) { background: rgba(18,18,24,0.5); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.22), inset 0 -1px 0 0 rgba(0,0,0,0.25), 0 50px 100px -30px rgba(0,0,0,0.7); backdrop-filter: blur(44px) saturate(160%); -webkit-backdrop-filter: blur(44px) saturate(160%); }
[data-base="light"] .wm-card:not([data-fill]) { background: rgba(252,250,247,0.72); border: 1px solid rgba(0,0,0,0.08); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.6), 0 50px 100px -30px rgba(0,0,0,0.3); backdrop-filter: blur(44px) saturate(150%); -webkit-backdrop-filter: blur(44px) saturate(150%); }
.wm-body { max-width: 1040px; margin: 0 auto; }
/* text-led modals read better narrow; media-led ones use the full width */
.wg-contact .wm-body, .wg-whatsapp .wm-body, .wg-form .wm-body, .wg-hours .wm-body, .wg-instagram .wm-body { max-width: 680px; }
.wm-x { position: absolute; top: clamp(16px,2vw,24px); right: clamp(16px,2vw,24px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border); background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.wm-x:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.wm-x svg { width: 17px; height: 17px; }
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.wx-head h2 { margin: 0; font-family: var(--h1-font, var(--font)); font-weight: var(--h1-weight, 700); font-style: var(--h1-style, normal); font-size: clamp(28px, 5vw, 44px); color: var(--ink); letter-spacing: -0.02em; }
/* hours week */
.wx-week { display: flex; flex-direction: column; }
.wk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--hair); }
.wk-row:last-child { border-bottom: 0; }
.wk-row.today { color: var(--accent); }
.wk-day { display: flex; align-items: baseline; gap: 8px; font-family: var(--lb-font, var(--font)); }
.wk-day b { font-weight: 650; }
.wk-date { font-size: 12px; color: var(--ink-faint); }
.wk-row.today .wk-date { color: var(--accent); }
.wk-time { font-family: var(--ds-font, var(--font)); color: var(--ink-dim); }
.wk-row.today .wk-time { color: var(--accent); font-weight: 650; }
/* image / gallery expanded */
.wx-image { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background-size: cover; background-position: center; }
.wx-cap { margin-top: 12px; color: var(--ink-dim); font-size: 14px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wx-cell { aspect-ratio: 1; border-radius: 14px; background-size: cover; background-position: center; }
/* whatsapp / form expanded */
.wx-form { display: flex; flex-direction: column; gap: 14px; }
/* whatsapp modal — chat composer */
/* whatsapp modal — a real chat window: header + bubble + chips at top, composer pinned bottom */
.wg-whatsapp .wm-body { height: 100%; display: flex; flex-direction: column; }
.wa-modal { display: flex; flex-direction: column; gap: 18px; flex: 1 1 auto; min-height: 0; }
.wa-mhead { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.wa-mstream { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.wa-composer { flex: 0 0 auto; }
.wa-mstream .wa-bubble { font-size: 16px; padding: 13px 17px; }
/* quick replies wear the preset's BUTTON style (sized as chips) */
.wa-qr { padding: 9px 16px; font-size: 14px; min-width: 0; }
.wa-composer { display: flex; align-items: stretch; gap: 10px; margin-top: 6px; }
.wa-input2 { flex: 1; min-width: 0; height: 54px; border-radius: min(var(--input-radius, 14px), 27px); background: var(--input-bg, color-mix(in srgb, var(--ink) 6%, transparent)); border: 1px solid var(--input-bd, var(--card-border)); color: var(--input-ink, var(--ink)); padding: 0 18px; font: inherit; font-size: 16px; outline: none; }
.wa-input2::placeholder { color: color-mix(in srgb, var(--input-ink, var(--ink)) 50%, transparent); }
/* focus colour follows the input's own Colour setting (not the accent) */
.wa-input2:focus, .wg-input:focus { border-color: var(--input-color, var(--ink)); }
/* generic themeable input class (for the preview + future fields) */
.wg-input { background: var(--input-bg); border: 1px solid var(--input-bd); border-radius: min(var(--input-radius, 14px), 27px); color: var(--input-ink); }
.wa-send2 { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 22px; }
.wa-send2 svg { width: 20px; height: 20px; }
/* whatsapp settings: quick-reply rows (subtle remove, tidy spacing) */
.wa-presets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.wa-prow { display: flex; align-items: center; gap: 8px; }
.wa-prow .input { flex: 1; }
.wa-prow .wa-px { width: 38px; height: 46px; flex: 0 0 auto; border: 0; background: transparent; color: rgba(255,255,255,0.4); display: grid; place-items: center; border-radius: 9px; cursor: pointer; transition: background .12s, color .12s; }
.wa-prow .wa-px:hover { background: rgba(255,255,255,0.08); color: #fff; }
.wa-prow .wa-px svg { width: 16px; height: 16px; }
.ff { display: flex; flex-direction: column; gap: 7px; }
.ff > span { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.wx-form .input, .wa-compose .input { background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--card-border); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; }
/* map expanded */
.wx-mapart { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.wx-mapart .map-art-wrap { width: 100%; height: 100%; border-radius: 16px; }
.wx-mapart .map-pin { width: 30px; }
.wx-addr { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); margin-bottom: 12px; }
.wx-addr-ic { color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.wx-addr-ic svg { width: 20px; height: 20px; }
.wx-addr-tx { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.4; }
.wx-copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; background: var(--btn-bg, #fff); color: var(--btn-text, #111); border: 0; border-radius: 9px; padding: 8px 12px; font-family: var(--font); font-weight: 650; font-size: 13px; cursor: pointer; }
.wx-copy svg { width: 15px; height: 15px; color: var(--btn-text, #111); }
.wx-copy:hover { filter: brightness(1.05); }
/* instagram expanded */
.ig-profile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ig-avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.ig-avatar svg { width: 36px; height: 36px; }
.ig-profile h2 { margin: 0; }
.ig-name { color: var(--ink-dim); }
.ig-bio { margin: 0; color: var(--ink-dim); font-size: 14px; max-width: 36ch; }
.wm-body .btn-cta { align-self: center; margin-top: 4px; }

/* widget content editor extras */
.gal-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.gal-it { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; }
.gal-x, .ff-row .gal-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.gal-x svg { width: 12px; height: 12px; }
.gal-add { aspect-ratio: 1; border: 1px dashed rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); border-radius: 10px; color: rgba(255,255,255,0.6); cursor: pointer; display: grid; place-items: center; }
.ff-row, .ic-row { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; position: relative; }
.ff-row .input, .ic-row .input { flex: 1; min-width: 0; }
.ff-row .th-seg { flex: 0 0 auto; }
.ff-row .gal-x, .ic-row .gal-x { position: static; flex: 0 0 auto; background: rgba(255,255,255,0.1); }
.ic-sel { flex: 0 0 110px; }

/* ------------------------- editor chrome ------------------------- */
.w { position: relative; }
.w-tools { display: none; }
body.is-owner .w-tools {
  display: flex; gap: 6px; position: absolute; top: 10px; right: 10px; z-index: 5;
}
body.is-owner .w[data-i] { cursor: grab; user-select: none; -webkit-user-select: none; }
body.is-owner .w[data-i] a, body.is-owner .w[data-i] img { -webkit-user-drag: none; user-select: none; }
body.is-dragging .w[data-i] { cursor: grabbing; }
body.preview .w[data-i] { cursor: default; user-select: auto; }
.w.dragging .card { opacity: .28; outline: 2px dashed var(--accent); outline-offset: -2px; }
.w-ghost { border-radius: var(--radius); transform: scale(1.03); opacity: .96; box-shadow: 0 34px 70px -22px rgba(0,0,0,0.78); }
.w-ghost .w-tools { display: none; }
/* ── per-block device visibility ── public site hides; editor keeps it (dimmed + badge) */
/* public site AND Preview mode hide the block (grid reflows); the editor keeps it (dimmed + badge) */
/* simulated device preview (owner picks Mobile/Tablet — shrinks the canvas, not the viewport)
   → class-based and authoritative so the right blocks hide regardless of real screen width */
body.preview.dev-mobile .w.hide-mobile { display: none !important; }
body.preview.dev-tablet .w.hide-tablet { display: none !important; }
/* real viewport — the public site, and preview with no device simulation (desktop / actual phone) */
@media (max-width: 600px) { body:not(.is-owner) .w.hide-mobile, body.preview:not(.dev-mobile):not(.dev-tablet) .w.hide-mobile { display: none !important; } }
@media (min-width: 601px) and (max-width: 1024px) { body:not(.is-owner) .w.hide-tablet, body.preview:not(.dev-mobile):not(.dev-tablet) .w.hide-tablet { display: none !important; } }
@media (min-width: 1025px) { body:not(.is-owner) .w.hide-desktop, body.preview:not(.dev-mobile):not(.dev-tablet) .w.hide-desktop { display: none !important; } }
body.is-owner:not(.preview) .w.hide-mobile .card, body.is-owner:not(.preview) .w.hide-tablet .card, body.is-owner:not(.preview) .w.hide-desktop .card { opacity: .5; }
.w-hidebadge { position: absolute; left: 10px; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.62); color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 5px 11px 5px 9px; font-size: 11.5px; font-weight: 650; backdrop-filter: blur(8px); text-transform: capitalize; }
.w-hidebadge svg { width: 14px; height: 14px; }
body.preview .w-hidebadge { display: none; }
/* visibility tab toggles */
.dev-toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dev-tog { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: #161617; color: rgba(255,255,255,0.55); cursor: pointer; font: inherit; position: relative; transition: border-color .12s, color .12s; }
.dev-tog .dev-ic svg { width: 26px; height: 26px; }
.dev-tog .dev-l { font-size: 13px; font-weight: 650; }
.dev-tog:hover { border-color: rgba(255,255,255,0.3); }
.dev-tog.on { color: #fff; border-color: #fff; }
.dev-ck { position: absolute; top: 7px; right: 7px; color: var(--qck); }
.dev-ck svg { width: 15px; height: 15px; }
body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.w-btn {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5); color: #fff; backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.w-btn:hover { background: rgba(0,0,0,0.72); }
.w-btn svg { width: 16px; height: 16px; }
.w-btn:disabled { opacity: .35; pointer-events: none; }
/* desktop: drag to reorder, so hide the up/down arrows; keep the height control */
.w-move { display: none; }
/* mobile: drag is unreliable + there's only one height → show up/down, hide height */
@media (max-width: 700px) {
  body.is-owner .w-move { display: grid; }
  body.is-owner .w-height { display: none; }
}

/* owner toolbar — centered pill in edit mode; collapses to a corner "Edit"
   button in preview mode (animated). */
.ed-bar {
  display: none; position: fixed; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 60; gap: 0; padding: 8px; border-radius: 999px; align-items: center;
  background: rgba(0,0,0,0.72); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(16px);
  font-family: var(--qck-font);            /* always QCK style, never the site theme */
  transition: transform .55s cubic-bezier(.32,.72,0,1);
}
body.is-owner .ed-bar { display: flex; }
.ed-bar button {
  border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: #fff; background: transparent; padding: 10px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.ed-bar button:hover { background: rgba(255,255,255,0.12); }
.ed-bar button.primary { background: #fff; color: #111; }
.ed-bar svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ed-bar .sep { width: 1px; background: rgba(255,255,255,0.18); margin: 6px 2px; }
.ed-bar .ed-history { display: inline-flex; align-items: center; gap: 2px; }
.ed-bar .ed-ico { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; color: rgba(255,255,255,0.7); }
.ed-bar .ed-ico:disabled { color: rgba(255,255,255,0.22); cursor: default; background: transparent; }
.ed-bar .ed-ico svg { width: 18px; height: 18px; }
/* collapsible group (Add / Settings / separator) — margin gives the spacing so a
   collapsed group leaves NO phantom gap before the Edit button. */
.ed-bar .ed-collapse {
  display: inline-flex; align-items: center; gap: 8px; overflow: hidden;
  max-width: 520px; opacity: 1; margin-right: 8px;
  transition: max-width .55s cubic-bezier(.32,.72,0,1), opacity .3s ease, margin .55s;
}
/* device-preview group (desktop only) — reverse-collapses IN during preview */
.ed-bar .ed-devices {
  display: inline-flex; align-items: center; gap: 2px; overflow: hidden;
  max-width: 0; opacity: 0; margin-right: 0;
  transition: max-width .55s cubic-bezier(.32,.72,0,1), opacity .3s ease .15s, margin .55s;
}
.ed-dev { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: rgba(255,255,255,0.55); cursor: pointer; padding: 0; line-height: 0; flex: 0 0 38px; }
.ed-dev:hover { background: rgba(255,255,255,0.10); color: #fff; }
.ed-dev.on { background: rgba(255,255,255,0.16); color: #fff; }
.ed-dev svg { width: 19px; height: 19px; display: block; }
/* preview mode: slide pill to bottom-right, collapse Add/Settings out, devices in */
body.preview .ed-bar { transform: translateX(calc(50vw - 18px - 100%)); }
body.preview .ed-bar .ed-collapse { max-width: 0; opacity: 0; gap: 0; margin-right: 0; }
body.preview .ed-bar .ed-devices { max-width: 140px; opacity: 1; margin-right: 8px; }
@media (max-width: 760px) { .ed-bar .ed-devices { display: none; } } /* mobile: just Edit */
/* hide per-widget editor chrome smoothly in preview */
.w-tools { transition: opacity .3s ease; }
body.preview .w-tools { opacity: 0; pointer-events: none; }
body.preview .w { cursor: default; }

/* save pill */
.save-pill {
  position: fixed; right: 16px; bottom: 78px; z-index: 130; /* above the settings modal scrim */
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.16);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.save-pill.show { opacity: 1; transform: translateY(0); }

/* ------------------------- modal / sheet ------------------------- */
/* QCK builder chrome: black surfaces, warm top-glow, vivid orange (--qck). */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,4,6,0.6); backdrop-filter: blur(12px);
  display: grid; place-items: end center; padding: 0;
  font-family: var(--qck-font);            /* QCK style, never the site theme */
  animation: scrimIn .2s ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto;
  color: #fff; font-family: var(--qck-font);
  background: radial-gradient(95% 55% at 50% -8%, rgba(251,90,45,0.13), transparent 60%), #0b0b0c;
  border-radius: 26px 26px 0 0; border: 1px solid rgba(255,255,255,0.09);
  padding: 24px clamp(18px, 4vw, 28px) calc(24px + env(safe-area-inset-bottom));
  animation: sheetIn .28s cubic-bezier(.32,.72,0,1);
}
@media (min-width: 640px) {
  .scrim { place-items: center; padding: 24px; }
  .sheet { border-radius: 26px; }
}
@keyframes sheetIn { from { transform: translateY(22px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.sheet h2 { margin: 2px 0 4px; font-size: 23px; letter-spacing: -0.02em; }
.sheet .sub { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0 0 18px; }

/* big inputs */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 7px; }
.field > label .req { color: #f0563c; }
/* contact settings: compact list of fields + per-field edit bottom-sheet */
.ic-trigger { width: 66px; height: 66px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; }
.ic-trigger:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.32); }
.ic-trigger svg { width: 26px; height: 26px; }
.cf-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; }
.cf-row { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 14px; background: #141415; border: 1px solid rgba(255,255,255,0.08); }
.cf-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; }
.cf-icon svg { width: 20px; height: 20px; }
.cf-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cf-name { font-size: 15px; font-weight: 700; color: #fff; }
.cf-val { font-size: 12.5px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-val.empty { color: rgba(255,255,255,0.3); font-style: italic; }
.cf-acts { display: flex; gap: 5px; flex: 0 0 auto; }
.cf-mv, .cf-gear { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .12s; }
.cf-mv:hover:not(:disabled), .cf-gear:hover { background: rgba(255,255,255,0.12); }
.cf-mv:disabled { opacity: 0.28; cursor: default; }
.cf-mv svg, .cf-gear svg { width: 16px; height: 16px; }
.cf-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 12px; background: transparent; color: rgba(255,255,255,0.55); cursor: pointer; transition: border-color .12s, color .12s; }
.cf-add:hover { border-color: rgba(255,255,255,0.38); color: rgba(255,255,255,0.85); }
.cf-add svg { width: 16px; height: 16px; }
.cf-add span { font-size: 14px; font-weight: 600; }
.cf-icon-static { display: grid; place-items: center; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.cf-icon-static svg { width: 20px; height: 20px; }
/* field-modal: required toggle + choice options editor */
.fm-reqrow { margin: 14px 0 4px; }
.fm-opts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.fm-orow { display: flex; align-items: center; gap: 8px; }
.fm-oinp { flex: 1; min-width: 0; }
.fm-ox { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); display: grid; place-items: center; cursor: pointer; }
.fm-ox:hover { background: rgba(255,255,255,0.12); }
.fm-ox svg { width: 15px; height: 15px; }
.fm-oadd { margin-top: 2px; }
/* field edit bottom-sheet */
.fm-scrim { position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center; background: rgba(4,4,8,0.55); }
.fm-card { width: 100%; max-width: 540px; max-height: 94vh; display: flex; flex-direction: column; background: #161617; border: 1px solid rgba(255,255,255,0.1); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 12px 20px 20px; }
.fm-grab { width: 38px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.22); margin: 0 auto 8px; flex: 0 0 auto; }
.fm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex: 0 0 auto; }
.fm-head h3 { margin: 0; font-size: 23px; font-weight: 800; color: #fff; }
.fm-x { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fm-x:hover { background: rgba(255,255,255,0.14); }
.fm-x svg { width: 17px; height: 17px; }
.fm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.fm-lbl { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); margin: 16px 0 8px; }
.fm-card .input { height: 56px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.fm-typewrap { position: relative; }
.fm-typesel { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 14px; height: 60px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #fff; cursor: pointer; }
.fm-typesel:focus-visible { outline: 2px solid #3b82f6; }
.fm-type-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, #f0563c 18%, transparent); color: #f0563c; }
.fm-type-ic svg { width: 20px; height: 20px; }
.fm-type-n { flex: 1; text-align: left; font-size: 17px; font-weight: 700; }
.fm-type-ch { flex: 0 0 auto; color: rgba(255,255,255,0.4); display: grid; }
.fm-type-ch svg { width: 18px; height: 18px; }
.fm-typemenu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; background: #1d1d1f; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; box-shadow: 0 20px 44px -16px rgba(0,0,0,0.75); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.fm-typemenu[hidden] { display: none; }
.fm-type { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border-radius: 11px; border: 0; background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; font-size: 14.5px; font-weight: 700; }
.fm-type:hover { background: rgba(255,255,255,0.09); }
.fm-type.on { box-shadow: inset 0 0 0 1.5px #3b82f6; }
.fm-type svg { width: 18px; height: 18px; color: #f0563c; flex: 0 0 auto; }
.fm-phone { display: grid; grid-template-columns: 124px 1fr; gap: 10px; }
.fm-cc { padding: 0 10px; }
.fm-searchwrap { position: relative; }
.fm-searchwrap > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: rgba(255,255,255,0.4); pointer-events: none; }
.fm-search { padding-left: 44px !important; }
.fm-spin { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.16); border-top-color: #f0563c; border-radius: 50%; animation: fm-spin .7s linear infinite; display: none; }
.fm-searchwrap.busy .fm-spin { display: block; }
@keyframes fm-spin { to { transform: translateY(-50%) rotate(360deg); } }
.fm-results { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fm-result { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 11px 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; }
.fm-result:hover { background: rgba(255,255,255,0.08); }
.fm-result-ic, .fm-addr-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, #f0563c 18%, transparent); color: #f0563c; }
.fm-result-ic svg, .fm-addr-ic svg { width: 19px; height: 19px; }
.fm-result-tx, .fm-addr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fm-result-n, .fm-addr-n { font-size: 15px; font-weight: 700; }
.fm-result-a, .fm-addr-a { font-size: 13px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-addr { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 14px; border: 1px solid color-mix(in srgb, #f0563c 45%, transparent); background: color-mix(in srgb, #f0563c 7%, transparent); }
.fm-addr-ok { flex: 0 0 auto; color: #f0563c; }
.fm-addr-ok svg { width: 20px; height: 20px; }
.fm-change { display: block; width: 100%; text-align: center; margin-top: 12px; padding: 0; background: transparent; border: 0; color: #f0563c; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fm-foot { display: flex; gap: 12px; margin-top: 18px; flex: 0 0 auto; }
.fm-foot .btn { height: 56px; font-size: 16px; font-weight: 700; }
.fm-del { flex: 0 0 auto; min-width: 124px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fm-del svg { width: 18px; height: 18px; }
.fm-done { flex: 1; }
/* date+time picker trigger + calendar */
.dp-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.dp-trigger svg { width: 19px; height: 19px; color: rgba(255,255,255,0.45); flex: 0 0 auto; }
.dp-trigger.empty span { color: rgba(255,255,255,0.4); }
.dp-card { max-width: 420px; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.dp-title { font-size: 16px; font-weight: 700; color: #fff; }
.dp-prev, .dp-next { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #fff; display: grid; place-items: center; cursor: pointer; }
.dp-prev:hover, .dp-next:hover { background: rgba(255,255,255,0.1); }
.dp-prev svg, .dp-next svg { width: 18px; height: 18px; }
.dp-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.dp-wd span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 4px 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.dp-cell.empty { visibility: hidden; }
.dp-cell:not(.empty):hover { background: rgba(255,255,255,0.09); }
.dp-cell.on { background: #f0563c; color: #fff; }
.dp-time { display: flex; align-items: center; gap: 8px; }
.dp-time .input { width: auto; flex: 1; height: 52px; text-align: center; font-size: 18px; font-weight: 700; }
.dp-colon { font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.4); }
/* wide variant (link widget): icon + label */
.ic-trigger-wide { width: 100%; height: 56px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 18px; }
.ic-trigger-wide svg { width: 24px; height: 24px; color: var(--accent, #f0563c); flex: 0 0 auto; }
.ic-trigger-wide span { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); }
/* place-search suggestions */
.place-sug { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; background: #1b1b1d; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7); padding: 4px; }
.place-opt { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.place-opt:hover { background: rgba(255,255,255,0.08); }
.place-n { font-size: 13.5px; font-weight: 600; }
.place-a { font-size: 12px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* scrollable icon picker (Heroicons) */
.ipick-scrim { position: fixed; inset: 0; z-index: 240; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,4,8,0.5); }
.ipick-card { width: min(560px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: #161617; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 16px; }
.ipick-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ipick-var { flex: 0 0 auto; }
.ipick-search { flex: 1; }
.ipick-x { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ipick-x:hover { background: rgba(255,255,255,0.12); }
.ipick-x svg { width: 16px; height: 16px; }
.ipick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; overflow-y: auto; padding: 2px; }
.ipick-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; transition: background .1s, border-color .1s; }
.ipick-cell:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.ipick-cell.on { border-color: #f0563c; color: #f0563c; }
.ipick-cell svg { width: 24px; height: 24px; }
.input, .textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
  padding: 15px 16px; outline: none; transition: border-color .15s, background .15s;
  color-scheme: dark; /* native date/time picker renders dark, on-theme */
}
.input[type="datetime-local"], .input[type="date"], .input[type="time"] { color-scheme: dark; }
.input::-webkit-calendar-picker-indicator { filter: invert(0.85); opacity: .7; cursor: pointer; }
/* selects: strip the native control + add a consistent chevron (Safari was ugly) */
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; }
select.input::-ms-expand { display: none; }
.dp-time select.input { padding-right: 32px; background-position: right 9px center; }
.input:focus, .textarea:focus { border-color: rgba(255,255,255,0.34); background: #1c1c1e; }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.28); }
.hint { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 6px; }
.hint.err { color: #ff8a8a; }
.hint.ok { color: #5fd08a; font-weight: 600; }

/* upload field (logo / favicon / meta image) */
.upl { display: flex; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; background: #161617; cursor: pointer; transition: border-color .15s, background .15s; }
.upl:hover { border-color: rgba(255,255,255,0.28); background: #1c1c1e; }
.upl-prev { width: 48px; height: 48px; border-radius: 11px; background: rgba(255,255,255,0.05); display: grid; place-items: center; overflow: hidden; flex: 0 0 48px; color: rgba(255,255,255,0.4); }
.upl-prev img { width: 100%; height: 100%; object-fit: cover; }
.upl-prev svg { width: 22px; height: 22px; }
.upl-main { flex: 1; min-width: 0; }
.upl-t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.upl-t svg { width: 15px; height: 15px; color: rgba(255,255,255,0.6); }
.upl-h { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 2px; }
.upl-x { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.6); cursor: pointer; display: grid; place-items: center; }
.upl-x:hover { background: rgba(255,138,138,0.14); color: #ff8a8a; border-color: #4a2a2a; }
.upl-x svg { width: 15px; height: 15px; }

/* 2-col field grid (mobile collapses) */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fgrid .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

.btn {
  border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 650;
  padding: 14px 22px; border-radius: 14px; background: #1c1c1e; color: #fff;
}
.btn:hover { background: #262628; }
.btn.primary { background: #fff; color: #111; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: transparent; color: #ff8a8a; border: 1px solid #4a2a2a; }
.btn.ghost { background: transparent; color: rgba(255,255,255,0.6); }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }

/* tabbed settings modal */
.sheet.modal { padding: 0; display: flex; flex-direction: column; max-width: 720px; }
.m-head { position: relative; padding: 24px clamp(20px, 3vw, 28px) 0; }
.m-head h2 { margin: 0 0 4px; font-size: 26px; }
.m-head .sub { margin: 0; }
.m-close {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.m-close:hover { background: rgba(255,255,255,0.12); }
.m-close svg { width: 18px; height: 18px; }
.m-tabs { display: flex; gap: 22px; padding: 16px clamp(20px, 3vw, 28px) 0; border-bottom: 1px solid rgba(255,255,255,0.07); overflow-x: auto; }
.m-tab { background: none; border: 0; color: rgba(255,255,255,0.5); font: inherit; font-size: 15px; font-weight: 650; padding: 2px 0 14px; cursor: pointer; position: relative; white-space: nowrap; }
.m-tab.on { color: #fff; }
.m-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--qck); border-radius: 2px; }
.m-body { padding: 22px clamp(20px, 3vw, 28px); overflow-y: auto; flex: 1; min-height: 170px; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px clamp(20px, 3vw, 28px) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.07); }
.m-foot .btn { min-width: 120px; }

/* theme tab — vibes + make-it-yours */
.th-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 12px; }
.vibe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .vibe-grid { grid-template-columns: repeat(2, 1fr); } }
.vibe { text-align: left; cursor: pointer; border: 2px solid rgba(255,255,255,0.10); border-radius: 18px; background: #161617; padding: 12px; transition: border-color .12s ease; }
.vibe:hover { border-color: rgba(255,255,255,0.3); }
.vibe.on { border-color: var(--qck); }
.vibe-prev { height: 92px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9px; gap: 6px; }
.vibe-prev.grid { padding: 0; }
.vibe-card { padding: 10px 11px; display: flex; flex-direction: column; gap: 6px; }
/* preview top row: icon chip + title bar */
.vibe-top { display: flex; align-items: center; gap: 7px; }
.vibe-chip { width: 15px; height: 15px; border-radius: 5px; flex: 0 0 auto; display: block; }
.vibe-top .vibe-bar { flex: 0 0 auto; }
.vibe-card.big { padding: 12px 12px; gap: 6px; }
.vibe-card2 { padding-top: 8px; padding-bottom: 8px; }
/* mini bento preview (theme tiles) */
.tmini { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 9px; height: 100%; align-content: center; }
.tmini-card { padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-height: 20px; box-shadow: 0 4px 10px -7px rgba(0,0,0,0.5); }
.tmini-card.wide { grid-column: 1 / -1; min-height: 24px; }
.tmini-bar { height: 4px; border-radius: 2px; width: 72%; display: block; }
.tmini-bar.sm { width: 42%; }
/* richer one-per-row theme preview (matches signup step 2) */
.tmini.rich { gap: 8px; padding: 14px; }
.tmini.rich .tmini-card { padding: 9px 11px; gap: 5px; min-height: 30px; box-shadow: 0 6px 16px -9px rgba(0,0,0,0.55); }
.tmini.rich .tmini-card.wide { min-height: 42px; }
.tmini.rich .tmini-card.row { flex-direction: row; align-items: center; gap: 9px; }
.tmini.rich .tmini-bar { height: 5px; border-radius: 99px; }
.tmini.rich .tmini-bar.lg { height: 7px; }
.tmini-chip { width: 16px; height: 16px; border-radius: 5px; flex: none; display: block; }
.tmini.rich .is-squircle .tmini-chip, .tmini.rich.is-squircle { }
/* button chip in preset card preview */
.preset-btn { height: 9px; width: 34%; margin-top: 3px; display: block; }
.vibe-bar { height: 5px; border-radius: 3px; display: block; }
.vibe-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 11px 2px 1px; }
.vibe-name { font-size: 15px; font-weight: 700; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vibe-ck, .vibe-x { flex: 0 0 auto; }
.vibe-ck { width: 17px; height: 17px; color: var(--qck); flex: 0 0 auto; }
.vibe-x { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.vibe-x:hover { color: #fff; background: rgba(255,255,255,0.16); }
.vibe-x svg { width: 13px; height: 13px; }

.th-seg { display: flex; gap: 4px; background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 4px; }
.th-seg button { flex: 1; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); background: transparent; padding: 9px 6px; border-radius: 9px; white-space: nowrap; }
.th-seg button.on { background: #fff; color: #111; }
/* card-style picker has 6 options — let it wrap to 2 rows instead of overflowing */
#d-fill { flex-wrap: wrap; }
#d-fill button { flex: 1 1 28%; }
/* buttons-editor link rows — a card per link with a visual icon picker */
.btn-edit { margin-bottom: 12px; }
.link-edit { background: #161617; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-ico { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: #1f1f21; color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .12s, background .12s; }
.link-ico:hover { border-color: rgba(255,255,255,0.34); background: #262628; }
.link-ico svg { width: 21px; height: 21px; }
.link-row .input { flex: 1; min-width: 0; }
.link-del { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 9px; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); cursor: pointer; display: grid; place-items: center; padding: 0; }
.link-del:hover { background: rgba(255,138,138,0.16); color: #ff8a8a; }
.link-del svg { width: 15px; height: 15px; }
.link-url { margin-top: 8px; }
.link-icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.link-icons .ic-opt { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.link-icons .ic-opt:hover { border-color: rgba(255,255,255,0.4); }
.link-icons .ic-opt.on { background: #fff; color: #111; border-color: #fff; }
.link-icons .ic-opt svg { width: 18px; height: 18px; }

/* accent — swatches + hue slider (QCK style, no native picker) */
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset; cursor: pointer; padding: 0; }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.3) inset; }
.hue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(to right,#ff0000,#ff8000,#ffff00,#00ff00,#00ffff,#0080ff,#8000ff,#ff00ff,#ff0000); }
.hue::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,0.25); cursor: pointer; }
.hue::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,0.25); cursor: pointer; }

#d-bgbody { margin-top: 16px; }
.bg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 560px) { .bg-grid { grid-template-columns: repeat(5, 1fr); } }
.bg-sw { aspect-ratio: 1; border-radius: 11px; border: 2px solid rgba(255,255,255,0.12); cursor: pointer; padding: 0; position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.7); overflow: hidden; }
.bg-sw.on { border-color: var(--qck); }
.bg-up svg { width: 18px; height: 18px; }

/* ===================== slide-out on-page editor panel ===================== */
.ed-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); z-index: 80;
  background: #0c0c0d; border-left: 1px solid rgba(255,255,255,0.10);
  font-family: var(--qck-font); color: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .36s cubic-bezier(.32,.72,0,1);
  box-shadow: -30px 0 70px -30px rgba(0,0,0,0.7);
}
.ed-panel.open { transform: translateX(0); }
/* push the page out of the way so you SEE the change (desktop) */
@media (min-width: 700px) { body.panel-open { padding-right: calc(min(380px, 92vw) + var(--gutter)); } }
body.panel-open .ed-bar { transform: translateX(calc(-50% - min(190px, 46vw))); }

.ep-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.ep-tabs { flex: 0 0 auto; display: flex; gap: 16px; padding: 2px 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08); overflow-x: auto; scrollbar-width: none; }
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tabs button { background: none; border: 0; color: rgba(255,255,255,0.5); font: inherit; font-size: 14px; font-weight: 650; padding: 4px 0 12px; cursor: pointer; position: relative; flex: 0 0 auto; white-space: nowrap; }
.ep-tabs button.on { color: #fff; }
.ep-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--qck); border-radius: 2px; }
.ep-head h2 { margin: 0; font-size: 20px; flex: 1; letter-spacing: -0.01em; }
.ep-x, .ep-back { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.ep-x:hover, .ep-back:hover { background: rgba(255,255,255,0.12); }
.ep-x svg, .ep-back svg { width: 16px; height: 16px; }
.ep-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ep-ico { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,0.65); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ep-ico:hover:not(:disabled) { background: rgba(255,255,255,0.10); color: #fff; }
.ep-ico:disabled { color: rgba(255,255,255,0.2); cursor: default; }
.ep-ico svg { width: 18px; height: 18px; }
.ep-body { padding: 26px 18px calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; flex: 1; }
.ep-lbl { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin: 24px 0 11px; }
/* only the panel's very first label hugs the top — nested/conditional sub-blocks
   (e.g. "Card image", "Glow colour") keep their normal breathing room */
.ep-body > .ep-lbl:first-child { margin-top: 2px; }
.ep-mut { color: rgba(255,255,255,0.3); font-weight: 600; }
/* sub-tabs (e.g. Text → Title/Subtitle/Body) — same language as the top tabs */
.ep-subtabs { display: flex; gap: 18px; padding: 0 2px; border-bottom: 1px solid rgba(255,255,255,0.08); margin: 0 0 8px; }
.ep-subtabs + .ep-lbl { margin-top: 18px; }
/* font picker — each chip rendered in its own typeface */
.font-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 336px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
.font-grid::-webkit-scrollbar { width: 6px; }
.font-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 4px; }
.font-chip { background: #161617; border: 1px solid rgba(255,255,255,0.10); color: #fff; border-radius: 11px; padding: 13px 12px; font-size: 17px; cursor: pointer; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: border-color .12s; }
.font-chip:hover { border-color: rgba(255,255,255,0.3); }
.font-chip.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.ep-subtabs button { background: none; border: 0; color: rgba(255,255,255,0.45); font: inherit; font-size: 13px; font-weight: 650; padding: 2px 0 10px; cursor: pointer; position: relative; }
.ep-subtabs button.on { color: #fff; }
.ep-subtabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--qck); border-radius: 2px; }
.ep-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ep-row2 .ep-lbl { margin-top: 16px; }
.ep-hint { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 13px 14px; margin-top: 6px; }
.ep-hint b { color: rgba(255,255,255,0.8); font-weight: 650; }
.ep-note { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.62); background: rgba(251,90,45,0.10); border: 1px solid rgba(251,90,45,0.22); border-radius: 12px; padding: 11px 13px; margin: 12px 0 2px; }
.lay-info { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px; margin-top: 2px; }
.lay-info > svg { width: 20px; height: 20px; color: rgba(255,255,255,0.5); flex: 0 0 auto; margin-top: 1px; }
.lay-info > div { display: flex; flex-direction: column; gap: 4px; }
.lay-info b { font-size: 13.5px; font-weight: 650; color: #fff; }
.lay-info span { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.ed-panel .vibe-grid { grid-template-columns: 1fr; gap: 12px; }
.ed-panel .vibe-grid .vibe-prev { height: 96px; }
.ed-panel .vibe-grid.theme-list { grid-template-columns: 1fr; gap: 12px; }
/* match the Add-a-widget card chrome: solid card, inset preview, label row below */
.theme-list .vibe { background: #161617; border: 2px solid rgba(255,255,255,0.10); border-radius: 18px; padding: 12px; transition: border-color .12s ease; }
.theme-list .vibe:hover { border-color: rgba(255,255,255,0.30); }
.theme-list .vibe.on { border-color: var(--qck); }
.theme-list .vibe-prev { height: 150px; border-radius: 12px; overflow: hidden; }
.theme-list .vibe-meta { margin: 11px 2px 1px; }
.theme-list .vibe-name { font-size: 16px; font-weight: 700; flex: 0 1 auto; }
.vibe-tag { font-size: 13px; color: rgba(255,255,255,0.45); flex: 1; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-list .vibe.on .vibe-tag { margin-right: 6px; }
.theme-list .vibe-ck { width: 16px; height: 16px; }
.ed-panel .hue { margin-top: 4px; }
.ep-apply { width: 100%; margin-top: 18px; font-size: 14px; }
.ep-del { width: 100%; margin-top: 10px; }

/* multi-colour palette editor rows */
.pal-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pal-row .cf { flex: 1; min-width: 0; margin-top: 0; }
.pal-x { flex: 0 0 auto; background: rgba(255,255,255,0.1); }
.pal-tx { display: flex; gap: 2px; flex: 0 0 auto; background: #161617; border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; padding: 3px; }
.pal-tx button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer; padding: 0; }
.pal-tx button.on { background: #fff; color: #111; }

.saved-row { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-chip { display: inline-flex; align-items: center; gap: 6px; background: #18181a; border: 1px solid rgba(255,255,255,0.12); color: #fff; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.saved-chip:hover { border-color: rgba(255,255,255,0.3); }
.saved-x { display: grid; place-items: center; opacity: .5; }
.saved-x:hover { opacity: 1; }
.saved-x svg { width: 12px; height: 12px; }
.saved-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: transparent; border: 1px dashed rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); border-radius: 12px; padding: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .12s, color .12s; }
.saved-add:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.38); }
.saved-add svg { width: 16px; height: 16px; }
/* the preset-library "Add preset" gets breathing room */
#d-presetadd { margin-top: 12px; }

/* grid layout shuffler modal */
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.lay-opt { position: relative; display: flex; flex-direction: column; gap: 11px; background: #161617; border: 2px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 12px; cursor: pointer; color: #fff; transition: border-color .12s ease; }
.lay-opt:hover { border-color: rgba(255,255,255,0.3); }
.lay-opt.on { border-color: var(--qck); box-shadow: none; }
.lay-prev { display: flex; flex-direction: column; gap: 6px; height: 92px; padding: 12px; border-radius: 12px; background: #0e0e0f; }
.lay-row { display: flex; gap: 6px; flex: 1; min-height: 0; }
.lay-cell { flex: 1; border-radius: 6px; background: rgba(255,255,255,0.14); }
.lay-cell.acc { background: rgba(240,86,30,0.55); }
.lay-name { font-size: 16px; font-weight: 700; text-align: left; padding-left: 2px; }
.lay-ck { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 99px; background: var(--qck); display: none; place-items: center; color: #111; }
.lay-ck svg { width: 13px; height: 13px; }
.lay-opt.on .lay-ck { display: grid; }
.lay-shuffle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; }
.lay-shuffle svg { width: 18px; height: 18px; }

/* preset library tiles */
.preset-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.preset-prev { height: 96px; }
.preset-tile { border: 2px solid rgba(255,255,255,0.10); border-radius: 18px; background: #161617; padding: 12px; transition: border-color .12s ease; }
.preset-tile:hover { border-color: rgba(255,255,255,0.3); }
.preset-tile.on { border-color: var(--qck); }
.preset-prev { width: 100%; height: 86px; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: center; padding: 12px; gap: 6px; border-radius: 12px; overflow: hidden; }
.preset-prev .vibe-card { padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; }
.preset-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 11px 2px 1px; }
.preset-name { font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.preset-acts { display: flex; gap: 5px; flex: 0 0 auto; }
.preset-acts button { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .12s, color .12s; }
.preset-acts button:hover { background: rgba(255,255,255,0.14); color: #fff; }
.preset-acts button.on { background: var(--qck); border-color: var(--qck); color: #fff; }
.preset-acts svg { width: 14px; height: 14px; }
.ep-presetname { padding: 12px 18px 0; }
.ep-presetbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.ep-usedby { font-size: 12px; color: rgba(255,255,255,0.5); min-width: 0; }
.ep-applyall { font-size: 12.5px; padding: 9px 14px; border-radius: 10px; flex: 0 0 auto; }
.preset-star { color: var(--qck); font-size: 9px; vertical-align: middle; }
.ep-btnrow { display: flex; gap: 9px; margin-top: 16px; }
.ep-btnrow .btn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; padding: 13px 10px; }
.ep-btnrow .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ep-apply svg, .ep-edit2 svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* selected widget highlight while its panel is open */
.w.selected .card { outline: 2px solid var(--qck); outline-offset: 2px; }

/* compact colour field — swatch + hex, expands to the full picker on tap */
.cf { margin-top: 4px; }
.cf-head { display: flex; align-items: center; gap: 11px; width: 100%; background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 9px 12px; cursor: pointer; font: inherit; }
.cf-head:hover { border-color: rgba(255,255,255,0.2); }
.cf-sw { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.18); flex: 0 0 auto; }
.cf-hex { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.cf-caret { margin-left: auto; color: rgba(255,255,255,0.4); display: grid; transition: transform .2s; }
.cf-caret svg { width: 16px; height: 16px; }
.cf.open .cf-caret { transform: rotate(90deg); }
.cf-body { margin-top: 10px; }

/* range slider (opacity, angle) */
.ep-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.14); outline: none; margin: 2px 0 4px; }
.ep-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer; border: 2px solid #161617; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ep-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer; border: 2px solid #161617; }

/* clear "upload your own" button */
.up-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.22); color: #fff; border-radius: 12px; padding: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin: 0 0 6px; }
.up-btn:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.up-btn.uploading { opacity: .65; pointer-events: none; }
.up-btn svg { width: 18px; height: 18px; }
.up-btn.copybtn { background: #fff; color: #111; border: 0; }
.up-btn.copybtn:hover { background: #ececec; }

/* settings/domain inside the side panel: left-aligned, stacked actions that fit the narrow width */
.ep-body .dctr { text-align: left; }
.ep-body .dctr h2 { font-size: 19px; }
.ep-body .dctr .dbadge { margin-left: 0; }
.ep-body .sheet-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; margin-top: 18px; }
.ep-body .sheet-actions .btn { width: 100%; white-space: nowrap; }
.copy-row { display: flex; align-items: center; gap: 8px; background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 6px 6px 6px 13px; }
.copy-url { flex: 1; min-width: 0; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-copy { flex: 0 0 auto; background: #fff; color: #111; border: 0; border-radius: 9px; padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-copy:hover { background: #ececec; }
.dom-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 13px 15px; }
.dom-name { color: #fff; font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.dom-ok { display: inline-flex; align-items: center; gap: 5px; color: #75FB90; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.dom-ok svg { width: 15px; height: 15px; }
.dom-remove { margin-top: 12px; width: 100%; color: #ff8a8a; }

/* colour target toggle + colour picker */
.cp-target { flex-wrap: wrap; }
.cp-target button { flex: 1 1 22%; min-width: 68px; }
.cp-target-label { font-size: 13px; font-weight: 650; color: #fff; margin: 14px 0 10px; }
.cp-sub { margin-bottom: 6px; }
.cp-sub-lbl { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); margin: 12px 0 8px; }
.cp-sub-lbl:first-child { margin-top: 4px; }
.cp { margin-top: 4px; }
.cp-sv { position: relative; width: 100%; height: 140px; border-radius: 12px; cursor: crosshair; margin-bottom: 12px; touch-action: none; }
.cp-thumb { position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.45); transform: translate(-50%, -50%); pointer-events: none; }
.cp-hue { margin: 0 0 12px; }
.cp-foot { display: flex; align-items: center; gap: 10px; }
.cp-prev { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.18); flex: 0 0 auto; }
.cp-hex { flex: 1; background: #161617; border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; color: #fff; font: inherit; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; padding: 10px 12px; outline: none; }
.cp-hex:focus { border-color: rgba(255,255,255,0.34); }
.cp-or { font-size: 12px; color: rgba(255,255,255,0.4); margin: 16px 0 0; }
.ep-toggle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.ep-toggle .toggle .track { width: 46px; height: 28px; }

/* ---- mobile ---- */
@media (max-width: 700px) {
  .ed-panel { width: 100vw; max-height: 82dvh; top: auto; bottom: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); border-radius: 22px 22px 0 0; transform: translateY(102%); box-shadow: 0 -24px 60px -24px rgba(0,0,0,0.7); }
  .ed-panel.open { transform: translateY(0); }
  body.panel-open { padding-right: var(--gutter) !important; }
  body.panel-open .ed-bar { display: none; }
}
@media (max-width: 560px) {
  .ed-bar button span { display: none; }
  .ed-bar button { padding: 11px; }
  .ed-bar { gap: 2px; }
}
.bg-up svg { width: 18px; height: 18px; }

/* address tab columns */
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .addr-grid { grid-template-columns: 1fr; } }
.sub-field { display: flex; align-items: center; gap: 8px; }
.sub-field .input { text-align: right; font-weight: 600; }
.sub-field .suffix { color: rgba(255,255,255,0.5); white-space: nowrap; font-weight: 600; }

/* widget-type picker grid (add widget) */
.type-grid { display: grid; grid-template-columns: 1fr; gap: 12px; --pk: #f0561e; }
.type-card { text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,0.10); background: #161617; border-radius: 18px; padding: 12px; color: #fff; transition: border-color .12s ease, transform .12s ease; }
.type-card:hover { border-color: rgba(255,255,255,0.42); }
.type-card:active { transform: scale(0.985); }
.tc-label { font-weight: 700; font-size: 16px; margin-top: 11px; padding-left: 2px; }
/* preview panel */
.tc-prev { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; height: 96px; padding: 16px; border-radius: 12px; background: #0e0e0f; overflow: hidden; }
.pk-bar { display: block; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.16); }
.pk-bar.acc { background: var(--pk); }
.pk-bar.h8 { height: 8px; } .pk-bar.h9 { height: 9px; }
.pk-bar.w34 { width: 34%; } .pk-bar.w36 { width: 36%; } .pk-bar.w40 { width: 40%; }
.pk-bar.w45 { width: 45%; } .pk-bar.w50 { width: 50%; } .pk-bar.w55 { width: 55%; }
.pk-bar.w60 { width: 60%; } .pk-bar.w66 { width: 66%; } .pk-bar.w70 { width: 70%; }
.pk-row { display: flex; align-items: center; gap: 10px; }
.pk-col { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.pk-li { display: flex; align-items: center; gap: 9px; }
.pk-dot { width: 7px; height: 7px; border-radius: 99px; flex: none; background: rgba(255,255,255,0.3); }
.pk-dot.acc { background: var(--pk); } .pk-dot.green { background: #34c759; }
.pk-chip { width: 30px; height: 30px; border-radius: 9px; flex: none; background: rgba(255,255,255,0.2); }
.pk-chip.acc { background: var(--pk); }
.pk-arrow { width: 15px; height: 15px; color: rgba(255,255,255,0.45); margin-left: auto; flex: none; }
.pk-img { display: block; border-radius: 9px; background: #222 center/cover no-repeat; }
.pk-img.big { width: 100%; height: 64px; background-image: url('/bg/bg-mq07xtv7uws.jpg'); }
.pk-img.sq { width: 42px; height: 42px; flex: none; background-image: url('/bg/bg-mpzms547qrv.jpg'); }
.pk-row.g3 { gap: 8px; }
.pk-row.g3 .pk-img { flex: 1; height: 52px; }
.pk-app { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; margin: 0 auto; }
.pk-app svg { width: 28px; height: 28px; }
.pk-app.wa { background: #25d366; }
.pk-app.ig { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
.pk-row.cd { gap: 8px; justify-content: center; }
.pk-tile { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); color: #fff; font-weight: 800; font-size: 17px; }
.pk-tile.acc { background: var(--pk); }
.pk-map { display: block; width: 100%; height: 64px; border-radius: 9px; background: radial-gradient(120% 100% at 50% 0%, #1e2a1e, #14160f); display: flex; align-items: center; justify-content: center; }
.pk-pin { width: 26px; height: 26px; fill: var(--pk); }

/* icon picker (link widget) */
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-opt { width: 46px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 11px; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.ic-opt:hover { border-color: rgba(255,255,255,0.34); }
.ic-opt.on { background: #fff; color: #111; border-color: #fff; }
.ic-opt svg { width: 18px; height: 18px; }

/* hours editor rows */
.hours-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.hours-row .d { font-weight: 600; }
.hours-row .times { display: flex; gap: 8px; align-items: center; }
.hours-row .times .input { padding: 9px 10px; font-size: 14px; }
.hours-row.is-closed .times { opacity: .35; pointer-events: none; }
.toggle { display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { display: none; }
.toggle .track { width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,0.16); position: relative; transition: background .18s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s; }
.toggle input:checked + .track { background: var(--qck); }
.toggle input:checked + .track::after { transform: translateX(18px); }

/* custom-domain stepper */
.dstepper { display: flex; align-items: center; justify-content: center; margin: 4px 0 22px; }
.dnode { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 14px; font-weight: 600; }
.dnode .num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 13px; }
.dnode.on { color: #fff; } .dnode.on .num { background: #fff; color: #111; border-color: #fff; }
.dnode.done .num { background: var(--qck); color: var(--qck-ink); border-color: var(--qck); }
.dnode.done .num svg { width: 14px; height: 14px; }
.dline { width: 34px; height: 1px; background: rgba(255,255,255,0.14); margin: 0 8px; }
.dctr { text-align: center; }
.dctr h2 { text-align: center; }
.dctr .sub { text-align: center; }
.drec { background: #161617; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; margin: 16px 0; text-align: left; }
.drec .r { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.drec .r:last-child { border-bottom: 0; }
.drec .k { width: 56px; color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.drec .v { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }
.drec .cp { border: 1px solid rgba(255,255,255,0.14); background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.drec .cp:hover { background: rgba(255,255,255,0.1); }
.dbadge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.dbadge.ok { background: rgba(95,208,138,0.14); color: #5fd08a; }
.dbadge.err { background: rgba(255,138,138,0.14); color: #ff8a8a; }
.dbadge svg { width: 30px; height: 30px; display: block; }
