:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f6f6f6;
  --gray-100: #eeeeee;
  --gray-200: #e2e2e2;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --green: #06c167;
  --blue: #276ef1;
  --red: #e11900;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--gray-50); color: var(--black); min-height: 100vh; }
.hidden { display: none !important; }

.app-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--white); box-shadow: var(--shadow); position: relative; padding-bottom: 72px; }

/* Top bar — location-first style */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 12px 16px;
}
.topbar-row { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: #06c167; }
.area-picker {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border-radius: 999px; padding: 10px 14px;
  border: 1px solid var(--gray-200); cursor: pointer;
}
.area-picker svg { flex-shrink: 0; }
.area-picker-text { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-picker-sub { font-size: 11px; color: var(--gray-600); }
.user-pill {
  width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

.main { padding: 16px 16px 100px; }
.screen-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.screen-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

/* Category chips */
.signup-trades-wrap { margin: 10px 0 14px; }
.signup-trades-list { min-height: 48px; }
.signup-trades-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}
.signup-trade-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}
.signup-trade-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--role, #276ef1);
}
/* Wizard step 1 — service tiles with icon + white label */
.category-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.category-service-grid.service-grid--modal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 4px 2px 8px;
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 108px;
  padding: 14px 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: var(--tile-bg, linear-gradient(155deg, #3b82f6, #1d4ed8));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.service-tile--compact {
  min-height: 96px;
  padding: 12px 4px 8px;
}
.service-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}
.service-tile:focus {
  outline: none;
}
.service-tile:focus-visible:not(.active) {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}
.service-tile.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--role, #276ef1), 0 10px 24px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}
.service-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 40px;
  margin-bottom: 4px;
}
.service-tile-icon .bq-ico,
.service-tile-svg {
  width: 36px;
  height: 36px;
  color: #fff;
  stroke: #fff;
}
.service-tile-icon .bq-ico:not(.bq-ico-fill) {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-tile-icon .bq-ico path:not(.fill) {
  stroke: #fff;
  fill: none;
}
.service-tile-icon .bq-ico-fill path,
.service-tile-icon .bq-ico .fill {
  fill: #fff;
  stroke: none;
}
.service-tile-label {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}
@media (min-width: 380px) {
  .service-tile-label {
    font-size: 11.5px;
  }
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: var(--white);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Urgency */
.urgency-row { display: flex; gap: 8px; margin-bottom: 16px; }
.urgency {
  flex: 1; padding: 12px; text-align: center; border-radius: var(--radius);
  border: 2px solid var(--gray-200); font-size: 13px; font-weight: 700; cursor: pointer;
}
.urgency.active { border-color: var(--black); background: var(--gray-50); }
.urgency small { display: block; font-weight: 400; color: var(--gray-600); font-size: 11px; margin-top: 2px; }

/* Inputs */
label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
input, select, textarea {
  width: 100%; padding: 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; margin-bottom: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--black); border-color: var(--black); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 20px; border-radius: var(--radius); border: none;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #222; }
.btn-secondary { background: var(--gray-100); color: var(--black); }
.btn-green { background: var(--green); color: var(--white); }
.btn-sm { padding: 10px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Status banner */
.status-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.status-banner .pulse { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 8px; animation: pulse 1.5s infinite; box-shadow: 0 0 0 2px rgba(6, 193, 103, 0.35); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.status-banner h3 { font-size: 16px; margin-bottom: 4px; color: #ffffff; font-weight: 800; }
.status-banner p { font-size: 13px; color: #cbd5e1; opacity: 1; margin: 0; }
#app-screen.role-host .status-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #276ef1 55%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.28);
}
#app-screen.role-host .status-banner p { color: #e0e7ff; }

/* Quote sort bar */
.sort-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: none; }
.sort-bar::-webkit-scrollbar { display: none; }
.sort-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-600); flex-shrink: 0; }
.sort-chip {
  flex-shrink: 0; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--gray-200);
  background: var(--white); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.sort-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Quote cards */
.quote-card {
  position: relative;
  border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.quote-card.selected { border-color: var(--blue); }
.quote-card.best { border-color: var(--green); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 999px; background: var(--gray-100); color: var(--gray-800);
  font-size: 11px; font-weight: 800; margin-right: 8px; vertical-align: middle;
}
.quote-card.best .rank-badge { background: var(--green); color: var(--white); }
.best-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green); margin-left: 6px; }
.quote-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.quote-name { font-weight: 700; font-size: 16px; }
.quote-price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.hub-bidder-price { color: #057a43; font-weight: 800; }
.qc-price { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
body.theme-dark .quote-price,
body.theme-dark .hub-bidder-price,
body.theme-dark .qc-price { color: #4ade80; }
body.ui-v2.theme-dark .quote-price,
body.ui-v2.theme-dark .hub-bidder-price,
body.ui-v2.theme-dark .qc-price { color: #4ade80; }
#app-screen.role-host .quote-price,
#app-screen.role-host .hub-bidder-price { color: var(--role-ink, #1b4fd1); }
body.theme-dark #app-screen.role-host .quote-price,
body.theme-dark #app-screen.role-host .hub-bidder-price { color: #60a5fa; }

/* AI estimate promo + voice input (posting wizard) */
.ai-estimate-promo {
  background: linear-gradient(135deg, var(--role-wash, #eef3fe) 0%, var(--surface) 100%);
  border: 1px solid color-mix(in srgb, var(--role, #276ef1) 28%, var(--line));
  border-radius: 14px; padding: 14px; margin-top: 14px; margin-bottom: 12px;
}
.wizard-page[data-wpage="2"] #req-description {
  margin-bottom: 0;
}
.wizard-page[data-wpage="2"] #req-description:focus {
  border-color: var(--role, #276ef1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role, #276ef1) 18%, transparent);
}
.quote-card.selected { border-color: var(--blue, #2563eb); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.quote-card.best.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(6, 193, 103, 0.35); }
.ai-promo-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ai-promo-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--role, #276ef1); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-promo-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ai-live-estimate { margin-bottom: 10px; border: 1px dashed color-mix(in srgb, var(--role, #276ef1) 35%, var(--line)); background: var(--surface); }
.ai-live-estimate:not(.hidden) { display: flex; }
.voice-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.voice-input-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.voice-input-row .btn.recording { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.lang-chips { display: flex; gap: 6px; flex-shrink: 0; }
.lang-chip {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.lang-chip.active { background: var(--role-wash, #eef3fe); color: var(--role-ink, #1b4fd1); border-color: transparent; }

.badge-v { font-size: 10px; background: var(--green); color: white; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-600); margin-bottom: 10px; }
.meta-pill { background: var(--gray-50); padding: 4px 8px; border-radius: 6px; }

/* Job list (provider) */
.job-item {
  padding: 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer;
}
.job-item.selected { border-color: var(--black); box-shadow: var(--shadow); }
.job-item .urgency-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--red); }
.job-item .urgency-tag.today { color: #d97706; }

/* Toggle online */
.toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 16px;
}
.toggle { width: 52px; height: 30px; background: var(--gray-200); border-radius: 999px; position: relative; cursor: pointer; transition: 0.2s; }
.toggle.on { background: var(--green); }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.on::after { left: 25px; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--white);
  border-top: 1px solid var(--gray-200); display: flex; z-index: 60;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px; border: none; background: none; font-size: 10px; font-weight: 600;
  color: var(--gray-600); cursor: pointer; font-family: inherit;
}
.nav-item.active { color: var(--black); }
.nav-item svg { width: 22px; height: 22px; }

/* Auth */
.auth-hero { text-align: center; padding: 32px 0 24px; }
.auth-hero h1 { font-size: 28px; font-weight: 800; }
.auth-roles-intro {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}
.auth-roles-lead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.auth-role-grid { display: flex; flex-direction: column; gap: 10px; }
.auth-role-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.auth-role-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-role-icon svg { width: 22px; height: 22px; }
.auth-role-icon--host {
  background: color-mix(in srgb, #3b82f6 18%, var(--surface));
  color: #3b82f6;
}
.auth-role-icon--pro {
  background: color-mix(in srgb, #06c167 18%, var(--surface));
  color: #06c167;
}
.auth-role-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.auth-role-copy strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.auth-role-copy span { font-size: 12px; line-height: 1.45; color: var(--muted); font-weight: 500; }
.tabs { display: flex; background: var(--gray-100); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; }
.tab { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--white); width: 100%; max-width: 480px; max-height: 85vh;
  border-radius: 20px 20px 0 0; padding: 20px; overflow-y: auto;
}
.modal h2 { font-size: 20px; margin-bottom: 16px; }
.area-option {
  padding: 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer;
}
.area-option.active { border-color: var(--black); background: var(--gray-50); }
.area-option strong { display: block; }
.area-option span { font-size: 12px; color: var(--gray-600); }
.install-steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { font-size: 14px; line-height: 1.45; color: var(--gray-800); }
.install-steps li strong { color: var(--black); }

/* Live */
.video-box { width: 100%; border-radius: var(--radius); background: #000; max-height: 200px; }
.chat-log { height: 120px; overflow-y: auto; background: var(--gray-50); border-radius: var(--radius); padding: 10px; font-size: 13px; margin: 10px 0; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--gray-200); color: var(--gray-600); font-size: 11px; text-transform: uppercase; }
td { padding: 12px 8px; border-bottom: 1px solid var(--gray-100); }

.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: var(--white); padding: 12px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 200;
  max-width: 90%; text-align: center;
}
.error { color: var(--red); font-size: 13px; margin-top: 8px; }

.media-card { background: var(--gray-50); border-color: var(--gray-200); }
.media-card h3 { margin-bottom: 6px; }
.media-hint { font-size: 12px; color: var(--gray-600); margin-bottom: 12px; }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); margin: 20px 0 10px; }
.media-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; min-height: 0; }
.media-gallery:empty { display: none; }
.media-thumb {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--gray-200);
  position: relative; cursor: pointer;
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb span {
  position: absolute; bottom: 4px; left: 4px; font-size: 9px; background: rgba(0,0,0,.7);
  color: white; padding: 2px 6px; border-radius: 4px;
}
.media-alerts { margin-bottom: 10px; }
.media-alert {
  padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 8px;
  background: #fff8e6; border: 1px solid #fcd34d;
}
.media-alert.live { background: #e8f5ff; border-color: #93c5fd; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-btn {
  flex: 1; min-width: 120px; padding: 12px; text-align: center; border-radius: var(--radius);
  border: 2px dashed var(--gray-200); background: var(--white); font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.upload-btn:active { background: var(--gray-100); }
.media-actions { margin-top: 4px; }
.video-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray-600); margin: 10px 0 4px; }

.msg-card { margin-bottom: 12px; }
.msg-log {
  height: 160px; overflow-y: auto; background: var(--gray-50);
  border-radius: var(--radius); padding: 10px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg-bubble {
  max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35;
}
.msg-bubble.mine { align-self: flex-end; background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.msg-bubble .msg-meta { font-size: 10px; opacity: 0.7; margin-bottom: 4px; }
.msg-compose { display: flex; gap: 8px; align-items: center; }
.msg-compose input { flex: 1; margin-bottom: 0; padding: 12px; }
.char-count { font-size: 11px; color: var(--gray-600); display: block; text-align: right; margin-top: 4px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.quick-reply {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gray-200);
  background: var(--white); font-size: 12px; font-weight: 600; cursor: pointer;
}
.test-creds { background: #ecfdf5; border-color: #86efac; }

/* ===== QueuePro dashboard ===== */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: 13px; font-weight: 700; color: var(--gray-600); transition: .2s;
}
.online-pill .online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-400); transition: .2s; }
.online-pill.on { background: #e6f9f0; border-color: var(--green); color: #057a43; }
.online-pill.on .online-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(6,193,103,.18); }

.stat-row { display: flex; gap: 10px; margin: 16px 0; }
.stat-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.stat-num { font-size: 24px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .03em; }

.map-card { padding: 14px; }
.map-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.map-hint { font-size: 11px; color: var(--gray-400); }
.proximity-map {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 320px;
  margin: 0 auto; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at center, #0e1f3a 0%, #0a1730 60%, #081226 100%);
}
.proximity-map svg { width: 100%; height: 100%; display: block; }
.map-ring { fill: none; stroke: rgba(120,170,255,.18); stroke-width: 1; }
.map-ring-label { fill: rgba(160,190,240,.55); font-size: 9px; font-weight: 600; }
.map-axis { stroke: rgba(120,170,255,.10); stroke-width: 1; }
.map-you { fill: #06c167; stroke: #fff; stroke-width: 2; }
.map-you-halo { fill: rgba(6,193,103,.18); animation: radarPulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes radarPulse { 0% { opacity:.7; transform: scale(.4);} 100% { opacity:0; transform: scale(1.5);} }
.map-pin { cursor: pointer; transition: transform .15s; }
.map-pin circle { stroke: #fff; stroke-width: 1.5; }
.map-pin.asap circle { fill: #ff4d4f; }
.map-pin.today circle { fill: #ffa528; }
.map-pin.flexible circle { fill: #4d9bff; }
.map-pin.online circle { fill: #06c167; }
.map-pin.offline circle { fill: #8a93a6; }
.map-pin.active circle { stroke-width: 3; }
.map-pin-label { fill: #fff; font-size: 9px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(180,200,240,.6); font-size: 13px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--gray-600); }
.map-legend .lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.lg-dot.you { background: var(--green); }
.lg-dot.asap { background: #ff4d4f; }
.lg-dot.today { background: #ffa528; }
.lg-dot.flexible { background: #4d9bff; }
.lg-dot.online { background: #06c167; }
.lg-dot.offline { background: #8a93a6; }

.verify-card-compact { padding: 14px 16px; }
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-row h3 { margin-bottom: 2px; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; }
.list-head h3 { font-size: 15px; }
.list-count { font-size: 12px; color: var(--gray-600); }

/* Enhanced job cards */
.job-item { transition: border-color .15s, box-shadow .15s, transform .1s; }
.job-item.flash { animation: jobFlash 1.2s ease; }
@keyframes jobFlash { 0%,100% { background: var(--white);} 30% { background: #fff8e6;} }
/* Deep-link highlight for booked/active job cards (theme-aware) */
.job-history-card.flash { animation: cardFlash 1.3s ease; }
@keyframes cardFlash {
  0% { box-shadow: 0 0 0 0 rgba(6,193,103,.0); }
  25% { box-shadow: 0 0 0 3px var(--accent); border-color: var(--accent); }
  100% { box-shadow: var(--shadow-sm); }
}
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-cat { font-size: 15px; font-weight: 800; }
.urgency-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; }
.urgency-tag.asap { color: #ff4d4f; background: #ffecec; }
.urgency-tag.today { color: #b9690a; background: #fff2dd; }
.urgency-tag.flexible { color: #2f6fd6; background: #e8f0ff; }
.job-desc { font-size: 13px; color: var(--gray-800); margin: 8px 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.job-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 999px; padding: 4px 10px; }
.job-chip.dist { color: #057a43; background: #e6f9f0; border-color: #b9ecd2; font-weight: 700; }
.job-chip.mine { color: #2f6fd6; background: #e8f0ff; border-color: #cfe0ff; font-weight: 700; }
.job-quoted-banner { font-size: 12px; font-weight: 700; color: #057a43; margin-bottom: 8px; }

/* ===== Tier badges & verification tags ===== */
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.tier-badge.t5 { background: #111827; color: #ffd24a; }
.tier-badge.t4 { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; }
.tier-badge.t3 { background: linear-gradient(135deg,#0ea5e9,#2563eb); color: #fff; }
.tier-badge.t2 { background: linear-gradient(135deg,#10b981,#059669); color: #fff; }
.tier-badge.t1 { background: var(--gray-100); color: var(--gray-600); box-shadow: none; }

.vtag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px;
}
.vtag.verified { background: #e6f9f0; color: #057a43; border: 1px solid #b9ecd2; }
.vtag.unverified { background: #fbf1e5; color: #9a6700; border: 1px solid #f0dcc0; }

.quote-id-col { display: flex; flex-direction: column; gap: 6px; }
.quote-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.quote-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pro-tier-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pro-score { font-size: 11px; font-weight: 700; color: var(--gray-600); background: var(--gray-50); padding: 3px 8px; border-radius: 999px; }
.meta-pill.dist-pill { background: #e6f9f0; color: #057a43; font-weight: 700; }

/* Tier progress card (pro dashboard) */
.tier-progress { padding: 16px; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tp-head .tp-score { font-size: 12px; font-weight: 700; color: var(--gray-600); }
.tp-bar { height: 10px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.tp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#06c167,#04a957); transition: width .5s ease; }
.tp-msg { font-size: 12.5px; color: var(--gray-600); margin-top: 8px; }
.tp-msg b { color: var(--ink, #0f172a); }
.tp-next { color: #2563eb; font-weight: 700; }
.tp-verify { color: #9a6700; font-weight: 700; }

/* Leaderboard table */
.rank-table td { vertical-align: middle; }
.rank-pos { font-weight: 800; font-size: 15px; color: var(--gray-400); width: 28px; }
.rank-pos.top { color: var(--green); }
.rank-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.rank-sub { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Star rating */
.star-row { display: flex; gap: 4px; margin-bottom: 12px; }

/* ===== Professional polish layer ===== */
body {
  background:
    radial-gradient(1200px 500px at 50% -200px, #eef4ff 0%, rgba(238,244,255,0) 60%),
    var(--gray-50);
}
.app-shell { box-shadow: 0 0 60px rgba(15,23,42,.08); }
.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 6px 18px -12px rgba(15,23,42,.18);
}
.logo { color: #276ef1; background: none; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: currentColor; }
.logo span { color: #06c167; -webkit-text-fill-color: #06c167; }

.screen-title { letter-spacing: -.4px; }
.card { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card:hover { box-shadow: 0 6px 20px -10px rgba(15,23,42,.22); }

.btn { transition: transform .12s ease, box-shadow .18s ease, background .18s ease; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg,#111827,#1f2937); box-shadow: 0 8px 18px -10px rgba(17,24,39,.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(17,24,39,.75); }
.btn-green { background: linear-gradient(135deg,#06c167,#04a957); box-shadow: 0 8px 18px -10px rgba(6,193,103,.7); }
.btn-green:hover { transform: translateY(-1px); }
.btn-secondary:hover { background: var(--gray-200); }
.btn:active { transform: translateY(0); }

.quote-card { transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease; background: var(--white); }
.quote-card:hover { box-shadow: 0 8px 22px -14px rgba(15,23,42,.3); }
.quote-card.best { background: linear-gradient(180deg,#f3fdf8 0%,#ffffff 60%); box-shadow: 0 8px 24px -14px rgba(6,193,103,.45); }
.bottom-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 -6px 20px -14px rgba(15,23,42,.35);
}
.nav-item { position: relative; transition: color .15s ease; }
.nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green);
}
.nav-item.active { color: var(--black); }

.auth-hero h1 { color: #276ef1; background: none; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: currentColor; }
.auth-hero h1 span { color: #06c167; -webkit-text-fill-color: #06c167; }

.stat-card { transition: transform .15s ease, box-shadow .18s ease; background: linear-gradient(180deg,#ffffff,#fbfcff); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(15,23,42,.25); }
.stat-num { background: linear-gradient(135deg,#0f172a,#2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 30px; line-height: 1; color: var(--gray-200); transition: color .12s;
}
.star.on { color: #f5a623; }
.star:hover { color: #f7b955; }

/* â€”â€”â€” Escrow card â€”â€”â€” */
.escrow-card {
  border: 1px solid #d7ece0;
  background: linear-gradient(135deg, #f1faf5, #eaf6ff);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.escrow-card.released { border-color: #bfe6cd; background: linear-gradient(135deg, #e7f9ee, #e0f6e8); }
.escrow-row { display: flex; align-items: center; gap: 12px; }
.escrow-icon { font-size: 22px; }
.escrow-text { display: flex; flex-direction: column; flex: 1; }
.escrow-text strong { font-size: 15px; }
.escrow-amount { font-size: 20px; font-weight: 800; color: var(--money-green-ink, #065f46); }
.escrow-note { margin-top: 8px; font-size: 11.5px; color: var(--gray-600); }

.safety-note {
  background: #fff8e6; border: 1px solid #f4e2b8; color: #7a5a13;
  border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5;
  margin: 10px 0 4px;
}

/* â€”â€”â€” Pro profile drawer â€”â€”â€” */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 14, 26, .55);
  display: flex; justify-content: flex-end;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  width: min(440px, 92vw); height: 100%;
  background: var(--bg, #fff); overflow-y: auto;
  padding: 20px 20px 40px;
  box-shadow: -16px 0 40px rgba(0,0,0,.25);
  animation: slideIn .22s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
.drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #f0f2f5; font-size: 15px; cursor: pointer;
}
.drawer-loading { padding: 40px 0; text-align: center; color: var(--gray-600); }
.drawer-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.drawer-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1e2a44, #3a5bd9);
}
.drawer-hero h2 { font-size: 20px; margin-bottom: 6px; }
.drawer-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.drawer-stats > div {
  background: #f6f8fb; border-radius: 12px; padding: 10px 6px; text-align: center;
}
.ds-num { display: block; font-size: 18px; font-weight: 800; color: #1e2a44; }
.ds-lbl { display: block; font-size: 10.5px; color: var(--gray-600); margin-top: 2px; }
.drawer-section { margin-bottom: 18px; }
.drawer-section h3 { font-size: 14px; margin-bottom: 8px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-chip { background: #eef2fb; color: #2f4288; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px; }
.drawer-map { height: 220px; margin-bottom: 8px; }
.drawer-review { border-top: 1px solid #eef0f4; padding: 10px 0; }
.drawer-review:first-of-type { border-top: none; }
.dr-top { display: flex; justify-content: space-between; align-items: center; }
.dr-stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.dr-by { font-size: 12px; color: var(--gray-600); font-weight: 600; }
.drawer-review p { font-size: 13px; margin-top: 4px; color: #333; }

@media (min-width: 481px) {
  body { background: #e5e5e5; padding: 20px 0; }
}

/* ============================================================
   STREAMLINE REFINEMENT LAYER (v9)
   Calmer surfaces, softer lines, unified radii & spacing,
   one clear accent. Loaded last so it wins the cascade.
   ============================================================ */
:root {
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --line: #ececf1;          /* soft hairline border */
  --line-strong: #e0e2e8;
  --ink: #0f172a;           /* primary text / neutral action */
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --accent: #06c167;
  --accent-ink: #065f46;
  --money-green: #047857;
  --money-green-ink: #065f46;
  --accent-wash: #e9faf1;
  --ring: 0 0 0 3px rgba(6,193,103,.16);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 12px 30px -18px rgba(15,23,42,.28);
}

/* Calmer page background */
body {
  background:
    radial-gradient(1100px 460px at 50% -240px, #eef4ff 0%, rgba(238,244,255,0) 62%),
    var(--surface-2);
  color: var(--ink);
}
.app-shell { box-shadow: 0 0 50px rgba(15,23,42,.07); }

/* Typography rhythm */
body { font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, .screen-title, .logo, .brand h1, .auth-hero h1 { font-family: var(--font-head); }
.screen-title { font-size: 21px; letter-spacing: -.4px; font-weight: 700; }
.screen-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

/* ============================================================
   v1.2 — inline SVG icon system (replaces standard emoji)
   Sized to the current font (1em), inherits text color so it
   stays consistent across light/dark/high-contrast themes.
   ============================================================ */
.bq-ico {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.14em;
  flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.bq-ico.fill { fill: currentColor; stroke: none; }
.bq-ico-fill { fill: currentColor; stroke: none; }
.bq-ico-fill polygon, .bq-ico-fill path[fill] { fill: currentColor; stroke: none; }
.jd-val-ico { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.jd-val-ico .bq-ico { flex-shrink: 0; }
.bq-ico-lg { font-size: 1.5em; }
.bq-ico-xl { font-size: 2.1em; }
/* Icon used inside a leading badge (e.g. escrow lock, onboarding) */
.es-icon .bq-ico, .oh-emoji .bq-ico, .sched-ic .bq-ico, .photo-drop-icon .bq-ico { font-size: inherit; }
/* Slightly nudge inline icons that sit beside text in pills/buttons */
.meta-pill .bq-ico, .ps-chip .bq-ico, .job-chip .bq-ico, .sla-badge .bq-ico,
.trust-chip .bq-ico, .di-resolution .bq-ico { margin-right: 1px; }

/* ============================================================
   v1.2 — segmented tabs for the QueuePro dashboard
   ============================================================ */
.pro-tabs {
  display: flex; gap: 4px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  margin: 6px 0 16px;
}
.pro-tab {
  flex: 1; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted);
  padding: 9px 10px; border-radius: 999px; width: auto;
  transition: background .15s ease, color .15s ease;
}
.pro-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pro-tab-panel { animation: protabIn .25s ease; }
.pro-tab-panel[hidden] { display: none; }
@keyframes protabIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ——— QueueHost activity hub ——— */
.host-tab-panel { animation: protabIn .25s ease; }
.host-tab-panel[hidden] { display: none; }
.host-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 999px; background: var(--role, #276ef1); color: #fff;
  font-size: 10px; font-weight: 800;
}
.host-quotes-hub { display: flex; flex-direction: column; gap: 12px; }
.host-hub-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.host-hub-card.has-bids { border-color: color-mix(in srgb, var(--role, #276ef1) 35%, var(--line)); }
.host-hub-card.is-featured { border-width: 2px; border-color: var(--role, #276ef1); box-shadow: 0 8px 28px rgba(39, 110, 241, 0.12); }
.hub-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.hub-cat { font-size: 16px; display: block; margin-bottom: 4px; }
.hub-quote-count { font-size: 12px; font-weight: 700; color: var(--role, #276ef1); }
.hub-bidders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hub-bidder { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; background: var(--surface-2); border-radius: 999px; font-size: 12px; font-weight: 600; }
.hub-bidder-av { width: 28px; height: 28px; border-radius: 50%; background: var(--role-wash, #eef3fe); color: var(--role-ink, #1b4fd1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.hub-bidder-more { font-size: 12px; font-weight: 700; color: var(--muted); align-self: center; }
.hub-waiting { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.hub-actions { display: flex; flex-direction: column; gap: 8px; }
.hub-compare-btn, .hub-sideby-btn { width: 100%; }
.map-jump-card {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px;
  padding: 14px 16px; text-align: left; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); border-radius: 16px; font-family: inherit;
}
.map-jump-card:hover { border-color: color-mix(in srgb, var(--role, #276ef1) 40%, var(--line)); }
.map-jump-icon { font-size: 22px; color: var(--role, #276ef1); line-height: 1; }
.map-jump-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-jump-text strong { font-size: 14px; color: var(--ink, var(--black)); }
.map-jump-text span { font-size: 12px; color: var(--muted); }
.map-jump-chevron { font-size: 18px; color: var(--muted); }
.hub-group-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hub-group-chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: default; pointer-events: none; }
.hub-group-chip.active { background: var(--role-wash, #eef3fe); color: var(--role-ink, #1b4fd1); border-color: transparent; }
.host-job-card.has-bids { border-color: color-mix(in srgb, var(--role, #276ef1) 35%, var(--line)); }

/* Service category badge (job cards — matches wizard tile colors) */
.job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.svc-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--svc-bg, linear-gradient(155deg, #64748b, #334155));
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}
.svc-badge-icon .bq-ico,
.svc-badge-svg {
  width: 18px;
  height: 18px;
  color: #fff;
  stroke: #fff;
}
.svc-badge-icon .bq-ico:not(.bq-ico-fill) {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-badge-icon .bq-ico-fill path,
.svc-badge-icon .bq-ico .fill {
  fill: #fff;
  stroke: none;
}
.svc-badge-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.svc-badge--compact .svc-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.svc-badge--compact .svc-badge-label {
  font-size: 13px;
}
.job-top .svc-badge { flex: 1; min-width: 0; }
.job-top .urgency-tag { flex-shrink: 0; align-self: center; }
.referral-job-card .svc-badge { margin-bottom: 6px; }

/* Active job pill in top bar (right of profile initials) */
.topbar-pills { display: flex; align-items: center; gap: 8px; flex-shrink: 1; min-width: 0; }
.host-trip-top {
  flex: 0 1 auto; min-width: 0; max-width: min(220px, 42vw); padding: 0; border: none;
  background: none; cursor: pointer; font-family: inherit;
}
.host-trip-top.hidden { display: none; }
.host-trip-top .host-trip-pill {
  width: 100%; height: 34px; display: flex; align-items: center; gap: 6px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.host-trip-top.has-bids .host-trip-pill { border-left: 3px solid var(--role, #276ef1); }
.host-trip-top:active .host-trip-pill { transform: scale(.98); }
.host-trip-top .trip-avs { display: flex; flex-shrink: 0; }
.host-trip-top .trip-av {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -5px;
  border: 2px solid var(--surface); background: var(--role-wash, #eef3fe);
  color: var(--role-ink, #1b4fd1); font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.host-trip-top .trip-av:first-child { margin-left: 0; }
.host-trip-top .trip-text {
  flex: 1; min-width: 0; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.host-trip-top .trip-text strong { color: var(--ink); font-weight: 700; }
.host-trip-top .trip-chevron { flex-shrink: 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.host-trip-top .trip-pulse { width: 20px; flex-shrink: 0; display: flex; justify-content: center; }
.host-trip-top .trip-pulse .pulse { width: 8px; height: 8px; }

/* ============================================================
   v1.2 — "QueuePros near you" horizontal carousel (host home)
   ============================================================ */
.pros-list.pros-carousel {
  display: flex; flex-direction: row; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 10px; margin-top: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pros-list.pros-carousel::-webkit-scrollbar { display: none; }
.pro-cc {
  position: relative; flex: 0 0 auto; width: 150px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px 14px; cursor: pointer; scroll-snap-align: start;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
  font-family: inherit;
}
.pro-cc:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.pro-cc:active { transform: translateY(1px); }
.pcc-online {
  position: absolute; top: 10px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gray-400);
  box-shadow: 0 0 0 2px var(--surface);
}
.pcc-online.on { background: var(--accent); }
.pcc-avatar { width: 48px; height: 48px; font-size: 16px; }
.pcc-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcc-tier { display: inline-flex; }
.pcc-rating { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.pcc-rating.muted { color: var(--muted); font-weight: 600; }
.pcc-rating small { font-weight: 500; color: var(--muted); margin-left: 2px; }
.pcc-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pcc-dot { opacity: .5; margin: 0 1px; }
.pcc-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.pcc-verified.unverified { color: var(--muted); }
label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .05em; margin-bottom: 6px;
}

/* Brand lockup + minimal mark */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark,
.brand-mark-slot { width: 36px; height: auto; aspect-ratio: 270 / 300; flex-shrink: 0; display: block; }
.brand-mark-slot .brand-mark { width: 100%; }
.logo { font-size: 19px; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
.auth-hero { padding: 38px 0 24px; }
.auth-hero .brand-lg { justify-content: center; gap: 14px; }
.auth-hero .brand-lg .brand-mark,
.auth-hero .brand-lg .brand-mark-slot--hero { width: 56px; height: auto; }
.auth-hero h1 { font-size: 30px; line-height: 1; color: #276ef1; }
.auth-hero h1 span { color: #06c167; -webkit-text-fill-color: #06c167; }
.brand h1 { color: #276ef1; }
.brand h1 span { color: #06c167; -webkit-text-fill-color: #06c167; }

/* Inputs â€” softer lines + accent focus ring */
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; margin-bottom: 12px;
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #aab0bd; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}

/* Cards â€” single hairline + gentle elevation */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px;
}
.card:hover { box-shadow: var(--shadow-md); }

/* Buttons â€” consistent radius, lighter secondary */
.btn { border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.btn-sm { padding: 9px 13px; font-size: 13px; border-radius: 10px; }
.btn-secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--surface-2); }

/* Category chips wrap to multiple rows (no hidden/cut-off tags) */
.chip-row {
  flex-wrap: wrap; overflow-x: visible;
  gap: 8px; padding-bottom: 0; margin-bottom: 16px;
}

/* Chips & sort chips â€” calmer idle, accent active */
.chip, .sort-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip.active, .sort-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* Urgency â€” 1px line + tinted accent select (no heavy 2px) */
.urgency {
  border: 1px solid var(--line); border-radius: 12px; transition: .15s;
  background: var(--surface);
}
.urgency.active {
  border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink);
}
.urgency.active small { color: var(--accent-ink); opacity: .8; }

/* Quote cards â€” hairline + soft ring on state instead of thick border */
.quote-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.quote-card.selected { border-color: transparent; box-shadow: 0 0 0 2px var(--blue) inset; }
.quote-card.best {
  border-color: transparent; box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow-md);
  background: linear-gradient(180deg,#f4fdf8 0%, #fff 58%);
}

/* Meta pills â€” uniform pill shape */
.meta-pill {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; color: var(--muted); font-weight: 600;
}
.meta-pill.dist-pill { background: var(--accent-wash); color: var(--accent-ink); border-color: #c2ecd6; }

/* Job cards */
.job-item { border: 1px solid var(--line); border-radius: var(--radius); }
.job-item.selected { border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* Top bar + area picker */
.topbar { border-bottom: 1px solid var(--line); padding: 11px 16px; }
.area-picker { background: var(--surface-2); border: 1px solid var(--line); padding: 9px 14px; }
.area-picker-text { font-weight: 600; }
.user-pill {
  background: var(--ink); width: 34px; height: 34px;
  box-shadow: 0 2px 6px -2px rgba(15,23,42,.4);
}

/* Tabs */
.tabs { background: var(--surface-2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tab { border-radius: 9px; }
.tab.active { background: var(--surface); box-shadow: var(--shadow-sm); }

/* Auth test creds â€” calmer */
.test-creds { background: var(--accent-wash); border: 1px solid #c2ecd6; border-radius: 12px; }

/* Modal & area options */
.modal { border-radius: 22px 22px 0 0; }
.area-option { border: 1px solid var(--line); border-radius: 12px; transition: .15s; }
.area-option.active { border-color: var(--accent); background: var(--accent-wash); }

/* Bottom nav */
.bottom-nav { border-top: 1px solid var(--line); }
.nav-item svg { width: 21px; height: 21px; }

/* Status banner — ink gradient, fixed light text (not theme --white) */
.status-banner { border-radius: var(--radius); }

/* Toast */
.toast { background: var(--ink); box-shadow: 0 12px 30px -12px rgba(15,23,42,.5); }

/* Stat cards */
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); }

/* Section spacing polish */
.main { padding: 18px 16px 100px; }

/* â€”â€”â€” Photo-first request â€”â€”â€” */
.lbl-opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--gray-400); }
.photo-prompt { margin-bottom: 14px; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 20px 16px; border: 1.5px dashed #c9d3e6; border-radius: var(--radius);
  background: linear-gradient(180deg,#f7faff,#fff); cursor: pointer; transition: .15s;
}
.photo-drop:hover { border-color: var(--accent); background: var(--accent-wash); }
.photo-drop-icon { font-size: 26px; }
.photo-drop-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.photo-drop-sub { font-size: 12px; color: var(--muted); max-width: 260px; line-height: 1.4; }
.req-thumb { position: relative; }
.req-thumb .thumb-x {
  position: absolute; top: 3px; right: 3px; left: auto; bottom: auto;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.78); color: #fff; border-radius: 50%; font-size: 10px; padding: 0;
}
#req-photo-preview { margin-top: 10px; }
#req-photo-preview:empty { display: none; }

/* ============================================================
   NOTIFICATIONS + AT-A-GLANCE SUMMARIES (v12)
   ============================================================ */

/* Topbar bell */
.notif-bell {
  position: relative; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; padding: 0;
  transition: background .15s ease;
}
.notif-bell:hover { background: var(--accent-wash); }
.notif-bell svg { width: 19px; height: 19px; }
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #ef4444; color: #fff; border: 2px solid var(--surface);
  border-radius: 999px; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Notification dropdown panel */
.notif-panel {
  position: absolute; top: 60px; right: 12px; z-index: 80;
  width: min(360px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 14px;
}
.notif-mark {
  background: none; border: none; color: var(--accent);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-empty { padding: 22px 16px; font-size: 13px; color: var(--muted); text-align: center; }
.notif-item {
  width: 100%; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: none; border-bottom: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--accent-wash); }
.notif-item.unread:hover { background: #ddf6e8; }
.notif-ic { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.notif-text { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: #9aa3af; margin-top: 2px; }

/* At-a-glance summary strip */
.summary-strip {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.sum-card {
  flex: 1; min-width: 64px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: var(--shadow-sm);
}
.sum-card.green { background: var(--accent-wash); border-color: #c7efda; }
.sum-val { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.sum-card.green .sum-val { color: var(--money-green-ink, #065f46); }
.sum-lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* Status filter tabs â€” segmented control */
.filter-chips {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: var(--surface-2, #f1f5f9); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.filter-chip {
  flex: 1 1 0; min-width: max-content; white-space: nowrap;
  border: 0; background: transparent;
  color: var(--muted); border-radius: 9px; padding: 8px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.active {
  background: var(--surface, #fff);
  color: var(--role-ink, var(--ink));
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}
#app-screen .filter-chip.active { color: var(--role-ink, var(--ink)); }

/* Star rating bar on job cards */
.job-stars { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.job-stars .stars { color: #f5a524; letter-spacing: 1px; }
.job-stars .stars .empty { color: var(--line, #d1d5db); }
.job-stars .stars-num { color: var(--muted); font-weight: 700; }
.job-rate-hint { font-size: 12px; font-weight: 600; color: var(--role-ink, var(--ink)); }

/* Status pills (history) */
.status-pill {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 9px;
  border-radius: 999px; white-space: nowrap;
}
.status-pill.st-open { background: #eef2ff; color: #4f46e5; }
.status-pill.st-booked { background: #fff4e5; color: #b45309; }
.status-pill.st-done { background: var(--accent-wash); color: var(--money-green-ink, #065f46); }

/* Pro earnings card */
.earnings-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
  color: #fff; box-shadow: var(--shadow-md);
}
.earn-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.earn-label { font-size: 13px; color: #cbd5e1; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.earn-total { font-size: 26px; font-weight: 800; color: var(--money-green, #047857); letter-spacing: -.5px; }
.earn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.earn-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 4px; }
.earn-val { font-size: 16px; font-weight: 800; }
.earn-sub { font-size: 10.5px; color: #94a3b8; text-align: center; }
.earn-pill { background: var(--accent-wash) !important; color: var(--money-green-ink, #065f46) !important; font-weight: 700; border-color: #a7f3d0 !important; }
body.theme-dark .meta-pill.earn-pill,
body.ui-v2.theme-dark .meta-pill.earn-pill {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
}
body.theme-dark .sum-card.green .sum-val,
body.theme-dark .sum-card.green .sum-lbl,
body.ui-v2.theme-dark .sum-card.green .sum-val,
body.ui-v2.theme-dark .sum-card.green .sum-lbl {
  color: #22c55e;
}
body.ui-v2 .earnings-card .earn-val { color: #f8fafc; }
body.ui-v2 .earnings-card .earn-label { color: #cbd5e1; }
body.ui-v2 .earnings-card .earn-sub { color: #94a3b8; }
.job-history-card { margin-bottom: 12px; }

/* ============================================================
   ROLE THEMING â€” distinct color for QueueHost vs QueuePro (v13)
   Host = blue (demand side) Â· Pro = green (supply / earnings)
   ============================================================ */
#app-screen.role-host { --role: #276ef1; --role-wash: #eef3fe; --role-ink: #1b4fd1; }
#app-screen.role-pro  { --role: #06c167; --role-wash: #e9faf1; --role-ink: #065f46; }

/* Top accent strip signals which side you're on */
#app-screen .topbar { border-top: 3px solid var(--role, transparent); }

/* Keep the top bar from overflowing: fixed controls never shrink,
   the area picker absorbs the remaining space. */
#app-screen .topbar-row { gap: 8px; }
#app-screen .brand { flex-shrink: 0; }
#app-screen .area-picker { flex: 1 1 auto; min-width: 0; overflow: hidden; }
#app-screen .area-picker > div { min-width: 0; flex: 1 1 auto; overflow: hidden; }
#app-screen .area-picker-text,
#app-screen .area-picker-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#app-screen .notif-bell,
#app-screen .topbar-pills,
#app-screen .user-pill { flex-shrink: 0; }

/* Role badge in the top bar â€” compact, professional */
.role-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .3px;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap; line-height: 1;
  background: var(--role-wash, var(--surface-2)); color: var(--role-ink, var(--ink));
  border: 1px solid color-mix(in srgb, var(--role, #999) 26%, transparent);
}

/* Primary actions + active nav adopt the role color */
#app-screen .btn-primary { background: var(--role, var(--ink)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--role, #111) 70%, transparent); }
#app-screen .btn-primary:hover { background: var(--role-ink, #222); }
#app-screen .nav-item.active { color: var(--role-ink, var(--ink)); }
#app-screen .nav-item.active::before { background: var(--role, var(--green)); }

/* Subtle role-colored accent bar on section titles (aligned, no overhang) */
#app-screen .screen-title {
  position: relative; padding-left: 13px; margin-left: 0;
}
#app-screen .screen-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 3px; background: var(--role, transparent);
}

/* User pill ring hints the role */
#app-screen .user-pill { box-shadow: 0 0 0 2px var(--role-wash), 0 2px 6px -2px rgba(15,23,42,.4); }

/* Stat numbers + summary accents follow the role color for cohesion */
#app-screen .stat-num { background: linear-gradient(135deg, var(--ink), var(--role, #2563eb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#app-screen .sum-card.green { background: var(--role-wash); border-color: color-mix(in srgb, var(--role, #06c167) 24%, transparent); }
#app-screen .sum-card.green .sum-val { color: var(--role-ink); }

/* ============================================================
   APPEAL POLISH (v16) â€” crisper logo, refined location pill,
   softer elevation, more premium feel
   ============================================================ */

/* Logo mark: gentle depth so it reads as a real app icon */
/* Map: no direct pros — widen / peer network */
.map-service-bar {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.map-service-bar .map-service-switch,
.wizard-service-wrap .wizard-service-switch {
  width: 100%;
}
.wizard-service-wrap {
  margin: 0 0 14px;
}
.map-coverage-panel {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.map-coverage-panel .map-service-switch {
  width: 100%;
  margin-bottom: 4px;
}
.map-network-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.map-referral-section {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warn, #f59e0b) 35%, var(--line));
  background: color-mix(in srgb, var(--warn, #f59e0b) 8%, var(--surface-2));
}
.map-referral-head {
  margin: 0 0 6px;
  font-size: 14px;
}
.map-referral-sub {
  margin: 0 0 10px;
  line-height: 1.45;
}
.map-referral-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-network-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.map-network-list .pro-cc {
  width: 100%;
  text-align: left;
}
.pro-cc-network {
  border-color: color-mix(in srgb, var(--role, #276ef1) 35%, var(--line));
  background: color-mix(in srgb, var(--role-wash, #eef3fe) 55%, var(--surface));
}
.pcc-peer-badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--role-ink, #1b4fd1);
  margin: 2px 0;
}
.pcc-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 4px;
}
.peer-ref-ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}

/* Booked QueuePro association + referral network */
.booked-pro-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
}
.booked-pro-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--role-wash, #eef3fe);
  color: var(--role-ink, #1b4fd1);
  flex-shrink: 0;
}
.booked-pro-banner strong { display: block; font-size: 15px; }
.booked-pro-banner .media-hint { margin: 2px 0 0; font-size: 12px; }
.referral-stack { display: flex; flex-direction: column; gap: 16px; }
.referral-job-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.referral-job-card.needs-ref {
  border-color: color-mix(in srgb, var(--warn, #facc15) 55%, var(--line));
  background: color-mix(in srgb, var(--warn, #facc15) 8%, var(--surface-2));
}
.referrals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}
.referrals-list-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.referral-entry-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.referral-entry-card + .referral-entry-card {
  margin-top: 0;
}
.referral-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.referral-entry-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-wash, #eef3fe) 90%, var(--surface));
  color: var(--role-ink, #1b4fd1);
  border: 1px solid color-mix(in srgb, var(--role-ink, #1b4fd1) 25%, var(--line));
}
.referral-entry-kind {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.referral-entry-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.25;
}
.referral-entry-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.referral-entry-note {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border-left: 3px solid var(--role-ink, #1b4fd1);
}
.referral-entry-contact {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
.referral-entry-by {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.referral-item {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px dashed var(--line);
  font-size: 13px;
}
.host-supply-guide {
  margin: 12px 0 16px;
  border: 2px solid color-mix(in srgb, var(--brand, #2563eb) 35%, var(--line));
  background: color-mix(in srgb, var(--brand, #2563eb) 6%, var(--surface-2));
}
.host-supply-guide h3 { margin: 0 0 8px; font-size: 16px; }
.supply-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.supply-step:last-child { border-bottom: none; padding-bottom: 0; }
.supply-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.supply-step.done .supply-step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.supply-step.active .supply-step-num {
  border-color: var(--brand, #2563eb);
  color: var(--brand, #2563eb);
}
.host-referral-alert {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--green) 50%, var(--line));
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
}
.host-referral-alert strong { display: block; margin-bottom: 4px; }

/* Pro referral feed — distinct post cards */
.referral-feed { gap: 20px; }
.referral-post-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 18px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.referral-post-card + .referral-post-card {
  margin-top: 4px;
}
.referral-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.referral-post-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn, #facc15) 22%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--warn, #facc15) 45%, var(--line));
}
.referral-post-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}
.referral-post-body {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.referral-post-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}
.referral-post-form input,
.referral-post-form select,
.referral-post-form textarea {
  width: 100%;
  margin-bottom: 8px;
}
.prebook-inquiry-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.prebook-thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.prebook-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 92%;
}
.prebook-msg.pro { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.prebook-msg.host { align-self: flex-end; background: color-mix(in srgb, var(--role-wash, #eef3fe) 80%, var(--surface)); border: 1px solid var(--line); }
.prebook-msg .pb-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.prebook-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.prebook-chip { font-size: 12px; padding: 6px 10px; }
.quote-card.booked-winner { box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 55%, transparent); }
.qc-col.booked-winner { outline: 2px solid color-mix(in srgb, var(--green) 50%, transparent); outline-offset: 2px; border-radius: 12px; }
.booked-pro-inline { font-size: 13px; color: var(--green); font-weight: 600; }
.host-job-card.is-booked { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.job-booked-card { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }

/* Logo shadow: theme-aware in logo-anim.css */
.logo { letter-spacing: -.5px; }

/* Brand wordmark — host blue + pro green (override ui-v2 / gradient leftovers) */
.wordmark-bid,
.auth-hero h1 .wordmark-bid,
.logo.wordmark .wordmark-bid {
  color: #276ef1 !important;
  -webkit-text-fill-color: #276ef1 !important;
  background: none !important;
}
.wordmark-queue,
.auth-hero h1 .wordmark-queue,
.logo.wordmark .wordmark-queue {
  color: #06c167 !important;
  -webkit-text-fill-color: #06c167 !important;
}
body.ui-v2.theme-dark .auth-hero h1 .wordmark-bid,
body.ui-v2.theme-dark .topbar .wordmark-bid {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
}
body.ui-v2.theme-dark .auth-hero h1 .wordmark-queue,
body.ui-v2.theme-dark .topbar .wordmark-queue {
  color: #34d399 !important;
  -webkit-text-fill-color: #34d399 !important;
}

/* Top bar: clean translucent surface (compact padding in block below) */
#app-screen .topbar { backdrop-filter: saturate(1.4) blur(10px); }

/* Location pill: compact, tactile, role-aware. Pin picks up the role color
   so the location reads as "your area" without shouting. */
#app-screen .area-picker {
  gap: 9px; padding: 8px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#app-screen .area-picker:hover {
  border-color: color-mix(in srgb, var(--role, #94a3b8) 40%, var(--line));
  box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--role, #111) 55%, transparent);
}
#app-screen .area-picker:active { transform: translateY(1px); }
#app-screen .area-picker > svg { color: var(--role, var(--gray-500)); }
#app-screen .area-picker-text { font-size: 13.5px; line-height: 1.15; }
#app-screen .area-picker-sub { font-size: 10.5px; line-height: 1.2; margin-top: 1px; }

/* Logged-in chrome: hide BidQueue lockup, tighter top + bottom bars */
#app-screen .topbar .brand { display: none !important; }
#app-screen.app-shell { padding-bottom: 54px; }
#app-screen .topbar { padding: 5px 10px 6px; }
#app-screen .topbar-row { padding-top: 0; padding-bottom: 0; gap: 6px; }
#app-screen .area-picker { padding: 5px 10px; gap: 7px; border-radius: 11px; }
#app-screen .area-picker > svg { width: 16px; height: 16px; }
#app-screen .area-picker-text { font-size: 13px; line-height: 1.1; }
#app-screen .area-picker-sub { font-size: 10px; line-height: 1.15; margin-top: 0; }
#app-screen .role-badge { font-size: 9px; padding: 3px 6px; }
#app-screen .notif-bell { width: 32px; height: 32px; }
#app-screen .notif-bell svg { width: 17px; height: 17px; }
#app-screen .user-pill { width: 30px; height: 30px; font-size: 11px; }
#app-screen .topbar-pills { gap: 6px; }
#app-screen .host-trip-top .host-trip-pill { height: 30px; padding: 0 8px; gap: 5px; }
#app-screen .host-trip-top .trip-av { width: 20px; height: 20px; font-size: 7px; }
#app-screen .host-trip-top .trip-text { font-size: 10px; }
#app-screen .main { padding: 12px 14px 62px; }
#app-screen .bottom-nav { padding: 3px 2px calc(3px + env(safe-area-inset-bottom)); }
#app-screen .nav-item { padding: 3px 2px; gap: 2px; font-size: 9px; }
#app-screen .nav-item svg { width: 19px; height: 19px; }
#app-screen .nav-item.active::before { width: 20px; height: 2px; }

/* Summary + earnings cards: softer corners and a faint lift */
.summary-strip .sum-card,
.earnings-card {
  border-radius: 16px;
  box-shadow: 0 6px 18px -14px rgba(15,23,42,.35);
}

/* Buttons: a hair rounder for a friendlier, modern silhouette */
#app-screen .btn-primary { border-radius: 13px; }

/* ============================================================
   v18 â€” Guest browsing, QueuePro cards, PWA install, sponsored parts
   ============================================================ */

/* Ghost button (auth screen secondary actions) */
.btn-ghost {
  background: transparent; color: var(--ink, #0f172a);
  border: 1px solid var(--line, #ececf1);
}
.btn-ghost:hover { background: var(--surface-2, #f7f8fa); }

/* Guest banner */
.guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--role-wash, #eef3fe);
  border: 1px solid color-mix(in srgb, var(--role, #276ef1) 24%, transparent);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
}
.guest-banner--app {
  margin: 10px 16px 12px;
  max-width: calc(var(--app-max, 480px) - 32px);
  margin-left: auto;
  margin-right: auto;
}
.guest-banner-copy { flex: 1; min-width: 0; }
.guest-banner strong { display: block; font-size: 13.5px; }
.guest-banner span { font-size: 12px; color: var(--muted); }
.guest-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.guest-banner .btn { flex-shrink: 0; white-space: nowrap; }
.guest-top-exit {
  flex-shrink: 0;
  font-weight: 700;
  padding: 6px 10px;
}
.guest-top-exit.hidden { display: none; }
.user-pill.guest-pill-exit {
  cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--role, #276ef1) 45%, transparent);
}
.user-pill.guest-pill-exit:hover { opacity: 0.9; }

/* QueuePros-near-you list + cards */
.pros-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pros-list-head .map-hint { font-size: 11px; color: var(--muted); }
.pros-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pro-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px;
  background: var(--surface); box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.05));
  transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
  cursor: pointer;
}
.pro-card:hover {
  box-shadow: 0 12px 28px -18px rgba(15,23,42,.4);
  border-color: color-mix(in srgb, var(--role, #94a3b8) 30%, var(--line));
}
.pro-card:active { transform: translateY(1px); }
.pro-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pro-avatar {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--role-wash, #eef3fe); color: var(--role-ink, #1b4fd1);
}
.pro-card-info { min-width: 0; }
.pro-card-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pro-online { font-size: 10.5px; font-weight: 700; }
.pro-online.on { color: var(--accent, #06c167); }
.pro-online.off { color: var(--muted); }
.pro-card-info .quote-tags { margin: 5px 0 0; }
.pro-stat-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ps-chip {
  font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--surface-2, #f1f5f9); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.ps-chip.muted { color: var(--muted); }
.pro-card .pro-view { flex-shrink: 0; }
.pro-area-name { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Widen-search-area control (host + pro) */
.radius-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.radius-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 2px; }
.radius-chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--surface-2, #f1f5f9); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.radius-chip:hover { border-color: var(--role, #94a3b8); }
.radius-chip.active {
  background: var(--role, var(--accent)); border-color: var(--role, var(--accent));
  color: #fff;
}

/* Sponsored verified-parts suggestions inside chat */
.parts-suggest {
  align-self: stretch; margin: 4px 0 10px;
  border: 1px dashed color-mix(in srgb, var(--accent, #06c167) 45%, var(--line));
  border-radius: 14px; padding: 10px; background: var(--accent-wash, #e9faf1);
}
.parts-suggest-head {
  font-size: 11.5px; font-weight: 700; color: var(--accent-ink, #057a43);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.parts-spon {
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent, #06c167); color: #fff; padding: 2px 6px; border-radius: 6px;
}
.parts-card {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  background: var(--surface, #fff); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px; margin-bottom: 7px;
  transition: box-shadow .15s ease, transform .12s ease;
}
.parts-card:last-child { margin-bottom: 0; }
.parts-card:hover { box-shadow: 0 10px 22px -16px rgba(15,23,42,.45); }
.parts-card:active { transform: translateY(1px); }
.parts-emoji { font-size: 22px; flex-shrink: 0; }
.parts-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.parts-name { font-size: 13px; font-weight: 700; }
.parts-co { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.parts-vtag { color: var(--accent-ink, #057a43); font-weight: 700; }
.parts-blurb { font-size: 11px; color: var(--muted); margin-top: 2px; }
.parts-cta { font-size: 13px; font-weight: 800; color: var(--accent-ink, #057a43); white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   New features & accessibility (v23)
   ============================================================ */

/* Larger primary tap targets (min ~48px) + readable labels */
.btn-lg { padding: 16px 20px; font-size: 16px; min-height: 52px; }
.big-label { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--gray-800); font-weight: 700; margin-top: 4px; }
.lbl-opt { font-weight: 400; color: var(--gray-600); text-transform: none; }
.demo-chip { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #ede9fe; color: #6d28d9; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.help-tip { font-size: 11px; font-weight: 700; color: var(--blue); cursor: help; text-transform: none; letter-spacing: 0; margin-left: 6px; border-bottom: 1px dotted var(--blue); }

/* Onboarding hint */
.onboard-hint { display: flex; align-items: flex-start; gap: 12px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.checklist-card { margin-bottom: 14px; }
.quick-replies.hidden { display: none !important; }
.phone-access-url {
  font-size: 15px; font-weight: 800; color: var(--role-ink, #1b4fd1);
  word-break: break-all; margin: 10px 0 0;
}
.phone-qr-wrap {
  display: inline-flex; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.phone-qr-wrap img { display: block; border-radius: 8px; }
.oh-emoji { font-size: 24px; }
.oh-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.oh-text strong { font-size: 14px; }
.oh-text span { font-size: 13px; color: var(--gray-600); line-height: 1.4; }
.oh-close { background: none; border: none; font-size: 16px; color: var(--gray-400); cursor: pointer; padding: 4px; }

/* Surge banner */
.surge-banner { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 13px; line-height: 1.4; }
.surge-dot { width: 10px; height: 10px; border-radius: 50%; background: #f97316; flex-shrink: 0; animation: pulse 1.5s infinite; }

/* Wizard */
.wizard { margin-bottom: 18px; }
.wizard-steps { display: flex; gap: 4px; margin-bottom: 18px; }
.wstep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.wstep-num { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; border: 2px solid var(--gray-200); }
.wstep-lbl { font-size: 11px; font-weight: 600; color: var(--gray-600); }
.wstep.active .wstep-num { background: var(--black); color: #fff; border-color: var(--black); }
.wstep.active .wstep-lbl { color: var(--black); }
.wstep.done .wstep-num { background: var(--green); color: #fff; border-color: var(--green); }
.wizard-page { display: none; animation: fadein .2s ease; }
.wizard-page.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wiz-q { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.wiz-cat-tag { font-size: 13px; font-weight: 700; color: var(--green); }
.wizard-top-nav {
  display: flex;
  align-items: center;
  margin: -6px 0 12px;
}
.wizard-back-top {
  font-weight: 700;
  padding-left: 0;
}
.wiz-selected-service {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2, #f4f4f5);
  border: 1px solid var(--line, #e4e4e7);
}
.wiz-selected-service.hidden {
  display: none !important;
}
.wiz-svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.wiz-svc-icon .bq-ico,
.wiz-svc-svg {
  width: 26px;
  height: 26px;
  color: #fff;
  stroke: #fff;
}
.wiz-svc-icon .bq-ico:not(.bq-ico-fill) {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wiz-svc-icon .bq-ico path:not(.fill) {
  stroke: #fff;
  fill: none;
}
.wiz-svc-icon .bq-ico-fill path,
.wiz-svc-icon .bq-ico .fill {
  fill: #fff;
  stroke: none;
}
.wiz-svc-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink, #111);
  line-height: 1.25;
}
.wiz-svc-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #64748b);
  margin-left: auto;
  white-space: nowrap;
}
.wiz-nav-forward-only {
  justify-content: stretch;
}

/* Selected-service shown as a tappable, service-tile-styled card. */
.wiz-selected-service { padding: 0; background: none; border: none; }
.wiz-svc-tile {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background-image: var(--tile-bg); background-color: #475569; border: none;
  color: #fff; box-shadow: 0 6px 16px -8px rgba(15,23,42,.5);
}
.wiz-svc-tile:active { transform: scale(.99); }
.wiz-svc-tile-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: rgba(255,255,255,.18);
}
.wiz-svc-tile-svg, .wiz-svc-tile-icon .bq-ico { width: 22px; height: 22px; color: #fff; stroke: #fff; }
.wiz-svc-tile-icon .bq-ico:not(.bq-ico-fill) { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wiz-svc-tile-icon .bq-ico-fill path, .wiz-svc-tile-icon .bq-ico .fill { fill: #fff; stroke: none; }
.wiz-svc-tile-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wiz-svc-tile-label { font-size: 16px; font-weight: 800; color: #fff; }
.wiz-svc-tile .wiz-svc-price { color: rgba(255,255,255,.85); margin-left: 0; }
.wiz-svc-tile-change { font-size: 13px; font-weight: 700; color: #fff; opacity: .9; flex: none; }
.wiz-help { font-size: 13px; color: var(--gray-600); margin-bottom: 14px; line-height: 1.4; }
.wiz-nav { display: flex; gap: 10px; margin-top: 16px; }
.wiz-nav .btn { flex: 1; }

/* Intake fields */
.intake-fields { margin-bottom: 8px; width: 100%; }
.intake-head { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; text-align: center; }
.intake-field { margin-bottom: 8px; }
.v2-intake-details .v2-intake-body { padding: 14px 16px 16px; box-sizing: border-box; }
.v2-intake-details .intake-fields { margin-left: auto; margin-right: auto; }
.field-help { display: block; font-size: 12px; color: var(--gray-600); margin: -2px 0 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.intake-none { padding: 4px 0 8px; }
.bool-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.bool-btn { flex: 1; padding: 14px; border-radius: var(--radius); border: 2px solid var(--gray-200); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 48px; }
.bool-btn.active { border-color: var(--black); background: var(--gray-50); }

/* Schedule options */
.schedule-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sched-opt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--gray-200); background: #fff; cursor: pointer; min-height: 56px; }
.sched-opt.active { border-color: var(--black); background: var(--gray-50); }
.sched-ic { font-size: 18px; }
.sched-t { font-weight: 800; font-size: 15px; }
.sched-opt small { color: var(--gray-600); font-size: 12px; }
.schedule-pick { margin-bottom: 14px; }

/* AI estimate */
.btn-ai { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; margin: 6px 0 4px; min-height: 50px; }
.ai-result { border: 1px solid #ddd6fe; background: #faf5ff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.ai-loading { color: #6d28d9; font-weight: 600; }
.ai-head { font-weight: 800; color: #6d28d9; margin-bottom: 10px; }
.ai-grid { display: flex; gap: 10px; margin-bottom: 8px; }
.ai-grid > div { flex: 1; display: flex; flex-direction: column; }
.ai-num { font-size: 16px; font-weight: 800; }
.ai-lbl { font-size: 11px; color: var(--gray-600); }
.ai-rationale { font-size: 12px; color: var(--gray-600); line-height: 1.4; margin-bottom: 8px; }

/* Review summary */
.review-summary { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 12px; }
.rs-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.rs-row:last-child { border-bottom: none; }
.rs-row span { color: var(--gray-600); }
.save-template-row { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--gray-800); margin-bottom: 12px; }
.save-template-row input { width: auto; margin: 0; }

/* Templates */
.templates-row { margin: 6px 0 16px; }
.tr-head { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.templates-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.template-chip { position: relative; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 10px 30px 10px 12px; cursor: pointer; min-width: 150px; }
.tpl-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--green); }
.tpl-name { font-size: 13px; font-weight: 600; }
.tpl-go { font-size: 11px; color: var(--blue); font-weight: 700; }
.tpl-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: var(--gray-400); font-size: 12px; cursor: pointer; padding: 2px; width: auto; }

/* Saved pros */
.saved-pros-card { background: #fffdf5; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px; }

/* Match / SLA / fraud pills */
.match-pill { background: #ecfdf5; border-color: #6ee7b7 !important; color: #047857; font-weight: 700; }
.sla-badge { display: inline-block; font-size: 11px; font-weight: 700; background: #eff6ff; color: #1d4ed8; padding: 3px 8px; border-radius: 999px; }
.fraud-flag { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 9px; margin-bottom: 8px; }
.best-tag { background: var(--green); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pick-tag { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; margin-left: 6px; color: #fff; }
.pick-tag--value { background: #2563eb; }
.pick-tag--fast { background: #a855f7; }

/* Drawer actions / favorites / instant */
.drawer-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.drawer-actions .btn { flex: 1; }
.fav-toggle.active { background: #fef3c7; color: #92400e; }

/* Verification trail */
.verify-trail { margin: 8px 0 12px; }
.vtrail { display: flex; flex-direction: column; gap: 2px; }
.vtrail-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.vtrail-row:last-child { border-bottom: none; }
.vtrail-ic { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--gray-100); color: var(--gray-400); flex-shrink: 0; }
.vtrail-row.complete .vtrail-ic { background: var(--green); color: #fff; }
.vtrail-row.in_review .vtrail-ic { background: #fbbf24; color: #fff; }
.vtrail-main { flex: 1; display: flex; flex-direction: column; }
.vtrail-label { font-size: 13px; font-weight: 600; }
.vtrail-prov { font-size: 11px; color: var(--gray-600); }
.vtrail-status { font-size: 11px; font-weight: 700; text-transform: capitalize; color: var(--gray-600); }
.flag-review-btn { background: none; border: none; color: var(--gray-400); font-size: 11px; cursor: pointer; padding: 4px 0; text-decoration: underline; width: auto; }

/* Job details block (pro/host) */
.job-details-card .job-details { margin: 0; }
.job-details { margin-bottom: 8px; }
.jd-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.jd-row:last-child { border-bottom: none; }
.jd-label { color: var(--gray-600); }
.jd-val { font-weight: 700; text-align: right; }
.sched-reminder { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: #1e40af; margin-bottom: 12px; }

/* Referral / loyalty / promo */
.referral-card { background: linear-gradient(135deg, #f0fdf4, #eff6ff); }
.referral-code-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.referral-code-row code { flex: 1; font-size: 18px; font-weight: 800; letter-spacing: 2px; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 10px; padding: 12px; text-align: center; }
.loyalty-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gray-50); border-radius: 10px; padding: 10px 12px; }
.loyalty-tier { font-weight: 800; color: #b45309; background: #fef3c7; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.loyalty-benefit { font-size: 12px; color: var(--gray-600); flex: 1; }
.loyalty-pts { font-weight: 800; font-size: 13px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { margin-bottom: 0; }
.promo-row .btn { flex-shrink: 0; }
.available-promos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.promo-pill { font-size: 12px; font-weight: 700; background: #fff; border: 1px dashed var(--green); color: #047857; border-radius: 999px; padding: 6px 12px; cursor: pointer; width: auto; }

/* Disputes / resolution center */
.disputes-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dispute-item { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px; }
.di-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.di-reason { font-size: 12px; color: var(--gray-600); margin-top: 4px; text-transform: capitalize; }
.di-detail { font-size: 13px; margin-top: 6px; }
.di-resolution { font-size: 12px; color: #047857; margin-top: 6px; font-weight: 600; }
.evidence-note { font-size: 12px; color: var(--gray-600); background: var(--gray-50); border-radius: 10px; padding: 10px; margin-bottom: 12px; line-height: 1.4; }

/* Masked / instant modals */
.masked-body { text-align: center; margin-bottom: 14px; }
.masked-num { font-size: 26px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.masked-pin { font-size: 14px; margin-bottom: 10px; }
.masked-prov { font-size: 11px; color: var(--gray-400); margin-top: 8px; }
.instant-price-note { background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; color: #065f46; }

/* Status pill colors reused */
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill.st-open { background: #eff6ff; color: #1d4ed8; }
.status-pill.st-booked { background: #fef9c3; color: #854d0e; }
.status-pill.st-done { background: #dcfce7; color: #166534; }

/* ============================================================
   UX/UI v2 POLISH LAYER (v24)
   First-run onboarding, checklist nudge, settings (dark mode +
   accessibility), skeleton loaders, status timeline, quote
   compare, FAB + rebook, chat polish, escrow explainer.
   Built on the design tokens above so dark mode adapts cleanly.
   ============================================================ */

/* ---- Accessible focus states (WCAG keyboard nav) ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.sort-chip:focus-visible,
.nav-item:focus-visible,
.quick-reply:focus-visible,
.area-picker:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- First-run onboarding overlay ---- */
.onboard-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 14, 26, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ob-card {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 420px; padding: 26px 22px 20px;
  box-shadow: 0 30px 70px -20px rgba(15,23,42,.55);
  text-align: center; position: relative;
}
.ob-skip {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; width: auto;
}
.ob-slide { display: none; }
.ob-slide.active { display: block; animation: ob-fade .28s ease; }
@keyframes ob-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ob-icon {
  width: 72px; height: 72px; border-radius: 22px; margin: 6px auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: var(--accent-wash); color: var(--accent-ink);
}
.ob-title { font-size: 21px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.ob-body { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 6px; }
.ob-dots { display: flex; gap: 7px; justify-content: center; margin: 18px 0 16px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: .2s; }
.ob-dot.active { background: var(--accent); width: 22px; border-radius: 999px; }
.ob-nav { display: flex; gap: 10px; }
.ob-nav .btn { flex: 1; }

/* ---- Home checklist / progress nudge ---- */
.checklist-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-wash), var(--surface) 70%);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.cl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cl-bar { height: 6px; border-radius: 999px; background: rgba(100,116,139,.22); overflow: hidden; margin: 0 0 12px; }
.cl-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--green, #06c167); transition: width .3s ease; }
.cl-head strong { font-size: 14.5px; }
.cl-progress { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.cl-close { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; width: auto; padding: 0 2px; }
.cl-items { display: flex; flex-direction: column; gap: 8px; }
.pro-setup-checklist { margin-bottom: 16px; }
.cl-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; background: none; border: none; text-align: left; width: 100%; cursor: pointer; padding: 2px 0; color: var(--ink); }
.cl-item .cl-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent;
}
.cl-item.done .cl-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-item.done .cl-label { color: var(--muted); text-decoration: line-through; }
.cl-item .cl-go { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---- Settings card (Profile): theme + accessibility ---- */
.settings-card .setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.settings-card .setting-row:last-child { border-bottom: none; }
.setting-text { display: flex; flex-direction: column; gap: 2px; }
.setting-text strong { font-size: 14px; font-weight: 700; }
.setting-text span { font-size: 12px; color: var(--muted); }
.toggle-switch {
  flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; border: none;
  background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; padding: 0;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.toggle-switch[aria-checked="true"] { background: var(--accent); }
.toggle-switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---- Skeleton loaders ---- */
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.skel-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px;
  background: var(--surface);
}
.skel-line, .skel-pill, .skel-block {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: skel-shimmer 1.4s ease infinite; border-radius: 8px;
}
.skel-line { height: 12px; margin-bottom: 9px; }
.skel-line.short { width: 45%; }
.skel-line.mid { width: 70%; }
.skel-pill { height: 22px; width: 70px; border-radius: 999px; display: inline-block; margin-right: 8px; }
.skel-block { height: 54px; }
.skel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.skel-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skel-shimmer 1.4s ease infinite; }
@keyframes skel-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- Friendly empty states ---- */
.empty-state {
  text-align: center; padding: 30px 18px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface-2); margin: 6px 0;
}
.empty-state .es-icon { font-size: 34px; display: block; margin-bottom: 10px; }
.empty-state .es-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.empty-state .es-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.empty-state .btn { width: auto; }

/* ---- Job status timeline ---- */
.status-timeline {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 6px;
  background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.st-head { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.st-track { display: flex; flex-direction: column; }
.st-node { display: flex; gap: 12px; position: relative; }
.st-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.st-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent; z-index: 1; transition: .2s;
}
.st-line { width: 2px; flex: 1; min-height: 18px; background: var(--line-strong); }
.st-node:last-child .st-line { display: none; }
.st-node.done .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-node.done .st-line { background: var(--accent); }
.st-node.current .st-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.st-node.current .st-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.st-body { padding-bottom: 14px; }
.st-node:last-child .st-body { padding-bottom: 0; }
.st-label { font-size: 14px; font-weight: 700; line-height: 1.2; }
.st-node.future .st-label { color: var(--muted); font-weight: 600; }
.st-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.st-node.current .st-label { color: var(--accent-ink); }

/* ---- Quote summary + grouping + table compare ---- */
.quote-summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.qs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qs-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qs-num { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.qs-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.qs-div { width: 1px; height: 28px; background: var(--line); flex-shrink: 0; }
.qs-rec .qs-num { font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }

.quote-group-bar {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px;
  scrollbar-width: none;
}
.quote-group-bar::-webkit-scrollbar { display: none; }
.quote-group-chip {
  flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer;
}
.quote-group-chip.active { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); }

.qc-group-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 4px 0 8px; width: 100%;
}
.qc-group-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; width: 100%; }

.quote-table-wrap { overflow-x: auto; margin-bottom: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.quote-table th, .quote-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.quote-table th:first-child, .quote-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.quote-table thead th { background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.quote-table .qt-metric { font-weight: 700; color: var(--muted); white-space: nowrap; }
.quote-table .qt-rec-col { background: var(--accent-wash); }
.quote-table .qt-name { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.quote-table .qt-rec-badge { display: inline-block; font-size: 10px; font-weight: 800; color: var(--accent-ink); margin-bottom: 4px; }
.quote-table .qt-best { background: rgba(43,209,126,.12); font-weight: 800; color: var(--accent-ink); }
.quote-table .qt-booked { font-size: 12px; font-weight: 700; color: var(--accent-ink); }

body.theme-dark .quote-summary { background: var(--surface); border-color: var(--line); }
body.theme-dark .quote-table th:first-child, body.theme-dark .quote-table td:first-child { background: var(--surface); }
body.theme-dark .quote-table .qt-rec-col { background: rgba(43,209,126,.1); }
body.theme-dark .quote-table .qt-best { background: rgba(43,209,126,.15); }

.compare-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.compare-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.compare-toggle button { background: none; border: none; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); width: auto; }
.compare-toggle button.active { background: var(--ink); color: #fff; }
.quote-compare {
  scroll-margin-top: 80px;
  display: block;
  margin-bottom: 14px;
  width: 100%;
}
.qc-compare-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 4px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.qc-compare-row::-webkit-scrollbar { height: 6px; }
.qc-col {
  flex: 0 0 clamp(200px, 72vw, 260px);
  min-width: 200px;
  max-width: 280px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 13px 12px;
  background: var(--surface); position: relative; display: flex; flex-direction: column; gap: 9px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}
.qc-col.recommended { border-color: transparent; box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow-md); background: linear-gradient(180deg, var(--accent-wash), var(--surface) 60%); }
.qc-rec-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .03em; z-index: 1; }
.qc-name { font-size: 15px; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.qc-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.qc-metric { display: flex; justify-content: space-between; font-size: 12.5px; }
.qc-metric .qc-k { color: var(--muted); }
.qc-metric .qc-v { font-weight: 700; }
.qc-why { font-size: 12px; color: var(--accent-ink); background: var(--accent-wash); border-radius: 8px; padding: 7px 9px; line-height: 1.4; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.trust-chip { font-size: 10.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 3px 8px; }
.trust-chip.ok { background: var(--accent-wash); color: var(--accent-ink); border-color: #c2ecd6; }
.qc-col .btn { margin-top: auto; }

/* ---- Post-a-job FAB (hosts) ---- */
.fab {
  position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: 86px; z-index: 70;
  height: 52px; padding: 0 20px 0 18px; border: none; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 12px 26px -8px rgba(6,193,103,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -8px rgba(6,193,103,.7); }
.fab svg { width: 20px; height: 20px; }
.fab:active { transform: scale(.97); }

/* ---- Rebook last pro shortcut ---- */
.rebook-card {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.rebook-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.rebook-info { flex: 1; min-width: 0; }
.rebook-info .rb-t { font-size: 13.5px; font-weight: 700; }
.rebook-info .rb-s { font-size: 12px; color: var(--muted); }
.rebook-card .btn { flex-shrink: 0; width: auto; }

/* ---- Bottom-nav unread badge ---- */
.nav-item { position: relative; }
.nav-badge {
  position: absolute; top: 4px; right: 50%; transform: translateX(16px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---- Chat polish: quick replies, typing, receipts, inline cards ---- */
.quick-replies { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0; }
.quick-reply {
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 7px 13px; cursor: pointer; width: auto; white-space: nowrap;
}
.quick-reply:hover { background: var(--accent-wash); border-color: #c2ecd6; color: var(--accent-ink); }
.msg-bubble .msg-receipt { font-size: 10px; color: var(--muted); margin-top: 3px; text-align: right; }
.msg-bubble.mine .msg-receipt { color: rgba(255,255,255,.75); }
.typing-indicator { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---- Escrow explainer (booking) ---- */
.escrow-explainer {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid #c2ecd6;
  background: var(--accent-wash); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 12px;
}
.escrow-explainer .ee-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.escrow-explainer .ee-t { font-size: 13.5px; font-weight: 800; color: var(--accent-ink); }
.escrow-explainer .ee-s { font-size: 12.5px; color: var(--accent-ink); opacity: .9; line-height: 1.45; margin-top: 2px; }
.help-strip {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; margin-bottom: 12px; cursor: pointer; width: 100%;
}
.help-strip:hover { color: var(--ink); }

/* ---- Live price estimate (wizard) ---- */
.live-estimate {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2); padding: 11px 14px; margin: 4px 0 14px;
}
.live-estimate .le-range { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.live-estimate .le-txt { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.live-estimate .le-badge { margin-left: auto; }
.draft-restored { font-size: 12px; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid #c2ecd6; border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.draft-restored button { background: none; border: none; color: var(--accent-ink); text-decoration: underline; font-weight: 700; cursor: pointer; width: auto; font-size: 12px; margin-left: auto; }
.photo-tips { font-size: 12px; color: var(--muted); margin: -2px 0 12px; line-height: 1.5; }
.photo-tips strong { color: var(--ink); }

/* ============================================================
   ACCESSIBILITY: Large & simple text + high contrast
   ============================================================ */
body.a11y-large { font-size: 17px; }
body.a11y-large .screen-title { font-size: 25px; }
body.a11y-large .screen-sub { font-size: 16px; }
body.a11y-large .btn { font-size: 17px; padding: 16px 20px; }
body.a11y-large .btn-sm { font-size: 15px; padding: 11px 15px; }
body.a11y-large label, body.a11y-large .big-label { font-size: 13.5px; }
body.a11y-large input, body.a11y-large select, body.a11y-large textarea { font-size: 17px; }
body.a11y-large .wiz-q { font-size: 21px; }
body.a11y-large .wiz-help, body.a11y-large .media-hint { font-size: 14.5px; }
body.a11y-large .chip, body.a11y-large .meta-pill, body.a11y-large .quick-reply { font-size: 14.5px; }
body.a11y-large .quote-name { font-size: 16px; }
body.a11y-large .quote-price, body.a11y-large .qc-price { font-size: 26px; }
body.a11y-large .nav-item { font-size: 12px; }
body.a11y-large .st-label, body.a11y-large .cl-item { font-size: 16px; }

body.a11y-contrast {
  --muted: #3a4150;
  --line: #b9bfca;
  --line-strong: #8b93a3;
  --accent-ink: #045c33;
}
body.a11y-contrast .screen-sub,
body.a11y-contrast .media-hint,
body.a11y-contrast .qc-metric .qc-k,
body.a11y-contrast .st-sub { color: #3a4150; }
body.a11y-contrast .btn-secondary { border-color: var(--line-strong); }
body.a11y-contrast .meta-pill { border-color: var(--line-strong); }
body.a11y-contrast.theme-dark { --muted: #c4cddc; --line: #41506a; --line-strong: #5a6c8a; --accent-ink: #8ef0bd; }
body.a11y-contrast.theme-dark .screen-sub,
body.a11y-contrast.theme-dark .media-hint,
body.a11y-contrast.theme-dark .st-sub { color: #c4cddc; }

/* ============================================================
   DARK THEME (opt-in via Profile → Appearance).
   Re-maps both the legacy (--white/--black/--gray-*) and the
   refinement (--surface/--ink/--line/...) token sets, then
   patches the few components that hard-code light values.
   ============================================================ */
body.theme-dark {
  /* refinement tokens */
  --line: #2a3344;
  --line-strong: #38445a;
  --ink: #e9eef7;
  --muted: #9aa6ba;
  --surface: #161c27;
  --surface-2: #1e2533;
  --accent: #2bd17e;
  --accent-ink: #74e3ac;
  --accent-wash: rgba(43,209,126,.13);
  --ring: 0 0 0 3px rgba(43,209,126,.28);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 16px 36px -18px rgba(0,0,0,.75);
  --blue: #5b9bff;
  /* legacy tokens */
  --white: #161c27;
  --black: #e9eef7;
  --gray-50: #11161f;
  --gray-100: #232c3b;
  --gray-200: #2a3344;
  --gray-400: #6b7689;
  --gray-600: #9aa6ba;
  --gray-800: #cdd5e2;
  --shadow: 0 2px 12px rgba(0,0,0,.55);
  color: var(--ink);
}
body.theme-dark {
  background:
    radial-gradient(1100px 460px at 50% -260px, #18233b 0%, rgba(24,35,59,0) 60%),
    #0d111a;
}
@media (min-width: 481px) { body.theme-dark { background: #07090e; } }
body.theme-dark .app-shell { background: var(--surface); box-shadow: 0 0 60px rgba(0,0,0,.5); }
body.theme-dark .topbar { background: rgba(22,28,39,.88); }
body.theme-dark .bottom-nav { background: rgba(22,28,39,.94); }
body.theme-dark input, body.theme-dark select, body.theme-dark textarea { color: var(--ink); background: var(--surface-2); }
body.theme-dark input::placeholder, body.theme-dark textarea::placeholder { color: #6b7689; }
/* Inverse elements: --ink is now light, so re-skin "dark chip / white text" bits */
body.theme-dark .chip.active, body.theme-dark .sort-chip.active,
body.theme-dark .compare-toggle button.active { background: var(--accent); color: #06231a; border-color: var(--accent); }
body.theme-dark .btn-primary { background: var(--accent); color: #06231a; }
body.theme-dark .btn-primary:hover { background: #34e08a; }
body.theme-dark .user-pill, body.theme-dark .rebook-avatar { background: var(--accent); color: #06231a; }
body.theme-dark .toast { background: #2a3344; color: #fff; }
body.theme-dark .job-item.selected { border-color: var(--accent); }
/* Components that hard-code light backgrounds */
body.theme-dark .quote-card.best { background: linear-gradient(180deg, rgba(43,209,126,.14), var(--surface) 60%); }
body.theme-dark .test-creds { border-color: rgba(43,209,126,.4); }
body.theme-dark .referral-card { background: linear-gradient(135deg, rgba(43,209,126,.1), rgba(91,155,255,.08)); }
body.theme-dark .loyalty-strip,
body.theme-dark .referral-code-row code,
body.theme-dark .evidence-note { background: var(--surface-2); }
body.theme-dark .loyalty-tier { background: rgba(251,191,36,.2); color: #fcd34d; }
body.theme-dark .sched-reminder { background: rgba(91,155,255,.12); border-color: rgba(91,155,255,.4); color: #93c0ff; }
body.theme-dark .instant-price-note { background: rgba(43,209,126,.12); border-color: rgba(43,209,126,.4); color: var(--accent-ink); }
body.theme-dark .trust-chip.ok, body.theme-dark .meta-pill.dist-pill { border-color: rgba(43,209,126,.4); }
body.theme-dark .escrow-explainer { border-color: rgba(43,209,126,.4); }
body.theme-dark .drawer { background: var(--surface); }
body.theme-dark .earnings-card {
  background: linear-gradient(135deg, #111827, #1e293b);
  border: 1px solid var(--line);
}

body.theme-dark .earn-total { color: #22c55e; }
body.theme-dark .earn-val { color: var(--ink); }
body.theme-dark .earn-label { color: var(--muted); }
body.theme-dark .earn-sub { color: #94a3b8; }
body.theme-dark .escrow-amount { color: #22c55e; }

body.theme-dark .sum-card.green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

body.theme-dark .sum-card.green .sum-val,
body.theme-dark #app-screen.role-pro .sum-card.green .sum-val {
  color: #22c55e;
}

body.theme-dark .stat-num,
body.theme-dark #app-screen .stat-num {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--accent);
}

body.theme-dark .safety-note {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

body.theme-dark .drawer-stats > div, body.theme-dark .drawer-close { background: var(--surface-2); }
body.theme-dark .ds-num { color: var(--ink); }
body.theme-dark .trade-chip { background: rgba(91,155,255,.14); color: #93c0ff; }
body.theme-dark .drawer-review p { color: #c4cddc; }
body.theme-dark .drawer-review, body.theme-dark .drawer-section { border-color: var(--line); }
body.theme-dark .promo-pill { background: var(--surface-2); }
body.theme-dark .fav-toggle.active { background: rgba(251,191,36,.18); color: #fcd34d; }
body.theme-dark .toggle-switch::after { background: #e9eef7; }
body.theme-dark .skel-card { background: var(--surface); }
/* Status banner: keep readable in dark theme (do not inherit inverted --white) */
body.theme-dark .status-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
}
body.theme-dark .status-banner h3 { color: #ffffff; }
body.theme-dark .status-banner p { color: #cbd5e1; }
body.theme-dark #app-screen.role-host .status-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
}
body.theme-dark #app-screen.role-host .status-banner p { color: #dbeafe; }
/* Pre-existing light-background components patched for dark mode */
body.theme-dark .onboard-hint { background: rgba(91,155,255,.1); border-color: rgba(91,155,255,.32); }
body.theme-dark .onboard-hint .oh-text strong { color: var(--ink); }
body.theme-dark .surge-banner { background: rgba(251,146,60,.12); border-color: rgba(251,146,60,.35); color: #fdba74; }
body.theme-dark .ai-result { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.4); }
body.theme-dark .media-alert { background: var(--surface-2); border-color: var(--line); }
body.theme-dark .media-alert.live { background: rgba(91,155,255,.12); border-color: rgba(91,155,255,.4); }
body.theme-dark .template-chip { background: var(--surface-2); border-color: var(--line); }
body.theme-dark .guest-banner { background: var(--surface-2); }
body.theme-dark .ai-loading, body.theme-dark .help-tip { color: var(--muted); }
body.theme-dark .msg-bubble.mine { background: var(--accent); color: #06231a; }
body.theme-dark .msg-bubble.mine .msg-receipt { color: rgba(6,35,26,.7); }
body.theme-dark .msg-bubble.theirs { background: var(--surface-2); border-color: var(--line); }
/* Theme-color meta is updated in JS for the device chrome. */
