/*! InspectHub Pro · © 2026 FuelTestLabs LLC. All rights reserved. */
:root {
  --paper: #f5f3ee; --card: #ffffff; --ink: #0f1d2e; --ink2: #3b4a5c; --ink3: #6b7787; --line: #e2ded4; --line2: #cfc9bb;
  --sea: #0d5c63; --sea2: #0a4a50; --seaT: #e3efef; --amber: #c98a12; --amberT: #fbf1da; --red: #a83232; --redT: #f8e6e4; --ok: #2c6e3f; --okT: #e4f1e7;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0 0 .7em; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: #efece4; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 26px; padding-bottom: 60px; min-height: 70vh; }
.splash { padding: 80px 20px; max-width: 640px; }
.hide { display: none !important; }
.muted { color: var(--ink3); } .fine { color: var(--ink3); font-size: 13px; } .pre { white-space: pre-wrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .wrapit { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 6px; } .grow { flex: 1; min-width: 0; }
.narrow { max-width: 640px; margin: 0 auto; }
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-size: 14px; }

/* header / footer */
header.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
header.top .wrap { height: 60px; justify-content: space-between; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font: 700 19px var(--serif); }
.brand b { color: #9fd3d6; font-weight: 700; }
.mark { width: 34px; height: 34px; border-radius: 8px; display: block; flex: none; }
header nav { display: flex; gap: 4px; }
header nav a { white-space: nowrap; color: #d5dbe3; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
header nav a:hover { background: rgba(255,255,255,.08); color: #fff; } header nav a.on { background: rgba(255,255,255,.12); color: #fff; }
footer.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--ink3); font-size: 14px; }
footer.foot a { color: var(--ink2); text-decoration: none; } footer.foot .row { gap: 18px; margin-bottom: 8px; }

/* cards & bits */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; }
.card.accent { border-top: 4px solid var(--sea); }
.card.empty { text-align: center; padding: 34px; }
.notice { background: var(--amberT); border-left: 3px solid var(--amber); padding: 9px 12px; border-radius: 6px; }
.notice.bad { background: var(--redT); border-left-color: var(--red); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: #ece9e1; color: var(--ink2); margin-right: 6px; white-space: nowrap; }
.pill.ok, .pill.s-live, .pill.s-closed, .pill.s-booked { background: var(--okT); color: var(--ok); }
.pill.bad, .pill.s-cancelled, .pill.s-declined, .pill.s-expired, .pill.s-paused { background: var(--redT); color: var(--red); }
.pill.s-quoted, .pill.s-done, .pill.s-accepted, .pill.s-pending, .pill.s-changes { background: var(--amberT); color: #7a540a; }
.pill.big { font-size: 14px; padding: 5px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 3px 10px; border-radius: 6px; background: #f0ede6; color: var(--ink2); border: 1px solid var(--line); }
.chip.strong { background: var(--seaT); color: var(--sea2); border-color: #c6dfe0; } .chip.dim { opacity: .75; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink3); padding: 0 0 0 2px; }
.btnchip { cursor: pointer; font: inherit; font-size: 13px; } .btnchip:hover { border-color: var(--sea); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 5px; background: #eee; }
.badge.ok { background: var(--okT); color: var(--ok); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--seaT); color: var(--sea2); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.md { width: 44px; height: 44px; font-size: 16px; } .avatar.lg { width: 64px; height: 64px; font-size: 22px; } .avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.stars { color: var(--amber); letter-spacing: 1px; } .stars .dim { color: #d8d2c2; }
.rating { font-size: 14px; }
.price { font-weight: 700; white-space: nowrap; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px var(--sans); padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink3); }
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; } .btn.primary:hover { background: var(--sea2); }
.btn.ghost { background: transparent; } .btn.danger { color: var(--red); } .btn.danger:not(.ghost) { background: var(--red); color: #fff; border-color: var(--red); }
.btn.small { font-size: 13.5px; padding: 6px 11px; } .btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; } .btn.busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line2); border-radius: 7px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid #8cc6c9; outline-offset: 1px; border-color: var(--sea); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--sea); flex: none; }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; } .field > span { font-size: 13.5px; font-weight: 600; color: var(--ink2); } .field small { color: var(--ink3); font-size: 12.5px; }
.mini { display: flex; flex-direction: column; font-size: 12px; color: var(--ink3); gap: 2px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.4; } .check input[type=checkbox] { margin-top: 2px; } .check.small { font-size: 13px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.line { display: flex; gap: 8px; align-items: center; } .line > input:first-child { flex: 2; } .line .qty { width: 80px; flex: none; } .line .rate\$ { width: 110px; flex: none; }
.sub { padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 8px; } .sub.highlight { background: var(--amberT); border: 1px solid #ecd9a8; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 9px; border: 1.5px solid var(--line2); background: #fff; cursor: pointer; font: inherit; }
.opt b { font-size: 15.5px; } .opt span { font-size: 13px; color: var(--ink3); } .opt.on { border-color: var(--sea); background: var(--seaT); }
.chipin .row input { flex: 1; }
.sticky-save { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 0 -22px -20px; padding: 12px 22px; z-index: 2; }

/* home */
.hero { padding: 26px 0 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--sea); }
.hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 820px; }
.lead { font-size: 18px; color: var(--ink2); max-width: 760px; }
.search { display: grid; grid-template-columns: 2fr 1.5fr 1.2fr auto; gap: 10px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 18px 0 24px; box-shadow: 0 6px 24px rgba(15,29,46,.06); }
.search label { display: flex; flex-direction: column; gap: 4px; } .search label span { font-size: 12.5px; font-weight: 650; color: var(--ink3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ticks { padding: 0; list-style: none; margin: 0 0 16px; } .ticks li { padding-left: 24px; position: relative; margin-bottom: 9px; color: var(--ink2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 12px; } .steps p { margin: 2px 0 0; color: var(--ink2); font-size: 14.5px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.neutral { text-align: center; color: var(--ink3); font-size: 14px; max-width: 700px; margin: 10px auto; }

/* search results & profile */
.result { display: flex; gap: 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.result:hover { border-color: var(--sea); box-shadow: 0 4px 18px rgba(13,92,99,.08); }
.result h3 { margin: 0; } .headline { color: var(--ink2); margin: 2px 0 4px; }
.profile { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.card.head { display: flex; gap: 20px; align-items: flex-start; } .card.head h1 { margin-bottom: 4px; }
.sticky { position: sticky; top: 76px; }
table { width: 100%; border-collapse: collapse; }
table.rates td, table.rates th, table.lines td, table.lines th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.rates td:last-child, table.lines td:last-child, table.lines th:last-child { text-align: right; white-space: nowrap; }
table th { font-size: 12.5px; color: var(--ink3); font-weight: 650; }
tfoot td { border-bottom: 0 !important; font-size: 16px; }
.creds { list-style: none; padding: 0; margin: 0 0 8px; } .creds li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 14px; } .scores div { display: flex; gap: 8px; align-items: center; font-size: 14px; } .scores div span:first-child { flex: 1; }
.review { border-top: 1px solid var(--line); padding: 12px 0 4px; } .reply { background: #f4f2ec; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; }

/* me */
.status { border-left: 4px solid var(--amber); } .status.s-live { border-left-color: var(--ok); } .status.s-paused { border-left-color: var(--red); }
.credlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cred { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.cred.ok { border-color: #bcdcc4; background: #f6fbf7; } .cred.bad { border-color: #e7c3bf; background: #fdf7f6; }
.upload { border-top: 1px solid var(--line); padding-top: 14px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--sea); font-weight: 650; }
.decide { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }

/* jobs */
.list { padding: 6px 8px; }
.jobrow { display: flex; gap: 14px; align-items: center; padding: 12px 12px; border-radius: 8px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.jobrow:last-child { border-bottom: 0; } .jobrow:hover { background: #f8f6f1; } .jobrow.needs b { color: var(--sea2); }
.jobgrid { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.jobhead h1 { font-size: 25px; margin-bottom: 2px; }
.stepper { display: flex; list-style: none; padding: 0; margin: 14px 0; counter-reset: s; }
.stepper li { flex: 1; text-align: center; font-size: 13px; color: var(--ink3); position: relative; padding-top: 22px; }
.stepper li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #e6e2d8; color: var(--ink3); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #e6e2d8; }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { background: var(--sea); color: #fff; content: "✓"; } .stepper li.done::after, .stepper li.now::after { background: var(--sea); }
.stepper li.now { color: var(--ink); font-weight: 700; } .stepper li.now::before { background: var(--ink); color: #fff; }
.actions { border-left: 4px solid var(--sea); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 0; } .dl dt { color: var(--ink3); font-size: 14px; } .dl dd { margin: 0; }
.files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .file { display: flex; gap: 10px; align-items: center; }
details.complete { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; } details.complete summary { cursor: pointer; font-weight: 650; }
details.complete[open] summary { margin-bottom: 10px; }
.chat { position: sticky; top: 76px; display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 12px; min-height: 200px; }
.msg { max-width: 85%; background: #f0ede6; padding: 8px 12px; border-radius: 12px 12px 12px 3px; align-self: flex-start; }
.msg.mine { background: var(--seaT); align-self: flex-end; border-radius: 12px 12px 3px 12px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .msg span, .sys span { font-size: 11.5px; color: var(--ink3); }
.sys { align-self: center; text-align: center; font-size: 12.5px; color: var(--ink2); background: #f8f6f1; border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; max-width: 95%; }
.composer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; } .composer .row { justify-content: space-between; }
.raterow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.rate button { border: 0; background: none; font-size: 24px; color: #d8d2c2; cursor: pointer; padding: 0 2px; } .rate button.on { color: var(--amber); }

/* overlays */
.modal-back { position: fixed; inset: 0; background: rgba(15,29,46,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 100%; max-width: 470px; max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 720px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 9px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 92vw; font-size: 14.5px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--red); }

@media (max-width: 900px) {
  .profile, .jobgrid { grid-template-columns: 1fr; } .sticky, .chat { position: static; max-height: none; }
  .msgs { max-height: 60vh; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  h1 { font-size: 25px; } .card { padding: 16px; }
  .search, .two, .choice { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; }
  header nav a { padding: 8px 8px; font-size: 14px; } .brand span:last-child { display: none; }
  .card.head { flex-direction: column; } .result { flex-direction: column; gap: 10px; }
  .line { flex-wrap: wrap; } .line > input:first-child { flex-basis: 100%; }
  .scores { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 6px; }
}
.bid { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 10px; } .bid.won { background: var(--okT); margin: 0 -22px; padding: 16px 22px; }
.bid details summary { cursor: pointer; color: var(--sea); font-weight: 600; } .bid details[open] summary { margin-bottom: 8px; }
.price.big { font-size: 20px; }

/* rows with a separator dot: the dot belongs to the item that follows, never starts a line alone */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.jobrow .grow b { display: block; }
@media (max-width: 680px) {
  /* header: brand on top, the menu as its own evenly spaced row */
  header.top .wrap { height: auto; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .brand span:last-child { display: inline; font-size: 18px; }
  header nav { justify-content: space-between; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  header nav a { padding: 7px 8px; font-size: 14px; flex: 0 0 auto; }
  .sticky, .chat { top: auto; }
  /* page title rows: title on its own line, buttons below */
  main .row.between:has(> h1) { flex-direction: column; align-items: flex-start; gap: 10px; }
  main .row.between:has(> h1) > .row, main .row.between:has(> h1) > .btn { flex-wrap: wrap; }
  /* job / posting rows: text full width, amount and status underneath */
  .jobrow { flex-wrap: wrap; gap: 6px 10px; }
  .jobrow .grow { flex: 1 1 100%; }
  /* search results: avatar beside the name, price under it */
  .result { flex-direction: row; align-items: flex-start; } .result .avatar.lg { width: 48px; height: 48px; font-size: 17px; }
  .result .row.between { flex-direction: column; align-items: flex-start; gap: 2px; }
  /* rate card and quote tables: let the amount wrap instead of squeezing the label */
  table.rates td:last-child { white-space: normal; text-align: right; min-width: 92px; }
  table.rates td:first-child { width: 58%; }
  table.lines th:nth-child(2), table.lines td:nth-child(2) { width: 34px; }
  .card.head { align-items: flex-start; }
  .stepper li { font-size: 11.5px; }
  .jobhead h1 { font-size: 22px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .chips.edit + .row input { min-width: 0; }
}
.jobgrid > *, .profile > * { min-width: 0; }
main > .row.between:first-child { margin-bottom: 14px; }
@media (max-width: 900px) { .jobgrid, .profile { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .actions .row .btn { flex: 1 1 auto; } }
.chip.met { background: var(--okT); color: var(--ok); border-color: #bcdcc4; } .chip.miss { background: var(--redT); color: var(--red); border-color: #e7c3bf; }
@media (min-width: 681px) { .search:has(> label:nth-of-type(4)) { grid-template-columns: 1.6fr 1.3fr 1fr 1.1fr auto; } }
.badge.type { background: var(--seaT); color: var(--sea2); margin-left: 8px; vertical-align: middle; font-family: var(--sans); }
.search .more { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .search .more { grid-template-columns: 1fr; } .choice.three { grid-template-columns: 1fr; } }
.private-mode { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
