/* The palette: the logo's green (#009263) and dark green (#1B3524), white, a bright green accent. A few brand touches are at the end of this file
   (html[data-edition="subscriber"], set by js/brand.js and by the static pages' markup). */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
:root {
  --asphalt: #1b3524; --asphalt-2: #24432f; --asphalt-3: #2f573c; --deep: #10221a; --green: #3ccf97; --green-lite: #a6ecc9;
  --yellow: #f2b705; --yellow-soft: #fdf3cf;
  --blue: #007a52; --blue-dark: #00603f; --blue-soft: #e2f3eb; --drop-tint: rgba(0, 146, 99, 0.10); --brand: #009263; --brand-dark: #1b3524;
  --ink: #15181c; --muted: #58626e; --rule: #d6dbe0; --concrete: #eef1f3; --paper: #ffffff;
  --go: #1b7446; --go-soft: #e3f3ea; --stop: #b3261e; --stop-soft: #fbe9e7; --hold: #8a5a00; --hold-soft: #fdf3cf;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; --body: "Barlow", Arial, Helvetica, sans-serif;
  --rail: 272px; --r: 6px;
  --logo-h: 88px;   /* one logo size on every page: the app, the home page, setup, terms and privacy (60px on phones) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--concrete); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 2.15rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 0.6em; } a { color: var(--blue); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .sm { font-size: 0.875rem; } .minor { font-size: smaller; } .right { text-align: right; }
.hide { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; background: var(--concrete); }
.boot-note { color: var(--muted); font-family: var(--head); font-size: 1.3rem; }
.boot > div { text-align: center; padding: 16px; } .boot .btn { margin-top: 8px; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--asphalt); color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 0 14px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 2px 16px 18px 16px; }
.brand img { height: var(--logo-h); width: auto; max-width: 100%; display: block; }
.brand b.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand b { font: 700 2rem/1 var(--head); letter-spacing: 0.09em; display: block; }
.brand span { font-size: 0.8rem; color: #a9bdd1; display: block; margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 0 10px; flex: 1; overflow-y: auto; }
.nav a { color: #d7dce2; text-decoration: none; padding: 9px 10px; border-radius: var(--r); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.nav a:hover { background: var(--asphalt-2); color: #fff; }
.nav a.on { background: var(--blue); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.nav .count { background: var(--green); color: var(--deep); border-radius: 10px; padding: 0 7px; font-size: 0.78rem; font-weight: 600; min-width: 22px; text-align: center; }
.nav hr { border: 0; border-top: 1px solid var(--asphalt-3); margin: 8px 4px; width: calc(100% - 8px); }
.who { padding: 10px 16px 0 18px; font-size: 0.85rem; color: #a9bdd1; }
.who b { color: #fff; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button { background: none; border: 0; color: #b9c1ca; padding: 4px 0; cursor: pointer; text-decoration: underline; font-size: 0.85rem; }
.main { padding: 28px clamp(16px, 3.2vw, 44px) 80px; max-width: 1240px; width: 100%; }
.tabbar { display: none; }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.crumb { font-size: 0.9rem; margin-bottom: 6px; }

/* ---------- pieces */
.btn { border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r); cursor: pointer; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.25; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.quiet { background: #fff; color: var(--blue); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn.sm { padding: 4px 10px; font-size: 0.875rem; }
.btn.danger { background: #fff; color: var(--stop); border-color: var(--rule); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.panel > h2, .panel > .spread > h2 { margin-bottom: 10px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2, .panel.flush > .spread { padding: 16px 20px 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: 600; background: var(--concrete); color: var(--muted); white-space: nowrap; }
.tag.prime, .tag.yes, .tag.verified, .tag.bid, .tag.ok, .tag.won { background: var(--go-soft); color: var(--go); }
.tag.bonding, .tag.likely, .tag.watch, .tag.unchanged, .tag.waiting { background: var(--hold-soft); color: var(--hold); }
.tag.sub, .tag.email { background: var(--blue-soft); color: var(--blue-dark); }
.tag.toobig, .tag.unverified, .tag.pass, .tag.blocked, .tag.lost, .tag.error, .tag.no { background: var(--stop-soft); color: var(--stop); }
.due { font-weight: 600; white-space: nowrap; } .due.soon { color: var(--stop); } .due.near { color: var(--hold); }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid var(--rule); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: #f7f9fa; }
td .sub:not(.tag) { display: block; color: var(--muted); font-size: 0.875rem; }
.scroll { overflow-x: auto; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
input[type=text], input[type=date], input[type=datetime-local], input[type=number], input[type=email], input[type=url], input[type=search], select, textarea {
  width: 100%; border: 1px solid #b9c1ca; border-radius: var(--r); padding: 8px 10px; background: #fff; min-height: 40px; }
textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; max-width: 340px; } .filters select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.chip.on { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
table.dates td:first-child { width: 200px; } table.dates td:nth-child(2) { width: 190px; }
.empty { padding: 26px 20px; color: var(--muted); }
.notice { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 14px; }
.notice.bad { background: var(--stop-soft); border-color: var(--stop); }

/* ---------- today: the ranked list is the page */
.today-date { font: 600 1rem var(--body); color: var(--muted); }
.counts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 20px; }
.counts a { text-decoration: none; color: var(--ink); }
.counts b { font: 700 1.9rem/1 var(--head); margin-right: 6px; }
.todo { list-style: none; margin: 0; padding: 0; counter-reset: todo; }
.todo li { counter-increment: todo; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.todo li:last-child { border-bottom: 0; }
.todo li::before { content: counter(todo); font: 700 1.5rem/1.15 var(--head); color: var(--asphalt); text-align: right; padding-right: 2px; }
.todo li.first::before { color: var(--blue); }
.todo .t { font-weight: 600; } .todo .t a { color: inherit; text-decoration: none; } .todo .t a:hover { text-decoration: underline; }
.todo .d { grid-column: 2; color: var(--muted); font-size: 0.925rem; }
.todo .meta { grid-row: 1; grid-column: 3; text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.todo .answer { grid-column: 2 / 4; display: flex; gap: 8px; margin-top: 6px; } .todo .answer input { flex: 1; }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.upcoming li:last-child { border-bottom: 0; }
.upcoming .day { font: 600 1.05rem/1.1 var(--head); } .upcoming .day .minor { display: block; font: 400 0.78rem var(--body); color: var(--muted); }
.upcoming a { text-decoration: none; color: var(--ink); font-weight: 500; } .upcoming a:hover { text-decoration: underline; }

/* ---------- opportunity */
.stages { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 2px; }
.stages button { border: 1px solid var(--rule); background: #fff; padding: 6px 13px 6px 15px; cursor: pointer; font-weight: 500; font-size: 0.925rem; margin-left: -1px; }
.stages button:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; } .stages button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stages button.on { background: var(--asphalt); color: #fff; border-color: var(--asphalt); position: relative; z-index: 1; }
.stages button.past { background: var(--concrete); color: var(--muted); }
.call { border-left: 6px solid var(--blue); }
.call .verdict { font: 700 1.5rem/1.1 var(--head); margin-right: 8px; }
.call ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.next { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.next h2 { color: var(--green-lite); font-size: 1.05rem; } .next .what { font: 600 1.4rem/1.2 var(--head); margin: 2px 0 6px; } .next .muted { color: #c3cad2; } .next .linkbtn { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin: 0; }
.facts dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); } .facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.check li:last-child { border-bottom: 0; } .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.check li.done span { color: var(--muted); text-decoration: line-through; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.files li:last-child { border-bottom: 0; } .files .name { font-weight: 500; overflow-wrap: anywhere; } .files .sum { grid-column: 1 / 3; color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }
.drop { border: 2px dashed #b9c1ca; border-radius: var(--r); padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); } .drop select { width: auto; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 9px 0; border-bottom: 1px solid var(--rule); } .history li:last-child { border-bottom: 0; }
.history .when { font-size: 0.82rem; color: var(--muted); } .history .txt { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.convos { list-style: none; margin: 0; padding: 0; } .convos li a { display: block; padding: 8px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos li a.on { background: var(--blue-soft); font-weight: 500; } .convos li a:hover { background: var(--concrete); }
.thread { display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.msg { max-width: 78ch; } .msg.user { align-self: flex-end; background: var(--blue); color: #fff; padding: 9px 14px; border-radius: 14px 14px 2px 14px; white-space: pre-wrap; }
.msg.reply { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 2px var(--r) var(--r) 2px; }
.msg.reply p:last-child, .msg.reply ul:last-child { margin-bottom: 0; } .msg.reply ul, .msg.reply ol { margin: 0 0 0.6em; padding-left: 20px; }
.steps { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; } .steps .tag { font-weight: 500; }
.composer { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; } .composer textarea { min-height: 52px; max-height: 220px; }
.jobchat .thread { min-height: 0; max-height: 460px; overflow-y: auto; padding: 2px 4px 2px 0; } .jobchat .msg.reply { background: var(--concrete, #f3f5f7); }
.msg.user .by { display: block; font-size: 0.74rem; opacity: 0.8; margin-bottom: 2px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

dialog { border: 0; border-radius: 8px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 18px 50px rgba(21, 24, 28, 0.35); }
dialog::backdrop { background: rgba(21, 24, 28, 0.55); }
dialog form { padding: 20px 22px; } dialog h2 { margin-bottom: 14px; } dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--asphalt); color: #fff; padding: 10px 18px; border-radius: var(--r); z-index: 50; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--stop); }

/* ---------- narrow screens */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .rail { display: none; }
  .main { padding: 18px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--asphalt); border-top: 3px solid var(--green); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { color: #d7dce2; text-decoration: none; text-align: center; padding: 13px 2px 12px; font-weight: 500; font-size: 0.92rem; } .tabbar a.on { color: #fff; background: var(--blue); }
  .cols, .chat { grid-template-columns: minmax(0, 1fr); } .grid2 { grid-template-columns: minmax(0, 1fr); }
  .chat > .panel:first-child { order: 2; } .composer textarea { font-size: 16px; } .msg { max-width: 100%; } .msg.user { max-width: 88%; }
  h1 { font-size: 1.8rem; }
  .todo li { grid-template-columns: 30px minmax(0, 1fr); padding-right: 14px; } .todo .meta { grid-row: auto; grid-column: 2; flex-direction: row; align-items: center; } .todo .answer { grid-column: 2; flex-wrap: wrap; }
  table.stack thead { display: none; } table.stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--rule); } table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 0.85rem; }
  table.stack td.right { text-align: left; } table.stack td .sub:not(.tag) { display: inline; margin-left: 6px; } table.stack td:first-child .sub:not(.tag) { display: block; margin-left: 0; }
  table.stack tr.famhead { padding: 0; } table.stack tr.famhead th { display: block; } table.stack tr.detail { padding: 0; } table.stack tr.detail > td { padding: 0 0 6px 8px; }
  .pagehead .row, .pagehead select { max-width: 100%; min-width: 0; } .pagehead .row { width: 100%; } .pagehead select { width: 100%; }
  .stages button { padding: 6px 9px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .chip, .nav a { transition: background-color 0.12s, border-color 0.12s; } }
@media print { .rail, .tabbar, .btn, .drop, .composer { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* Pricing by line of work */
.pad { padding: 0 20px; margin: 0 0 12px; max-width: 96ch; }
.strong { font-weight: 600; }
tr.famhead th { background: var(--concrete); color: var(--ink); font: 600 0.95rem var(--head); letter-spacing: 0.02em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding: 7px 12px; }
tr.detail > td { background: #f7f9fa; padding: 0 0 6px 16px; }
table.inner { font-size: 0.9rem; } table.inner th { border-bottom-width: 1px; } table.inner tr:last-child td { border-bottom: 0; }
tr.out td { color: var(--muted); } tr.out td.strong { text-decoration: line-through; text-decoration-color: var(--rule); }
.panel.flush > .spread select, .panel.flush > .spread input { max-width: 260px; }
.main { min-width: 0; }
details.pad { padding: 4px 20px 16px; max-width: none; } details.pad > summary { cursor: pointer; color: var(--blue); font-weight: 500; padding: 8px 0; } details.pad h3 { margin: 16px 0 4px; font-size: 1rem; }
.panel.flush > .spread > .row, .panel.flush > .spread > .muted { padding-right: 0; }

/* Guests see the app read-only: action buttons are hidden, and the server refuses changes regardless. */
body.guest .btn:not(.keep), body.guest .composer, body.guest input[type=file] { display: none !important; }
.guestbar { margin-bottom: 14px; }

/* ---------- bid intelligence */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.door { display: block; background: var(--asphalt); color: #fff; border-radius: var(--r); padding: 14px 18px; text-decoration: none; border-left: 4px solid var(--green); }
.door b { display: block; font: 600 1.25rem/1.2 var(--head); letter-spacing: 0.02em; margin-bottom: 4px; } .door span { color: #c3d3e3; font-size: 0.9rem; } .door:hover { background: var(--asphalt-2); }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.facts.one { grid-template-columns: 1fr; }
table.bids { width: 100%; } table.bids td { padding: 3px 8px 3px 0; border: 0; } table.bids tr.won td { background: var(--go-soft); } table.bids td:first-child { padding-left: 6px; }
table.jobs > tbody > tr > td { vertical-align: top; } table.jobs > tbody > tr > td[data-l="Bids"] { min-width: 340px; }
td.lowcell { font-weight: 600; background: var(--go-soft); }
.panel.flush > p.pad.sm { padding-top: 10px; }
td.num.strong { white-space: nowrap; } td.num.strong .sub { white-space: normal; }

/* ---------- privacy and terms pages */
.legalpage { background: var(--concrete); } .legalhead { background: var(--asphalt); padding: 14px 24px; } .legalhead a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 700 1.5rem/1 var(--head); letter-spacing: 0.09em; } .legalhead img { height: var(--logo-h); width: auto; display: block; }
.legal { max-width: 74ch; margin: 0 auto; padding: 28px 20px 60px; } .legal h2 { margin-top: 28px; } .legal li { margin-bottom: 6px; }

/* ---------- v1.7: areas, trades, kinds of contract */
select.areapick { width: auto; min-width: 170px; }
.pagehead select.areapick { align-self: flex-start; }
tr.tradehead th { background: var(--asphalt); color: #fff; font: 600 1rem var(--head); letter-spacing: 0.02em; text-transform: uppercase; padding: 9px 12px; text-align: left; }
tr.tradehead th .sub { display: block; font: 400 0.85rem var(--body); text-transform: none; letter-spacing: 0; color: #d7dce2; margin-top: 2px; }
.kinds { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 10px 4px; color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
fieldset.checks, fieldset.countygrid { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; margin: 0 0 12px; }
fieldset legend { font: 600 1rem var(--head); padding: 0 4px; }
fieldset.checks label { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
fieldset.checks label .sub { color: var(--muted); font-size: 0.85rem; }
fieldset.countygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
fieldset.countygrid > p, fieldset.countygrid > legend { grid-column: 1 / -1; margin: 0; }
fieldset.countygrid .area { display: flex; flex-direction: column; gap: 3px; }
fieldset.countygrid label { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.9rem; }
fieldset.countygrid select { width: auto; padding: 2px 4px; font-size: 0.85rem; }
@media (max-width: 760px) { table.stack tr.tradehead { padding: 0; } table.stack tr.tradehead th { display: block; } }

/* ---------- v1.8: the proposal and the daily check */
.totals .tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.totals .tot > div { display: flex; flex-direction: column; gap: 2px; }
.totals .tot span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.totals .tot b { font: 600 1.7rem/1.1 var(--head); }
.totals .tot .minor { color: var(--muted); font-size: 0.82rem; }
.ready { list-style: none; margin: 0 0 8px; padding: 0; }
.ready li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.ready li:last-child { border-bottom: 0; }
.ready .mark { font-weight: 700; text-align: center; border-radius: 50%; width: 22px; height: 22px; line-height: 22px; font-size: 0.85rem; }
.ready li.ok .mark { background: var(--go-soft); color: var(--go); }
.ready li.warn .mark { background: var(--hold-soft); color: var(--hold); }
.ready li.todo .mark { background: var(--concrete); color: var(--muted); }
.ready li.ok b { font-weight: 500; }
.sched td { vertical-align: top; }
.sched tr.alt td { background: #fbfaf4; }
.sched .pricein { width: 110px; text-align: right; padding: 5px 8px; border: 1px solid var(--rule); border-radius: var(--r); }
.sched .pricein:placeholder-shown { border-style: dashed; }
.sched tfoot td { border-top: 2px solid var(--ink); padding-top: 8px; }
.ev summary { cursor: pointer; color: var(--blue); font-size: 0.85rem; margin-top: 4px; }
.ev > div { margin-top: 3px; }
textarea.letter { width: 100%; font: 400 0.95rem/1.55 var(--body); padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r); margin: 10px 0; }
tr.ours td:first-child { font-weight: 600; }
details > summary { cursor: pointer; padding: 3px 0; }
@media print {
  .proposal .crumb, .proposal .linkbtn, .proposal .ev, .proposal .row, .tabbar, .toast { display: none !important; }
  .proposal .panel { border: 0; padding: 0 0 12px; break-inside: avoid-page; }
  .proposal .sched .pricein { border: 0; padding: 0; width: auto; }
  .proposal textarea.letter { border: 0; height: auto; min-height: 0; resize: none; overflow: visible; }
  .main { padding: 0; max-width: none; }
}
details.panel > summary { padding: 16px 20px; } details.panel > summary h2.inline { display: inline; } details.panel[open] > summary { padding-bottom: 8px; }
.askbar { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: var(--r); padding: 8px 10px; margin-bottom: 14px; }
.askbar .askmark { font: 600 0.95rem/1 var(--head); color: var(--asphalt); white-space: nowrap; }
.askbar input { flex: 1; min-width: 0; border: 0; padding: 6px 4px; font-size: 1rem; background: transparent; }
.askbar input:focus-visible { outline: none; }
@media (max-width: 560px) { .askbar .askmark { display: none; } }
span.sub.bad { color: var(--stop); }

/* ---------- chat attachments (v2.1): photos, screenshots and files go with a message */
.chip { white-space: normal; text-align: left; max-width: 100%; }
.composerwrap { margin-top: 14px; border-radius: var(--r); } .composerwrap .composer { margin-top: 0; }
.composerwrap.drag { outline: 2px dashed var(--blue); outline-offset: 4px; }
.composer .attach { flex: none; width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.composer .btn:last-child { flex: none; } .composer textarea { flex: 1; min-width: 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tray { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.att { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 210px; max-width: 100%; padding: 6px 30px 6px 6px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); }
.att img, .att .ext { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.att .ext, .filechip .ext { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-dark); font: 600 0.7rem var(--body); letter-spacing: 0.02em; }
.att .nm { font-size: 0.86rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .st { font-size: 0.76rem; color: var(--muted); }
.att.up .st::after { content: '…'; } .att.up { opacity: 0.75; } .att.bad { border-color: var(--stop); } .att.bad .st { color: var(--stop); }
.att .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--concrete); cursor: pointer; font-size: 1rem; line-height: 1; }
.msgfiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; justify-content: flex-end; align-items: flex-start; }
.msgfiles .pic img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 8px; background: #fff; }
.msgfiles .pic { max-width: 100%; }
.filechip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px 5px 5px; background: #fff; color: var(--ink); border-radius: 8px; text-decoration: none; white-space: nowrap; }
.filechip .ext { width: 34px; height: 30px; border-radius: 4px; flex: none; } .filechip .nm { overflow: hidden; text-overflow: ellipsis; font-size: 0.88rem; }
/* private work: GC list full width, actions under the name */
.gcacts { margin-top: 8px; gap: 6px; flex-wrap: wrap; }
ol.twocol { columns: 2 340px; column-gap: 32px; } ol.twocol li { break-inside: avoid; margin-bottom: 6px; }
table.gcs td:first-child { width: 72%; }
table.gcs .sub { overflow-wrap: anywhere; }
/* drop files anywhere in the window */
.dropcover { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: flex; align-items: center; justify-content: center; background: var(--drop-tint); border: 3px dashed var(--blue); }
.dropcover[hidden] { display: none; }
.dropcover > div { background: #fff; color: var(--ink); padding: 18px 26px; border-radius: 10px; box-shadow: 0 10px 30px rgba(21, 24, 28, 0.2); text-align: center; max-width: 80vw; }
.dropcover b { display: block; font-size: 1.15rem; } .dropcover span { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.msg.user .qtag { display: block; font-size: 0.74rem; opacity: 0.85; margin-top: 4px; font-style: italic; }
/* the job's plan set */
.plans .plansdrop { display: grid; gap: 8px; } .plans .plansdrop .row input[type=url] { flex: 1; min-width: 0; }
.plans ul.sheets { columns: 2 260px; padding-left: 18px; } .plans ul.sheets li { break-inside: avoid; }
/* talk instead of type */
.composer .mic.on { background: var(--stop); border-color: var(--stop); color: #fff; }
.composer .mic.busy { opacity: 0.55; cursor: progress; }
@media (prefers-reduced-motion: no-preference) { .composer .mic.on { animation: micpulse 1.4s ease-in-out infinite; } }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 40, 40, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(200, 40, 40, 0); } }
/* Earlier: chats about a job show the job */
.convos li a .job { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos li a .sub { display: block; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat .panel input[type=search] { width: 100%; margin-bottom: 8px; }
/* Shared chats (v2.5) */
.stackrows { display: grid; gap: 6px; margin: 8px 0 12px; }
.check-row { display: flex; align-items: baseline; gap: 6px; cursor: pointer; }
.check-row input { margin: 0; }
.check-row .sub { display: inline; }
/* Inbox setup: connected mailboxes */
.mailboxes .boxes { margin: 12px 0 4px; padding: 0; list-style: none; }
.mailboxes .box { padding: 12px 0; border-top: 1px solid var(--rule); }
.mailboxes .box:first-child { border-top: 0; padding-top: 4px; }
.mailboxes .box p { margin: 6px 0; }
.mailboxes .box .row { margin-top: 6px; }

/* ---------- landing page, start screen, plan and billing, team. Phone first; 16px gutters. */
.mt { margin-top: 12px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.big { font-size: 1.05rem; padding: 12px 20px; }
.brandline { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brandline img { height: var(--logo-h); width: auto; display: block; } .brandline b.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .brandline b { font: 700 1.5rem/1 var(--head); letter-spacing: 0.08em; }
/* landing */
.landing { min-height: 100vh; background: #f6f8fa; display: flex; flex-direction: column; overflow-x: hidden; }
.landing > * { padding-left: 16px; padding-right: 16px; }
.landhead { background: var(--asphalt); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.landhead nav { display: flex; align-items: center; gap: 16px; } .landhead nav a { color: #d7dce2; text-decoration: none; font-weight: 500; } .landhead nav a.btn { color: #fff; }
.hero { background: radial-gradient(circle at 85% 20%, #2f573c 0, var(--asphalt) 40%, var(--deep) 100%); color: #fff; padding-top: 28px; padding-bottom: 32px; display: grid; gap: 24px; }
.herotext h1 { font: 700 clamp(2.8rem, 10vw, 4.6rem)/0.95 var(--head); letter-spacing: 0.08em; margin-bottom: 8px; }
.herotext .tagline { font: 500 clamp(1.2rem, 4.5vw, 1.6rem)/1.2 var(--head); color: var(--green-lite); margin-bottom: 14px; }
.herotext > p:not(.tagline) { color: #c9d6e3; font-size: 1.05rem; max-width: 46ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stats b { display: block; font: 700 1.9rem/1 var(--head); color: #fff; } .stats span { color: #a9bdd1; font-size: 0.9rem; } .stats .asof { flex-basis: 100%; color: #8fa6bd; }
.signbox { color: var(--ink); margin: 0; padding: 20px; max-width: 440px; width: 100%; }
.signbox h2 { margin-bottom: 12px; } .signbox .field { margin-bottom: 10px; }
.signbox .or { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.signbox .or::before, .signbox .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.signbox .notice { margin: 12px 0 0; } .signbox > p.sm { margin: 14px 0 0; } .signbox .codestep .row { margin-top: 4px; }
.plansec { padding-top: 32px; padding-bottom: 8px; max-width: 1100px; width: 100%; margin: 0 auto; }
.plansec h2 { font-size: 1.8rem; margin-bottom: 4px; }
.plancards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan.current { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-price b { font: 700 2.1rem/1 var(--head); } .plan-price span { color: var(--muted); font-weight: 500; } .plan-price .minor { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.plan-seats { font-weight: 500; } .plan-blurb { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.plan-act { margin-top: 6px; } .plan-act .btn { width: 100%; justify-content: center; }
.landfoot { padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: 0.9rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.landfoot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .landfoot a { color: inherit; } .landfoot p { margin-top: 10px; }
@media (min-width: 820px) {
  .landing > * { padding-left: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); }
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 440px); align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .signbox { justify-self: end; padding: 26px 28px; }
  .plancards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* start screen */
.onboard { min-height: 100vh; background: var(--concrete); }
.onboard .boot-note { color: var(--muted); padding: 40px 16px; }
.startpage { max-width: 1100px; margin: 0 auto; padding: 16px 16px 80px; }
.starthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 22px; }
.startcols { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.startform .step { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 16px; margin-bottom: 14px; }
.startform .step > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stepno { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--asphalt); color: #fff; font: 700 1rem/1 var(--head); flex: none; }
.tradegroup { margin-top: 12px; } .tradegroup h3 { font-size: 1rem; color: var(--muted); margin-bottom: 6px; }
.chips .chip[aria-pressed] { min-height: 36px; }
.chip[hidden] { display: none; }
.places .place { padding: 14px 16px; margin-bottom: 10px; }
.place .statefield { margin-bottom: 8px; flex: 1 1 240px; max-width: 360px; } .place .whole { margin: 2px 0 10px; }
.place .countyfind { max-width: 320px; margin-bottom: 10px; }
.chips.counties { padding: 2px; }
.chips.counties.scrolls { max-height: 330px; overflow-y: scroll; scrollbar-gutter: stable; border: 1px solid var(--rule); border-radius: var(--r); padding: 8px; }
.startform .submitrow { margin-top: 18px; }
.startform .notice[hidden] { display: none; }
.preview .counts { margin: 8px 0 12px; gap: 10px 22px; } .preview .counts b { font-size: 1.7rem; }
.preview .upcoming li { grid-template-columns: 58px 1fr; }
@media (min-width: 900px) {
  .startpage { padding: 24px clamp(24px, 4vw, 56px) 80px; }
  .startcols { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .startside { position: sticky; top: 16px; }
  .startform .step { padding: 20px 22px; }
}
/* plan and billing, team */
.billing .plancards { margin: 12px 0 10px; grid-template-columns: 1fr; }
.billing .plan { padding: 16px; }
.billing .cycle { margin: 0; } .cycle button[aria-pressed] { min-height: 36px; }
.billing .feat li { margin-bottom: 8px; }
.wallbar { font-size: 1.05rem; }
.upgrade .row { margin-top: 14px; }
@media (min-width: 1241px) { .billing .plancards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* inbox setup and "bid it?" (Nov 8): the forwarding address, Gmail's code, the steps; Yes / No / Remind me on Today and the job */
.inboxpage { max-width: 880px; }
.addrrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addrrow .btn { min-height: 44px; }
.inaddr { display: block; flex: 1 1 260px; min-width: 0; font: 600 clamp(1rem, 4.2vw, 1.7rem)/1.25 var(--body); color: var(--blue-dark); background: var(--blue-soft); border-radius: var(--r); padding: 12px 14px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.gcode { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.gcode-say { font: 600 1.25rem/1.2 var(--head); margin-bottom: 8px; }
.gcode .code, .gcodeold .code { font: 700 clamp(1.8rem, 9vw, 2.6rem)/1 var(--head); letter-spacing: 0.08em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.gcode p.sm, .gcodeold p.sm { margin: 10px 0; }
details.gcodeold > summary { font-weight: 500; color: var(--blue); }
.inboxstatus .tag { margin-right: 2px; }
.counts.inboxcounts { margin: 12px 0 10px; } .inboxcounts span { color: var(--muted); }
.tabs { margin-bottom: 12px; } .tabs .chip { min-height: 40px; }
ol.howto { margin: 0; padding-left: 22px; } ol.howto li { margin-bottom: 10px; overflow-wrap: anywhere; } ol.howto li:last-child { margin-bottom: 0; }
.bidit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bidit .bidq { font-weight: 600; margin-right: 2px; }
.bidit .btn { min-height: 40px; }
.bidit .pickday, .bidit .pickday label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bidit .pickday input[type=date] { width: auto; min-width: 150px; }
.bidit.done { color: var(--go); font-weight: 500; }
.todo .bidit { flex-wrap: wrap; }
.todo li.decided .t, .todo li.decided .d { color: var(--muted); }
.invite .ourread .tag { margin-right: 4px; }
.invite .facts { margin-top: 12px; }
.invlinks { margin-top: 14px; } .invlinks h3 { font-size: 1rem; margin-bottom: 6px; } .invlinks li { padding: 3px 0; overflow-wrap: anywhere; }
.invlinks .answers { background: var(--concrete); border-radius: var(--r); padding: 8px 12px; margin-top: 8px; } .invlinks .answers p { margin: 0; } .invlinks .answers p + p { margin-top: 4px; }

/* ---------- bid sheets: the panel on the proposal screen, the takeoff import, the templates screen (js/bidsheet.js, js/templates.js) */
.bidsheet .field { max-width: 420px; margin-bottom: 4px; }
select.sheetpick { max-width: 100%; }
ol.sheetsecs { margin: 6px 0 12px; padding-left: 22px; columns: 2 240px; column-gap: 28px; font-size: 0.92rem; }
ol.sheetsecs li { break-inside: avoid; padding: 1px 0; }
details.sheetwords { margin: 6px 0 12px; } details.sheetwords > summary { cursor: pointer; color: var(--blue); font-weight: 500; padding: 6px 0; }
details.sheetwords textarea { width: 100%; }
label.checkline { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 6px 0; } label.checkline input { margin-top: 4px; flex: none; }
dialog.wide { width: min(1100px, calc(100vw - 16px)); }
dialog .dlgbody { padding: 20px 22px; }
table.tkprev td { vertical-align: top; } table.tkprev select.linepick { max-width: 280px; }
table.tkprev .src { font-size: 0.82rem; color: var(--muted); }
table.tkprev tr.off td { opacity: 0.5; }
.tpledit .secrow { border-top: 1px solid var(--rule); padding: 12px 0; } .tpledit .secrow:first-child { border-top: 0; padding-top: 0; }
.tpledit .secrow input[type=text], .tpledit .secrow textarea { width: 100%; margin-top: 6px; }
.tpledit .editrow { align-items: center; margin-bottom: 8px; } .tpledit .editrow input { width: 100%; } .tpledit .editrow .row { flex-wrap: nowrap; } .tpledit .editrow .row input { flex: 1; min-width: 0; }
table.lineedit input { width: 100%; min-width: 0; } table.lineedit td.u { width: 90px; } table.lineedit td.u input { width: 80px; }
@media (max-width: 900px) { ol.sheetsecs { columns: 1; } table.tkprev select.linepick { max-width: 100%; width: 100%; } table.lineedit td.u, table.lineedit td.u input { width: 100%; } dialog .dlgbody { padding: 16px 14px; } }

/* ---------- the brand's colors: the logo greens (#009263, #1B3524) and white. js/brand.js sets data-edition on the page; the
   static pages (terms, privacy) carry it in their markup. */
html[data-edition="subscriber"] {
  --asphalt: #1b3524; --asphalt-2: #24432f; --asphalt-3: #2f573c; --deep: #10221a; --green: #3ccf97; --green-lite: #a6ecc9;
  --blue: #007a52; --blue-dark: #00603f; --blue-soft: #e2f3eb; --drop-tint: rgba(0, 146, 99, 0.10); --brand: #009263; --brand-dark: #1b3524;
}
html[data-edition="subscriber"] .hero { background: radial-gradient(circle at 85% 20%, #2f573c 0, var(--asphalt) 40%, var(--deep) 100%); }
html[data-edition="subscriber"] .brand span, html[data-edition="subscriber"] .who, html[data-edition="subscriber"] .stats span { color: #b6cfbf; }
html[data-edition="subscriber"] .herotext > p:not(.tagline) { color: #d3e6da; }
html[data-edition="subscriber"] .stats .asof { color: #97b6a3; }
html[data-edition="subscriber"] .door span { color: #c6dccd; }
html[data-edition="subscriber"] .legalhead b { letter-spacing: 0.02em; }

/* Ask Bob on every screen (js/askdock.js): a round button at the bottom right and a side panel that knows the screen. */
.askfab { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 12px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font: 600 1rem/1 var(--body); cursor: pointer; box-shadow: 0 6px 18px rgba(16, 34, 26, 0.28); }
.askfab:hover { background: var(--blue-dark); } .askfab:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.askfab img { display: block; }
.askdock.away .askfab, .askdock.open .askfab { display: none; }
.dockpanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 40; display: flex; flex-direction: column; background: var(--paper);
  box-shadow: -10px 0 30px rgba(16, 34, 26, 0.18); transform: translateX(105%); visibility: hidden; }
.askdock.open .dockpanel { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .dockpanel { transition: transform 0.18s ease-out, visibility 0.18s; } }
.dockhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--asphalt); color: #fff; border-bottom: 3px solid var(--green); }
.dockhead img { flex: none; } .dockwho { min-width: 0; flex: 1; } .dockwho > b { display: block; font: 600 1.15rem/1.1 var(--head); }
.dockwhere { margin: 2px 0 0; font-size: 0.85rem; color: #c3cad2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dockwhere b { color: #fff; font-weight: 500; }
.dockbtns { display: flex; align-items: center; gap: 12px; flex: none; } .dockbtns .linkbtn { color: #fff; font-size: 0.9rem; }
.dockclose { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.dockbody { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.dockbody .thread { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.dockbody .msg { max-width: 100%; } .dockbody .msg.reply { background: var(--concrete); padding: 9px 12px; border-radius: 12px 12px 12px 2px; }
.dockbody .composerwrap { margin-top: 10px; } .dockbody .composer textarea { font-size: 16px; }
@media (min-width: 1280px) { body.dockopen .shell { padding-right: 440px; } }
@media (max-width: 900px) {
  .askfab { right: 14px; bottom: calc(64px + env(safe-area-inset-bottom)); padding: 8px 14px 8px 10px; }
  .dockpanel { width: 100vw; box-shadow: none; }
}
body.guest .askdock { display: none; }
@media print { .askdock { display: none !important; } }

/* The logo: one size everywhere (--logo-h), a little smaller on phones. In the app on a phone, where the side rail is
   hidden, a slim green bar on top carries it. The home page: the words spread wider across the green. */
@media (max-width: 560px) { :root { --logo-h: 60px; } }
.phonehead { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-rows: auto minmax(0, 1fr); }   /* the bar stays its own height; the page takes the rest */
  .phonehead { display: flex; align-items: center; background: var(--asphalt); padding: 10px 16px; }
  .phonehead a { display: block; } .phonehead img { height: var(--logo-h); width: auto; display: block; }
}
@media (min-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 64px; padding-top: 64px; padding-bottom: 72px; }
  .herotext h1 { font-size: clamp(4.6rem, 7.2vw, 7.4rem); margin-bottom: 12px; }
  .herotext .tagline { font-size: clamp(1.6rem, 2.5vw, 2.3rem); margin-bottom: 20px; }
  .herotext > p:not(.tagline) { font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.55; max-width: 62ch; }
  .stats { gap: 14px 52px; margin-top: 30px; padding-top: 24px; }
  .stats b { font-size: clamp(2.2rem, 3vw, 2.9rem); } .stats span { font-size: 1rem; }
}
/* Setup: a trade the list does not have. */
.addtrade { border-top: 1px dashed var(--rule); padding-top: 14px; }
.addtrade .addrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; margin: 8px 0; }
@media (max-width: 700px) { .addtrade .addrow { grid-template-columns: 1fr; } }
/* Sign-in buttons beside Google. */
.signbox .btn.provider { margin-top: 8px; } .signbox .btn.provider.apple { background: #000; border-color: #000; color: #fff; }
/* The facts behind a GC's grade. */
.because { margin: 6px 0 4px; padding-left: 18px; color: var(--muted); } .because li { margin: 2px 0; }
/* The GC side of a job: subs found, the invitation list, quotes side by side. */
.subs .subfinds { list-style: none; padding: 0; margin: 6px 0 12px; } .subs .subfinds li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.subs .subfinds li .sub { grid-column: 1; } .subs .subfinds li .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.subs h3 { font-size: 1rem; margin: 14px 0 4px; } .subs .level { margin: 8px 0 14px; } .subs tr.low td { font-weight: 600; }
.subs td input { width: 100%; min-width: 110px; }
.subs .invlist { display: grid; gap: 8px; } .subs .invrow { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; align-items: end; }
.subs .invrow .invname, .subs .invrow .invacts { grid-column: 1 / -1; } .subs .invrow label span { display: block; font-size: 0.8rem; color: var(--muted); }
.subs .invrow input, .subs .invrow select { width: 100%; } .subs .invacts { display: flex; gap: 12px; align-items: center; }
@media (max-width: 560px) { .subs .invrow { grid-template-columns: 1fr; } }


/* ---------- getting GC invitations in (js/invites.js): numbered steps, each with a button to the person's own email,
   a picture of what to click (the labels drawn as buttons), and what to paste with a Copy button */
.guide { border-top: 4px solid var(--brand); }
.guide > p { max-width: 62ch; }
.flowpic { display: flex; align-items: stretch; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.flowpic .fp { flex: 1 1 150px; background: var(--concrete); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.flowpic .fp b { font: 600 1.15rem/1.1 var(--head); }
.flowpic .fp span { font-size: 0.875rem; color: var(--muted); }
.flowpic .fp.on { background: var(--asphalt); color: #fff; } .flowpic .fp.on span { color: var(--green-lite); }
.flowpic .fparrow { align-self: center; font-size: 1.4rem; color: var(--muted); }
.guide > .chips, .guide details.again > .chips { margin: 4px 0 14px; }
.guide .chips .chip[aria-pressed] { min-height: 40px; }
ol.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gstep { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.gstep.plain { display: block; border-style: dashed; }
.gnum { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.2rem/1 var(--head); }
.gbody { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.gbody > h3 { margin-top: 6px; }
.gbody > p { margin: 0; }
.clickpath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; background: var(--concrete); border-radius: var(--r); max-width: 100%; }
.clickpath .uibtn { border: 1px solid #b9c2cb; background: #fff; border-radius: 4px; padding: 3px 10px; font-size: 0.9rem; font-weight: 500; box-shadow: 0 1px 0 #b9c2cb; overflow-wrap: anywhere; }
.clickpath .cparrow { color: var(--muted); font-weight: 600; }
.uifield { width: 100%; max-width: 640px; }
.uifield .uilabel { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.uifield .uirow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uifield .uival { flex: 1 1 220px; min-width: 0; border: 2px dashed var(--brand); background: var(--blue-soft); color: var(--blue-dark); border-radius: var(--r); padding: 8px 10px; font-weight: 600; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.uifield .btn.sm, .gbody > .btn { min-height: 44px; }
.wordchips { display: flex; flex-wrap: wrap; gap: 8px; } .wordchips .chip { min-height: 40px; }
.gcode.inguide { margin: 0; width: 100%; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; }
.waiting .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); flex: none; }
@media (prefers-reduced-motion: no-preference) { .waiting .pulse { animation: bbpulse 1.4s ease-in-out infinite; } }
@keyframes bbpulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.goodbox { background: var(--go-soft); border-left: 4px solid var(--go); border-radius: 0 var(--r) var(--r) 0; padding: 10px 14px; }
.goodbox.big { font-size: 1.05rem; margin-bottom: 12px; }
.guide details.again > summary, details.allsteps > summary { cursor: pointer; font-weight: 500; color: var(--blue); }
details.allsteps > .panel { border: 0; padding: 14px 0 0; margin: 0; }
.nudge { border-top: 4px solid var(--brand); }
@media (max-width: 560px) {
  .gstep { grid-template-columns: 1fr; padding: 12px; } .gnum { width: 32px; height: 32px; font-size: 1.05rem; }
  .flowpic { flex-direction: column; gap: 4px; } .flowpic .fp { flex: none; padding: 8px 12px; } .flowpic .fparrow { transform: rotate(90deg); align-self: flex-start; margin-left: 14px; line-height: 1; }
}
/* the ™ beside the name in the home page heading (the logo files carry their own) */
sup.tm { font-size: 0.38em; vertical-align: top; position: relative; top: 0.18em; margin-left: 0.06em; font-weight: 600; }
/* "Show me" from Ask: the element the helper points at (js/app.js spotlight) */
.spotlight { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: var(--r); box-shadow: 0 0 0 9999px rgba(16, 34, 26, 0.18); position: relative; z-index: 5; }
@media (prefers-reduced-motion: no-preference) { .spotlight { animation: bbspot 1.2s ease-in-out 3; } }
@keyframes bbspot { 0%, 100% { outline-color: var(--yellow); } 50% { outline-color: var(--brand); } }

/* ---------- grades and track records (records.js) */
.tag.grade { font-family: var(--head); font-size: 0.95rem; min-width: 2.4em; text-align: center; padding: 0 6px; }
.record .recordhead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.bigletter { flex: none; width: 64px; height: 64px; border-radius: var(--r); display: grid; place-items: center; font: 700 2rem/1 var(--head); background: var(--concrete); color: var(--muted); }
.bigletter.yes { background: var(--go-soft); color: var(--go); } .bigletter.sub { background: var(--blue-soft); color: var(--blue-dark); }
.bigletter.watch { background: var(--hold-soft); color: var(--hold); } .bigletter.no { background: var(--stop-soft); color: var(--stop); }
.facts-list { list-style: none; padding: 0; margin: 0; }
.facts-list .fact { border-top: 1px solid var(--rule); padding: 10px 0; }
.facts-list .fact p { margin: 4px 0; }
.facts-list .fact.flagged { background: var(--hold-soft); padding: 10px 8px; }
.facts-list .fact.removed { opacity: 0.55; }
.flagnote { color: var(--hold); } .flagform textarea { width: 100%; margin: 6px 0; }
.meter { height: 8px; background: var(--concrete); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.meter span { display: block; height: 100%; background: var(--brand); }
.fact .stars { color: var(--hold); font-weight: 600; }
