/* BuilderSim / Manors.ai - "field ledger" design system.
   Paper + graphite ink + chalk-line blue. Monospace carries provenance.
   Safety orange is reserved for gaps and low confidence: attention color
   always means "unsourced". */

:root {
  --paper: #FAF9F6;
  --card: #FFFFFF;
  --ink: #22303A;
  --ink-soft: #5C6B75;
  --line: #E5E1D8;
  --chalk: #2456A6;
  --chalk-ink: #1B4283;
  --chalk-soft: #EAF0F9;
  --ok: #2E7D46;
  --ok-soft: #E7F2EB;
  --warn: #9A6B14;
  --warn-soft: #F7EFDC;
  --gap: #BC4318;
  --gap-soft: #FAECE4;
  --seed: #8A8579;
  --seed-soft: #F0EEE8;
  --stage: #131C23;
  --stage-ink: #E8EDF1;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(34, 48, 58, 0.06), 0 4px 16px rgba(34, 48, 58, 0.05);
  --tap: 44px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .35em; letter-spacing: -0.015em; }
h1 { font-size: 1.5rem; font-weight: 750; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 650; }
a { color: var(--chalk); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; border-radius: 4px; }

/* ---------- shell ---------- */
.demo-ribbon {
  background: var(--ink);
  color: #F4EFE4;
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 12px;
}
.shell { display: flex; min-height: 100vh; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 1.05rem; }
.wordmark .dot { color: var(--chalk); }
.topbar .spacer { flex: 1; }
main.content { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 16px 96px; }

/* bottom tab bar (phone) / side rail (desktop) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; background: var(--card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; min-height: var(--tap);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 4px; font-size: .68rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
}
.tabbar a .glyph { font-size: 1.15rem; line-height: 1; }
.tabbar a.active { color: var(--chalk); }
.tabbar a.new-job {
  color: #fff; background: var(--chalk); border-radius: 12px;
  margin: 6px 8px; flex: 0 0 auto; min-width: 76px;
}
.tabbar a.new-job:hover { background: var(--chalk-ink); text-decoration: none; }

@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .tabbar {
    position: sticky; top: 0; bottom: auto; height: 100vh;
    flex-direction: column; width: 200px; flex-shrink: 0;
    border-top: 0; border-right: 1px solid var(--line);
    padding: 16px 10px; gap: 2px; align-self: flex-start;
  }
  .tabbar a {
    flex: 0 0 auto; flex-direction: row; justify-content: flex-start;
    gap: 10px; font-size: .85rem; padding: 10px 12px; border-radius: 8px;
  }
  .tabbar a.active { background: var(--chalk-soft); }
  .tabbar a.new-job { margin: 0 0 12px; min-height: var(--tap); justify-content: center; }
  .shell-main { flex: 1; min-width: 0; }
  main.content { padding-bottom: 40px; }
  .rail-mark { display: block; font-weight: 800; padding: 4px 12px 16px; font-size: 1.05rem; }
}
.rail-mark { display: none; }

/* ---------- cards, lists ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.card.flat { box-shadow: none; }
.card h2 { display: flex; align-items: baseline; gap: 8px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row .spacer { flex: 1; }
.muted { color: var(--ink-soft); font-size: .85rem; }
.eyebrow {
  font: 600 .68rem/1.3 var(--mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
/* grid children default to min-width:auto and refuse to shrink below their
   content, which let the ledger force whole-page horizontal panning on
   phones; the scroll belongs inside .table-scroll */
.grid-2 > * { min-width: 0; }

.joblink { display: block; color: inherit; text-decoration: none; }
.joblink:hover { text-decoration: none; }
.joblink .card { transition: border-color .12s ease; margin-bottom: 0; }
.joblink:hover .card { border-color: var(--chalk); }
.joblist { display: grid; gap: 12px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 .7rem/1 var(--mono); letter-spacing: .03em;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.badge .tick { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.badge-confirmed { background: var(--ok-soft); color: var(--ok); }
.badge-confirmed .tick { background: var(--ok); }
.badge-escalated { background: var(--warn-soft); color: var(--warn); }
.badge-escalated .tick { background: var(--warn); }
.badge-seed { background: var(--seed-soft); color: var(--seed); }
.badge-seed .tick { background: var(--seed); }
.badge-unresolved, .badge-gap, .badge-low { background: var(--gap-soft); color: var(--gap); }
.badge-unresolved .tick, .badge-gap .tick, .badge-low .tick { background: var(--gap); }
.badge-stale { background: var(--warn-soft); color: var(--warn); }
.badge-neutral { background: var(--seed-soft); color: var(--ink-soft); }
.badge-high { background: var(--ok-soft); color: var(--ok); }
.badge-medium { background: var(--warn-soft); color: var(--warn); }
.badge-status-draft { background: var(--chalk-soft); color: var(--chalk); }
.badge-status-bid { background: var(--ok-soft); color: var(--ok); }
.badge-status-won { background: var(--ok); color: #fff; }
.badge-sim { background: var(--stage); color: var(--stage-ink); }

/* ---------- money & provenance ---------- */
.money { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.money.big { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.mono, .src { font-family: var(--mono); font-size: .78rem; }
.src { color: var(--ink-soft); word-break: break-all; }

/* takeoff-sheet ledger */
.ledger { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .88rem; }
.ledger th {
  text-align: left; font: 600 .68rem/1.3 var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 6px 8px; border-bottom: 1px solid var(--line);
}
.ledger td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* a gap is a visible hole with a name - never a zero */
.gap-slot {
  border: 1.5px dashed var(--gap); border-radius: 6px;
  color: var(--gap); background: var(--gap-soft);
  padding: 2px 8px; font: 600 .75rem/1.5 var(--mono); white-space: nowrap;
}

/* roll-up waterfall */
.rollup { font-variant-numeric: tabular-nums; }
.rollup .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.rollup .line .label { color: var(--ink-soft); font-size: .85rem; }
.rollup .line.total {
  border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 9px;
}
.rollup .line.total .label { color: var(--ink); font-weight: 700; }
.cost-only {
  border: 1.5px dashed var(--gap); border-radius: var(--radius);
  background: var(--gap-soft); color: var(--gap);
  padding: 12px 14px; font-weight: 650;
}

/* quality meter */
.quality { display: flex; align-items: center; gap: 10px; }
.quality .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--seed-soft); overflow: hidden; }
.quality .fill { height: 100%; border-radius: 4px; background: var(--ok); }
.quality.poor .fill { background: var(--gap); }
.quality .pct { font: 650 .8rem var(--mono); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--chalk); text-decoration: none; }
.btn-primary { background: var(--chalk); border-color: var(--chalk); color: #fff; }
.btn-primary:hover { background: var(--chalk-ink); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--chalk); }
.btn-danger-quiet { border-color: transparent; background: transparent; color: var(--gap); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

label.field { display: block; margin-bottom: 12px; }
label.field .name { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
/* every text-like field shares one look; email, password, date, and time used
   to fall back to the browser default (tiny, unaligned) on the auth pages,
   the schedule, and the price book */
input[type="text"], input[type="number"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="search"], input[type="tel"],
input[type="url"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 1rem var(--sans); background: var(--card); color: var(--ink);
}
textarea { min-height: 96px; line-height: 1.45; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--chalk); outline: none; box-shadow: 0 0 0 3px var(--chalk-soft);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--chalk); width: 18px; height: 18px; vertical-align: middle; }
input[type="file"] { font: .9rem var(--sans); color: var(--ink-soft); }
input[type="file"]::file-selector-button {
  min-height: 36px; margin-right: 10px; padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .85rem var(--sans); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--chalk); }
.form-error {
  background: var(--gap-soft); color: var(--gap); border-radius: 8px;
  padding: 10px 12px; font-size: .88rem; font-weight: 600; margin-bottom: 12px;
}

/* ---------- scan stage ---------- */
.stage {
  background: var(--stage); color: var(--stage-ink);
  border-radius: 14px; padding: 22px 18px; min-height: 380px;
  display: flex; flex-direction: column;
}
.stage h2, .stage h3 { color: #fff; }
.stage .muted { color: #9FB0BC; }
.stage .viewfinder {
  flex: 1; border: 1.5px dashed #3D4E5C; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; margin: 14px 0; position: relative; overflow: hidden;
  font-family: var(--mono); font-size: .8rem; color: #7E93A3;
  text-align: center; padding: 12px;
}
.stage .sweep {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--chalk-soft);
  opacity: .8; animation: sweep 2.2s ease-in-out infinite;
}
@keyframes sweep { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }
.stage .btn { border-color: #3D4E5C; background: transparent; color: var(--stage-ink); }
.stage .btn-primary { background: var(--chalk); border-color: var(--chalk); color: #fff; }
.stage .wall-sketch { font-family: var(--mono); font-size: .78rem; color: #B9C6D0; white-space: pre; text-align: left; }

/* measurement cards */
.measurement { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--card); }
.measurement .value { font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.measurement.warn { border-color: var(--gap); background: var(--gap-soft); }

/* proposal */
.proposal-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.proposal-sheet header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.internal-note {
  background: var(--chalk-soft); color: var(--chalk-ink); border-radius: 8px;
  padding: 10px 12px; font-size: .82rem; font-weight: 600; margin-bottom: 14px;
}

/* steps */
.step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--chalk-soft); color: var(--chalk);
  display: flex; align-items: center; justify-content: center;
  font: 700 .85rem var(--mono);
}

/* lineage drawer */
details.lineage-drawer summary { cursor: pointer; font-weight: 600; color: var(--chalk); min-height: var(--tap); display: flex; align-items: center; }
details.lineage-drawer[open] summary { margin-bottom: 8px; }

/* ---------- sign-in pages: the form, beside what the product promises ---------- */
.auth-layout { display: grid; gap: 22px; max-width: 920px; margin: 6vh auto 0; align-items: start; }
@media (min-width: 860px) { .auth-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; } }
.auth-layout .btn-row { align-items: center; }
.promise {
  background: var(--stage); color: var(--stage-ink); border-radius: 14px; padding: 24px 22px;
}
.promise h2 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.promise .lede { color: #9FB0BC; font-size: .9rem; margin: 0 0 16px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.promise .mark {
  width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font: 700 .8rem var(--mono); background: rgba(234, 240, 249, .12); color: var(--stage-ink);
}
.promise li strong { display: block; color: #fff; font-size: .95rem; }
.promise li span.text { color: #B9C6D0; font-size: .85rem; }
.promise .sample { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #3D4E5C; display: flex; flex-wrap: wrap; gap: 8px; }

.empty {
  text-align: center; color: var(--ink-soft); padding: 36px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
}

/* ---------- job hub: steps in the contractor's order (UX sprint 2026-10-12) ---------- */
.jobsteps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; margin: 14px 0 4px;
}
.jobstep {
  display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); text-decoration: none;
}
.jobstep:hover { border-color: var(--chalk); text-decoration: none; }
.jobstep .num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; background: var(--line); color: var(--ink);
}
.jobstep strong { display: block; font-size: .9rem; }
.jobstep .status { display: block; font-size: .78rem; color: var(--ink-soft); }
.jobstep.started .num, .jobstep.ready .num { background: var(--chalk); color: #fff; }
.jobstep.blocked .num { background: var(--gap); color: #fff; }
.jobstep.here { border-color: var(--chalk); box-shadow: inset 0 0 0 1px var(--chalk); }
.more-menu { position: relative; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu[open] .stack {
  position: absolute; z-index: 20; margin-top: 6px; min-width: 240px;
  padding: 10px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.more-menu .stack a { display: block; padding: 8px 0; }
@media (max-width: 719px) {
  /* on phones the menu opens in place, so it can never push the page sideways */
  .more-menu[open] { flex-basis: 100%; }
  .more-menu[open] .stack { position: static; min-width: 0; margin-top: 4px; }
}
.admin-section { margin-top: 18px; }

/* ---------- Manors Bid brand and appeal (2026-10-12) ---------- */
:root { --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }
h1, .promise h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; }
.product-name {
  margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.promise-brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.promise-brand span { font-family: var(--sans); font-weight: 500; font-size: .8rem; opacity: .7; margin-left: 4px; }
.card { box-shadow: 0 1px 2px rgba(34, 48, 58, .05); }
.priceline {
  position: sticky; top: 0; z-index: 15;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(34, 48, 58, .06);
}
.priceline .pl-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-right: 4px; }
.priceline .money { font-weight: 700; }
.priceline .pl-total { font-size: 1.15rem; }
.priceline .pl-evidence { font-size: .85rem; color: var(--ok, #2E7D4F); }
.priceline .pl-evidence.pl-gap { color: var(--gap); font-weight: 600; }
.priceline .pl-warn { color: var(--gap); font-weight: 600; font-size: .85rem; }
.priceline .pl-link { margin-left: auto; font-size: .85rem; }
.item-subtotal { font-size: .85rem; color: var(--ink-soft); }
.item-subtotal .money { color: var(--ink); font-weight: 700; }
.work-search { margin: 6px 0 4px; }
.suggest-group { padding: 8px 0; border-top: 1px solid var(--line); }
.suggest-group:first-of-type { border-top: 0; }
.suggest-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.suggest-row input { width: auto; min-height: 0; margin-top: 4px; }
.suggest-how { display: block; margin-top: 2px; }

.price-update-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--warn-soft); border: 1px solid #E7D6AE; border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 0; }

.pm-canvas { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); touch-action: manipulation; cursor: crosshair; display: block; }
.pm-step { font-weight: 600; margin: 0 0 6px; }

/* crew phone view and the office's crew card */
.crew-day { margin: 14px 0 6px; }
.crew-job { display: block; color: inherit; text-decoration: none; margin-bottom: 8px; }
.crew-job-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.crew-timer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crew-big { min-width: 110px; min-height: 52px; font-size: 1.05rem; justify-content: center; }
.crew-step { margin: 0; }
.crew-step button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; font: inherit; color: inherit; cursor: pointer; min-height: var(--tap); }
.crew-box { flex: 0 0 24px; height: 24px; border: 2px solid var(--chalk); border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.crew-step.is-done .crew-box { background: var(--ok); border-color: var(--ok); }
.crew-step.is-done span:last-child { color: var(--ink-soft); text-decoration: line-through; }
.crew-picks summary { cursor: pointer; padding: 4px 0; }
.crew-flag { width: 100%; margin-top: 8px; justify-content: center; }
.crew-card { margin: 10px 0 0; }
.crew-issue .src { white-space: nowrap; display: inline-block; }
.crew-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.crew-stats { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 4px 0 6px; }
.crew-issue { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 6px; background: var(--gap-soft); border-radius: 8px; }

/* landing page: logged-out visitors at / */
.landing { max-width: 1040px; }
.landing-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 18px 0 26px; }
.landing-hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 6px 0 10px; }
.landing-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 18px; }
.landing-cta { min-width: 140px; justify-content: center; }
.landing-preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.lp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.landing-preview .eyebrow + .lp-row { border-top: 0; }
.lp-result { background: var(--chalk-soft); margin: 0 -18px; padding: 8px 18px; }
.landing-steps h2, .landing-home h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 12px; }
.landing-steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-steps li { position: relative; padding-top: 18px; }
.landing-steps li strong { display: block; font-size: 1.05rem; margin: 6px 0 4px; }
.landing-steps li p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.landing-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chalk); color: #fff; font-weight: 700; font-size: .9rem; }
.landing-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; align-items: start; }
.landing-split .promise h2 { margin-bottom: 14px; }
.landing-home p { color: var(--ink-soft); }
.landing-note { margin: 22px 0 6px; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .landing-hero, .landing-split, .landing-steps ol { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 2rem; }
}

/* phone capture link: the office panel and the phone page */
.phone-qr-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.phone-qr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; line-height: 0; }
.phone-url { font-family: var(--mono); font-size: .78rem; width: 100%; max-width: 460px; }
.phone-warn { color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; font-size: .82rem; margin: 8px 0 0; }
.phone-links { list-style: none; padding: 0; margin: 10px 0 0; }
.phone-links li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-grid figcaption { font-size: .75rem; color: var(--ink-soft); margin-top: 3px; }
.phone-page { background: var(--paper); }
.phone-wrap { max-width: 520px; margin: 0 auto; padding: 16px; }
.phone-brand { font-size: .85rem; color: var(--ink-soft); }
.phone-ok { background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.phone-camera { width: 100%; justify-content: center; min-height: 56px; font-size: 1.05rem; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.phone-list { list-style: none; padding: 0; margin: 0; }
.phone-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.phone-list li:first-child { border-top: 0; }
.product-name, .wordmark { white-space: nowrap; }
/* the top bar sticks to the top, so the price line sticks just below it */
.topbar { min-height: 58px; box-sizing: border-box; }
.priceline { top: 66px; }
@media (max-width: 599px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar-email { display: none; }
  .product-name { margin-left: 6px; padding-left: 8px; font-size: .98rem; }
}
.status-form { gap: 6px; margin: 0; }
.status-form select { width: auto; min-height: var(--tap); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge-status-lost { background: #F3E7E3; color: var(--gap); }
.badge-status-complete { background: var(--line); color: var(--ink); }
.sample-note {
  margin: 8px 0 12px; padding: 8px 12px; border-radius: 8px;
  border: 1px dashed var(--gap); background: #FFF6F1; color: var(--ink);
  font-size: .85rem; font-weight: 600;
}

/* ---------- navigation: phones keep the everyday tabs ---------- */
.tabbar .rail-only { display: none; }
.tabbar .phone-label { display: inline; }
.tabbar .rail-label { display: none; }
@media (min-width: 900px) {
  .tabbar .rail-only { display: flex; }
  .tabbar .phone-label { display: none; }
  .tabbar .rail-label { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* The contractor's company leads the header; Manors Bid stays a small product credit (2026-10-15). */
.company-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); margin-right: 14px; white-space: nowrap; }
.company-name ~ .wordmark, .company-name ~ .product-name { font-size: 0.8rem; opacity: 0.7; }
@media (max-width: 560px) { .company-name ~ .wordmark { display: none; } .company-name ~ .product-name { border-left: 0; } }

/* Contractor login panel: the turnover flow and who signs in (2026-10-15). */
.turnover-panel .flow { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.turnover-panel .flow li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.turnover-panel .flow li strong { display: block; color: #fff; font-size: .95rem; }
.turnover-panel .flow li .text { color: #9FB0BC; font-size: .85rem; }
.turnover-panel .who { border-top: 1px dashed rgba(255,255,255,.18); padding-top: 12px; }
.turnover-panel .who p { color: #D7DEE3; font-size: .88rem; margin: 6px 0; }
.turnover-panel .who strong { color: #fff; }
.turnover-panel .muted-dark { color: #9FB0BC !important; }

/* crew UX 2026-10-15 */
.phone-brand .company-name { font-size: 1rem; margin-right: 6px; white-space: normal; }
.phone-back { display: inline-block; margin-top: 6px; font-size: .9rem; }
.crew-photo-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.crew-photo-fields input, .crew-photo-fields select { width: 100%; box-sizing: border-box; }

/* admin UX 2026-10-15 */
.stage.stage-compact { min-height: 0; }
details.advanced > summary { cursor: pointer; list-style: revert; }
details.advanced > summary .muted { display: block; font-weight: 400; margin-top: 4px; }

/* customer UX 2026-10-15 */
.proof-pair { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .proof-pair { grid-template-columns: 1fr 1fr; } }
.proof-pair .proof-side { min-width: 0; }
td.money { text-align: right; white-space: nowrap; }
