/* ==========================================================================
   BRANDING — change these to your colors and fonts.
   Logo: replace /img/logo.svg (or set the <img> in index.html / admin/index.html).
   ========================================================================== */
:root {
  /* Divine Aesthetics: white, black and grey */
  --bg: #f7f7f7;            /* page background: soft white */
  --surface: #ffffff;       /* cards and panels: white */
  --ink: #111111;           /* text: near-black */
  --muted: #6b6b6b;         /* secondary text: grey */
  --line: #e4e4e4;          /* borders: light grey */
  --accent: #111111;        /* main brand color: buttons, highlights (black) */
  --accent-ink: #ffffff;    /* text on top of the brand color */
  --accent-soft: #ededed;   /* light grey tint for selected things */
  --ok: #2f7a55; --ok-soft: #e6f2ea;
  --warn: #8a5a00; --warn-soft: #f6eedc;
  --bad: #b03a3a; --bad-soft: #f6e4e4;
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e; --surface: #181818; --ink: #f4f4f4; --muted: #a6a6a6; --line: #2c2c2c;
    --accent: #f4f4f4; --accent-ink: #111111; --accent-soft: #2a2a2a;
    --ok: #7fd1a6; --ok-soft: #1c3127; --warn: #f0c070; --warn-soft: #362d1a; --bad: #f08f8f; --bad-soft: #3a2222;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1000px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- header ---------- */
header.bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 21px; letter-spacing: .02em; }
nav.views { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 999px; border: 1px solid var(--line); flex-wrap: wrap; }
nav.views a { text-decoration: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
nav.views a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.banner { background: var(--warn-soft); color: var(--ink); font-size: 13px; text-align: center; padding-block: 7px; }
main { padding-block: 28px 64px; }
.view { display: grid; gap: 24px; }
footer.foot { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 13px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- generic ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; text-align: left; }
.link.subtle { color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; min-width: 0; }
.stack { display: grid; gap: 6px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.plain { background: var(--bg); color: var(--muted); }
.note { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--warn-soft); color: var(--ink); }
.note.bad { background: var(--bad-soft); }
.note.ok { background: var(--ok-soft); }
.num { font-variant-numeric: tabular-nums; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; font-weight: 400; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); }
.empty { color: var(--muted); font-size: 14px; padding-block: 8px; }
.narrow { max-width: 440px; margin: 0 auto; width: 100%; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; letter-spacing: .1em; color: var(--accent); }
.loading { color: var(--muted); padding-block: 40px; text-align: center; }

/* ---------- services ---------- */
.svc-group { display: grid; gap: 10px; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; display: grid; gap: 6px; }
.svc:hover { border-color: var(--accent); }
.svc[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.svc .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.svc .name { font-weight: 600; font-size: 16px; }
.svc .price { font-family: var(--font-display); font-size: 20px; }
.svc .meta { font-size: 13px; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 720px) { .detail { grid-template-columns: 1fr; } }
.detail ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.facts { display: grid; gap: 10px; align-content: start; }
.fact { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery.mini { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.shot { position: relative; border: 0; padding: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: var(--accent-soft); aspect-ratio: 4 / 5; max-width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.shot .cap { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-size: 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button, .subnav button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.filters button[aria-pressed="true"], .subnav button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(900px, 100%); }
.lightbox img { max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #fff; font-size: 14px; text-align: center; }
.lightbox .close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* ---------- booking ---------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.steps li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ""; width: 16px; height: 1px; background: var(--line); }
.steps li.on { color: var(--accent); font-weight: 600; }
.steps li.done { color: var(--ink); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: 0 0 64px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px; text-align: center; cursor: pointer; display: grid; gap: 2px; }
.day .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day .dnum { font-family: var(--font-display); font-size: 22px; }
.day .avail { font-size: 11px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] .dow, .day[aria-pressed="true"] .avail { color: var(--accent-ink); }
.day[disabled] { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 6px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.layout2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .layout2 { grid-template-columns: 1fr; } }
.summary .line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.summary .total { font-weight: 600; font-size: 16px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- portal ---------- */
.appt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
.datebox { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; }
.datebox .m { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.datebox .d { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
@media (max-width: 520px) { .appt { grid-template-columns: 56px minmax(0, 1fr); } .appt > :last-child { grid-column: 1 / -1; } }
.refill { background: var(--accent-soft); border-color: transparent; }
.meter { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.stat .v { font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 13px; color: var(--muted); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--bg); }
.sched-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: start; }
.sched-item:last-child { border-bottom: 0; }
.sched-item .t { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 560px) { .sched-item { grid-template-columns: 70px minmax(0, 1fr); } .sched-item > :last-child { grid-column: 1 / -1; } }
.req { display: grid; gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.quote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); font-style: italic; }
.hours-row { display: grid; grid-template-columns: 110px auto auto auto; gap: 10px; align-items: center; }
@media (max-width: 520px) { .hours-row { grid-template-columns: 1fr 1fr; } }
.hours-row input[type="time"] { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; }
.photo-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.photo-card .body { padding: 10px; display: grid; gap: 6px; font-size: 13px; }
/* ---------- week view ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.open-txt { color: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.booked { background: var(--accent); }
.sw.open { background: var(--ok-soft); border: 1px dashed var(--ok); }
.sw.off { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--bg) 3px, var(--bg) 6px); }
.week-scroll { overflow-x: auto; }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 840px; padding-bottom: 14px; }
.wk-open.short, .wk-appt.short { justify-content: center; }
.wk-open.tiny, .wk-appt.tiny { justify-content: center; padding-block: 0; }
.wk-open.tiny strong, .wk-appt.tiny strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-times { position: relative; margin-top: 80px; height: var(--h); }
.wk-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-day { border-left: 1px solid var(--line); min-width: 0; }
.wk-head { width: 100%; height: 80px; border: 0; background: transparent; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 0; padding: 4px; }
.wk-head .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wk-head .dnum { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.wk-head .sum { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-head .sum.open-txt { color: var(--ok); font-weight: 600; }
.wk-day.today .wk-head .dnum { color: var(--accent-ink); background: var(--accent); border-radius: 999px; min-width: 30px; padding-inline: 4px; }
.wk-body { position: relative; height: var(--h); }
.wk-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.wk-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--bg) 3px, var(--bg) 8px); opacity: .7; }
.wk-closed.full { display: grid; place-items: center; }
.wk-closed.full span { background: var(--surface); color: var(--muted); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.wk-off { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--surface) 3px, var(--surface) 8px); font-size: 11px; color: var(--muted); padding: 3px 6px; overflow: hidden; }
.wk-off span { background: var(--surface); border-radius: 4px; padding: 0 4px; }
.wk-open, .wk-appt { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 3px 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; font-size: 11px; line-height: 1.3; overflow: hidden; cursor: pointer; }
.wk-open { background: var(--ok-soft); border: 1px dashed var(--ok); color: var(--ok); }
.wk-open:hover { border-style: solid; }
.wk-open strong { font-size: 12px; }
.wk-appt { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); z-index: 1; }
.wk-appt strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-appt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; opacity: .9; }
.wk-appt.done { background: var(--accent-soft); color: var(--accent); }
.wk-appt.noshow { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.wk-appt.paying { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); }
.wk-day.past .wk-body { opacity: .6; }
.week-list { display: none; }
@media (max-width: 760px) {
  .week-scroll { display: none; }
  .week-list { display: grid; gap: 14px; }
}
.wl-day { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wl-day:last-child { border-bottom: 0; }
.wl-day.past { opacity: .6; }
.wl-head { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wl-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; border-radius: 10px; padding: 8px 10px; font-size: 14px; border: 1px solid transparent; width: 100%; cursor: pointer; }
.wl-item .t { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.wl-item.booked { background: var(--accent-soft); color: var(--ink); }
.wl-item.booked.done { opacity: .75; }
.wl-item.open { background: var(--ok-soft); color: var(--ok); border: 1px dashed var(--ok); }
.wl-item.off { background: var(--bg); color: var(--muted); cursor: default; }

/* ---------- client finder + contact card ---------- */
.finder { position: relative; flex: 1 1 280px; max-width: 420px; }
.finder input { width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) no-repeat 13px 50% / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); font-size: 14px; }
.finder input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; background-color: var(--surface); }
.finder-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: 4px; display: grid; max-height: 70vh; overflow-y: auto; }
.finder-item { display: grid; gap: 1px; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.finder-item strong { color: var(--ink); font-size: 14px; }
.finder-item .nx { color: var(--accent); font-size: 12px; }
.finder-item[aria-selected="true"], .finder-item:hover { background: var(--accent-soft); }
@media (max-width: 640px) { .finder { order: 3; flex-basis: 100%; max-width: none; } }
.contact-rows { display: grid; border: 1px solid var(--line); border-radius: 12px; }
.contact-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-row .v { font-size: 15px; overflow-wrap: anywhere; }
.contact-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 70px minmax(0, 1fr); } .contact-row .acts { grid-column: 1 / -1; } }
.edit-details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.edit-details[open] summary { margin-bottom: 10px; }

/* ---------- intake form, legal pages, discounts ---------- */
.intake { gap: 16px; max-width: 640px; }
.intake fieldset.q { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; margin: 0; display: grid; gap: 8px; }
.intake legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.yn { display: flex; gap: 10px; }
.yn label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; background: var(--bg); }
.yn label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.yn input { accent-color: var(--accent); }
.consent { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; max-height: 260px; overflow-y: auto; }
.legal { max-width: 720px; margin: 0 auto; gap: 12px; }
.legal h3 { margin-top: 10px; }
.legal p { max-width: 68ch; }
.foot-links a { color: var(--muted); }
.banner.test { background: var(--bad-soft); font-weight: 600; }
.ok-txt { color: var(--ok); }
.flag { color: var(--bad); font-weight: 600; }
.answers { display: grid; gap: 6px; font-size: 14px; }
.answers .a-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.answers .a-row .d { grid-column: 1 / -1; color: var(--muted); }
.svc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 22px; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
dialog form { display: grid; gap: 12px; }

@media (prefers-reduced-motion: no-preference) { .view { animation: rise .25s ease-out; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }
