/* Coramatch — calm, high-contrast, one accent. Stone foundation + Inter, the
   app's UI aesthetic. Mobile-first. (web-designer brand) */

:root {
  --ink: #1c1917;          /* stone-900 */
  --ink-soft: #44403c;     /* stone-700 */
  --muted: #78716c;        /* stone-500 */
  --line: #e7e5e4;         /* stone-200 */
  --bg: #f5f5f4;           /* stone-100, warm gray */
  --surface: #ffffff;
  --accent: #0c6b4f;       /* the one accent — gulf green */
  --accent-deep: #094d39;
  --accent-ink: #ffffff;
  --amber: #b45309;        /* rating / urgent status, used sparingly */
  --danger: #dc2626;       /* errors only */
  --radius: 18px;          /* rounded-2xl, a touch softer/modern */
  --radius-sm: 12px;       /* rounded-lg */
  --ring: 0 0 0 1px rgba(28, 25, 23, .05);
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 0 0 1px rgba(28, 25, 23, .045);
  --shadow-lg: 0 14px 34px -18px rgba(28, 25, 23, .22), 0 2px 5px -2px rgba(28, 25, 23, .06), 0 0 0 1px rgba(28, 25, 23, .055);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
}

* { box-sizing: border-box; }

.ico { display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;            /* reserve gutter, no reflow */
  scrollbar-width: thin;
  scrollbar-color: #d6d3d1 transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

/* ---------- Header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand-mark { color: var(--accent); }
.brand-logo { display: block; }
/* Wordmark: "cora" in ink, "match" in the green accent — the product is the match. */
.brand-cora { color: var(--ink); }
.brand-match { color: var(--accent); }
.brand-pro { color: var(--muted); font-weight: 500; }
.site-footer .brand-cora, .site-footer .brand-match { font-weight: 700; }
nav { display: flex; align-items: center; gap: 2px; }
nav a, nav .linkish {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
nav a:hover { background: rgba(28, 25, 23, .05); color: var(--ink); }
.linkish { background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-cta { background: var(--ink); color: #fff !important; }
.nav-cta:hover { background: #000; }

.site-footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px 40px;
  padding: 40px 24px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
.site-footer__brand .brand-word { font-weight: 700; font-size: 17px; }
.site-footer__brand p { margin: 7px 0 0; }
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.site-footer__copy { font-size: 12px; }
.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { color: var(--ink); background: var(--line); }

main { flex: 1 0 auto; width: 100%; max-width: 600px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------- Type ---------- */
h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 6px 0 10px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 26px 0 10px; }
p.lead { color: var(--ink-soft); font-size: 17px; margin-top: 0; }
.muted { color: var(--muted); }

/* Links: never default blue/purple. Content links read as ink, hover accent. */
a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1 a:not(.btn), h2 a:not(.btn), .card a:not(.btn):not(.chip), .id-row a:not(.btn) { color: var(--ink); text-decoration: none; }
h1 a:not(.btn):hover, h2 a:not(.btn):hover, .card a:not(.btn):not(.chip):hover, .id-row a:not(.btn):hover { color: var(--accent); }
/* Buttons keep their own colors regardless of context. */
.btn { color: var(--accent-ink); }
.btn.ghost { color: var(--ink); }
.btn:hover { color: var(--accent-ink); }
.btn.ghost:hover { color: var(--accent); }
.meta a, .lead a { color: var(--muted); text-decoration: none; }
.meta a:hover, .lead a:hover { color: var(--accent); }

/* ---------- Forms & controls ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 7px; color: var(--ink); }
label.inline { display: flex; align-items: center; gap: 9px; font-weight: 500; margin: 9px 0; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=url], input[type=file], textarea, select {
  width: 100%; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, .035);
  transition: border-color .14s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(12, 107, 79, .13);
}
input:hover:not(:focus), textarea:hover:not(:focus), select:hover:not(:focus) {
  border-color: #d6d3d1;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }

/* Money input: one clean field with an inline $, no spinner arrows. */
.input-money { display: flex; align-items: center; gap: 2px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.input-money .cur { color: var(--muted); font-size: 17px; }
.input-money input { flex: 1; width: 100%; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; padding: 13px 0; font-size: 16px; }
.input-money input::-webkit-outer-spin-button,
.input-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-money input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.input-money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12, 107, 79, .14); }
::placeholder { color: #a8a29e; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius-sm);
  padding: 13px 20px; min-height: 46px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .06s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn.full { width: 100%; }
.btn.lg { padding: 15px 22px; font-size: 16px; min-height: 52px; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--ring); }
.btn.ghost:hover { background: var(--bg); box-shadow: 0 0 0 1px rgba(28,25,23,.15); }
.btn[disabled] { opacity: .55; cursor: progress; }
/* A quiet, secondary "report" action (not a primary CTA). */
.report-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; box-shadow: var(--ring); }
.report-link:hover { color: var(--danger); box-shadow: 0 0 0 1px rgba(220, 38, 38, .25); }
.respond-btn { padding: 10px 16px; min-height: 40px; font-size: 14px; gap: 4px; }

/* Touch targets: on touch devices (the native/mobile provider app), every tap
   target clears Apple's 44px minimum. Scoped to coarse pointers so the desktop
   web stays visually compact. */
@media (pointer: coarse) {
  .btn, .respond-btn, .report-link, .chip, .filter-chip > summary, .tabs a {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  /* Disclosure rows (My jobs sections, filters) get a comfortable tap height. */
  details > summary { min-height: 44px; }
  /* Checkbox/radio rows: enlarge the whole label, not just the tiny control. */
  label.inline, label.chip { min-height: 44px; display: inline-flex; align-items: center; }
}
.respond-btn .ico { transform: rotate(-90deg); } /* chevron points right */

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label {
  margin: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-soft);
  transition: all .12s;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { border-color: var(--accent); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }

.range-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.range-value { font-weight: 700; font-size: 24px; color: var(--accent-deep); min-width: 2.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.range-unit { color: var(--muted); font-size: 15px; }
/* Native filled slider via accent-color — green fill + thumb with zero JS. */
input[type=range] { width: 100%; accent-color: var(--accent); height: 24px; margin: 12px 0; cursor: pointer; }

.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 2px; }
.locate-status { color: var(--accent-deep); font-size: 14px; font-weight: 500; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: var(--shadow); }
.card.flush { padding: 16px 18px; }
.card .meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(12, 107, 79, .1); color: var(--accent-deep);
}
.tag.urgent { background: rgba(180, 83, 9, .12); color: var(--amber); }
.tag.verified { background: rgba(12, 107, 79, .1); color: var(--accent-deep); }
/* Urgency chip — colour-coded so a pro triages at a glance. */
.urgency { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.urgency--urgent { background: rgba(220, 38, 38, .1); color: var(--danger); }
.urgency--this-week { background: rgba(180, 83, 9, .12); color: var(--amber); }
.urgency--no-rush { background: rgba(120, 113, 108, .14); color: var(--muted); }
.dist { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.posted-ago { white-space: nowrap; }
.price { font-weight: 700; font-size: 21px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.code-input {
  width: 100%; text-align: center;
  font-size: 34px; font-weight: 700; letter-spacing: 14px;
  padding: 16px 14px 16px 28px; font-variant-numeric: tabular-nums;
}
.code-input::placeholder { letter-spacing: 14px; color: #d6d3d1; }

.star-input { display: flex; gap: 4px; margin-top: 4px; }
.star-btn {
  font-size: 38px; line-height: 1; padding: 2px 4px;
  background: none; border: 0; cursor: pointer; color: #e7e5e4;
  transition: color .1s, transform .08s;
}
.star-btn.on { color: var(--amber); }
.star-btn:hover { transform: scale(1.1); }
.star-btn:active { transform: scale(.92); }

.stars { color: var(--amber); font-weight: 700; letter-spacing: 1px; }
.stars-empty { color: #e7e5e4; }
.phone-reveal { display: inline-block; font-size: 22px; font-weight: 700; color: var(--accent-deep); }

/* Toast — floats over content (doesn't push it), auto-dismisses, no JS. */
.flash {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top) + 14px);
  width: max-content; max-width: 88%; text-align: center;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toast 5s ease forwards;
}
.flash.notice { background: var(--accent); color: #fff; }
.flash.alert { background: var(--danger); color: #fff; }
@keyframes toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  7% { opacity: 1; transform: translateX(-50%) translateY(0); }
  88% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); visibility: hidden; }
}
.errors { background: rgba(220, 38, 38, .08); color: var(--danger); border-radius: var(--radius-sm); padding: 12px 16px 12px 32px; margin: 0 0 8px; }
.errors li { margin: 2px 0; }
.field_with_errors { display: contents; }
.field_with_errors input, .field_with_errors textarea, .field_with_errors select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.field_with_errors label { color: var(--danger); }

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent-deep); background: rgba(12, 107, 79, .09);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ─── Customer landing (requests#new) ─────────────────────────────────────── */
/* Soft green wash behind the whole landing for depth (scoped — .intake-hero
   only exists on this page). Fixed so it stays put as the page scrolls. */
.intake-hero::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 42% at 82% 8%, rgba(12, 107, 79, .08), transparent 70%),
    radial-gradient(40% 38% at 8% 92%, rgba(12, 107, 79, .05), transparent 70%);
}
.intake-copy h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 4px 0 18px; }
.accent-word { color: var(--accent); }
.intake-copy .lead { max-width: 30rem; font-size: 18px; line-height: 1.62; }

.trust-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 15px; line-height: 1.35; }
.trust-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(12, 107, 79, .09); color: var(--accent-deep); }
.trust-ico .ico { width: 17px; height: 17px; }

/* The intake card: lift it off the page so it reads as the primary action. */
.intake-card { box-shadow: var(--shadow-lg); padding: 22px; }
.intake-card textarea { min-height: 132px; font-size: 16px; }
.intake-hint { font-size: 13px; margin: 9px 2px 0; }
.intake-return { font-size: 14px; text-align: center; margin-top: 14px; }
/* Reassurance at the point of action — privacy is the trust lever here. */
.form-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 13px 0 0; font-size: 12.5px; color: var(--muted); }
.form-reassure .ico { width: 14px; height: 14px; color: var(--accent-deep); }

/* Auth + onboarding: a calm, narrow column with a clear step indicator. */
.auth-narrow { max-width: 440px; margin: 0 auto; }
.auth-narrow h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.08; letter-spacing: -.03em; margin: 6px 0 10px; }
.step-meta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); margin: 0; }
.auth-alt { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* How it works — fills the lower half, turns a sparse page into a story. */
.how-strip { display: grid; gap: 14px; margin: 56px auto 0; max-width: 600px; padding-top: 30px; border-top: 1px solid var(--line); }
.how-step { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.how-step > div { display: flex; flex-direction: column; gap: 2px; }
.how-step strong { font-weight: 600; color: var(--ink); }
.how-step > div span { color: var(--muted); font-size: 14px; }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }

@media (min-width: 720px) {
  .how-strip { grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: none; margin-top: 64px; }
}

/* ─── Provider recruiting landing (/pros) ─────────────────────────────────── */
.pros-lede h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.03; letter-spacing: -.035em; margin: 8px 0 16px; }
.pros-lede .lead { max-width: 30rem; font-size: 18px; line-height: 1.62; }
.pros-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pros-cta .muted { font-size: 14px; }

/* Live mock of the provider job feed — shows the product, not an illustration. */
.pros-preview { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 400px; margin: 36px auto 0; }
.pros-preview__bar { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.pros-preview__body { padding: 14px; background: var(--bg); }
.pros-preview__h { font-weight: 700; font-size: 14px; margin: 2px 2px 12px; }
.pros-preview .card { margin: 0 0 12px; box-shadow: var(--shadow); }
.pros-preview .card:last-child { margin-bottom: 0; }
.pros-preview .card-row strong { font-size: 15px; letter-spacing: -.01em; }
.pros-preview .meta { margin: 8px 0 0; font-size: 13px; }
.pros-preview .respond-btn { margin-top: 12px; }

.value-grid { display: grid; gap: 16px; margin: 52px auto 0; max-width: 600px; }
.value-card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.value-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(12, 107, 79, .09); color: var(--accent-deep); margin-bottom: 12px; }
.value-ico .ico { width: 19px; height: 19px; }
.value-card h3 { font-size: 17px; margin: 0 0 5px; letter-spacing: -.01em; }
.value-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Bottom-of-landing pro CTA + the public-profile showcase mock on /pros. */
.pro-cta-line { text-align: center; margin: 48px auto 0; color: var(--muted); font-size: 15px; }
.pro-cta-link { font-weight: 600; }
.profile-showcase { margin: 64px auto 0; max-width: 600px; display: grid; gap: 24px; }
.profile-showcase__copy h2 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.02em; margin: 0 0 10px; }
.profile-showcase__copy .lead { max-width: 28rem; }
.profile-how { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; max-width: 30rem; }
.profile-how__ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(12, 107, 79, .09); color: var(--accent-deep); }
.profile-how__ico .ico { width: 16px; height: 16px; }
.profile-mock { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.profile-mock__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.profile-mock__name { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-mock__rating { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.profile-mock__review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-mock__review:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-mock__review p { margin: 5px 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.profile-mock .stars { color: var(--amber); font-size: 13px; letter-spacing: 1.5px; }

@media (min-width: 720px) {
  .profile-showcase { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: none; }
}

.pros-final { text-align: center; margin: 56px auto 0; max-width: 600px; padding: 40px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.pros-final h2 { font-size: 25px; margin: 0 0 6px; letter-spacing: -.02em; }
.pros-final .muted { margin: 0 0 20px; }

@media (min-width: 720px) {
  main:has(.pros-top) { max-width: 1060px; padding-top: 56px; }
  .pros-top { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
  .pros-preview { margin: 0 0 0 auto; max-width: 420px; }
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: none; margin-top: 64px; }
}

/* A hair of space between an inline icon and following text inside links. */
a .ico, button .ico, summary .ico { margin-right: 1px; }
.btn .ico, .chip .ico, .tab .ico { margin-right: 0; }

/* Collapsible radius filter — a chip until tapped, so jobs lead the screen. */
.filter-chip { position: relative; }
.filter-chip > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--ring);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.filter-chip > summary::-webkit-details-marker { display: none; }
.filter-chip[open] > summary { background: var(--bg); }
.filter-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25;
  width: 280px; max-width: 78vw;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px;
}

/* Segmented tabs (provider dashboard). */
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 13px; box-shadow: var(--ring); margin-bottom: 20px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--accent); color: #fff; }

/* List | Explore view toggle (provider work feed). */
.view-toggle { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; box-shadow: var(--ring); margin-bottom: 16px; }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.view-toggle a.on { background: var(--accent); color: var(--accent-ink); }
.view-toggle a .ico { stroke-width: 2.2; }

/* Explore map (provider job map). Full-bleed + tall: breaks out of the centered
   container to viewport width (only this view). Below the fixed tab bar (z:20). */
.job-map-wrap { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.job-map { height: 74vh; min-height: 440px; overflow: hidden; position: relative; z-index: 0; background: var(--bg); }
.maplibregl-map { font-family: inherit; }
.maplibregl-popup-content { font-family: inherit; font-size: 14px; line-height: 1.4; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); }
.maplibregl-popup-content a { color: var(--accent-deep); font-weight: 600; }
.maplibregl-ctrl-group { border-radius: 10px !important; }

/* Map markers: a soft "approximate area" halo behind a distinct icon badge.
   Person = you (blue, pulsing), briefcase = job (green). The halo is the visual
   cue that these are ZIP-area points, never an exact address. */
/* Fixed marker box, explicitly position:absolute so the marker is anchored by
   MapLibre's transform alone and never falls into normal document flow (which
   made pins stack and drift relative to each other on zoom). top/left:0 +
   MapLibre's inline transform place it; the halo/badge use it as containing block. */
.map-marker { position: absolute; top: 0; left: 0; cursor: pointer; }
.map-marker--you { width: 38px; height: 38px; }
.map-marker--job { width: 34px; height: 34px; }
.map-marker__halo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.map-marker--you .map-marker__halo { width: 60px; height: 60px; background: rgba(37, 99, 235, .22); animation: map-pulse 2.4s ease-out infinite; }
.map-marker--job .map-marker__halo { width: 52px; height: 52px; background: radial-gradient(circle, rgba(12, 107, 79, .26), rgba(12, 107, 79, .06) 65%, transparent 72%); }
@keyframes map-pulse { 0% { transform: translate(-50%, -50%) scale(.55); opacity: .85; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.map-pin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(20, 32, 28, .4); box-sizing: border-box; }
.map-pin svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-pin--you { background: #2563eb; }
.map-pin--you svg { width: 21px; height: 21px; }
.map-pin--job { background: var(--accent); }
.map-pin--job svg { width: 18px; height: 18px; }

/* Origin toggle overlay (top-left): anchor the map on your business base or
   your current device location. NavigationControl sits top-right, so no clash. */
.map-origin { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; gap: 3px; padding: 4px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(8px); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.map-origin__btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border: 0; background: none; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.map-origin__btn.is-on { background: var(--accent); color: var(--accent-ink); }
.map-origin__btn .ico { stroke-width: 2.1; }

/* Legend overlay: explains the markers + that locations are approximate. */
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: calc(100% - 24px); padding: 9px 13px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(8px); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.map-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.map-legend__dot.is-you { background: #2563eb; }
.map-legend__dot.is-job { background: var(--accent); }
.map-legend__note { color: var(--muted); font-weight: 500; font-size: 12px; }

/* avatars, stats, links */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface); box-shadow: var(--ring); vertical-align: middle; }
.avatar-fallback { background: var(--accent); color: #fff; font-weight: 700; box-shadow: none; }
.id-row { display: flex; align-items: center; gap: 12px; }
.rating-line { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.rating-line .stars { font-size: 20px; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 150px; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--accent-deep); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* Public provider profile */
.profile { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); margin-bottom: 8px; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 0 0 1px var(--line); }
.profile-head-main { min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-name h1 { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--accent-deep); background: rgba(12, 107, 79, .1); padding: 4px 9px; border-radius: 999px; }
.verified-badge .ico { vertical-align: -0.12em; }
.profile-sub { color: var(--muted); margin: 5px 0 0; font-size: 15px; }
.profile-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.profile-rating .stars { font-size: 18px; letter-spacing: 1.5px; }
.profile-stats { display: flex; margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.profile-stats > div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats .stat-num { font-size: 26px; }
.profile-stats .stat-label { font-size: 13px; }
.profile-bio { color: var(--ink-soft); margin: 20px 0 0; line-height: 1.6; }
.profile-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--ring); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { background: var(--bg); color: var(--accent); }
.reviews { margin-top: 24px; }

/* Preview-before-publish — make it obvious it isn't live yet. */
.preview-banner { display: flex; flex-direction: column; gap: 6px; background: rgba(180, 83, 9, .1); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.preview-banner p { margin: 0; color: #8a4b09; font-size: 14px; }
.preview-pill { align-self: flex-start; background: var(--amber); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.preview-card { border: 1.5px dashed var(--line); box-shadow: none; position: relative; }
.preview-card-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Request photos */
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photo-thumb { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; box-shadow: var(--ring); }
a.photo-thumb { display: block; }

@media (max-width: 460px) {
  .profile-head { flex-direction: column; text-align: center; gap: 12px; }
  .profile-name, .profile-rating { justify-content: center; }
}
.qr svg { width: 100%; height: auto; border-radius: 12px; }

/* ---------- Provider shell: mobile app (default) -> web app (desktop) ---------- */
body.provider { background: var(--bg); }

/* Desktop top nav — hidden on mobile, shown >=720px. */
.web-nav { display: none; }
.web-nav-left { display: flex; align-items: center; gap: 18px; }
.web-nav .brand { font-size: 18px; }
.product-nav { display: flex; align-items: center; gap: 4px; }
.product-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.product-nav a:hover { background: rgba(28, 25, 23, .05); color: var(--ink); }
.product-nav a.active { color: var(--accent); background: rgba(12, 107, 79, .08); }

/* User menu (no-JS <details> dropdown). */
.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover { background: rgba(28, 25, 23, .05); }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: 13px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; display: flex; flex-direction: column; gap: 1px; z-index: 30; }
.usermenu-pop a, .usermenu-pop .linkish { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14px; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; }
.usermenu-pop a:hover, .usermenu-pop .linkish:hover { background: var(--bg); color: var(--ink); }

/* Mobile app bar (title) + bottom tabs. */
.app-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.app-bar-title { flex: 1; text-align: center; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.app-bar-back, .app-bar-action { min-width: 56px; display: flex; align-items: center; }
.app-bar-action { justify-content: flex-end; }
.app-bar-action button, .app-bar-action a, .app-bar-back a {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none;
}
.app-main { flex: 1 0 auto; width: 100%; max-width: 540px; margin: 0 auto; padding: 18px 16px calc(80px + env(safe-area-inset-bottom)); }
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 7px; text-decoration: none; color: var(--muted);
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.tab-ico { display: flex; align-items: center; justify-content: center; height: 26px; }
.tab .ico { stroke-width: 1.9; transition: stroke-width .12s ease; }
.tab.active { color: var(--accent); }
.tab.active .tab-label { font-weight: 700; }
.tab.active .ico { stroke-width: 2.5; }
/* Sign out lives on the Account screen, set apart so it's a deliberate tap,
   never a mis-fire from the nav. Quiet by default, red on hover. */
.sign-out-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.sign-out-row form.button_to { margin: 0; }
.sign-out-row .btn { color: var(--muted); }
.sign-out-row .btn:hover { color: #b42318; border-color: #f0c9c4; }
.sign-out-row .btn .ico { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; }

/* Nav links that duplicate the tab bar / top nav — only on desktop web. */
.nav-fallback { display: none; }
@media (min-width: 720px) { .nav-fallback { display: block; } }

/* Desktop web app: real top nav, wider content, no bottom tabs / app bar. */
@media (min-width: 720px) {
  main { padding: 44px 24px 72px; }
  /* The landing breaks out wider than the app's 600px column — scoped to the
     page via :has() so nothing else changes. */
  main:has(.intake-hero) { max-width: 1060px; padding-top: 64px; }
  .intake-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
  .intake-hero .panel { position: sticky; top: 92px; }

  body.provider .web-nav {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10; padding: 14px 28px;
    background: rgba(255, 255, 255, .7); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  body.provider .app-bar { display: none; }
  body.provider .tab-bar { display: none; }
  body.provider .app-main { max-width: 880px; padding: 32px 28px 64px; }
}
