/* ============================================================
   Surrey Tasker — "The Yard" · shared page styles
   (jobs board + job detail). Builds on home-v3.css tokens.
   ============================================================ */

/* ---------- Page sub-header (compact hero) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.page-head__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 700; color: var(--brick); }
.page-head__eyebrow svg { width: 1.05rem; height: 1.05rem; }
.page-head h1 { font-size: var(--t-h2); margin: .55rem 0 0; text-wrap: balance; }
.page-head p { margin-top: .7rem; font-size: var(--t-lead); max-width: 56ch; text-wrap: pretty; }
/* page-head with only a breadcrumb is a thin strip, not a hero */
.page-head:has(> .wrap > .crumbs:only-child) { padding-block: 1.1rem; }
/* tighten the gap between a page-head and the first content section */
.page-head + .section { padding-top: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); }
/* app views (dashboards) should start near the top */
.section:has(.dash) { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--t-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brick); }
.crumbs span { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--line-ink); }

/* ---------- Search bar ---------- */
.search-bar { display: grid; grid-template-columns: 1.7fr 1fr auto; gap: .6rem; margin-top: 1.4rem;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: .55rem; box-shadow: var(--shadow-soft); max-width: 720px; }
.search-bar .btn--cta { min-height: 52px; }

/* ---------- Board toolbar (filters + sort) ---------- */
.board-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1.5rem; }
.fchips { display: flex; gap: .5rem; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink);
  padding: .5rem .9rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.fchip:hover { border-color: var(--line-ink); }
.fchip.is-active { background: var(--brick); border-color: var(--brick); color: #fff; }
.board-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--body); white-space: nowrap; }
.board-sort select { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .5rem 2rem .5rem .7rem; background: var(--surface); color: var(--ink); font-weight: 600; appearance: none; cursor: pointer; }
.board-count { font-size: var(--t-sm); color: var(--muted); font-weight: 600; font-family: var(--font-body); letter-spacing: normal; line-height: 1.2; margin: 0; }
.board-count strong { color: var(--ink); }
/* Tasker directory: anchor chips + text sort links */
a.fchip { text-decoration: none; }
.sort-links { display: inline-flex; align-items: center; gap: .6rem; }
.sort-links a { color: var(--body); text-decoration: none; font-weight: 600; }
.sort-links a:hover { color: var(--ink); }
.sort-links a.is-active { color: var(--brick); text-decoration: underline; }
/* Coming-soon / example preview cards (shown when a board is empty) */
.preview-label { display: inline-flex; align-items: center; gap: .45rem; margin: .2rem 0 .9rem; font-size: var(--t-sm); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brick); }
.preview-label svg { width: 1.05rem; height: 1.05rem; }
.st-empty-state--intro, .board-empty--intro { grid-column: 1 / -1; }
.st-empty-cta { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.feed--preview { margin-top: 1.4rem; }
.tasker--ghost, .job--ghost { position: relative; opacity: .82; border-style: dashed; }
.tasker--ghost:hover, .job--ghost:hover { opacity: 1; border-color: var(--brick); }
.card-soon { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--brick); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .62rem; border-radius: 999px; }
/* Example-preview page banner */
.preview-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; background: color-mix(in oklab, var(--brick) 9%, #fff); border-bottom: 1px solid color-mix(in oklab, var(--brick) 22%, #fff); color: var(--ink); padding: .7rem 1.1rem; font-size: var(--t-sm); text-align: center; }
.preview-banner__badge { background: var(--brick); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .26rem .55rem; border-radius: 999px; }
.preview-banner a { color: var(--brick); font-weight: 700; text-decoration: underline; white-space: nowrap; }
/* Placeholder image tiles for example pages (no external assets) */
.ph-img { background: linear-gradient(135deg, color-mix(in oklab, var(--brick) 13%, #eef1ec), color-mix(in oklab, var(--brick) 4%, #f6f7f4)); border-radius: var(--r-sm, 12px); min-height: 150px; position: relative; overflow: hidden; display: grid; place-items: center; }
.ph-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 62%); }
/* Centred camera glyph so an empty photo slot reads as "photo goes here", not a broken skeleton */
.ph-img::before { content: ""; position: relative; z-index: 1; width: clamp(26px, 13%, 46px); aspect-ratio: 1; background: color-mix(in oklab, var(--brick) 48%, transparent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h2.6l1.3-2h8.2l1.3 2H20a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.2' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h2.6l1.3-2h8.2l1.3 2H20a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.2' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .6; }
.jd__gallery-main.ph-img { min-height: 320px; }
.portfolio .ph-img { min-height: 120px; aspect-ratio: 4 / 3; }

/* ---------- Messaging (Phase 4) ---------- */
.msg-wrap { max-width: 760px; }
.msg-back { margin: 0 0 1rem; font-size: var(--t-sm); }
.msg-back a { color: var(--muted); text-decoration: none; font-weight: 600; }
.msg-back a:hover { color: var(--ink); }
.msg-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.msg-head h1 { margin: 0; font-size: 1.5rem; }
.msg-head__sub { margin: .2rem 0 0; color: var(--muted); font-size: var(--t-sm); }
.msg-head__sub a { color: var(--brick); font-weight: 600; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.msg-chosen { color: var(--brick); font-weight: 700; }
.msg-phone { margin-bottom: 1.2rem; }
.msg-phone__num { display: inline-block; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.msg-phone__none { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.is-hidden { display: none; }
.msg-thread { display: flex; flex-direction: column; gap: .7rem; padding: 1rem; background: color-mix(in oklab, var(--brick) 4%, #fff); border: 1px solid var(--line); border-radius: 14px; max-height: 62vh; overflow-y: auto; margin-bottom: 1rem; }
.msg-empty { color: var(--muted); text-align: center; margin: 1.5rem 0; }
.msg-bubble { max-width: 80%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .85rem; }
.msg-bubble--mine { align-self: flex-end; background: var(--brick); border-color: var(--brick); color: #fff; }
.msg-bubble__meta { font-size: .72rem; opacity: .7; margin-bottom: .2rem; }
.msg-bubble__body { line-height: 1.45; word-wrap: break-word; }
.msg-system { align-self: center; text-align: center; margin: .2rem 0; }
.msg-system span { display: inline-block; background: color-mix(in oklab, var(--brick) 11%, #fff); color: var(--brick-deep, #14532a); border: 1px solid color-mix(in oklab, var(--brick) 24%, #fff); border-radius: 999px; padding: .4rem .95rem; font-size: .82rem; font-weight: 600; }
.msg-form { display: flex; gap: .6rem; align-items: flex-end; }
.msg-form textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; font: inherit; resize: vertical; min-height: 3rem; }
.msg-safety { color: var(--muted); font-size: .8rem; margin-top: .8rem; }
.msg-sub { color: var(--muted); margin: -.4rem 0 1.2rem; }
.msg-sub a { color: var(--brick); font-weight: 600; }
.msg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.msg-list__item a { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.msg-list__item a:hover { border-color: var(--brick); }
.msg-list__item.is-unread a { background: color-mix(in oklab, var(--brick) 5%, #fff); border-color: color-mix(in oklab, var(--brick) 25%, #fff); }
.msg-list__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.msg-list__top { display: flex; align-items: center; gap: .5rem; }
.msg-list__name { font-weight: 700; }
.msg-list__job { font-size: .8rem; color: var(--brick); }
.msg-list__snip { color: var(--muted); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brick); display: inline-block; }
.msg-badge { display: inline-block; min-width: 1.15rem; text-align: center; background: var(--brick); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 0 .35rem; margin-left: .2rem; }
.job-action--primary { color: var(--brick); font-weight: 700; }

/* ---------- Reviews & ratings (Phase 5) ---------- */
.stars { display: inline-flex; gap: .05rem; vertical-align: middle; }
.stars .star svg { width: 1rem; height: 1rem; fill: var(--signal-bright); display: block; }
.stars .star--off svg { fill: color-mix(in oklab, var(--ink) 14%, #fff); }
.tasker__rating { margin: .15rem 0 .1rem; }
.review-form { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; background: color-mix(in oklab, var(--brick) 4%, #fff); }
.review-form__title { margin: 0 0 .5rem; font-size: 1.05rem; }
.review-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; font: inherit; resize: vertical; margin: .5rem 0 .7rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; left: -9999px; }
.star-input label { color: color-mix(in oklab, var(--ink) 16%, #fff); cursor: pointer; padding: 0 .08rem; line-height: 0; }
.star-input label svg { width: 2rem; height: 2rem; fill: currentColor; display: block; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--signal-bright); }
.star-input input:focus-visible + label { outline: 2px solid var(--brick); outline-offset: 2px; }

/* job card as a link (board) */
a.job { text-decoration: none; color: inherit; }
a.job:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.job__applicants { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.job__view { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--t-sm); font-weight: 700; color: var(--brick); }
.job__view svg { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease); }
a.job:hover .job__view svg { transform: translateX(3px); }

.load-more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------- Job detail ---------- */
.jd { display: grid; grid-template-columns: 1fr 360px; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.jd__main { min-width: 0; }
.jd__tagrow { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem; }
.jd h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.jd__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-size: var(--t-sm); color: var(--body); }
.jd__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.jd__meta svg { width: 1.1rem; height: 1.1rem; color: var(--muted); }

.jd__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; margin-top: 1.6rem; }
.jd__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); border: 1.5px solid var(--line); }
.jd__gallery-main { aspect-ratio: 16 / 10; }
.jd__gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: .6rem; }
.jd__gallery-side img { aspect-ratio: 4 / 3; }

.jd__section { margin-top: 2rem; }
.jd__section h2 { font-size: var(--t-h3); margin-bottom: .8rem; }
.jd__section p { max-width: 70ch; margin-bottom: .8rem; }
.jd__list { display: grid; gap: .6rem; margin-top: .4rem; }
.jd__list li { display: flex; gap: .65rem; font-size: .95rem; color: var(--body); }
.jd__list svg { width: 1.2rem; height: 1.2rem; color: var(--brick); flex: none; margin-top: .1rem; }

.jd__poster { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.jd__avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--brick); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; flex: none; }
.jd__poster-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.jd__poster-meta { font-size: var(--t-sm); color: var(--muted); margin-top: .15rem; }

/* sticky apply card */
.jd__aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.apply-card { border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.apply-card__budget { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.apply-card__budget span { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.apply-card__rows { display: grid; gap: .7rem; margin: 1.25rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.apply-card__row { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--body); }
.apply-card__row svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; }
.apply-card__row b { color: var(--ink); font-weight: 600; }
.apply-card .btn { width: 100%; }
.apply-card__note { margin-top: 1rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.apply-card__signin { margin-top: .9rem; font-size: var(--t-sm); color: var(--body); text-align: center; }
.apply-card__signin a { color: var(--brick); font-weight: 700; }

.safety-note { margin-top: 1rem; padding: 1rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--t-sm); color: var(--body); }
.safety-note strong { color: var(--ink); }

/* ---------- Forms (post a job) ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.form-card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-soft); }
.form-field { margin-bottom: 1.6rem; }
.form-field:last-child { margin-bottom: 0; }
.form-label { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .5rem; }
.form-label .opt { color: var(--muted); font-weight: 500; }
.form-control { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .8rem 1rem; background: var(--bg); font: inherit; color: var(--ink); transition: border-color var(--dur) var(--ease); }
textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-control:focus { border-color: var(--brick); outline: 3px solid var(--signal); outline-offset: 1px; }
.form-control::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { margin-top: .45rem; font-size: var(--t-xs); color: var(--muted); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; cursor: pointer; padding-right: 2.4rem; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .55rem; height: .55rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }

/* choice chips (budget / timing) */
.choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice label { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.choice label:hover { border-color: var(--line-ink); }
.choice input:checked + label { border-color: var(--brick); background: color-mix(in oklab, var(--brick) 9%, white); color: var(--brick-deep); }
.choice input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }

/* upload zone */
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center; padding: 2rem 1rem; border: 1.5px dashed var(--line-ink); border-radius: var(--r-md); background: var(--paper); color: var(--body); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.upload-zone:hover { border-color: var(--brick); background: var(--paper-2); }
.upload-zone svg { width: 2rem; height: 2rem; color: var(--brick); }
.upload-zone b { color: var(--ink); }
.upload-zone small { font-size: var(--t-xs); color: var(--muted); }

.form-submit { display: grid; gap: .85rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.form-submit .btn { width: 100%; }
.form-submit small { color: var(--muted); font-size: var(--t-xs); text-align: center; }
.form-submit small a { color: var(--brick); font-weight: 700; }

/* help sidebar */
.help-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.help-card h3 { font-size: 1.1rem; margin-bottom: 1.1rem; }
.help-steps { display: grid; gap: 1.1rem; }
.help-step { display: flex; gap: .8rem; }
.help-step__n { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--signal-bright); color: var(--cta-ink); font-family: var(--font-display); font-weight: 600; font-size: .9rem; display: grid; place-items: center; flex: none; }
.help-step h3 { font-size: .95rem; color: var(--ink); margin-bottom: .15rem; }
.help-step p { font-size: var(--t-sm); color: var(--body); }
.help-card__trust { display: grid; gap: .6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.help-card__trust li { display: flex; align-items: center; gap: .55rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.help-card__trust svg { width: 1.1rem; height: 1.1rem; color: var(--live); flex: none; }

/* ---------- Avatars + star rating (shared) ---------- */
.avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brick); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; flex: none; }
.avatar--lg { width: 5rem; height: 5rem; font-size: 2rem; }
.rating { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.rating svg { width: 1.05rem; height: 1.05rem; color: var(--signal-bright); fill: var(--signal-bright); }
.rating .rating__count { color: var(--muted); font-weight: 600; }
.tag--soft { background: var(--paper-2); color: var(--brick-deep); border: 1px solid var(--line); font-size: var(--t-xs); font-weight: 600; padding: .25rem .6rem; border-radius: var(--r-pill); }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Tasker directory cards ---------- */
.tasker { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tasker:hover { border-color: var(--line-ink); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tasker:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.tasker__top { display: flex; gap: .9rem; align-items: center; }
.tasker__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.tasker__loc { font-size: var(--t-sm); color: var(--muted); margin-top: .2rem; display: inline-flex; align-items: center; gap: .3rem; }
.tasker__loc svg { width: .95rem; height: .95rem; }
.tasker__bio { font-size: .92rem; color: var(--body); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tasker__foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.tasker__jobs { font-size: var(--t-sm); color: var(--body); font-weight: 600; }

/* ---------- Tasker profile ---------- */
.profile-id { display: flex; gap: 1.25rem; align-items: center; }
.profile-id h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.profile-id__meta { margin-top: .55rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; margin-top: 1.7rem; padding: 1.3rem 0; border-block: 1px solid var(--line); }
.profile-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); line-height: 1; margin-bottom: .25rem; }
.profile-stat span { font-size: var(--t-sm); color: var(--muted); }

.services-list { display: grid; gap: .7rem; }
.services-list li { display: flex; gap: .65rem; font-size: .95rem; color: var(--body); }
.services-list svg { width: 1.2rem; height: 1.2rem; color: var(--brick); flex: none; margin-top: .1rem; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.portfolio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1.5px solid var(--line); }

.reviews { display: grid; gap: 1.4rem; }
.review { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.review:first-child { padding-top: 0; border-top: none; }
.review__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.review__who { font-weight: 700; color: var(--ink); font-size: .95rem; }
.review__date { font-size: var(--t-xs); color: var(--muted); }
.review p { font-size: .95rem; color: var(--body); max-width: 65ch; }

.contact-card .rating { font-size: 1rem; }
.phone-reveal__num { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: .04em; }
.phone-reveal__num.is-hidden { filter: blur(6px); user-select: none; }

/* ---------- Auth (sign up / log in) ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 73px); }
.auth__form { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 1rem + 5vw, 4.5rem) clamp(1.25rem, 0.5rem + 4vw, 3.5rem); }
.auth__inner { width: 100%; max-width: 440px; }
.auth__inner h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.auth__sub { margin-top: .6rem; color: var(--body); }
.auth__form form { margin-top: 1.8rem; }
.auth__alt { margin-top: 1.5rem; font-size: var(--t-sm); color: var(--body); }
.auth__alt a { color: var(--brick); font-weight: 700; }
.auth__legal { margin-top: 1.2rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.auth__legal a { color: var(--brick); text-decoration: underline; }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkrow { display: flex; align-items: flex-start; gap: .55rem; font-size: var(--t-sm); color: var(--body); }
.checkrow input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brick); flex: none; }

/* role toggle */
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.6rem; }
.role-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-opt label { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; height: 100%;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.role-opt label svg { width: 1.5rem; height: 1.5rem; color: var(--brick); margin-bottom: .15rem; }
.role-opt strong { font-size: .95rem; color: var(--ink); }
.role-opt span { font-size: var(--t-xs); color: var(--muted); }
.role-opt label:hover { border-color: var(--line-ink); }
.role-opt input:checked + label { border-color: var(--brick); background: color-mix(in oklab, var(--brick) 8%, white); }
.role-opt input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }

/* auth aside panel */
.auth__aside { background: var(--brick-deep); color: oklch(0.96 0.01 60); display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: clamp(2rem, 1rem + 5vw, 4.5rem); position: relative; overflow: hidden; }
.auth__aside h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); color: #fff; line-height: 1.15; max-width: 18ch; }
.auth__aside .mark__ring-word { color: var(--signal-bright); }
.auth-points { display: grid; gap: 1rem; }
.auth-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.auth-points svg { width: 1.4rem; height: 1.4rem; color: var(--signal-bright); flex: none; }
.auth__aside-foot { font-size: var(--t-sm); color: oklch(0.85 0.02 60); border-top: 1px solid oklch(1 0 0 / 0.15); padding-top: 1.25rem; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 232px 1fr; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: start; }
.dash__nav { position: sticky; top: 96px; display: grid; gap: .2rem; }
.dash__nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--r-md); color: var(--body); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.dash__nav a svg { width: 1.2rem; height: 1.2rem; color: var(--muted); flex: none; }
.dash__nav a:hover { background: var(--paper-2); }
.dash__nav a.is-active { background: color-mix(in oklab, var(--brick) 9%, white); color: var(--brick-deep); }
.dash__nav a.is-active svg { color: var(--brick); }
.dash__nav .dash__nav-sep { height: 1px; background: var(--line); margin: .6rem .4rem; }

.dash__greeting h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.dash__greeting p { color: var(--body); margin-top: .4rem; }
.dash__greeting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.stat-tile { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.25rem 1.4rem; }
.stat-tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1; }
.stat-tile span { display: block; margin-top: .4rem; font-size: var(--t-sm); color: var(--muted); }

.dash-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.dash-card__head h2, .dash-card__head h3 { font-size: 1.15rem; }
.dash-card__head a { font-size: var(--t-sm); font-weight: 700; color: var(--brick); }

.dash-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.dash-row:first-of-type { border-top: none; }
.dash-row__body { min-width: 0; flex: 1; }
.dash-row__title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.dash-row__meta { font-size: var(--t-sm); color: var(--muted); margin-top: .2rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.dash-row__side { text-align: right; flex: none; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); font-weight: 700; padding: .3rem .7rem; border-radius: var(--r-pill); }
.pill--open { background: color-mix(in oklab, var(--live) 15%, white); color: color-mix(in oklab, var(--live) 72%, black); }
.pill--new { background: color-mix(in oklab, var(--signal) 22%, white); color: var(--cta-ink); }
.pill--muted { background: var(--paper-2); color: var(--muted); }
.dash-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.dash-empty svg { width: 2.5rem; height: 2.5rem; color: var(--line-ink); margin-bottom: .6rem; }

.progress { height: .55rem; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; margin: .7rem 0 .4rem; }
.progress span { display: block; height: 100%; background: var(--signal-bright); border-radius: inherit; }

/* Clickable stat tile (e.g. Unread messages) — behaves like the static ones + hover. */
a.stat-tile { display: block; text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
a.stat-tile:hover { border-color: var(--brick); background: var(--paper-2); }

/* Compact profile nudge on the dashboard (full editor lives on /edit-profile/). */
.dash-muted { color: var(--muted); font-size: var(--t-sm); margin: .35rem 0 0; }
.profile-nudge { display: flex; align-items: center; gap: 1.4rem; }
.profile-nudge__bar { flex: 1; min-width: 0; }
.profile-nudge__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .1rem; }
.profile-nudge__head h2 { font-size: 1.15rem; }
.profile-nudge__pct { font-weight: 800; color: var(--brick); font-variant-numeric: tabular-nums; }
.profile-nudge .btn { flex: none; }
.profile-nudge.is-complete .profile-nudge__head h2 { color: var(--brick); }
@media (max-width: 560px) { .profile-nudge { flex-direction: column; align-items: stretch; } .profile-nudge .btn { width: 100%; } }

/* Profile-strength meter at the top of the /edit-profile/ page. */
.profile-meter { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.1rem 1.6rem 1.3rem; margin-bottom: 1.5rem; }
.profile-meter__top { display: flex; align-items: baseline; gap: .6rem; }
.profile-meter__pct { font-size: 1.6rem; font-weight: 800; color: var(--brick); font-variant-numeric: tabular-nums; }
.profile-meter__label { color: var(--body); font-weight: 600; }
.profile-meter__todo { color: var(--muted); font-size: var(--t-sm); margin: .35rem 0 0; }
.profile-meter.is-complete .progress span { background: var(--brick); }

.st-form-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1.3rem; }

/* ---------- Polish ---------- */
.jd h1, .profile-id h1 { text-wrap: balance; }
.form-wrap > aside { position: sticky; top: 96px; }
.section + .section.board { padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .jd { grid-template-columns: 1fr; }
  .jd__aside { position: static; }
  .search-bar { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-wrap > aside { position: static; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__aside { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: .4rem; padding-bottom: .5rem; margin-bottom: 1rem; }
  .dash__nav .dash__nav-sep { display: none; }
}
@media (max-width: 560px) {
  .board-toolbar { flex-direction: column; align-items: flex-start; }
  .jd__gallery { grid-template-columns: 1fr; }
  .jd__gallery-main.ph-img { min-height: 0; } /* drop the 320px floor so the 16:10 aspect-ratio sizes it (~200px), not a full-screen void */
  .jd__gallery-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .profile-stats { gap: 1.1rem 2rem; }
  .dash-stats { grid-template-columns: 1fr; }
}

/* ---------- Form feedback (error / note) ---------- */
.st-form-error{background:#fdecec;border:1px solid #e7b9b9;color:#7a1f1f;padding:10px 14px;border-radius:10px;margin:0 0 14px}
.st-form-note{background:#eef6f0;border:1px solid #bcdcc6;color:#1f5b34;padding:10px 14px;border-radius:10px;margin:0 0 14px}
.st-form-note--err{background:#fbeceb;border-color:#e6b9b4;color:#8a2b22}
.btn--danger{color:#8f1d11;border-color:#d9b1ab}
.btn--danger:hover{background:#fdecec;border-color:#8f1d11;color:#8f1d11;transform:translateY(-2px)}

/* ---------- Dashboard empty states ---------- */
.st-empty-state { padding: 2.2rem 1rem; text-align: center; color: var(--body); }
.st-empty-state__heading { font-size: var(--t-lead); font-weight: 700; color: var(--ink); margin: 0 0 .5rem; }
.st-empty-state p { margin: 0 0 1.2rem; }
.st-empty-state .btn { min-width: 10rem; }

/* ---------- Role guard panel ---------- */
.st-role-guard { background: oklch(0.45 0.11 150 / .05); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.st-role-guard p { flex: 1 1 260px; margin: 0; font-size: var(--t-sm); }

/* ---------- Role switcher pill ---------- */
.st-role-switch { margin: 0 0 1.2rem; }
.st-role-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-sm); font-weight: 600; color: var(--brick); background: oklch(0.45 0.11 150 / .08); border: 1px solid oklch(0.45 0.11 150 / .25); border-radius: 999px; padding: .35rem .9rem; text-decoration: none; transition: background .15s; }
.st-role-pill:hover, .st-role-pill:focus-visible { background: oklch(0.45 0.11 150 / .15); }
.st-role-pill:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ---------- Profile form fields ---------- */
.st-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; border: 0; padding: 0; min-inline-size: 0; }
.st-field label, .st-field legend { font-size: var(--t-sm); font-weight: 700; color: var(--ink); padding: 0; }
.st-field__hint { font-weight: 400; color: var(--muted); margin-left: .3rem; }
.st-field input:is([type="text"],[type="email"],[type="tel"],[type="password"],[type="number"],[type="url"],[type="search"]),
.st-field textarea,
.st-field input[type="file"] { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-md, 10px); padding: .6rem .8rem; font-size: var(--t-base); font-family: inherit; background: var(--paper); color: var(--ink); transition: border-color .15s; }
.st-field input:is([type="text"],[type="email"],[type="tel"],[type="password"],[type="number"],[type="url"],[type="search"]):focus,
.st-field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px oklch(0.45 0.11 150 / .15); }
.st-field input[type="file"] { padding: .45rem .7rem; cursor: pointer; }
.st-field textarea { resize: vertical; min-height: 6rem; }
.st-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem .8rem; margin-top: .3rem; }
.st-check { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--ink); cursor: pointer; min-height: 48px; }
.st-check input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--brick); flex-shrink: 0; cursor: pointer; }
.st-checkbox { display: flex; align-items: flex-start; gap: .55rem; font-size: var(--t-sm); color: var(--ink); cursor: pointer; line-height: 1.4; padding: .3rem 0; }
.st-checkbox input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .12rem; accent-color: var(--brick); flex-shrink: 0; cursor: pointer; }
.st-field--group { gap: .5rem; }
.st-field__help { font-weight: 400; color: var(--muted); margin: 0 0 .2rem; }
.st-field__opt { font-weight: 400; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brick); }
#st-profile-form .btn { margin-top: .4rem; }

/* ---------- Homeowner dashboard — job list ---------- */
.job-list { list-style: none; padding: 0; margin: 0; }
.pill--hired { background: color-mix(in oklab, #3b82f6 14%, white); color: #1e3a8a; }
.job-actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .65rem; }
.job-action { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .85rem; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: var(--brick-deep); background: color-mix(in oklab, var(--brick) 8%, white); border: 1.5px solid oklch(0.45 0.11 150 / .25); text-decoration: none; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.job-action:hover { background: color-mix(in oklab, var(--brick) 16%, white); border-color: var(--brick); }
.job-action:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.job-action--danger { color: #7a1f1f; background: #fdecec; border-color: #e7b9b9; }
.job-action--danger:hover { background: #fbdada; border-color: #8f1d11; color: #7a1f1f; }

/* --- QA (2026-07-01): tap-target sizing — WCAG 2.5.8, ≥44px on touch --- */
.sort-links { flex-wrap: wrap; gap: .25rem .5rem; }
.sort-links a { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .55rem; border-radius: var(--r-sm, 8px); }
.sort-links a:hover { background: color-mix(in oklab, var(--brick) 8%, white); }
.sort-links a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

@media (pointer: coarse) {
  /* Touch devices: comfortable 44px targets on the board filter controls and the
     mobile menu. Footer links are intentionally left at their natural (tight)
     spacing — the compact footer is the intended look on every page. */
  .fchip,
  .sort-links a,
  .board-sort select { min-height: 44px; }
  .fchip { display: inline-flex; align-items: center; }
  .mobile-menu nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* --- QA (2026-07-01): prose for content pages (About / Contact / Privacy / Terms) --- */
.prose { max-width: 72ch; color: var(--body); font-size: 1.02rem; line-height: 1.7; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--ink); margin: 2.3rem 0 .7rem; line-height: 1.2; text-wrap: balance; }
.prose h3 { font-size: 1.08rem; color: var(--ink); margin: 1.6rem 0 .5rem; font-weight: 700; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose__updated { display: inline-block; font-size: var(--t-sm); color: var(--body); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .8rem; margin: 0 0 1.6rem; }
.prose__lead { font-size: var(--t-lead); color: var(--ink); margin-bottom: 1.3rem; }

/* ============ 404 — "not on the board" ============ */
.nf { padding-block: clamp(4rem, 2.5rem + 6vw, 8.5rem); }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); align-items: center; }
.nf__code { font-size: var(--t-sm); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brick); }
.nf h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); margin-top: .6rem; max-width: 14ch; }
.nf .lead { margin-top: 1.15rem; }
.nf__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }
.nf__popular { margin-top: 2.4rem; font-size: var(--t-sm); color: var(--body); max-width: 52ch; }
.nf__popular a { color: var(--brick); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nf__popular a:hover { color: var(--brick-deep); }

/* Ghosted job card — the space on the board where the page should be */
.nf__visual { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }
.nf-card { position: relative; z-index: 1; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 2.1rem 1.6rem 1.7rem; transform: rotate(-2.2deg); }
.nf-card--behind { position: absolute; inset: 0; z-index: 0; background: var(--paper-2); border: 1px solid var(--line); transform: rotate(1.8deg) translate(12px, 10px); padding: 0; }
.nf-card__pin { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--signal-bright); box-shadow: inset 0 -2px 4px rgba(0,0,0,.22), 0 2px 5px rgba(44,40,34,.3); }
.nf-card__tag { position: absolute; top: .9rem; right: .9rem; background: var(--brick); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .26rem .55rem; border-radius: var(--r-pill); }
.nf-card__line { display: block; height: 13px; border-radius: 7px; background: var(--paper-2); margin-top: 1rem; }
.nf-card__line--title { height: 20px; width: 68%; background: var(--line); margin-top: .3rem; }
.nf-card__line--short { width: 44%; }
.nf-card__foot { display: flex; gap: .6rem; margin-top: 1.6rem; }
.nf-card__foot span { height: 26px; flex: 0 0 92px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .nf__copy > * { animation: hero-in .6s var(--ease) backwards; }
  .nf__copy > *:nth-child(2) { animation-delay: 60ms; }
  .nf__copy > *:nth-child(3) { animation-delay: 120ms; }
  .nf__copy > *:nth-child(4) { animation-delay: 180ms; }
  .nf__copy > *:nth-child(5) { animation-delay: 240ms; }
  .nf__visual { animation: hero-in .7s var(--ease) .18s backwards; }
}

@media (max-width: 880px) {
  .nf__grid { grid-template-columns: 1fr; }
  .nf__visual { max-width: 300px; margin-inline: 0; }
  .nf-card { padding: 1.7rem 1.3rem 1.4rem; }
}
@media (max-width: 430px) {
  .nf__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 404 ring: hug the single word "board" (the default inset is tuned for the
   hero's two-word phrase and rides up into the line above here) */
.nf .mark__ring { inset: -6% -24% -28% -10%; }

/* ============ Category landing content (/jobs/{category}/) ============ */
.catl { padding-top: 0; }
.catl__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start;
  border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.catl__main h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.catl__main > p { margin-top: .9rem; max-width: 65ch; }
.catl__main h3 { margin-top: 2.4rem; font-size: 1.15rem; }
.catl__faqhead { margin-top: 3rem; }
.catl__tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .65rem 1.4rem; margin-top: 1.1rem; max-width: 62ch; }
.catl__tasks li { display: flex; gap: .55rem; align-items: flex-start; color: var(--body); }
.catl__tasks svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .3rem; color: var(--brick); }
.catl__faqs { display: grid; gap: .75rem; margin-top: 1.2rem; max-width: 70ch; }

.catl__aside { position: sticky; top: 96px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem 1.5rem; }
.catl__aside h3 { font-size: 1.2rem; }
.catl__aside h4 { margin-top: 1.5rem; font-size: .85rem; letter-spacing: .02em; }
.catl__steps { counter-reset: catl; display: grid; gap: .85rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.catl__steps li { counter-increment: catl; display: flex; gap: .7rem; align-items: flex-start; color: var(--body); }
.catl__steps li::before { content: counter(catl); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--brick); color: #fff; font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.catl__aside .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }
.catl__note { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); font-size: var(--t-sm); color: var(--body); }
.catl__areas { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.catl__areas a { display: inline-block; font-size: var(--t-sm); font-weight: 600; color: var(--brick);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .85rem; }
.catl__areas a:hover { border-color: var(--brick); }

@media (max-width: 900px) {
  .catl__grid { grid-template-columns: minmax(0, 1fr); }
  .catl__aside { position: static; }
}

/* ============ Report this job/profile ============ */
.report { margin-top: 1.1rem; }
.report__link { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; list-style: none;
  font-size: var(--t-sm); font-weight: 600; color: var(--muted); padding: .35rem 0; }
.report__link::-webkit-details-marker { display: none; }
.report__link svg { width: .95rem; height: .95rem; }
.report__link:hover { color: var(--brick); }
.report__form { margin-top: .9rem; padding: 1.1rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); }
.report__form .btn { min-height: 44px; }

/* ---------------- Trader payments (pay-per-warm-lead) ---------------- */
.st-credits__bal { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.st-credits__bal b { color: var(--brick); font-size: 1.05rem; }
.st-credits__lead { color: var(--body); margin: .25rem 0 1rem; }
.st-credits__buy { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.st-pkg { display: flex; flex-direction: column; gap: .15rem; align-items: flex-start;
  min-height: 48px; padding: .7rem 1.1rem; background: #fff; cursor: pointer;
  border: 1.5px solid var(--brick); border-radius: var(--r-md);
  transition: background .15s ease, color .15s ease, transform .15s ease; }
.st-pkg:hover { background: var(--brick); color: #fff; transform: translateY(-1px); }
.st-pkg:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.st-pkg__c { font-weight: 600; }
.st-pkg__p { font-size: 1.15rem; font-weight: 800; }
.st-pkg__u { font-size: var(--t-sm); opacity: .8; }
.st-credits__fine, .msg-unlock__fine { font-size: var(--t-sm); color: var(--muted); margin-top: .5rem; }

.msg-bubble--locked .msg-bubble__masked { font-style: italic; color: var(--muted);
  background: var(--paper); border: 1.5px dashed var(--brick); border-radius: var(--r-md);
  padding: .55rem .8rem; display: inline-block; }
.msg-unlock { margin-top: 1rem; padding: 1.25rem; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-md); }
.msg-unlock__lead { margin: 0 0 .9rem; }
.msg-unlock .btn { min-height: 48px; }

/* ---------------- Affordance fixes (messaging polish) ---------------- */
/* Inline links inside status notes must read as links, not body text. */
.st-form-note a { color: var(--brick-deep, #14532a); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.st-form-note a:hover { text-decoration: none; }
.st-form-note a:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 3px; }

/* Message rows: whole row is clickable — reinforce with a hover lift + chevron. */
.msg-list__item a { position: relative; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.msg-list__item .msg-list__body { padding-right: 1.4rem; }
.msg-list__item a::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem;
  border-right: 2px solid var(--muted); border-top: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.msg-list__item a:hover { box-shadow: var(--shadow-soft); }
.msg-list__item a:hover::after { border-color: var(--brick); transform: translateY(-50%) translateX(3px) rotate(45deg); }
.msg-list__item a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .msg-list__item a, .msg-list__item a::after { transition: none; }
}

/* ==================== Messaging inbox (3-pane) ==================== */
.mbox-wrap { max-width: min(1360px, 100%); }
.mbox { display: grid; grid-template-columns: 300px minmax(0, 1fr) 288px; gap: 1.1rem; align-items: start; }
.mbox__list, .mbox__main { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }

/* left rail */
.mbox__list { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100dvh - 108px); overflow: hidden; }
.mbox__list-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.mbox__list-head h1 { font-size: 1.2rem; margin: 0; }
.mbox__list-cta { font-size: var(--t-sm); font-weight: 700; color: var(--brick); }
.mbox__list-empty { padding: 1.5rem 1.1rem; color: var(--muted); font-size: var(--t-sm); display: grid; gap: .8rem; justify-items: start; }
.mbox__threads { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; }
.mbox__thread { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: background-color var(--dur) var(--ease); }
.mbox__thread:hover { background: var(--paper-2); }
.mbox__thread.is-active { background: color-mix(in oklab, var(--brick) 9%, white); }
.mbox__thread .avatar { flex: none; }
.mbox__thread-body { min-width: 0; flex: 1; display: grid; gap: .1rem; }
.mbox__thread-top { display: flex; align-items: baseline; gap: .5rem; }
.mbox__thread-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbox__thread-time { margin-left: auto; flex: none; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.mbox__thread-snip { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbox__thread.is-unread .mbox__thread-name, .mbox__thread.is-unread .mbox__thread-snip { color: var(--ink); font-weight: 700; }
.mbox__thread-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brick); }

/* centre pane */
.mbox__main { display: flex; flex-direction: column; min-height: 480px; overflow: hidden; }
.mbox__head { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--line); }
.mbox__back { display: none; font-size: 1.35rem; color: var(--muted); text-decoration: none; line-height: 1; }
.mbox__head .avatar { flex: none; }
.mbox__head-id { min-width: 0; }
.mbox__head-id h2 { margin: 0; font-size: 1.15rem; }
.mbox__head-sub { margin: .12rem 0 0; font-size: var(--t-sm); color: var(--muted); }
.mbox__head-sub a { color: var(--brick); font-weight: 600; }
.mbox__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.mbox__chosen { color: var(--brick); font-weight: 700; font-size: var(--t-sm); }
.mbox__main .st-form-note { margin: .9rem 1.25rem 0; }
.mbox__main .msg-thread { flex: 1 1 auto; max-height: 56vh; overflow-y: auto; border: none; border-radius: 0; background: transparent; margin: 0; padding: 1.25rem; }
.mbox__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.mbox__foot .msg-form, .mbox__foot .msg-unlock { margin: 0; }
.mbox__foot .msg-safety { margin: 0 0 .6rem; }
/* The foot already supplies side padding — drop the note's own horizontal margin
   so it lines up with the composer instead of sitting double-indented. */
.mbox__foot .st-form-note { margin: 0 0 .7rem; }
.mbox__foot .msg-form .btn { min-height: 48px; }

/* ===== Agreement panel (offer / accept / deliver / confirm / cancel) ===== */
/* ---- Agreement deal-bar: a slim status strip above the composer ---- */
.ag-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%;
  padding: .6rem 1.25rem; border: none; border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--brick) 3%, var(--surface)); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease); }
.ag-bar:hover { background: color-mix(in oklab, var(--brick) 7%, var(--surface)); }
.ag-bar:focus-visible { outline: 2px solid var(--brick); outline-offset: -2px; }
.ag-bar__info { min-width: 0; display: grid; gap: .05rem; }
.ag-bar__label { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .3rem; }
.ag-bar__tick { color: var(--brick); }
.ag-bar__sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bar__cue { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .85rem;
  padding: .42rem .85rem; border-radius: 999px; border: 1.5px solid var(--brick); color: var(--brick); background: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.ag-bar__chev { font-size: .62rem; line-height: 1; }
.ag-bar:hover .ag-bar__cue { background: color-mix(in oklab, var(--brick) 12%, var(--surface)); }
/* attention = a real action is waiting for THIS viewer: turn the cue into a solid CTA */
.ag-bar.is-attention { background: color-mix(in oklab, var(--brick) 9%, var(--surface)); }
.ag-bar.is-attention .ag-bar__cue { background: var(--brick); border-color: var(--brick); color: #fff; }
.ag-bar.is-attention:hover .ag-bar__cue { background: var(--brick-deep, #14532a); border-color: var(--brick-deep, #14532a); }

/* ---- Agreement drawer: native <dialog> bottom-sheet (top layer, escapes overflow) ---- */
.ag-drawer { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px;
  max-height: min(86vh, 660px); overflow-y: auto; padding: 0; border: none;
  border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 44px rgba(20, 32, 26, .22); }
.ag-drawer::backdrop { background: rgba(18, 28, 22, 0); }
.ag-drawer[open]::backdrop { background: rgba(18, 28, 22, .46); }
.ag-drawer__grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: .7rem auto .1rem; }
.ag-drawer__x { position: absolute; top: .5rem; right: .55rem; width: 48px; height: 48px; display: grid; place-items: center;
  border: none; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 10px; }
.ag-drawer__x:hover { background: var(--paper-2); color: var(--ink); }
.ag-drawer__x:focus-visible { outline: 2px solid var(--brick); outline-offset: -2px; }
.ag-drawer__body { padding: .3rem 1.4rem 1.6rem; }
.ag-drawer__body .ag-title { margin: 0 0 .3rem; }
.ag-drawer__body .ag-offer-form .btn, .ag-drawer__body .ag-deliver-form .btn,
.ag-drawer__body .ag-review-form .btn { width: 100%; }
.ag-drawer__body .btn { min-height: 48px; }
.ag-drawer__body .ag-actions { margin-top: .5rem; }
/* slide-up + backdrop fade — progressive, degrades to an instant open where unsupported */
@media (prefers-reduced-motion: no-preference) {
  .ag-drawer { transform: translateY(101%);
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), overlay .34s allow-discrete, display .34s allow-discrete; }
  .ag-drawer[open] { transform: translateY(0); }
  @starting-style { .ag-drawer[open] { transform: translateY(101%); } }
  .ag-drawer::backdrop { transition: background-color .34s ease, overlay .34s allow-discrete, display .34s allow-discrete; }
  @starting-style { .ag-drawer[open]::backdrop { background: rgba(18, 28, 22, 0); } }
}
.ag-title { font-weight: 800; font-size: 1.02rem; color: var(--brick-deep, #14532a); }
.ag-terms { margin: .1rem 0 .5rem; font-size: .95rem; line-height: 1.4; }
.ag-terms b { font-size: 1.05rem; }
.ag-muted { color: var(--muted); font-size: .86rem; margin: .1rem 0 .5rem; }
.ag-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ag-actions--sub { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.ag-form { margin: 0; }
.ag-offer-form, .ag-deliver-form, .ag-review-form { display: grid; gap: .7rem; margin-top: .9rem; }
.ag-lbl { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.ag-lbl input[type=text], .ag-lbl input[type=number], .ag-lbl textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font: inherit; font-weight: 400; }
.ag-context { font-size: .82rem; color: var(--muted); margin: 0 0 .1rem; }
.ag-hint { font-weight: 400; color: var(--muted); }
.ag-photos { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .5rem; }
.ag-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ag-rate { border: 0; padding: 0; margin: 0; }
.ag-rate legend { font-size: .82rem; font-weight: 600; padding: 0; color: var(--ink); }
.ag-stars { display: inline-flex; flex-direction: row-reverse; gap: .05rem; }
.ag-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ag-stars label { color: var(--line); font-size: 1.55rem; line-height: 1; cursor: pointer; transition: color var(--dur) var(--ease); }
.ag-stars label:hover, .ag-stars label:hover ~ label, .ag-stars input:checked ~ label { color: #eab308; }
.ag-stars input:focus-visible + label { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 4px; }
.ag-foot { font-size: .76rem; color: var(--muted); margin: 1rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); }
@media (max-width: 560px) {
  .ag-drawer { max-width: 100%; border-radius: 16px 16px 0 0; }
  .ag-bar { padding-inline: 1rem; }
}
.mbox__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 3rem 1.5rem; color: var(--muted); }
.mbox__empty svg { width: 2.8rem; height: 2.8rem; color: color-mix(in oklab, var(--brick) 40%, #fff); }
.mbox__empty-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0; }
.mbox__empty-sub { margin: 0; max-width: 34ch; }

/* right pane */
.mbox__aside { position: sticky; top: 84px; display: grid; gap: 1rem; }
.mbox__card { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.1rem 1.15rem; }
.mbox__card-title { font-size: var(--t-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.mbox__party { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.mbox__party-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.mbox__party-sub { font-size: var(--t-sm); color: var(--muted); }
.mbox__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mbox__facts li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--body); }
.mbox__facts svg { width: 1.05rem; height: 1.05rem; color: var(--muted); flex: none; }
.mbox__facts b { color: var(--ink); font-weight: 600; }
.mbox__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.mbox__wide { width: 100%; margin-top: 1rem; }
.mbox__job-title { display: block; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: .8rem; line-height: 1.35; }
.mbox__job-title:hover { color: var(--brick); }
.mbox__muted { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.mbox__muted a { color: var(--brick); font-weight: 600; }
.mbox__safety { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; padding: 0 .25rem; }

@media (max-width: 1100px) {
  .mbox { grid-template-columns: 264px minmax(0, 1fr); }
  .mbox__aside { display: none; }
}
@media (max-width: 720px) {
  .mbox { grid-template-columns: 1fr; gap: 1rem; }
  .mbox__list { position: static; max-height: 60vh; }
  .mbox__aside { display: grid; position: static; }
  .mbox__back { display: inline; }
  .mbox--thread .mbox__list { display: none; }
  .mbox__main .msg-thread { max-height: 52vh; }
}

/* ---------------- Role switch (dual-role dashboard toggle) ---------------- */
.role-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.role-switch__opt { padding: .5rem .95rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 700; color: var(--body); text-decoration: none; line-height: 1; white-space: nowrap; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.role-switch__opt:hover { color: var(--ink); }
.role-switch__opt.is-active { background: var(--brick); color: #fff; }
.role-switch__opt:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .role-switch__opt { transition: none; } }
