/* ==========================================================================
   NextbyLocal shared theme — @nextbylocal/plugin-public-portal
   Built from DESIGN-STYLE-GUIDE.md (the official NextbyLocal design
   language). The :root block in section 1 is the guide's section 7
   variable set, copied verbatim. Component classes implement guide
   sections 4 (radius/shadow/glass), 5 (components) and 6 (layout).
   Every plugin-rendered page (public portal AND the WS4 dashboards)
   links this one file and uses tokens only — no page may inline its
   own colour values.
   ========================================================================== */

/* --- 1. Design tokens (DESIGN-STYLE-GUIDE.md section 7, verbatim) ------- */
:root {
  --accent: #FF385C; --accent-text: #DA1249; --accent-hover: #E61E4D; --accent-pressed: #A21039;
  --heading: #222222; --text: #717171; --text-muted: #717171; --text-disabled: #C1C1C1;
  --bg: #FFFFFF; --bg-alt: #F7F7F7; --bg-inset: #F2F2F2; --field: #FFFFFF; --hover: #F7F7F7;
  --line: #EBEBEB; --field-line: #DDDDDD; --field-line-hover: #222222;
  --tint: #FFF5F6; --tint-2: #FFEEF0; --chip: #FEE5E7; --tint-line: #FFD2D7; --hover-line: #C1C1C1; --selected: #FFEEF0;
  --ok: #038026; --ok-bg: #E6F6E9; --ok-line: #C3E6CC;
  --warn: #8F3400; --warn-bg: #FEF6EC; --warn-line: #FBD8BB;
  --error: #C13515; --error-bg: #FFF5F3; --error-line: #FFD3CD;
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --shadow-panel: 0 1px 2px rgba(0,0,0,.06), 0 10px 28px -16px rgba(0,0,0,.18);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.07), 0 22px 44px -20px rgba(0,0,0,.26);
  --shadow-btn: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px -8px rgba(255,56,92,.5);
  --glass: rgba(255,255,255,.6); --glass-strong: rgba(255,255,255,.82); --glass-line: rgba(255,255,255,.75);
  /* Editorial article body (SEO Phase 1, Q default 2026-11-08): darker than --text for long reading; scoped to .art-body. */
  --text-article: #3F3F3F;
}
body { font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3 { color: var(--heading); letter-spacing: -0.015em; }
a { color: var(--accent-text); }
input, select, textarea { font: 400 16px/1.4 var(--font); color: var(--heading); }

/* --- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* v0.5.10: stop mobile font boosting inflating the booking sheet. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.28; font-weight: 600; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-pressed); }
:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); outline: none; }
.mono { font-family: var(--font-mono); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* --- 3. Sticky glass header (guide sections 4 + 6) ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--heading); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--heading); }
.brand .brand-accent { color: var(--accent-text); }

/* --- 4. Buttons (guide section 5) ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font: 600 16px/1.4 var(--font);
  border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-primary:active { background: var(--accent-pressed); transform: translateY(1px); color: #FFFFFF; }
/* Anchor-form primary buttons (the header pill CTA lives inside
   .site-auth, whose link colour would otherwise win on specificity):
   text on a coral surface is always white, hover included. */
a.btn-primary, a.btn-primary:hover, a.btn-primary:active { color: #FFFFFF; }
.btn-pill { border-radius: var(--r-pill); }
.btn-ghost {
  background: var(--glass); color: var(--heading); border-color: var(--field-line);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: var(--field-line-hover); color: var(--heading); }
.btn-flat { background: var(--bg); color: var(--accent-text); border-color: var(--tint-line); }
.btn-flat:hover { background: var(--tint); color: var(--accent-pressed); }
.btn[disabled], .btn.disabled { background: var(--bg-inset); color: var(--text-disabled); box-shadow: none; cursor: not-allowed; border-color: transparent; }
.btn-block { width: 100%; }

/* --- 5. Layout sections (guide section 6) -------------------------------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
/* (Portal §16, Q 2026-10-23: section backgrounds default to white;
   --bg-alt is used only where separation is genuinely needed. The bio
   page's guides section is explicitly white.) */
.profile-guides { background: var(--bg); }
/* (Portal §18, Q 2026-10-23: a clear gap under the bio page's Guides
   heading before the cards — 20px matches the theme's section-head
   margin (section 14) and the card-grid gap; the base h2 margin only
   produced 11px at the H2 size.) */
.profile-guides .section-title { margin-bottom: 20px; }
/* (Guide v3: section backgrounds are white / --bg-alt only — the old
   tint-backed section variant was removed; coral tint is reserved for
   small components such as chips and the tip callout.) */
.section-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.hero { background: var(--bg); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.hero h1 { font-size: clamp(2.5rem, min(5.2vw, 8.2vh), 4.75rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; max-width: 16em; }
.hero-sub { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55; font-weight: 500; max-width: 42em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* --- 6. Content cards (guide sections 4 + 5) ------------------------------ */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel); overflow: hidden;
}
.card-body { padding: 20px 22px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
a.card, .card.hoverable { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
a.card:hover, .card.hoverable:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--hover-line); transform: translateY(-3px);
}
/* Card covers are 16:9 everywhere (Q, 2026-10-23 — portal doc §15). */
.card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-inset); }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--heading); letter-spacing: -0.015em; margin-bottom: 6px; }
.card-meta { color: var(--text-muted); font-size: .92rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* --- 7. Chips (guide sections 2 + 5) -------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  /* Base geometry unified with the badge component (section 18):
     same pill shape, size and padding for the whole label family. */
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; line-height: 1.5;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--text);
  white-space: nowrap;
}
.chip-brand { background: var(--chip); border-color: var(--tint-line); color: var(--accent-pressed); }
/* Neutral variant (portal doc section 19): black text on a
   white-grey button — used by the guide header's city chip. The base
   chip geometry is unchanged; only the colours leave the brand
   family. The brand chip itself is untouched (still used on the
   service page header). */
.chip-neutral { background: var(--bg); border-color: var(--field-line); color: var(--heading); }
/* A chip that is a link (the guide header's city chip, theme section
   14): no underline; hover deepens inside the chip's own colour
   family (guide section 5 hover rule) — one tint step down for the
   brand ground; one grey step down for the neutral ground, whose
   text stays #222 (the base a:hover would otherwise recolour it to
   the pressed brand colour). */
a.chip { text-decoration: none; }
a.chip-brand:hover { background: var(--tint-line); }
a.chip-neutral:hover { background: var(--bg-alt); color: var(--heading); }
.chip-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.chip-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.chip-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }

/* --- 8. Forms (guide section 5) ------------------------------------------- */
.form-card {
  max-width: 540px; padding: 26px 28px; border-radius: 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255,255,255,.95);
}
.form-card h1, .form-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.form-card .form-desc { font-size: .9rem; color: var(--text-muted); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--field);
  color: var(--heading); font: 400 16px var(--font);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-line-hover); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,56,92,.16); outline: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error-text { display: none; font-size: .82rem; color: var(--error); margin-top: 6px; }
.field.has-error .field-error-text { display: block; }
.form-error {
  display: none; align-items: flex-start; gap: 8px;
  background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error);
  border-radius: var(--r-md); padding: 10px 14px; font-size: .9rem; margin-bottom: 16px;
}
.form-error.visible { display: flex; }
.form-submit { width: 100%; font-size: 16px; font-weight: 700; border-radius: 10px; }
/* Password reset (v0.5.3): the quiet forgot link under the sign-in
   password field, and the result cards the forgot/reset pages swap
   in for their form (check-your-inbox / link-invalid / done). */
.form-forgot { text-align: right; margin: -6px 0 16px; font-size: .9rem; }
.form-result h2 { margin-top: 0; }
.form-result .btn { text-decoration: none; }

/* Slot picker + steppers (booking panel) */
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--field-line);
  background: var(--bg); color: var(--heading); font: 600 .92rem var(--font); cursor: pointer;
}
.slot-btn:hover { border-color: var(--field-line-hover); }
.slot-btn[aria-pressed="true"] { background: var(--selected); border-color: var(--accent); color: var(--accent-pressed); }
.slot-btn[disabled] { background: var(--bg-inset); color: var(--text-disabled); border-color: var(--line); cursor: not-allowed; }
.slot-btn .slot-left { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.slot-btn[disabled] .slot-left { color: var(--text-disabled); }
/* v0.5.10: the stepper must never be squeezed inside the booking card. */
.stepper { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.stepper button {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  border: 1px solid var(--field-line); background: var(--bg); color: var(--heading);
  font: 600 1rem var(--font); cursor: pointer; line-height: 1;
}
.stepper button:hover { border-color: var(--field-line-hover); }
.stepper button[disabled] { color: var(--text-disabled); background: var(--bg-inset); cursor: not-allowed; }
.stepper .stepper-value { min-width: 1.5em; text-align: center; font-weight: 700; color: var(--heading); }
.price-preview { font-size: 1.05rem; color: var(--heading); }
.price-preview .price-total { font-weight: 800; }

/* --- 9. State panels ----------------------------------------- */
.state-panel { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 28px; background: var(--bg); box-shadow: var(--shadow-panel); }
.state-panel-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.state-panel-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.state-panel-error { background: var(--error-bg); border-color: var(--error-line); }
.state-panel h2 { font-size: 1.35rem; font-weight: 700; }
/* Payment result live status (v0.18.0): centred countdown ring +
   status line, then a 3-step progress list. Steps are a vertical
   list on phones (the main customer device) and a horizontal bar
   on wide screens. */
.pr-status { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: .92rem; color: var(--text-muted); text-align: center; }
.pr-ring { flex: none; display: block; }
.pr-ring .pr-ring-bg { stroke: var(--line); }
.pr-ring .pr-ring-fg { stroke: var(--accent); }
.pr-ring-num { font-size: 11px; font-weight: 800; fill: var(--accent-text); }
.pr-ring.is-checking .pr-ring-fg { animation: pr-spin .7s linear infinite; transform-origin: 20px 20px; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-ring.is-stopped .pr-ring-fg { stroke: #C9C9C9; }
.pr-ring.is-stopped .pr-ring-num { fill: var(--text-muted); }
.pr-steps { list-style: none; margin: 20px 0 4px; padding: 0; }
.pr-step { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.pr-step:last-child { padding-bottom: 2px; }
.pr-step::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 3px; border-radius: 2px; background: var(--line); }
.pr-step:last-child::before { display: none; }
.pr-step.done::before { background: var(--accent); }
.pr-step.failed::before { background: var(--error-line); }
.pr-ico { width: 35px; height: 35px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: #fff; border: 2px solid var(--line); color: var(--text-muted); position: relative; z-index: 1; }
.pr-step.done .pr-ico { background: var(--accent); border-color: var(--accent); color: #fff; }
.pr-step.active .pr-ico { border-color: var(--accent); color: var(--accent-text); }
.pr-step.active .pr-ico::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); opacity: .35; animation: pr-ring-pulse 1.6s ease-out infinite; }
@keyframes pr-ring-pulse { 0% { transform: scale(.75); opacity: .5; } 100% { transform: scale(1.15); opacity: 0; } }
.pr-step.failed .pr-ico { background: var(--error); border-color: var(--error); color: #fff; }
.pr-step.dim { opacity: .45; }
.pr-text { padding-top: 2px; }
.pr-label { font-weight: 700; color: var(--text-muted); line-height: 1.3; }
.pr-step.done .pr-label, .pr-step.active .pr-label { color: var(--heading); }
.pr-step.failed .pr-label { color: var(--error); }
.pr-sub { font-size: .85rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
@media (min-width: 641px) {
  .pr-steps { display: flex; align-items: flex-start; }
  .pr-step { flex: 1; display: block; text-align: center; padding-bottom: 0; }
  .pr-step::before { left: -50%; top: 17px; bottom: auto; width: 100%; height: 3px; }
  .pr-step:first-child::before { display: none; }
  .pr-ico { margin: 0 auto 8px; }
  .pr-text { padding-top: 0; }
  .pr-sub { padding: 0 6px; }
}

/* --- 10. Expert byline / detail bits -------------------------------------- */
.expert-card { display: flex; gap: 16px; align-items: center; }
.expert-avatar { width: 56px; height: 56px; border-radius: var(--r-pill); object-fit: cover; background: var(--bg-inset); border: 1px solid var(--line); }
.expert-avatar-fallback {
  width: 56px; height: 56px; border-radius: var(--r-pill); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--accent-pressed); font-weight: 800; font-size: 1.2rem;
  border: 1px solid var(--tint-line);
}
.expert-name { font-weight: 700; color: var(--heading); }
.expert-handle { color: var(--accent-text); font-size: .92rem; }
.price-from { color: var(--text-muted); font-size: .9rem; }
.price-value { color: var(--heading); font-weight: 800; font-size: 1.15rem; }
.detail-list { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin: 0; }
.detail-list dt { color: var(--text-muted); font-size: .92rem; }
.detail-list dd { margin: 0; color: var(--heading); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { border-radius: var(--r-md); border: 1px solid var(--line); height: 160px; width: 100%; object-fit: cover; }

/* --- 11. Footer (light — guide section 8 forbids dark blocks) -------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 36px 0; margin-top: 0; }
.site-footer .footer-inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--heading); }
/* Legal row (v0.5.28): policy/contact links + the operating-company
 * line the payment provider's merchant review looks for. */
.site-footer .footer-legal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 10px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer .footer-company { font-size: .85rem; }

/* --- 12. Responsive (guide breakpoints: 960px / 600px) --------------------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .detail-list { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
}

/* --- 13. Motion (guide section 1: subtle, respects reduced motion) --------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- 14. Guide page: header zone, carousels, spot cards --------------------
   Components for the public guide page (layout cloned from the original
   product's guide page; every value below is a section 7 token or a
   guide-prescribed component value — no new colours). Behaviour hooks
   are wired by public/guide.js. The in-guide search that shipped with
   the first clone was removed by Q's direction (2026-10-23; see
   PHASE1-WS3-PORTAL.md section 10) — its styles went with it. */
.guide-head { padding-bottom: 4px; }
/* Header top row (portal doc sections 18–19): the row paired the
   back link with the city chip in section 18; since section 19 the
   back link lives at the foot of the page as .more-by-btn and this
   row carries the (neutral) city chip alone. The flex row stays so
   the chip keeps its section 18 position and rhythm above the H1. */
.back-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
/* End-of-page "More by <expert>" section: the section keeps the
   standard bottom padding but takes no top padding — the last
   carousel section's own bottom padding already provides the gap
   above it. The section normally renders the mb-card below
   (approved design, 2026-10-26); the plain .more-by-btn block
   (portal doc section 19: one big full-width neutral block —
   white ground, the input family's #DDDDDD border, 12px radius,
   16px/600 #222 text, centred; hover deepens inside the neutral
   family only) remains as the fallback for when the card data
   could not be built, so its rules stay. */
.guide-more { padding-top: 0; }
.more-by-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--bg); border: 1px solid var(--field-line);
  border-radius: var(--r-md); padding: 18px 24px;
  color: var(--heading); font-size: 16px; font-weight: 600; line-height: 1.5;
}
.more-by-btn:hover { background: var(--bg-alt); border-color: var(--hover-line); color: var(--heading); }
/* "More by <expert>" card (design approved 2026-10-26, revised
   the same day — final mockup state: classes prefixed mb- to
   avoid collisions with the rest of the theme): one white card —
   fanned polaroid stack on the left (the expert's photo in front;
   the whole card links only to the bio page), heading + profile
   line + one sentence + a plain black "View profile" link on the
   right, 88px between the fan and the text. Colours come from
   the portal tokens wherever the design value matches one; the
   card border and the sticker shadow tint have no token and stay
   literal, as in the approved design. */
.mb-card {
  background: var(--bg); border: 1px solid #F0F0F0; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 10px rgba(0,0,0,.05), 0 18px 44px rgba(0,0,0,.09);
  padding: 38px 42px;
  display: grid; grid-template-columns: 330px 1fr; column-gap: 88px; align-items: center;
}
.mb-card a { text-decoration: none; color: inherit; }
.mb-card a:hover { color: inherit; }
/* Fanned photo stack */
.mb-fan { position: relative; height: 272px; }
.mb-fan-card {
  position: absolute; top: 6px; left: 50%;
  width: 198px; padding: 7px 7px 24px;
  background: var(--bg); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 30px rgba(0,0,0,.16);
  transition: transform .5s cubic-bezier(.22,.8,.3,1), box-shadow .3s ease;
  will-change: transform;
  display: block; cursor: pointer;
}
.mb-fan-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; transition: transform .45s cubic-bezier(.22,.8,.3,1); }
.mb-fan-card .mb-fan-initial, .mb-fan-card .mb-ph { transition: transform .45s cubic-bezier(.22,.8,.3,1); }
.mb-fan-card:hover { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px rgba(0,0,0,.24); }
.mb-fan-card:hover img, .mb-fan-card:hover .mb-fan-initial, .mb-fan-card:hover .mb-ph { transform: scale(1.04); }
.mb-fan-card:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.mb-fan-card.back { z-index: 1; transform: translateX(-92%) rotate(-8deg); }
.mb-fan-card.middle { z-index: 2; transform: translateX(-8%) rotate(6deg); }
.mb-fan-card.front { z-index: 3; transform: translateX(-50%) translateY(40px) rotate(-1.5deg); }
.mb-card:hover .mb-fan-card.back { transform: translateX(-104%) translateY(-2px) rotate(-13deg); }
.mb-card:hover .mb-fan-card.middle { transform: translateX(4%) translateY(-6px) rotate(10.5deg); }
.mb-card:hover .mb-fan-card.front { transform: translateX(-50%) translateY(48px) rotate(-3deg); }
.mb-fan-card.front img { object-position: 50% 50%; }
.mb-fan-badge {
  position: absolute; top: 13px; right: 13px; z-index: 4;
  background: var(--bg); color: var(--heading);
  font-size: 12.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.mb-sticker {
  position: absolute; z-index: 6; top: -8px; left: 2px;
  transform: rotate(-5deg);
  background: var(--chip); border: 1px solid var(--tint-line); color: var(--accent-pressed);
  font-size: 13px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(162,16,57,.12);
}
/* Initial-letter front layer (expert without a photo) */
.mb-fan-initial {
  aspect-ratio: 4/3; border-radius: 8px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.mb-fan-initial span {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--heading);
}
/* Placeholder tile (a guide without any photo): the tint
   treatment of .card-cover-ph / .card-cover-initial, sized to
   its slot — 4/3 inside a fan card. */
.mb-ph {
  background: var(--tint); color: var(--accent-pressed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -0.03em;
  width: 100%; aspect-ratio: 4/3; border-radius: 8px; font-size: 2.4rem;
}
/* Content side */
/* min-width: 0 — .mb-body is a grid item; without it a long guide
   title (nowrap h3) blows the column out past the card on mobile
   instead of ellipsizing (found on @quang's guide, 2026-10-26). */
.mb-body { min-width: 0; }
.mb-body h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0; }
.mb-line { font-size: 14.5px; color: var(--text); margin: 4px 0 0; line-height: 1.45; }
/* Expert identity — the whole text block is one link to the bio
   page (the mockup's .expert-head): heading, profile line, the
   sentence, then "View profile" as plain black text with a
   chevron — no pill, no border, no background. */
.mb-head {
  display: block;
  padding: 14px 16px; margin: -14px -16px 0;
  border-radius: 14px; cursor: pointer;
  transition: background .25s ease;
}
.mb-head:hover { background: var(--bg-alt); }
.mb-head:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
.mb-sub { font-size: 15px; color: var(--text); margin: 12px 0 0; line-height: 1.5; max-width: 46ch; }
.mb-view {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px;
  font-size: 15px; font-weight: 600; color: var(--heading); white-space: nowrap;
}
.mb-view svg { width: 15px; height: 15px; transition: transform .25s ease; }
.mb-head:hover .mb-view svg { transform: translateX(2px); }
/* Compact (single-guide) card */
.mb-card.compact { grid-template-columns: 272px 1fr; padding: 32px 36px; }
.mb-card.compact .mb-fan { height: 228px; }
.mb-card.compact .mb-fan-card { width: 164px; }
.mb-card.compact .mb-fan-card.front { transform: translateX(-50%) translateY(32px) rotate(-1.5deg); }
.mb-card.compact:hover .mb-fan-card.front { transform: translateX(-50%) translateY(39px) rotate(-3deg); }
/* Mobile layout (the design's container query at 700px, as a
   viewport media query — the portal card is full-width) */
@media (max-width: 700px) {
  .mb-card, .mb-card.compact { grid-template-columns: 1fr; padding: 26px 22px 28px; row-gap: 6px; }
  .mb-fan { height: 238px; margin-top: 6px; }
  .mb-fan-card { width: 172px; }
  .mb-card.compact .mb-fan { height: 238px; }
  .mb-card.compact .mb-fan-card { width: 172px; }
  .mb-body { margin-top: 14px; }
  .mb-view { font-size: 14px; }
  .mb-sticker { left: 50%; margin-left: -118px; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-fan-card, .mb-fan-card img, .mb-fan-card .mb-fan-initial, .mb-fan-card .mb-ph, .mb-head, .mb-view svg { transition: none; }
}
.guide-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.guide-desc { max-width: 46em; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.section-head .section-title { margin-bottom: 0; }
.carousel-meta { display: flex; align-items: center; gap: 14px; }
.spots-count { color: var(--text-muted); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--field-line); background: var(--glass-strong);
  color: var(--heading); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.carousel-btn:hover { border-color: var(--field-line-hover); }
.carousel-btn[disabled] { background: var(--bg-inset); color: var(--text-disabled); border-color: var(--line); cursor: not-allowed; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
/* Drag-to-scroll in progress (public/guide.js, mouse/pen pointers):
   snap and smooth scrolling step aside so the track follows the
   pointer; children stop receiving pointer events so hover states
   and text selection don't flicker mid-drag. Touch swiping stays the
   browser's native overflow scrolling above. */
.carousel-track.is-dragging {
  cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto;
  user-select: none; -webkit-user-select: none;
}
.carousel-track.is-dragging * { pointer-events: none; }

.spot-card {
  flex: 0 0 320px; max-width: 86vw; scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.spot-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--hover-line); transform: translateY(-3px);
}
/* Card covers are a FIXED 16:9 box on every card (design guide; Q's
   defect report 2026-10-25). The img is absolutely positioned inside
   the box: an in-flow img at height:100% of an aspect-ratio box can
   fall back to its natural height in some engines, and a portrait
   photo then stretches the whole card. Out of flow, the img can
   never resize the box — object-fit crops it instead. */
.spot-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-inset); flex: none; }
/* Positioning context for the cover badge on service cards (section 18). */
.spot-media-wrap { position: relative; flex: none; }
.spot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-media-empty { background: var(--tint); display: flex; align-items: center; justify-content: center; }
.spot-initial { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-pressed); }
/* v0.5.10: clickable card media (same destination + tracking as the card action). */
.spot-media-link { display: block; text-decoration: none; cursor: pointer; }
.spot-media-link:hover .spot-img { filter: brightness(1.05); }
/* v0.5.23: helper-rendered content images (img[data-pimg], see
   lib/html-utils imgAttrs) fade in over their frame. While a lazy
   photo is still fetching, the img is fully transparent — the
   browser's built-in loading placeholder (the "?" glyph some
   engines paint inside a pending <img>) is part of the replaced
   content, so it can never show; what the reader sees instead is
   the clean frame gray the parents already paint (.spot-media
   --bg-inset, .lb-stage --bg-inset, .svc-moment --bg-alt). The
   inline onload adds .pimg-on only when the load produced pixels
   (naturalWidth > 0), so after a proxy-failure fallback swap the
   photo fades in on the ORIGINAL's load, not before. The img's
   own #F7F7F7 background backs the surfaces where the img box
   itself is the visible frame, and .pimg-on restores full
   opacity with no layout shift (opacity only).
   The base rule is wrapped in :where() (zero specificity) on
   purpose: a surface's own img rule always wins — .card-cover
   keeps its --bg-inset tone, .ab-fm-node img its --bg-alt, and
   .mb-fan-card img keeps its transform transition (the fan
   animation; fan photos still gate on opacity, they just swap
   without the fade rather than breaking the fan's motion). */
:where(img[data-pimg]) { opacity: 0; transition: opacity .35s ease; background: #F7F7F7; }
img[data-pimg].pimg-on { opacity: 1; }
/* v0.5.24: images embedded inside rich-text descriptions
   (sanitizeRichText's images option emits them through imgAttrs
   with class desc-img): block-level, never wider than the text
   column, soft corners per the design guide. The fade above
   applies via data-pimg like every other content image. */
.desc-img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: 12px; }
/* v0.5.25: terminal-failure collapse (the state machine's last
   branch, lib/html-utils IMG_ONERROR_V2 + its mirrors). When a
   photo has failed through the whole chain (proxy, proxy retry,
   original) it is dead for this view: the img hides instead of
   sitting forever as a clean-gray frame that reads as "still
   loading". A dedicated media wrapper marked data-pwrap (hero
   tiles, moment figures, review photo tiles/thumbs, Flex fan
   frames) collapses with its img; wrappers are media-only by
   construction, so captions and text in shared containers never
   hide. Surfaces with a designed letter fallback (avatars, card
   covers, spot media, checkout thumb, More-by fan layers, About
   face tiles) render that fallback hidden right after the img
   with data-pfback, and the sibling rule below reveals it in
   exactly the form the surface renders when it has no photo at
   all. Per-view only: a reload restores the photo if the origin
   has recovered. */
img.pimg-dead { display: none !important; }
[data-pwrap].pimg-dead { display: none !important; }
[data-pfback] { display: none !important; }
img.pimg-dead ~ [data-pfback] { display: flex !important; }
.spot-media:has(> img.pimg-dead) { background: var(--tint); display: flex; align-items: center; justify-content: center; }
.fx-photo.pimg-dead { display: none !important; }
/* Card rhythm (Q's spot-card redesign, PHASE1-WS3 section 24): no
   reserved heights — the title takes its natural 1–2 lines and the
   vertical rhythm comes from per-part margins tuned with Q: title to
   tip 8px, tip to description 12px, description to actions 16px. All
   card text under the title shares the Body Small token (tip,
   description, more/less, action button). */
.spot-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.spot-body p { margin: 0; }
.spot-name {
  margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spot-body .card-meta { margin-bottom: 10px; }
.spot-body > p { margin-bottom: 10px; }
.spot-body > p:last-of-type { margin-bottom: 0; }
/* Expert tip, boxless: gold tip-marks asset right-aligned above the
   tip text; the text clamps at 3 lines like the description. */
.spot-tip { margin-bottom: 12px; }
.tip-marks { display: flex; justify-content: flex-end; line-height: 0; margin-bottom: 6px; }
.spot-tip p {
  margin: 0; font-weight: 600; color: var(--heading);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.spot-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 16px; }
.spot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.spot-action { font-weight: 600; font-size: .95rem; }
.spot-action-primary { font-weight: 700; }
/* The primary card action (View map on place cards, More details on
   service cards) as a full-width white ghost button at the Body
   Small size instead of the button base 16px — one button style for
   every card action (Q, PHASE1-WS3 section 24.3). */
.spot-btn { align-self: stretch; font-size: .875rem; }
.spot-desc.is-expandable { cursor: pointer; }
.spot-desc.is-clamped .spot-desc-text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.more-btn {
  background: none; border: none; padding: 0; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 5px;
  font: var(--type-small); color: var(--text); cursor: pointer; text-transform: lowercase;
}
.more-btn svg { transition: transform .18s ease; }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.spot-desc.is-expandable:hover .more-btn { color: var(--heading); }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .spot-card { flex-basis: 272px; }
  .carousel-meta { width: 100%; justify-content: space-between; }
}

/* --- 15. Typography scale (DESIGN-STYLE-GUIDE.md section 3 — the
   standard scale for ALL pages in the current guide, Q 2026-10-23).
   Five steps: article H1 32/600/1.125, section H2 22/600/1.25,
   item-title H3 16/600/1.25, body 16/400/1.5, small 14/400/1.4.
   Text colours are the guide's two-value system: headings use the
   --heading token; everything else uses --text / --text-muted, which
   section 1 sets to one shared grey (the revised guide retired the
   two older mid-grey text values) — body text takes --text directly
   and needs no portal-specific colour token. Marketing display type
   (the hero) keeps section 3's display exception. This section sits
   last so its applications win cascade ties against the component
   rules above. The guide's companion UI sizes are applied at their
   component rules: nav links 16px/500 in --text, deepening to
   --heading on hover (section 3 above; hover only deepens an
   element's own colour family, per guide section 5); form labels
   14px/600 in --heading and form controls (input/select/textarea)
   16px/400 in --heading, never below 16px (section 8 above, plus
   the global control rule in section 1; iOS Safari auto-zooms
   smaller controls). Text on coral surfaces is white at 16px/600+
   — .btn in section 4 already complies, and .form-submit was
   raised to 16px for the same rule. Surfaces are flat throughout
   and section backgrounds are white / --bg-alt only, per the
   current guide (no shaded colour transitions anywhere; the one
   coral-tinted shadow lives on the primary button only). */
:root {
  --type-h1: 600 32px/1.125 var(--font);
  --type-h2: 600 22px/1.25 var(--font);
  --type-h3: 600 16px/1.25 var(--font);
  --type-body: 400 16px/1.5 var(--font);
  --type-small: 400 14px/1.4 var(--font);
}
.t-h1 { font: var(--type-h1); color: var(--heading); }
.t-h2 { font: var(--type-h2); color: var(--heading); }
.t-h3 { font: var(--type-h3); color: var(--heading); }
.t-body { font: var(--type-body); color: var(--text); }
.t-small { font: var(--type-small); }

body { color: var(--text); }
h3 { font: var(--type-h3); }
.section-title { font: var(--type-h2); }
.card-title { font: var(--type-h3); }
.guide-title { font: var(--type-h1); }
.spot-name { font: var(--type-h3); }
.guide-desc { font: var(--type-body); color: var(--text); }
/* Spot-card text is Body Small throughout (Q's redesign, section 24).
   The expert tip keeps the size but reads bolder and darker than the
   description so the two are distinguishable at a glance (Q,
   2026-10-25) — typography only, no box or new colour. */
.spot-desc { font: var(--type-small); color: var(--text); }
.spots-count { font: var(--type-small); }
.spot-tip p { font: var(--type-small); font-weight: 600; color: var(--heading); }
.card-meta { font: var(--type-small); }
.price-from { font: var(--type-small); }
/* Status/brand chips take the scale's small size and leading; their
   600 weight stays — that is the guide section 5 chip component spec. */
.chip { font-size: 14px; line-height: 1.4; }

/* --- 16. Expert profile page --------------------------------------------
   The expert's published-guide cards (/@<handle>) + shared profile
   bits. Tokens only; type comes straight from the section 15 scale
   (H1 name, H2 section title, H3 card titles, Body bio, Body Small
   meta). The avatar placeholder reuses the spot media's tint +
   initial-letter pattern at profile size. The two-column card
   header layout lives in section 17. */
.profile-avatar {
  width: 112px; height: 112px; border-radius: var(--r-pill); flex: none;
  object-fit: cover; background: var(--bg-inset); border: 1px solid var(--line);
}
.profile-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); border-color: var(--tint-line);
  color: var(--accent-pressed); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em;
}
.profile-name { font: var(--type-h1); margin: 0; }
.profile-meta { font: var(--type-small); color: var(--text-muted); margin: 6px 0 0; }
.profile-bio { font: var(--type-body); color: var(--text); max-width: 46em; margin-top: 26px; }
.profile-bio p:last-child { margin-bottom: 0; }
.card-cover-ph { background: var(--tint); display: flex; align-items: center; justify-content: center; }
.card-cover-initial { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-pressed); }
/* Guide cards (Q, §11.1 + §15): the city badge overlays the cover's
   top-left corner (the section 18 badge component, light variant),
   and the body shows the guide's own description clamped to 2 lines
   (same clamp pattern as section 14) so every card body stays
   uniform. The wrap is the badge's positioning context. */
.card-cover-wrap { position: relative; }
.guide-card .card-desc {
  font: var(--type-body); color: var(--text); margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) {
  .profile-avatar { width: 84px; height: 84px; }
  .profile-avatar-fallback { font-size: 2rem; }
}

/* --- 17. Profile header: Airbnb-style two-column card layout -------------
   (PHASE1-WS3-PORTAL.md section 13.) Left: a white profile card
   (radius --r-xl, --shadow-panel) with the avatar, an optional
   verified badge, name/meta, hairline-separated stat rows and the
   social icon buttons. Right: the About column — title + Share
   button row, the icon fact list (one row per present fact), the
   bio. Tokens only; hover states deepen each element's own colour
   family (guide section 5), never switch to coral. */
/* (Portal §17, guide principle 9: no divider separates the header zone
   from the Guides section — whitespace does. The bottom padding was
   8px when a grey band below carried the separation; with both
   sections white it is 40px, so the gap to the next section's H2
   anchor totals 96px.) */
.profile-top { padding-bottom: 40px; }
.profile-layout {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.profile-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-panel);
  padding: 28px;
}
.profile-avatar-wrap { position: relative; width: 112px; margin-bottom: 20px; }
.profile-verified-badge {
  position: absolute; right: 0; bottom: 0;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--accent); color: #FFFFFF; border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.profile-verified-badge svg { display: block; }
.profile-stats { margin-top: 22px; }
.profile-stat { padding: 13px 0; border-top: 1px solid var(--line); }
.profile-stat-value {
  font: var(--type-h2); color: var(--heading);
  display: flex; align-items: center; gap: 6px;
}
.profile-stat-star { display: inline-flex; color: var(--heading); }
.profile-stat-star svg { fill: currentColor; display: block; }
.profile-stat-label { font: var(--type-small); color: var(--text-muted); margin-top: 2px; }
.profile-socials { display: flex; gap: 10px; margin-top: 20px; }
.profile-social-btn {
  width: 42px; height: 42px; border-radius: var(--r-pill); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--field-line); color: var(--heading);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  transition: background .15s ease, border-color .15s ease;
}
.profile-social-btn:hover { background: var(--glass-strong); border-color: var(--field-line-hover); color: var(--heading); }
.profile-about-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.profile-about-title { margin: 0; }
.profile-share-btn { flex: none; padding: 9px 18px; }
.profile-share-btn svg { display: block; }
.profile-facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.profile-fact { display: flex; gap: 12px; align-items: flex-start; font: var(--type-body); color: var(--text); }
.profile-fact-icon { display: inline-flex; flex: none; color: var(--heading); margin-top: 2px; }
@media (max-width: 960px) {
  .profile-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .profile-layout { grid-template-columns: 1fr; gap: 28px; }
  .profile-card { padding: 24px; }
  .profile-avatar-wrap { width: 84px; }
}

/* --- 18. Badges (DESIGN-STYLE-GUIDE.md section 5, "Badge") ----------------
   Q's component architecture: a base shape, colour variants, and a
   position utility — nothing else. The base font is the project font
   token (the guide's font stack), never a system stack. badge-light
   is the on-image variant (white surface + soft shadow so the label
   reads over photos and tint placeholders); badge-dark is for light
   surfaces. badge-top-left floats the badge over a cover's top-left
   corner — the cover needs a positioned wrap (`.card-cover-wrap` on
   guide cards, `.spot-media-wrap` on spot/service cards). */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.badge-light { background: var(--bg); color: var(--heading); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.badge-dark { background: var(--heading); color: #FFFFFF; }
.badge-top-left { position: absolute; top: 12px; left: 12px; z-index: 10; }

/* --- 19. Home discover hero (v0.2.5, Q 2026-10-23; search row
   removed in v0.2.6, Q 2026-10-23) -----------------------------------
   Centred hero per Q's reference layout, in the coral guide's own
   language: flat white hero, the landing display size for the H1
   (guide section 3 exception — the .hero h1 rule in section 5),
   hero-sub for the "or create your own" line (its link takes the
   global accent-text colour), and the city pill row centred in a
   max-width 672px column under it. (The v0.2.5 search row + Explore
   button were removed at Q's direction, together with their CSS —
   the hero keeps only the title line and the cities.) City pills
   follow the reference's "Guests mention" shape — white pill, soft
   panel shadow, small round city artwork + name, NO counts — with
   neutral hover (border deepens to --hover-line, per guide
   section 5) and a heading-colour ring for the active pill.
   Tokens only. */
.hero-discover { text-align: center; }
/* (v0.2.7, Q 2026-10-23: the discover H1 stepped DOWN from the
   landing display size to the standard H1 scale, 32px. v0.2.9, Q
   2026-10-23: 32px read TOO small — the H1 now sits between the
   two, a fluid 32px → 48px at 700 with tightened tracking, still
   well under the old display size.) */
.hero-discover h1 {
  margin-left: auto; margin-right: auto;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1;
  font-weight: 700; letter-spacing: -0.025em;
}
.hero-create { margin-left: auto; margin-right: auto; }
.hero-create a { font-weight: 600; }
.discover-box { max-width: 672px; margin: 28px auto 0; }
.city-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.city-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 44px;
  padding: 0 16px 0 6px; background: var(--bg);
  border: 1px solid var(--field-line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-panel);
  font: 600 14px/1.4 var(--font); color: var(--heading);
  text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.city-pill:hover { color: var(--heading); }
.city-pill:hover { border-color: var(--hover-line); }
.city-pill.is-active { box-shadow: 0 0 0 1px var(--heading), var(--shadow-panel); border-color: var(--heading); }
.city-pill-img {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  object-fit: cover; background: var(--bg-inset);
}
.city-pill-img-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-2); color: var(--accent-text);
  font: 600 14px/1 var(--font);
}
.city-pill-img-ph svg { width: 16px; height: 16px; }
/* Province pill row (Q 2026-11-17, mock v5): one line that scrolls
   sideways inside the 672px discover box (about 5.5 pills on
   desktop), edges fading out so the cut reads as "more". Vertical
   padding is symmetric so the prev/next buttons, at top 50%, sit on
   the pills' centre line. Buttons are desktop only; phones swipe. */
.pill-rail { position: relative; }
.pill-rail .city-pills {
  flex-wrap: nowrap; justify-content: safe center;
  overflow-x: auto; scrollbar-width: none;
  padding: 10px 4px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.pill-rail .city-pills::-webkit-scrollbar { display: none; }
.pill-rail .city-pill { flex: none; white-space: nowrap; }
.pill-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0 0 2px;
  border: 1px solid var(--field-line); border-radius: 50%;
  background: var(--bg); box-shadow: var(--shadow-panel);
  font: 600 20px/1 var(--font); color: var(--heading); cursor: pointer;
}
.pill-nav:hover { border-color: var(--hover-line); }
.pill-prev { left: -14px; }
.pill-next { right: -14px; }
.pill-nav[hidden] { display: none; }
@media (max-width: 700px) {
  .pill-rail { margin-left: -16px; margin-right: -16px; }
  .pill-rail .city-pills { justify-content: flex-start; padding-left: 16px; padding-right: 16px; }
  .pill-nav { display: none !important; }
}
/* Per-city guide groups below the hero (v0.2.7, Q 2026-10-23 —
   replaces the single "Guides from local experts" grid): each group
   is headed by the city name at the H2 scale with the city's pill
   artwork as a small round thumb; groups are spaced apart and
   carry a scroll margin so a pill jump does not hide the heading
   under the sticky header. */
.city-group { scroll-margin-top: 90px; border-radius: var(--r-lg); }
/* (The v0.2.8 pill-jump highlight was removed in v0.2.9 together
   with the in-page pill behaviour — pills are links now.) */
.city-group + .city-group { margin-top: 48px; }
.city-group-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.city-group-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--heading); text-decoration: none;
}
.city-group-link:hover { color: var(--heading); }
/* Overflow affordances (v0.9.8, Q 2026-11-02 — approved mock,
   Option C): the group header is a row — city title left, and
   when the shelf hides guides (total > the 12 shown) an explicit
   coral link on the right; under such a grid sits a full-width
   button (the .more-by-btn component, spaced off the grid by the
   rule below). Groups at or under the cap render neither,
   exactly as before. Tokens only. */
.city-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.city-group-head .city-group-title { margin-bottom: 0; }
.city-group-see-all {
  font: 600 16px/1.4 var(--font); color: var(--accent-text);
  text-decoration: none; white-space: nowrap;
}
.city-group-see-all:hover { color: var(--accent-pressed); text-decoration: underline; }
.city-group-more-btn { margin-top: 20px; }
/* City page (/city/<slug>, v0.2.9): header with the city's artwork
   at 64px beside the H1-scale name, then a factual count line. */
.city-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.city-head-art { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.city-sub { font: var(--type-body); color: var(--text); margin-bottom: 28px; }
.city-group-art { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.city-group-empty { font: var(--type-body); color: var(--text); }
#guides { scroll-margin-top: 70px; }
@media (max-width: 600px) {
  .city-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .city-pill { flex: none; }
}

/* --- 20. Dashboards (WS4: My bookings / incoming bookings) ----------------
   The thin custom dashboards (portalDash) reuse the public pages'
   components — cards, chips, state panels, form card, detail list —
   and add only the account bar and the booking list rhythm here.
   Tokens only; the account bar is a small chrome strip (the guide's
   --bg-alt surface), never a section background statement. */
.dash-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.dash-bar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.dash-user { font: var(--type-small); color: var(--text); }
.dash-user strong { color: var(--heading); font-weight: 600; }
.dash-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.dash-nav a { font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.dash-nav a:hover { color: var(--heading); }
.dash-nav a.is-active { color: var(--heading); font-weight: 600; }
.dash-signout {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 500 16px/1.4 var(--font); color: var(--text);
}
.dash-signout:hover { color: var(--heading); }
.signin-wrap { max-width: 540px; margin: 0 auto; }
/* WS7 sign-up: the quiet line under the auth cards ("New to
   NextbyLocal? …" / "Already have an account? …"), the @-prefixed
   username input (same geometry as the editor's slug wrap, section
   22, but dash-scoped so the two can never collide), and the small
   note line under a field (password hint, username availability). */
.form-alt { text-align: center; margin: 18px 0 0; font-size: .95rem; color: var(--text-muted); }
.dash-slug-wrap { display: flex; }
.dash-slug-prefix {
  display: inline-flex; align-items: center; padding: 0 12px;
  background: var(--bg-alt); border: 1px solid var(--field-line); border-right: 0;
  border-radius: 10px 0 0 10px;
  font-size: 16px; color: var(--text); white-space: nowrap;
}
.dash-slug-wrap input { border-radius: 0 10px 10px 0 !important; flex: 1; min-width: 0; }
.field-note { display: none; font-size: .82rem; color: var(--text-muted); margin-top: 6px; }
.field-note.visible { display: block; }
.field-note.is-ok { color: var(--ok); }
.field-note.is-error { color: var(--error); }
/* v0.5.21 expert sign-up verification: the self-hosted captcha row
   (server-rendered SVG + refresh button beside the answer input),
   the text-style buttons inside the code-entry panel (Resend /
   back), and the panel's resend row spacing. Colours and radii
   stay on the shared form tokens — no new palette. */
.captcha-row { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.captcha-img { display: inline-flex; align-items: center; font-size: .85rem; color: var(--text-muted); }
.captcha-img svg { display: block; border: 1px solid var(--field-line); border-radius: 10px; max-width: 100%; height: auto; }
.captcha-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; flex: 0 0 46px; border: 1px solid var(--field-line); border-radius: 10px;
  background: #FFFFFF; color: var(--heading); cursor: pointer;
}
.captcha-refresh:hover { border-color: var(--field-line-hover); }
.link-button {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font: inherit; color: var(--accent-text); text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:disabled { color: var(--text-muted); cursor: default; }
.verify-resend-row { margin-top: 16px; }
.dash-sub { font: var(--type-body); color: var(--text); }
.booking-list { display: grid; gap: 16px; margin-top: 24px; }
.booking-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.booking-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
.booking-invoice { font-size: 14px; color: var(--text-muted); }
.booking-total { color: var(--heading); font-weight: 700; font-size: 1.05rem; }
.booking-detail-list { margin: 20px 0 28px; }
@media (max-width: 600px) {
  .dash-nav { margin-left: 0; }
}

/* --- 21. Service page (WS3 redesign, v0.2.14) ------------------------------
   The Airbnb-shaped service page in the locked coral language: header
   + Share pill, photo mosaic with a photo-tour popup, an icon fact
   row, the "What you'll do" column (description with a plain-text
   Show more/less, included list, upcoming availability cards, the
   meeting point with an embedded Google Map, guest reviews), the
   sticky booking card with its calendar popup, and the full-width
   "Things to know" strip at the very bottom. On mobile the booking
   card becomes a bottom sheet opened from a sticky bottom bar.
   Tokens only; no gradients; the Next button is the theme's
   .btn.btn-primary (radius from section 4 — pill is hero/header
   only). */
/* v0.5.10: safety net against horizontal overflow on the service page. */
.svc { overflow-x: clip; }
.svc-back { margin-bottom: 10px; }
.svc-back a { color: var(--heading); text-decoration: none; }
.svc-back a:hover { color: var(--heading); text-decoration: underline; }
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc-title { margin-bottom: 6px; }
.svc-share { flex: none; }
.svc-sub { font: var(--type-body); color: var(--text); margin-bottom: 18px; }
.svc-sub strong { color: var(--heading); font-weight: 600; }

/* Hero photo strip (v0.4.0): one fixed height, every photo keeps
   its natural aspect ratio — the cropped mosaic grid is gone.
   Navigation follows the strip standard in section 23. */
.svc-hero-wrap { position: relative; }
.svc-hero {
  display: flex; gap: 8px; height: 440px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.svc-hero::-webkit-scrollbar { display: none; }
.svc-hero.is-dragging { cursor: grabbing; }
.svc-hero-tile {
  flex: 0 0 auto; height: 100%; border: 0; padding: 0; margin: 0;
  background: var(--bg-inset); cursor: pointer; overflow: hidden; display: block;
  border-radius: var(--r-lg);
}
.svc-hero-tile img { width: auto; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.svc-all-photos { position: absolute; right: 16px; bottom: 16px; z-index: 6; box-shadow: var(--shadow-panel); }
.svc-hero-empty {
  background: var(--tint); border-radius: var(--r-lg); height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.svc-hero-initial { font-size: 4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-pressed); }

/* Icon fact row (real fields only — the template omits missing facts). */
.svc-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; padding: 22px 0 2px; }
.svc-fact { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font: var(--type-body); }
.svc-fact svg { flex: none; }

/* Two-column layout + booking rail. */
.svc-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 52px; align-items: start; margin-top: 10px;
}
.svc-block { padding: 30px 0; border-top: 1px solid var(--line); }
.svc-main .svc-block:first-child { border-top: 0; padding-top: 22px; }
.svc-block h2 { margin-bottom: 14px; }

/* "What you'll do": clamped description + PLAIN faded toggle text
   (Q's final call — underlined #717171 text, no button box). */
.svc-desc.is-clamped .svc-desc-body { max-height: 10.5em; overflow: hidden; }
.svc-desc-body { font: var(--type-body); color: var(--text); }
.svc-desc-body p:last-child { margin-bottom: 0; }
.svc-more {
  background: none; border: 0; padding: 0; margin-top: 10px; cursor: pointer;
  font: 400 var(--type-small); color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.svc-more:hover { color: var(--heading); }

/* What's included (detailed list in the column). */
.svc-incl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-incl li { display: flex; gap: 10px; align-items: flex-start; font: var(--type-body); color: var(--text); }
.svc-incl li svg { flex: none; margin-top: 3px; color: var(--heading); }
/* What's not included (v0.5.35): the same list, the cross in
   muted grey instead of the check. */
.svc-notincl li svg { color: var(--text-muted); }
.svc-notincl li p { margin: 0; }

/* Host row + recommenders + expert card (v0.5.35 trust set).
   One accountable name in the host row; the crowd signal stays
   a separate slim line under it so the two never blur. */
.svc-host { display: flex; align-items: center; gap: 12px; padding-top: 18px; }
.svc-host-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.svc-host-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--heading); color: #fff; font-weight: 600; font-size: 15px;
}
.svc-host-line { font: var(--type-body); color: var(--text); margin: 0; }
.svc-host-checked { font: var(--type-small); color: var(--text-muted); margin: 2px 0 0; }
.svc-rec { padding-top: 12px; }
.svc-rec-stack {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0;
  padding: 0; cursor: pointer; font: var(--type-body); color: var(--heading); text-align: left;
}
.svc-rec-faces { display: inline-flex; align-items: center; flex: none; }
.svc-rec-face {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid #fff; margin-left: -10px; background: var(--bg-alt); display: block;
}
.svc-rec-face:first-child { margin-left: 0; }
.svc-rec-face-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--heading); color: #fff; font-weight: 600; font-size: 12px;
}
.svc-rec-more {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--heading); font: 600 var(--type-small);
}
.svc-rec-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.svc-rec-item:first-child { border-top: 0; padding-top: 2px; }
.svc-rec-item-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.svc-rec-item-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--heading); color: #fff; font-weight: 600; font-size: 16px;
}
.svc-rec-item-body { min-width: 0; }
.svc-rec-name { font-weight: 600; color: var(--heading); font-size: 16px; margin: 0; }
.svc-rec-handle { color: var(--text-muted); font-weight: 400; }
.svc-rec-guide { font: var(--type-small); color: var(--text-muted); margin: 2px 0 0; }
.svc-rec-why { font: 600 var(--type-small); color: var(--heading); margin: 10px 0 2px; }
.svc-rec-quote { font: var(--type-body); color: var(--text); margin: 0; }

/* Expert card (v0.5.35): the one place the full quote runs, in
   the content column after "What you'll do". */
.svc-expert-card { background: var(--bg-alt); border-radius: var(--r-lg); padding: 22px; }
.svc-expert-head { display: flex; gap: 14px; align-items: center; }
.svc-expert-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.svc-expert-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--heading); color: #fff; font-weight: 600; font-size: 20px;
}
.svc-expert-name { font: 600 18px/1.3 var(--font); color: var(--heading); margin: 0; }
.svc-expert-sub { font: var(--type-small); color: var(--text-muted); margin: 2px 0 0; }
.svc-expert-rec { font: 600 var(--type-body); color: var(--heading); margin: 16px 0 0; }
.svc-expert-quote { font: var(--type-body); color: var(--text); margin: 8px 0 0; }
.svc-expert-checked { font: var(--type-small); color: var(--text-muted); margin: 12px 0 0; }

/* Upcoming availability: horizontal session cards, no avatars. */
.svc-upcoming-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin-top: 6px; }
.svc-up-card {
  flex: 0 0 auto; min-width: 172px; display: flex; flex-direction: column; gap: 2px;
  align-items: flex-start; text-align: left; background: var(--bg);
  border: 1px solid var(--field-line); border-radius: var(--r-md);
  padding: 14px 16px; cursor: pointer; font: var(--type-body);
}
.svc-up-card:hover { border-color: var(--hover-line); }
.svc-up-date { font-weight: 600; color: var(--heading); }
.svc-up-time { color: var(--text); }
.svc-up-state { font: var(--type-small); color: var(--text-muted); }
.svc-up-state.is-low { color: var(--accent-text); font-weight: 600; }

/* Where we'll meet: note panel + embedded Google Map. */
.svc-meet-panel { background: var(--bg-alt); border-radius: var(--r-md); padding: 18px 20px; margin-top: 6px; }
.svc-meet-name { font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.svc-meet-addr { color: var(--text); margin-bottom: 6px; }
.svc-meet-note { font: var(--type-body); color: var(--text); }
.svc-meet-note p:last-child { margin-bottom: 0; }
.svc-map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--r-lg); margin-top: 16px; display: block; }
.svc-map-link { margin-top: 10px; margin-bottom: 0; }

/* Reviews. */
.svc-rev-star { color: var(--heading); display: inline-flex; vertical-align: -2px; }
.svc-rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; margin-top: 20px; }
.svc-rev-head { display: flex; align-items: center; gap: 12px; }
.svc-rev-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.svc-rev-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--heading); color: #fff; font-weight: 600; font-size: 16px;
}
.svc-rev-who { display: flex; flex-direction: column; }
.svc-rev-name { font-weight: 600; color: var(--heading); font-size: 16px; }
.svc-rev-loc { font: var(--type-small); color: var(--text-muted); }
.svc-rev-meta { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; }
.svc-stars { display: inline-flex; gap: 1px; color: var(--heading); }
.svc-rev-date { font: var(--type-small); color: var(--text-muted); }
.svc-rev-title { font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.svc-rev-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.svc-rev-photos img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.svc-rev-text { font: var(--type-body); color: var(--text); margin: 0; }
.svc-rev-all-row { margin-top: 26px; margin-bottom: 0; }
.svc-rev-all { padding: 13px 26px; font-weight: 600; }
.svc-rev-list { display: grid; gap: 30px; margin-top: 6px; }
/* "Show more" pagination under the modal list (v0.5.2). */
.svc-rev-more { margin-top: 30px; text-align: center; }
.svc-rev-count { font: var(--type-small); color: var(--text); margin: 0 0 12px; }
.svc-rev-more-btn { padding: 13px 26px; font-weight: 600; }
.svc-rev-more-btn[disabled] { opacity: .6; cursor: default; }
.svc-rev-more-error { font: var(--type-small); color: var(--accent-text); margin: 12px 0 0; }

/* Booking card (sticky rail on desktop; bottom sheet on mobile).
   v0.4.0: the sticky actually travels now — the rail stretches to
   the full content-column height (see .svc-rail below), so the
   card pins under the header on scroll-down, returns to its
   natural position on scroll-up, and stops at the column's end.
   The card is capped at the viewport height and scrolls
   internally rather than losing its bottom off-screen. */
/* v0.5.35: the cap is gone on desktop — the compressed widget
   (about 750px) fits normal viewport heights whole, and Q's rule
   is no internal scrolling there. The <=760px sheet below keeps
   its own cap, where a sheet taller than the screen must scroll. */
.bk-sheet { position: sticky; top: 88px; }
.bk-card {
  position: relative; background: var(--bg); border: 1px solid var(--field-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 24px;
}
.bk-sheet-close { display: none; }
.bk-price-line { font: var(--type-body); color: var(--text); margin-bottom: 2px; }
.bk-price-amount { font: 700 22px/1.25 var(--font); color: var(--heading); letter-spacing: -0.01em; }
.bk-price-per { color: var(--text); }
/* v0.5.35: the deadline line sits on a soft pink band so it
   reads as a kept promise, not a footnote. */
.bk-cancel-note { color: var(--accent-text); font: 600 var(--type-small); margin: 0 0 8px; background: var(--tint); padding: 7px 10px; border-radius: var(--r-sm); }
.bk-hold-note { font: var(--type-small); color: var(--text-muted); margin-bottom: 16px; }
.bk-signedin-note { font: var(--type-small); color: var(--text-muted); margin-bottom: 14px; }
/* WS8 guest claim: the two-option account choice at the top of
   the guest identity block (radio geometry mirrors
   .bk-private-label — 20px accent-coloured controls, 16px text). */
.bk-acct-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bk-acct-option {
  display: flex; gap: 10px; align-items: flex-start;
  font: 400 16px/1.4 var(--font); color: var(--text); cursor: pointer;
}
.bk-acct-option input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin-top: 1px; }
.bk-acct-option strong { color: var(--heading); font-weight: 600; }
.bk-date-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--field);
  padding: 11px 14px; font: 400 16px/1.4 var(--font); color: var(--heading); cursor: pointer;
}
.bk-date-btn:hover { border-color: var(--hover-line); }
.bk-date-btn svg { flex: none; }
.bk-stepper-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* v0.5.10: allow the stepper label to shrink instead of widening the card. */
.bk-stepper-text { display: flex; flex-direction: column; min-width: 0; }
.bk-stepper-name { font-weight: 600; color: var(--heading); font-size: 16px; }
.bk-stepper-sub { font: var(--type-small); color: var(--text-muted); }
.bk-private-label {
  display: flex; gap: 10px; align-items: flex-start;
  font: 400 16px/1.4 var(--font); color: var(--text); cursor: pointer;
}
.bk-private-label input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin-top: 1px; }
.bk-slots { display: grid; gap: 8px; }
.bk-slots .slot-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 14px; text-align: left; border-radius: var(--r-md);
}
.bk-slots .slot-btn .slot-left { display: inline; font-size: .82rem; }
/* v0.5.10: slot row children may shrink instead of widening the card. */
.bk-slots .slot-btn > * { min-width: 0; }
.slot-btn .slot-left--low { color: var(--accent-text); font-weight: 600; }
.bk-all-dates { width: 100%; margin-top: 12px; }
.bk-price { margin: 16px 0 4px; font: var(--type-small); color: var(--text); }
.bk-price-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
/* v0.5.10: price row labels may shrink instead of widening the card. */
.bk-price-row > span { min-width: 0; }
.bk-price-total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px;
  font: 600 16px/1.4 var(--font); color: var(--heading);
}
.bk-submit { width: 100%; margin-top: 8px; }
/* v0.5.35: the two small lines under the Total (rendered by
   booking.js with the price) and the backing line under Next. */
.bk-under-total { font: var(--type-small); color: var(--text-muted); margin: 8px 0 0; }
.bk-backed { font: var(--type-small); color: var(--text-muted); margin: 12px 0 0; }

/* Mobile booking bar + backdrop (the bar is rendered always, shown
   only on small screens; the sheet behaviour is in the media query). */
.bk-mobile-bar { display: none; }
.bk-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(34,34,34,.45); }

/* Popups: photo tour, all ratings, calendar. */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 130; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(34,34,34,.45); }
.modal-panel {
  position: relative; background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift); width: 100%; max-width: 640px;
  max-height: 88dvh; overflow-y: auto; padding: 24px;
}
.modal-panel-wide { max-width: 880px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.modal-head h2 { margin-bottom: 0; }
.modal-close {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  color: var(--heading); cursor: pointer;
}
.modal-close:hover { border-color: var(--hover-line); }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-tile { margin: 0; }
.pt-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
.pt-tile figcaption { font: var(--type-small); color: var(--text-muted); margin-top: 6px; }

/* Calendar popup. */
.svc-cal-panel { max-width: 420px; }
.svc-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.svc-cal-arrow {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--field-line); border-radius: 50%; background: var(--bg);
  color: var(--heading); cursor: pointer;
}
.svc-cal-arrow:hover { border-color: var(--hover-line); }
.svc-cal-arrow[disabled] { opacity: .35; cursor: not-allowed; }
.svc-cal-week, .svc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.svc-cal-week span {
  text-align: center; font: 600 var(--type-small); color: var(--text-muted); padding-bottom: 6px;
}
.svc-cal-day {
  position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0;
  font: 500 15px/1 var(--font); color: var(--heading);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.svc-cal-day.is-avail { cursor: pointer; font-weight: 600; }
.svc-cal-day.is-avail:hover { background: var(--hover); }
.svc-cal-day.is-avail::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.svc-cal-day.is-soldout { color: var(--text-muted); text-decoration: line-through; }
.svc-cal-day.is-out { color: var(--text-disabled); }
.svc-cal-day.is-selected { background: var(--accent); color: #fff; }
.svc-cal-day.is-selected::after { background: #fff; }
.svc-cal-legend { font: var(--type-small); color: var(--text-muted); margin: 14px 0 0; }

/* Things to know — full width at the very bottom; a tile renders
   only when its data exists (template-side rule). */
.svc-tok { border-top: 1px solid var(--line); padding: 34px 0 4px; margin-top: 4px; }
.svc-tok-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 36px; margin-top: 22px; }
.svc-tok-icon { color: var(--heading); display: inline-flex; margin-bottom: 10px; }
.svc-tok-tile h3 { margin-bottom: 6px; }
.svc-tok-text { font: var(--type-small); color: var(--text); }
.svc-tok-text p:last-child { margin-bottom: 0; }

.svc-main, .svc-rail { min-width: 0; }
/* The rail spans the full column height so the sticky booking
   card inside it has room to travel (v0.4.0). */
.svc-rail { align-self: stretch; }
@media (max-width: 1020px) {
  /* minmax(0, 1fr), not plain 1fr: a plain flexible column cannot
     shrink below the widest min-content inside it (the upcoming
     availability strip measures ~1096px of cards), which blew the
     whole page out horizontally on small screens. */
  .svc-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bk-sheet { position: static; max-height: none; overflow: visible; }
  .svc-tok-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .svc { padding-bottom: 96px; }
  .svc-hero { height: 260px; }
  .svc-hero-empty { height: 240px; }
  .svc-all-photos { right: 12px; bottom: 12px; }
  .svc-rev-grid { grid-template-columns: 1fr; }
  .svc-tok-grid { grid-template-columns: 1fr; }
  .svc-map-frame { height: 260px; }
  .pt-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 94dvh; border-radius: var(--r-lg); padding: 20px; }
  /* Booking card -> bottom sheet, opened from the sticky bar. */
  .bk-mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .bk-mb-text { display: flex; flex-direction: column; }
  .bk-mb-price { font: var(--type-body); color: var(--text); }
  .bk-mb-price strong { color: var(--heading); font-weight: 700; }
  .bk-mb-cancel { color: var(--accent-text); font: 600 var(--type-small); }
  .bk-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 115;
    transform: translateY(105%); transition: transform .3s ease;
    max-height: 92dvh; overflow-y: auto; background: var(--bg);
    border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lift);
  }
  .bk-sheet.open { transform: none; }
  .bk-sheet .bk-card { border: 0; box-shadow: none; border-radius: 0; }
  .bk-sheet .state-panel { margin: 20px; }
  .bk-sheet-close {
    display: flex; position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 36px; height: 36px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
    color: var(--heading); cursor: pointer;
  }
}

/* --- 22. Expert dashboard: My Guides, Guide Editor, Account Settings (WS6) --
   The approved guide-editor mock in the coral design language.
   Since v0.5.8 the dashboard uses the one shared site header
   (section 3 / section 27) — there is no separate app chrome —
   and only the ed-* component family lives here; colours come
   only from the section 1 tokens. Inputs stay at the global
   16px (section 1) everywhere — the iOS auto-zoom rule applies
   to the dashboard too. */
.btn-danger { background: var(--error); color: #FFFFFF; }
.btn-danger:hover { background: #A82E12; color: #FFFFFF; }
.btn-danger-outline { background: var(--bg); color: var(--error); border-color: var(--error-line); }
.btn-danger-outline:hover { border-color: var(--error); color: var(--error); }

.ed-main { padding: 28px 0 64px; }
.ed-narrow { max-width: 1020px; }
.ed-h1 { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 0; }
.ed-title-row { display: flex; align-items: center; gap: 10px; }
.ed-title-spacer { height: 22px; }
.ed-gear-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.ed-gear-btn:hover { background: var(--hover); color: var(--heading); }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ed-guide-card { text-decoration: none; }
.ed-untitled { color: var(--text-disabled); font-weight: 500; }
.ed-create-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 220px; border: 1.5px dashed var(--hover-line); border-radius: var(--r-lg);
  background: transparent; color: var(--text); font: 600 16px/1.4 var(--font); cursor: pointer;
}
.ed-create-card:hover { border-color: var(--heading); color: var(--heading); background: var(--hover); }

/* Modals */
.ed-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.ed-modal[hidden] { display: none; }
/* The confirm dialog guards every other modal (settings discard,
   location discard, deletes) — it must always paint on top. */
.ed-modal[data-modal="confirm"] { z-index: 300; }
.ed-modal-backdrop, [data-settings-backdrop] {
  position: absolute; inset: 0; background: rgba(34,34,34,.45);
}
.ed-modal-card {
  position: relative; background: var(--bg); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); width: 100%; max-width: 560px;
  max-height: 92dvh; overflow-y: auto; padding: 26px;
}
.ed-modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--heading); cursor: pointer;
}
.ed-modal-x:hover { background: var(--hover); }
.ed-modal-title { font-size: 22px; font-weight: 600; margin: 0 36px 14px 0; }
.ed-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ed-confirm-body { color: var(--text); margin-bottom: 6px; }

/* Create dialog + template picker */
.ed-create-modal { max-width: 640px; }
.ed-create-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-create-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 16px 18px; border: 1px solid var(--field-line); border-radius: var(--r-lg);
  background: var(--bg); cursor: pointer; font: inherit; text-align: center;
}
.ed-create-option:hover { border-color: var(--hover-line); box-shadow: var(--shadow-panel); }
.ed-create-option img { width: 132px; height: auto; }
.ed-create-option-title { font-size: 16px; font-weight: 600; color: var(--heading); }
.ed-create-option-sub { font-size: 14px; color: var(--text); }
.ed-templates-modal { max-width: 680px; }
.ed-template-list { display: flex; flex-direction: column; gap: 12px; }
.ed-template-card {
  display: flex; gap: 16px; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px;
}
.ed-template-title { font-size: 16px; font-weight: 600; color: var(--heading); }
.ed-template-meta { font-size: 14px; color: var(--text); margin: 2px 0 0; }
.ed-template-desc { font-size: 14px; color: var(--text); margin: 6px 0 0; }
.ed-template-preview { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ed-template-preview-item { font-size: 14px; color: var(--text); padding: 3px 0; }
.ed-template-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* Editor frame */
.ed-editor-main { display: flex; flex-direction: column; height: calc(100dvh - 65px); padding: 0; }
.ed-actionbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.ed-back { color: var(--heading); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ed-back:hover { color: var(--heading); text-decoration: underline; }
.ed-save-status { font-size: 14px; color: var(--text); white-space: nowrap; }
.ed-save-status.is-error { color: var(--error); font-weight: 600; }
.ed-save-status.is-offline { color: var(--warn); }
.ed-retry-btn {
  border: 0; background: transparent; color: var(--error); font: 600 14px var(--font);
  text-decoration: underline; cursor: pointer; padding: 0;
}
.ed-actionbar-spacer { flex: 1; }
.ed-view-live { color: var(--heading); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ed-view-live:hover { color: var(--heading); text-decoration: underline; }
/* v0.5.31: on a draft guide the View Live link keeps its layout
   box but is invisible and non-interactive (visibility, not
   display/hidden), so the publish cluster never changes size
   between Draft and Published and the guide switch cannot jump. */
.ed-view-live.is-reserved { visibility: hidden; }
.ed-pub { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
/* v0.5.31: the label/caption stack has ONE fixed width at every
   viewport — the wider of the two captions at 13px ("Not visible
   to the public" = 145px; "Live to everyone" = 101px, measured
   on prod). With the View Live slot reserved in Draft, nothing
   in the cluster changes width when the guide flips state, so
   the guide switch's box is identical in Draft and Published. */
.ed-pub-text { display: flex; flex-direction: column; line-height: 1.25; width: 145px; flex: none; }
.ed-pub-label { font-size: 16px; font-weight: 600; color: var(--heading); }
/* v0.5.31: the caption is a short fixed string now ("Live to
   everyone" / "Not visible to the public") inside the fixed-width
   stack above — the v0.5.29 360px ellipsis cap for the old
   "Live at <url>" text is gone; the full URL still rides in the
   caption's title and in the View Live link. */
.ed-pub-caption { font-size: 13px; color: var(--text); white-space: nowrap; }
.ed-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.ed-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ed-switch-track {
  width: 48px; height: 28px; border-radius: var(--r-pill);
  background: var(--bg-inset); border: 1px solid var(--field-line);
  transition: background .15s ease, border-color .15s ease; position: relative; display: block;
}
.ed-switch-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.ed-switch input:checked + .ed-switch-track { background: var(--accent); border-color: var(--accent); }
.ed-switch input:checked + .ed-switch-track::after { transform: translateX(20px); }
.ed-switch input:disabled + .ed-switch-track { opacity: .45; }
.ed-switch input:focus-visible + .ed-switch-track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

/* v0.5.29: the per-item publish switch on each tree row — a small
   neutral sibling of the guide switch (28x16, charcoal when on),
   deliberately NOT coral so the two levels can never be confused.
   On a draft guide the row switches render muted (the layout
   carries .is-guide-draft) but stay fully clickable. */
.ed-mini-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.ed-mini-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ed-mini-switch-track {
  width: 28px; height: 16px; border-radius: var(--r-pill);
  background: #DDDDDD; position: relative; display: block;
  transition: background .15s ease;
}
.ed-mini-switch-track::after {
  content: ''; position: absolute; top: 2.5px; left: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.ed-mini-switch input:checked + .ed-mini-switch-track { background: #222222; }
.ed-mini-switch input:checked + .ed-mini-switch-track::after { transform: translateX(11px); }
.ed-mini-switch input:disabled + .ed-mini-switch-track { opacity: .45; }
.ed-mini-switch input:focus-visible + .ed-mini-switch-track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #222222; }
.ed-layout.is-guide-draft .ed-mini-switch { opacity: .45; }

.ed-layout { display: grid; grid-template-columns: 340px 1fr; flex: 1; min-height: 0; }
.ed-tree-pane {
  border-right: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; min-height: 0;
}
.ed-tree-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line);
}
.ed-guide-title-row {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; padding: 4px;
  border-radius: var(--r-sm);
}
.ed-guide-title-row:hover { background: var(--hover); }
.ed-tree-thumb {
  width: 40px; height: 40px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0;
  background: var(--tint); color: var(--accent-pressed);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.ed-tree-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-tree-title {
  font-size: 16px; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-tree { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.ed-tree-foot { padding: 10px 12px; border-top: 1px solid var(--line); }
.ed-add-row {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font: 600 14px var(--font); color: var(--text); padding: 8px 6px; border-radius: var(--r-sm);
}
.ed-add-row:hover { background: var(--hover); color: var(--heading); }
.ed-cat { margin-bottom: 6px; }
.ed-cat-head { display: flex; align-items: center; gap: 2px; }
.ed-cat-toggle {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 8px 6px; border-radius: var(--r-sm); text-align: left;
}
.ed-cat-toggle:hover { background: var(--hover); }
.ed-cat-chevron { color: var(--text); font-size: 11px; width: 12px; flex-shrink: 0; }
.ed-cat-name {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-cat-name-static { padding: 8px 6px; display: block; }
.ed-cat-rename {
  flex: 1; font: 600 14px var(--font); color: var(--heading);
  border: 1px solid var(--field-line-hover); border-radius: var(--r-sm); padding: 5px 8px;
}
.ed-dots {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font-size: 15px; line-height: 1; letter-spacing: 1px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* v0.5.29: the ··· menus are always visible (no hover reveal);
   category rows carry the darker dots, item rows the lighter —
   the same parent/child hierarchy as the switches. */
.ed-cat-head .ed-dots { color: #222222; }
.ed-item-row .ed-dots { color: #A8A8A8; }
.ed-dots:hover { background: var(--bg-inset); color: var(--heading); }
.ed-cat-items { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.ed-item-row { display: flex; align-items: center; border-radius: var(--r-sm); }
.ed-item-row.is-selected { background: var(--bg-alt); }
.ed-item-main {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 6px; text-align: left; border-radius: var(--r-sm);
}
.ed-thumb { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.ed-thumb-video, .ed-thumb-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--accent-pressed); font-weight: 800; font-size: 15px;
}
.ed-item-title {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.ed-badge-service { background: var(--heading); color: #FFFFFF; }
.ed-badge-draft { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.ed-badge-paused { background: var(--bg-inset); color: var(--text); border: 1px solid var(--line); }
.ed-service-card-head .ed-badge-service {
  background: var(--chip); color: var(--accent-pressed); border: 1px solid var(--tint-line);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px;
}
.ed-ghost-row {
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 14px var(--font); color: var(--text); padding: 7px 6px; border-radius: var(--r-sm);
}
.ed-ghost-row:hover { background: var(--hover); color: var(--heading); }

/* Floating ⋯ menu */
.ed-menu {
  position: fixed; z-index: 300; min-width: 230px; max-width: 300px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: 6px;
}
.ed-menu[hidden] { display: none; }
.ed-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 15px var(--font); color: var(--heading);
  padding: 9px 10px; border-radius: var(--r-sm);
}
.ed-menu-item:hover:not([disabled]) { background: var(--hover); }
.ed-menu-item[disabled] { color: var(--text-disabled); cursor: not-allowed; }
.ed-menu-item.is-danger { color: var(--error); }
.ed-menu-glyph { margin-left: auto; color: var(--text); }
.ed-menu-note { display: block; width: 100%; font-size: 12.5px; color: var(--text); }
.ed-menu-divider { height: 1px; background: var(--line); margin: 5px 4px; }
.ed-menu-caption {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text); padding: 7px 10px 3px;
}

/* Form pane */
.ed-form-pane { min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.ed-form-mobile-bar { display: none; }
.ed-form-scroll { flex: 1; overflow-y: auto; padding: 26px 34px 60px; }
#ed-form { max-width: 1200px; }
.ed-form-placeholder { color: var(--text); padding-top: 30px; }
.ed-guide-empty { max-width: 520px; padding-top: 34px; }
.ed-guide-empty h2 { font-size: 22px; font-weight: 600; }
.ed-guide-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* v0.5.29: the form pane's only publish UI — the item's effective
   public status (dot + one line), computed from both switches. */
.ed-item-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin-bottom: 26px; }
.ed-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #C1C1C1; }
.ed-status-dot.is-coral { background: #FF385C; }
.ed-field-note { font-size: 14px; color: var(--text); margin: 6px 0 0; }
.ed-field-warn {
  font-size: 14px; color: var(--warn); background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: var(--r-sm);
  padding: 9px 12px; margin: 10px 0 0;
}
.ed-tip-field { position: relative; }
.ed-tip-marks { position: absolute; top: 0; right: 2px; opacity: .9; }
.ed-action-fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 16px 4px; margin: 4px 0 16px; }
.ed-action-fieldset legend { font-size: 14px; font-weight: 600; color: var(--heading); padding: 0 6px; }
.ed-paused-banner {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn);
  border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; margin-bottom: 18px;
}
.ed-service-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-panel);
}
.ed-service-card.is-paused { opacity: .55; }
.ed-service-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ed-service-price { font-weight: 700; color: var(--heading); }
.ed-service-title { font-size: 18px; font-weight: 600; color: var(--heading); }
.ed-service-supplier { font-size: 14px; color: var(--text); margin: 4px 0 0; }
.ed-service-actions { margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }

/* Media frame (two states) */
.ed-media {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line);
}
.ed-media.is-half { width: 50%; }
.ed-media.is-empty { display: flex; align-items: center; justify-content: center; }
.ed-media.has-error { border-color: var(--error-line); }
.ed-media-empty-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: min(420px, 88%); padding: 16px;
}
.ed-media-link-row { display: flex; gap: 8px; width: 100%; }
.ed-media-url {
  flex: 1; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--field);
}
.ed-media-upload {
  font-size: 14px; font-weight: 600; color: var(--accent-text);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.ed-media-error { color: var(--error); font-size: 14px; margin: 0; text-align: center; }
.ed-media-img, .ed-media-embed { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.ed-media-video-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--accent-pressed); background: var(--tint);
}
.ed-media-badge {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(34,34,34,.85); color: #FFFFFF;
  font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill);
}
.ed-media-x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #FFFFFF; color: var(--heading);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ed-media-x:hover { background: var(--hover); }

/* Slug inputs */
.ed-slug-wrap { display: flex; align-items: stretch; }
.ed-slug-prefix {
  display: inline-flex; align-items: center; padding: 0 10px;
  background: var(--bg-alt); border: 1px solid var(--field-line); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: 15px; color: var(--text); white-space: nowrap;
}
.ed-slug-wrap input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; flex: 1; min-width: 0; }

/* Bare inputs inside editor modals (gate rows, picker search,
   confirm extras, analytics range) get the .field treatment. */
.ed-gate-main input, .ed-gate-main select,
[data-confirm-extra] input, [data-confirm-extra] select,
#ed-picker-search, #ed-analytics-range, .ed-cat-rename {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--field);
  color: var(--heading); font: 400 16px var(--font);
}
.ed-gate-main label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
[data-confirm-extra] label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
[data-confirm-extra] select { width: 100%; }
[data-confirm-extra] .field { margin-top: 14px; }

/* Guide Settings popup */
/* v0.5.31: ONE fixed frame for every settings tab — the height is
   the tallest tab's natural height (General, 1155px measured on
   prod at the 880px width), capped by the modal's own padding box
   (100dvh - 36px). Switching tabs can no longer resize or
   recentre the dialog (the flicker); a taller tab scrolls inside
   its content pane. The <=760px sheet keeps height:auto below. */
.ed-settings-modal {
  max-width: 880px; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  height: min(1155px, calc(100dvh - 36px)); max-height: calc(100dvh - 36px);
}
.ed-settings-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); position: relative;
}
.ed-settings-thumb { width: 44px; height: 44px; }
.ed-settings-head-text { flex: 1; min-width: 0; }
.ed-settings-title {
  font-size: 16px; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-settings-sub { font-size: 13.5px; color: var(--text); }
.ed-settings-head .ed-modal-x { position: static; flex-shrink: 0; }
.ed-settings-body { display: grid; grid-template-columns: 190px 1fr; min-height: 0; flex: 1; }
.ed-settings-menu {
  border-right: 1px solid var(--line); padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px; background: var(--bg);
}
.ed-settings-menu button {
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 15px var(--font); color: var(--heading);
  padding: 9px 12px; border-radius: var(--r-pill);
}
.ed-settings-menu button:hover { background: var(--hover); }
.ed-settings-menu button.is-active { background: var(--bg-inset); font-weight: 600; }
.ed-settings-content { padding: 22px 24px 26px; overflow-y: auto; min-height: 0; }
.ed-settings-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 13px 20px; border-top: 1px solid var(--line);
}
.ed-settings-saved { font-size: 14px; color: var(--text); margin-right: auto; }
.ed-danger-zone { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.ed-danger-zone h3 { font-size: 15px; font-weight: 600; color: var(--error); margin-bottom: 4px; }
.ed-danger-zone p { font-size: 14px; }

/* Analytics */
.ed-analytics-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ed-analytics-range-label { font-size: 14px; font-weight: 600; color: var(--heading); }
.ed-an-empty { padding: 26px 10px; text-align: left; }
.ed-an-empty h3 { font-size: 18px; font-weight: 600; }
.ed-an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.ed-an-tile {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 2px;
}
.ed-an-tile-label { font-size: 13px; font-weight: 600; color: var(--text); }
.ed-an-tile-value { font-size: 24px; font-weight: 700; color: var(--heading); line-height: 1.2; }
.ed-an-delta { font-size: 12.5px; color: var(--text); }
.ed-an-h { font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
.ed-an-block { display: flex; flex-direction: column; gap: 8px; }
.ed-an-row, .ed-an-click-row, .ed-an-source-row {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px;
}
.ed-an-click-row { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
.ed-an-click-row .ed-thumb { grid-row: span 2; }
.ed-an-click-name { font-size: 15px; color: var(--heading); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-an-click-num { font-size: 13.5px; color: var(--text); }
.ed-an-row-label { font-size: 14.5px; color: var(--heading); }
.ed-an-row-num, .ed-an-source-num { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.ed-bar-track { height: 8px; border-radius: var(--r-pill); background: #F0F0F0; overflow: hidden; display: block; }
.ed-bar-fill { display: block; height: 100%; background: var(--heading); border-radius: var(--r-pill); }
.ed-an-chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ed-chip {
  border: 1px solid var(--field-line); background: var(--bg); color: var(--heading);
  font: 600 14px var(--font); padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer;
}
.ed-chip:hover { background: var(--hover); }
.ed-chip.is-active { background: var(--heading); color: #FFFFFF; border-color: var(--heading); }
.ed-an-booking-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14.5px; color: var(--heading); padding: 4px 0;
}
.ed-an-booking-row.is-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 600; }
.ed-an-booking-num { color: var(--text); white-space: nowrap; }

/* Publish gate */
.ed-gate-modal { max-width: 480px; }
.ed-gate-intro { color: var(--text); margin-bottom: 16px; }
.ed-gate-row { display: flex; gap: 12px; padding: 10px 0; }
.ed-gate-state { width: 22px; flex-shrink: 0; font-weight: 700; color: var(--ok); padding-top: 2px; }
.ed-gate-main { flex: 1; min-width: 0; }
.ed-gate-main input { width: 100%; }
.ed-gate-main .ed-slug-wrap input { width: auto; }
.ed-gate-done-label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.ed-gate-done-value { display: block; font-size: 14.5px; color: var(--text); }
#ed-gate-warning { margin-top: 14px; }

/* Service picker */
.ed-picker-modal { max-width: 620px; }
.ed-picker-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ed-picker-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px;
}
.ed-picker-main { flex: 1; min-width: 0; }
.ed-picker-title { font-size: 15.5px; font-weight: 600; color: var(--heading); }
.ed-picker-meta { font-size: 13.5px; color: var(--text); margin: 2px 0 0; }
.ed-picker-in { font-size: 13.5px; font-weight: 600; color: var(--text-disabled); white-space: nowrap; }

/* Import / Export */
.ed-import-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ed-import-block:first-child { padding-top: 0; }
.ed-import-block:last-child { border-bottom: 0; }
.ed-import-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ed-import-block p { font-size: 14.5px; }
#ed-import-text {
  display: block; width: 100%; margin: 0 0 12px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--field);
  font: 400 16px/1.5 var(--font); color: var(--heading); resize: vertical;
}
#ed-import-text:hover { border-color: var(--line-strong); }
#ed-import-text:focus { outline: none; border-color: var(--heading); }

/* Account Settings page */
body.ed-account-body { background: var(--bg-alt); }
.back-link-quiet { color: var(--heading); font-size: 15px; font-weight: 600; text-decoration: none; }
.back-link-quiet:hover { color: var(--heading); text-decoration: underline; }
.back-link { color: var(--heading); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--heading); text-decoration: underline; }
.ed-account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.ed-account-menu { display: flex; flex-direction: column; gap: 2px; }
.ed-account-menu button {
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 15.5px var(--font); color: var(--heading);
  padding: 10px 14px; border-radius: var(--r-pill);
}
.ed-account-menu button:hover { background: #FFFFFF; }
.ed-account-menu button.is-active { background: #FFFFFF; font-weight: 600; box-shadow: var(--shadow-panel); }
/* v0.5.21: menu entries that are links (the tourist settings'
   "My bookings") get the button's exact geometry and hover, so a
   mixed menu reads as one list. */
.ed-account-menu a {
  text-align: left; text-decoration: none;
  font: 500 15.5px var(--font); color: var(--heading);
  padding: 10px 14px; border-radius: var(--r-pill);
}
.ed-account-menu a:hover { background: #FFFFFF; }
.ed-account-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel); padding: 26px 28px 30px;
}
.ed-acct-h { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.ed-photo-row { display: flex; align-items: center; gap: 14px; }
.ed-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ed-photo-ph {
  background: var(--heading); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
}
.ed-profile-url { font-size: 14px; color: var(--text); }
.ed-copy-link {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font: 600 14px var(--font); color: var(--accent-text); text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-form-msg { font-size: 14.5px; color: var(--ok); min-height: 1.2em; margin: 10px 0; }
.ed-form-msg.is-error { color: var(--error); }
.ed-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--heading);
}
.ed-toggle-row:last-of-type { border-bottom: 0; }
.ed-stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.ed-stat-tile {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.ed-stat-value { font-size: 22px; font-weight: 700; color: var(--heading); }
.ed-stat-label { font-size: 13px; color: var(--text); }
.ed-history-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--heading);
}
.ed-history-row:last-child { border-bottom: 0; }

/* WS6 mobile (≤760px, the approved mock): My Guides stacks; the
   Editor becomes two screens (Contents ↔ form) under sticky bars;
   popups become near-full-screen sheets; the settings/account
   menus turn into horizontal pill rows; nothing scrolls sideways. */
@media (max-width: 760px) {
  .ed-main { padding: 20px 0 48px; }
  .ed-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-create-card { min-height: 150px; }
  .ed-modal { padding: 10px; }
  .ed-modal-card { max-height: 96dvh; padding: 20px; border-radius: var(--r-lg); }
  .ed-create-options { grid-template-columns: 1fr; }
  .ed-create-option img { width: 120px; }
  .ed-template-card { flex-direction: column; }
  .ed-template-actions { flex-direction: row; }

  /* Editor: two screens */
  .ed-editor-main { height: calc(100dvh - 65px); }
  .ed-actionbar { gap: 10px 14px; padding: 8px 14px; }
  .ed-pub-caption { display: none; }
  .ed-layout { display: block; position: relative; }
  .ed-tree-pane { border-right: 0; height: 100%; }
  .ed-form-pane {
    display: none; position: absolute; inset: 0; background: var(--bg); z-index: 5;
  }
  .ed-layout.show-form .ed-form-pane { display: flex; }
  .ed-layout.show-form .ed-tree-pane { visibility: hidden; }
  .ed-form-mobile-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: var(--bg); z-index: 2;
  }
  .ed-back-contents {
    border: 0; background: transparent; cursor: pointer; padding: 6px 0;
    font: 600 15px var(--font); color: var(--heading); white-space: nowrap;
  }
  .ed-form-mobile-title {
    font-size: 15px; font-weight: 600; color: var(--heading);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ed-form-scroll { padding: 18px 16px 44px; }
  .ed-media.is-half { width: 100%; }
  .ed-dots { opacity: 1; width: 40px; height: 40px; }
  .ed-menu-item { min-height: 44px; }
  .ed-item-main { padding: 9px 6px; }

  /* Settings popup → sheet with a horizontal tab row */
  .ed-settings-modal { max-height: 96dvh; height: auto; }
  .ed-settings-body { display: block; }
  .ed-settings-menu {
    flex-direction: row; gap: 6px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px;
  }
  .ed-settings-menu button { white-space: nowrap; }
  .ed-settings-menu, .ed-account-menu { scrollbar-width: none; }
  .ed-settings-menu::-webkit-scrollbar, .ed-account-menu::-webkit-scrollbar { display: none; }
  .ed-settings-content { max-height: none; padding: 18px 16px 22px; }
  .ed-an-kpis { grid-template-columns: 1fr 1fr; }
  .ed-an-row { grid-template-columns: 104px 1fr auto; }

  /* Account Settings: pill row over a full-width card */
  .ed-account-layout { grid-template-columns: 1fr; gap: 14px; }
  .ed-account-menu {
    flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  }
  .ed-account-menu button, .ed-account-menu a { white-space: nowrap; background: #FFFFFF; }
  .ed-account-card { padding: 20px 18px 24px; }
  .ed-stat-tiles { grid-template-columns: 1fr; }
}

/* --- 23. Service page v0.4.0: strip standard, Moments, review lightbox,
   checkout ------------------------------------------------------------------
   The strip standard Q approved in the mock rounds: NO faded
   trailing edge anywhere. Desktop gets circular white chevron
   buttons floating over the strip edges, vertically centred on
   the strip, each hiding at its end of the strip (both hidden
   when nothing overflows); a click glides the strip by ~80% of
   its visible width. Touch widths get no buttons — native swipe
   plus the next tile peeking in is the cue there. The peek stays
   on desktop too. Tokens only; no gradients. */
.strip-wrap { position: relative; }
.strip-scroll { scroll-behavior: smooth; }
.strip-scroll.is-dragging { scroll-behavior: auto; }
.strip-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--heading);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-panel); cursor: pointer;
  transition: border-color .15s ease, transform .12s ease;
}
.strip-nav:hover { border-color: var(--hover-line); }
.strip-nav:active { transform: translateY(-50%) scale(.94); }
.strip-nav[hidden] { display: none; }
.strip-nav--prev { left: 12px; }
.strip-nav--next { right: 12px; }
@media (max-width: 760px) {
  .strip-nav { display: none; }
}

/* Moments: uploaded videos, still photos and YouTube embeds in
   one fixed-height strip; widths follow each item's natural
   aspect (videos and photos render at the strip height with
   their intrinsic ratio; the YouTube poster is 16:9). No text
   under the tiles — only the small kind chip on the corner. */
.svc-moments {
  display: flex; gap: 12px; height: 320px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.svc-moments::-webkit-scrollbar { display: none; }
.svc-moments.is-dragging { cursor: grabbing; }
.svc-moment {
  margin: 0; flex: 0 0 auto; height: 100%;
  border-radius: 18px; overflow: hidden; background: var(--bg-alt); position: relative;
}
.svc-moment img { width: auto; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.svc-moment video { height: 100%; width: auto; max-width: 78vw; display: block; background: #000; }
.svc-moment-yt {
  position: relative; height: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.svc-moment-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-moment-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 44px; border-radius: 12px; background: #FF0000; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s ease;
}
.svc-moment-yt:hover .svc-moment-play, .svc-moment-yt:focus-visible .svc-moment-play { transform: translate(-50%, -50%) scale(1.07); }
.svc-moment iframe { height: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.svc-moment-kind {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(34,34,34,.62); color: #fff;
  font: 600 12px/1.3 var(--font); letter-spacing: .01em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
@media (max-width: 760px) {
  .svc-moments { height: 232px; gap: 10px; }
}
@media (max-width: 420px) {
  .svc-moments { height: 208px; }
  .svc-hero { height: 232px; }
}

/* Upcoming availability: the "Show all dates" control lives in
   the heading row, outside the scrolling strip, so the full
   calendar is reachable without scrolling to the strip's end. */
.svc-up-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.svc-up-head h2 { margin-bottom: 0; }
.svc-up-head .btn { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.svc-up-wrap .svc-upcoming-row {
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.svc-up-wrap .svc-upcoming-row::-webkit-scrollbar { display: none; }
.svc-up-wrap .svc-upcoming-row.is-dragging { cursor: grabbing; }

/* Review photos: one aggregated strip directly under the rating
   line — same strip standard (fixed height, natural widths),
   reviewer-initial badge on each tile. */
.svc-rev-strip {
  display: flex; gap: 10px; height: 124px; margin-top: 18px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.svc-rev-strip::-webkit-scrollbar { display: none; }
.svc-rev-strip.is-dragging { cursor: grabbing; }
.svc-rev-photo {
  position: relative; flex: 0 0 auto; height: 100%;
  border: 0; padding: 0; margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-inset); cursor: zoom-in; display: block;
}
.svc-rev-photo img { width: auto; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.svc-rev-photo-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; pointer-events: none; }
.svc-rev-photo-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--heading); color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.svc-rev-thumb { border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; }
.svc-rev-thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-sm); display: block; }
@media (max-width: 760px) {
  .svc-rev-strip { height: 108px; }
}

/* Guest photo lightbox: photo on one side, that guest's full
   review on the other (panel ~980px); stacks on phones. */
.lb-panel { max-width: 980px; }
.lb-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lb-stage {
  background: var(--bg-inset); border-radius: var(--r-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img { width: 100%; height: min(58vh, 540px); object-fit: contain; display: block; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
.lb-bar #svc-lb-count { font: var(--type-small); color: var(--text-muted); }
.lb-review { min-width: 0; max-height: calc(min(58vh, 540px) + 58px); overflow-y: auto; }
.lb-review .svc-rev-text:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .lb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lb-stage img { height: min(42vh, 380px); }
  .lb-review { max-height: none; overflow-y: visible; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
}

/* Checkout — one "Confirm and pay" page: options on top, guest
   information + payment method below, sticky summary card on
   the right (stacked on mobile). */
.co-inner { max-width: 1120px; margin: 0 auto; padding: 20px 24px 64px; }
.co-head { position: relative; display: flex; align-items: center; min-height: 52px; margin-bottom: 26px; }
.co-title { font: 600 26px/1.2 var(--font); color: var(--heading); margin: 0 0 0 14px; letter-spacing: -0.01em; }
.co-navbtn {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg-alt);
  color: var(--heading); cursor: pointer; text-decoration: none;
}
.co-navbtn:hover { border-color: var(--hover-line); color: var(--heading); }
#co-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.co-layout[hidden] { display: none; }
.co-step-title { margin: 26px 0 12px; }
.co-step > .co-step-title:first-child { margin-top: 0; }
.co-details { margin-top: 30px; }
.co-opt {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  border: 1px solid var(--field-line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px;
}
.co-opt input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin-top: 2px; cursor: pointer; }
.co-opt-text { min-width: 0; }
.co-opt-title { font: 600 16px/1.35 var(--font); color: var(--heading); margin: 0 0 4px; }
.co-opt-line { font: var(--type-body); color: var(--heading); margin: 0 0 2px; }
.co-opt-sub { font: var(--type-small); color: var(--text); margin: 0; }
.co-learn {
  background: none; border: 0; padding: 0; margin-top: 6px; cursor: pointer;
  font: 600 var(--type-small); color: var(--heading);
  text-decoration: underline; text-underline-offset: 3px;
}
.co-pay-card { border: 1px solid var(--field-line); border-radius: var(--r-md); overflow: hidden; }
.co-pay-option + .co-pay-option { border-top: 1px solid var(--line); }
.co-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; }
.co-pay-name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 16px/1.4 var(--font); color: var(--heading); }
.co-pay-head input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--heading); cursor: pointer; }
.co-card-fields { padding: 2px 18px 18px; }
.co-card-fields .field:last-child { margin-bottom: 0; }
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field-row .field { min-width: 0; }
.co-brands { display: inline-flex; align-items: center; gap: 6px; }
.co-brand { display: inline-flex; align-items: center; font: 700 10px/1 var(--font); letter-spacing: .02em; }
.co-brand-visa { color: #1A1F71; font-style: italic; font-size: 12px; }
.co-brand-mc { gap: 0; }
.co-brand-mc i { width: 14px; height: 14px; border-radius: 50%; background: #EB001B; display: block; }
.co-brand-mc i + i { background: #F79E1B; margin-left: -5px; mix-blend-mode: multiply; }
.co-brand-amex { background: #2E77BC; color: #fff; padding: 3px 5px; border-radius: 3px; }
.co-brand-disc { color: #F48120; }
.co-brand-jcb { color: #0B4EA2; font-size: 11px; }
.co-pay-head-static { cursor: default; }
.co-pay-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--heading); background: var(--heading); box-shadow: inset 0 0 0 4px #fff; }
.co-pay-note { padding: 0 18px 16px; margin: -2px 0 0; font: var(--type-small); color: var(--text); }
.co-pay-vnd { color: var(--heading); font-weight: 500; margin-top: -10px; }
.co-terms { font: var(--type-small); color: var(--text); margin: 18px 0 16px; }
/* D11 declared referrer (portal v0.5.11): suggestion list under the
   "Who referred you?" field — plain stacked rows, neutral hover. */
.co-referrer-field { position: relative; }
.co-referrer-suggest {
  margin-top: 6px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--bg); overflow: hidden;
}
.co-referrer-suggest[hidden] { display: none; }
.co-referrer-item {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  font: 400 16px var(--font); color: var(--heading);
  background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer;
}
.co-referrer-item:first-child { border-top: 0; }
.co-referrer-item:hover { background: var(--hover); }
.co-referrer-item .co-referrer-handle { color: var(--text); font-size: 14px; }
.co-confirm { padding: 15px 22px; font-size: 17px; }
.co-summary {
  border: 1px solid var(--field-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel); padding: 24px; position: sticky; top: 88px;
}
.co-sum-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.co-sum-thumb { width: 104px; height: 88px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.co-sum-thumb-init {
  background: var(--tint); color: var(--accent-pressed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
}
.co-sum-title { font: 600 16px/1.35 var(--font); color: var(--heading); margin: 0 0 4px; }
.co-sum-rating { display: flex; align-items: center; gap: 4px; font: var(--type-small); color: var(--heading); margin: 0; }
.co-sum-cancel { font: var(--type-small); color: var(--text); margin: 0; }
.co-sum-cancel strong { color: var(--heading); font-size: 14px; }
.co-div { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.co-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.co-sum-label { font: 600 15px/1.4 var(--font); color: var(--heading); margin: 0 0 4px; }
.co-sum-value { font: var(--type-small); color: var(--text); margin: 0; white-space: pre-line; }
.co-change {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 14px; font: 600 13px/1.3 var(--font); color: var(--heading);
  cursor: pointer; text-decoration: none; flex: none;
}
.co-change:hover { border-color: var(--hover-line); color: var(--heading); }
.co-sum-lines { display: grid; gap: 6px; margin-top: 6px; }
.co-coupon-row { margin: 14px 0 0; }
.co-coupon-row a { font: var(--type-small); }
.co-coupon-box { margin-top: 12px; }
.co-coupon-flex { display: flex; gap: 8px; }
.co-coupon-flex input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--field); color: var(--heading);
  font: 400 16px var(--font);
}
.co-coupon-flex input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,56,92,.16); outline: none; }
.co-coupon-box .card-meta { margin-top: 8px; }
.co-sum-total { display: flex; justify-content: space-between; gap: 12px; font: 600 16px/1.4 var(--font); color: var(--heading); }
/* v0.5.35: the three repeated trust lines at the foot of the
   summary, at the point of payment. */
.co-trust { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.co-trust p { font: var(--type-small); color: var(--text); margin: 0; }
.co-trust .co-trust-deadline { font-weight: 600; color: var(--heading); }
#co-success { max-width: 640px; }
@media (max-width: 1020px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .co-summary { position: static; order: 2; }
}
@media (max-width: 760px) {
  .co-inner { padding: 14px 16px 48px; }
  .co-title { font-size: 21px; }
  .co-head { margin-bottom: 18px; }
  .co-opt { padding: 16px; gap: 12px; margin-bottom: 12px; }
  .co-summary { padding: 20px; }
  .co-sum-thumb { width: 88px; height: 76px; }
  .co-pay-head { padding: 14px 16px; }
  .co-card-fields { padding: 2px 16px 16px; }
  .co-confirm { padding: 15px 18px; }
  .bk-sheet .bk-card { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .co-brands .co-brand-disc { display: none; }
  .co-field-row { gap: 10px; }
  .co-sum-top { gap: 12px; }
}

/* --- 27. Auth-aware site header + experts index (WS9) ----------------------
   The header keeps the guide's shape (glass bar, wordmark left,
   pill CTA right) with the WS9 contents: the auth area only
   (v0.5.9 removed the last nav link, "Find a local expert", on
   Q's call). On public pages the auth area is
   server-rendered logged out (pages are cached) and swapped
   client-side by session.js; on the dashboard pages (v0.5.8
   unification) the same markup arrives already signed in.
   Sign out is a quiet ICON button (Lucide log-out, v0.5.8) —
   neutral hover only, never coral (guide §5). */
.site-auth { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-auth a { font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.site-auth a:hover { color: var(--heading); }
.site-auth a.btn-primary, .site-auth a.btn-primary:hover { color: #FFFFFF; }
.site-cta { padding: 10px 20px; }
.site-login { white-space: nowrap; }
.site-signout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--text); cursor: pointer;
}
.site-signout-btn:hover { background: var(--hover); color: var(--heading); }
.site-user-name { font-size: 16px; font-weight: 500; color: var(--heading); white-space: nowrap; }
.site-avatar-link { display: inline-flex; border-radius: var(--r-pill); flex: none; }
.site-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--bg-inset); }
.site-avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--heading); color: #FFFFFF; font-weight: 700; font-size: 15px;
  border-color: transparent;
}
.site-menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; flex: none;
  align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--field-line); border-radius: 10px;
  color: var(--heading); cursor: pointer;
}
.site-menu-btn:hover { border-color: var(--field-line-hover); }
.site-menu { border-top: 1px solid var(--line); }
.site-menu[hidden] { display: none; }
.site-menu-inner { padding-top: 10px; padding-bottom: 16px; display: grid; gap: 4px; }
.site-menu-auth a {
  font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 11px 2px; text-align: left;
}
.site-menu-auth a:hover { color: var(--heading); }
.site-menu-auth { display: grid; justify-items: start; gap: 2px; }
.site-menu-auth .site-signout-btn { margin: 4px 0 4px -6px; }
.site-menu-auth .site-avatar-link { padding: 6px 2px; }
.site-menu-auth .site-user-name { padding: 11px 2px; }
.site-menu-auth a.btn-primary {
  color: #FFFFFF; margin-top: 8px; padding: 12px 22px; text-align: center;
}
.site-menu-auth a.btn-primary:hover { color: #FFFFFF; }

/* Experts index cards: the shared expert-card row (avatar + name +
   location) with the specialties and the guide count under it. */
.experts-sub { font: var(--type-body); color: var(--text); margin-bottom: 28px; max-width: 42em; }
.expert-card-name { font: var(--type-h3); color: var(--heading); margin-bottom: 2px; }
.expert-card-spec { margin-top: 14px; }
.expert-card-count { margin-top: 8px; font-weight: 600; color: var(--heading); }

@media (max-width: 760px) {
  /* Mobile header: wordmark + hamburger only — the desktop auth
     area moves into the drop-down panel, so the bar can never
     crush or wrap (the WS6 fix-round lesson). */
  .site-header-inner { gap: 16px; min-height: 60px; }
  .site-auth { display: none; }
  .site-menu-btn { display: inline-flex; }
}

/* --- 28. Flex: bio-page photo albums + settings editor (2026-10-26) --------
   Q-approved design per the Flex mockup: each public album card is
   an offset fan inside a fixed-height stack — a back photo frame
   rotated behind and to the right, the cover frame in front and
   to the left, and, when the album holds more than the two visible
   photos, an exposed "+N" tile standing at the front right of the
   fan. The brand sticker chip (#FEE5E7 / #FFD2D7 / #A21039 via the
   --chip / --tint-line / --accent-pressed tokens), flat colours
   only, no gradients. Public cards show the stack + title only —
   no date or count line; the settings panel (fx-row) is the one
   place a count line appears. Tokens where the mock colour has a
   matching token; frame radii and the frame shadow stay literal
   mock values. The overlay backdrop reuses the modal family's
   rgba(34,34,34,.45). */
.fx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fx-head .t-h2 { margin: 0; }
.fx-chip {
  display: inline-flex; align-items: center;
  background: var(--chip); border: 1px solid var(--tint-line); color: var(--accent-pressed);
  font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 5px 13px; border-radius: var(--r-pill);
  transform: rotate(-5deg);
  box-shadow: 0 3px 10px rgba(162,16,57,.12);
  white-space: nowrap;
}
/* v0.5.26 (Q, 2026-10-27): max 3 albums per row at any width,
   bigger cards, wider gaps — the auto-fill 240px minimum let
   four-across rows render the fans small and sparse. */
.fx-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 40px;
}
@media (max-width: 900px) {
  .fx-grid { grid-template-columns: repeat(2, 1fr); }
}
.fx-card { cursor: pointer; min-width: 0; }
.fx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Album-card fan (Flex mockup geometry): two offset 4:3 white
   photo frames — the back frame (second photo) rotated 5deg
   behind/right, the front frame (cover photo) rotated -2.5deg in
   front/left — plus, when the album holds more than the two
   visible photos, an exposed "+N" tile at the front right. DOM
   order is back -> front -> tile; the %-based geometry scales
   with card width. */
/* The stack's height hugs the in-flow front frame (padding-top is
   the mock's 20px front offset): the mock's fixed 228px box only
   matched the fan's extent at the mock grid's own card widths and
   left a growing dead gap above the title at narrower widths (Q,
   2026-10-26). The mock's slack is carried by the title margin
   instead (see .fx-card-title), so the rendered title gap matches
   the mock's measured gap at any card width. */
.fx-stack { position: relative; padding-top: 20px; }
/* Box-shadow below is the approved mock's frame shadow (literal). */
.fx-frame {
  /* display:block is load-bearing: the frames are <span>s, and the
     in-flow front frame (position:relative) would otherwise stay
     inline — width/aspect-ratio inert, the frame collapsing to the
     cover photo's natural ratio instead of the mock's 4:3 crop. */
  display: block;
  position: absolute;
  background: var(--bg); padding: 6px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.07);
}
.fx-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 9px; display: block;
}
.fx-back { width: 57%; aspect-ratio: 4 / 3; left: 26%; top: 0; transform: rotate(5deg); z-index: 1; }
.fx-front { position: relative; width: 62%; aspect-ratio: 4 / 3; transform: rotate(-2.5deg); z-index: 2; }
/* The exposed "+N" tile: front member of the fan, same frame shadow. */
.fx-tile {
  position: absolute; z-index: 3; right: 0; top: 44px;
  width: 31%; aspect-ratio: 3 / 3.7;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--heading);
}
.fx-tile-n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.fx-tile-w { font-size: 12px; color: var(--text); font-weight: 600; line-height: 1.1; }
/* 45px, not the mock's literal 14px: the mock parks its remaining
   slack inside its fixed-height stack (measured title gap 40.7px at
   its desktop card width); here the stack hugs the fan, so the
   margin carries the slack minus the front frame's ~4px rotation
   overhang. Mobile margin below reproduces the mock's 29.9px. */
.fx-card-title { font: var(--type-h3); color: var(--heading); margin: 45px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .fx-frame, .fx-tile { transition: transform .35s cubic-bezier(.2,.8,.25,1); }
  .fx-card:hover .fx-back,
  .fx-card:focus-visible .fx-back { transform: rotate(8deg) translate(6px,-3px); }
  .fx-card:hover .fx-front,
  .fx-card:focus-visible .fx-front { transform: rotate(-4deg) translate(-3px,2px); }
  .fx-card:hover .fx-tile,
  .fx-card:focus-visible .fx-tile { transform: translate(3px,-3px); }
}

/* Album popup (v0.9.14, Q 2026-11-02 — supersedes the v0.9.3
   Story viewer AND returns to the masonry shape of 2026-10-26,
   per Q's approved mock): one shell per bio page, driven by
   profile.js. A centred white dialog (max-width 600px, radius
   24px) on a dim backdrop; inside, a header (real avatar, expert
   name, album title, close), a photo-count line, and a
   two-column masonry grid of ALL photos at true ratios (radius
   16px, 10px gaps) that scrolls inside the dialog. The grid
   loads the pre-generated w640 derivatives with lazy loading,
   so opening an album no longer downloads the originals.
   Clicking a photo swaps the body to the large view (fxd-big):
   the w1080 derivative whole on a dark stage (object-fit:
   contain, never cropped), prev/next buttons, no autoplay, no
   progress bars. All type is the brand font (var(--font)); the
   avatar fallback is an initial on a flat neutral disc (no
   gradient — brand guide v3). */
.fx-overlay {
  position: fixed; inset: 0; z-index: 130; background: rgba(34,34,34,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fx-overlay[hidden] { display: none; }
.fx-dialog {
  position: relative; background: var(--bg); border-radius: 24px;
  box-shadow: var(--shadow-lift); width: 100%; max-width: 600px;
  max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden;
}
.fxd-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; flex: none; }
.fxd-avatar {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  overflow: hidden; background: #717171;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font: 800 14px var(--font);
}
.fxd-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fxd-avatar-img[hidden] { display: none; }
.fxd-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fxd-expert { font: 700 15px var(--font); color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxd-title { font: 400 12.5px var(--font); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxd-close {
  margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--heading);
  font-size: 17px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.fxd-close:hover { background: var(--hover); }
.fxd-count { font: 400 12.5px var(--font); color: var(--text); padding: 0 18px 10px; flex: none; }
.fxd-count:empty { display: none; }
.fxd-count strong { color: var(--accent-text); font-weight: 800; }
.fxd-scroll { overflow-y: auto; padding: 2px 14px 16px; min-height: 0; }
.fx-masonry { columns: 2; column-gap: 10px; }
/* Full margin reset: profile.js fills the grid with
   <figure class="fxd-photo"> items, whose UA margins would
   otherwise indent every column. */
.fx-masonry > * { margin: 0 0 10px; break-inside: avoid; }
.fxd-photo { border-radius: 16px; overflow: hidden; background: var(--bg-inset); cursor: zoom-in; }
.fxd-photo img { width: 100%; height: auto; display: block; }
.fxd-photo:hover img { opacity: .94; }
.fxd-status { font: 400 13.5px var(--font); color: var(--text); text-align: center; padding: 18px 8px; }
.fxd-status:empty { padding: 0; }
.fxd-big { padding: 0 14px 16px; flex: none; }
.fxd-big[hidden] { display: none; }
.fxd-bigbar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.fxd-back {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 7px 12px; font: 700 12.5px var(--font); color: var(--heading); cursor: pointer;
}
.fxd-back:hover { background: var(--hover); }
.fxd-bigcount { margin-left: auto; font: 600 12.5px var(--font); color: var(--text); }
.fxd-bigstage { position: relative; background: #111; border-radius: 16px; overflow: hidden; height: min(58dvh, 520px); }
.fxd-bigimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.fxd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.94); color: #111; font-size: 19px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.fxd-prev { left: 10px; }
.fxd-next { right: 10px; }
@media (max-width: 640px) {
  .fx-grid { grid-template-columns: 1fr; }
  .fx-card-title { margin-top: 35px; }
  .fx-overlay { padding: 10px; }
  .fx-dialog { border-radius: 20px; }
}

/* Settings: album rows, editor-popup photo grid, field error. */
.fx-album-list { margin-bottom: 4px; }
.fx-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.fx-album-list .fx-row:last-child { border-bottom: 0; }
.fx-row-thumb {
  width: 56px; aspect-ratio: 4 / 3; flex: none;
  border-radius: 8px; overflow: hidden; background: var(--bg-inset);
  display: block;
}
.fx-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
img.fx-row-thumb { object-fit: cover; }
.fx-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-row-title {
  font-size: 15.5px; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-row-meta { font: var(--type-small); color: var(--text); margin-top: 2px; }
.fx-row-actions { display: flex; gap: 8px; flex: none; }
.fx-add-row { margin: 16px 0 0; }
.fx-photo-area {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px; margin-bottom: 4px;
}
/* display:contents lets the JS-filled thumbs join the area grid
   alongside the Add-photos tile, so the tile stays in the grid
   flow even after the grid's contents are replaced. */
.fx-photo-grid { display: contents; }
.fx-thumb {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; background: var(--bg-inset);
  cursor: grab; -webkit-touch-callout: none;
}
.fx-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none;
}
/* While a photo tile is being dragged to reorder (v0.5.27) it lifts
   above the grid; the following transform is set inline by editor.js. */
.fx-thumb-drag { z-index: 6; cursor: grabbing; box-shadow: var(--shadow-lift); }
.fx-photo-hint { font: var(--type-small); color: var(--text); margin: 0 0 10px; }
.fx-thumb button, .fx-thumb-x {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--heading); color: #FFFFFF; border: 2px solid #fff;
  font-size: 12px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.fx-add-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 8px; text-align: center;
  border: 1.5px dashed var(--field-line); border-radius: 10px;
  color: var(--text); font: 600 14px/1.4 var(--font); cursor: pointer;
}
.fx-add-tile:hover { border-color: var(--field-line-hover); color: var(--heading); background: var(--hover); }
.ed-field-error { font-size: 14px; color: var(--error); margin: 10px 0 0; }
.ed-field-error[hidden] { display: none; }
@media (max-width: 640px) {
  .fx-row { flex-wrap: wrap; }
  .fx-row-actions { margin-left: 68px; }
}

/* --- 29. About page (/about, v0.5.19) --------------------------------------
   Built from the Q-approved mockup (artifact about-page-mockup, final
   state): hero + dot-matrix world map of expert faces, How it works,
   audience cards, Fair by design stats, closing CTAs. Mock geometry
   and rhythm verbatim; colours via the shared tokens only. The map
   ships in two variants (desktop 13 faces / mobile 8 larger faces),
   switched at the mock's 760px breakpoint. */
.ab-section { padding: 48px 0 72px; }
.ab-page { max-width: 984px; margin: 0 auto; }
.ab-block { margin-top: 72px; }
.ab-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--heading); margin: 0 0 14px;
}
.ab-h1 {
  font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--heading); margin: 0 0 22px; max-width: 620px;
}
.ab-h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--heading); margin: 0 0 18px;
}
.ab-step h3, .ab-audience-card h3 {
  font-size: 16px; font-weight: 600; color: var(--heading); margin: 0 0 8px;
}
.ab-text { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0 0 16px; max-width: 720px; }
.ab-text:last-child { margin-bottom: 0; }

/* Hero text block (v0.5.20, Q 2026-10-27): eyebrow in black (above),
   and the whole hero text block centered — eyebrow, H1 and both intro
   paragraphs (the second sits below the map). The intro paragraphs
   get a readable centered measure (~760px). Sections below the hero
   (How it works onward) stay left-aligned as before. */
.ab-hero { text-align: center; }
.ab-hero .ab-h1 { margin-left: auto; margin-right: auto; }
.ab-hero .ab-text { max-width: 760px; margin-left: auto; margin-right: auto; }

/* World face map (hero visual) */
.ab-facemap { position: relative; max-width: 940px; aspect-ratio: 1080 / 426; margin: 38px auto 6px; }
.ab-facemap-mobile { display: none; }
.ab-facemap svg.ab-dotfield, .ab-facemap svg.ab-links {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.ab-facemap svg.ab-dotfield { z-index: 0; pointer-events: none; }
.ab-facemap svg.ab-links { z-index: 1; }
.ab-fm-node { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; z-index: 2; }
.ab-fm-node img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(0, 0, 0, 0.12);
}
.ab-fm-tile {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--chip); color: var(--accent-pressed);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--tint-line), 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.ab-fm-tile.sm { font-size: 16px; }
.ab-fm-tile.two { font-size: 15px; }
.ab-fm-dot {
  position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1;
  border: 1.5px dotted #D9D9D9; border-radius: 50%; z-index: 1;
}
.ab-facemap-mobile .ab-fm-tile { font-size: 18px; }
.ab-facemap-mobile .ab-fm-tile.sm { font-size: 16px; }
.ab-facemap-mobile .ab-fm-tile.two { font-size: 14px; }

/* How it works */
.ab-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-step { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.ab-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--chip); color: var(--accent-pressed);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ab-step p, .ab-audience-card p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }

/* Audience blocks */
.ab-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-audience-card { background: var(--bg-alt); border-radius: 20px; padding: 26px 24px; }

/* Fair by design */
.ab-fair { background: var(--bg-alt); border-radius: 24px; padding: 36px; }
.ab-fair .ab-text { max-width: 680px; }
.ab-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.ab-stat { flex: 1 1 180px; background: var(--bg); border-radius: 16px; padding: 22px 24px; }
.ab-stat-num { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.ab-stat-label { font-size: 14px; color: var(--text); margin-top: 4px; }

/* Closing */
.ab-closing {
  font-size: 18px; font-style: italic; font-weight: 600; color: var(--heading);
  line-height: 1.5; margin: 0 0 26px; max-width: 560px;
}
.ab-cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ab-btn-primary { padding: 15px 28px; border-radius: var(--r-md); font-weight: 700; }
.ab-btn-primary:hover { background: var(--accent-text); }
.ab-link-plain { font-size: 16px; font-weight: 600; color: var(--heading); text-decoration: none; }
.ab-link-plain:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .ab-section { padding: 28px 0 52px; }
  .ab-block { margin-top: 52px; }
  .ab-facemap-desktop { display: none; }
  .ab-facemap-mobile { display: block; max-width: 400px; }
  .ab-steps, .ab-audience { grid-template-columns: 1fr; }
  .ab-fair { padding: 26px 22px; }
  .ab-stats { flex-direction: column; gap: 12px; }
}

/* ================================================================
   Guide Editor — very wide screens (v0.5.29, min-width 1920px
   only; below the breakpoint the editor renders exactly as
   before). The work region stops hugging the left edge: tree +
   form are capped to a readable width and centred with balanced
   margins, the item photo grows to 660px (the half-column rule
   still applies below 1920px) and the form fields cap at an
   860px measure.
   v0.5.30: the editor's two bars join the same column. Inside
   the editor only (body class scoping), the shared header's
   inner content and the action bar cap to the same 1360px
   centred measure and drop their horizontal padding, so the
   logo, "← My Guides" and the tree share one left edge, and
   the header cluster, the publish cluster and the work region
   share one right edge. The bars themselves stay full-width
   (backgrounds/borders span), and every other page keeps the
   shared 1200px header container untouched — the header's own
   column is 1200px, narrower than the editor's work column,
   so the editor standardises on 1360px. */
@media (min-width: 1920px) {
  .ed-editor-body .site-header-inner {
    max-width: 1360px;
    padding-left: 0; padding-right: 0;
  }
  .ed-editor-body .ed-actionbar {
    width: 100%; max-width: 1360px;
    margin: 0 auto;
    padding-left: 0; padding-right: 0;
  }
  .ed-layout {
    grid-template-columns: 360px 1fr;
    max-width: 1360px; width: 100%;
    margin: 0 auto;
  }
  #ed-form { max-width: 860px; }
  #ed-form .ed-media.is-half { width: 660px; max-width: 100%; }
}

/* Internal Map Phase 2 — editor location block bits (the picker
   itself ships its own styles from location-picker.js). */
.ed-pin-glyph { display: inline-flex; margin-left: 6px; vertical-align: -1px; }
.ed-flag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF385C; margin-left: 6px; vertical-align: 2px; }
.ed-flag-note { border: 1px solid #F2DFBB; background: #FFF9EC; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; font-size: 13.5px; color: #484848; line-height: 1.5; }
.ed-flag-note b { color: #222222; }
.ed-flag-note .ed-flag-actions { display: flex; gap: 8px; margin-top: 8px; }
.ed-flag-note button { font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; cursor: pointer; background: #222222; color: #fff; border: 1px solid #222222; }
.ed-flag-note button.ghost { background: #fff; color: #222222; border-color: #DDDDDD; }

/* Place form v0.9.0 — the Place name field is the place search:
   suggestions dropdown, picked-place chip / not-picked warning under
   the field, the demoted Custom button link row, and the staged
   Location popup (the picker itself keeps its own styles). */
.ed-name-dd { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.ed-name-dd[hidden] { display: none; }
.ed-name-dd-head { padding: 9px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); background: var(--bg-inset); }
.ed-name-dd-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; }
.ed-name-dd-row:hover { background: var(--hover); }
.ed-name-dd-text { display: flex; flex-direction: column; min-width: 0; }
.ed-name-dd-name { font-size: 15px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.ed-name-dd-addr { font-size: 13px; color: var(--text); line-height: 1.35; }
.ed-name-dd-none { padding: 12px 14px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--line); line-height: 1.5; }
.ed-name-dd-foot { display: block; width: 100%; text-align: left; font: inherit; font-size: 13.5px; font-weight: 600; color: #DA1249; background: var(--bg); border: 0; padding: 11px 14px; cursor: pointer; }
.ed-name-dd-foot:hover { background: var(--hover); }
.ed-loc-pin { flex: none; display: flex; margin-top: 1px; }
[data-loc-state] .ed-flag-note { margin: 10px 0 0; }
.ed-loc-chip { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.ed-loc-chip-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ed-loc-chip-name { font-size: 15.5px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.ed-loc-chip-sub { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text); margin-top: 3px; line-height: 1.45; }
.ed-loc-tick { color: #1FA97A; font-weight: 700; }
.ed-loc-change { flex: none; }
.ed-loc-warn { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #F0D9A8; background: #FFF9EC; border-radius: 12px; padding: 11px 13px; margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: #6B5510; }
.ed-loc-warn p { margin: 0; }
.ed-loc-linkbtn { font: inherit; font-weight: 600; color: #DA1249; background: none; border: 0; padding: 0; cursor: pointer; }
.ed-custom-row { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 14px; }
.ed-custom-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; padding: 4px 2px; }
.ed-custom-toggle:hover { color: var(--heading); }
.ed-custom-state { font-weight: 500; }
.ed-custom-row [data-custom-fields] { margin-top: 8px; }
.ed-custom-row [data-custom-fields][hidden] { display: none; }
.ed-loc-modal { max-width: 640px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.ed-loc-body { padding: 16px 20px 20px; overflow-y: auto; min-height: 0; }
.ed-loc-body .nbl-loc { border: 0; }
.ed-loc-body .nbl-loc-inputrow { padding: 0 0 12px; }
.ed-loc-body .nbl-loc-foot { border-top: 0; padding: 12px 0 0; }

/* Internal Map Phase 2 — supplier Service locations page. */
.supplier-svc-card { background: #fff; border: 1px solid #EBEBEB; border-radius: 20px; padding: 20px; margin: 0 0 20px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.supplier-svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.supplier-svc-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.supplier-svc-addr { font-size: 14px; color: #717171; margin: 6px 0 0; line-height: 1.5; }
.supplier-svc-card [data-svc-picker] { margin-top: 14px; }
.supplier-svc-note { font-size: 13.5px; color: #717171; min-height: 18px; margin: 10px 0 0; }
.supplier-svc-loading { color: #717171; }
.t-sub { font-size: 15px; color: #717171; line-height: 1.55; margin: 0 0 22px; max-width: 640px; }

/* Internal Map Phase 3 — header Map entry (D-MAP-6). */
.site-nav { display: flex; align-items: center; }
.site-nav-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #222222; text-decoration: none; }
.site-nav-link:hover { color: #DA1249; }
.site-nav-link.is-active { color: #DA1249; }
.site-menu-nav { padding: 4px 0 10px; }
.site-menu-map { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #222222; text-decoration: none; }
.site-menu-map.is-active { color: #DA1249; }
@media (max-width: 760px) { .site-nav { display: none; } }

/* --- 30. Services index (/services, Distribution completion) ---------------
   A plain catalogue grid reusing the shared card component; only the
   rating row and the 2-line description clamp are its own. The header
   nav also gains its second link here (Services before Map), so the
   desktop nav needs an explicit gap between links. */
.site-nav { gap: 22px; }
.svc-idx-rating { display: flex; align-items: center; gap: 5px; color: var(--heading); font-size: .92rem; font-weight: 600; margin: 0 0 6px; }
.svc-idx-desc {
  color: var(--text-muted); font-size: .95rem; line-height: 1.5; margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 31. Trash page (/app/expert/trash, Package 1; polish v0.22.0) -------
   Card rows on the My Guides pattern: a thumbnail, a kind pill, the
   deleted date and a days-left pill, with Restore as the one primary
   action. Theme tokens only. */
.ed-trash-link { font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.ed-trash-link:hover { color: var(--heading); }
.ed-trash-pill { background: var(--tint-2); color: var(--accent-text); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px; font-size: 12.5px; font-weight: 700; }
.ed-trash-sub { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 14px 0 6px; max-width: 640px; }
.ed-trash-msg { color: var(--error); font-size: 14.5px; font-weight: 600; margin: 10px 0 0; }
.ed-trash-h2 { font-size: 17px; font-weight: 700; color: var(--heading); margin: 28px 0 10px; }
.ed-trash-count { color: var(--text-muted); font-weight: 600; font-size: 14px; margin-left: 6px; }
.ed-trash-note { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; max-width: 640px; }
.ed-trash-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 12px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.ed-trash-row:hover { border-color: var(--hover-line); box-shadow: var(--shadow-panel); }
.ed-trash-thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--bg-inset); flex-shrink: 0; }
.ed-trash-thumb-ph { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.ed-trash-thumb-ph span { font-size: 24px; font-weight: 600; color: var(--text-muted); }
.ed-trash-main { flex: 1; min-width: 0; }
.ed-trash-title { font-size: 16px; font-weight: 600; color: var(--heading); }
.ed-trash-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--text-muted); font-size: 14px; margin: 6px 0 0; }
.ed-trash-kind { background: var(--bg-alt); color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }
.ed-trash-dot { margin: 0 8px; color: var(--text-muted); }
.ed-trash-days { background: var(--bg-alt); color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); margin-left: 10px; }
.ed-trash-days-warn { background: #FFF1F4; color: var(--accent-text); }
.ed-trash-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ed-trash-actions .btn-primary[disabled] { opacity: .45; box-shadow: none; pointer-events: none; }
.ed-trash-back { margin: 26px 0 0; font-size: 15px; font-weight: 600; }
.ed-trash-back a { color: var(--heading); text-decoration: none; }
.ed-trash-back a:hover { color: #DA1249; }
@media (max-width: 640px) {
  .ed-trash-row { flex-wrap: wrap; }
  .ed-trash-thumb { width: 60px; height: 60px; }
  .ed-trash-actions { width: 100%; }
  .ed-trash-actions .btn { flex: 1; }
}

/* --- Geographic pages (/vietnam/..., SEO Phase 0) --------------------------
 * Breadcrumb trail, jump tiles and the tips list. Theme tokens only. */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; list-style: none; font: var(--type-small); color: var(--text-muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--heading); }
.crumbs [aria-current] { color: var(--heading); }
.geo-intro { max-width: 46em; margin: 12px 0 0; }
.geo-facts { margin: 12px 0 0; }
.geo-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.geo-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.geo-tips { display: grid; gap: 20px; max-width: 760px; }
.geo-tip-who { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.geo-tip-who h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.geo-tip-who h3 a { color: var(--heading); text-decoration: none; }
.geo-tip-who .card-meta { margin: 0; }
.geo-tip-text { margin: 0 0 12px; white-space: pre-line; }

/* Place page: the Vietnamese name under the English heading. */
.geo-local-name { margin: -8px 0 12px; font-size: 16px; color: var(--text-muted); }

/* --- Editorial pages (hub sub pages, /plan, /stories; SEO Phase 1) --------
 * Head band, answer-first opening, quick answer, hero figure, table of
 * contents, article body, place cards with named locals, months, FAQ,
 * author box, thin-page note. Theme tokens only, flat fills, light bands. */
.art-head { padding-bottom: 24px; }
.art-head .crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.art-byline { margin: 12px 0 0; }
.art-lead { margin: 20px 0 0; }
.art-hero-figure { margin: 24px 0 0; }
.art-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-inset); }
.art-hero-figure figcaption { margin: 8px 0 0; font: var(--type-small); color: var(--text-muted); }
.art-quick { margin: 20px 0 0; max-width: 720px; border: 1px solid var(--line); border-left: 3px solid var(--tint-line); border-radius: var(--r-md); padding: 16px 18px; background: var(--bg); }
.art-quick-label, .art-tip-label { margin: 0 0 6px; font: var(--type-small); font-weight: 600; color: var(--heading); }
.art-quick .art-body > :last-child { margin-bottom: 0; }
.art-quick-links { margin: 10px 0 0; font: var(--type-small); }
/* Two columns (Q, 2026-11-09): the whole read on the left, only the sticky TOC on the right. */
.art-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 56px; align-items: start; }
.art-layout-single { grid-template-columns: minmax(0, 760px); }
.art-col { min-width: 0; }
.art-col .art-body, .art-col .art-quick, .art-col .art-faq { max-width: none; }
.art-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 18px; background: var(--bg); }
.art-block, .art-article { margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
.art-block { scroll-margin-top: 80px; }
.art-block > .section-title { margin: 0 0 16px; }
.art-block > .art-section-sub { margin: -8px 0 16px; }
.art-experience { margin: 28px 0; }
.art-experience-label { margin: 0 0 8px; font: var(--type-small); font-weight: 600; color: var(--heading); }
.art-experience-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: inherit; text-decoration: none; }
.art-experience-card:hover { border-color: var(--field-line-hover); }
.art-experience-photo .card-cover { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.art-experience-photo .card-cover-initial { font-size: 1.6rem; }
.art-experience-body > * { margin: 0 0 4px; max-width: none; }
.art-experience-body > :last-child { margin-bottom: 0; }
.art-experience-title { font-weight: 600; color: var(--heading); }
.art-partner-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: inherit; text-decoration: none; }
.art-partner-card:hover { border-color: var(--field-line-hover); }
.art-partner-note { margin: 4px 0 0; font: var(--type-small); color: var(--text-muted); max-width: none; }
.art-toc-title { margin: 8px 0 0; font: var(--type-small); font-weight: 600; color: var(--heading); }
.art-toc ol, .art-toc-mobile ol { margin: 0; padding: 0 0 0 18px; font: var(--type-small); }
.art-toc a, .art-toc-mobile a { display: block; padding: 10px 0; color: var(--text-muted); text-decoration: none; }
.art-toc a:hover, .art-toc-mobile a:hover { color: var(--heading); }
.art-toc-mobile { display: none; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; }
.art-toc-mobile summary { padding: 12px 0; cursor: pointer; font: var(--type-small); font-weight: 600; color: var(--heading); }
.art-body { color: var(--text-article); max-width: 720px; }
.art-body p, .art-body li, .art-body blockquote { max-width: 68ch; }
.art-body h2 { font: var(--type-h2); color: var(--heading); margin: 36px 0 12px; scroll-margin-top: 96px; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font: var(--type-h3); color: var(--heading); margin: 24px 0 8px; }
.art-body h4 { font: var(--type-body); font-weight: 600; color: var(--heading); margin: 20px 0 6px; }
.art-body p, .art-body ul, .art-body ol { margin: 0 0 14px; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li { margin: 4px 0; }
.art-body strong { color: var(--heading); }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.art-body code { font-size: 0.92em; background: var(--bg-inset); border-radius: var(--r-xs); padding: 1px 5px; }
.art-quote { margin: 20px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--tint-line); }
.art-quote p { margin: 0 0 8px; }
.art-quote footer, .art-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: var(--type-small); color: var(--text-muted); }
.art-quote footer a, .art-credit a { color: var(--heading); font-weight: 600; text-decoration: none; }
.art-tip { margin: 20px 0; padding: 14px 16px; border-left: 3px solid var(--tint-line); background: var(--tint); border-radius: 0 var(--r-md) var(--r-md) 0; }
.art-tip p:last-child { margin-bottom: 0; }
.art-table { margin: 0 0 18px; overflow-x: auto; }
.art-table table { border-collapse: collapse; min-width: 100%; font: var(--type-small); }
.art-table th, .art-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-table th { color: var(--heading); font-weight: 600; background: var(--bg-alt); }
.art-avatar { width: 24px; height: 24px; border-radius: var(--r-pill); object-fit: cover; flex: none; background: var(--bg-inset); }
.art-avatar-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--chip); }
.art-place { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.art-place-nophoto { grid-template-columns: minmax(0, 1fr); }
.art-place-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-inset); }
.art-place-body > * { margin: 0 0 6px; max-width: none; }
.art-place-name { font-weight: 600; }
.art-place-name a { color: var(--heading); text-decoration: none; }
.art-place-maps { margin: 8px 0 0; }
.art-place-maps a, .card-maps a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.card-maps { margin: 10px 0 0; }
.card-title a { color: inherit; text-decoration: none; }
.art-place-quote { margin: 8px 0 0; padding: 0; border: 0; }
.art-place-quote p { margin: 0 0 8px; color: var(--text-article); }
/* All places (Q, 2026-11-09): a compact one-column list. Small photo, the quote cut to two
   lines (the full tip sits in the inline card in the article), credit and the Maps link on one line. */
.art-place-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.art-place-grid .art-place { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; margin: 0; padding: 12px; }
.art-place-grid .art-place-nophoto { grid-template-columns: minmax(0, 1fr); }
.art-place-grid .art-place-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; align-content: start; }
.art-place-grid .art-place-body > * { grid-column: 1 / -1; margin: 0; }
.art-place-grid .card-meta { margin: 2px 0 0; }
.art-place-grid .art-place-quote { display: contents; }
.art-place-grid .art-place-quote p { grid-column: 1 / -1; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-place-grid .art-place-quote footer { grid-column: 1; margin: 8px 0 0; min-width: 0; }
.art-place-grid .art-place-quote ~ .art-place-maps { grid-column: 2; justify-self: end; margin: 8px 0 0; }
.art-place-grid .art-place-maps { margin: 8px 0 0; white-space: nowrap; }
.art-section-sub { margin: -8px 0 16px; }
.art-month-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 12px 0 0; font: var(--type-small); }
.art-month-strip [aria-current] { font-weight: 600; color: var(--heading); }
.art-month-step { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; }
.art-month-step-off { color: var(--text-disabled); }
.art-month-strip + .art-lead { margin-top: 16px; }
.art-month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 720px; }
.art-month { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--bg); color: var(--heading); font-weight: 600; text-decoration: none; }
a.art-month:hover { border-color: var(--field-line-hover); }
.art-month-current { border-color: var(--accent); color: var(--accent-text); background: var(--tint); }
.art-month-off { color: var(--text-disabled); border-style: dashed; }
.art-checked { margin: 24px 0 0; }
.art-cta { font-size: 18.66px; font-weight: 700; }
.art-faq { display: grid; gap: 12px; max-width: 760px; }
.art-faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); padding: 0 18px; }
.art-faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--heading); }
.art-faq-answer { margin: 0 0 14px; color: var(--text-article); }
.art-faq-answer p:last-child { margin-bottom: 0; }
.art-author-label { margin: 0 0 14px; font: var(--type-h3); color: var(--heading); }
.art-author { display: flex; gap: 16px; align-items: flex-start; max-width: 720px; }
.art-author p { margin: 0 0 6px; }
.art-author-name { font-weight: 600; }
.art-author-name a, .art-author .card-meta a { color: var(--heading); text-decoration: none; }
.art-author .card-meta a { font-weight: 600; }
.art-thin { max-width: 720px; color: var(--text-article); }
.art-thin ul { margin: 8px 0 0; padding-left: 22px; }
.art-thin a { display: inline-block; padding: 8px 0; }
.art-intro { margin: 16px 0 0; }
.geo-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
@media (max-width: 980px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-toc { display: none; }
  .art-toc-mobile { display: block; }
}
@media (max-width: 760px) {
  .art-block, .art-article { margin-top: 32px; padding-top: 24px; }
  .art-experience-card { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .art-partner-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .art-partner-cta { justify-self: start; }
  .art-experience-cta { grid-column: 1 / -1; justify-self: start; }
  .art-hero-figure { margin-top: 18px; }
  .art-place { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .art-place-nophoto { grid-template-columns: minmax(0, 1fr); }
  .art-place-grid .art-place { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .art-place-grid .art-place-nophoto { grid-template-columns: minmax(0, 1fr); }
  .art-place-grid .art-place-quote ~ .art-place-maps { grid-column: 1 / -1; justify-self: start; }
  .art-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .geo-topics { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .geo-topics .btn { flex: none; }
}

/* --- Hub navigation (portal 0.25.0, decision #2) ---------------------------
 * Country, region and destination hubs, /stories and /plan. Planned items
 * (`.is-soon`) are never links: muted text (no lighter than --text-muted),
 * dashed border, dimmed cover and a "Soon" tag. Theme tokens only. */
.soon-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-inset); color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: middle; letter-spacing: 0; white-space: nowrap; }
.is-soon { cursor: default; }
.card.is-soon { border-style: dashed; box-shadow: none; }
.card.is-soon .card-title, .hub-row.is-soon .hub-row-title, .hub-tile.is-soon .hub-row-title { color: var(--text-muted); }
.card.is-soon .card-cover { opacity: .55; }
.btn.is-soon { border-style: dashed; color: var(--text-muted); cursor: default; }
.btn.is-soon:hover { background: transparent; border-color: var(--field-line); }
.is-soon-text { color: var(--text-muted); }
.card h3.card-title { margin-top: 0; line-height: 1.3; }
.card h3.card-title a { color: inherit; text-decoration: none; }

.hub-topics .hub-chip-sep { flex: none; width: 1px; margin: 6px 4px; background: var(--line); }
.hub-chip-count { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.hub-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.hub-sub:first-child { margin-top: 0; }
.hub-sub h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--heading); }

.hub-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.hub-rail > * { scroll-snap-align: start; }
.hub-story .card-body p:not(.card-meta) { font-size: 14px; line-height: 1.45; margin: 0; }

.hub-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.hub-feature .card-cover-wrap { min-height: 280px; }
.hub-feature .card-cover-wrap .card-cover { height: 100%; aspect-ratio: auto; }
.hub-feature .card-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; }
.hub-feature .card-title { font-size: 22px; }
.hub-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 20px; }
.hub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hub-row-text { display: flex; flex-direction: column; gap: 2px; }
.hub-row-title { color: var(--heading); font-weight: 600; }
a.hub-row:hover .hub-row-title { text-decoration: underline; }
.hub-row-arrow { flex: none; color: var(--text-muted); }

.hub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hub-tile { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: inherit; text-decoration: none; }
a.hub-tile:hover { border-color: var(--hover-line); box-shadow: var(--shadow-lift); }
.hub-tile.is-soon { border-style: dashed; }
.hub-tile .card-meta { font-size: 14px; line-height: 1.4; }
.hub-tiles + .hub-sub { margin-top: 32px; }

.hub-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hub-month { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--bg); color: var(--heading); font-weight: 600; text-align: center; text-decoration: none; }
.hub-month small { font-size: 12px; font-weight: 400; line-height: 1.25; color: var(--text-muted); }
a.hub-month:hover { border-color: var(--field-line-hover); }
.hub-month.is-soon { border-style: dashed; color: var(--text-muted); }
.hub-month-now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hub-month-tag { font-size: 11px; font-weight: 600; color: var(--accent-text); }

.hub-dests { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin: 8px 0; }
.hub-dests a { color: var(--heading); text-underline-offset: 3px; text-decoration-color: var(--field-line); }

@media (max-width: 960px) {
  .hub-rail { grid-auto-columns: 44%; }
  .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hub-feature { grid-template-columns: minmax(0, 1fr); }
  .hub-feature .card-cover-wrap { min-height: 0; }
  .hub-feature .card-cover-wrap .card-cover { aspect-ratio: 16 / 9; }
  .hub-feature .card-body { padding: 18px; }
  .hub-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hub-rail { grid-auto-columns: 78%; gap: 14px; }
  .hub-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hub-feature-text { grid-template-columns: minmax(0, 1fr); }
.hub-feature-text .card-body { max-width: 760px; }
/* Destination photo credits at the foot of /vietnam (2026-11-17). */
.photo-credits { padding-top: 20px; padding-bottom: 28px; }
.photo-credits p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
