/* 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; }

* { 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); }

/* 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: 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))); }
.w[data-i][data-fill="image"] .card > * { position: relative; z-index: 1; }

/* 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-weight: 650; font-size: 15px;
  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); }
[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 { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; min-width: 0; }
.wg-head2:last-child { margin-bottom: 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 ---- */
.wg-link { text-decoration: none; gap: 12px; }
.wg-link.sz-s { align-items: flex-start; justify-content: space-between; }
.wg-link.sz-s .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); font-size: 16px; color: var(--lb-color, var(--ink)); letter-spacing: -0.01em; }
.wg-link.sz-m { flex-direction: row; align-items: center; gap: 14px; }
.wg-link.sz-m .lk-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wg-link.sz-m .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); font-size: 17px; color: var(--lb-color, var(--ink)); }
.wg-link.sz-m .lk-desc { font-family: var(--ds-font, var(--font)); font-size: 13.5px; color: var(--ds-color, var(--ink-dim)); }
.wg-link.sz-m .lk-arrow { color: var(--ink-faint); display: grid; flex: 0 0 auto; }
.wg-link.sz-m .lk-arrow svg { width: 18px; height: 18px; }
.wg-link.sz-l { gap: 14px; }
.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lk-host { font-family: var(--ds-font, var(--font)); font-size: 13px; color: var(--ink-faint); }
.wg-link.sz-l .lk-label.big { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 700); font-size: clamp(20px, 3vw, 28px); color: var(--lb-color, var(--ink)); letter-spacing: -0.02em; }
.wg-link.sz-l .lk-desc { font-family: var(--ds-font, var(--font)); font-size: 15px; color: var(--ds-color, var(--ink-dim)); }
.lk-go { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 14px; color: var(--accent); }
.lk-go svg { width: 16px; height: 16px; }

/* ---- 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-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.wg-strip::-webkit-scrollbar { display: none; }
.wg-shot { flex: 0 0 auto; width: 44%; aspect-ratio: 4/3; border-radius: 12px; background-size: cover; background-position: center; scroll-snap-align: start; }
.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; }
.hr-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hr-badge.open { background: rgba(80,210,120,0.18); color: #46c578; }
.hr-badge.shut { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-dim); }
.hr-s-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding-right: 34px; }
.hr-s-top .wg-h { margin: 0; }
.hr-s-time { font-family: var(--ds-font, var(--font)); font-size: 15px; color: var(--accent); font-weight: 650; }
.hr-today { display: flex; flex-direction: column; gap: 3px; }
.hr-day { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); color: var(--lb-color, var(--ink)); font-size: 17px; }
.hr-time { font-family: var(--ds-font, var(--font)); color: var(--accent); font-weight: 650; font-size: 15px; }
.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 ---- */
.wg-contact.sz-s { align-items: flex-start; justify-content: space-between; gap: 12px; text-decoration: none; }
.wg-contact.sz-s .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-rows { display: flex; flex-direction: column; gap: 2px; }
.wg-row { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .12s; }
.wg-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wg-rowt { font-family: var(--ds-font, var(--font)); font-size: 14.5px; color: var(--ink-dim); word-break: break-word; }

/* ---- WHATSAPP ---- */
.wg-whatsapp { gap: 12px; justify-content: center; }
.wg-whatsapp.sz-s { align-items: flex-start; justify-content: space-between; gap: 12px; border: 0; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.wa-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: calc(var(--radius) * 0.4 + 4px); background: #25D366; color: #07321a; display: grid; place-items: center; }
.wa-ic svg { width: 24px; height: 24px; }
.wg-whatsapp.sz-s .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-wa { align-self: flex-start; background: #25D366 !important; color: #07321a !important; }
.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 ---- */
.wg-form { justify-content: center; gap: 6px; }
.wg-form .btn-cta { align-self: flex-start; margin-top: 8px; }

/* ---- COUNTDOWN ---- */
.wg-countdown { align-items: center; text-align: center; justify-content: center; gap: 14px; }
.wg-countdown .wg-h { margin: 0; }
.cd-units { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cd-u { display: flex; flex-direction: column; align-items: center; }
.cd-n { font-family: var(--h1-font, var(--font)); font-weight: 800; font-size: clamp(26px, 4vw, 40px); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.wg-countdown.sz-s .cd-units { gap: 12px; }
.wg-countdown.sz-s .cd-n { font-size: clamp(22px, 7cqw, 30px); }
.cd-l { margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.cd-done { font-family: var(--h1-font, var(--font)); font-weight: 800; font-size: clamp(22px, 4vw, 32px); color: var(--accent); }
.cd-head { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cd-head .wg-ttl { text-align: center; }
.cd-desc { text-align: center; margin-top: 2px; max-width: 34ch; }

/* ---- MAP ---- */
.wg-map { gap: 12px; justify-content: center; }
.wg-map.sz-s { align-items: flex-start; justify-content: space-between; gap: 12px; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.wg-map.sz-s .lk-label { font-family: var(--lb-font, var(--font)); font-weight: var(--lb-weight, 650); font-size: 16px; }
.wg-map .btn-cta { align-self: flex-start; }
.wg-mapmini { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/8; margin-top: 4px; }
.wg-mapmini iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9); }
.map-tap { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }

/* ---- 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(--lb-font, var(--font)); font-weight: 650; font-size: 15px; 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; }
.btn-cta { display: inline-flex; align-items: center; gap: 9px; }

/* + 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 */
[data-base="dark"] .wm-card { 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 { 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 */
.wa-compose, .wx-form { display: flex; flex-direction: column; gap: 14px; }
.wa-msg { width: 100%; resize: vertical; }
.wa-send { background: #25D366 !important; color: #07321a !important; }
.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-map { width: 100%; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.wx-map iframe { width: 100%; height: 100%; border: 0; }
/* 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; }
.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; }
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; }

/* 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; }
.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; }
.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 transparent; border-radius: 16px; background: transparent; padding: 0; }
.vibe.on { border-color: var(--qck); }
.vibe-prev { height: 92px; border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 12px; gap: 6px; }
.vibe-prev.grid { padding: 0; }
.vibe-card { padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; }
.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; }
.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%; }
/* 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: 6px; margin: 8px 5px 0; }
.vibe-name { font-size: 14px; font-weight: 650; color: #fff; }
.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 (icon select + label + url) */
.btn-edit { margin-bottom: 12px; }

/* 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 { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.ep-tabs { 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; }
.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 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.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; }
.ed-panel .vibe-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
.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: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px dashed rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.saved-add:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.saved-add svg { width: 14px; height: 14px; }

/* grid layout shuffler modal */
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.lay-opt { display: flex; flex-direction: column; gap: 9px; background: #161617; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 13px; cursor: pointer; color: #fff; }
.lay-opt:hover { border-color: rgba(255,255,255,0.3); }
.lay-opt.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.lay-prev { display: flex; flex-direction: column; gap: 4px; }
.lay-row { display: flex; gap: 4px; }
.lay-cell { height: 13px; border-radius: 4px; background: rgba(255,255,255,0.24); }
.lay-name { font-size: 13.5px; font-weight: 600; text-align: left; }
.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 1fr; gap: 9px; }
.preset-tile { border: 2px solid transparent; border-radius: 16px; overflow: hidden; }
.preset-tile.on { border-color: var(--qck); }
.preset-prev { width: 100%; height: 78px; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: center; padding: 12px; gap: 6px; border-radius: 13px; 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; padding: 7px 3px 2px; }
.preset-name { font-size: 13px; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.preset-acts { display: flex; gap: 3px; flex: 0 0 auto; }
.preset-acts button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); cursor: pointer; display: grid; place-items: center; padding: 0; }
.preset-acts button:hover { background: rgba(255,255,255,0.18); color: #fff; }
.preset-acts button.on { background: var(--qck); color: #fff; }
.preset-acts svg { width: 13px; height: 13px; }
.ep-presetname { padding: 12px 18px 0; }
.ep-presetbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 0; }
.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; }
#w-editstyle { display: flex; align-items: center; justify-content: center; gap: 8px; }
#w-editstyle svg { width: 16px; height: 16px; }

/* 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-bottom: 4px; }
.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 1fr; gap: 10px; }
.type-card { text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,0.10); background: #161617; border-radius: 16px; padding: 16px; color: #fff; }
.type-card:hover { border-color: rgba(255,255,255,0.4); }
.type-card .t { font-weight: 650; font-size: 16px; margin-bottom: 3px; }
.type-card .h { font-size: 13px; color: rgba(255,255,255,0.5); }

/* 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; }
