/* =========================================================================
   Consult — white-label public consultation platform (WIREFRAME)
   Single shared stylesheet. Wireframe aesthetic, but theming is driven by
   CSS custom properties so the white-label switch is "real".
   ========================================================================= */

:root {
  /* Tenant design tokens — all overwritten live by the theme engine (chrome.js).
     Defaults here echo the consultation themes so pages look right pre-JS. */
  --brand:        #2f5fd0;   /* primary */
  --brand-ink:    #1b3a85;
  --brand-soft:   #eaf0fd;
  --brand-contrast: #ffffff;
  --accent:       #f59e0b;   /* warm secondary (coral / orange / yellow) */
  --ink-deep:     #14233b;   /* dark brand ink for headers & footers (themes use #113234) */
  --warm:         #f5f7fb;   /* cream/warm surface for alternating sections */

  --font-head:    'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Manrope', ui-sans-serif, system-ui, sans-serif;

  --radius:       12px;      /* corner rounding — tenant controlled */
  --radius-sm:    8px;

  /* Greyscale system */
  --paper:  #f3f4f6;
  --card:   #ffffff;
  --ink:    #1f2530;
  --muted:  #6b7280;
  --faint:  #9aa3af;
  --line:   #d4d8e0;
  --line-2: #e6e9ef;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 30px rgba(16,24,40,.07);
  --maxw:   1160px;

  /* "Sonder" design system — used by the PRODUCT site + EDITOR only (scoped under
     .product / body.admin / .bld / .auth-wrap). Bold grotesque type, flat high-
     contrast colour blocks, sharp corners. Does not affect tenant consultation sites. */
  --snd-font:   'Helvetica Neue', Helvetica, Arial, sans-serif;
  --snd-ink:    #000;
  --snd-paper:  #fff;
  --snd-blue:   #2A62F4;
  --snd-blue-ink:#1b46c9;
  --snd-blue-soft:#e9efff;
  --snd-pink:   #FFB6EF;
  --snd-yellow: #FFCC19;
  --snd-orange: #FF5E29;
  --snd-green:  #00804A;
  --snd-maroon: #800039;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-head, var(--font-body)); line-height: 1.04; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.025em; }
h4 { font-size: 1.15rem; letter-spacing: -.02em; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-ink); text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
small { color: var(--muted); }
::selection { background: var(--brand-ink); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.display { font-size: clamp(3rem, 7.5vw, 6rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; }

/* ---- Annotation helpers (kept subtle; mostly editor-only now) ------------ */
.wf-note {
  font: 600 11px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  color: #8a5a00; background: #fff6e0; border: 1px dashed #e7c46b;
  padding: 2px 8px; border-radius: 6px; display: inline-block;
}
.wf-tag {
  font: 700 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink);
  border-radius: 5px; padding: 4px 8px;
  background: var(--brand-soft);
}

/* ---- Image / media treatment (clean full-colour photography) ------------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: #e3e4e8; background-size: cover; background-position: center;
  min-height: 240px;
}
/* optional brand duotone, opt-in only (not used on the public site) */
.media.duo::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 38%, transparent), color-mix(in srgb, var(--ink-deep) 30%, transparent));
}
.media .media-cap {
  position: absolute; z-index: 2; left: 0; bottom: 0; padding: 16px 18px;
  color: #fff; font-weight: 600; font-size: 13px;
}

/* placeholder (used in the editor canvas, not the public site) */
.ph {
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    linear-gradient(45deg,  transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    var(--line-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--faint); font: 600 12px/1 ui-monospace, Menlo, monospace; min-height: 140px;
}

/* ---- "LEARN MORE" link — tiny uppercase with a short accent underline ----- */
.link {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-bottom: 6px;
  background-image: linear-gradient(var(--accent-3), var(--accent-3));
  background-size: 26px 2px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .35s cubic-bezier(.33,1,.68,1);
}
.link:hover { background-size: 100% 2px; }
.link::after { content: "→"; color: var(--accent-3); }

/* ---- Offset-block motif (solid colour rectangle behind a panel) ---------- */
.offset { position: relative; }
.offset::before {
  content: ""; position: absolute; z-index: 0; left: 22px; top: 22px;
  width: 100%; height: 100%; background: var(--accent); border-radius: var(--radius);
}
.offset.ink::before   { background: var(--ink-deep); }
.offset.brand::before { background: var(--brand); }
.offset > * { position: relative; z-index: 1; }

/* ---- Top chrome: white-label control bar -------------------------------- */
.chrome {
  position: sticky; top: 0; z-index: 60;
  background: #11151c; color: #cfd6e2;
  border-bottom: 1px solid #000;
  font-size: 13px;
}
.chrome .wrap { display: flex; align-items: center; gap: 16px; padding: 8px 24px; max-width: none; }
.chrome b { color: #fff; }
.chrome .spacer { flex: 1; }
.chrome label { color: #9aa6b8; margin-right: 6px; }
.chrome select, .chrome button.mini {
  background: #1c2230; color: #e7ecf5; border: 1px solid #313a4d;
  border-radius: 7px; padding: 5px 9px; font: inherit; cursor: pointer;
}
.seg { display: inline-flex; border: 1px solid #313a4d; border-radius: 8px; overflow: hidden; }
.seg button { background: #1c2230; color: #9aa6b8; border: 0; padding: 5px 12px; font: 600 12px/1 inherit; cursor: pointer; }
.seg button.on { background: var(--brand); color: var(--brand-contrast); }

/* ---- Site header (dark, like the consultation themes' nav) -------------- */
.site-header {
  background: var(--ink-deep); position: sticky; top: 38px; z-index: 50;
}
.site-header .wrap { display: flex; align-items: stretch; gap: 20px; height: 64px; padding-right: 0; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .01em; font-size: 1.05rem; color: #fff; text-decoration: none; text-transform: uppercase; }
.logo .mark {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
  background: var(--accent); color: var(--ink-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--font-head);
}
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.82); text-decoration: none; padding: 9px 13px;
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; }
.site-nav a.active::after { content: ""; display: block; height: 2px; background: var(--accent); margin-top: 6px; }
/* the header / footer accent CTA (yellow with arrow) */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ink-deep);
  text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 0 26px; align-self: stretch; transition: filter .2s;
}
.btn-cta:hover { filter: brightness(1.04); }
.btn-cta span { transition: transform .5s cubic-bezier(.33,1,.68,1); }
.btn-cta:hover span { transform: translateX(5px); }
.site-nav .btn-cta { margin-left: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--brand); color: var(--brand-contrast); border: 0;
  padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px;
  font-family: var(--font-body, inherit); letter-spacing: .02em;
  text-decoration: none; transition: filter .2s, transform .2s cubic-bezier(.33,1,.68,1), box-shadow .2s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn.ghost { background: transparent; color: var(--brand-ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.lg { padding: 16px 28px; font-size: 14px; }

/* =========================================================================
   EDITORIAL DESIGN SYSTEM — flat, square, lots of whitespace.
   Modelled on the Stockport 8 / ECF consultation site.
   ========================================================================= */
section.block { padding: 90px 0; }
section.block.tight { padding: 52px 0; }
section.block.warm { background: var(--warm); }
section.block.ink { background: var(--ink-deep); color: #e7eaf0; }
section.block.ink h1, section.block.ink h2, section.block.ink h3 { color: #fff; }
section.block.ink .lead, section.block.ink .muted { color: rgba(255,255,255,.72); }
section.block.ink .label { color: rgba(255,255,255,.55); }

/* small grey uppercase label (the ref's "THE VISION", "THE PLAN", ...) */
.label, .eyebrow { display: block; font-weight: 700; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.bodycopy { color: var(--muted); font-size: .98rem; line-height: 1.7; max-width: 46ch; }

/* ---- Full-bleed photographic hero (text overlaid bottom-left) ----------- */
.hero-full { position: relative; min-height: 64vh; display: flex; align-items: flex-end;
  background: var(--ink-deep); background-size: cover; background-position: center; color: #fff; }
.hero-full::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(20,18,30,.55), rgba(20,18,30,.05) 55%, transparent),
              linear-gradient(0deg, rgba(20,18,30,.55), transparent 45%); }
.hero-full .wrap { position: relative; z-index: 1; padding: 64px 32px; width: 100%; }
.hero-full h1 { color: #fff; max-width: 14ch; margin: 0; }

/* ---- Intro statement (big indented heading + small label) --------------- */
.intro .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 600; max-width: 20ch; }
@media (max-width: 920px){ .intro .wrap { grid-template-columns: 1fr; } }

/* ---- Asymmetric image + text row ---------------------------------------- */
.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row-split.reverse > .rs-media { order: 2; }
.row-split .media { min-height: 420px; }
.row-split .rs-text { max-width: 30rem; }
@media (max-width: 920px){ .row-split { grid-template-columns: 1fr; gap: 28px; } .row-split.reverse > .rs-media { order: 0; } }

/* ---- "A unique vision": white card overlapping a wide render ------------ */
.overlap { position: relative; }
.overlap .ov-media { min-height: 460px; margin-left: 28%; }
.overlap .ov-card { position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 40%; min-width: 340px; background: var(--card); padding: 48px; }
@media (max-width: 920px){
  .overlap .ov-media { margin-left: 0; min-height: 280px; }
  .overlap .ov-card { position: static; transform: none; width: 100%; min-width: 0; padding: 28px; }
}

/* ---- Grid + flat cards -------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: var(--radius); }
.card.news .media { min-height: 180px; margin-bottom: 16px; }
.card.news .card-body { padding-bottom: 6px; }
.card h3 { margin: 4px 0 8px; }

/* partner logo cards (flat grey) */
.partner { background: var(--warm); padding: 48px; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.partner .plogo { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; color: var(--ink-deep); }

/* ---- Flat colour block (the yellow "Have Your Say" panel) ---------------- */
.colorblock { background: var(--accent); color: var(--ink-deep); padding: 56px 60px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.colorblock.pink { background: var(--accent-2); }
.colorblock.red { background: var(--accent-3); color: #fff; }
.colorblock.ink { background: var(--ink-deep); color: #fff; }
.colorblock h2 { color: inherit; margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.colorblock p { margin: 0; max-width: 40ch; opacity: .85; }
.colorblock .cb-art { width: 220px; height: 150px; }
.colorblock .cb-art svg { width: 100%; height: 100%; }
@media (max-width: 760px){ .colorblock { grid-template-columns: 1fr; } .colorblock .cb-art { display: none; } }

/* ---- Coloured download tiles -------------------------------------------- */
.dl { text-align: left; }
.dl-tile { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; margin-bottom: 14px; border-radius: var(--radius); }
.dl-tile.c1 { background: var(--accent); } .dl-tile.c2 { background: var(--accent-2); }
.dl-tile.c3 { background: var(--accent-3); } .dl-tile.c4 { background: var(--ink-deep); }
.dl-tile .booklet { width: 92px; background: #fff; padding: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.dl-tile .booklet .bk-img { min-height: 70px; }
.dl-tile .booklet .bk-cap { font-weight: 800; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-deep); padding: 6px 2px 2px; }
.dl h4 { font-size: 1rem; margin: 0 0 8px; }

/* ---- Carousel header (label + arrows) ----------------------------------- */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.carousel-head .arrows { display: flex; gap: 8px; }
.carousel-head .arrows button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 16px; border-radius: var(--radius-sm); }
.carousel-head .arrows button:hover { background: var(--warm); }

/* ---- Timeline ----------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.tl-item:first-child { border-top: 0; }
.tl-when { font-weight: 700; color: var(--ink-deep); font-size: 1.05rem; }
.badge { display: inline-block; font-weight: 700; font-size: 11px; padding: 5px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.badge.open { background: var(--accent); color: var(--ink-deep); }
.badge.soon { background: var(--warm); color: var(--muted); }
.badge.closed { background: #eef0f3; color: #6b7280; }

/* ---- Newsletter "Keep up to date" --------------------------------------- */
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.nl-field { border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%;
  padding: 14px 0; font: inherit; margin-bottom: 6px; }
.nl-field:focus { outline: none; border-bottom-color: var(--ink-deep); }
.nl-check { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: .95rem; color: var(--muted); }
.nl-check input { accent-color: var(--accent-3); width: 17px; height: 17px; }
.nl-submit { margin-top: 22px; }
@media (max-width: 920px){ .newsletter .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Footer (Email / Call / Write / Follow) ----------------------------- */
footer.site-footer { background: var(--ink-deep); color: #aab; }
.foot-top { border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-top .wrap { padding: 36px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-top p { margin: 0; color: #fff; font-size: 1.15rem; max-width: 44ch; }
.foot-cols { padding: 56px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.foot-cols h4 { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-body); margin: 0 0 14px; opacity: .6; }
.foot-cols a { color: #d7dae6; text-decoration: none; display: block; padding: 3px 0; font-size: 14px; line-height: 1.5; }
.foot-cols a.link-sm { margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); }
.foot-legal .wrap { padding: 18px 32px; display: flex; justify-content: space-between; font-size: 12px; color: #8086a0; }
@media (max-width: 920px){ .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---- utilities still used by the editor / dashboard / builder previews --- */
.stat { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink-deep); }
.pillrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.cta { background: var(--accent); color: var(--ink-deep); padding: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; color: inherit; }

/* =========================================================================
   MAP
   ========================================================================= */
.map-shell { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 106px); min-height: 560px; border-top: 1px solid var(--line); }
.map-side { background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; padding: 18px; }
.map-side h2 { font-size: 1.15rem; }
.layer { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 9px; cursor: pointer; user-select: none; background: var(--card); }
.layer:hover { border-color: var(--brand); }
.layer .sw { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.layer .nm { font-weight: 650; font-size: 14px; flex: 1; }
.layer input { accent-color: var(--brand); width: 17px; height: 17px; }
.layer.off { opacity: .5; }

.map-stage { position: relative; overflow: hidden; background: #e9edf2; }
.map-canvas { position: absolute; inset: 0; }
.map-canvas svg { width: 100%; height: 100%; display: block; }
.map-overlay-toggle { transition: opacity .25s; }
.map-overlay-toggle.hidden { opacity: 0; pointer-events: none; }

.poi, .cpin {
  position: absolute; transform: translate(-50%, -100%); cursor: pointer;
  display: grid; place-items: center; z-index: 5;
}
.poi .dot {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.poi .dot span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; }
.cpin .dot { background: #e8633a; }
.poi:hover { z-index: 9; }

.map-tools { position: absolute; top: 14px; right: 14px; z-index: 20; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.map-tools .btn { box-shadow: var(--shadow); }
.tool-hint { background: rgba(17,21,28,.9); color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 8px; max-width: 230px; }

.popover {
  position: absolute; z-index: 30; width: 280px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0; overflow: hidden; transform: translate(-50%, calc(-100% - 20px));
}
.popover .ph { border-radius: 0; min-height: 120px; border: 0; border-bottom: 1px solid var(--line); }
.popover .pop-body { padding: 14px; }
.popover h4 { margin: 0 0 4px; }
.popover .close { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.5); color:#fff; border:0; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }

.cbox { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 6px; }
.comment { font-size: 13px; padding: 8px 0; border-top: 1px dashed var(--line-2); }
.comment:first-child { border-top: 0; }
.comment .who { font-weight: 700; }

/* =========================================================================
   SURVEY
   ========================================================================= */
.survey-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 18px 0 30px; }
.progress > i { display: block; height: 100%; background: var(--brand); width: 20%; transition: width .3s; }
.step { display: none; }
.step.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.q > label.qlabel { font-weight: 700; display: block; margin-bottom: 12px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; }
.opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
textarea, input[type=text], input[type=email] { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font: inherit; resize: vertical; }
.rating { display: flex; gap: 8px; }
.rating button { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; font-weight: 700; cursor: pointer; font-size: 15px; }
.rating button.on { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.step-nav { display: flex; justify-content: space-between; margin-top: 18px; }

/* =========================================================================
   BUILDER (editor view)
   ========================================================================= */
.builder { display: grid; grid-template-columns: 280px 1fr 300px; height: calc(100vh - 106px); min-height: 600px; border-top: 1px solid var(--line); }
.palette, .inspector { background: var(--card); overflow-y: auto; padding: 16px; }
.palette { border-right: 1px solid var(--line); }
.inspector { border-left: 1px solid var(--line); }
.palette h3, .inspector h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 10px; }
.block-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 8px; cursor: grab; background: var(--card); font-weight: 600; font-size: 13px;
}
.block-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.block-chip .ic { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 14px; flex: none; }

.canvas-area { background: var(--paper); overflow-y: auto; padding: 26px; }
.canvas-page { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 100%; box-shadow: var(--shadow); overflow: hidden; }
.canvas-block { position: relative; border-bottom: 1px dashed var(--line); padding: 26px; }
.canvas-block:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.canvas-block .cb-tools { position: absolute; top: 6px; right: 6px; display: none; gap: 4px; }
.canvas-block:hover .cb-tools { display: flex; }
.canvas-block .cb-tools button { border: 1px solid var(--line); background: var(--card); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; }
.cb-label { position: absolute; top: 6px; left: 6px; font: 700 10px/1 ui-monospace, Menlo, monospace; color: var(--faint); text-transform: uppercase; }
.drop-hint { border: 2px dashed var(--line); border-radius: 10px; padding: 40px; text-align: center; color: var(--faint); margin: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input[type=color] { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.dash { padding: 36px 0 80px; }
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.dash-nav a { display: block; padding: 10px 13px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.dash-nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.module { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; background: var(--card); }
.module .mi { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 18px; flex: none; }
.module .grow { flex: 1; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::before { transform: translateX(20px); }
.domain-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 11px 16px; font-weight: 650; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--brand-ink); border-color: var(--brand); }
.swatchset { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; }
.swatch.on { border-color: var(--ink); }

@media (max-width: 920px) {
  .hero .wrap, .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .map-shell, .builder, .dash-grid { grid-template-columns: 1fr; height: auto; }
  footer.site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .palette, .inspector { display: none; }
}
