/* ============================================================
   YERK — Design System v1
   Tokens map to the design system handoff doc:
   Facebook blue brand · slate ramp · Inter type · 24px stroked icons
   ============================================================ */

:root {
  /* ── Brand (Servis "Familiar" v2 — muted indigo, single tone) ─ */
  --primary:        #1877F2;  /* Facebook blue — CTAs, header, accents */
  --primary-deep:   #166FE5;  /* hover / pressed                       */
  --primary-soft:   #EEF3FA;  /* tinted info / banner background       */

  /* ── Slate ramp ──────────────────────────────────────────── */
  --slate-900:      #1F232E;
  --slate-700:      #2A3548;
  --slate-500:      #6B7280;
  --slate-400:      #9CA3AF;
  --slate-300:      #D1D5DB;
  --slate-200:      #E8E8EA;
  --slate-100:      #F2F2F3;
  --slate-50:       #FAFAFA;

  /* ── Tile / dark surface (design navy header + footer) ──── */
  --tile-slate:     #1877F2;
  --tile-dark:      #2A3548;  /* used for "rental" category tile      */

  /* ── Surface ─────────────────────────────────────────────── */
  --bg:             #FAFAFA;
  --card:           #FFFFFF;
  --border:         #E8E8EA;     /* hairline                          */
  --border-2:       #D1D5DB;
  --hairline:       #E8E8EA;
  --divider:        #F2F2F3;

  /* ── Text ────────────────────────────────────────────────── */
  --text:           #1F232E;
  --text-2:         #6B7280;
  --text-3:         #9CA3AF;

  /* ── Semantic (design uses muted ramp) ───────────────────── */
  --error:          #D97560;     /* terracotta                        */
  --error-bg:       #FDE9E9;
  --error-border:   #F8C8C8;
  --success:        #5A8A6E;     /* sage                              */
  --success-bg:     #EAF1ED;
  --warning:        #E8A951;     /* muted amber                       */
  --warning-bg:     #FFF6DD;
  --info:           #1877F2;
  --info-bg:        #EEF3FA;

  /* ── Legacy aliases (existing CSS still references these) ── */
  --accent:         var(--primary);
  --accent-2:       var(--primary-deep);
  --accent-3:       var(--primary-soft);
  --primary-2:      var(--tile-slate);
  --primary-3:      var(--slate-700);
  --navy:           var(--slate-900);
  --navy-2:         var(--primary);
  --green:          var(--success);
  --green-2:        var(--success);
  --muted:          var(--text-2);

  /* ── Type ────────────────────────────────────────────────── */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display",
                    "Helvetica Neue", "Noto Sans Armenian", "Noto Sans", sans-serif;
  /* Type scale — display 26 / title 18 / heading 15 / body 14 / small 13 / caption 11 */
  --text-xs:        11px;
  --text-sm:        13px;
  --text-base:      14px;
  --text-md:        15px;
  --text-lg:        18px;
  --text-xl:        22px;
  --text-2xl:       26px;

  /* ── Spacing (4px base) ──────────────────────────────────── */
  --space-1:        4px;
  --space-2:        8px;
  --space-3:        12px;
  --space-4:        14px;
  --space-5:        16px;
  --space-6:        20px;
  --space-7:        24px;
  --space-8:        32px;

  /* ── Radius (aligned to design system r-{sm,md,lg,xl,2xl}) ─ */
  --radius-sm:      8px;    /* chips, time inputs                    */
  --radius-md:      10px;   /* small icon containers                 */
  --radius-lg:      12px;   /* buttons, inputs, banners              */
  --radius-xl:      14px;   /* cards, list rows                      */
  --radius-2xl:     16px;   /* category tiles                        */
  --radius-full:    999px;
  --radius:         var(--radius-xl);  /* legacy alias              */

  /* ── Elevation ───────────────────────────────────────────── */
  --shadow-1:       0 1px 0 rgba(0,0,0,0.02);
  --shadow-2:       0 2px 6px rgba(0,0,0,0.04);
  --shadow-3:       0 8px 24px rgba(0,0,0,0.08);
  --focus:          0 0 0 3px rgba(61, 111, 184, 0.22);
  /* Legacy shadow aliases */
  --shadow-sm:      var(--shadow-1);
  --shadow-md:      var(--shadow-2);
  --shadow-lg:      var(--shadow-3);
  --shadow-xl:      0 12px 32px rgba(0,0,0,0.10);

  /* ── Motion (durations · ease-out default) ───────────────── */
  --t-fast:         120ms ease-out;
  --t-base:         150ms ease-out;
  --t-slow:         200ms ease-out;
  --t-page:         250ms ease-out;
}

/* Honor user motion preference — disable transforms / progress fill */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Reset ────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;  /* clip any rogue overflow so mobile pages don't
                          gain a horizontal scrollbar */
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  background: var(--tile-slate); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(var(--space-4), calc((100% - 900px) / 2 + var(--space-5)));
  gap: var(--space-3);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.brand { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.5px; }
/* Wordmark accent — primary equals topbar bg, so we keep a soft white tint */
.brand span { color: rgba(255,255,255,0.72); }
.topbar-nav { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.topbar-user {
  color: rgba(255,255,255,0.75); font-size: var(--text-sm);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang-picker {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  padding: 4px var(--space-2); font-size: var(--text-xs); cursor: pointer;
  transition: background var(--t-fast);
}
.lang-picker:hover { background: rgba(255,255,255,0.14); }

/* btn-ghost inside dark topbar needs white text */
.topbar .btn-ghost {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.22);
  background: transparent;
}
.topbar .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
}

/* Mobile-tight topbar — keep brand + auth buttons fitting under 380px */
@media (max-width: 480px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar-nav { gap: 6px; flex-wrap: nowrap; min-width: 0; }
  .topbar .btn,
  .topbar .btn-ghost,
  .topbar .btn-primary,
  .topbar .btn-sm { padding: 6px 10px; font-size: 12px; line-height: 1; }
  .lang-picker { padding: 4px 6px; font-size: 11px; }
  .topbar-user { display: none; }
  .bottom-nav { padding: 8px 14px calc(env(safe-area-inset-bottom, 0) + 14px); }
}

/* ── Per-screen onboarding header (design FHeader pattern) ───── */
.onb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px; gap: var(--space-3);
  height: 56px;
}
.onb-header-back, .onb-header-close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--text); cursor: pointer; text-decoration: none;
}
.onb-header-back:hover, .onb-header-close:hover { text-decoration: none; opacity: 0.7; }
.onb-header-spacer { width: 40px; height: 40px; flex-shrink: 0; }
.onb-header-title {
  flex: 1; text-align: center; min-width: 0;
  font-size: 18px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin: 0;
}
.onb-header-sub { padding: 0 16px 4px; color: var(--text-2); font-size: 13px; margin: 0; }

/* When the topbar is hidden, container should flush to the top */
.container-flush { padding-top: 0; }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 600px; margin: 0 auto; padding: var(--space-4); }
/* Marketplace pages render edge-to-edge — negate container side padding. */
.container > .m-shell { margin: calc(var(--space-4) * -1); display: flex; flex-direction: column; }
@media (min-width: 720px) { .container { max-width: 720px; padding: var(--space-5); } }
@media (min-width: 960px) { .container { max-width: 900px; } }
/* On desktop, render the marketplace shell like a phone preview — fixed mobile
   width, centered, with a subtle frame shadow so it doesn't look like
   stretched mobile. */
@media (min-width: 600px) {
  .container > .m-shell {
    max-width: 440px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-3);
    overflow: hidden;
  }
  .has-bottom-nav .container > .m-shell { padding-bottom: 0; }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; border-radius: var(--radius-md);
  padding: 11px var(--space-4); font-size: var(--text-base); font-weight: 600;
  font-family: inherit; letter-spacing: -0.1px;
  transition: background var(--t-fast), opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45; cursor: not-allowed; transform: none !important; pointer-events: none;
}

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(61,111,184,0.2);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 2px 8px rgba(61,111,184,0.28); text-decoration: none; }

.btn-secondary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--primary-2); text-decoration: none; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--border-2); text-decoration: none; }

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px var(--space-5); font-size: var(--text-md); border-radius: var(--radius-lg); }
.btn-sm { padding: 6px var(--space-3); font-size: var(--text-xs); border-radius: var(--radius-sm); }

@media (hover: none) { .btn { padding: 13px var(--space-4); } }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}
.form-card { padding: var(--space-6); }
.center-card { text-align: center; }

/* ── Hero (home) ──────────────────────────────────────────────── */
.hero { padding: 28px var(--space-2); text-align: center; }
.hero h1 { color: var(--primary); font-size: var(--text-2xl); margin: 0 0 var(--space-4); letter-spacing: -0.5px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.hero-greet { color: var(--text-2); margin: var(--space-2) 0 var(--space-4); }

/* ── Forms ────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: var(--space-4); }
.field span {
  display: block; font-size: var(--text-sm); color: var(--text-2);
  margin-bottom: var(--space-1); font-weight: 500; letter-spacing: 0.1px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px var(--space-3); font-size: var(--text-md);
  border-radius: var(--radius-md); border: 1.5px solid var(--border);
  background: #fff; color: var(--text); outline: none; font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,111,184,0.1);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--bg); color: var(--text-3); cursor: not-allowed;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error {
  color: var(--error); background: var(--error-bg); border: 1px solid var(--error-border);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  margin: var(--space-2) 0; font-size: var(--text-sm);
}
.muted { color: var(--text-2); font-size: var(--text-sm); }
.muted.center { text-align: center; margin-top: var(--space-4); }
.small { font-size: var(--text-xs); }

/* ── Choice grid ──────────────────────────────────────────────── */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-4) 0; }
.choice-grid-tight { gap: var(--space-2); }
@media (min-width: 480px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: block; text-align: left;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  color: inherit; text-decoration: none; font-family: inherit;
  font-size: var(--text-base); width: 100%; box-shadow: var(--shadow-sm);
}
.choice:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.choice:active { transform: translateY(0); }
.choice-icon { font-size: 22px; margin-bottom: var(--space-2); }
.choice-title { font-weight: 600; color: var(--primary); font-size: var(--text-md); letter-spacing: -0.2px; }
.choice-sub { font-size: var(--text-xs); color: var(--text-2); margin-top: 3px; }

/* ── Wizard ───────────────────────────────────────────────────── */
/* Onboarding wizard surfaces are flat — no card frame */
.card.wizard {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: var(--space-3) var(--space-4) var(--space-7);
  margin: 0;
}
.wizard h1 { font-size: var(--text-xl); color: var(--text); margin: var(--space-1) 0 var(--space-2); letter-spacing: -0.4px; font-weight: 700; }
.wizard p.muted { font-size: var(--text-sm); color: var(--text-2); margin: 0 0 var(--space-5); }
.step-pill {
  display: inline-block; background: var(--accent-3); color: var(--accent-2);
  font-size: var(--text-xs); font-weight: 600; padding: 4px 10px;
  border-radius: var(--radius-full); letter-spacing: 0.3px; text-transform: uppercase;
}
/* Footer CTA row — fades from transparent into the card surface so the
   primary CTA stays anchored above the body even on long-scroll steps. */
.wizard-actions {
  display: flex; gap: var(--space-2); justify-content: flex-end; align-items: center;
  flex-wrap: wrap;
  position: sticky; bottom: 0;
  margin: var(--space-7) calc(var(--space-1) * -1) 0;
  padding: var(--space-6) var(--space-1) var(--space-3);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--card) 30%);
  z-index: 2;
}
.wizard-actions .btn-ghost { margin-right: auto; }
.wizard-actions .btn-primary { min-width: 140px; }

/* ── Onboarding progress bar (linear track + N/M counter) ─────── */
.onb-progress {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 var(--space-5);
}
.onb-progress-track {
  flex: 1;
  height: 4px;
  background: var(--divider);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.onb-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--t-page);
}
.onb-progress-step {
  font-size: var(--text-xs);
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ── Option rows ──────────────────────────────────────────────── */
.opt-row {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4); margin-bottom: var(--space-2); cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.opt-row:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,111,184,0.08); }
.opt-row:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,111,184,0.18);
}
.opt-row input { margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.opt-body { display: flex; align-items: center; gap: var(--space-3); flex: 1; }
.opt-icon { font-size: 22px; }
.opt-body strong { color: var(--text); font-size: var(--text-md); display: block; font-weight: 600; letter-spacing: -0.2px; }
.opt-body small   { color: var(--text-2); font-size: var(--text-sm); display: block; margin-top: 2px; }

/* ── Onboarding success banner (Done screen) ──────────────────── */
.onb-success-banner {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--primary-soft);
}
.onb-success-check {
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--primary); display: grid; place-items: center;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(61,111,184,0.25);
}
.onb-success-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onb-success-text strong { color: var(--primary-deep); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.2px; }
.onb-success-text span  { color: var(--primary-deep); font-size: var(--text-sm); opacity: 0.85; }

/* ── Spec list ────────────────────────────────────────────────── */
.spec-list { margin: var(--space-3) 0; max-height: 50vh; overflow-y: auto; }

/* ── Address / service rows ───────────────────────────────────── */
.addr-list, .svc-list { display: flex; flex-direction: column; gap: var(--space-4); margin: var(--space-3) 0; }
.addr-row, .svc-row {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3);
}
.addr-row .btn, .svc-row .btn { margin-top: var(--space-1); }

.big-emoji { font-size: 56px; margin-bottom: var(--space-2); }

/* ── Marketplace styles ───────────────────────────────────────── */

/* Hero full-bg */
.hero-full {
  background: var(--primary);
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4); padding: 40px var(--space-5) 32px;
}
.hero-full h1 { color: #fff; max-width: 360px; margin: 0 auto 10px; line-height: 1.2; font-size: var(--text-2xl); letter-spacing: -0.5px; }
.hero-full h1 span { color: var(--accent); }
.hero-full p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); margin-bottom: var(--space-5); max-width: 320px; margin-left: auto; margin-right: auto; }
.hero-search {
  display: flex; background: #fff; border-radius: var(--radius-md); overflow: hidden;
  max-width: 480px; margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hero-search input { flex: 1; border: none; outline: none; padding: 12px var(--space-4); font-size: var(--text-base); color: var(--text); }
.hero-search button { border-radius: 0; padding: 12px var(--space-5); }

/* Category tile grid */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); padding: 0; margin: var(--space-4) 0; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3); text-align: center; cursor: pointer;
  text-decoration: none; color: inherit; font-family: inherit; font-size: var(--text-base);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); margin: 0 auto var(--space-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cat-name { font-size: var(--text-base); font-weight: 600; color: var(--primary); letter-spacing: -0.1px; }
.cat-count { font-size: var(--text-xs); color: var(--text-3); margin-top: 3px; }

/* Section head */
.section-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0 var(--space-3); }
.section-head h2 { font-size: var(--text-lg); font-weight: 700; color: var(--primary); margin: 0; letter-spacing: -0.3px; }
.see-all { font-size: var(--text-sm); color: var(--accent); font-weight: 500; }

/* Specialist grid */
.spec-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 480px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4);
  text-decoration: none; color: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.spec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

/* Avatars — brand gradient, consistent system */
.spec-av {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm); color: #fff;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--accent) 100%);
  margin-bottom: var(--space-2); flex-shrink: 0;
}
.spec-name { font-size: var(--text-base); font-weight: 600; color: var(--primary); letter-spacing: -0.1px; }
.spec-role { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }
.spec-meta { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-2); }
.rating { font-size: var(--text-xs); color: var(--warning); font-weight: 600; }
.price { font-size: var(--text-sm); font-weight: 700; color: var(--accent); }

/* Inner tabs */
.inner-tabs {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 4px; display: flex; gap: 2px; margin-bottom: var(--space-3); overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.inner-tabs .tab {
  flex: 0 0 auto; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 500;
  color: var(--text-2); cursor: pointer; border-radius: var(--radius-sm); text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.inner-tabs .tab.active { background: var(--primary); color: #fff; }

/* Filter chips */
.filter-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.chip {
  padding: 6px var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  text-decoration: none; transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.chip:hover, .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* List cards */
.list-wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.list-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.list-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.list-card .spec-av { margin-bottom: 0; }
.lc-info { flex: 1; min-width: 0; }
.lc-name { font-size: var(--text-base); font-weight: 600; color: var(--primary); letter-spacing: -0.1px; }
.lc-role { font-size: var(--text-xs); color: var(--text-2); }
.lc-right { text-align: right; flex-shrink: 0; }
.lc-price { font-size: var(--text-base); font-weight: 700; color: var(--accent); }
.lc-dist { font-size: var(--text-xs); color: var(--text-3); }

/* Profile header */
.profile-header {
  background: var(--primary); color: #fff;
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) 0; padding: var(--space-6) var(--space-5);
  display: flex; gap: var(--space-4); align-items: flex-start;
}
.profile-av-big {
  width: 72px; height: 72px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--accent) 100%);
  border: 3px solid rgba(255,255,255,0.2); flex-shrink: 0;
}
.ph-info { flex: 1; }
.ph-info h2 { color: #fff; font-size: 18px; margin: 0; letter-spacing: -0.3px; }
.ph-info p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); margin: 3px 0 var(--space-3); }
.ph-stats { display: flex; gap: var(--space-4); margin-bottom: var(--space-3); }
.ph-stat { text-align: center; }
.ph-stat-val { color: #fff; font-size: var(--text-base); font-weight: 700; }
.ph-stat-lbl { color: rgba(255,255,255,0.5); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-block-sm { display: inline-flex; padding: var(--space-2) var(--space-5); }

/* Service rows (profile) */
.services-section, .reviews-section { padding: var(--space-4) 0; }
.services-section h3, .reviews-section h3 { font-size: var(--text-md); font-weight: 700; color: var(--primary); margin-bottom: var(--space-3); letter-spacing: -0.2px; }
.svc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border);
}
.svc-name { font-size: var(--text-sm); color: var(--text); font-weight: 500; }
.svc-dur { font-size: var(--text-xs); color: var(--text-3); }
.svc-right { display: flex; align-items: center; gap: var(--space-3); }
.svc-p { font-size: var(--text-base); font-weight: 700; color: var(--primary); }
.svc-btn {
  background: var(--accent-3); color: var(--accent-2);
  border: 1px solid rgba(61,111,184,0.2); border-radius: var(--radius-sm);
  padding: 6px var(--space-3); font-size: var(--text-xs); font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.svc-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Reviews */
.review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3); margin-bottom: var(--space-2); box-shadow: var(--shadow-sm);
}
.rc-top { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.rc-av {
  width: 28px; height: 28px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 600; color: #fff;
}
.rc-name { font-size: var(--text-sm); font-weight: 600; color: var(--primary); }
.rc-stars { font-size: var(--text-xs); color: var(--warning); margin-left: auto; }
.rc-text { font-size: var(--text-xs); color: var(--text-2); line-height: 1.55; }

/* Rental hero / type cards */
.rent-hero { background: var(--primary); margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4); padding: var(--space-6) var(--space-5); }
.rent-hero h2 { color: #fff; font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-4); letter-spacing: -0.4px; }
.rent-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.rt-card {
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-3); cursor: pointer;
  text-decoration: none; color: inherit; border: 2px solid transparent;
  transition: all var(--t-fast); text-align: left; display: block; box-shadow: var(--shadow-sm);
}
.rt-card:hover, .rt-card.active-rt { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.rt-house  { background: #EFF6FF; }
.rt-car    { background: var(--accent-3); }
.rt-office { background: #FFF7ED; }
.rt-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  margin-bottom: var(--space-2); color: #fff;
}
.ri-blue   { background: #3B82F6; }
.ri-green  { background: var(--accent); }
.ri-orange { background: #F97316; }
.rt-title { font-size: var(--text-sm); font-weight: 700; color: var(--primary); letter-spacing: -0.1px; }
.rt-sub   { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }

/* Listings */
.listings { display: flex; flex-direction: column; gap: var(--space-3); }
.listing-card-h {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
}
.listing-card-h:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.lh-img { width: 92px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.lh-info { padding: var(--space-3); flex: 1; min-width: 0; }
.lh-title { font-size: var(--text-sm); font-weight: 600; color: var(--primary); letter-spacing: -0.1px; }
.lh-meta  { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }
.lh-price { font-size: var(--text-base); font-weight: 700; color: var(--accent); margin-top: var(--space-2); }
.lh-badge {
  display: inline-block; background: var(--warning-bg); color: var(--warning);
  font-size: var(--text-xs); padding: 2px var(--space-2); border-radius: var(--radius-sm); margin-left: var(--space-2);
}

.big-price { font-size: 22px; font-weight: 700; color: var(--accent); margin: var(--space-3) 0; }

/* Booking modal — bottom sheet on mobile, centered on desktop */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.55); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 480px) { .modal-overlay { align-items: center; } }
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6); width: 100%;
  box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto;
}
@media (min-width: 480px) {
  .modal-box { width: 400px; max-width: 92%; border-radius: var(--radius-xl); }
}
.modal-box h3 { font-size: var(--text-lg); font-weight: 700; color: var(--primary); margin: 0 0 var(--space-1); letter-spacing: -0.3px; }
.modal-box p  { font-size: var(--text-sm); color: var(--text-2); margin: 0 0 var(--space-4); }
.modal-btns { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.modal-btns .btn-primary { flex: 2; }
.modal-btns .btn-ghost   { flex: 1; }

/* Toast */
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 10px var(--space-5);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500;
  opacity: 0; transition: opacity var(--t-base);
  pointer-events: none; white-space: nowrap; z-index: 2000; max-width: 92%;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; }

/* Bottom nav (marketplace 5-tab on dark tile-slate) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--tile-slate);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding:
    10px
    max(var(--space-4), calc((100% - 900px) / 2 + var(--space-5)))
    calc(env(safe-area-inset-bottom, 0) + 18px);
  z-index: 500;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.bn-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 0;
  text-decoration: none; color: #fff; opacity: 0.55;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  transition: opacity var(--t-base);
}
.bn-tab:hover { text-decoration: none; opacity: 0.85; color: #fff; }
.bn-tab.active { opacity: 1; }
.bn-icon  { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
.bn-icon svg { display: block; }
.bn-label { font-size: 10.5px; font-weight: 500; }
.has-bottom-nav .container { padding-bottom: 88px; }

/* Specialty chips (used on dashboard) */
.proc-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0; }
.spec-chip {
  background: var(--primary-soft); color: var(--primary-deep); padding: 5px var(--space-3);
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600;
  border: 1px solid rgba(61,111,184,0.2);
}

/* Bookings list */
.booking-list { list-style: none; padding: 0; margin: 0; }
.booking-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border);
  gap: var(--space-3); flex-wrap: wrap;
}
.booking-when { font-weight: 600; color: var(--primary); font-size: var(--text-base); letter-spacing: -0.1px; }
.booking-who  { font-size: var(--text-xs); color: var(--text-2); }
.booking-actions { display: flex; gap: var(--space-2); align-items: center; }

/* Status badges — all from semantic tokens */
.status {
  font-size: var(--text-xs); padding: 3px var(--space-2); border-radius: var(--radius-sm);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
}
.status-requested { background: var(--warning-bg); color: var(--warning); }
.status-confirmed { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--error-bg);   color: var(--error); }
.status-done      { background: var(--info-bg);     color: var(--info); }

/* Empty state */
.empty { padding: var(--space-5); text-align: center; color: var(--text-3); font-size: var(--text-sm); }

/* Day chip row (dashboard's working-hours summary) */
.day-chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.day-chip {
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text-2);
  cursor: pointer; transition: all var(--t-fast);
}
.day-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.day-chip:hover:not(.active) { border-color: var(--border-2); color: var(--text); }

/* Em-dash separator between time-range inputs */
.time-range-sep { color: var(--text-3); font-size: var(--text-lg); font-weight: 300; }

/* ── Marketplace primitives ───────────────────────────────────── */
.m-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 10px 16px 12px;
  background: var(--card);
}
.m-topbar.is-dark { background: var(--tile-slate); color: #fff; }
.m-topbar-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.m-topbar-sub { font-size: 11.5px; color: var(--text-2); font-weight: 500; letter-spacing: 0.2px; }
.m-topbar.is-dark .m-topbar-sub { color: rgba(255,255,255,0.7); }
.m-topbar-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); }
.m-topbar.is-dark .m-topbar-title { color: #fff; }
.m-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.m-round-btn {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--divider); border: none; color: var(--text);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.m-round-btn:hover { background: var(--slate-200); }
.m-round-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--error); border: 1.5px solid var(--card);
}

.m-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-lg);
  background: var(--divider); margin: 0 16px var(--space-3);
}
.m-search-icon { color: var(--text-2); flex-shrink: 0; }
.m-search input {
  all: unset; flex: 1; font-size: 14.5px; color: var(--text);
  font-family: var(--font-sans);
}
.m-search input::placeholder { color: var(--text-2); }

.m-chips {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; padding: 0 16px var(--space-3);
}
.m-chips::-webkit-scrollbar { display: none; }
.m-chips-pad { padding: 0 16px var(--space-3); }
.m-chip {
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  background: var(--divider); color: var(--text);
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
}
.m-chip:hover { background: var(--slate-200); text-decoration: none; }
.m-chip.is-active { background: var(--primary); color: #fff; }

.m-avatar {
  display: inline-grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.m-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.m-avatar-md { width: 44px; height: 44px; font-size: 16px; }
.m-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.m-avatar-xl { width: 96px; height: 96px; font-size: 32px; }
.m-avatar.is-ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--primary); }

.m-stars {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text); font-weight: 700;
}
.m-stars b { font-weight: 700; }
.m-stars-count { color: var(--text-2); font-weight: 500; }

.m-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
}
.m-tag-neutral { background: var(--divider); color: var(--text); }
.m-tag-primary { background: var(--primary-soft); color: var(--primary-deep); }
.m-tag-success { background: var(--success-bg); color: #0E6B3F; }
.m-tag-warn    { background: var(--warning-bg); color: #8A6500; }
.m-tag-danger  { background: var(--error-bg); color: #B33333; }
.m-tag-dark    { background: var(--tile-slate); color: #fff; }

.m-segment {
  display: flex; padding: 3px; gap: 0;
  background: var(--divider); border-radius: var(--radius-md);
  margin: 0 16px var(--space-3);
}
.m-segment-item {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2);
  font-size: var(--text-sm); font-weight: 600; text-align: center;
  cursor: pointer; transition: background var(--t-base), color var(--t-base);
  text-decoration: none;
}
.m-segment-item.is-active {
  background: var(--card); color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.m-segment-item:hover { text-decoration: none; }

.m-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 16px;
  margin: var(--space-5) 0 var(--space-3);
}
.m-section-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin: 0; }
.m-section-action { font-size: var(--text-sm); font-weight: 600; color: var(--primary); cursor: pointer; }
.m-section-action:hover { text-decoration: underline; }

/* Compact 4-column category tile grid (Home) */
.m-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 0 16px var(--space-3);
}
.m-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: none; padding: 0;
  font: inherit; color: var(--text); cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.m-cat:hover { transform: translateY(-1px); text-decoration: none; }
.m-cat-icon {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  display: grid; place-items: center;
  color: #fff;
}
.m-cat-icon svg { display: block; }
.m-cat-label {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  text-align: center; line-height: 1.2;
}

/* Pinned-masters round-avatar row */
.m-pin-row {
  display: flex; gap: 12px; padding: 6px 16px var(--space-3);
  overflow-x: auto; scrollbar-width: none;
  /* overflow-x:auto forces vertical clipping per CSS spec, so the 4px
     is-ring box-shadow on each avatar needs breathing room top + bottom. */
}
.m-pin-row::-webkit-scrollbar { display: none; }
.m-pin {
  flex-shrink: 0; width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
}
.m-pin:hover { text-decoration: none; }
.m-pin-name {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  text-align: center; line-height: 1.2;
  max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-pin-more .m-pin-plus {
  width: 64px; height: 64px; border-radius: 32px;
  background: var(--divider); color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.m-pin-more .m-pin-name { color: var(--text-2); }

/* Promo banner */
.m-promo {
  margin: 0 16px var(--space-4);
  padding: 18px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #5B86C9, #3D6FB8);
  color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.m-promo-body { flex: 1; min-width: 0; }
.m-promo-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 4px;
}
.m-promo-title { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; letter-spacing: -0.2px; }
.m-promo-sub { font-size: 13px; opacity: 0.85; }
.m-promo-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
}

/* Recommendations carousel (cards with photo placeholders) */
.m-rec-row {
  display: flex; gap: 12px; padding: 0 16px var(--space-4);
  overflow-x: auto; scrollbar-width: none;
}
.m-rec-row::-webkit-scrollbar { display: none; }
.m-rec-card {
  flex: 0 0 200px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); overflow: hidden;
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.m-rec-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-2); text-decoration: none; }
.m-rec-cover {
  aspect-ratio: 4 / 3;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.22), transparent 55%);
  background-blend-mode: screen, multiply;
}
.m-rec-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.m-rec-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.m-rec-craft { font-size: 12px; color: var(--text-2); }
.m-rec-meta { margin-top: 6px; }

/* Nearby list — thumb + body cards */
.m-near-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px var(--space-7);
}
.m-near-card {
  display: flex; gap: 12px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: 12px;
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.m-near-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-2); text-decoration: none; }
.m-near-thumb {
  width: 76px; height: 76px; border-radius: var(--radius-lg);
  flex-shrink: 0; position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.18), transparent 50%);
  display: grid; place-items: center;
}
.m-near-thumb-initials {
  color: rgba(255,255,255,0.85); font-weight: 700; font-size: 22px; letter-spacing: 0.5px;
}
.m-near-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-near-name { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -0.1px; }
.m-near-craft { font-size: 12.5px; color: var(--text-2); }
.m-near-meta { margin-top: 2px; }
.m-near-tags { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.m-near-price { font-size: 12px; color: var(--text); font-weight: 600; }

/* Master card (carousel/list) */
.m-master-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px var(--space-4); scrollbar-width: none; }
.m-master-row::-webkit-scrollbar { display: none; }
.m-master-card {
  flex: 0 0 168px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.m-master-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-2); text-decoration: none; }
.m-master-name { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.1px; }
.m-master-role { font-size: 12px; color: var(--text-2); }
.m-master-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.m-master-price { color: var(--text); font-weight: 600; margin-left: auto; }

/* Profile cover (specialists/profile) */
.m-profile-cover { position: relative; padding: 0 0 var(--space-4); }
.m-profile-cover-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}
.m-profile-cover-body {
  position: relative;
  padding: 60px 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.m-profile-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.4px; margin: 8px 0 0; }
.m-profile-role { font-size: 13px; color: var(--text-2); }
.m-profile-stats {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px;
}
.m-profile-stat { font-size: 12px; color: var(--text-2); }
.m-profile-affiliation {
  font-size: 12.5px; color: var(--text-2);
  background: var(--primary-soft); border-radius: var(--radius-md);
  padding: 8px 12px; margin-top: 4px;
}
.m-profile-affiliation strong { color: var(--primary-deep); }
.m-profile-cta { margin-top: 14px; min-width: 240px; }

/* Service list (profile) */
.m-svc-list { padding: 0 16px var(--space-3); display: flex; flex-direction: column; gap: 0; }
.m-svc {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.m-svc:last-child { border-bottom: none; }
.m-svc-info { flex: 1; min-width: 0; }
.m-svc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.m-svc-dur { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.m-svc-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.m-svc-price { font-size: 14px; font-weight: 700; color: var(--text); }

/* Reviews */
.m-review-list { padding: 0 16px var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.m-review {
  padding: 14px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
}
.m-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-review-name { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
.m-review-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* List wrap (specialists list) */
.m-list { background: var(--card); }

/* Master row (vertical list card) */
.m-list-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--divider);
  text-decoration: none;
  transition: background var(--t-base);
}
.m-list-card:hover { background: var(--slate-50); text-decoration: none; }
.m-list-card-body { flex: 1; min-width: 0; }
.m-list-card-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.1px; }
.m-list-card-role { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.m-list-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.m-list-card-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.m-list-card-price { font-size: 14px; font-weight: 700; color: var(--text); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%; border-radius: var(--radius-sm);
  animation: skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Onboarding: photos step ──────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.photo-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-tile.pending { border-style: dashed; opacity: .9; }
.photo-tile-x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(15,23,42,.7); color: #fff;
  font-size: 14px; line-height: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-uploader {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-5);
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  margin-bottom: var(--space-4);
  transition: border-color var(--t-base), background var(--t-base);
}
.photo-uploader:hover { border-color: var(--primary); background: var(--primary-soft); }
.photo-uploader-icon { color: var(--primary); }
.photo-uploader-lbl { font-weight: 600; color: var(--navy); font-size: var(--text-sm); }
.photo-uploader-hint { color: var(--text-3); }

/* ── Onboarding: profile step (subtype + specialties) ─────── */
.profile-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
  margin: var(--space-2) 0 var(--space-2);
}
.profile-section-sub {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-2);
}

/* ── Onboarding: addresses + per-address hours ────────────── */
.addr-hours {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.addr-hours-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.addr-hours-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-2);
}

.day-hours-grid {
  display: flex; flex-direction: column;
  gap: var(--space-1);
}
.day-hours-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr auto 1fr;
  align-items: center; gap: var(--space-2);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.day-hours-row:hover { background: var(--bg); }
.day-hours-row.is-off { opacity: .55; }
.day-hours-toggle {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--navy);
  cursor: pointer; user-select: none;
}
.day-hours-toggle input { accent-color: var(--accent); margin: 0; }
.day-hours-row .time-input {
  padding: 6px 8px; font-size: var(--text-sm);
  width: 100%;
}
.day-hours-row .time-input:disabled { background: transparent; color: var(--text-3); }
.day-hours-row .time-range-sep { color: var(--text-3); text-align: center; }

/* ── Onboarding: services step ────────────────────────────── */
.svc-group-actions {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-top: var(--space-2);
}
.req-mark { color: var(--error); font-style: normal; }
.svc-pending-banner {
  margin-top: var(--space-2);
  padding: 6px 10px;
  background: var(--warning-bg);
  color: var(--warning);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ── Banners (info / success / warning / danger) ──────────── */
.banner {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm); line-height: 1.4;
  margin-bottom: var(--space-4);
}
.banner b { font-weight: 700; }
.banner-info    { background: var(--primary-soft); color: var(--primary-deep); }
.banner-success { background: var(--success-bg);   color: #0E6B3F; }
.banner-warning { background: var(--warning-bg);   color: #8A6500; }
.banner-danger  { background: var(--error-bg);     color: #B33333; }
/* Legacy alias — info-banner used in views before the variants existed. */
.info-banner { background: var(--primary-soft); color: var(--primary-deep);
  padding: var(--space-4); border-radius: var(--radius-lg);
  font-size: var(--text-sm); margin-bottom: var(--space-4); }
.media-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--card);
}
.media-block-head {
  display: flex; gap: var(--space-3); align-items: center;
  margin-bottom: var(--space-3);
}
.media-icon { font-size: 24px; }
.media-block-title { font-weight: 700; color: var(--navy); font-size: var(--text-md); }
.media-block-sub { color: var(--text-2); font-size: var(--text-xs); }
.media-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.media-item {
  display: flex; gap: var(--space-2); align-items: center;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.media-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-uploader {
  display: inline-block;
  padding: 8px 14px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.media-uploader:hover { border-color: var(--accent); }
.media-pending { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 4px; }
.media-pending-row {
  display: flex; gap: var(--space-2); align-items: center; justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-2);
  padding: 4px 8px; background: var(--bg); border-radius: var(--radius-sm);
}

/* ── Company search combobox ──────────────────────────────── */
.company-search { position: relative; }
.company-search-icon {
  position: absolute; left: 12px; top: 12px;
  font-size: 14px; pointer-events: none; color: var(--text-3);
}
.company-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: var(--text-sm);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.company-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,111,184,0.12);
}
.company-search-hint { margin: 6px 2px 0; }
.company-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  margin: 2px 0 0; padding: 4px 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); list-style: none;
  box-shadow: var(--shadow-md);
  max-height: 240px; overflow-y: auto;
  z-index: 100;
}
.company-dropdown-item {
  padding: 8px 12px; cursor: pointer;
  font-size: var(--text-sm); color: var(--navy);
}
.company-dropdown-item:hover { background: var(--bg); }
.company-dropdown-empty {
  padding: 8px 12px;
  color: var(--text-3);
  font-style: italic;
}

/* ── Step 4: services (guided flow) ───────────────────────── */
.svc-tabs {
  display: flex; gap: var(--space-2);
  overflow-x: auto;
  margin: var(--space-2) calc(var(--space-4) * -1) var(--space-3);
  padding: 0 var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.svc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-2); cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-base), border-color var(--t-base);
}
.svc-tab:hover { color: var(--navy); }
.svc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.svc-tab-count {
  display: inline-block;
  min-width: 20px; padding: 2px 6px;
  background: var(--bg); color: var(--text-2);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-align: center;
}
.svc-tab.active .svc-tab-count { background: var(--accent-3); color: var(--accent); }

.svc-panel { display: flex; flex-direction: column; gap: var(--space-3); }

.svc-empty {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--bg);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
}
.svc-empty-icon { display: block; margin: 0 auto var(--space-2); color: var(--text-3); }
.svc-empty-title { font-weight: 700; color: var(--navy); font-size: var(--text-md); margin-bottom: 4px; }
.svc-empty-sub { margin-bottom: var(--space-4); }
.svc-empty .svc-add-cta { display: inline-flex; }

.svc-add-cta {
  width: 100%;
  justify-content: center;
}
.svc-empty .svc-add-cta { width: auto; }

.svc-list-label {
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; margin-bottom: 4px;
}
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.svc-list-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.svc-list-item.is-custom {
  border-left: 3px solid var(--warning);
}
.svc-list-main { flex: 1; min-width: 0; }
.svc-list-name {
  font-weight: 600; color: var(--navy);
  font-size: var(--text-sm);
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}
.svc-list-meta { margin-top: 2px; }
.svc-list-actions { display: flex; gap: 4px; flex-shrink: 0; }

.svc-form {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.svc-form-row { margin-bottom: var(--space-2); }
.svc-form-actions {
  display: flex; gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-3);
}

.svc-name-wrap { position: relative; }
.svc-name-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  margin: 2px 0 0; padding: 4px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  list-style: none;
  box-shadow: var(--shadow-md);
  max-height: 240px; overflow-y: auto;
  z-index: 100;
}
.svc-name-suggest-item {
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.svc-name-suggest-item:last-child { border-bottom: none; }
.svc-name-suggest-item:hover { background: var(--bg); }
.svc-name-suggest-custom { background: var(--warning-bg); }
.svc-name-suggest-custom:hover { background: var(--warning-bg); filter: brightness(0.97); }
.svc-name-suggest-empty { padding: 8px 12px; font-style: italic; }
.svc-suggest-line { font-size: var(--text-sm); color: var(--navy); font-weight: 600; }
.svc-suggest-sub { margin-top: 2px; }

.form-hint { margin-top: 4px; font-size: var(--text-xs); color: var(--text-3); }
.form-hint.warning-text { color: var(--warning); }

/* ── Address search combobox ──────────────────────────────── */
.addr-search-wrap { position: relative; }
.addr-search-icon {
  position: absolute; left: 12px; top: 11px;
  color: var(--text-3); pointer-events: none;
}
.addr-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: var(--text-sm);
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.addr-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,111,184,0.12);
}
.addr-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  margin: 2px 0 0; padding: 4px 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); list-style: none;
  box-shadow: var(--shadow-md);
  max-height: 280px; overflow-y: auto;
  z-index: 100;
}
.addr-dropdown-item {
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.addr-dropdown-item:last-child { border-bottom: none; }
.addr-dropdown-item:hover { background: var(--bg); }
.addr-dropdown-line { font-size: var(--text-sm); font-weight: 600; color: var(--navy); }
.addr-dropdown-sub  { margin-top: 2px; }
.addr-dropdown-empty {
  padding: 8px 12px;
  color: var(--text-3);
  font-style: italic;
}
.addr-dropdown-fallback {
  padding: 8px 12px; cursor: pointer;
  background: var(--accent-3); border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--navy);
}
.addr-dropdown-fallback:hover { background: var(--accent-3); filter: brightness(0.96); }

.addr-picked {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: 10px 12px;
  background: var(--accent-3);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.addr-picked[hidden] { display: none; }
.addr-picked-icon { flex-shrink: 0; color: var(--primary); }
.addr-picked-body { flex: 1; min-width: 0; }
.addr-picked-line { font-weight: 600; color: var(--navy); font-size: var(--text-sm); }
.addr-picked-sub  { margin-top: 2px; }

/* ── Status pills ─────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-ok      { background: var(--success-bg); color: var(--success); }
.status-bad     { background: var(--error-bg);   color: var(--error); }

/* ── §1 Cat-tile grid — onboarding category picker ───────────── */
.cat-tile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  max-width: 380px; margin: var(--space-3) auto;
}
.cat-tile {
  position: relative; display: flex; aspect-ratio: 1 / 1; padding: var(--space-4);
  border-radius: 16px; color: #fff; cursor: pointer;
  flex-direction: column; justify-content: space-between;
  text-decoration: none; transition: outline .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.cat-tile:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.cat-tile.is-selected { outline: 3px solid var(--primary); outline-offset: 2px; }
.cat-tile-icon { width: 56px; height: 56px; }
.cat-tile-name {
  color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.15;
}
.cat-tile-sub {
  color: rgba(255, 255, 255, 0.92); font-size: 13.5px; margin-top: 4px;
  line-height: 1.35; font-weight: 500;
}
.cat-tile-check {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 13px; background: #fff;
  display: grid; place-items: center; color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.cat-tile-disabled { cursor: not-allowed; }
.cat-tile-disabled:hover { transform: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.cat-tile-soon-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.32); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* ── §2 Day-toggle — weekly availability switch row ──────────── */
.day-toggle-card {
  background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--border);
  padding: 4px var(--space-4); margin: var(--space-3) 0;
}
.day-toggle-row {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0;
  border-bottom: 1px solid var(--divider);
}
.day-toggle-row:last-child { border-bottom: none; }
.day-toggle-row.is-closed { opacity: 0.5; }
.day-toggle-name { font-size: 14px; font-weight: 600; color: var(--text); }
.day-toggle-hours { font-size: 12.5px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.day-toggle-info { flex: 1; min-width: 0; }
.day-toggle-times { display: flex; gap: 8px; align-items: center; }
.day-toggle-switch {
  position: relative; width: 44px; height: 26px; border-radius: 13px;
  background: #CBD5E1; cursor: pointer;
  border: none; padding: 0; flex-shrink: 0;
  transition: background var(--t-base);
}
.day-toggle-switch.is-on { background: var(--primary); }
.day-toggle-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 11px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left var(--t-base);
}
.day-toggle-switch.is-on::after { left: 20px; }

/* ── §3 Time-chip — small inline time field ──────────────────── */
.time-chip {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 6px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border);
  text-align: center; min-width: 64px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.time-chip:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }

/* ── §4 Welcome-hero — dark navy welcome screen ──────────────── */
.welcome {
  background: var(--tile-slate); color: #fff; min-height: 100vh; padding: 24px 24px 30px;
  display: flex; flex-direction: column; gap: var(--space-5);
}
.welcome-logo { display: flex; align-items: center; gap: 10px; }
.welcome-logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.14);
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  letter-spacing: -1px; color: #fff;
}
.welcome-logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.welcome-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.welcome-mini-tile {
  background: rgba(255,255,255,0.08); border-radius: 14px; padding: 14px;
  height: 100px; display: flex; flex-direction: column; justify-content: space-between;
}
.welcome-mini-tile-name { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.welcome-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }
.welcome-subtitle { font-size: 13.5px; color: rgba(255,255,255,0.7); margin-top: 6px; line-height: 1.5; }
.welcome-stats { display: flex; gap: var(--space-5); }
.welcome-stat-n { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.welcome-stat-l { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; letter-spacing: 0.2px; }
.welcome-cta-row { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.welcome-cta-row .btn-primary { background: #fff; color: var(--primary); border: none; }
.welcome-cta-row .btn-primary:hover { background: rgba(255,255,255,0.92); }
.welcome-link {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  text-align: center; padding: 12px 0;
}
.welcome-link:hover { color: #fff; text-decoration: none; }

/* ── §5 Review-row — review screen edit-row pattern ─────────── */
.review-card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-xl);
  background: var(--tile-slate); color: #fff;
  margin-bottom: var(--space-4);
}
.review-card-thumb {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(255,255,255,0.15); flex-shrink: 0;
}
.review-card-eyebrow {
  font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.review-card-name { font-size: 16px; font-weight: 700; margin-top: 2px; }
.review-card-meta { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.review-list {
  background: var(--card); border-radius: var(--radius-xl);
  border: 1px solid var(--border); overflow: hidden;
}
.review-row {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: var(--space-4); border-bottom: 1px solid var(--divider);
  font: inherit; color: inherit;
}
.review-row:last-child { border-bottom: none; }
.review-row:hover { background: var(--bg); }
.review-row-info { flex: 1; min-width: 0; }
.review-row-label { font-size: 11.5px; color: var(--text-2); font-weight: 500; letter-spacing: 0.2px; }
.review-row-value { font-size: 14.5px; color: var(--text); font-weight: 600; margin-top: 2px; }
.review-row-edit { font-size: 12px; color: var(--primary); font-weight: 700; }
.review-row-chev { color: var(--text-3); }

/* ── §6 Photo-grid cover-pick variant ────────────────────────── */
.photo-tile.is-cover { outline: 2.5px solid var(--primary); outline-offset: -2px; }
.photo-tile-cover-badge {
  position: absolute; top: 6px; left: 6px;
  background: #fff; color: var(--text); font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 8px;
  display: flex; align-items: center; gap: 4px;
}
.photo-tile-cover-check {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 11px;
  background: var(--primary); display: grid; place-items: center; color: #fff;
}
.photo-tile-set-cover {
  position: absolute; inset: 0; background: rgba(0,0,0,0); border: none; cursor: pointer; padding: 0;
}

/* ── §8 Payment-card — payment screen ────────────────────────── */
.payment-form { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-card-mock {
  background: linear-gradient(135deg, #5B86C9, #2C5896);
  color: #fff; border-radius: var(--radius-xl); padding: var(--space-5); margin-bottom: var(--space-3);
  position: relative; min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.payment-card-mock-brand { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.payment-card-mock-num { font-size: 18px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.payment-card-mock-row {
  display: flex; justify-content: space-between;
  font-size: 11px; opacity: 0.85; letter-spacing: 1px; text-transform: uppercase;
}
.payment-secure {
  display: flex; align-items: center; gap: 6px; color: var(--text-2);
  font-size: 12px; justify-content: center; padding: var(--space-3);
}

/* ── §9 Review-stars — leave-a-review rating ─────────────────── */
.rating-stars { display: flex; gap: 6px; justify-content: center; padding: var(--space-3) 0; }
.rating-star {
  width: 36px; height: 36px; color: var(--text-3); cursor: pointer;
  transition: color var(--t-fast); border: none; background: none; padding: 0;
}
.rating-star.is-filled { color: var(--warning); }
.rating-star:hover { color: var(--warning); }

/* ── §10 Chat-bubble — chat thread ───────────────────────────── */
.chat-thread { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); }
.chat-bubble {
  max-width: 78%; padding: 10px var(--space-3); border-radius: 16px;
  font-size: 14px; line-height: 1.4; word-wrap: break-word;
}
.chat-bubble.them {
  align-self: flex-start; background: var(--card);
  border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px;
}
.chat-bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.chat-input-bar {
  position: sticky; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: var(--space-3);
  background: var(--card); border-top: 1px solid var(--border);
}
.chat-input-bar input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--border); font: inherit;
}
.chat-input-bar button {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
}

/* ── §11 Payout-card — payout method card ────────────────────── */
.payout-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0; }
.payout-card {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card);
}
.payout-card.is-default { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61,111,184,0.18); }
.payout-card-icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--primary-soft);
  color: var(--primary-deep); display: grid; place-items: center; flex-shrink: 0;
}
.payout-card-info { flex: 1; min-width: 0; }
.payout-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.payout-card-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.payout-card-default-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--primary-deep); background: var(--primary-soft); padding: 4px 8px; border-radius: 6px;
}

/* ── §12 Search-empty / search-no-results — empty states ─────── */
.search-empty,
.search-no-results {
  text-align: center; padding: 48px var(--space-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.search-empty-icon {
  width: 72px; height: 72px; border-radius: 36px;
  background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center;
}
.search-empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.search-empty-body { font-size: 13px; color: var(--text-2); max-width: 280px; line-height: 1.4; }

/* ── §13 Password-strength — register strength meter ─────────── */
.password-strength { display: flex; gap: 4px; margin-top: 6px; }
.password-strength-bar {
  flex: 1; height: 4px; border-radius: 2px; background: var(--divider);
  transition: background var(--t-fast);
}
.password-strength.weak .password-strength-bar:nth-child(-n+1) { background: var(--error); }
.password-strength.fair .password-strength-bar:nth-child(-n+2) { background: var(--warning); }
.password-strength.strong .password-strength-bar:nth-child(-n+3) { background: var(--success); }
.password-strength-label { font-size: 11px; color: var(--text-2); margin-top: 4px; font-weight: 500; }

/* ── §14 Dashed-add — "Add …" dashed CTA row ────────────────── */
.dashed-add {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  padding: var(--space-4); border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border); background: transparent;
  color: var(--primary); font-size: 14px; font-weight: 600;
  cursor: pointer; font: inherit; text-decoration: none;
}
.dashed-add-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; flex-shrink: 0;
}
.dashed-add:hover { background: var(--primary-soft); text-decoration: none; }

/* ── §15 Chip-row — horizontal chip filter ───────────────────── */
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px;
  margin: 0 -16px var(--space-3); scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-pill {
  padding: 8px 14px; border-radius: 999px;
  background: var(--divider); color: var(--text);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer; border: none; font: inherit; flex-shrink: 0;
}
.chip-pill.is-active { background: var(--primary); color: #fff; }

/* === lane-c (onboarding data entry) === */

/* ── Addresses ──────────────────────────────────────────────────── */
.lc-addr-list {
  display: flex; flex-direction: column; gap: var(--space-5);
  margin-bottom: var(--space-4);
}
.lc-addr-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.lc-addr-card.lc-conflict {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(217,117,96,0.14);
}
.lc-label-field { margin-bottom: var(--space-4); }
.lc-opt { font-weight: 400; font-style: normal; color: var(--text-3); }

/* Geocode search */
.lc-geo-wrap { margin-bottom: var(--space-4); position: relative; }
.lc-geo-input-row {
  position: relative; display: flex; align-items: center;
}
.lc-geo-pin {
  position: absolute; left: 11px; color: var(--text-3); pointer-events: none; flex-shrink: 0;
}
.lc-geo-input {
  width: 100%; padding: 11px 36px 11px 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-md); font-family: inherit; background: #fff; color: var(--text);
  outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lc-geo-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,0.10); }
.lc-geo-spinner {
  position: absolute; right: 11px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--primary);
  animation: lc-spin 0.7s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* Geocode dropdown */
.lc-geo-dropdown {
  list-style: none; padding: 4px 0; margin: 2px 0 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-3);
  max-height: 240px; overflow-y: auto; z-index: 60;
  position: absolute; left: 0; right: 0; top: 100%;
}
.lc-geo-item {
  padding: 10px 14px; cursor: pointer;
  transition: background var(--t-fast);
}
.lc-geo-item:hover { background: var(--slate-50); }
.lc-geo-item-line { font-size: var(--text-base); color: var(--text); font-weight: 500; }
.lc-geo-item-sub  { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }
.lc-geo-empty     { padding: 10px 14px; font-size: var(--text-sm); color: var(--text-3); }
.lc-geo-fallback  {
  padding: 10px 14px; cursor: pointer; font-size: var(--text-sm);
  border-top: 1px solid var(--divider); color: var(--primary);
  transition: background var(--t-fast);
}
.lc-geo-fallback:hover { background: var(--primary-soft); }

/* Picked address chip */
.lc-picked {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; margin-bottom: var(--space-4);
  background: var(--primary-soft); border-radius: var(--radius-md);
  border: 1px solid rgba(24,119,242,0.18);
}
.lc-picked-pin  { color: var(--primary); flex-shrink: 0; }
.lc-picked-body { flex: 1; min-width: 0; }
.lc-picked-line { font-size: var(--text-base); font-weight: 600; color: var(--text); }
.lc-picked-sub  { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }

/* Weekly schedule grid */
.lc-schedule { margin-top: var(--space-4); }
.lc-schedule-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.lc-schedule-title { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.lc-day-grid { display: flex; flex-direction: column; gap: 6px; }
.lc-day-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--slate-50); border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
  min-height: 44px;
}
.lc-day-row.is-on { background: var(--card); border-color: var(--border); }
.lc-day-row.lc-conflict-day {
  background: var(--error-bg); border-color: var(--error-border);
}
.lc-day-toggle {
  display: flex; align-items: center; gap: var(--space-2); cursor: pointer; flex-shrink: 0;
  min-width: 72px;
}
.lc-day-toggle input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.lc-day-name { font-size: var(--text-sm); font-weight: 500; color: var(--text); }
.lc-day-row:not(.is-on) .lc-day-name { color: var(--text-3); }
.lc-day-times {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.lc-day-times.is-hidden { visibility: hidden; }
.lc-time {
  width: 80px; padding: 6px 8px; font-size: var(--text-sm);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-family: inherit; outline: none;
  transition: border-color var(--t-fast);
}
.lc-time:focus { border-color: var(--primary); }
.lc-time:disabled { background: var(--divider); color: var(--text-3); cursor: not-allowed; }
.lc-time-sep { color: var(--text-3); font-weight: 300; }
@media (max-width: 360px) { .lc-time { width: 70px; } }

.lc-remove-addr {
  display: flex; align-items: center; gap: 6px;
  margin-top: var(--space-4); padding: 0;
  background: none; border: none; cursor: pointer;
  font-size: var(--text-sm); color: var(--error); font-family: inherit;
  font-weight: 500; opacity: 0.8; transition: opacity var(--t-fast);
  min-height: 44px;
}
.lc-remove-addr:hover { opacity: 1; }

.lc-add-addr-btn {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; padding: 13px var(--space-4);
  background: var(--card); border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-lg); cursor: pointer;
  font-size: var(--text-base); font-weight: 600; color: var(--primary);
  font-family: inherit; transition: border-color var(--t-fast), background var(--t-fast);
  justify-content: center;
}
.lc-add-addr-btn:hover { border-color: var(--primary); background: var(--primary-soft); }

.lc-geocode-attr { margin-top: var(--space-3); text-align: center; }

/* ── Services / Procedures shared ──────────────────────────────── */
.lc-spec-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-bottom: var(--space-4); padding-bottom: 2px;
}
.lc-spec-tabs::-webkit-scrollbar { display: none; }
.lc-spec-tab {
  flex-shrink: 0; padding: 7px 14px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); cursor: pointer;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-2);
  font-family: inherit; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.lc-spec-tab:hover   { border-color: var(--border-2); color: var(--text); }
.lc-spec-tab.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.lc-tab-count { font-weight: 400; opacity: 0.8; }
.lc-single-spec {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--primary-soft); border: 1px solid rgba(24,119,242,0.18);
  font-size: var(--text-sm); font-weight: 600; color: var(--primary-deep);
  margin-bottom: var(--space-4);
}

/* Service list */
.lc-svc-panel { margin-bottom: var(--space-2); }
.lc-list-label {
  font-size: var(--text-xs); font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}
.lc-svc-list {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: var(--space-3);
}
.lc-svc-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px var(--space-4); background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  transition: border-color var(--t-fast);
}
.lc-svc-item.is-custom { border-color: rgba(232,169,81,0.45); background: var(--warning-bg); }
.lc-svc-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0;
}
.lc-svc-thumb-empty {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--divider); display: grid; place-items: center; color: var(--text-3);
}
.lc-svc-item-body  { flex: 1; min-width: 0; }
.lc-svc-item-name  { font-size: var(--text-base); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-svc-item-meta  { font-size: var(--text-xs); color: var(--text-2); margin-top: 3px; }
.lc-svc-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.lc-remove-btn { color: var(--error) !important; border-color: var(--error-border) !important; }
.lc-remove-btn:hover { background: var(--error-bg) !important; }
.lc-photo-count { color: var(--text-3); }

/* Pending pill */
.lc-pending-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  padding: 2px 6px; border-radius: var(--radius-sm);
  background: var(--warning-bg); color: #92400e;
  vertical-align: middle; margin-left: 4px;
}

/* Empty state */
.lc-svc-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-7) 0; gap: var(--space-3);
}
.lc-svc-empty-icon {
  width: 56px; height: 56px; border-radius: var(--radius-xl);
  background: var(--divider); display: grid; place-items: center; color: var(--text-3);
}
.lc-svc-empty-title { font-size: var(--text-md); font-weight: 700; color: var(--text); }
.lc-svc-empty-sub   { font-size: var(--text-sm); color: var(--text-2); max-width: 280px; }

/* Service form */
.lc-svc-form {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  margin-bottom: var(--space-3);
}
.lc-field-hint  { font-size: var(--text-xs); color: var(--text-2); margin-top: 4px; }
.lc-custom-hint {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: var(--text-xs); color: #92400e;
  background: var(--warning-bg); border-radius: var(--radius-sm);
  padding: 6px 8px; margin-top: var(--space-2);
}
.lc-req { font-style: normal; color: var(--error); }

/* Duration chips */
.lc-dur-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px;
}
.lc-dur-chip {
  padding: 6px 12px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--card); color: var(--text-2);
  font-size: var(--text-sm); font-weight: 600; font-family: inherit;
  cursor: pointer; min-height: 36px;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.lc-dur-chip:hover   { border-color: var(--primary); color: var(--primary); }
.lc-dur-chip.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Price input with currency prefix */
.lc-price-wrap { position: relative; display: flex; align-items: center; }
.lc-price-currency {
  position: absolute; left: 12px; font-size: var(--text-md); font-weight: 600;
  color: var(--text-2); pointer-events: none;
}
.lc-price-wrap input { padding-left: 28px; }

/* Name suggestion dropdown */
.lc-name-wrap { position: relative; }
.lc-suggest {
  list-style: none; padding: 4px 0; margin: 2px 0 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-3);
  max-height: 220px; overflow-y: auto;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
}
.lc-suggest-item {
  padding: 9px 12px; cursor: pointer; transition: background var(--t-fast);
}
.lc-suggest-item:hover { background: var(--slate-50); }
.lc-suggest-name { font-size: var(--text-base); font-weight: 500; color: var(--text); }
.lc-suggest-sub  { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }
.lc-suggest-custom {
  border-top: 1px solid var(--divider);
  font-size: var(--text-sm); color: var(--primary);
}
.lc-suggest-empty {
  padding: 10px 12px; font-size: var(--text-sm); color: var(--text-3);
}

/* Form action row */
.lc-form-actions {
  display: flex; justify-content: flex-end; gap: var(--space-2);
  margin-top: var(--space-5);
}

/* Service photo section (services.ejs only) */
.lc-photo-section { margin-top: var(--space-5); }
.lc-photo-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.lc-photo-section-title { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.lc-photo-count-badge {
  font-size: var(--text-xs); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.lc-photo-count-badge.is-max { color: var(--error); font-weight: 600; }
.lc-photo-hint { font-size: var(--text-xs); color: var(--text-2); margin-bottom: var(--space-3); }
.lc-photo-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lc-photo-tile {
  position: relative; width: 72px; height: 72px;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--divider); flex-shrink: 0;
}
.lc-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-photo-tile.lc-photo-pending { opacity: 0.8; }
.lc-photo-x {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 10px;
  border: none; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 13px; line-height: 20px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--t-fast);
}
.lc-photo-x:hover { background: rgba(0,0,0,0.75); }
.lc-photo-badge {
  position: absolute; left: 3px; bottom: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.2px;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(254,243,199,0.95); color: #92400e;
}
.lc-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 72px; height: 72px; border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-2); cursor: pointer;
  color: var(--text-2); font-size: var(--text-xs); font-weight: 500; text-align: center;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lc-photo-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Dashed "add another" button */
.lc-dashed-add {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; padding: 12px var(--space-4); margin-top: var(--space-3);
  background: transparent; border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-lg); cursor: pointer;
  font-size: var(--text-base); font-weight: 600; color: var(--primary);
  font-family: inherit; justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 44px;
}
.lc-dashed-add:hover { border-color: var(--primary); background: var(--primary-soft); }
/* When used as a <label> */
label.lc-dashed-add { cursor: pointer; }

/* ── Portfolio ──────────────────────────────────────────────────── */
.lc-portfolio-nudge {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--warning-bg); border: 1px solid rgba(232,169,81,0.35);
  font-size: var(--text-sm); color: #78350f; font-weight: 500;
  margin-bottom: var(--space-5);
}
.lc-portfolio-nudge svg { flex-shrink: 0; color: var(--warning); }

/* Media blocks */
.lc-media-block {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--divider);
}
.lc-media-block:first-of-type { border-top: none; }
.lc-media-block-head {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.lc-media-block-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md); flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.lc-icon-photo { background: var(--primary); }
.lc-icon-cert  { background: var(--warning); }
.lc-icon-video { background: var(--success); }
.lc-icon-cv    { background: var(--text-2); }
.lc-media-block-title { font-size: var(--text-base); font-weight: 700; color: var(--text); }
.lc-media-block-sub   { font-size: var(--text-xs); color: var(--text-2); margin-top: 2px; }

/* Portfolio photo grid (bigger tiles — showcase context) */
#photoGrid.lc-photo-grid {
  gap: 10px; margin-bottom: var(--space-4);
}
.lc-photo-tile {
  position: relative; width: 88px; height: 88px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--border); background: var(--divider); flex-shrink: 0;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.lc-photo-tile:hover { transform: scale(1.03); box-shadow: var(--shadow-2); }
.lc-photo-tile.is-cover { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.lc-photo-tile.lc-photo-tile-pending { opacity: 0.75; }
.lc-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-cover-badge {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: rgba(24,119,242,0.82); color: #fff;
  font-size: 9px; font-weight: 700; padding: 3px 6px;
  display: flex; align-items: center; gap: 3px;
}
.lc-set-cover {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: rgba(0,0,0,0.42); color: #fff;
  font-size: 9px; font-weight: 700; padding: 4px 6px;
  border: none; cursor: pointer; font-family: inherit; opacity: 0;
  transition: opacity var(--t-fast);
}
.lc-photo-tile:hover .lc-set-cover { opacity: 1; }

/* Empty state for photo grid */
.lc-photo-empty-state {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-2); color: var(--text-3);
  font-size: var(--text-sm); width: 100%;
}
/* Skeleton tiles for photo grid */
.lc-photo-skeleton {
  width: 88px; height: 88px; border-radius: var(--radius-lg);
  background: var(--divider);
  animation: lc-pulse 1.4s ease-in-out infinite;
}
@keyframes lc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* Upload zone */
.lc-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); padding: var(--space-5);
  border: 1.5px dashed var(--border-2); border-radius: var(--radius-lg);
  cursor: pointer; color: var(--text-2); text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 100px;
}
.lc-upload-zone:hover,
.lc-upload-zone.is-dragover {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary);
}
.lc-upload-icon { transition: color var(--t-fast); }
.lc-upload-lbl  { font-size: var(--text-base); font-weight: 600; }
.lc-upload-hint { font-size: var(--text-xs); }

/* File list (cert / video / cv) */
.lc-file-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.lc-file-list-empty { margin-bottom: 0; }
.lc-file-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.lc-file-icon   { color: var(--text-3); flex-shrink: 0; }
.lc-file-name   { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-file-remove {
  width: 28px; height: 28px; border-radius: var(--radius-sm); border: none;
  background: transparent; cursor: pointer; color: var(--text-3); flex-shrink: 0;
  display: grid; place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.lc-file-remove:hover { background: var(--error-bg); color: var(--error); }

/* Status pills (file list) */
.lc-status-pill {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  padding: 2px 7px; border-radius: var(--radius-sm);
}
.lc-status-pending { background: var(--warning-bg); color: #92400e; }
.lc-status-ok      { background: var(--success-bg); color: var(--success); }
.lc-status-bad     { background: var(--error-bg);   color: var(--error); }

/* ── Responsive tweaks ──────────────────────────────────────────── */
@media (max-width: 375px) {
  .lc-day-toggle { min-width: 60px; }
  .lc-time { width: 68px; font-size: 12px; padding: 5px 5px; }
  .lc-photo-tile { width: 72px; height: 72px; }
  .lc-photo-skeleton { width: 72px; height: 72px; }
  .lc-dur-chip { padding: 5px 9px; font-size: 12px; }
}

/* === lane-a (auth) === */

.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-4);
  min-height: calc(100dvh - 56px - 88px); /* topbar + bottom-nav */
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, var(--primary-soft) 0%, transparent 65%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-2);
}
@media (min-width: 480px) {
  .auth-card {
    padding: var(--space-8) var(--space-7);
    box-shadow:
      0 1px 0 rgba(15, 23, 42, 0.04),
      0 12px 32px rgba(15, 23, 42, 0.08);
  }
}

.auth-heading {
  font-size: var(--text-xl); font-weight: 700;
  letter-spacing: -0.4px; color: var(--text);
  margin: 0 0 var(--space-5); line-height: 1.2;
}

.auth-role-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2px;
  margin-bottom: var(--space-4); max-width: 420px; width: 100%; box-sizing: border-box;
}
.auth-role-badge--client   { background: var(--primary-soft); color: var(--primary-deep); }
.auth-role-badge--provider { background: var(--success-bg);   color: var(--success); }

.auth-social-proof {
  font-size: var(--text-sm); color: var(--text-2);
  margin: calc(var(--space-4) * -1) 0 var(--space-5); line-height: 1.4;
}

.input-pw-wrap { position: relative; display: flex; align-items: center; }
.input-pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--text-3); display: grid; place-items: center;
  transition: color var(--t-fast); border-radius: var(--radius-sm); line-height: 0;
}
.pw-toggle:hover { color: var(--text-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.pw-strength { display: flex; align-items: center; gap: var(--space-3); margin: 6px 0 var(--space-4); }
.pw-strength-track { flex: 1; height: 4px; background: var(--divider); border-radius: var(--radius-full); overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: var(--radius-full); width: 0; transition: width var(--t-slow), background var(--t-base); }
.pw-strength-fill--weak   { background: var(--error); }
.pw-strength-fill--fair   { background: var(--warning); }
.pw-strength-fill--strong { background: var(--success); }
.pw-strength-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-2); white-space: nowrap; min-width: 42px; text-align: right; }

.field-inline-error { display: block; font-size: var(--text-xs); color: var(--error); margin-top: var(--space-1); line-height: 1.4; }
.field--error input, .field--error select, .field--error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 117, 96, 0.12);
}
.field--error input:focus, .field--error select:focus, .field--error textarea:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 117, 96, 0.2);
}

.field-label-hint { font-weight: 400; color: var(--text-3); font-size: var(--text-xs); }

.auth-forgot-row { display: flex; justify-content: flex-end; margin-top: calc(var(--space-2) * -1); margin-bottom: var(--space-4); }
.auth-forgot-link { font-size: var(--text-sm); color: var(--primary); font-weight: 500; }
.auth-forgot-link:hover { text-decoration: underline; }

.auth-submit { margin-top: var(--space-2); border-radius: var(--radius-lg); }
.auth-banner { margin-bottom: var(--space-5); border-radius: var(--radius-md); }

.auth-switch-line { text-align: center; font-size: var(--text-sm); color: var(--text-2); margin-top: var(--space-5); margin-bottom: 0; }
.auth-switch-line a { font-weight: 600; margin-left: 4px; }

/* === lane-b (onboarding pickers) === */

.lb-cat-grid { display: flex; flex-direction: column; gap: var(--space-3); margin: 0 0 var(--space-4); }
.lb-cat-tile {
  display: block; width: 100%;
  background: var(--tile-bg, var(--primary));
  border: none; border-radius: var(--radius-2xl); padding: 0;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: transform var(--t-base), box-shadow var(--t-base), opacity var(--t-base);
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.lb-cat-tile:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.lb-cat-tile:active { transform: scale(0.985); }
.lb-cat-tile:not(.lb-cat-tile--soon):hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.lb-cat-tile.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary), var(--shadow-3); }
.lb-cat-tile--soon { opacity: 0.58; pointer-events: auto; cursor: default; }

.lb-cat-tile-inner { display: flex; align-items: center; gap: var(--space-4); padding: 14px 16px; }
.lb-cat-icon { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; }
.lb-cat-text { flex: 1; min-width: 0; }
.lb-cat-name { font-size: var(--text-md); font-weight: 700; color: #fff; letter-spacing: -0.2px; line-height: 1.3; }
.lb-cat-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.72); margin-top: 3px; line-height: 1.4; }

.lb-cat-check {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: var(--radius-full); background: #fff; color: var(--primary);
  flex-shrink: 0; opacity: 0; transform: scale(0.6);
  transition: opacity var(--t-base), transform var(--t-base);
}
.lb-cat-tile.is-selected .lb-cat-check { opacity: 1; transform: scale(1); }

.lb-soon-badge {
  display: inline-flex; align-items: center; padding: 4px 9px;
  border-radius: var(--radius-full); background: rgba(255,255,255,0.22);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  flex-shrink: 0; white-space: nowrap; border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.lb-soon-banner {
  display: flex; align-items: flex-start; gap: var(--space-2);
  background: var(--info-bg); color: var(--primary-deep);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); margin-bottom: var(--space-3);
}
.lb-soon-banner svg { flex-shrink: 0; margin-top: 1px; color: var(--primary); }

.lb-fmt-grid { display: flex; flex-direction: column; gap: var(--space-3); margin: 0 0 var(--space-4); }
@media (min-width: 480px) {
  .lb-fmt-grid { flex-direction: row; }
  .lb-fmt-card { flex: 1; }
}
.lb-fmt-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-3); padding: var(--space-6) var(--space-4) var(--space-5);
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-2xl); cursor: pointer; font-family: inherit;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  box-shadow: var(--shadow-1); position: relative;
}
.lb-fmt-card input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.lb-fmt-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,0.10), var(--shadow-2); transform: translateY(-2px); }
.lb-fmt-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,0.18), var(--shadow-2); }
.lb-fmt-card:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.lb-fmt-card:active { transform: scale(0.985); }

.lb-fmt-illus { display: block; flex-shrink: 0; }
.lb-fmt-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lb-fmt-title { display: block; font-size: var(--text-md); font-weight: 700; color: var(--text); letter-spacing: -0.2px; line-height: 1.3; }
.lb-fmt-sub { display: block; font-size: var(--text-sm); color: var(--text-2); line-height: 1.4; }

.lb-fmt-radio {
  display: block; width: 18px; height: 18px; border-radius: var(--radius-full);
  border: 2px solid var(--slate-300); background: #fff;
  transition: border-color var(--t-base), background var(--t-base);
  flex-shrink: 0; position: relative;
}
.lb-fmt-card:has(input:checked) .lb-fmt-radio {
  border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.lb-spec-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.lb-spec-count { font-size: var(--text-xs); font-weight: 600; color: var(--primary); white-space: nowrap; flex-shrink: 0; min-height: 16px; }
.lb-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 var(--space-4); }
@media (min-width: 480px) { .lb-spec-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); } }

.lb-spec-tile {
  display: flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 9px 10px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; font-family: inherit;
  font-size: var(--text-sm); font-weight: 500; color: var(--text);
  text-align: left; line-height: 1.3;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.lb-spec-tile:hover { border-color: var(--spec-tone, var(--primary)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--spec-tone, var(--primary)) 18%, transparent); }
.lb-spec-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lb-spec-tile:active { transform: scale(0.97); }
.lb-spec-tile.is-selected {
  border-color: var(--spec-tone, var(--primary));
  background: color-mix(in srgb, var(--spec-tone, var(--primary)) 8%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--spec-tone, var(--primary)) 22%, transparent);
}

.lb-spec-dot {
  display: block; width: 8px; height: 8px; border-radius: var(--radius-full);
  background: var(--spec-tone, var(--primary)); flex-shrink: 0;
  transition: transform var(--t-fast);
}
.lb-spec-tile.is-selected .lb-spec-dot { transform: scale(0); width: 0; margin: 0; padding: 0; }

.lb-spec-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lb-spec-check {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: var(--radius-full); background: var(--spec-tone, var(--primary));
  flex-shrink: 0; opacity: 0; transform: scale(0.5);
  transition: opacity var(--t-base), transform var(--t-base);
}
.lb-spec-tile.is-selected .lb-spec-check { opacity: 1; transform: scale(1); }

@supports not (color: color-mix(in srgb, red 10%, blue)) {
  .lb-spec-tile.is-selected { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,119,242,0.18); }
  .lb-spec-tile:hover        { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,119,242,0.10); }
  .lb-spec-check             { background: var(--primary); }
}

/* === lane-d (onboarding wrap-up) === */

.avail-bulk-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.avail-bulk-row .btn { font-size: var(--text-xs); }
.avail-day-err { font-size: 11px; padding: 3px 8px; margin: 0; flex-shrink: 0; white-space: nowrap; }

.photo-uploader.is-dragover { border-color: var(--primary); background: var(--primary-soft); }
.photo-tile-cover-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(15,23,42,0.55); color: #fff;
  font-size: 10px; font-weight: 700; text-align: center; padding: 5px 4px;
  opacity: 0; transition: opacity var(--t-base); pointer-events: none;
}
.photo-tile:hover .photo-tile-cover-hint { opacity: 1; }

.review-row-value--chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.review-row-value--chips .spec-chip { font-size: 11px; padding: 3px 8px; }
.review-row-value--addr { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text); margin-top: 3px; }
.review-row-value--svc { display: flex; align-items: baseline; gap: var(--space-2); margin-top: 3px; }
.review-svc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.review-svc-meta { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.review-row-value--mono { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 3px; line-height: 1.5; }
.review-row--block { align-items: flex-start; }
.review-row--photos { align-items: flex-start; }
.review-photo-strip { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.review-photo-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg) center/cover no-repeat; border: 1px solid var(--border); flex-shrink: 0; }
.review-photo-more {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--divider); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--text-2); flex-shrink: 0;
}

.done-screen { text-align: center; padding-top: var(--space-7); padding-bottom: var(--space-7); }
.done-illu { display: flex; justify-content: center; margin-bottom: var(--space-5); animation: done-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes done-pop { from { opacity:0; transform:scale(0.6); } to { opacity:1; transform:scale(1); } }
.done-title { font-size: var(--text-xl); font-weight: 800; color: var(--text); letter-spacing: -0.4px; margin: 0 0 var(--space-2); animation: done-fade-up 0.35s 0.15s ease-out both; }
.done-body { font-size: var(--text-sm); color: var(--text-2); margin: 0 auto var(--space-5); max-width: 280px; line-height: 1.55; animation: done-fade-up 0.35s 0.2s ease-out both; }
.done-stats { display: flex; justify-content: center; gap: var(--space-5); margin-bottom: var(--space-6); animation: done-fade-up 0.35s 0.25s ease-out both; }
.done-stat { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.done-stat svg { color: var(--primary); }
.done-stat span { font-size: var(--text-xs); font-weight: 600; color: var(--text-2); }
.done-actions { animation: done-fade-up 0.35s 0.3s ease-out both; }
@keyframes done-fade-up { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* === lane-b v2 (pickers) === */

/* -- cat-tile: soon modifier (pointer-events off, reduced opacity) -- */
.cat-tile--soon { opacity: 0.58; cursor: default; pointer-events: auto; }
.cat-tile--soon:hover { transform: none; box-shadow: 0 1px 2px rgba(15,23,42,0.08); }

/* -- fmt-grid / fmt-card: format picker (individual vs company) -- */
.fmt-grid { display: flex; flex-direction: column; gap: var(--space-3); margin: 0 0 var(--space-4); }
@media (min-width: 480px) { .fmt-grid { flex-direction: row; } .fmt-card { flex: 1; } }
.fmt-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-3); padding: var(--space-6) var(--space-4) var(--space-5);
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-2xl); cursor: pointer; font-family: inherit;
  position: relative;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.fmt-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,0.10), var(--shadow-2); transform: translateY(-2px); text-decoration: none; }
.fmt-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,0.18), var(--shadow-2); }
.fmt-card:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.fmt-title { display: block; font-size: var(--text-md); font-weight: 700; color: var(--text); letter-spacing: -0.2px; line-height: 1.3; }
.fmt-sub   { display: block; font-size: var(--text-sm); color: var(--text-2); line-height: 1.4; }
.fmt-radio-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-2); background: var(--card);
  display: grid; place-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.fmt-card.is-selected .fmt-radio-dot {
  border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}

/* -- spec-tile: canonical 3-col multi-select grid -- */
.onb-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 var(--space-4); }
.spec-tile {
  display: flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 9px 10px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; font-family: inherit;
  font-size: var(--text-sm); font-weight: 500; color: var(--text);
  text-align: left; line-height: 1.3;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: var(--shadow-1); position: relative;
}
.spec-tile:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,119,242,0.10); }
.spec-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.spec-tile:active { transform: scale(0.97); }
.spec-tile.is-selected {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(24,119,242,0.18);
}
.spec-dot {
  display: block; width: 8px; height: 8px; border-radius: var(--radius-full);
  flex-shrink: 0; transition: transform var(--t-fast), width var(--t-fast), margin var(--t-fast);
}
.spec-tile.is-selected .spec-dot { transform: scale(0); width: 0; margin: 0; }
.spec-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-check {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: var(--radius-full); background: var(--primary);
  color: #fff; flex-shrink: 0; opacity: 0; transform: scale(0.5);
  transition: opacity var(--t-base), transform var(--t-base);
}
.spec-tile.is-selected .spec-check { opacity: 1; transform: scale(1); }
@supports not (color: color-mix(in srgb, red 10%, blue)) {
  .spec-tile.is-selected { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,119,242,0.18); }
  .spec-tile:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,119,242,0.10); }
}

/* === lane-c v2 (data entry) === */

.addr-card { background:var(--card); border:1.5px solid var(--border); border-radius:var(--radius-xl); padding:var(--space-5); margin-bottom:var(--space-4); position:relative; }
.addr-card.addr-conflict { border-color:var(--error); box-shadow:0 0 0 3px rgba(217,117,96,.12); }
.addr-geo-wrap { margin-bottom:var(--space-4); position:relative; }
.addr-geo-input-row { display:flex; align-items:center; gap:var(--space-2); border:1.5px solid var(--border); border-radius:var(--radius-md); padding:10px var(--space-3); background:#fff; transition:border-color var(--t-fast),box-shadow var(--t-fast); }
.addr-geo-input-row:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(24,119,242,.10); }
.addr-geo-input { all:unset; flex:1; font-size:var(--text-md); color:var(--text); font-family:var(--font-sans); }
.addr-geo-dropdown { list-style:none; margin:4px 0 0; padding:4px 0; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-3); max-height:220px; overflow-y:auto; position:absolute; left:0; right:0; z-index:50; }
.addr-picked { display:flex; align-items:center; gap:var(--space-3); padding:10px var(--space-3); border-radius:var(--radius-md); background:var(--primary-soft); border:1px solid rgba(24,119,242,.18); margin-bottom:var(--space-4); }
.addr-schedule-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--space-3); }
.day-toggle-row.addr-conflict-day .day-toggle-name { color:var(--error); }
.day-toggle-row.addr-conflict-day { background:var(--error-bg); border-radius:var(--radius-sm); }

.svc-form, .proc-form { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--radius-xl); padding:var(--space-5); margin-top:var(--space-4); }
.svc-suggest, .proc-suggest { list-style:none; margin:2px 0 0; padding:4px 0; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-3); max-height:200px; overflow-y:auto; position:absolute; left:0; right:0; z-index:40; }
.svc-dur-chips, .proc-dur-chips { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-bottom:var(--space-2); }
.svc-price-wrap, .proc-price-wrap { position:relative; }
.svc-price-wrap input, .proc-price-wrap input { padding-left:28px; }
.svc-photos-section { margin-top:var(--space-5); padding-top:var(--space-5); border-top:1px solid var(--divider); }

.pf-section { padding:var(--space-5) 0; border-top:1px solid var(--divider); }
.pf-section:first-of-type { border-top:none; padding-top:0; }
.pf-section-head { display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-3); }
.pf-section-icon { width:36px; height:36px; border-radius:var(--radius-md); display:grid; place-items:center; color:#fff; flex-shrink:0; }
.pf-section-title { font-size:var(--text-md); font-weight:700; color:var(--text); line-height:1.2; }
.pf-section-sub { font-size:var(--text-xs); color:var(--text-2); margin-top:2px; line-height:1.3; }
.pf-icon-photo { background:var(--primary); }
.pf-icon-cert  { background:var(--warning); }
.pf-icon-video { background:var(--success); }
.pf-icon-cv    { background:var(--text-2); }
.pf-skeleton { aspect-ratio:1/1; border-radius:var(--radius-md); }
.pf-file-list { display:flex; flex-direction:column; gap:6px; margin-bottom:var(--space-3); }
.pf-file-item { display:flex; align-items:center; gap:var(--space-2); padding:10px var(--space-3); border:1px solid var(--border); border-radius:var(--radius-md); background:var(--card); }
.pf-file-icon { color:var(--text-3); flex-shrink:0; }
.pf-file-name { flex:1; min-width:0; font-size:var(--text-sm); color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-file-remove { width:28px; height:28px; border:none; background:transparent; color:var(--text-3); cursor:pointer; border-radius:var(--radius-sm); display:grid; place-items:center; flex-shrink:0; transition:background var(--t-fast),color var(--t-fast); }
.pf-file-remove:hover { background:var(--error-bg); color:var(--error); }
.pf-cover-badge { position:absolute; bottom:4px; left:4px; background:rgba(15,23,42,.65); color:#fff; font-size:10px; font-weight:600; padding:2px 6px; border-radius:var(--radius-sm); display:flex; align-items:center; gap:3px; }
.pf-set-cover { position:absolute; bottom:4px; left:4px; right:4px; background:rgba(15,23,42,.55); color:#fff; font-size:10px; font-weight:600; padding:3px 6px; border:none; cursor:pointer; border-radius:var(--radius-sm); opacity:0; transition:opacity var(--t-fast); text-align:center; }
.photo-tile:hover .pf-set-cover { opacity:1; }

/* === lane-d v2 (wrap-up) — net-new === */
.done-stat-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: var(--space-1); }

/* === global [hidden] override ============================
   Several canonical components (.banner, .pw-strength, .field-inline-error)
   set display:flex/grid which beats the user-agent's [hidden] { display:none }
   because both selectors are equal specificity and the class rule comes later.
   Force [hidden] to win. */
[hidden] { display: none !important; }

/* Hide count-badges when empty (zero-state shouldn't render an empty pill). */
.svc-tab-count:empty,
.proc-tab-count:empty,
.lc-tab-count:empty { display: none; }

/* ── Polish pass additions ────────────────────────────────────── */

/* Shared empty state (marketplace pages) */
.m-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-8) var(--space-5); text-align: center; color: var(--text-3);
}
.m-empty-state svg { color: var(--text-3); opacity: 0.55; }
.m-empty-state p { font-size: var(--text-sm); color: var(--text-2); max-width: 260px; margin: 0; }

/* Specialists list — view toggle (list/map) */
.spec-view-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px var(--space-3);
}
.spec-view-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  text-decoration: none;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.spec-view-btn:hover { background: var(--slate-100); border-color: var(--border-2); color: var(--text); text-decoration: none; }
.spec-view-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.spec-view-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Near-me row */
.near-me-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px var(--space-2);
}
.near-me-on {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-sm); font-weight: 600; color: var(--primary);
}
.near-me-trigger { display: inline-flex; align-items: center; gap: 5px; }

/* Geo-toast (geolocation denied) */
.geo-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--slate-900); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-lg);
  font-size: var(--text-sm); z-index: 9999;
  max-width: 90vw; text-align: center;
  box-shadow: var(--shadow-3);
}

/* Distance badge in list card */
.spec-distance-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--primary);
}

/* Next available slot badge */
.spec-slot-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--success);
  white-space: nowrap; margin-top: 2px;
}
.spec-slot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--success-bg);
}

/* Bookings list empty state */
.bookings-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-8) var(--space-5); text-align: center; color: var(--text-3);
}
.bookings-empty-title {
  font-size: var(--text-base); font-weight: 600; color: var(--text-2); margin: 0;
}

/* Dashboard sub-page header (calendar, notifications) */
.dash-page-head {
  padding: var(--space-4) 0 var(--space-5);
}
.dash-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; margin-bottom: var(--space-3);
  transition: color var(--t-fast);
}
.dash-back-link:hover { color: var(--text); text-decoration: none; }
.dash-back-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.dash-page-title { margin: 0; font-size: var(--text-xl); font-weight: 800; color: var(--text); letter-spacing: -0.4px; }
