:root {
  color-scheme: light;
  font-family: Geist, "Instrument Sans", Inter, system-ui, sans-serif;
  background: #f3f5f8;
  color: #18283a;
  --ink: #172a3e;
  --muted: #516476;
  --blue: #2154bd;
  --blue-dark: #143985;
  --line: #d9e1ea;
  --paper: #fff;
  --cool: #f1f5fa;
  --focus: #3069d3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, nav, .section-head, .footer, .actions, .card-heading { display: flex; align-items: center; gap: 12px; }
.bar, .section-head, .card-heading { justify-content: space-between; }
.bar { min-height: 72px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.3rem; font-weight: 790; letter-spacing: -.045em; }
.brand b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #152c48; }
.brand i { width: 15px; height: 15px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: translateY(3px) rotate(45deg); border-radius: 2px 0 0; }
nav { gap: 4px; }
.demo-badge, .badge, .tag { display: inline-flex; align-items: center; width: fit-content; font-size: .81rem; font-weight: 690; line-height: 1.25; }
.demo-badge { border: 1px solid #d8e4ef; border-radius: 100px; color: #314f6d; padding: 6px 10px; white-space: nowrap; }
.demo-badge::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #327e77; }
.badge, .tag { flex-shrink: 0; white-space: nowrap; border-radius: 6px; color: #31516f; background: #eaf1f8; padding: 5px 8px; }
.badge.caution { background: #f9efd9; color: #734c0e; }
.badge.outside { background: #e4f2ee; color: #265d52; }
button { font: inherit; font-size: .91rem; font-weight: 710; cursor: pointer; border: 1px solid transparent; border-radius: 8px; color: white; background: var(--blue); padding: .68rem .94rem; min-height: 42px; }
button:hover { background: var(--blue-dark); }
button:disabled { opacity: .48; cursor: default; }
button.secondary, .nav-btn { background: #fff; color: var(--ink); border-color: #cbd7e4; }
button.secondary:hover, .nav-btn:hover { background: #eaf1f8; }
button.compact { padding: .48rem .65rem; min-height: 34px; font-size: .84rem; }
.nav-btn { border-color: transparent; color: var(--muted); }
.nav-btn[aria-current="page"] { background: #eaf1fc; color: #184590; }
a { color: #184a9b; text-underline-offset: .19em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); background: #132940; color: #f7fbff; border-radius: 19px; overflow: hidden; margin: 28px 0 34px; }
.hero-copy { padding: clamp(24px, 4vw, 57px); align-self: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 4vw, 3.45rem); letter-spacing: -.057em; line-height: 1.04; font-weight: 770; }
.hero h1 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
h2 { font-size: 1.38rem; letter-spacing: -.032em; line-height: 1.23; }
h3 { font-size: 1.06rem; letter-spacing: -.015em; }
p { line-height: 1.5; }
.muted, .section-head p, .compare-heading p { color: var(--muted); }
.hero-copy > p { color: #d0deeb; margin: 15px 0 23px; font-size: 1.04rem; max-width: 36ch; }
.hero-copy .hero-kicker { color: #a9c6d6; margin: 0 0 15px; font-size: .88rem; font-weight: 720; }
.hero-kicker span { display: inline-block; width: 15px; height: 2px; vertical-align: middle; margin-right: 5px; background: #84cbb9; }
.hero-actions { flex-wrap: wrap; }
.hero-actions button:not(.secondary) { background: #e9f3ff; color: #133861; }
.hero-actions button:not(.secondary):hover { background: white; }
.hero-actions button.secondary { border-color: #71869b; background: transparent; color: #fff; }
.hero-actions button.secondary:hover { background: #29445d; }
.hero-photo { position: relative; min-height: 290px; }
.hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 42%; }
.hero-photo span { position: absolute; bottom: 12px; right: 12px; padding: 3px 7px; font-size: .75rem; border-radius: 5px; background: #132940e6; color: #fff; }
.section-head { margin: 28px 0 16px; align-items: end; }
.section-head p:not(.crumb) { margin-top: 5px; }
.find-heading { margin-bottom: 12px; }
.workspace-head { margin-top: 26px; }
.crumb { font-size: .84rem; margin-bottom: 8px; color: var(--muted); }
.card, .offer-card, .filter-box, .quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 0; padding: 19px; overflow-wrap: anywhere; }
.card-heading { align-items: start; margin-bottom: 13px; }
.card-heading p, .compare-heading p { margin-top: 5px; }
.filter-box { display: grid; grid-template-columns: 1.4fr .75fr 1fr auto; gap: 12px; align-items: end; padding: 14px; }
.filter-box label, .project-picker { margin: 0; }
.results-count { margin: 12px 0; font-size: .9rem; }
.offer-grid, .quote-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%),1fr)); gap: 12px; }
.offer-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.offer-card h3 { font-size: 1.18rem; }
.offer-card button { margin-top: auto; }
.offer-meta { font-size: .9rem; color: var(--muted); padding: 5px 0; }
.columns, .project-grid, .business-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.project-grid, .business-grid { gap: 14px; align-items: start; }
.business-grid { grid-template-columns: minmax(0, 1.38fr) minmax(0, .82fr); }
.project-actions { align-items: end; flex-wrap: wrap; }
.project-picker { min-width: min(230px, 100%); }
.subnav { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin: 0 0 15px; }
.subnav button { background: transparent; color: var(--muted); border: 0; border-radius: 0; border-bottom: 2px solid transparent; padding-inline: .8rem; }
.subnav button[aria-pressed="true"] { border-bottom-color: var(--blue); color: #184590; }
.subnav button:hover { background: #eaf1f8; }
.compare-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin: 0 0 13px; }
.quote-cards { margin-bottom: 14px; }
.quote-card { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; }
.quote-card .price { font-size: 1.55rem; letter-spacing: -.045em; font-weight: 760; }
.quote-card .muted { font-size: .86rem; }
.quote-card .actions { margin-top: auto; flex-wrap: wrap; }
.attention, .history-panel, #quote-editor { margin-block: 14px; }
.attention-row, .desk-row, .history-row { padding: 10px 1px; border-bottom: 1px solid var(--line); }
.attention-row:last-child, .desk-row:last-child, .history-row:last-child { border-bottom: 0; padding-bottom: 0; }
.attention-row { display: grid; grid-template-columns: minmax(110px, .55fr) 1.5fr; align-items: center; gap: 9px; }
.attention-row .actions { flex-wrap: wrap; gap: 6px; }
.history-row p, .desk-row p { margin: 4px 0 7px; }
.history-row details { margin: 7px 0; }
.history-row .actions { margin-top: 8px; flex-wrap: wrap; }
.desk-row h3 { margin-bottom: 4px; }
.desk-row a { display: inline-block; margin: 3px 0 7px; }
.desk-row button { margin-top: 5px; }
label, legend { display: block; font-weight: 660; font-size: .91rem; }
label { margin-bottom: 12px; }
input, select, textarea { width: 100%; display: block; margin-top: 5px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #afbfce; border-radius: 7px; padding: .6rem .66rem; min-height: 42px; }
input[type=checkbox] { width: auto; min-height: auto; display: inline; margin: 0 6px 0 0; accent-color: var(--blue); }
select { appearance: none; padding-right: 29px; background: linear-gradient(45deg, transparent 48%, #385572 50%) right 13px center/5px 5px no-repeat, linear-gradient(135deg, #385572 48%, transparent 50%) right 8px center/5px 5px no-repeat, white; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 7px; margin: 0 0 13px; padding: 10px; min-width: 0; }
legend { padding: 0 5px; }
fieldset label { margin: 0 0 7px; }
fieldset label:last-child { margin-bottom: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checks label { margin: 0; }
.confirm, .callout, .notice { padding: 10px 12px; border-radius: 8px; border: 1px solid #d2dfeb; background: #edf3fa; color: #23476d; }
.callout { margin-bottom: 13px; }
.notice { margin-top: 15px; }
.notice.error { border-color: #e6bec1; color: #782d38; background: #fff0f2; }
.empty { padding: 22px; border: 1px dashed #aebfd3; background: #eef3f9; border-radius: 10px; margin: 11px 0; color: #35516d; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 165px; overflow-wrap: anywhere; font-size: .91rem; }
th:first-child { width: 153px; min-width: 130px; position: sticky; left: 0; background: #f3f6fa; box-shadow: inset -1px 0 var(--line); z-index: 1; }
thead th, thead th:first-child { background: #e9f0fa; color: #304d68; }
tbody tr:last-child :is(th, td) { border-bottom: 0; }
td small, th small { display: block; color: var(--muted); margin-top: 4px; }
.cell-open { color: #724b13; }
.scroll-hint { display: none; margin: 6px 0; color: var(--muted); font-size: .85rem; }
summary { cursor: pointer; color: #224f83; font-weight: 660; padding-block: 3px; }
#offer-form { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.scope-line { display: grid; grid-template-columns: minmax(135px,1fr) minmax(95px,.58fr) minmax(0,1.55fr); padding: 8px 0; gap: 6px 12px; border-top: 1px solid var(--line); }
.scope-line label { margin-bottom: 0; }
.scope-line .scope-note { grid-column: 3; }
dialog { border: 1px solid #c7d4e2; padding: 0; width: min(720px, calc(100% - 26px)); max-height: calc(100dvh - 34px); border-radius: 13px; color: var(--ink); box-shadow: 0 14px 52px #15294237; }
dialog::backdrop { background: #0b1b30a8; }
.dialog-head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); padding: 15px 18px; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.dialog-head p { margin-top: 5px; font-size: .91rem; }
.dialog-body { padding: 17px 18px; }
.dialog-body h3 { margin: 8px 0; }
.dialog-body > .muted { margin-bottom: 9px; }
.dialog-body .notice { margin: 0 0 9px; }
.activity-entry { border-top: 1px solid var(--line); padding: 12px 0; }
.activity-entry .actions { margin-top: 7px; }
#answer-history { margin: 10px 0 18px; }
.change-lines { padding-left: 20px; margin: 6px 0; font-size: .9rem; }
.change-lines li { margin: 5px 0; }
.source-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: var(--cool); border-radius: 7px; font: inherit; font-size: .9rem; }
.footer { margin-top: 28px; border-top: 1px solid var(--line); padding-block: 16px 24px; color: var(--muted); font-size: .84rem; flex-wrap: wrap; }
@media(max-width: 860px) {
  .shell { width: calc(100% - 42px); }
  .hero-copy { padding: 25px; }
  .project-grid, .business-grid { grid-template-columns: 1fr; }
}
@media(max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .bar { flex-wrap: wrap; justify-content: space-between; gap: 6px; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; gap: 2px; }
  .nav-btn { min-height: 38px; padding: .48rem .48rem; font-size: .83rem; }
  .hero { grid-template-columns: 1fr; border-radius: 13px; margin: 15px 0 22px; }
  .hero-copy { padding: 20px; }
  .hero-photo { min-height: 165px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .hero-copy > p { margin: 11px 0 15px; font-size: .97rem; }
  .desktop-break { display: none; }
  .filter-box { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .filter-box label:first-child { grid-column: 1 / -1; }
  .filter-box button { grid-column: 1 / -1; }
  .workspace-head { flex-wrap: wrap; margin: 18px 0 12px; }
  .workspace-head h1 { font-size: 2rem; }
  .project-picker { min-width: min(190px, 100%); }
  .project-actions { width: 100%; }
  .project-actions label { flex: 1; }
  .compare-heading { flex-wrap: wrap; }
  .quote-cards { display: flex; overflow: auto; scroll-snap-type: x mandatory; align-items: start; }
  .quote-card { flex: 0 0 min(232px, 78%); scroll-snap-align: start; padding: 12px; gap: 5px; }
  .quote-card .actions { margin-top: 3px; }
  .quote-card .muted { line-height: 1.35; }
  .quote-card :is(h3, .source-meta) { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .attention-row { grid-template-columns: 1fr; }
  .card, .offer-card { padding: 15px; }
  .scope-line { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .scope-line .scope-note { grid-column: 1 / -1; }
  .scroll-hint { display: block; }
  th, td { min-width: 146px; }
  th:first-child { min-width: 105px; }
}

.actions.wrap { flex-wrap: wrap; }

/* Project delivery workspace */
#business-work { margin-top: 20px; }
#delivery, #business-work { scroll-margin-top: 14px; }
.work-empty { padding: 24px; }
.work-empty > * + * { margin-top: 9px; }
.work-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 17px;
  border-radius: 13px; background: #132940; color: #fcfeff; padding: 22px 24px; margin-bottom: 12px;
}
.work-banner h2 { font-size: clamp(1.5rem,3vw,2.1rem); margin: 5px 0; }
.work-banner p { color: #d0deeb; }
.work-banner .work-ref { color: #a8ccda; font-size: .88rem; font-weight: 720; }
.work-action { background: #eef5ff; color: #173d68; flex-shrink: 0; }
.work-action:hover { background: white; }
.budget-grid, .work-grid { display: grid; gap: 12px; margin: 12px 0; }
.budget-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.work-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr); align-items: start; }
.budget-cell {
  min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.budget-primary { border-color: #b6d8d4; background: #e9f4f2; }
.budget-cell strong { display: block; font-size: clamp(1.42rem,3vw,2.35rem); letter-spacing: -.045em; margin: 4px 0; overflow-wrap: anywhere; }
.budget-cell .muted, .budget-label, .pending-budget { font-size: .9rem; }
.budget-label { font-weight: 680; color: #31516f; }
.pending-budget { display: flex; flex-wrap: wrap; gap: 8px 16px; background: #eaf0f8; border-radius: 8px; padding: 11px 14px; }
.work-change + .work-change { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.work-change p, .work-change details, .work-change .actions { margin-top: 7px; }
.change-title { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.change-title .badge { text-transform: capitalize; }
.change-amount { font-weight: 720; }
.work-timeline { list-style: none; margin: 9px 0 0 3px; padding-left: 14px; border-left: 2px solid #b8d1de; font-size: .9rem; }
.work-timeline li { position: relative; margin-bottom: 9px; }
.work-timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #356c8c; }
.work-timeline time { display: block; color: var(--muted); margin-top: 2px; font-size: .81rem; }
.scope-summary { margin: 12px 0; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 6px 10px; }
.scope-summary dt { font-weight: 650; }
.scope-summary dd { margin: 0; }
#delivery > .card, #business-work > .card { margin-top: 12px; }
.proposal-form > h3 { margin-bottom: 13px; }
@media (max-width: 640px) {
 .subnav button { padding-inline: .38rem; font-size: .78rem; }
 .work-banner, .work-grid { grid-template-columns: 1fr; }
 .work-banner { align-items: flex-start; flex-direction: column; padding: 16px; }
 .budget-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
 .budget-primary { grid-column: 1 / -1; }
 .budget-cell { padding: 12px; }
}
.access-card { width: min(510px,100%); margin: 35px auto; padding: 23px; }
.access-card h1 { font-size: 2rem; }
.access-card details { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.access-card details form { margin-top: 12px; }
.access-card .notice { margin: 12px 0; }
