/* BidSprouts — work-order board. Condensed heavy headings, job tickets with mono job numbers,
   hi-vis amber reserved for the primary action. Light and dark follow the visitor's system setting. */
:root {
  --bg: #EEF1F5; --surface: #FFFFFF; --sunk: #E4E9EF; --ink: #15202D; --muted: #586476;
  --line: #D3DAE3; --accent: #F2A900; --accent-ink: #1B1405; --link: #0B6B66;
  --good: #1E7A45; --good-bg: #DDF1E4; --warn: #8A5A00; --warn-bg: #FBEFD2;
  --off: #5E6673; --off-bg: #E3E6EA; --bad: #B3261E; --bad-bg: #FBE3E1;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F141B; --surface: #171E28; --sunk: #121820; --ink: #E7EBF1; --muted: #98A3B3;
    --line: #2A3442; --accent: #F5B82E; --accent-ink: #1B1405; --link: #58C6BD;
    --good: #6FD39A; --good-bg: #173325; --warn: #F2C46A; --warn-bg: #362A12;
    --off: #A2AAB6; --off-bg: #232B36; --bad: #FF8A80; --bad-bg: #3A1B19;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; font-variation-settings: "wdth" 78; }
h2 { font-size: 20px; font-weight: 750; font-variation-settings: "wdth" 85; margin: 28px 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.num, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; font-variation-settings: "wdth" 70; text-transform: uppercase; color: var(--ink); letter-spacing: -.01em; }
.brand span { background: var(--accent); color: var(--accent-ink); padding: 0 5px; border-radius: 4px; margin-left: 1px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-weight: 600; }
nav a.here { color: var(--ink); }
main { max-width: 1040px; margin: 0 auto; padding: 22px 16px 60px; display: grid; gap: 18px; }
main > * { min-width: 0; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; border-top: 1px solid var(--line); }
.sub { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }

/* buttons */
.btn { display: inline-block; padding: 9px 15px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--muted); filter: none; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 11px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero + pulse */
.hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); text-transform: uppercase; font-variation-settings: "wdth" 70; }
.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pulse > div { padding: 11px 16px; border-right: 1px solid var(--line); min-width: 0; }
.pulse > div:last-child { border-right: 0; }
.pulse .k, .facts .k, .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pulse .v { font-family: var(--mono); font-size: 21px; font-weight: 600; margin-top: 2px; }
.pulse .rev { background: var(--sunk); }
.pulse a { font-size: 12px; font-weight: 600; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input { flex: 1 1 220px; }
.filters select { flex: 0 1 170px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.cats button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 11px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* job tickets */
.list { display: grid; gap: 10px; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); }
.ticket:hover { border-color: var(--muted); text-decoration: none; }
.ticket.featured { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.ticket .titleline { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.ticket h3 { font-size: 19px; font-weight: 700; font-variation-settings: "wdth" 88; }
.ticket .desc { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.ticket .side { grid-column: 2; grid-row: 1 / span 2; text-align: right; display: grid; gap: 2px; align-content: start; }
.ticket .price { font-weight: 600; font-size: 16px; }
.ticket .bidcount { font-size: 13px; color: var(--muted); }
.ticket .meta { grid-column: 1 / -1; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.jno { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .side { grid-column: 1; grid-row: auto; text-align: left; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
}

/* status pills */
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--off-bg); color: var(--off); white-space: nowrap; }
.pill.open, .pill.accepted { background: var(--good-bg); color: var(--good); }
.pill.assigned, .pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.featured { background: var(--accent); color: var(--accent-ink); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; border-radius: 4px; }
.tag.low { color: var(--good); border-color: currentColor; }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.panel.featured { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.job-head { display: flex; justify-content: space-between; gap: 12px 20px; align-items: start; flex-wrap: wrap; }
.job-head .price { font-size: 22px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts > div { background: var(--surface); padding: 8px 12px; min-width: 0; }
.facts .v { font-weight: 600; overflow-wrap: anywhere; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-width: 68ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 14px; }

/* bids */
.bid { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bid:first-child { border-top: 0; padding-top: 0; }
.bid .who { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.bid .amt { font-family: var(--mono); font-weight: 600; font-size: 17px; text-align: right; }
.bid .note { grid-column: 1 / -1; color: var(--muted); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bid .actions { grid-column: 1 / -1; }
.bid.won { background: var(--warn-bg); margin-inline: -10px; padding-inline: 10px; border-radius: 8px; }
.range { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }

/* forms */
.form { max-width: 620px; }
form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { form.grid { grid-template-columns: 1fr; } }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
input, select, textarea { width: 100%; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-width: 0; font-weight: 400; }
.panel input, .panel select, .panel textarea { background: var(--bg); }
textarea { min-height: 110px; resize: vertical; }
.err { color: var(--bad); margin: 0; min-height: 1.4em; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin: 0; }

/* metrics */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; }
.stat b { font-family: var(--mono); font-size: 24px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.hl { background: var(--sunk); }
.whatif { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.whatif input { width: 90px; }
.bars { display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: minmax(0, 170px) 1fr 32px; gap: 10px; align-items: center; font-size: 14px; }
.bars i { display: block; height: 10px; border-radius: 3px; background: var(--link); }
.bars .num { text-align: right; }

.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 32px 20px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty h3 { color: var(--ink); font-size: 20px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 10; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .18s ease-out; } @keyframes rise { from { transform: translate(-50%, 8px); opacity: .5; } } }

/* ---------- sign-up, verification and trust ---------- */
.verifybar { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); font-size: 14px; }
.verifybar > div { max-width: 1040px; margin: 0 auto; padding: 8px 16px; }
.verifybar a { color: inherit; font-weight: 700; text-decoration: underline; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 2px; }
.devnote { background: var(--sunk); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: 14px; }
label.check input { width: auto; margin-top: 3px; flex: none; }
.checks { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.checks li::before { content: "○"; display: inline-block; width: 1.3em; }
.checks li.ok { color: var(--good); } .checks li.ok::before { content: "✓"; }
.checks li.no { color: var(--bad); } .checks li.no::before { content: "✕"; }
.codebox { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; max-width: 220px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.badge.ok { color: var(--good); }
.badge.new { color: var(--warn); }
.trust { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 400; }
.person { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.bidtrust { grid-column: 1 / -1; }
.vrow { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.vmark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.vmark.ok { background: var(--good); border-color: var(--good); color: var(--surface); }
.contact { border-color: var(--good); }

/* ---------- shared bits ---------- */
.muted { color: var(--muted); }
.spacer { flex: 1; }
a.plain { color: inherit; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--bad); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--body); vertical-align: 1px; }
.btn.danger-solid { background: var(--bad); color: #fff; }
.ico { flex: none; vertical-align: -3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--sunk); border-radius: 99px; padding: 2px 10px; font-size: 13px; }

/* ---------- home: how it works + category chips ---------- */
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.how h2 { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-content: start; }
.steps li::before { content: counter(step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 15px var(--display); }
.steps span { color: var(--muted); font-size: 14px; }
.cats button { display: inline-flex; align-items: center; gap: 6px; }
.cats button .n { font: 600 11px var(--mono); background: var(--sunk); color: var(--muted); border-radius: 99px; padding: 0 6px; }
.cats button[aria-pressed="true"] .n { background: rgb(255 255 255 / .2); color: inherit; }
.catline { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- job cards with a cover photo ---------- */
.ticket.has-cover { grid-template-columns: 92px 1fr auto; }
.ticket.has-cover .cover { grid-row: 1 / span 3; }
.ticket.has-cover .meta { grid-column: 2 / -1; }
.cover { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--sunk); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover span { position: absolute; right: 4px; bottom: 4px; background: rgb(0 0 0 / .65); color: #fff; font: 600 11px var(--mono); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 560px) {
  .ticket.has-cover { grid-template-columns: 72px 1fr; }
  .ticket.has-cover .cover { width: 72px; height: 72px; grid-row: 1 / span 2; }
  .ticket.has-cover .side, .ticket.has-cover .meta { grid-column: 1 / -1; }
}

/* ---------- photo galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery.one { grid-template-columns: minmax(0, 420px); }
.gph { position: relative; margin: 0; display: grid; gap: 4px; }
.gph figcaption { font-size: 12px; color: var(--muted); }
.gopen { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--sunk); aspect-ratio: 4 / 3; width: 100%; }
.gopen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gopen:hover img { transform: scale(1.03); }
.x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.x:hover { background: var(--bad); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; margin: 0; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addphoto { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 104px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line); border-radius: 8px; color: var(--link); font-weight: 700; cursor: pointer; text-align: center; background: var(--bg); }
.thumbs .addphoto { width: 104px; aspect-ratio: auto; }
.addphoto:hover { border-color: var(--link); }
.addphoto input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.addphoto:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.addphoto small { color: var(--muted); font: 500 12px var(--mono); }
.pfcap { max-width: 360px; margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(8 12 18 / .92); display: grid; place-items: center; padding: 48px 56px; }
.lightbox figure { margin: 0; display: grid; gap: 8px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 6px; object-fit: contain; }
.lightbox figcaption { color: #cfd6df; font-size: 14px; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- stars and reviews ---------- */
.stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars .off { color: var(--line); }
.stars.big { font-size: 22px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.review { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; }
.starpick { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.starpick legend { font-weight: 700; margin-bottom: 4px; width: 100%; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 32px; color: var(--line); cursor: pointer; line-height: 1; display: block; }
.starpick label:hover, .starpick label:hover ~ label, .starpick input:checked ~ label { color: var(--accent); }
.starpick input:focus-visible + label { outline: 2px solid var(--link); border-radius: 4px; }

/* ---------- profiles ---------- */
.phead { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 24px var(--display); }
.pmain { display: grid; gap: 6px; min-width: 0; }
.headline { margin: 0; color: var(--muted); font-size: 16px; }
.pscore { text-align: right; display: grid; gap: 2px; justify-items: end; font-size: 14px; }
@media (max-width: 640px) { .phead { grid-template-columns: auto 1fr; } .pscore { grid-column: 1 / -1; text-align: left; justify-items: start; } }

/* ---------- messages ---------- */
.inbox { padding: 0; gap: 0; overflow: hidden; }
.thread { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.thread:first-child { border-top: 0; }
.thread:hover { background: var(--sunk); text-decoration: none; }
.thread.unread { background: var(--warn-bg); }
.tmain { min-width: 0; display: grid; gap: 2px; }
.ttop { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tlast { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tago { font-size: 13px; }
.msgs { display: grid; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: min(560px, 85%); display: grid; gap: 2px; }
.msg p { margin: 0; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg span { font-size: 12px; padding: 0 4px; }
.msg.them { justify-self: start; }
.msg.them p { background: var(--sunk); border-bottom-left-radius: 4px; }
.msg.me { justify-self: end; justify-items: end; }
.msg.me p { background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 64px; }

/* ---------- reports ---------- */
.reportform { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); max-width: 520px; grid-column: 1 / -1; }
.reportform textarea { min-height: 70px; }
.note.ok { color: var(--good); }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.rcard { gap: 10px; }
.rlist { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.logrow { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.logrow:first-child { border-top: 0; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table .r { text-align: right; }
.table tr:last-child td { border-bottom: 0; }
[hidden] { display: none !important; }
.stats.tiles6 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* =====================================================================
   THEME: "Neighborly" shapes in the hi-vis colors.
   Rounded cards, pill buttons, round category icons, photo-first job
   cards; navy ink, hi-vis amber for the main action, cool grey ground.
   This layer sits on top of the rules above and overrides them.
   ===================================================================== */
:root {
  --navy: #0F1720; --navy-2: #1A2533; --on-navy: #E7EBF1; --on-navy-muted: #AEB8C6;
  --t-amber: #FCEBC2; --t-slate: #DDE3EC; --t-teal: #D3ECE9; --t-sand: #ECE6DA;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --r-sm: 12px;
  --shadow: 0 1px 2px rgb(15 23 32 / .06), 0 8px 24px rgb(15 23 32 / .06);
  --shadow-lg: 0 18px 40px rgb(15 23 32 / .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0A1017; --navy-2: #141D29;
    --t-amber: #3A2F12; --t-slate: #222C39; --t-teal: #15302D; --t-sand: #2E2A22;
    --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 18px 40px rgb(0 0 0 / .5);
  }
}

body { font-size: 16px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: normal; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; text-transform: none; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.num, .price, .pulse .v, .stat b, .bid .amt { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }

/* header: navy bar */
.top { background: var(--navy); border-bottom: 0; }
.top-inner { max-width: 1180px; padding: 14px 24px; }
.brand { font-family: var(--display); font-variation-settings: normal; text-transform: none; font-size: 26px; color: var(--on-navy); display: inline-flex; align-items: center; gap: 2px; letter-spacing: -.02em; }
.brand span { background: none; color: #5CC7BE; border-radius: 0; padding: 0; margin-left: 0; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--navy); display: inline-grid; place-items: center; margin-right: 10px; flex-shrink: 0; }
nav { gap: 6px 22px; }
nav a { color: var(--on-navy-muted); }
nav a:hover { color: var(--on-navy); text-decoration: none; }
nav a.here { color: var(--on-navy); }
nav .btn.small { padding: 9px 18px; font-size: 15px; }
main { max-width: 1180px; padding: 28px 24px 72px; gap: 28px; }
footer { border-top: 0; }

/* buttons and inputs */
.btn { border-radius: 99px; padding: 11px 20px; font-weight: 800; }
.btn.small { padding: 7px 14px; }
.btn.ghost { box-shadow: none; }
input, select, textarea { border-radius: var(--r-sm); padding: 11px 14px; }
.panel input, .panel select, .panel textarea { background: var(--bg); border-color: transparent; }
.panel input:focus, .panel select:focus, .panel textarea:focus { border-color: var(--line); }

/* cards and panels: soft, rounded, no hard borders */
.panel, .stat, .empty, .how, .reportform, .tablewrap { border-radius: var(--r); }
.panel { border: 0; box-shadow: var(--shadow); padding: 24px; }
.panel.featured { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.panel.contact { box-shadow: var(--shadow), inset 0 0 0 2px var(--good); }
.facts { border-radius: var(--r-sm); }
.stat { border: 0; box-shadow: var(--shadow); padding: 18px; }
.stat b { font-size: 28px; }
.stat.hl { background: var(--t-amber); }
.empty { background: var(--surface); border-style: solid; border-color: transparent; box-shadow: var(--shadow); }
.form.panel { max-width: 680px; }
.pill { border-radius: 99px; padding: 3px 10px; }
.bid.won { border-radius: var(--r-sm); }
.confirm { border-radius: var(--r-sm); }
.devnote { border-radius: var(--r-sm); }
.gopen, .thumb, .cover { border-radius: 14px; }
.addphoto { border-radius: 14px; }
.avatar { background: var(--navy); color: var(--accent); }
.verifybar { background: var(--t-amber); }

/* ---------- home hero ---------- */
.hero2 { background: var(--navy); color: var(--on-navy); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; position: relative; overflow: hidden; }
.hero2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, transparent 18px 36px); opacity: .9; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero2 h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; color: var(--on-navy); }
.hero2 mark { background: var(--accent); color: var(--accent-ink); padding: 0 .18em; border-radius: 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero2 p { margin: 0; font-size: 18px; color: var(--on-navy-muted); max-width: 46ch; }
.searchpill { display: flex; gap: 8px; background: #FFFFFF; padding: 7px 7px 7px 22px; border-radius: 99px; max-width: 560px; box-shadow: var(--shadow-lg); }
.searchpill input { border: 0; background: transparent; padding: 10px 0; font-size: 17px; color: #15202D; flex: 1; min-width: 0; }
.searchpill input:focus { outline: none; }
.searchpill:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.searchpill .btn { padding: 12px 22px; flex: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { background: rgb(255 255 255 / .08); color: var(--on-navy); border: 1px solid rgb(255 255 255 / .16); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.quick button:hover { background: rgb(255 255 255 / .16); }
.livecard { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 20px 22px; display: grid; gap: 4px; box-shadow: var(--shadow-lg); align-self: center; }
.lc-title { font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.lc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.lc-row b { color: var(--ink); font-size: 20px; }
.livecard a { font-weight: 700; margin-top: 8px; font-size: 14px; }
@media (max-width: 820px) { .hero2 { grid-template-columns: 1fr; } .searchpill { padding-left: 16px; } .searchpill .btn { padding: 12px 16px; } }

/* ---------- how it works: tinted step cards ---------- */
.how { background: none; border: 0; padding: 0; }
.steps { gap: 16px; }
.steps li { background: var(--t-amber); border-radius: var(--r); padding: 22px; grid-template-columns: 1fr; gap: 8px; }
.steps li:nth-child(2) { background: var(--t-slate); }
.steps li:nth-child(3) { background: var(--t-teal); }
.steps li::before { grid-row: auto; width: 38px; height: 38px; background: var(--navy); color: var(--accent); font-family: var(--display); }
.steps b { font-family: var(--display); font-size: 20px; }
.steps span { color: var(--ink); opacity: .78; font-size: 15px; }

/* ---------- section blocks ---------- */
.block { display: grid; gap: 16px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 20px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.block-head .filters { flex: 1 1 420px; justify-content: flex-end; }
.block-head .filters input { flex: 1 1 200px; max-width: 300px; }
.block-head .filters select { flex: 0 1 160px; }

/* round category tiles */
.cattiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.cattile { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 14px; background: var(--surface); border: 0; border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; color: var(--ink); text-align: center; }
.cattile:hover { transform: translateY(-2px); }
.cattile[aria-pressed="true"] { box-shadow: var(--shadow), inset 0 0 0 2px var(--navy); }
.catcircle { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.catname { font-weight: 700; font-size: 14px; line-height: 1.2; }
.catn { font-size: 12px; color: var(--muted); }
.t-amber { background: var(--t-amber); } .t-slate { background: var(--t-slate); } .t-teal { background: var(--t-teal); } .t-sand { background: var(--t-sand); }
.t-ink { background: var(--navy); color: var(--accent) !important; }
@media (prefers-color-scheme: dark) { .cattile[aria-pressed="true"] { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); } }
@media (prefers-reduced-motion: no-preference) { .cattile, .jcard { transition: transform .15s ease, box-shadow .15s ease; } }

/* photo-first job cards */
.list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.list > .empty { grid-column: 1 / -1; }
.jcard { background: var(--surface); border-radius: 24px; padding: 10px; display: grid; grid-template-rows: auto 1fr; gap: 4px; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.jcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.jcard.featured { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.jphoto { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: var(--ink); background: var(--sunk); }
.jphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jphoto > .ico { opacity: .7; }
.jbadges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.jbadges .pill { box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.jcount { position: absolute; right: 10px; bottom: 10px; background: rgb(15 23 32 / .72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.jbody { padding: 10px 8px 6px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.jtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.jtop h3 { font-size: 19px; font-weight: 700; line-height: 1.2; min-width: 0; }
.jbudget { font-family: var(--display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.jdesc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jmeta { font-size: 14px; color: var(--muted); }
.jfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; flex-wrap: wrap; }
.bidpill { background: var(--t-amber); color: var(--ink); font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.bidpill.none { background: var(--t-slate); }

/* contractor band */
.proband { background: var(--navy); color: var(--on-navy); border-radius: 32px; padding: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.proband h2 { color: var(--on-navy); font-size: clamp(24px, 3.5vw, 34px); }
.proband p { margin: 6px 0 0; color: var(--on-navy-muted); }

/* small screens */
@media (max-width: 560px) {
  .top-inner { padding: 12px 16px; }
  main { padding: 20px 16px 56px; }
  .hero2 { border-radius: 24px; }
  .list { grid-template-columns: 1fr; }
}
.jphoto.t-amber { background: var(--t-amber); } .jphoto.t-slate { background: var(--t-slate); }
.jphoto.t-teal { background: var(--t-teal); } .jphoto.t-sand { background: var(--t-sand); }
@media (prefers-color-scheme: dark) {
  .hero2, .proband { background: #18222F; box-shadow: inset 0 0 0 1px #263243; }
}

/* =====================================================================
   GUIDED SCREENS: job wizard, welcome, to-do list, tracker, bid form
   ===================================================================== */
.earn { color: var(--accent); font-weight: 700; justify-self: start; }
.earn:hover { color: var(--on-navy); }

/* step-by-step job poster */
.wizard { max-width: 720px; width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.wz-head { display: grid; gap: 8px; }
.wz-count { font-weight: 700; color: var(--muted); font-size: 14px; }
.wz-bar { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.wz-card { gap: 18px; padding: clamp(20px, 4vw, 36px); }
.wz-card section { display: grid; gap: 14px; }
.wz-card h1 { font-size: clamp(26px, 4vw, 34px); }
.wz-card .sub { margin: -6px 0 0; }
input.big { font-size: 18px; padding: 14px 16px; }
.wz-card textarea { min-height: 150px; font-size: 16px; }
.wz-nav { display: flex; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.wz-nav .btn { min-width: 120px; padding: 13px 22px; font-size: 16px; }
.hints { margin: 0; padding: 14px 16px 14px 34px; background: var(--t-slate); border-radius: var(--r-sm); display: grid; gap: 4px; font-size: 14px; }
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cattile.pick { position: relative; box-shadow: none; border: 2px solid var(--line); padding: 14px 6px 12px; }
.cattile.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cattile.pick .catcircle { width: 48px; height: 48px; }
.cattile.pick:has(input:checked) { border-color: var(--accent); background: var(--t-amber); }
.cattile.pick:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.choices button:hover { border-color: var(--muted); }
.choices button[aria-pressed="true"] { border-color: var(--accent); background: var(--t-amber); }
.moneyin { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: var(--r-sm); padding: 0 16px; max-width: 260px; border: 2px solid transparent; }
.moneyin:focus-within { border-color: var(--accent); }
.moneyin span { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--muted); }
.moneyin input { border: 0; background: transparent !important; font-family: var(--display); font-size: 32px; font-weight: 800; padding: 10px 0; }
.moneyin input:focus { outline: none; }
.moneyin.small { max-width: 220px; }
.moneyin.small span { font-size: 22px; } .moneyin.small input { font-size: 24px; padding: 8px 0; }
.review-sum { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.sumrow { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; }
.sumrow:first-child { border-top: 0; }
.sumrow > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sumrow .linkbtn { color: var(--link); font-weight: 700; font-size: 14px; text-decoration: none; }

/* welcome chooser */
.welcome { max-width: 860px; width: 100%; margin: 0 auto; display: grid; gap: 18px; text-align: center; }
.welcome .sub { margin: 0 auto; }
.choicecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; text-align: left; }
.choicecard { display: grid; gap: 8px; justify-items: start; background: var(--surface); border: 2px solid transparent; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.choicecard:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.choicecard b { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.choicecard span { color: var(--muted); }
.choicecard .go { color: var(--link); font-weight: 800; margin-top: 6px; }
.choicecard .catcircle { width: 64px; height: 64px; }
.welcome .panel { text-align: left; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 14px; }
.guide-steps li { counter-increment: g; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: start; }
.guide-steps li::before { content: counter(g); grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; font: 800 15px var(--display); }
.guide-steps span { color: var(--muted); }
.guide-steps .btn { justify-self: start; margin-top: 6px; }

/* to-do list */
.todo { display: grid; gap: 10px; }
.todo-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); }
.todo-item:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.todo-item .catcircle { width: 44px; height: 44px; }
.todo-text { display: grid; gap: 2px; min-width: 0; }
.todo-text span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .todo-item { grid-template-columns: auto 1fr; } .todo-item .btn { grid-column: 2; justify-self: start; } }

/* job progress tracker */
.trackwrap { gap: 10px; padding: 18px 22px; }
.tracker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tstep { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; }
.tstep::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--line); }
.tstep:first-child::before { display: none; }
.tstep.done::before, .tstep.now::before { background: var(--accent); }
.tdot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); font-weight: 800; position: relative; z-index: 1; }
.tstep.done .tdot { background: var(--accent); color: var(--accent-ink); }
.tstep.now { color: var(--ink); }
.tstep.now .tdot { background: var(--navy); color: var(--accent); box-shadow: 0 0 0 4px var(--t-amber); }
.tracker-next { margin: 4px 0 0; padding: 10px 14px; background: var(--t-amber); border-radius: var(--r-sm); }
.tracker-note { padding: 10px 14px; background: var(--t-slate); border-radius: var(--r-sm); }
@media (max-width: 560px) { .tstep span:last-child { font-size: 11px; } .tdot { width: 26px; height: 26px; font-size: 12px; } .tstep::before { top: 12px; } }

/* bid form: numbered questions */
.bidsteps { display: grid; gap: 18px; }
.bstep { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.bstep > div { display: grid; gap: 8px; min-width: 0; }
.bstep label { color: var(--ink); font-size: 16px; font-weight: 700; }
.bnum { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; font: 800 14px var(--display); }
.daysin { max-width: 260px; }
