/* AutoRepairs NZ design system
   ------------------------------------------------------------------
   Tokens → base → layout (marketing + app shell) → components → utilities.
   One typeface (Manrope, self-hosted, variable weight). Signal orange is
   reserved for primary actions and the docket rule on job cards; teal marks
   trust states (verified, connected, accepted). Everything else is ink and
   greys so those two colours always mean something. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('./fonts/manrope-latin-wght-normal.woff2') format('woff2');
}

:root {
  --ink: #0b1220;
  --ink-2: #1c2536;
  --ink-3: #3b4557;
  --muted: #5b6577;
  --faint: #8a93a3;
  --line: #e3e8ef;
  --line-strong: #cbd3de;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --brand: #ff5a36;
  --brand-deep: #d9421f;
  --brand-soft: #fff1ec;
  --brand-ink: #9a2c12;
  --trust: #0f766e;
  --trust-soft: #e6f4f2;
  --warn: #b45309;
  --warn-soft: #fff6e6;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --info: #1d4ed8;
  --info-soft: #eaf0ff;
  --shadow-1: 0 1px 2px rgba(11,18,32,.05), 0 1px 1px rgba(11,18,32,.03);
  --shadow-2: 0 8px 24px -8px rgba(11,18,32,.12), 0 2px 6px rgba(11,18,32,.05);
  --shadow-3: 0 24px 56px -16px rgba(11,18,32,.22);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --sidebar: 248px;
  --topbar-h: 68px;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.app-mode { background: var(--canvas); }
h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 18px; letter-spacing: -.012em; }
h4 { font-size: 15px; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: .75em; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--brand-deep); font-weight: 700; }
a.link:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
svg { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(255,90,54,.45); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small { font-size: 13px; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }

/* ---------- Marketing layout ---------- */
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint .section { padding: 80px 0; }
.section-head h2, .split h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.035em; line-height: 1.05; }
.section-head .eyebrow, .split .eyebrow { color: var(--brand-deep); margin-bottom: 14px; }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof div { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.proof b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.proof b span { color: var(--brand); }
.proof small { display: block; margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr 1fr; } }
.quote-band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-band blockquote { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-size: 17px; line-height: 1.5; position: relative; }
.quote-band blockquote::before { content: '“'; position: absolute; top: 6px; left: 18px; font-size: 64px; line-height: 1; color: var(--brand); opacity: .35; font-weight: 800; }
.quote-band blockquote p { position: relative; }
.quote-band footer { margin-top: 16px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .quote-band { grid-template-columns: 1fr; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.lede { font-size: 17px; color: var(--muted); max-width: 60ch; }
.page-title { margin-bottom: 6px; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: var(--topbar-h); width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; gap: 28px; position: relative; }
.navlinks { display: flex; align-items: center; gap: 24px; margin-left: 12px; }
.navlinks a { font-size: 14px; font-weight: 700; color: var(--ink-3); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); border-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .navlinks { display: none; }
  .navlinks.open { display: flex; position: absolute; top: var(--topbar-h); left: -20px; right: -20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; box-shadow: var(--shadow-2); }
  .navlinks.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none !important; }
}

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: inline-block; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.large { width: 56px; height: 56px; }
.sidebar .brand-mark svg rect { fill: rgba(255,255,255,.1); }
.sidebar .brand-mark svg circle { fill: #16213a; }
.brand-word { display: flex; align-items: baseline; gap: 3px; font-size: 19px; letter-spacing: -.03em; font-weight: 800; }
.brand-word small { font-size: 10px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }

/* Hero — dark stage, warm glow, floating docket */
.hero-wrap { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-wrap::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%; background:
  radial-gradient(60% 55% at 78% 40%, rgba(255,90,54,.42) 0%, rgba(255,90,54,0) 60%),
  radial-gradient(45% 45% at 15% 85%, rgba(15,118,110,.35) 0%, rgba(15,118,110,0) 60%),
  radial-gradient(40% 40% at 50% 0%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 60%);
  z-index: -1; pointer-events: none; }
.hero-wrap::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 88px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb59f; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); }
.hero h1 { font-size: clamp(42px, 5vw, 66px); text-wrap: balance; letter-spacing: -.04em; line-height: .98; color: #fff; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.72); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.hero .btn.secondary:hover { background: rgba(255,255,255,.14); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts b { font-size: 15px; color: #fff; display: flex; gap: 8px; align-items: center; }
.hero-facts b svg { width: 18px; height: 18px; color: var(--brand); }
.hero-facts small { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.4; }
.hero-side { position: relative; }
.hero-side .float { position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; animation: rise .8s var(--ease) both; }
.hero-side .float small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.hero-side .float .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.hero-side .float.f1 { top: -34px; right: -30px; animation-delay: .5s; }
.hero-side .float.f2 { bottom: 104px; left: -44px; animation-delay: .9s; }
.hero-side .float .badge { margin-left: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Position only: hero copy must be readable from the first paint, even if the animation stalls. */
@keyframes fadeup { from { transform: translateY(10px); } to { transform: none; } }
.hero > div:first-child > * { animation: fadeup .6s var(--ease) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: .05s } .hero > div:first-child > :nth-child(3) { animation-delay: .1s } .hero > div:first-child > :nth-child(4) { animation-delay: .15s } .hero > div:first-child > :nth-child(5) { animation-delay: .2s }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 48px; padding: 52px 0 60px; } .hero-facts { grid-template-columns: 1fr; gap: 12px; } .hero-side .float.f1 { right: 0; top: -22px; } .hero-side .float.f2 { left: 0; bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .hero *, .hero-side .float { animation: none !important; } }

/* The docket: the hero's live job-post panel */
.docket { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; position: relative; transform: rotate(-1.2deg); animation: rise .7s var(--ease) both .25s; }
.docket::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.docket-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px 26px; border-bottom: 1px dashed var(--line-strong); }
.docket-head b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.docket-head b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--trust); box-shadow: 0 0 0 4px var(--trust-soft); }
.docket-head small { color: var(--faint); font-family: var(--mono); }
.docket-body { padding: 18px 22px 22px 26px; display: grid; gap: 14px; }
.docket-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.docket-row span:first-child { color: var(--muted); }
.docket-row .chips { margin: 0; }
.docket-row .row svg { color: var(--faint); }
.docket-foot { display: flex; gap: 10px; align-items: center; padding: 14px 22px 18px 26px; background: var(--surface-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.docket-foot .muted { font-size: 13px; }

/* Marketing sections */
.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.band .band-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; gap: 20px; }
.band .band-inner span { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.band .band-inner span::before { counter-increment: bandstep; content: counter(bandstep, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); border-radius: 8px; padding: 6px 8px; flex: none; }
.band .band-inner { counter-reset: bandstep; }
@media (max-width: 860px) { .band .band-inner { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps article { padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.steps article:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.steps article::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--brand); opacity: .14; position: absolute; right: 18px; top: 14px; }
.steps article::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.steps .step-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.steps .step-icon svg { width: 22px; height: 22px; }
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.service-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s, transform .15s var(--ease); }
.service-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.service-card h3 { font-size: 16px; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand) 0%, #ff8a5c 100%); color: #fff; display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 6px 14px -6px rgba(255,90,54,.7); }
.service-card .icon svg { width: 22px; height: 22px; }
.service-card:hover { box-shadow: var(--shadow-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.feature-list { display: grid; gap: 14px; }
.feature-list > div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.feature-list > div > svg { width: 22px; height: 22px; color: var(--trust); margin-top: 2px; }
.feature-list b { display: block; }
.feature-list span { color: var(--muted); font-size: 14.5px; }

.cta-panel { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(255,90,54,.45), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(15,118,110,.4), transparent 60%); pointer-events: none; }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255,255,255,.72); margin-top: 8px; max-width: 52ch; }
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; padding: 28px; } }

.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.faq summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--faint); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow-2); }
.price-flag { position: absolute; top: -12px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price-card p { color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14px; flex: 1; }
.price-card li { display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--trust-soft); flex: none; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.provider-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.provider-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
.avatar.customer { background: var(--brand-soft); color: var(--brand-ink); }
.provider-meta { display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.stars { color: #d97706; letter-spacing: 1px; font-size: 13px; }
.stars.empty { color: var(--line-strong); }
/* The unlit stars share the .empty class name with empty-state panels; keep them inline text. */
.stars .stars.empty, span.stars.empty { display: inline; padding: 0; border: 0; border-radius: 0; background: none; text-align: inherit; }
.new-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--trust-soft); color: var(--trust); }

.footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 42ch; }
.footer-grid b { display: block; margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- App shell (authenticated) ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #0f1728 0%, var(--ink) 100%); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; box-shadow: inset -1px 0 0 rgba(255,255,255,.06); }
.sidebar .brand { padding: 6px 8px 22px; }
.sidebar .brand-word { color: #fff; }
.sidebar .brand-mark { background: rgba(255,255,255,.08); }
.side-group { margin-top: 10px; }
.side-group > small { display: block; padding: 0 10px 6px; color: rgba(255,255,255,.4); font-size: 11.5px; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 10px; color: rgba(255,255,255,.74); font-weight: 600; font-size: 14px; transition: background .12s, color .12s; position: relative; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: rgba(255,90,54,.16); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-link .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding: 14px 8px 6px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-user .avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 12px; }
.side-user b { display: block; font-size: 13.5px; }
.side-user small { color: rgba(255,255,255,.5); font-size: 12px; }
.side-plan { font-size: 12.5px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.side-plan .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); flex: none; }
.side-plan .dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.side-plan .dot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.25); }

.main { min-width: 0; }
.appbar { height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(244,246,249,.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.appbar h2 { font-size: 21px; letter-spacing: -.03em; }
.appbar .crumbs { color: var(--faint); font-size: 13px; }
.appbar .crumbs a { color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; color: var(--ink-3); }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .pip { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--canvas); }
.content { padding: 28px; max-width: 1100px; }
.content.narrow { max-width: 760px; }

.tabbar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .appbar { padding: 0 18px; }
  .content { padding: 18px 18px 96px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
  .tabbar a.active { color: var(--brand-deep); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .count { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; display: grid; place-items: center; }
}

/* Notification drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,.28); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); z-index: 61; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide-in .22s var(--ease); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow: auto; flex: 1; }
.notif { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif.unread { background: var(--brand-soft); }
.notif .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); }
.notif .ico svg { width: 18px; height: 18px; }
.notif b { font-size: 14px; display: block; }
.notif p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.notif small { color: var(--faint); font-size: 12px; }

/* ---------- Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; border: 1px solid transparent; transition: background .15s, transform .12s var(--ease), box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.ghost { background: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: rgba(11,18,32,.05); color: var(--ink); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: #f9dcdc; }
.btn.trust { background: var(--trust); }
.btn.trust:hover { background: #0c5f59; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn.full { width: 100%; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.secondary.loading::after, .btn.ghost.loading::after { border-color: rgba(11,18,32,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.pad-sm { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }

/* Job docket card — the product's signature */
.job-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 20px 26px; box-shadow: var(--shadow-1); overflow: hidden; display: grid; gap: 10px; }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand); }
.job-card.done::before { background: var(--trust); }
.job-card.cancelled::before { background: var(--line-strong); }
.job-card.selected { border-color: var(--ink); }
.job-card h3 { font-size: 17px; }
.job-card .desc { color: var(--ink-3); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card a.cover { position: absolute; inset: 0; }
.job-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta svg { width: 14px; height: 14px; opacity: .7; }
.job-list { display: grid; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); white-space: nowrap; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: #ffd3c6; }
.badge.trust { background: var(--trust-soft); color: var(--trust); border-color: #bfe3de; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #f8dfb2; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: #f5c2c2; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: #c6d4fb; }
.badge.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge svg { width: 12px; height: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.chip.toggle { cursor: pointer; background: var(--surface); transition: background .12s, border-color .12s, color .12s; }
.chip.toggle:hover { border-color: var(--line-strong); }
.chip.toggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.toggle.on::before { content: ''; width: 12px; height: 12px; margin-right: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3L13 4.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, label.lbl { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field .err { font-size: 12.5px; color: var(--danger); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 15px; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%235b6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,18,32,.08); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; height: 60px !important; font-family: var(--mono); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 42px; height: 24px; border-radius: 12px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--trust); }
.switch input:checked + i::after { transform: translateX(18px); }
.private-block { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 16px; background: var(--surface-2); display: grid; gap: 14px; }
.private-block > .row { font-size: 13.5px; color: var(--muted); }
.private-block svg { width: 16px; height: 16px; color: var(--trust); }

/* Notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.info { background: var(--info-soft); border-color: #c6d4fb; color: #1e3a8a; }
.notice.trust { background: var(--trust-soft); border-color: #bfe3de; color: #0b4f4a; }
.notice.warn { background: var(--warn-soft); border-color: #f8dfb2; color: #7c3a03; }
.notice.danger { background: var(--danger-soft); border-color: #f5c2c2; color: #7f1d1d; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 16px; display: grid; gap: 4px; box-shadow: var(--shadow-1); }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-strong); }
.stat b { font-size: 30px; letter-spacing: -.04em; font-weight: 800; line-height: 1.05; }
.stat span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat.accent::before { background: linear-gradient(90deg, var(--brand), #ff9d7a); }
.stat.accent b { color: var(--brand-deep); }
.stat.trust::before { background: var(--trust); }
.stat.trust b { color: var(--trust); }
.stat.accent { background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 140%); }
.stat.trust { background: linear-gradient(180deg, #fff 0%, var(--trust-soft) 140%); }

/* Progress steps */
.progress { display: grid; grid-auto-flow: column; gap: 6px; margin: 4px 0 18px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--ink); }
.progress span.done { background: var(--trust); }

/* Empty / loading / error */
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); display: grid; justify-items: center; gap: 10px; }
.empty .brand-mark { margin-bottom: 6px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 44ch; }
.skeleton { display: grid; gap: 12px; }
.skeleton div { border-radius: 10px; background: linear-gradient(90deg, var(--line) 25%, #edf0f4 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skeleton .h { height: 28px; width: 40%; } .skeleton .l { height: 16px; } .skeleton .l.short { width: 70%; } .skeleton .b { height: 120px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.error-panel { border: 1px solid #f5c2c2; background: var(--danger-soft); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; }
.error-panel h1 { font-size: 22px; color: var(--danger); }
.error-panel code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); word-break: break-word; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(440px, calc(100% - 32px)); pointer-events: none; }
@media (max-width: 960px) { .toasts { bottom: 84px; } }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-3); animation: toast-in .2s var(--ease); }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.success svg { color: #34d399; } .toast.error svg { color: #f87171; } .toast.error { background: #3b0a0a; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,.4); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(520px, 100%); padding: 24px; box-shadow: var(--shadow-3); animation: toast-in .2s var(--ease); max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-color: var(--brand); }
.tabs button .count { margin-left: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; }

/* Tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }

/* Chat */
.chat { display: flex; flex-direction: column; height: 460px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.chat-log { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--surface-2); }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; background: var(--surface); border: 1px solid var(--line); justify-self: start; white-space: pre-wrap; word-break: break-word; }
.msg.me { background: var(--ink); color: #fff; border-color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.msg:not(.me) { border-bottom-left-radius: 4px; }
.msg small { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.msg.system { justify-self: center; background: transparent; border: 0; color: var(--faint); font-size: 12.5px; max-width: 100%; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { min-height: 44px; height: 44px; max-height: 120px; }

/* Quote builder */
.quote-lines { display: grid; gap: 8px; }
.quote-line { display: grid; grid-template-columns: 1fr 80px 110px 32px; gap: 8px; align-items: center; }
.quote-line input { height: 40px; }
.quote-line .del { width: 32px; height: 32px; border-radius: 8px; color: var(--faint); display: grid; place-items: center; }
.quote-line .del:hover { background: var(--danger-soft); color: var(--danger); }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-weight: 800; font-size: 18px; }
.quote-total small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.quote-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface); display: grid; gap: 10px; }
.quote-card.accepted { border-color: var(--trust); background: var(--trust-soft); }
.quote-card.declined { opacity: .6; }
.quote-card table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.quote-card td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.quote-card td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .quote-line { grid-template-columns: 1fr 60px 90px 28px; } }

/* Rating input */
.rate { display: flex; gap: 4px; }
.rate button { width: 34px; height: 34px; font-size: 24px; color: var(--line-strong); line-height: 1; }
.rate button.on { color: #d97706; }
.rate-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-grid a, .photo-grid div { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 6px; background: rgba(11,18,32,.7); color: #fff; display: grid; place-items: center; font-size: 14px; }
.upload { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; background: var(--surface-2); display: block; }
.upload:hover { border-color: var(--ink-3); }
.upload input { display: none; }

/* AI assist */
.ai-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ai-hint { font-size: 12.5px; color: var(--faint); }
.ai-btn { background: linear-gradient(135deg, #1c2536, #0b1220); }
.ai-result { margin-top: 12px; border: 1px solid #ffd3c6; background: linear-gradient(180deg, #fff7f4, #fff); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 10px; font-size: 14.5px; }
.ai-result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-badge { font-size: 11.5px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 3px 8px; }
.ai-section b { display: block; font-size: 13px; margin-bottom: 4px; }
.ai-section ul { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 14px; display: grid; gap: 3px; }
.ai-safety { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #7c3a03; font-size: 13.5px; display: grid; gap: 2px; }
.ai-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ai-error { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; display: grid; gap: 2px; }
.ai-success { color: var(--trust); font-weight: 700; font-size: 14px; }

/* Timeline (job status) */
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 6px; }
.tl .dot { width: 22px; display: flex; flex-direction: column; align-items: center; }
.tl .dot i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); margin-top: 4px; flex: none; }
.tl .dot::after { content: ''; width: 2px; flex: 1; background: var(--line); min-height: 18px; }
.tl:last-child .dot::after { display: none; }
.tl.done .dot i { background: var(--trust); border-color: var(--trust); }
.tl.now .dot i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,54,.18); }
.tl b { font-size: 14px; display: block; }
.tl span { font-size: 12.5px; color: var(--muted); }

/* Detail layouts */
.job-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .job-grid, .two-col { grid-template-columns: 1fr; } }

.notice.trust { background: var(--trust-soft); border-color: transparent; }
.notice.trust > svg { color: var(--trust); }
.notice b { display: block; }

/* AI intake example */
.ai-example { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: var(--surface-2); }
.ai-example span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ai-example p { font-size: 13.5px; line-height: 1.4; }
.ai-example > b { color: var(--brand); display: grid; place-items: center; }
.ai-example > b svg { width: 20px; height: 20px; }
.ai-example > div:last-child p { font-weight: 600; }
@media (max-width: 620px) { .ai-example { grid-template-columns: 1fr; } .ai-example > b { transform: rotate(90deg); } }

/* Coverage feedback + trust badges */
.coverage-live { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.coverage-live > svg { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.coverage-live b { display: block; } .coverage-live small { color: var(--muted); display: block; margin-top: 2px; }
.coverage-live.is-loading > svg { color: var(--faint); animation: pulse 1.2s ease-in-out infinite; }
.coverage-live.is-covered { background: var(--trust-soft); border-color: transparent; } .coverage-live.is-covered > svg { color: var(--trust); }
.coverage-live.is-growing { background: var(--brand-soft); border-color: transparent; } .coverage-live.is-growing > svg { color: var(--brand-deep); }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.trust-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--trust); background: var(--trust-soft); border-radius: 999px; padding: 4px 9px 4px 7px; }
.trust-badge svg { width: 13px; height: 13px; }
.claim-list { display: grid; gap: 8px; }
.claim { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.claim input { width: 18px; height: 18px; accent-color: var(--brand); }
.claim-row { display: grid; grid-template-columns: 1fr auto minmax(180px, 260px); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.claim-row .claimUrl { font-size: 13px; padding: 8px 10px; }
.claim-row .span-all { grid-column: 1 / -1; }
@media (max-width: 720px) { .claim-row { grid-template-columns: 1fr auto; } .claim-row .claimUrl { grid-column: 1 / -1; } }

/* Static landing pages */
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--trust-soft); }
.check-list li::after { content: ''; position: absolute; left: 5px; top: 8px; width: 5px; height: 8px; border: solid var(--trust); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mini-steps { counter-reset: ms; list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 12px; }
.mini-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.mini-steps li::before { counter-increment: ms; content: counter(ms); width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mini-steps b { display: block; font-size: 14px; } .mini-steps span { font-size: 13px; color: var(--muted); } .mini-steps li > span { grid-column: 2; }
.seo-page .split { align-items: start; }

/* Provider showcase */
.card-shot { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.card-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.card-shot:hover img { transform: scale(1.03); }
.profile-cover { height: clamp(160px, 26vw, 280px); overflow: hidden; background: var(--surface-2); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.lifted { margin-top: -56px; position: relative; box-shadow: var(--shadow-3); }
.avatar.logo { object-fit: cover; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.photo-grid.showcase { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.photo-grid .shot { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-grid .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-grid .shot figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.photo-grid .shot .cap { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 12.5px; padding: 8px 10px; }
.photo-grid .shot .del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(11,18,32,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-grid .shot .del svg { width: 15px; height: 15px; }
.upload { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); font-size: 14px; font-weight: 700; cursor: pointer; background: var(--surface-2); }
.upload:hover { border-color: var(--brand); color: var(--brand-deep); }
.upload.sm { padding: 8px 12px; font-size: 13px; }
.hours-grid { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto auto; gap: 10px; align-items: center; }
.hours-row input[type=time] { width: auto; padding: 8px 10px; font-size: 13px; }
table.hours { width: 100%; font-size: 14px; } table.hours td { padding: 5px 0; } table.hours td:last-child { text-align: right; color: var(--muted); }
@media (max-width: 620px) { .hours-row { grid-template-columns: 1fr auto auto auto; } }

/* Install prompt + offline bar */
/* Centred with margins, not a transform: the rise animation sets transform and
   was pushing the bar half off screen, hiding the Install button. */
.install-bar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 18px; z-index: 60; width: min(560px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: 0 24px 48px -16px rgba(0,0,0,.55); animation: rise .35s var(--ease) both; }
.install-bar b { display: block; font-size: 14.5px; }
.install-bar span:not(.install-mark) { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.35; }
.install-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.install-mark svg { width: 18px; height: 18px; }
.install-bar .icon-btn { color: rgba(255,255,255,.7); }
.install-bar .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 860px) { .install-bar { bottom: calc(var(--tabbar-h, 64px) + 12px); } body:not(.app-mode) .install-bar { bottom: 18px; } }
.offline-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 70; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--warn-soft, #fff4e5); color: #7a4706; font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.offline-bar svg { width: 17px; height: 17px; flex: none; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-3); }

/* Customer import (src/views/business.js) */
.imp-card { border: 1px solid var(--brand); }
.imp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.imp-opt { display: grid; gap: 2px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; }
.imp-opt:hover { border-color: var(--brand); }
.imp-opt svg { width: 22px; height: 22px; color: var(--brand-deep); margin-bottom: 4px; }
.imp-opt small { color: var(--muted); font-size: 12.5px; }
.imp-sum { margin-bottom: 8px; }
.imp-table { display: grid; gap: 6px; margin: 4px 0 12px; }
.imp-table > div { display: grid; gap: 1px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; min-width: 0; }
.imp-table > div span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Floating chat button (src/chat-head.js) */
.chat-head { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; justify-items: end; gap: 10px; }
.chat-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); cursor: pointer; }
.chat-fab:hover { background: var(--brand-deep); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .pip { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.chat-head-list { width: min(340px, calc(100vw - 32px)); max-height: min(420px, 60vh); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); padding: 6px; }
.chat-head-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 8px 10px; }
.chat-head-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); min-width: 0; }
.chat-head-item:hover { background: var(--surface-2); }
.chat-head-item .avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
.chat-head-item small { display: block; color: var(--muted); font-size: 12.5px; }
.chat-head-item.unread b { color: var(--brand-deep); }
.chat-head-meta .count { background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }
.chat-head-meta small { white-space: nowrap; }
@media (max-width: 960px) { .chat-head { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); } .chat-fab { width: 52px; height: 52px; } .app:has(.chat-head) .content { padding-bottom: 150px; } }
@media print { .chat-head { display: none !important; } }
@media print { .sidebar, .appbar, .tabbar, .topbar, .footer, .toasts { display: none !important; } .app { grid-template-columns: 1fr; } body { background: #fff; } }

/* Phone menu: the sidebar slides in from the Menu tab. */
.menu-scrim { display: none; }
@media (max-width: 960px) {
  .tabbar a#menuTab { cursor: pointer; }
  body.menu-open .sidebar { display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100dvh; overflow-y: auto; z-index: 70; box-shadow: 0 0 40px rgba(0,0,0,.35); animation: menuIn .18s ease-out; }
  body.menu-open .menu-scrim { display: block; position: fixed; inset: 0; background: rgba(8,12,22,.45); z-index: 65; }
  body.menu-open { overflow: hidden; }
}
@keyframes menuIn { from { transform: translateX(-100%); } to { transform: none; } }

/* Admin verification cards */
.admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; font-size: 14px; }
.admin-facts > div { min-width: 0; overflow-wrap: anywhere; }
.admin-claim { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); flex-wrap: wrap; }
.admin-claim .grow { min-width: 180px; }
.stack-sm { display: grid; gap: 8px; }
.stats.funnel { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.seo-page .crumbs { margin-bottom: 14px; color: var(--muted); } .seo-page .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Generated pages: answer the person with a problem before they scroll. */
.seo-page .quick-start { margin-top: 22px; max-width: 760px; padding: 18px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.seo-page .quick-start > b { display: block; color: #fff; margin-bottom: 12px; }
.seo-page .quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.seo-page .quick { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
.seo-page .quick:hover { background: var(--brand); color: #fff; }
.seo-page .quick-start p { color: rgba(255,255,255,.72); margin-top: 12px; }
.seo-page .hero-note { margin-top: 24px; max-width: 720px; padding: 14px 16px; border-left: 3px solid var(--brand); background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); border-radius: 0 12px 12px 0; }
.seo-page .hero-note b { color: #fff; margin-right: 6px; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .seo-page .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .seo-page { padding-bottom: 76px; }
  .seo-page .quick-grid { grid-template-columns: 1fr 1fr; }
}
.vehicle-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; } .vehicle-line svg { width: 16px; height: 16px; }
/* Job form: photo first, then words. */
.snap { margin-bottom: 4px; }
.snap-btn { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-start; text-align: left; padding: 14px 16px; height: auto; white-space: normal; }
.snap-btn svg { width: 26px; height: 26px; flex: none; }
.snap-btn b { display: block; }
.snap-btn small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
#micBtn.listening { background: var(--brand); color: #fff; border-color: var(--brand); }
#locBtn { margin-left: 8px; font-weight: 700; }
#locBtn svg { width: 13px; height: 13px; vertical-align: -2px; }
.push-card .row svg { width: 18px; height: 18px; color: var(--brand); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; } .check-row input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Admin jobs: tap a card for details and who it was sent to. */
.aj { padding: 0; overflow: hidden; }
.aj-head { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 16px 8px; cursor: pointer; }
.aj-head:focus-visible { outline: 2px solid var(--brand, #ff5a36); outline-offset: -2px; }
.aj-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aj-side { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.aj-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 12px; font-size: 13px; color: var(--muted); }
.aj-stat.on b { color: var(--ink, inherit); }
.aj-body { border-top: 1px solid var(--line); padding: 14px 16px 16px; }
.aj.open { box-shadow: 0 0 0 1px var(--line); }
.aj-desc { white-space: pre-wrap; margin: 0; }
.aj-matches { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.aj-matches li { display: flex; flex-direction: column; gap: 4px; }

/* Lead cards: where, what, whether you'd be first, one clear action. */
.lead-card h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lead-card h3 svg { width: 18px; height: 18px; color: var(--brand, #ff5a36); flex-shrink: 0; }
.lead-region { font-weight: 500; font-size: .85em; }
.lead-desc { font-size: 16px; color: var(--ink, inherit); }
.job-meta .urgent { color: #b42318; font-weight: 600; }
.lead-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lead-flag.first { color: #067647; font-weight: 600; }
.lead-flag svg { width: 15px; height: 15px; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lead-actions .interestBtn { flex: 1 1 160px; justify-content: center; }
.lead-card.responded { border-left-color: var(--trust, #12b76a); }
.vehicle-line .regoBtn { margin-left: 4px; }
.lead-dismissed { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lead-dismissed .chip { cursor: pointer; background: var(--surface); }
.lead-actions .dismissBtn { margin-left: auto; color: var(--muted); }

/* Respond to a lead: AI brief, message, ballpark price, when. */
.respond-sheet .ai-result { margin: 0; }
.respond-sheet textarea { width: 100%; }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-weight: 700; color: var(--muted); }
.money-input input { max-width: 160px; }
.lead-sent { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.lead-sent b svg { width: 14px; height: 14px; vertical-align: -2px; color: #067647; }
.next-steps { margin: 4px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.next-steps li.done { color: #067647; }
.interest-offer { margin: 6px 0 0; font-size: 14px; }
.interest-offer .offer-bits { font-weight: 700; color: var(--ink, inherit); }

/* Fleets */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.fleet-hero h2 { margin: 0; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fleet-vehicle { display: flex; flex-direction: column; gap: 8px; }
.fleet-vehicle p { margin: 0; }
.fleet-pick { gap: 8px; align-items: center; cursor: pointer; }
.fleet-pick input { width: 18px; height: 18px; }
.fleet-dues { flex-wrap: wrap; gap: 6px; }
.fleet-tools { flex-wrap: wrap; gap: 8px; }
.fleet-hist { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.claude-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.claude-steps .mono, .claude-tools .mono { word-break: break-all; }
.claude-tools { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.token-row { padding: 10px 0; border-top: 1px solid var(--line); }

/* Promotional offers (Pro) */
.offer-card { border: 1px dashed var(--brand, #ff5a36); background: color-mix(in srgb, var(--brand, #ff5a36) 6%, var(--surface, #fff)); border-radius: var(--r-md, 12px); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.offer-card p { margin: 0; }
.offer-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--brand, #ff5a36); text-transform: uppercase; letter-spacing: .04em; }
.offer-tag svg, .offer-inline svg { width: 13px; height: 13px; }
.offer-inline { margin-top: 6px; font-size: 13px; color: var(--brand, #ff5a36); display: flex; align-items: center; gap: 4px; }
.promo-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-group { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 4px 0 0; }
.lead-title, .lead-desc-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lead-desc-link { display: block; }
.lead-open { font-size: 13px; font-weight: 600; color: var(--brand, #ff5a36); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.lead-open svg { width: 14px; height: 14px; }
.lead-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.lead-facts dt { color: var(--muted); }
.lead-facts dd { margin: 0; }

/* Founding 50 (migration 45) */
.badge.founding { background: #fff7e0; color: #8a5a00; border-color: #f3d98b; }
.founding-panel { background: linear-gradient(135deg, var(--brand-soft), #fff7e0); border: 1px solid #f6d3c6; border-radius: var(--r-xl); padding: 28px; display: grid; gap: 16px; }
.founding-panel h2 { font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -.02em; }
.founding-panel .eyebrow { color: var(--brand-deep); }
.founding-count { font-size: 13px; font-weight: 700; color: var(--brand-ink); background: #fff; border: 1px solid #f6d3c6; border-radius: 999px; padding: 4px 12px; }
.founding-count b { font-size: 15px; }
.founding-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.founding-perks li { background: rgba(255,255,255,.75); border: 1px solid #f6e0d6; border-radius: var(--r-md); padding: 14px; display: grid; gap: 4px; }
.founding-perks span { font-size: 13px; color: var(--muted); }
.founding-card { background: #fffaf0; border: 1px solid #f3d98b; border-radius: var(--r-lg); padding: 16px 18px; }
.founding-aside { border-color: #f3d98b; background: #fffaf0; }
.between.wrap { flex-wrap: wrap; gap: 8px; }
main > .founding-panel { margin-bottom: 24px; }

/* Post a job: category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 92px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.cat-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(11,18,32,.3); }
.cat-tile .cat-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--canvas); color: var(--ink); }
.cat-tile .cat-ic svg { width: 18px; height: 18px; }
.cat-tile.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(255,90,54,.14); }
.cat-tile.on .cat-ic { background: var(--brand); color: #fff; }
.cat-tile.extra { display: none; }
.cat-tile.more { color: var(--muted); border-style: dashed; }
@media (max-width: 520px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } .cat-tile { min-height: 80px; } }

/* Job page: progress across the top, and the one next step */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; }
.stepper li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li i { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.stepper li i svg { width: 13px; height: 13px; }
.stepper li.done { color: var(--trust); }
.stepper li.done::before, .stepper li.now::before { background: var(--trust); }
.stepper li.done i { background: var(--trust); border-color: var(--trust); color: #fff; }
.stepper li.now { color: var(--ink); }
.stepper li.now i { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,54,.18); }
.stepper li.now i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 640px) { .stepper li span { display: none; } .stepper li.now span { display: block; position: absolute; top: 30px; white-space: nowrap; } .stepper { padding-bottom: 18px; } }
.next-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid #f6d3c6; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.next-card.trust { border-color: #bfe3de; background: linear-gradient(135deg, var(--trust-soft), #fff); }
.next-card.info { border-color: #cfdcff; background: linear-gradient(135deg, var(--info-soft), #fff); }
.next-card h2 { font-size: 20px; letter-spacing: -.01em; margin-top: 2px; }
.next-card p { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 60ch; }
.next-card .eyebrow { font-size: 11px; color: var(--brand-deep); }
.next-card.trust .eyebrow { color: var(--trust); } .next-card.info .eyebrow { color: var(--info); }
.next-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; }
.next-card.trust .next-ic { background: var(--trust); } .next-card.info .next-ic { background: var(--info); }
.next-ic svg { width: 22px; height: 22px; }
.next-cta { flex: none; }
@media (max-width: 640px) { .next-card { flex-wrap: wrap; } .next-ic { display: none; } .next-cta { width: 100%; justify-content: center; } }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255,90,54,.0); } 25% { box-shadow: 0 0 0 4px rgba(255,90,54,.35); } 100% { box-shadow: 0 0 0 0 rgba(255,90,54,0); } }

/* Provider dashboard: setup checklist, compact stats on phones */
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-1); }
.setup-card h3 { margin-top: 2px; }
.setup-card .eyebrow { color: var(--brand-deep); font-size: 11px; }
.setup-bar { flex: 1; max-width: 260px; min-width: 140px; height: 8px; border-radius: 99px; background: var(--canvas); overflow: hidden; }
.setup-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ff9d7a); transition: width .4s var(--ease); }
.setup-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.setup-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.setup-list li .grow { display: grid; gap: 2px; }
.setup-list li .grow span { font-size: 13px; color: var(--muted); }
.setup-list .tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); }
.setup-list .tick svg { width: 13px; height: 13px; }
.setup-list li.ok .tick { background: var(--trust); border-color: var(--trust); color: #fff; }
.setup-list li.ok b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
@media (max-width: 640px) {
  .stats.compact-m { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .stats.compact-m::-webkit-scrollbar { display: none; }
  .stats.compact-m .stat { flex: 0 0 auto; min-width: 128px; padding: 12px 14px; scroll-snap-align: start; }
  .stats.compact-m .stat b { font-size: 22px; }
  .stats.compact-m .stat span { font-size: 11px; }
}
.stack > *, .stack-lg > *, .job-grid > * { min-width: 0; }
.next-card .grow { min-width: 0; }
@media (max-width: 640px) { .next-card .grow { flex: 1 1 100%; } .setup-bar { max-width: none; flex-basis: 100%; } }

/* Growth workspace (migration 46) */
.g-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.g-tabs a svg { width: 16px; height: 16px; }
.g-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-list { display: grid; }
.g-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); color: inherit; }
.g-row:first-child { border-top: 0; }
a.g-row:hover { background: var(--canvas); border-radius: 10px; }
.g-row .grow { display: grid; gap: 2px; min-width: 0; }
.g-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row .avatar { width: 36px; height: 36px; font-size: 12px; flex: none; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.funnel-row i { height: 10px; border-radius: 99px; background: var(--canvas); overflow: hidden; }
.funnel-row i b { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ff9d7a); }
.funnel-row em { font-style: normal; text-align: right; color: var(--muted); }
.funnel-row:hover span { color: var(--brand-deep); }
.g-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.g-filters input, .g-filters select { height: 42px; }
.chips .chip b { margin-left: 4px; color: var(--muted); font-weight: 700; }
.g-table tbody tr { cursor: pointer; }
.g-table tbody tr:hover td { background: var(--canvas); }
.overdue { color: var(--danger); }
.g-timeline { display: grid; gap: 12px; }
.g-act { display: flex; gap: 10px; }
.g-act-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--canvas); color: var(--muted); }
.g-act-ic svg { width: 15px; height: 15px; }
.g-act p { margin-top: 2px; color: var(--ink); white-space: pre-wrap; }
.invite-qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.invite-qr .qr { width: 180px; height: 180px; }
.invite-url { display: block; margin-top: 10px; padding: 8px 10px; background: var(--canvas); border-radius: 8px; font-size: 12px; word-break: break-all; }
.g-dl { display: grid; grid-template-columns: 100px 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.g-dl dt { color: var(--muted); font-weight: 700; }
.g-dl dd { margin: 0; overflow-wrap: anywhere; }
.tpl-text { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; }
.danger-text { color: var(--danger) !important; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.biz-card.focus { box-shadow: 0 0 0 3px rgba(255,90,54,.35); }
.biz-card .setup-bar { max-width: none; }
.biz-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.biz-steps span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--canvas); color: var(--faint); }
.biz-steps span.ok { background: var(--trust-soft); color: var(--trust); }
.biz-steps span svg { width: 12px; height: 12px; }
.biz-issues { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--warn); font-weight: 600; }
.biz-issues svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.cov-table th, .cov-table td { text-align: center; padding: 6px; }
.cov-table th[scope="row"] { text-align: left; white-space: nowrap; font-size: 13px; }
.cov { position: relative; display: inline-grid; place-items: center; width: 44px; height: 36px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink); }
.cov.g0 { background: var(--canvas); color: var(--faint); }
.cov.g0.hot { background: var(--danger-soft); color: var(--danger); }
.cov.g1 { background: #fff1c7; color: #7c5a03; }
.cov.g2 { background: #d9f2ec; color: #0b6b62; }
.cov.g3 { background: var(--trust); color: #fff; }
.cov em { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.cov.legend { width: 16px; height: 16px; vertical-align: middle; margin: 0 4px 0 10px; }
.g-gap { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 800; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.kit-canvas { width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.sig-preview { padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: #fff; overflow-x: auto; }
.poster { aspect-ratio: 148 / 210; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 7% 8%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2%; color: #0b1220; overflow: hidden; }
.poster-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.poster-brand { font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.poster-brand b { color: #ff5a36; }
.poster-found { font-size: 11px; font-weight: 800; color: #8a5a00; background: #fff7e0; border: 1px solid #f3d98b; border-radius: 99px; padding: 3px 9px; }
.poster-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; margin-top: 4%; }
.poster-initials { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #0b1220; color: #fff; font-weight: 800; font-size: 22px; margin-top: 4%; }
.poster-eyebrow { margin-top: 6%; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d9421f; }
.poster-name { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -.02em; }
.poster-line { font-size: 14px; color: #5b6577; }
.poster-qr .qr { width: 150px; height: 150px; }
.poster-scan { font-weight: 800; font-size: 14px; }
.poster-services { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.poster-services li { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #f4f6f9; }
.poster-foot { margin-top: auto; font-size: 12px; color: #5b6577; font-weight: 700; }
.join-hero { padding: 32px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.join-hero .page-title { color: #fff; margin-top: 6px; }
.join-hero .muted { color: rgba(255,255,255,.75); }
.join-hero .eyebrow { color: #ff9d7a; }
@media (max-width: 640px) { .g-filters { grid-template-columns: 1fr; } .funnel-row { grid-template-columns: 96px 1fr 30px; } .kit-grid, .biz-grid { grid-template-columns: 1fr; } }
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .print-me, body.printing .print-me * { visibility: visible !important; }
  body.printing .print-me { position: fixed; inset: 0; margin: 0; width: 148mm; height: 210mm; border: 0; border-radius: 0; padding: 12mm; }
  body.printing .print-me .poster-qr .qr { width: 70mm; height: 70mm; }
  body.printing .print-me .poster-name { font-size: 26pt; }
  @page { size: A5; margin: 0; }
}
@media (max-width: 640px) { .g-row { flex-wrap: wrap; } .g-row .grow { flex: 1 1 60%; } .g-row > .badge { margin-left: 48px; } .g-row > .badge ~ .badge { margin-left: 0; } }

/* One-tap profile from a website */
.fast-start { border-color: #f6d3c6; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.fs-row { display: flex; gap: 8px; }
.fs-row input { flex: 1; min-width: 0; }
.draft-panel { border-color: #bfe3de; }
.draft-panel .eyebrow { color: var(--trust); font-size: 11px; }
@media (max-width: 520px) { .fs-row { flex-direction: column; } }

/* Book us online + free car check */
.book-banner { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.book-banner .eyebrow { color: var(--brand-deep); font-size: 11px; }
.book-only { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); }
.book-only span { display: grid; gap: 2px; }
.book-only small { color: var(--muted); font-size: 12.5px; }
.lead-card.booked { border-color: #bfe3de; box-shadow: 0 0 0 2px rgba(15,118,110,.12); }
.book-promo { background: linear-gradient(135deg, var(--trust-soft), #fff); border-color: #bfe3de; }
.fb-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.hero-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 14px; }
.hero-check:hover { background: rgba(255,255,255,.14); }
.hero-check svg { width: 18px; height: 18px; flex: none; }
.hero-check b { color: #ff9d7a; }
.check-hero .eyebrow { color: var(--brand-deep); }
.check-grid { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.check-snap { display: grid; place-items: center; text-align: center; gap: 8px; cursor: pointer; border: 2px dashed #f6d3c6; background: var(--brand-soft); }
.check-snap:hover { border-color: var(--brand); }
.check-result .ai-section ul { margin: 6px 0 0; padding-left: 18px; }
.check-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--canvas); }
.check-cta > div { display: grid; gap: 2px; max-width: 46ch; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } .check-snap { min-height: 120px; } .check-cta .btn { width: 100%; } }

/* Business tools (migration 49) */
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 72px 110px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-line.inv-head { margin-bottom: 4px; }
.inv-item { margin-bottom: 10px; }
.inv-item .inv-line { margin-bottom: 4px; }
.inv-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-part label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #4a5261); }
.inv-part-more { display: flex; gap: 8px; flex: 1 1 220px; min-width: 0; }
.inv-part-more[hidden] { display: none; }
.inv-part-more input { min-width: 0; flex: 1 1 0; }
.payment-record .inv-totals .badge { margin-left: 4px; }
.inv-line input { min-width: 0; }
.inv-totals { display: grid; gap: 6px; justify-content: end; min-width: 220px; margin-left: auto; }
.inv-totals > div { display: flex; justify-content: space-between; gap: 32px; font-size: 14px; }
.inv-totals .grand { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; }
.pay-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.invoice-doc { padding: 28px; }
@media (max-width: 560px) {
  .inv-line { grid-template-columns: minmax(0, 1fr) 56px 84px 36px; gap: 6px; }
  .invoice-doc { padding: 18px; }
}
@media print {
  .invoice-page .no-print, .site-header, .site-footer, header, footer, nav { display: none !important; }
  .invoice-doc { border: 0; box-shadow: none; }
}
.cust-row .between > .grow { flex: 1 1 280px; }
.cust-row .between > .row { flex: 0 1 auto; }
.cust-search { flex: 1 1 220px; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--surface); color: var(--ink); }
/* Inspections (migration 50) */
.ins-item { border: 1px solid var(--line); border-left: 5px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.ins-item.red { border-left-color: var(--danger); }
.ins-item.amber { border-left-color: var(--warn); }
.ins-item.green { border-left-color: var(--trust); }
.ins-item input, .ins-item textarea { width: 100%; }
.ins-item .iPrice { width: 100px; }
.rag { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rag button { border: 0; background: var(--surface); padding: 8px 12px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.rag button + button { border-left: 1px solid var(--line); }
.rag .rag-red.on { background: var(--danger); color: #fff; }
.rag .rag-amber.on { background: var(--warn); color: #fff; }
.rag .rag-green.on { background: var(--trust); color: #fff; }
.ins-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ins-ph { position: relative; }
.ins-ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.ins-ph button svg { width: 12px; height: 12px; }
.ins-add { width: 84px; height: 84px; border: 2px dashed var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.ins-add.loading { opacity: .5; pointer-events: none; }
.ins-approve { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.ins-approve input { width: 22px; height: 22px; }
.ins-approve span { flex: 1; font-weight: 700; }
.hist-row { border-left: 3px solid var(--brand); padding: 6px 0 6px 12px; }
/* Sign-in method switch */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 8px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.help-box summary { cursor: pointer; list-style: none; }
.help-box summary::-webkit-details-marker { display: none; }
.help-box summary::after { content: ' +'; color: var(--muted); }
.help-box[open] summary::after { content: ' \2212'; }
.help-box ol { padding-left: 18px; display: grid; gap: 6px; }
/* Fleet plans and driver checks (migration 53) */
.fleet-plan { padding: 12px 16px; }
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-opt { display: grid; gap: 2px; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.plan-opt:hover:not(:disabled) { border-color: var(--brand); }
.plan-opt.on { border-color: var(--trust); background: var(--trust-soft); }
.plan-opt:disabled { opacity: .55; cursor: default; }
.plan-opt span { font-size: 12px; color: var(--muted); }
.plan-opt strong { font-size: 20px; margin-top: 4px; }
.plan-opt small { font-size: 11px; color: var(--muted); font-weight: 600; }
.plan-opt em { font-size: 11px; color: var(--muted); font-style: normal; }
.plan-incl { padding-left: 18px; display: grid; gap: 2px; }
@media (max-width: 560px) { .plan-pick { grid-template-columns: 1fr; } }
.defect-card { border-left: 5px solid var(--danger); }
.defect-row { border-top: 1px solid var(--line); padding-top: 10px; }
.qr-box svg { width: 220px; height: 220px; margin: 0 auto; display: block; }
.chk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.chk-row .rag button { padding: 10px 14px; }

/* Trade deals (migration 55) */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.deal-card { border-left: 3px solid var(--brand, #ff5a36); }
.deal-card h3 { font-size: 16px; line-height: 1.3; }
.chip input[type=checkbox] { margin-right: 6px; }
.chip.on { background: var(--ink, #0b1220); color: #fff; border-color: transparent; }

/* Help & support (migration 58) */
.help-chat { height: 360px; }
.help-chat .msg small .link { font-size: 12px; }
.list-row { padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.support-log { border-radius: var(--r-lg); max-height: 520px; }

/* Growth: who to call next */
.call-cards { display: grid; gap: 12px; }
.call-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 8px; background: var(--surface); }
.call-card .btn.primary { font-size: 15px; }
.call-why { color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin: 0; }
.call-script { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.call-outcome { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.call-outcome .chip.trust { border-color: var(--trust); color: var(--trust); }
.call-outcome .chip.danger { border-color: var(--danger); color: var(--danger); }
.call-line { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.more-detail{border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.more-detail summary{cursor:pointer;list-style:none}
.more-detail summary::-webkit-details-marker{display:none}
.more-detail summary b::after{content:" +";color:var(--brand-deep)}
.more-detail[open] summary b::after{content:" −"}

/* Instant prices: on the job form and in business settings */
.instant-box { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.instant-box .row svg { width: 18px; height: 18px; }
.instant-item h4 { font-size: 14px; margin-bottom: 6px; }
.instant-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.instant-row.on { background: var(--surface); margin: 0 -8px; padding: 10px 8px; border-radius: var(--r-sm, 8px); }
.instant-price { text-align: right; line-height: 1.1; } .instant-price small { display: block; color: var(--muted); font-size: 11px; } .instant-price b { font-size: 18px; }
.price-rows { display: grid; gap: 10px; }
.price-row { display: grid; grid-template-columns: 1.3fr 140px 1.5fr; gap: 10px; align-items: center; }
.price-row label { display: grid; gap: 2px; }
.price-input { display: flex; align-items: center; gap: 6px; } .price-input span { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 13px; }
@media (max-width: 640px) { .price-row { grid-template-columns: 1fr 1fr; } .price-row label { grid-column: 1 / -1; } .instant-row { flex-wrap: wrap; } .instant-row .grow { flex-basis: 60%; } }
.price-list { display: grid; gap: 6px; } .price-list > div { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Business sign-up: steps, welcome screen */
.biz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.biz-steps li { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.biz-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-2); }
.biz-steps li.on { color: var(--ink, inherit); border-color: var(--brand, #ff5a36); font-weight: 600; }
.biz-steps li.on span { background: var(--brand, #ff5a36); color: #fff; }
.biz-steps li.done span { background: var(--trust, #0f8a78); color: #fff; }
.welcome-hero { display: flex; gap: 14px; align-items: flex-start; }
.welcome-tick { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--trust, #0f8a78); color: #fff; }
.welcome-tick svg { width: 24px; height: 24px; }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.next-steps li b { display: block; } .next-steps li span { color: var(--muted); font-size: 14px; }
.book-promo .between > .grow { min-width: min(100%, 260px); flex-basis: 260px; }
.referral-card .copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.referral-card .copy-row input { flex: 1 1 220px; min-width: 0; }
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ref-list li { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.loc-btn { margin-top: 8px; justify-self: start; }
.ai-section .chips .chip { text-align: left; white-space: normal; }
.ai-section > .tiny { display: block; margin-top: 2px; }

/* Homepage quick start: job type + suburb, straight to local prices */
.quick-start { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 16px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); animation: rise .7s var(--ease) both .2s; }
.quick-start h2 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.qs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.qs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qs-tile { display: grid; justify-items: start; gap: 8px; text-align: left; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.qs-tile .icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.qs-tile .icon svg { width: 17px; height: 17px; }
.qs-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.qs-tile.on { border-color: var(--brand); background: #fff4f0; }
.qs-tile.on .icon { background: var(--brand); color: #fff; }
.qs-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.qs-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.qs-field input { font: inherit; font-size: 16px; font-weight: 500; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); }
.qs-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,54,.15); }
.qs-foot { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.qs-foot svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 520px) { .qs-tiles { grid-template-columns: repeat(2, 1fr); } .quick-start { padding: 20px; } }

/* Instant prices as a comparison list */
.instant-box { background: var(--surface); border: 1.5px solid var(--line); }
.instant-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; }
.instant-price b { font-size: 22px; letter-spacing: -.02em; }
.instant-row .btn { min-width: 92px; }
@media (max-width: 640px) { .instant-row { grid-template-columns: 1fr auto; } .instant-row .btn { grid-column: 1 / -1; width: 100%; } }
.hero-repairer { display: inline-flex; gap: 6px; align-items: center; color: rgba(255,255,255,.8); font-weight: 700; font-size: 15px; text-decoration: none; margin: 4px 0 18px; }
.hero-repairer:hover { color: #fff; }
.hero-repairer svg { width: 16px; height: 16px; }
/* Phones: the quick start sits straight under the headline, before the rest of the pitch */
@media (max-width: 900px) {
  .hero { gap: 18px; }
  .hero > div:first-child { display: contents; }
  .hero > div:first-child > * { order: 4; margin-top: 0; }
  .hero > div:first-child > .eyebrow, .hero > div:first-child > h1 { order: 1; }
  .hero > .hero-side { order: 2; margin-bottom: 10px; }
}
.qs-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.qs-field small { font-weight: 500; color: var(--faint); font-size: 12px; }
.qs-input { position: relative; display: block; }
.qs-input input { width: 100%; box-sizing: border-box; padding-right: 44px; }
.qs-locate { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.qs-locate svg { width: 17px; height: 17px; }
/* Rego as a white NZ-style number plate */
.nz-plate { font-family: 'Arial Narrow', 'Roboto Condensed', var(--font, sans-serif) !important; font-weight: 800 !important; letter-spacing: .14em; text-transform: uppercase; text-align: center; font-size: 19px !important; border: 2.5px solid var(--ink) !important; border-radius: 9px !important; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.nz-plate::placeholder { color: #b9c0cc; letter-spacing: .14em; }
.closing-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.closing-cta h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.closing-cta p { margin: 0; color: rgba(255,255,255,.75); }
@media (max-width: 520px) { .qs-row { grid-template-columns: 1fr; } .closing-cta { padding: 24px; } .closing-cta .btn { width: 100%; justify-content: center; } }
/* Job form: your car */
.car-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.car-field legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.car-grid { display: grid; grid-template-columns: 1fr .7fr 1fr 1fr; gap: 8px; }
.car-grid .nz-plate { font-size: 17px !important; }
@media (max-width: 640px) { .car-grid { grid-template-columns: 1fr 1fr; } }

/* Instant prices, v2: one compact line, cards on tap. */
.instant-box { padding: 0; border: 0; background: none; gap: 10px; }
.ip-sum { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ip-sum:hover { border-color: var(--line-strong); }
.ip-sum.chosen { border-color: var(--trust); background: var(--trust-soft); cursor: default; }
.ip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); flex: none; }
.ip-sum.chosen .ip-ic { background: var(--trust); color: #fff; }
.ip-ic svg { width: 18px; height: 18px; }
.ip-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ip-txt b { font-size: 15px; }
.ip-txt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ip-txt small b { font-size: 13px; color: var(--ink); }
.ip-more { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.ip-body { display: grid; gap: 16px; }
.ip-body[hidden] { display: none; }
.ip-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.ip-h b { font-size: 14px; }
.ip-h small { font-size: 12px; color: var(--faint); }
.ip-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.ip-card { flex: 0 0 min(240px, 78%); scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.ip-card.on { border-color: var(--trust); box-shadow: 0 0 0 3px var(--trust-soft); }
.ip-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ip-av { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ip-who { min-width: 0; display: grid; gap: 2px; }
.ip-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.ip-star { color: #b7791f; font-weight: 700; }
.ip-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--trust); font-weight: 700; }
.ip-ok svg { width: 12px; height: 12px; }
.ip-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ip-price small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-bottom: 3px; }
.ip-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ip-card .btn svg { width: 14px; height: 14px; }

/* Search pages: real local prices. */
.price-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.price-strip > div { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.price-strip small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.price-strip b { font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.price-strip span { font-size: 12px; color: var(--faint); }
.price-strip p { grid-column: 1 / -1; margin: 0; opacity: .8; }

/* Job form: job type already chosen from the link. */
.cat-chosen { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--brand); background: var(--brand-soft); }
.cat-chosen .cat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.cat-chosen .cat-ic svg { width: 18px; height: 18px; }
.cat-chosen b { flex: 1; font-size: 15px; }
.cat-tiles[hidden] { display: none; }

/* Quote lines: what each line is for. */
.q-item { display: grid; gap: 4px; min-width: 0; }
.q-item select { height: 30px; font-size: 12px; padding: 0 8px; }
.q-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-right: 2px; }
.q-split { margin: 6px 0 0; }
.q-split b { color: var(--ink); }

/* Job chat: photos, videos and extra-work approvals. */
.chat-attach { width: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; }
.chat-attach svg { width: 20px; height: 20px; }
.chat-tools { padding: 8px 12px 0; border-top: 1px solid var(--line); }
.msg-media { margin: -2px -4px 8px; font-size: 12px; opacity: .8; }
.msg-media img, .msg-media video { display: block; width: 100%; max-width: 280px; max-height: 320px; object-fit: cover; border-radius: 10px; background: #000; }
.msg-approval { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); border: 1px solid #ffd2c4; white-space: normal; }
.msg-approval .eyebrow { font-size: 11px; color: var(--brand-deep); }
.msg-approval b { font-size: 18px; } .msg-approval b small { font-size: 11px; font-weight: 600; color: var(--muted); display: inline; opacity: 1; margin: 0; }
