/* Product-specific details refine the shared component foundation without a framework. */
:root { --ink: #0f172a; --muted: #475569; --paper: #ffffff; --lime: #2563eb; }
[hidden] { display: none !important; }
button { color: inherit; }
.brand { border: 0; background: transparent; padding: 0; white-space: nowrap; letter-spacing: -1.2px; }
.brand-mark { display: flex; align-items: center; justify-content: center; font-size: 23px; letter-spacing: -3px; padding-right: 3px; }
.brand-dot { color: #475569; margin-left: -9px; }
.sidebar .brand { margin-bottom: 16px; }
.sidebar-tagline { color: #64748b; font-size: 12px; line-height: 1.6; padding: 0 7px 34px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar-bottom p { font-size: 23px; letter-spacing: -.7px; font-weight: 650; color: #475569; line-height: 1.3; margin: 17px 0 13px; }
.local-mark { font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.local-mark svg { width: 13px; height: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
/* The extracted hat supplies only alpha; CSS gives the navigation mark a uniform solid navy fill; the hat means jobs. */
.jobs-nav-icon { display: inline-block; flex-shrink: 0; width: 50px; height: 44px; margin-block: -11px; background: #0f172a; -webkit-mask: url('../assets/tipped-hat.png') center / contain no-repeat; mask: url('../assets/tipped-hat.png') center / contain no-repeat; }
.sidebar .nav-item.active .jobs-nav-icon { background: var(--lime); }
.topbar-actions .icon-button { border: none; background: transparent; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 9px; background: #2563eb; width: 5px; height: 5px; border-radius: 50%; }
.location span { border-left: 1px solid #cbd5e1; margin-left: 4px; padding-left: 10px; font-size: 10px; }
.demo-dot { display: inline-block; width: 5px; height: 5px; background: #64748b; border-radius: 50%; margin-right: 5px; }
.demo-bar > span { letter-spacing: .7px; font-weight: 650; }
.demo-description { letter-spacing: 0; font-weight: 400; opacity: .8; }
.demo-bar select { width: auto; min-height: 30px; border: 1px solid #cbd5e1; padding: 4px 7px; border-radius: 7px; background: #f8fafc; }
.demo-bar .icon-button { width: 30px; height: 30px; }
.demo-bar .icon-button svg { width: 17px; height: 17px; }
.app-footer { display: flex; justify-content: space-between; margin: 0 36px; padding: 17px 0 25px; border-top: 1px solid var(--line); color: #64748b; font-size: 10px; }
.grow { flex: 1; min-width: 0; }
.today-label { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.page-head h1 svg { color: #64748b; width: 27px; height: 27px; }
.task-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 45px; height: 45px; border-radius: 14px; background: #e5e7eb; color: #475569; }
.task-icon.cleaning { background: #e5e7eb; color: #475569; }
.task-icon.yard { background: #e5e7eb; color: #475569; }
.task-icon.home { background: #e4eaf1; color: #6b839a; }
.body-copy { color: #475569; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.spaced { margin: 25px 0 10px; }

/* The dashboard pairs one photographic story with immediate category actions. */
.home-grid { grid-template-columns: 1fr; }
.feature-job { min-height: 270px; display: block; padding: 31px; }
.feature-job h2 { font-size: 35px; line-height: 1.12; letter-spacing: -1px; margin: 18px 0 11px; }
.feature-job p { font-size: 13px; line-height: 1.65; margin-bottom: 22px; }
.feature-job .pill { background: #ffffff12; color: #cbd5e1; font-size: 8px; letter-spacing: .9px; padding: 6px 8px; }
.feature-job .job-photo { left: auto; width: 45%; opacity: .78; object-position: 55% center; border-radius: 0; mask-image: linear-gradient(to right, transparent, black 45%); }
.feature-copy { max-width: 70%; }
.category-card { gap: 10px; }
.category-card > span:not(.task-icon) { font-size: 11px; line-height: 1.6; color: var(--muted); }
.category-card > strong { font-size: 14px; }
.category-card .category-link { margin-top: auto; padding-top: 7px; font-size: 11px; color: #475569; font-weight: 650; }
.category-link svg { width: 13px; height: 13px; margin-left: 4px; }
.mini-job strong, .mini-job small { display: block; }
.mini-job small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mini-job:hover { border-color: #64748b; }
.job-price { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.job-price svg { width: 15px; height: 15px; color: #64748b; }
.notice { display: flex; align-items: flex-start; gap: 10px; color: #475569; }
.notice > svg { flex-shrink: 0; margin-top: 1px; width: 18px; height: 18px; }

/* Opening choices make the two roles concrete while remaining easy to switch later. */
.welcome { margin-top: 24px; }
.welcome h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -2.8px; margin-top: 16px; }
.welcome h1 em { font-style: normal; position: relative; z-index: 0; }
.welcome h1 em::after { content: ''; position: absolute; z-index: -1; bottom: 2px; height: 12px; background: #2563eb; left: -5px; right: -5px; transform: rotate(-2deg); }
.welcome > .welcome-copy { margin: 22px auto 33px; font-size: 14px; line-height: 1.8; }
.welcome-grid { gap: 18px; }
.role-card:first-child { background: #fff; color: var(--ink); border-color: var(--line); }
.role-card:first-child p { color: #475569; }
.role-card.dark-role { background: var(--ink); color: white; border-color: var(--ink); }
.role-card.dark-role p { color: #cbd5e1; }
.role-card.dark-role .eyebrow { color: #64748b; }
.role-card { padding: 27px; min-height: 270px; gap: 9px; }
.role-card h2 { font-size: 29px; letter-spacing: -.8px; }
.role-card .eyebrow { margin: 4px 0 0; }
.role-illustration { height: 55px; width: 55px; border-radius: 18px; background: #e5e7eb; display: grid; place-items: center; margin-bottom: 9px; }
.role-illustration svg { width: 30px; height: 30px; }
.dark-role .role-illustration { background: #2563eb; color: var(--ink); }
.role-arrow { display: flex; align-items: center; justify-content: space-between; align-self: stretch; font-size: 13px; font-weight: 650; border-top: 1px solid #e5e7eb; padding-top: 16px; margin-top: auto; }
.dark-role .role-arrow { border-color: #ffffff25; color: #2563eb; }
.welcome .welcome-note { font-size: 11px; margin-top: 24px; }

/* Forms keep important decisions visible and let a small number of values describe each task. */
.task-choices { display: grid; gap: 11px; }
.radio-card { justify-content: space-between; width: 100%; padding: 17px; }
.radio-card strong, .radio-card small { display: block; }
.radio-card strong { font-size: 14px; }
.radio-card small { font-size: 11px; color: var(--muted); margin-top: 6px; }
.field { font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { font-weight: 400; }
.field textarea { line-height: 1.7; }
.field > .muted { display: inline; }
.field + .field { margin-top: 15px; }
.form-grid .field + .field { margin-top: 0; }
#job-form > .choice-row { margin: 0 0 25px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-footer .muted { font-size: 11px; }
.modal form > button.full { margin-top: 23px; }

/* Three broad scores stay readable; the deeper view exposes only their direct skill children. */
.score-cell { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 8px 9px; font: inherit; }
.score-cell:first-child { border: 0; }
.score-cell:hover { background: #f8fafc; }
.score-cell > span:first-child { min-height: 27px; margin: 0 0 6px; line-height: 1.3; }
.score-cell strong { font-size: 27px; }
.score-cell strong small { display: inline; font-size: 10px; margin-left: 3px; font-weight: 400; letter-spacing: 0; }
.score-cell .score-coverage { font-size: 9px; margin-top: 6px; }
.candidate-body > .split { margin-bottom: 10px; }
.candidate-body .split .eyebrow { margin: 0; font-size: 9px; }
.candidate-body .split .button { border: 0; padding: 5px 0; min-height: 25px; background: transparent; }
.candidate-body .score-strip { margin-bottom: 7px; }
.candidate-bio { font-style: italic; }
.portrait-status { position: absolute; left: 18px; top: 17px; color: #f8fafc; background: #0f172ab8; backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 30px; font-size: 10px; }
.portrait-caption h2 { display: flex; align-items: center; gap: 7px; }
.portrait-caption h2 svg { color: #2563eb; width: 19px; height: 19px; }
.portrait-caption p svg { width: 13px; height: 13px; }
.match-details { display: grid; gap: 8px; margin: 12px 0; }
.match-details span { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.match-details svg { width: 14px; height: 14px; color: #475569; }
.relevant-skill { display: flex; align-items: center; gap: 4px; font-size: 10px; flex-wrap: wrap; color: #475569; }
.relevant-skill svg { width: 13px; height: 13px; }
.relevant-skill span { color: #64748b; }
.shortlist-panel { position: sticky; top: 22px; margin-top: 53px; }
.shortlist-panel > .section-heading { margin: 0 0 10px; }
.shortlist-panel .section-heading h2 { font-size: 16px; }
.shortlist-empty { padding: 37px 0; font-size: 11px; text-align: center; color: #64748b; line-height: 1.9; }
.pool-note { font-size: 10px; display: flex; align-items: center; gap: 6px; color: #475569; margin-top: 20px; }
.pool-note svg { width: 14px; height: 14px; }
.deck-end { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.skill-leaf { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: transparent; color: var(--ink); text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
.skill-leaf:hover { background: #f8fafc; }
.skill-leaf strong, .skill-leaf small { display: block; }
.skill-leaf strong { font-size: 13px; font-weight: 600; }
.skill-leaf small { margin-top: 5px; }
.leaf-score { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.leaf-score svg { width: 14px; height: 14px; color: #64748b; }
.skill-group .section-heading { margin: 0 0 13px; }
.skill-group .section-heading h3 { display: flex; align-items: center; gap: 8px; }
.skill-group .section-heading > strong { font-size: 24px; }
.skill-group .section-heading small { font-size: 11px; color: var(--muted); padding-left: 4px; }
.coverage { font-size: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.score-explainer { font-size: 12px; line-height: 1.8; margin-bottom: 23px; }
.group-score-head { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.group-score-head > strong { font-size: 48px; letter-spacing: -2px; }
.group-score-head > strong small { font-size: 16px; letter-spacing: 0; color: var(--muted); }
.group-score-head p { font-weight: 650; }
.group-score-head p span { font-size: 11px; font-weight: 400; }
.rating-row { display: flex; align-items: center; gap: 11px; font-size: 12px; }
.rating-row > span:first-child { width: 34px; }
.rating-row > span:last-child { width: 17px; text-align: right; }
.rating-row svg { width: 12px; height: 12px; }
.rating-row .bar-track { flex: 1; height: 8px; margin: 0; }
.score-demo { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.score-demo p { font-size: 12px; color: var(--muted); margin-bottom: 13px; }
.score-demo .choice-row { flex-wrap: nowrap; }
.score-demo .button { flex: 1; padding: 8px; }
.badge-detail { text-align: center; padding: 18px; }
.badge-detail > svg { width: 48px; height: 48px; color: #475569; margin-bottom: 18px; }
.profile-hero { align-items: center; }
.profile-image { object-position: center 30%; }
.profile-info .badge { min-height: 28px; padding: 5px 9px; font-size: 10px; }
.host-avatar { display: grid; place-items: center; width: 90px; height: 100px; background: #cbd5e1; border-radius: 25px; font-size: 40px; flex-shrink: 0; }

/* Job offers and completion show pay and status before secondary details. */
.availability { display: flex; gap: 7px; align-items: center; border: 1px solid #e5e7eb; background: #f8fafc; padding: 9px 12px; border-radius: 22px; font-size: 11px; white-space: nowrap; }
.availability span { height: 7px; width: 7px; background: #64748b; border-radius: 50%; }
.availability.on { color: #475569; background: #e5e7eb; }
.availability.on span { background: #475569; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-card { border: 1px solid var(--line); background: white; border-radius: 20px; padding: 24px; }
.offer-card > .task-icon { margin: 24px 0 13px; }
.offer-card .split > .muted { font-size: 10px; }
.offer-card h2 { font-size: 22px; line-height: 1.3; }
.offer-card > p { font-size: 11px; line-height: 1.7; margin: 9px 0 24px; }
.offer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding-top: 17px; border-top: 1px solid var(--line); }
.offer-bottom strong { font-size: 25px; display: block; letter-spacing: -.8px; }
.offer-bottom small { display: block; font-size: 9px; color: var(--muted); }
.offer-bottom .button { padding: 10px 12px; font-size: 11px; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.two-columns > section > h2 { margin: 14px 0 9px; }
.two-columns > section > .muted { font-size: 13px; line-height: 1.8; margin-bottom: 19px; }
.two-columns .payment-box { margin-top: 0; }
.detail-line { display: flex; gap: 10px; align-items: center; margin: 13px 0; font-size: 12px; color: var(--muted); }
.detail-line svg { width: 17px; height: 17px; color: #475569; }
.payment-box > h2 { font-size: 20px; margin: 14px 0 8px; }
.payment-box > .muted { font-size: 12px; line-height: 1.8; margin: 17px 0; }
.payment-method { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; font-size: 11px; margin: 15px 0; }
.payment-method > svg { width: 17px; height: 17px; }
.payment-method .pill { margin-left: auto; font-size: 8px; }
.payment-caption { font-size: 10px; line-height: 1.7; text-align: center; color: var(--muted); margin-top: 12px; }
.payment-box > .button + .button { margin-top: 9px; }
.large-price { font-size: 42px; font-weight: 700; letter-spacing: -1.5px; margin: 15px 0; }
.large-price > span { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.job-title { font-size: 34px; margin-top: 15px; max-width: 650px; }
.countdown { padding: 20px 0; text-align: center; color: #475569; }
.countdown svg { width: 23px; height: 23px; display: block; margin: 0 auto 8px; }
.countdown strong { font-size: 24px; color: var(--ink); display: block; }
.countdown span { font-size: 11px; color: var(--muted); }
.settlement { text-align: center; padding: 25px 0 18px; }
.settlement > svg { color: #475569; background: #e5e7eb; width: 45px; height: 45px; padding: 10px; border-radius: 50%; margin-bottom: 10px; }
.settlement p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.settlement small { display: block; font-size: 10px; margin-top: 10px; color: #64748b; }
.timeline-item { display: flex; gap: 8px; align-items: center; padding-left: 23px; }
.timeline-item > span { font-size: 9px; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e5e7eb; }
.timeline-item > span svg { width: 12px; height: 12px; }
.booked-person { margin-top: 22px; border-top: 1px solid var(--line); }
.completion-evidence { margin: 20px 0; padding: 18px; border-left: 3px solid #64748b; background: #f8fafc; border-radius: 0 12px 12px 0; }
.completion-evidence p { font-size: 12px; line-height: 1.8; margin: 11px 0; }
.completion-evidence small { color: var(--muted); font-size: 10px; }
.notification { width: 100%; color: var(--ink); text-align: left; }
.notification > span:nth-child(2) { flex: 1; }
.notification strong, .notification small { display: block; }
.notification small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.message small { margin: 0 0 5px; }
.modal-open { overflow: hidden; }
.modal .profile-hero { flex-wrap: wrap; }
.modal .profile-info h1 { font-size: 29px; }
.modal .profile-body { max-width: 100%; }
.star.selected svg { fill: #475569; stroke: #475569; }
.demo-menu { margin-top: 18px; }
.demo-menu .button { font-size: 12px; }

/* Card transitions give swipe decisions a physical exit without changing layout geometry. */
.candidate-card { animation: card-enter .24s ease-out; }
.candidate-card.exit-left { transform: translateX(-60px) rotate(-4deg); opacity: 0; }
.candidate-card.exit-right { transform: translateX(60px) rotate(4deg); opacity: 0; }
@keyframes card-enter { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet retains a useful centred canvas while stacking transactional columns. */
@media (min-width: 701px) and (max-width: 960px) {
  .two-columns, .offer-grid { grid-template-columns: 1fr; }
  .candidate-layout { max-width: 500px; margin: auto; }
  .shortlist-panel { position: static; margin-top: 0; }
  .welcome h1 { font-size: 43px; }
  .role-card { padding: 20px; }
  .role-card h2 { font-size: 25px; }
  .demo-description { display: none; }
}

/* Mobile keeps edge controls reachable, forms legible and the three scores on one line. */
@media (max-width: 700px) {
  .topbar { position: sticky; top: 0; z-index: 45; background: #fffffff5; backdrop-filter: blur(12px); }
  .topbar .location { display: none; }
  .topbar-actions { gap: 8px; }
  .demo-description { display: none; }
  .demo-bar { flex-wrap: nowrap; }
  .demo-bar > span { font-size: 8px; white-space: nowrap; }
  .demo-bar > div { gap: 5px; }
  .demo-bar select { font-size: 10px; max-width: 145px; min-height: 32px; }
  .app-footer { display: none; }
  .today-label { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .feature-job { padding: 25px; min-height: 273px; }
  .feature-job h2 { font-size: 32px; }
  .feature-copy { max-width: 88%; }
  .feature-job .job-photo { width: 55%; opacity: .5; }
  .feature-job .pill { font-size: 7px; }
  .feature-job p { margin-bottom: 20px; }
  .category-card > strong { font-size: 12px; }
  .category-card > span:not(.task-icon):not(.category-link) { display: none; }
  .category-card { min-height: 145px; }
  .category-card .task-icon { width: 37px; height: 37px; border-radius: 12px; }
  .category-card .category-link { font-size: 9px; }
  .category-card .category-link svg { width: 11px; }
  .section-heading > .muted { font-size: 10px; }
  .mini-job .task-icon { width: 38px; height: 38px; border-radius: 12px; }
  .job-price { gap: 4px; font-size: 12px; }
  .mini-job small { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  input:not([type=checkbox]):not([type=radio]), textarea, .field select { font-size: 16px; }
  .form-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-footer .muted { text-align: center; }
  .form-footer .button { width: 100%; }
  .candidate-layout, .two-columns, .offer-grid { grid-template-columns: 1fr; }
  .candidate-layout { gap: 12px; }
  .candidate-body { padding: 17px 16px; }
  .portrait { height: 285px; }
  .shortlist-panel { position: static; margin-top: 15px; }
  .card-actions { position: sticky; bottom: calc(79px + env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(8px); padding: 10px 0; z-index: 20; }
  .payment-box .card-actions { position: static; background: transparent; }
  .score-cell { padding: 6px; }
  .score-cell strong { font-size: 26px; }
  .score-cell > span:first-child { font-size: 9px; }
  .score-cell .score-coverage { font-size: 8px; }
  .score-cell strong small { font-size: 9px; }
  .two-columns { gap: 20px; }
  .two-columns > aside { grid-row: auto; }
  .offer-card { padding: 21px; }
  .offer-card h2 { font-size: 23px; }
  .offer-card .task-icon { margin-top: 20px; }
  .availability { padding: 8px 9px; font-size: 10px; }
  .welcome { margin-top: 12px; }
  .welcome h1 { font-size: 42px; letter-spacing: -2px; }
  .welcome > .welcome-copy { font-size: 12px; margin: 20px auto 27px; }
  .role-card { padding: 19px 17px; min-height: 253px; gap: 9px; }
  .role-card h2 { font-size: 24px; }
  .role-card .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .role-illustration { height: 43px; width: 43px; border-radius: 14px; }
  .role-illustration svg { width: 25px; height: 25px; }
  .role-arrow { font-size: 11px; padding-top: 14px; }
  .role-arrow svg { width: 16px; }
  .welcome .welcome-note { font-size: 10px; }
  .profile-info h1 { font-size: 25px; }
  .modal .profile-info h1 { font-size: 25px; }
  .profile-info .badge { font-size: 8px; padding: 5px 6px; }
  .skill-group { padding: 17px; }
  .skill-group .section-heading h3 { font-size: 15px; }
  .skill-leaf strong { font-size: 12px; }
  .host-avatar { width: 65px; height: 80px; font-size: 32px; }
  .modal-backdrop { align-items: flex-end; padding: 9px; }
  .modal { border-radius: 23px 23px 16px 16px; max-height: 90dvh; }
  .modal-body { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* Short screens and reduced-motion preferences preserve interaction without visual strain. */
@media (max-width: 370px) { .welcome-grid { grid-template-columns: 1fr; } .role-card { min-height: 210px; } .welcome h1 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .candidate-card { animation: none; transition: none; } }
/* Shared observers can follow a pair without receiving another account's controls. */
.conversation-readonly { margin-top: 14px; font-size: 12px; }
.shared-observer { margin-bottom: 20px; }
