/* ONNO Booked onboarding: shared styles for the client app, the admin page and the info pages.
   Mobile first. Brand: bottle green, lime, mist, porcelain. Montserrat (SIL OFL) and Gambarino,
   both self hosted, with system fallbacks. No inline styles anywhere (strict CSP). */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gambarino';
  src: url('../fonts/gambarino-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --mist: #EEEEEA;
  --porcelain: #F7F7F4;
  --white: #FFFFFF;
  --pebble: #D6D5CE;
  --stone: #A8A59B;
  --slate: #55574F;      /* secondary text, 6.3:1 on mist */
  --basalt: #2F312C;
  --ink: #131714;        /* text, 15.6:1 on mist */
  --bottle: #0F3A2C;
  --bottle-2: #174A39;
  --leaf: #2D5F48;       /* links, 6.4:1 on mist */
  --lime: #C9EA8C;       /* spot color: on bottle 9.3:1 */
  --lime-soft: #E9F5D3;
  --celadon: #C9D6CD;
  --on-dark: #F1F1EC;
  --line: rgba(19, 23, 20, 0.12);
  --line-strong: #8C8B83; /* field borders, 3:1 */
  --warn: #7A4F22;
  --warn-bg: #F6ECDD;
  --error: #9B2C1F;
  --error-bg: #F8E6E2;
  --display: 'Gambarino', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --text: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --r: 12px;
  --r-sm: 8px;
  --gutter: 16px;
  --top-h: 60px;
  --pager-h: 76px;
  --shadow: 0 1px 2px rgba(19, 23, 20, 0.05), 0 8px 24px rgba(19, 23, 20, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 400 1rem/1.6 var(--text); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bottle); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
h1 { font: 400 clamp(2.1rem, 7.6vw, 3.3rem)/1.06 var(--display); letter-spacing: -0.01em; }
h1:focus { outline: none; }
h2 { font: 400 1.65rem/1.15 var(--display); }
h3 { font: 600 1.02rem/1.35 var(--text); }
p { margin: 0 0 1em; }
small { font-size: 0.82rem; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--bottle); }

:focus-visible { outline: 3px solid var(--bottle); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bottle); color: var(--on-dark); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 10px; color: var(--on-dark); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.42em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark img { display: block; height: 20px; width: auto; }
.wordmark:hover { color: var(--ink); }
.top .wordmark { padding: 12px 0; }

/* ------------------------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter); background: rgba(238, 238, 234, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spa-name { font-size: 0.82rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; display: none; }
.save { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--slate); white-space: nowrap; }
.save::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }
.save[data-state="pending"]::before, .save[data-state="saving"]::before { background: var(--stone); animation: pulse 1s ease-in-out infinite; }
.save[data-state="error"] { color: var(--error); }
.save[data-state="error"]::before { background: var(--error); }
.save[data-state="locked"]::before { background: var(--bottle); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ------------------------------------------------------------------ layout */
.shell { display: block; min-height: calc(100vh - var(--top-h)); }
.steps-side { display: none; }
main { display: block; padding: 0 var(--gutter) calc(var(--pager-h) + 40px); }
.page { max-width: 760px; margin: 0 auto; }
.page.wide { max-width: 1120px; }

.trail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; }
.trail-text { font-size: 0.8rem; color: var(--slate); letter-spacing: 0.02em; min-width: 0; }
.trail-acts { display: flex; gap: 6px; flex: none; }
.trail-acts .btn { padding: 8px 12px; gap: 6px; }
.side-map-btn { display: none; }
.trail-text strong { color: var(--ink); font-weight: 600; }
.bar { height: 4px; background: var(--pebble); border-radius: 4px; overflow: hidden; margin: 10px 0 0; }
.bar > span { display: block; height: 100%; width: 0; background: var(--bottle); border-radius: 4px; transition: width 0.5s var(--ease); }

.intro { padding: 30px 0 8px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 0.72rem/1.3 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--leaf); }
.kicker::before { content: ''; width: 26px; height: 1px; background: #B08A55; flex: none; }
.lede { font-size: 1.04rem; color: var(--basalt); max-width: 62ch; margin-top: 16px; }

.section { margin: 30px 0 0; }
.section > h2 { margin-bottom: 6px; }
.section > .sub { color: var(--slate); margin: 0 0 16px; max-width: 64ch; }
.card { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.stack > * + * { margin-top: 16px; }

/* ------------------------------------------------------------------ notices */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-size: 0.92rem; color: var(--basalt); }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--leaf); fill: none; stroke-width: 1.6; }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }
.note.privacy { background: var(--lime-soft); border-color: rgba(15, 58, 44, 0.16); }
.note.warn { background: var(--warn-bg); border-color: rgba(122, 79, 34, 0.25); color: var(--warn); }
.note.warn svg { stroke: var(--warn); }
.note.error { background: var(--error-bg); border-color: rgba(155, 44, 31, 0.25); color: var(--error); }
.note.error svg { stroke: var(--error); }
.note.done { background: var(--bottle); color: var(--on-dark); border-color: var(--bottle); }
.note.done svg { stroke: var(--lime); }
.note.done a { color: var(--lime); }
.banner { margin: 16px 0 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--bottle);
  background: var(--bottle); color: var(--on-dark); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { background: var(--bottle-2); color: var(--on-dark); box-shadow: 0 6px 18px rgba(15, 58, 44, 0.22); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--bottle); }
.btn.lime:hover { background: #D7F2A5; color: var(--bottle); }
.btn.ghost { background: transparent; color: var(--bottle); border-color: rgba(15, 58, 44, 0.45); }
.btn.ghost:hover { background: var(--white); color: var(--bottle); box-shadow: none; }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 0.88rem; }
.btn.danger { background: transparent; color: var(--error); border-color: rgba(155, 44, 31, 0.45); }
.btn.danger:hover { background: var(--error-bg); color: var(--error); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--leaf); font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--bottle); }
.link-btn.danger { color: var(--error); }
.link-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.add-btn { width: 100%; min-height: 52px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: transparent; color: var(--bottle); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add-btn:hover { background: var(--white); border-color: var(--bottle); }
.add-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------------------------------ pager */
.pager {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; min-height: var(--pager-h);
  display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 247, 244, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pager .btn { flex: 1 1 auto; }
.pager .btn.ghost { flex: 0 0 auto; }
.pager .btn .long { display: none; }
.pager .btn > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pager .btn { min-width: 0; }
.pager .btn.ghost { width: 52px; height: 52px; min-height: 52px; padding: 0; flex: 0 0 52px; }
.pager .btn.ghost > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ fields */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset.field > legend { font-weight: 600; font-size: 0.92rem; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--slate); font-size: 0.82rem; }
.hint { margin: 0; font-size: 0.84rem; color: var(--slate); }
.field-error { margin: 0; font-size: 0.84rem; color: var(--error); font-weight: 600; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="time"], input[type="date"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--white); font-size: 1rem; line-height: 1.4; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230F3A2C' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
input::placeholder, textarea::placeholder { color: #75776E; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bottle); box-shadow: 0 0 0 3px rgba(15, 58, 44, 0.18); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input:disabled, select:disabled, textarea:disabled { background: var(--porcelain); color: var(--slate); cursor: not-allowed; }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
/* A portfolio project outside the US shows its own currency (body data-currency, set from the client's country). */
body[data-currency="ZAR"] .money::before { content: 'R'; }
body[data-currency="GBP"] .money::before { content: '\00A3'; }
.money input { padding-left: 28px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 0.95rem; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bottle); cursor: pointer; }
.check.boxed { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.check.boxed:has(input:checked) { border-color: var(--bottle); background: var(--lime-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 0.92rem; font-weight: 500; }
.choice input:checked + span { background: var(--bottle); border-color: var(--bottle); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--bottle); outline-offset: 3px; }
.choice input:disabled + span { opacity: 0.6; }

details.more { border-top: 1px solid var(--line); margin-top: 16px; }
details.more > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--leaf); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s; margin: 0 4px 0 2px; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > .grid { padding: 4px 0 6px; }

/* ------------------------------------------------------------------ repeatable items */
.items > .item + .item { margin-top: 14px; }
.item { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 10px; }
.item-head h3 { font: 400 1.25rem/1.2 var(--display); }
.counter { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; color: var(--bottle); }
.counter.over { background: var(--warn-bg); color: var(--warn); border-color: rgba(122, 79, 34, 0.3); }

/* ------------------------------------------------------------------ uploads */
.drop { position: relative; display: block; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--white); transition: border-color 0.15s, background 0.15s; }
.drop.over { border-color: var(--bottle); background: var(--lime-soft); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:has(input:focus-visible) { outline: 3px solid var(--bottle); outline-offset: 3px; }
.drop-inner { display: flex; align-items: center; gap: 14px; padding: 16px; pointer-events: none; }
.drop-inner .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; flex: none; }
.drop-inner .ic svg { width: 22px; height: 22px; stroke: var(--bottle); fill: none; stroke-width: 1.7; }
.drop-inner strong { display: block; font-size: 0.98rem; color: var(--bottle); }
.drop-inner small { display: block; color: var(--slate); }
.drop.disabled { opacity: 0.55; }
.drop.disabled input { cursor: not-allowed; }

.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.file { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.thumb { width: 72px; height: 72px; border-radius: 6px; background: var(--mist); display: grid; place-items: center; overflow: hidden; font: 700 0.72rem/1 var(--text); color: var(--slate); letter-spacing: 0.06em; }
.thumb.checker { background-color: #fff; background-image: linear-gradient(45deg, #E4E4DE 25%, transparent 25%), linear-gradient(-45deg, #E4E4DE 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E4E4DE 75%), linear-gradient(-45deg, transparent 75%, #E4E4DE 75%); background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 6px; }
.file-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 0.8rem; color: var(--slate); }
.file .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--slate); }
.file .x:hover { color: var(--error); border-color: rgba(155, 44, 31, 0.4); }
.file .x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.file .prog { height: 4px; border-radius: 3px; background: var(--pebble); overflow: hidden; margin-top: 6px; }
.file .prog span { display: block; height: 100%; width: 0; background: var(--leaf); transition: width 0.2s; }
.file.failed { border-color: rgba(155, 44, 31, 0.4); background: var(--error-bg); }
.file.failed .file-meta { color: var(--error); font-weight: 600; }

/* ------------------------------------------------------------------ colors */
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sw-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); cursor: pointer; font: 600 0.85rem/1 var(--text); color: var(--ink); }
.sw-btn i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.14); }
.sw-btn:hover { border-color: var(--bottle); }
.sw-btn[disabled] { opacity: 0.5; cursor: default; }
.sw-btn .plus { color: var(--leaf); }
.colors { display: grid; gap: 10px; margin-top: 12px; }
.color-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; grid-template-areas: "pick hex x" "role role role"; gap: 8px; align-items: center; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.color-row [data-color-part="picker"] { grid-area: pick; }
.color-row [data-color-part="hex"] { grid-area: hex; }
.color-row [data-color-part="role"] { grid-area: role; }
.color-row .x { grid-area: x; }
.color-row input[type="color"] { width: 52px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: none; cursor: pointer; }
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-row input[type="text"] { font-variant-numeric: tabular-nums; text-transform: uppercase; }
.color-row .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--slate); }
.color-row .x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ------------------------------------------------------------------ hours */
.hours { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 6px 10px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.day.closed { padding-bottom: 6px; }
.day .check { grid-column: 1 / -1; padding: 0; min-height: 44px; align-items: center; font-weight: 600; font-size: 0.92rem; gap: 12px; }
.day .check > span { flex: 1; display: flex; justify-content: space-between; gap: 10px; }
.day .closed-tag { display: none; font-weight: 400; color: var(--slate); font-size: 0.88rem; }
.day.closed .closed-tag { display: inline; }
.day input[type="time"] { min-height: 44px; padding: 8px 10px; font-size: 0.95rem; }
.day.closed input[type="time"] { display: none; }

/* ------------------------------------------------------------------ welcome */
.facts { display: grid; gap: 10px; margin: 24px 0 0; grid-template-columns: minmax(0, 1fr); }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r-sm); }
.fact svg { width: 22px; height: 22px; flex: none; stroke: var(--leaf); fill: none; stroke-width: 1.6; margin-top: 1px; }
.fact strong { display: block; font-size: 0.95rem; }
.fact span { font-size: 0.88rem; color: var(--slate); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 18px 48px; counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--bottle); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: 0.86rem; }
.timeline li::after { content: ''; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--pebble); }
.timeline li:last-child::after { display: none; }
h2 + .timeline { margin-top: 18px; }
h2 + .sum, .sub + .sum { margin-top: 14px; }
.timeline strong { display: block; }
.timeline span { color: var(--slate); font-size: 0.92rem; }
.hero-card { background: var(--bottle); color: var(--on-dark); border-radius: var(--r); padding: 22px 20px; margin-top: 26px; position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(201, 234, 140, 0.13); }
.hero-card h2 { color: var(--on-dark); font-size: 1.5rem; }
.hero-card p { color: var(--celadon); margin: 8px 0 0; font-size: 0.95rem; }
.hero-card em { font-style: normal; color: var(--lime); }

/* ------------------------------------------------------------------ review */
.issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.issues li a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; background: var(--white); color: var(--error); text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(155, 44, 31, 0.2); }
.issues li a::after { content: 'Fix'; color: var(--leaf); text-decoration: underline; font-size: 0.84rem; flex: none; }
.sum { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.sum + .sum { margin-top: 12px; }
.sum-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.sum-head h3 { font: 400 1.35rem/1.2 var(--display); }
.sum dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.sum dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-top: 10px; }
.sum dd { margin: 2px 0 0; font-size: 0.94rem; overflow-wrap: anywhere; }
.sum dd .muted, .muted { color: var(--slate); }
.sum table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 4px; }
.sum th, .sum td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum th { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.82rem; }
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); }
.submit-box { margin-top: 26px; padding: 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.submit-box .btn { width: 100%; margin-top: 12px; }

/* ------------------------------------------------------------------ dialogs */
dialog { border: 0; padding: 0; border-radius: var(--r); background: var(--porcelain); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); max-width: min(96vw, 980px); width: 100%; }
dialog::backdrop { background: rgba(15, 20, 17, 0.55); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.3rem; }
.dlg-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; flex: none; }
.dlg-close svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
dialog.sheet { margin: auto 0 0; max-width: 100%; border-radius: 18px 18px 0 0; max-height: 86vh; }
dialog.sheet .sheet-body { padding: 8px 18px 24px; overflow-y: auto; max-height: calc(86vh - 70px); }

.steplist { list-style: none; margin: 0; padding: 0; }
.steplist > li { padding: 6px 0; }
.steplist > li + li { border-top: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; padding: 8px 0 4px; }
.step-title .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; background: var(--white); }
.step-title .dot svg { width: 12px; height: 12px; stroke: var(--lime); fill: none; stroke-width: 3; }
.step-title.done .dot { background: var(--bottle); border-color: var(--bottle); }
.step-title .pct { margin-left: auto; font-size: 0.76rem; color: var(--slate); font-weight: 600; }
.steplist ul { list-style: none; margin: 0; padding: 0 0 4px 32px; }
.steplist ul a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 10px; margin-left: -10px; border-radius: 8px; color: var(--basalt); text-decoration: none; font-size: 0.9rem; }
.steplist ul a:hover { background: var(--white); color: var(--ink); }
.steplist ul a[aria-current="page"] { background: var(--bottle); color: var(--on-dark); }
.steplist ul a .tick { width: 16px; height: 16px; flex: none; stroke: var(--leaf); fill: none; stroke-width: 2.4; }
.steplist ul a[aria-current="page"] .tick { stroke: var(--lime); }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--pager-h) + 16px); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--on-dark); font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.toast.show { opacity: 1; }
.toast.error { background: var(--error); }

/* ------------------------------------------------------------------ simple pages */
.plain { max-width: 720px; margin: 0 auto; padding: 36px var(--gutter) 60px; }
.plain h1 { margin-bottom: 18px; }
.plain h2 { margin: 28px 0 8px; font-size: 1.4rem; }
.plain ul { padding-left: 1.2em; }
.plain li { margin: 6px 0; }
.center-card { max-width: 520px; margin: 12vh auto 0; padding: 0 var(--gutter); text-align: left; }
.foot { margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--slate); }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 560px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spa-name { display: block; }
  .sum dl { grid-template-columns: 200px minmax(0, 1fr); column-gap: 18px; }
  .sum dt { margin-top: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .sum dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pager .btn .long { display: inline; }
  .pager .btn.ghost { width: auto; height: auto; min-height: 48px; padding: 12px 22px; flex: 0 0 auto; }
  .pager .btn.ghost > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .day { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); padding: 6px 10px; }
  .day.closed { grid-template-columns: minmax(0, 1fr); }
  .day .check { grid-column: auto; }
  .color-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "pick hex role x"; }
}

@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  .shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .steps-side { display: block; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 26px 18px 30px 28px; border-right: 1px solid var(--line); }
  .steps-side .side-progress { font-size: 0.8rem; color: var(--slate); margin: 0 0 6px; }
  .steps-side .bar { margin: 0 0 16px; }
  .trail, .trail-bar { display: none; }
  main { padding: 0 var(--gutter) 60px; }
  .intro { padding-top: 44px; }
  .pager { position: static; margin: 44px 0 0; padding: 20px 0 0; background: none; border-top: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pager .btn { flex: 0 0 auto; }
  .pager .spacer { flex: 1; }
  .toast { bottom: 28px; }
  .open-steps, .open-map { display: none; }
  dialog#sheet { display: none; }
  dialog.map-sheet { margin: auto 0 auto auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); border-radius: 0; }
  dialog.map-sheet .sheet-body { max-height: calc(100vh - 90px); }
  .side-map-btn { display: inline-flex; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ admin */
.admin main { padding-bottom: 60px; }
.admin .page { max-width: 1180px; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
.clients { display: grid; gap: 10px; }
.client-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 14px 16px; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.client-row:hover { border-color: var(--bottle); color: var(--ink); }
.client-row .nm { font: 400 1.3rem/1.2 var(--display); }
.client-row .em { font-size: 0.82rem; color: var(--slate); overflow-wrap: anywhere; }
.client-row .segs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.seg { display: flex; flex-direction: column; gap: 4px; font-size: 0.68rem; color: var(--slate); letter-spacing: 0.02em; min-width: 0; }
.seg b { display: block; height: 6px; border-radius: 3px; background: var(--pebble); overflow: hidden; position: relative; }
.seg b span { position: absolute; inset: 0 auto 0 0; background: var(--bottle); border-radius: 3px; }
.seg em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--white); border: 1px solid var(--line); color: var(--basalt); }
.status.submitted { background: var(--bottle); color: var(--lime); border-color: var(--bottle); }
.status.progress { background: var(--lime-soft); color: var(--bottle); }
.status.due { background: var(--warn-bg); color: var(--warn); }
.status.test { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.linkbox { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.linkbox input { font-size: 0.86rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; font-size: 0.9rem; }
.kv dt { color: var(--slate); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pagelist { display: grid; gap: 4px; margin-top: 8px; }
.pagelist div { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: 0.86rem; }
.pagelist div b { display: block; height: 6px; border-radius: 3px; background: var(--pebble); overflow: hidden; position: relative; }
.pagelist div b span { position: absolute; inset: 0 auto 0 0; background: var(--leaf); }
pre.json { max-height: 520px; overflow: auto; background: #10140F; color: #DCE7D3; border-radius: var(--r-sm); padding: 14px; font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.table td.num { white-space: nowrap; }
.events { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.events li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.events time { display: block; font-size: 0.76rem; color: var(--slate); }
@media (min-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
  .kv { grid-template-columns: 170px minmax(0, 1fr); }
  .kv dt { margin-top: 0; padding: 6px 0; }
  .kv dd { padding: 4px 0; }
}

/* ------------------------------------------------------------------ prefill markers */
.pf { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(122, 79, 34, 0.28); font: 600 0.76rem/1.3 var(--text); }
.pf svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.item-head .pf { margin-left: auto; margin-right: 6px; }
.sec-head .pf { align-self: center; }
.site-row .pf, fieldset > .pf { margin-bottom: 8px; }
.note.pf-note { background: var(--warn-bg); border-color: rgba(122, 79, 34, 0.25); color: var(--warn); }
.note.pf-note svg { stroke: var(--warn); }
.mini-links { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mini-links a { color: var(--warn); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* ------------------------------------------------------------------ fallbacks, page toggle, choices */
.skips { display: grid; gap: 8px; }
.check.fallback { font-size: 0.92rem; color: var(--basalt); background: transparent; border-style: dashed; }
.check.fallback:has(input:checked) { border-style: solid; }
.page-toggle { align-items: center; }
.page-toggle .badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 0.74rem; font-weight: 700; }
.bq:empty { display: none; }
.brand-q { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.choices.words { gap: 8px; }
.choices.words .choice span { min-height: 46px; padding: 10px 18px; font-size: 0.95rem; }
.approach .cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.card-choice { position: relative; display: block; cursor: pointer; }
.card-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.card-choice > span { display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 14px 16px 14px 46px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); position: relative; }
.card-choice > span::before { content: ''; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); }
.card-choice strong { font-size: 0.98rem; }
.card-choice small { color: var(--slate); font-size: 0.86rem; }
.card-choice input:checked + span { border-color: var(--bottle); background: var(--lime-soft); box-shadow: 0 0 0 1px var(--bottle); }
.card-choice input:checked + span::before { border: 6px solid var(--bottle); }
.card-choice input:focus-visible + span { outline: 3px solid var(--bottle); outline-offset: 3px; }
.card-choice input:disabled + span { opacity: 0.65; }
.field > .label { margin-bottom: 6px; display: block; }
.site-row + .site-row { margin-top: 12px; }
.still { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.still a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.still a:hover { border-color: var(--bottle); color: var(--ink); }
.still small { display: block; font-weight: 400; color: var(--slate); font-size: 0.8rem; }

/* photo details, phone and desktop wording on drop zones */
.file details.extra { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.file details.extra > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--leaf); }
.file .extra-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); padding: 2px 0 6px; }
.file .extra-grid select, .file .extra-grid input { min-height: 44px; font-size: 0.92rem; }
.on-phone { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .on-phone { display: block !important; }
  small .on-desk, .on-desk { display: none !important; }
}

/* ------------------------------------------------------------------ site map: a colorless wireframe */
.smap { --wf-line: #D3D2CC; --wf-fill: #E9E8E3; --wf-dark: #CFCEC7; --wf-ink: #2F312C; --wf-mute: #64655E; }
.smap-count { font-size: 0.84rem; color: var(--slate); margin: 0 0 10px; font-weight: 600; }
.smap-count:empty { display: none; }
.smap-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0; margin: 0 0 14px; }
.smap-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.smap-side { display: grid; gap: 14px; align-content: start; }
.smap-page { background: var(--white); border: 1px solid var(--wf-line); border-radius: 10px; overflow: hidden; }
.smap-every { background: #F7F7F4; }
.smap-chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--wf-line); background: #F4F4F1; }
.smap-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-dark); flex: none; }
.smap-chrome span { margin-left: 6px; flex: 1; min-width: 0; font: 500 0.72rem/1.2 var(--text); color: var(--wf-mute); background: var(--white); border: 1px solid var(--wf-line); border-radius: 999px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smap-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; padding: 10px 12px 2px; }
.smap-head h3 { font: 700 0.72rem/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wf-mute); }
.smap-note { font-size: 0.76rem; color: var(--wf-mute); }
.smap-blocks { list-style: none; margin: 0; padding: 6px 10px 10px; display: grid; gap: 8px; }
.blk-in { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "art txt st"; align-items: center; gap: 4px 10px; min-height: 52px; padding: 8px 10px; border: 1.5px solid var(--wf-line); border-radius: 8px; color: var(--wf-ink); text-decoration: none; background: var(--white); }
a.blk-in:hover { border-color: var(--wf-ink); color: var(--wf-ink); }
a.blk-in:focus-visible { outline: 3px solid var(--wf-ink); outline-offset: 2px; }
.blk[data-status="done"] .blk-in { border-color: var(--wf-ink); }
.blk[data-status="optional"] .blk-in, .blk[data-status="later"] .blk-in { border-style: dashed; }
.blk[data-status="ours"] .blk-in { border-style: dotted; background: #FAFAF8; }
.blk.here .blk-in { box-shadow: 0 0 0 3px rgba(47, 49, 44, 0.16); border-color: var(--wf-ink); }
.blk-txt { grid-area: txt; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.blk-label { font-weight: 600; font-size: 0.86rem; line-height: 1.3; }
.blk-sub, .blk-detail { font-size: 0.76rem; color: var(--wf-mute); line-height: 1.35; }
.blk-here { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.st { grid-area: st; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 3px 9px 3px 6px; border-radius: 999px; font: 700 0.7rem/1.25 var(--text); border: 1.5px solid #A9A8A0; color: var(--wf-ink); background: var(--white); }
.st svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.st-done { background: var(--wf-ink); border-color: var(--wf-ink); color: var(--white); }
.st-check { border-color: var(--wf-ink); }
.st-optional { border-style: dashed; color: var(--wf-mute); }
.st-later { background: #EDEDE9; border-color: #EDEDE9; color: var(--wf-mute); }
.st-ours { border-color: transparent; background: transparent; color: var(--wf-mute); font-weight: 600; }

/* placeholder shapes: grey boxes, lines and pills, no color */
.art { grid-area: art; display: grid; gap: 4px; align-content: center; min-width: 0; }
.art i { display: block; height: 6px; background: var(--wf-fill); border-radius: 3px; }
.art .ln:nth-child(3n + 2) { width: 72%; }
.art .ln:nth-child(3n) { width: 50%; }
.art .pill { height: 9px; width: 26px; border-radius: 99px; background: var(--wf-dark); }
.art .sq { height: 12px; width: 12px; border-radius: 3px; background: var(--wf-dark); }
.art .img, .art .mapbox, .art .tile, .art .tier, .art .cell { height: 22px; border-radius: 3px; background-color: var(--wf-fill); }
.art .img, .art .tile { background-image: linear-gradient(to top right, transparent calc(50% - 0.6px), var(--wf-dark) calc(50% - 0.6px), var(--wf-dark) calc(50% + 0.6px), transparent calc(50% + 0.6px)), linear-gradient(to top left, transparent calc(50% - 0.6px), var(--wf-dark) calc(50% - 0.6px), var(--wf-dark) calc(50% + 0.6px), transparent calc(50% + 0.6px)); }
.art .mapbox { background-image: radial-gradient(circle at 50% 45%, var(--wf-ink) 0 2.5px, transparent 3px), repeating-linear-gradient(45deg, transparent 0 5px, var(--wf-dark) 5px 6px); }
.art .tier { box-shadow: inset 0 4px 0 var(--wf-dark); }
.art .face { height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--wf-fill); box-shadow: inset 0 -5px 0 var(--wf-dark); }
.art .dot { height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--wf-dark); }
.art .dot:nth-child(2) { background: var(--wf-fill); }
.art .dot:nth-child(3) { background: #BDBCB5; }
.art .aa { height: auto; background: none; font: 400 1rem/1 var(--display); color: var(--wf-mute); text-align: center; }
.art .aa::before { content: 'Aa'; }
.art .pip { height: 9px; border-radius: 99px; background: var(--wf-dark); }
.art .stars { height: 7px; background: repeating-linear-gradient(90deg, var(--wf-dark) 0 6px, transparent 6px 9px); }
.art-nav { grid-template-columns: 12px repeat(3, minmax(0, 1fr)) 26px; align-items: center; }
.art-nav .ln { width: 100% !important; height: 4px; }
.art-cards, .art-portraits, .art-tiers, .art-facts, .art-photo { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.art-cta { grid-template-columns: minmax(0, 1fr) 26px; align-items: center; }
.art-swatch { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); align-items: center; }
.art-words, .art-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.art-map .mapbox { grid-row: span 3; height: 30px; }
.art-band { grid-template-columns: minmax(0, 1fr); }
.art-hero .img { height: 26px; }
.art-footer { background: var(--wf-fill); padding: 5px; border-radius: 3px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-footer i { background: var(--wf-dark); height: 4px; }

/* The home page on the welcome and review pages reads as a page: each block shows its shapes large. */
.smap-full .smap-main .blk-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "art art" "txt st"; padding: 10px 12px 12px; gap: 10px 12px; }
.smap-full .smap-main .art { gap: 6px; }
.smap-full .smap-main .art i { height: 8px; }
.smap-full .smap-main .art .pill { height: 14px; width: 54px; }
.smap-full .smap-main .art .sq { height: 20px; width: 20px; }
.smap-full .smap-main .art-nav { grid-template-columns: 20px repeat(3, 44px) minmax(0, 1fr) 54px; }
.smap-full .smap-main .art-nav .ln { height: 5px; }
.smap-full .smap-main .art-hero .img { height: 96px; }
.smap-full .smap-main .art-hero .ln:nth-child(2) { width: 62%; height: 12px; }
.smap-full .smap-main .art .tile { height: 58px; }
.smap-full .smap-main .art-portraits { grid-auto-columns: minmax(0, 48px); justify-content: start; gap: 12px; }
.smap-full .smap-main .art .face, .smap-full .smap-main .art .dot { height: auto; }
.smap-full .smap-main .art-cta { grid-template-columns: minmax(0, 1fr) 54px; }
.smap-full .smap-main .art .tier { height: 54px; }
.smap-full .smap-main .art-map .mapbox { height: 64px; }
.smap-full .smap-main .art-cta, .smap-full .smap-main .art-band { padding: 8px 0; }
.smap-full .smap-main .art-footer { padding: 12px; gap: 8px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.smap-full .smap-main .art-footer i { height: 5px; }

/* the side panel on wide screens, the sheet on phones */
.map-side { display: none; }
.mapside-head h2 { font-size: 1.3rem; }
.mapside-head p { font-size: 0.84rem; color: var(--slate); margin: 4px 0 12px; }
dialog.map-sheet .sheet-body { padding: 12px 14px 24px; }
dialog.map-sheet .dlg-head .hint { margin: 2px 0 0; }

@media (min-width: 560px) {
  .approach .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .file .extra-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .file .extra-grid .span-2 { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .smap-full .smap-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1280px) {
  .shell { grid-template-columns: 280px minmax(0, 1fr) auto; }
  .map-side:not([hidden]) { display: block; position: sticky; top: var(--top-h); width: 380px; height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 26px 22px 30px; border-left: 1px solid var(--line); background: rgba(247, 247, 244, 0.6); }
  .side-map-btn { display: none !important; }
}

/* treatment rows: name, then price, unit and the page toggle on one line */
.trow { display: grid; gap: 14px 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.trow .span-all, .trow .page-cell { grid-column: 1 / -1; }
.page-toggle { min-height: 48px; padding-top: 11px; padding-bottom: 11px; white-space: nowrap; }
.more-sum { display: block; font-weight: 400; color: var(--slate); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
details.more > summary > span { display: block; padding: 6px 0; }
.brand-q { display: block; }
.brand-q > legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; }
.brand-q > legend + * { clear: both; }
.brand-q .choices { margin-top: 4px; }
@media (min-width: 560px) {
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .trow .page-cell { grid-column: auto; }
}

/* phones: the marker gets its own line under the row heading, the trail stays on one line */
.item-head { flex-wrap: wrap; row-gap: 4px; }
.item-head h3 { flex: 1 1 60%; }
.item-head .pf { order: 3; margin: 0; }
@media (max-width: 479px) {
  .trail-step { display: none; }
}
@media (min-width: 560px) {
  .item-head { flex-wrap: nowrap; }
  .item-head .pf { order: 0; margin-left: auto; margin-right: 6px; }
  .item-head h3 { flex: 0 1 auto; }
}

/* section heads with a counter or marker on the right */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; }
.sec-head h2 { margin: 0; }
.sum-empty { margin: 4px 0 0; font-size: 0.92rem; }

/* side panel and sheet: the status sits under the label, so labels keep one or two lines */
.smap-panel .blk-in { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "art txt" "art st"; align-items: start; row-gap: 6px; }
.smap-panel .art { align-self: center; }
.smap-panel .st { justify-self: start; }

/* photos two to a row on wider screens */
@media (min-width: 760px) {
  .files.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 760px) {
  .files.photos .extra-grid { grid-template-columns: minmax(0, 1fr); }
}
.skips > .pf { margin-bottom: 2px; }

/* ------------------------------------------------------------------ welcome: start with your current website */
.af-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid rgba(15, 58, 44, 0.22); border-radius: var(--r); padding: 20px 18px 18px 22px; box-shadow: var(--shadow); }
.af-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bottle); }
.af-card h2 { margin: 0 0 8px; }
.af-card > .sub { color: var(--slate); margin: 0 0 16px; max-width: 64ch; }
.af-card > p:last-child { margin-bottom: 0; }
.af-form { display: grid; gap: 14px; max-width: 640px; }
.af-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 0; }
.af-acts .btn { flex: 1 1 auto; }
.af-note { margin: 0 0 14px; }
.af-card .af-acts + .hint { margin-top: 12px; }
.af-title { display: flex; align-items: center; gap: 12px; }
.af-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--celadon); border-top-color: var(--bottle); animation: af-spin 0.9s linear infinite; }
@keyframes af-spin { to { transform: rotate(360deg); } }
.af-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.af-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--slate); min-width: 0; }
.af-steps li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.af-steps li svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--leaf); stroke-width: 2.2; }
.af-steps li.now { color: var(--ink); font-weight: 600; }
.af-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--leaf); background: var(--lime-soft); }
.af-ok { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.86rem; font-weight: 600; color: var(--leaf); }
.af-ok svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.af-found { font-size: 1.04rem; max-width: 62ch; }
.af-result:focus { outline: none; }
.af-skipped { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 18px 16px 22px; }
.af-skipped p { margin: 0; flex: 1 1 320px; color: var(--basalt); }
@media (min-width: 560px) {
  .af-card { padding: 24px 26px 22px 30px; }
  .af-acts .btn { flex: 0 0 auto; }
}

/* files taken from the website: keep or remove each one */
.file.from-site { border-color: rgba(122, 79, 34, 0.35); background: #FFFCF7; }
.file-check { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 10px; border-top: 1px dashed rgba(122, 79, 34, 0.3); }
.file-check .pf { align-self: center; }
.file-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.file-acts .btn { min-height: 44px; padding: 8px 16px; font-size: 0.88rem; }
.file-acts .btn svg { width: 16px; height: 16px; }
@media (min-width: 760px) {
  .files.photos .file.from-site .thumb, .file.from-site .thumb { width: 96px; height: 96px; }
  .file.from-site { grid-template-columns: 96px minmax(0, 1fr) auto; }
}

/* ------------------------------------------------------------------ accounts: what the spa sets up in its own name */
.accts { --wf-line: #D3D2CC; --wf-fill: #E9E8E3; --wf-dark: #CFCEC7; --wf-ink: #2F312C; --wf-mute: #64655E; display: grid; gap: 16px; }
.acct { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.acct[data-status="done"] { border-color: var(--wf-ink); }
.acct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.acct-head h3 { font: 400 1.4rem/1.2 var(--display); }
.acct-why { margin: 6px 0 0; color: var(--basalt); max-width: 64ch; }
.acct-intro, .acct-extra { margin: 10px 0 0; font-size: 0.92rem; color: var(--slate); max-width: 64ch; }
.acct-intro strong { color: var(--ink); }
.acct > .note { margin-top: 12px; }
.acct-q { margin-top: 14px; }
.acct-q .choices { margin-top: 8px; }
.acct-sub { margin: 18px 0 10px; font: 700 0.72rem/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wf-mute); }
.acct-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.acct-step { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; align-content: start; min-width: 0; }
.acct-art { display: block; min-width: 0; }
.acct-step-txt { min-width: 0; }
.acct-step-txt p { margin: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.acct-step-txt p + p { margin-top: 4px; }
.acct-step-txt .acct-step-title { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; margin-bottom: 4px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.acct-n { width: 24px; height: 24px; border-radius: 50%; background: var(--wf-ink); color: var(--white); display: grid; place-items: center; font-size: 0.76rem; font-weight: 700; flex: none; }
.acct-step-link a, .acct-help-link a { font-weight: 600; }
.acct-url { font-weight: 600; overflow-wrap: anywhere; }
.acct-field { margin-top: 16px; max-width: 460px; }
.acct-saved { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--bottle); }
.acct-help-link { margin: 14px 0 0; font-size: 0.9rem; }
.acct-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.acct-ask { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.acct-ask .acct-acts { margin-top: 12px; }
.acct-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 10px 0 0; font-size: 0.9rem; color: var(--basalt); }
.acct-state:empty { display: none; }
.acct-state:focus { outline: none; }
.acct-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow-wrap: anywhere; }
.note .acct-email { margin-top: 8px; }
.acct-email strong { font-size: 1.02rem; color: var(--bottle); }
.acct-email .btn svg { width: 16px; height: 16px; stroke: currentColor; margin: 0; }

/* account status pills: greyscale like the site map */
.ap { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 10px 4px 7px; border-radius: 999px; font: 700 0.74rem/1.25 var(--text); border: 1.5px solid #A9A8A0; color: #2F312C; background: var(--white); }
.ap svg { width: 14px; height: 14px; flex: none; margin: 0; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ap-done { background: #2F312C; border-color: #2F312C; color: var(--white); }
.ap-todo { border-color: #2F312C; }
.ap-later, .ap-none { background: #EDEDE9; border-color: #EDEDE9; color: #55574F; }
.ap-help { border-style: dashed; border-color: #2F312C; }

/* the step drawings: plain greyscale schematics, no screenshots and no logos */
.ill { display: block; width: 100%; height: auto; }
.ill .w { fill: var(--white); stroke: var(--wf-line); stroke-width: 1.5; }
.ill .bar, .ill .side { fill: #F4F4F1; }
.ill .dt, .ill .d { fill: var(--wf-dark); }
.ill .url { fill: var(--white); stroke: var(--wf-line); }
.ill .f, .ill .sel, .ill .img { fill: var(--wf-fill); }
.ill .card { fill: var(--white); stroke: var(--wf-line); stroke-width: 1.2; }
.ill .card-on { fill: var(--white); stroke: var(--wf-ink); stroke-width: 1.8; }
.ill .fld, .ill .chip { fill: var(--white); stroke: #B9B8B0; stroke-width: 1.2; }
.ill .on, .ill .kf { fill: var(--wf-ink); }
.ill .hl { fill: none; stroke: var(--wf-ink); stroke-width: 1.6; stroke-dasharray: 3 2.2; }
.ill .cur { fill: var(--wf-ink); stroke: var(--white); stroke-width: 1; stroke-linejoin: round; }
.ill .ck { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ill .k { fill: none; stroke: var(--wf-mute); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .ro { fill: var(--white); stroke: #8C8B83; stroke-width: 1.2; }
.ill .wd { fill: var(--white); }
@media (min-width: 700px) {
  .acct { padding: 22px 24px; }
  .acct-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .acct-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* admin: plans and the Accounts panel */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; border: 0; padding: 0; margin: 0; }
.plan-grid legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 4px; }
.plan-grid .check { padding: 8px 0; }
.acct-note { color: var(--slate); font-size: 0.82rem; overflow-wrap: anywhere; }
