/* ─────────────────────────────────────────────────────────────────────────
   homeowner.css — the homeowner seat's consumer register.

   One shell, two registers: the contractor console keeps the professional
   tool look (DESIGN_PRINCIPLES.md); the homeowner seat gets a warmer,
   simpler consumer skin. EVERY rule is scoped under body.seat-homeowner
   (added/removed by account-ui.js applyChrome/restoreChrome) so the
   contractor and GC seats render byte-identical to before.

   The trust rules still bind: no looping motion, no red except errors,
   honest copy, faces where photos exist. Softness (radius, shadow) is the
   seat's register bend, per the 2026-11-04 homeowner-UX plan §2.
   ───────────────────────────────────────────────────────────────────────── */

body.seat-homeowner {
  --h-radius: 14px;
  --h-radius-lg: 20px;
  --h-shadow: 0 1px 2px rgba(23, 43, 77, .05), 0 6px 18px rgba(23, 43, 77, .06);
  --h-shadow-lift: 0 2px 4px rgba(23, 43, 77, .07), 0 12px 28px rgba(23, 43, 77, .11);
  --h-tint-primary: #E9EFFC;
  --h-tint-success: #E3FCEF;
  --h-tint-muted: #F1F3F5;
}

/* ── Shell softening ─────────────────────────────────────────────── */
/* Cards everywhere in this seat get the softer consumer shape. (Modals are
   not .card — the AgreementModal chrome is untouched, deliberately.) */
body.seat-homeowner .card {
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow);
  border-color: rgba(23, 43, 77, .06);
}

/* Bottom tab bar: active tab reads as a soft pill, not an underline. */
body.seat-homeowner #bottomNav .bn-item.active {
  background: var(--h-tint-primary);
  border-radius: 12px;
  color: var(--primary);
}
body.seat-homeowner #bottomNav {
  border-top: 1px solid rgba(23, 43, 77, .07);
}
body.seat-homeowner #bottomNav .bn-item span {
  font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────────────── */
body.seat-homeowner .ll-h-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--h-radius-lg);
  padding: 34px 32px;
  color: #fff;
  /* Single-hue brand gradient — the hero is the seat's brand moment. */
  background: linear-gradient(135deg, #1646BC 0%, var(--primary) 45%, #4E8CF0 100%);
  box-shadow: var(--h-shadow-lift);
}
body.seat-homeowner .ll-h-hero-greet {
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
  margin: 0 0 6px;
  letter-spacing: .01em;
}
body.seat-homeowner .ll-h-hero-title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
body.seat-homeowner .ll-h-hero-sub {
  font-size: 14.5px;
  margin: 0 0 20px;
  opacity: .94;
  line-height: 1.5;
}
body.seat-homeowner .ll-h-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
body.seat-homeowner .ll-h-hero-cta:hover { filter: brightness(.97); }
body.seat-homeowner .ll-h-hero-cta:active { transform: translateY(1px); }

/* ── Attention stack (the "needs you" cards) ─────────────────────── */
body.seat-homeowner .ll-h-attention {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
}
body.seat-homeowner .ll-h-attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(23, 43, 77, .06);
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
body.seat-homeowner .ll-h-attention-item:hover {
  box-shadow: var(--h-shadow-lift);
  transform: translateY(-1px);
}
body.seat-homeowner .ll-h-attention-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--h-tint-primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
body.seat-homeowner .ll-h-attention-item.ll-h-pay .ll-h-attention-icon {
  background: var(--h-tint-success);
  color: var(--success);
}
body.seat-homeowner .ll-h-attention-body { flex: 1; min-width: 0; }
body.seat-homeowner .ll-h-attention-label {
  font-size: 12.5px;
  color: var(--text-muted);
}
body.seat-homeowner .ll-h-attention-value {
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25;
}
body.seat-homeowner .ll-h-attention-go {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
body.seat-homeowner .ll-h-attention-go:hover { filter: brightness(1.08); }

/* ── Section titles ──────────────────────────────────────────────── */
body.seat-homeowner .ll-h-section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 26px 0 14px;
}
body.seat-homeowner .ll-h-section-title:first-of-type { margin-top: 4px; }

/* ── Status chips (soft tints, never loud solids) ────────────────── */
body.seat-homeowner .ll-h-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body.seat-homeowner .ll-h-chip-open,
body.seat-homeowner .ll-h-chip-in_progress { background: var(--h-tint-primary); color: var(--primary); }
body.seat-homeowner .ll-h-chip-completed  { background: var(--h-tint-success); color: var(--success); }
body.seat-homeowner .ll-h-chip-cancelled  { background: var(--h-tint-muted); color: var(--text-muted); }
body.seat-homeowner .ll-h-chip-muted      { background: var(--h-tint-muted); color: var(--text-muted); }

/* ── Avatars (faces where photos exist, initial disc otherwise) ──── */
body.seat-homeowner .ll-h-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(23, 43, 77, .18);
  overflow: hidden;
}
body.seat-homeowner .ll-h-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Buttons inside .ll-h surfaces (modal chrome stays untouched) ── */
body.seat-homeowner .ll-h-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: none;
}
body.seat-homeowner .ll-h-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(30, 86, 216, .28); }
body.seat-homeowner .ll-h-btn-primary:hover { filter: brightness(1.07); }
body.seat-homeowner .ll-h-btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
body.seat-homeowner .ll-h-btn-ghost { background: transparent; color: var(--text-muted); }
body.seat-homeowner .ll-h-btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

/* ── Cards' inner rhythm ─────────────────────────────────────────── */
body.seat-homeowner .ll-h-card-title { font-weight: 750; font-size: 15.5px; }
body.seat-homeowner .ll-h-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}
body.seat-homeowner .ll-h-card-desc {
  font-size: 13.5px;
  margin-top: 9px;
  line-height: 1.6;
  color: var(--text);
}
body.seat-homeowner .ll-h-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Empty states ────────────────────────────────────────────────── */
body.seat-homeowner .ll-h-empty {
  text-align: center;
  padding: 44px 24px;
}
body.seat-homeowner .ll-h-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--h-tint-primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
body.seat-homeowner .ll-h-empty-title { font-size: 16px; font-weight: 750; }
body.seat-homeowner .ll-h-empty-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 6px 0 18px;
  line-height: 1.55;
}

/* ── One-shot entrance motion (nothing loops) ────────────────────── */
@keyframes llhRise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.seat-homeowner .ll-h-rise { animation: llhRise 260ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  body.seat-homeowner .ll-h-rise { animation: none; }
  body.seat-homeowner .ll-h-attention-item:hover,
  body.seat-homeowner .ll-h-hero-cta:active { transform: none; }
}

/* ── Post-a-project wizard (Phase 2) ─────────────────────────────── */
body.seat-homeowner .ll-h-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
body.seat-homeowner .ll-h-dot-i {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--h-tint-muted);
  border-radius: 999px;
  padding: 4px 12px;
}
body.seat-homeowner .ll-h-dot-i.on {
  background: var(--h-tint-primary);
  color: var(--primary);
}

/* Choice chips (trade picker, duration quick-picks) */
body.seat-homeowner .ll-h-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.seat-homeowner .ll-h-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
body.seat-homeowner .ll-h-chip-btn:hover { border-color: var(--primary); }
body.seat-homeowner .ll-h-chip-btn.ll-h-chip-on {
  background: var(--h-tint-primary);
  border-color: var(--primary);
  color: var(--primary);
}
body.seat-homeowner .ll-h-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* Calm helper lines (one sentence, never a wall of text) */
body.seat-homeowner .ll-h-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 6px;
}

/* ── Bid cards (Phase 2) ─────────────────────────────────────────── */
body.seat-homeowner .ll-h-bid {
  border: 1px solid rgba(23, 43, 77, .08);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 10px;
  background: #fff;
}
body.seat-homeowner .ll-h-bid-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
body.seat-homeowner .ll-h-bid-price {
  text-align: right;
  flex-shrink: 0;
  max-width: 45%;
}
/* Comparison annotations: annotate, never re-sort. */
body.seat-homeowner .ll-h-bid-ann {
  display: inline-block;
  margin: 5px 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--success);
  background: var(--h-tint-success);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
body.seat-homeowner .ll-h-bid-sched {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--text);
}
body.seat-homeowner .ll-h-bid-note {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}
body.seat-homeowner .ll-h-bid-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  align-items: center;
  flex-wrap: wrap;
}
body.seat-homeowner .ll-h-bid-counter {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--h-tint-muted);
  border-radius: 10px;
  padding: 8px 12px;
}

/* "..." menu: native <details>, no JS, keyboard-reachable. */
body.seat-homeowner .ll-h-menu {
  position: relative;
  margin-left: auto;
}
body.seat-homeowner .ll-h-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  padding: 5px 11px;
  border-radius: 9px;
}
body.seat-homeowner .ll-h-menu > summary::-webkit-details-marker { display: none; }
body.seat-homeowner .ll-h-menu > summary:hover { background: var(--h-tint-muted); }
body.seat-homeowner .ll-h-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--h-shadow-lift);
  padding: 6px;
  min-width: 160px;
}
body.seat-homeowner .ll-h-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--danger);
  font-family: inherit;
  border-radius: 7px;
}
body.seat-homeowner .ll-h-menu-item:hover { background: rgba(222, 53, 11, .07); }

/* ── Hire timeline stepper (Phase 3, plan §5.5) ──────────────────── */
body.seat-homeowner .ll-h-steps {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
body.seat-homeowner .ll-h-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  text-align: center;
}
/* connector line */
body.seat-homeowner .ll-h-step::before {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: var(--border);
}
body.seat-homeowner .ll-h-step:first-child::before { display: none; }
body.seat-homeowner .ll-h-step.done::before { background: var(--success); }
body.seat-homeowner .ll-h-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--h-tint-muted);
  color: var(--text-muted);
  z-index: 1;
}
body.seat-homeowner .ll-h-step.done .ll-h-step-dot {
  background: var(--success);
  color: #fff;
}
body.seat-homeowner .ll-h-step.now .ll-h-step-dot {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--h-tint-primary);
}
body.seat-homeowner .ll-h-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}
body.seat-homeowner .ll-h-step.done .ll-h-step-label { color: var(--success); }
body.seat-homeowner .ll-h-step.now .ll-h-step-label { color: var(--primary); font-weight: 700; }
body.seat-homeowner .ll-h-hire-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 43, 77, .06);
}

/* ── Messages + notifications polish (Phase 3, plan §5.7) ────────── */
body.seat-homeowner .msg-bubble {
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--h-shadow);
}
body.seat-homeowner .msg.me .msg-bubble {
  border-bottom-right-radius: 5px;
  background: var(--primary);
}
body.seat-homeowner .msg.them .msg-bubble {
  border-bottom-left-radius: 5px;
  background: #fff;
  border: 1px solid rgba(23, 43, 77, .07);
}
body.seat-homeowner .convo-item.active {
  background: var(--h-tint-primary);
  border-radius: 12px;
}
body.seat-homeowner .convo-item:hover { background: var(--h-tint-muted); border-radius: 12px; }
body.seat-homeowner .convo-unread {
  background: var(--primary);
  border-radius: 999px;
}
