/* Lock The Job — design system (unified color scheme, 2026-10-30).
 * One scheme across the whole app, matching the sign-in page:
 * forest #003F30, burnt orange #B74718, off-white #F5F6F2,
 * sage #E4EBE5, amber #FBECCB, borders #D4DDD6, text #17251F,
 * secondary #57605D, lighter green #2A6B45 for secondary buttons.
 * Styling only: no ids, strings, behavior, or structure changed
 * by this file. Glove / sunlight mode stays on: 56px tap targets
 * (52px nav), safe-area padding, visible amber focus state. */
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #17251F;
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 21px calc(120px + env(safe-area-inset-bottom));
}
/* Header, like the Muse reference: white background, and the deep-green
 * bar hugs only the kicker + business name (the title block), not the
 * whole header. The signed-out auth screen hides this header entirely
 * and shows its own hero. */
header {
  background: #FFFFFF;
  margin: -20px -21px 20px;
  padding: 16px 21px 16px;
}
.header-title-block { border-left: 6px solid #003F30; padding-left: 12px; }
h1 {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 0 0 6px;
  color: #003F30;
  letter-spacing: 0.01em;
}
header .tagline {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.3rem;
  color: #17251F;
  margin: 0 0 10px;
  font-weight: 600;
}
header .hint { color: #57605D; }
/* Header actions: deep green "+ New quote" solid button + outlined
 * square "⋯" menu button, shown only once signed in (hidden toggled
 * in app.js showSection alongside the nav). */
#header-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}
/* Reference header actions are compact and right-aligned; without
 * this the base button rule (width: 100%) stretches both buttons
 * across the full row. */
#header-actions button {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
#header-actions[hidden] { display: none; }
#btn-header-new-quote {
  min-height: 52px;
  padding: 12px 20px;
  background: #003F30;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: 900;
  font-size: 0.89rem;
}
#btn-header-more {
  min-height: 58px;
  min-width: 58px;
  padding: 12px;
  background: #fff;
  color: #003F30;
  border: 1px solid #D4DDD6;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.2rem;
}
#btn-header-more svg { display: block; margin: auto; width: 26px; height: 26px; }
body.signed-out header {
  background: #003F30;
  border-left: none;
}
body.signed-out h1 { color: #fff; }
body.signed-out header .tagline { color: #E4EBE5; }
body.signed-out header .hint { color: #E4EBE5; }
/* Home matches the reference: no tagline and no business-phone line
 * under the business name on the dashboard. Scoped to the dashboard
 * view only — other signed-in screens keep the current header, and
 * the sign-in screen is untouched. */
body.showing-dashboard header .tagline,
body.showing-dashboard #biz-phone-display { display: none; }
/* Header kicker: SALES DESK, small green caps; hidden on the
 * signed-out auth screen (dark band). */
.header-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #003F30;
  margin: 0 0 8px;
}
body.signed-out .header-kicker { display: none; }
/* Kickers: small green caps (DO THIS NEXT, TODAY, QUICK QUOTE, ...).
 * .light is the pale-green variant used on dark cards. */
.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #003F30;
  margin: 20px 0 8px;
}
.kicker.light { color: #a8c3a2; }
/* Signed-in header name, like the Muse reference: bold sans in deep
 * green. Kicker, slogan, phone line and New quote fall back to their
 * base rules (dark green / dark text / deep-green button) now that the
 * band overrides are gone. */
header h1 { font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 900; color: #003F30; }
.sheet-title {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 8px 0 12px;
  color: #17251F;
}
/* Serif section headings (Quote performance, Quote Tracker, Quote
 * photos) — normal case, not the uppercase kicker style. */
.serif-heading {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.7rem;
  text-transform: none;
  letter-spacing: 0;
  color: #17251F;
}
.serif-lg {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #17251F;
}
h2 {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 24px 0 12px;
  color: #17251F;
}
/* Home divider, like the Muse reference: a thin dark rule under the
 * Short list heading. */
.dash-divider { border: none; border-top: 1px solid #17251F; margin: 8px 0 16px; }
/* Tab titles stand out, like the Muse reference headings: a soft
 * shadow on the serif section titles. The sign-in title keeps its
 * flat look via the more specific #section-auth rules below. */
h2, .serif-heading, .serif-lg, .sheet-title { text-shadow: 0 2px 4px rgba(23, 37, 31, 0.30); }
#section-auth h2, #section-auth .serif-heading, #section-auth .serif-lg, #section-auth .sheet-title { text-shadow: none; }
/* h3 = section kicker: uppercase, letter-spaced, dark green. */
h3 {
  font-size: 0.95rem;
  margin: 20px 0 8px;
  color: #003F30;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.tagline { color: #17251F; margin: 0 0 16px; font-weight: 600; }
.hint { color: #57605D; font-size: 0.95rem; }
.muted { color: #57605D; font-size: 0.95rem; }
.error {
  background: #FBECCB;
  border: 2px solid #B74718;
  color: #B74718;
  padding: 12px;
  font-weight: 600;
  border-radius: 12px;
}
.notice {
  background: #E4EBE5;
  border: 2px solid #2A6B45;
  color: #003F30;
  padding: 12px;
  font-weight: 600;
  border-radius: 12px;
}
label { display: block; margin: 14px 0; font-weight: 700; color: #003F30; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-size: 0.9rem;
  border: 2px solid #D4DDD6;
  border-radius: 12px;
  background: #fff;
  color: #17251F;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #B74718;
  outline-offset: 2px;
  border-color: #B74718;
  background: #FBECCB;
}
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
  padding: 0;
  vertical-align: middle;
}
input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
  padding: 0;
  vertical-align: middle;
  accent-color: #003F30;
}
input[type="range"] {
  padding: 0;
  border: none;
  accent-color: #003F30;
}
input[type="file"] {
  padding: 8px;
  font-size: 0.9rem;
}
button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 12px 0;
  padding: 14px;
  font-size: 0.89rem;
  font-weight: 700;
  border: 2px solid #D4DDD6;
  border-radius: 14px;
  background: #fff;
  color: #003F30;
  cursor: pointer;
}
button.primary { background: #003F30; color: #fff; border-color: #003F30; }
button.link {
  border: none;
  min-height: 44px;
  color: #003F30;
  background: transparent;
}
button.active { background: #003F30; color: #fff; border-color: #003F30; }
.results { list-style: none; padding: 0; margin: 0; }
.results li {
  padding: 14px;
  border: 2px solid #D4DDD6;
  border-radius: 16px;
  margin: 8px 0;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
}
.results li:active { background: #FBECCB; }
.results li button { margin-top: 10px; }
dl { font-size: 1.05rem; }
dt { font-weight: 700; margin-top: 12px; color: #003F30; }
dd {
  margin: 4px 0 0;
  font-size: 1.3rem;
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: #17251F;
}

/* Onboarding price fields: label + REQUIRED on one baseline,
 * identical full-width inputs, burnt-orange accent, amber focus highlight. */
.price-field { margin: 14px 0; }
.price-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}
/* REQUIRED / OPTIONAL markers: small caps at the right end of the
 * label row (video brief: green caps, not the older rust). */
.required {
  font-size: 0.6rem;
  font-weight: 700;
  color: #003F30;
  letter-spacing: 0.08em;
}
.optional {
  font-size: 0.6rem;
  font-weight: 700;
  color: #003F30;
  letter-spacing: 0.08em;
}
.money-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.money-symbol { font-size: 1.2rem; font-weight: 700; color: #B74718; }
.money-row input { margin-top: 0; flex: 1; }
/* Modal field rows: label left, REQUIRED/OPTIONAL right, input below. */
.field { margin: 14px 0; }
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: #003F30;
}
.field input, .field select { margin-top: 6px; }
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.row-between h2 { margin: 12px 0; }
.row-between .link { width: auto; margin: 0; min-height: 44px; }
.small { font-size: 0.9rem; }
button.small { min-height: 44px; padding: 8px 10px; }

/* Quote cards: white, soft sand border, 18px radius, minimal shadow.
 * Badge = pale green pill, dark green uppercase text. Top row: status
 * pill left, serif total right-aligned, same row. */
.card {
  border: 2px solid #D4DDD6;
  border-radius: 18px;
  padding: 18px;
  margin: 12px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 63, 48, 0.06);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0;
  color: #17251F;
}
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-total {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #17251F;
  white-space: nowrap;
}
.card-validity { font-weight: 700; margin: 6px 0; color: #17251F; }
.card.mint { background: #E4EBE5; }
.card.beige { background: #E4EBE5; }
.badge {
  display: inline-block;
  background: #E4EBE5;
  color: #003F30;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-actions { display: flex; gap: 10px; margin-top: 12px; }
.card-actions button {
  flex: 1;
  margin: 0;
  min-height: 56px;
  text-align: center;
}
/* "More actions" is the non-primary card action; the ellipsis matches
 * the Muse app's "More actions •••" pattern without changing the
 * test-asserted button text in app.js. */
.card-actions button:not(.primary)::after { content: " \2026"; }
.menu { margin-top: 10px; }
.menu button { margin: 8px 0; }
.inline-row { display: flex; gap: 8px; margin-top: 10px; }
.inline-row input { margin-top: 0; flex: 1; }
.inline-row button { margin: 0; min-height: 48px; flex: 0 0 auto; }
.item-row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.item-row input { flex: 1 1 30%; margin-top: 0; min-width: 0; }
.item-row button { flex: 0 0 auto; margin: 0; min-height: 48px; }

/* Dashboard hero + progress bars. */
.hero {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.hero > div {
  flex: 1;
  border: 2px solid #D4DDD6;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 63, 48, 0.06);
}
.hero-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #003F30;
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.hero-label { display: block; font-size: 0.9rem; color: #57605D; font-weight: 600; }
.bar {
  height: 20px;
  border: 2px solid #D4DDD6;
  border-radius: 10px;
  overflow: hidden;
  background: #E4EBE5;
}
.bar-fill {
  height: 100%;
  background: #2A6B45;
  width: 0%;
  transition: width 0.2s ease;
}

/* Follow-up bucket tabs: text tabs, dark green underline on active. */
.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  border-bottom: 2px solid #D4DDD6;
}
.tabs .tab {
  flex: 1;
  margin: 0;
  min-height: 48px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #57605D;
}
.tabs .tab.active {
  background: transparent;
  color: #003F30;
  border-bottom-color: #003F30;
}

/* Bottom nav: white bar, soft top border, dark green labels; active
 * item deep green with a top indicator bar. Four tabs — Home, Quotes,
 * Jobs, Follow-ups — in the reference app's order; Quick Tool and the
 * More destinations live in the header actions above. */
#main-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: 0;
  display: flex;
  gap: 0;
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e7e4d6;
  z-index: 10;
}
#main-nav[hidden] { display: none; }
#main-nav button {
  flex: 1;
  margin: 0;
  min-height: 52px;
  padding: 7px 2px 2px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7d8a80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
#main-nav button.active {
  background: transparent;
  color: #003F30;
  font-weight: 800;
}
#main-nav button.active::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 16%;
  right: 16%;
  height: 3.5px;
  border-radius: 0 0 4px 4px;
  background: #003F30;
}
.nav-icon { display: block; line-height: 1; }
.nav-icon svg { display: block; width: 25px; height: 25px; }

/* Video-parity additions (2026-10-30): DO THIS NEXT card, dark hero,
 * yellow delivery banner, modal sheets, sticky quote-total bar. */
.do-next {
  background: #003F30;
  border-radius: 28px;
  padding: 38px 26px 34px;
  margin: 14px 0 30px;
  color: #fff;
  text-align: center;
}
/* TODAY kicker follows the DO THIS NEXT card: the card's 30px bottom
 * margin is the whole gap (static recreation), so the kicker's usual
 * 20px top margin is suppressed here only. */
#section-dashboard .do-next + .kicker { margin-top: 0; }
.do-next-headline {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 8px 0;
}
.do-next-sub { color: #d7e2d2; margin: 0 0 28px; }
.do-next .text-white { font-size: 0.89rem; font-weight: 800; }
button.text-white {
  background: transparent;
  border: none;
  color: #fff;
  width: auto;
  margin: 0 auto;
  min-height: 44px;
  padding: 8px 10px;
}
.hero-dark {
  background: #003F30;
  border-radius: 18px;
  padding: 18px 16px;
  margin: 12px 0;
  text-align: center;
}
/* Two-cell dark hero (Quote performance): Jobs won + Revenue Won
 * side by side, same rhythm as the light .hero pair. */
.hero-dark.hero-split { display: flex; gap: 12px; }
.hero-dark.hero-split > div { flex: 1; }
.hero-number.light { color: #fff; }
.hero-label.light { color: #E4EBE5; }
.banner-yellow {
  background: #FBECCB;
  border: 2px solid #D4DDD6;
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.banner-yellow .link { text-align: left; width: auto; margin: 8px 0 0; padding: 0; }
.funnel-line { font-weight: 600; font-size: 1.05rem; margin: 4px 0; }
/* Quick Tool modal: full-screen sheet above the nav. Centered like
 * main (480px) without a transform, so the sticky bar's fixed
 * positioning stays viewport-relative. */
#section-quicktool {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  background: #F5F6F2;
  width: 100%;
  max-width: 480px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 20px 16px;
}
#section-quicktool[hidden] { display: none; }
.sheet-wrap { position: relative; }
#qt-step2 { padding-bottom: 150px; }
/* Bottom sheets (Quote created, Final Check): dim backdrop + sheet
 * docked to the bottom, above the Quick Tool modal. */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 37, 31, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.overlay[hidden] { display: none; }
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #F5F6F2;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  position: relative;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: auto;
  min-height: 44px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #003F30;
}
.sheet-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.sheet-footer .link { flex: 0 0 auto; width: auto; margin: 0; }
.sheet-footer .primary { flex: 0 0 auto; width: auto; margin: 0; }
/* Sticky bottom Quote total bar: pinned to the viewport bottom while
 * step 2 is open (hidden with step 2 on step 1). */
.sticky-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: 0;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F5F6F2;
  border-top: 2px solid #D4DDD6;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.sticky-left { display: flex; flex-direction: column; gap: 2px; }
.sticky-total {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #17251F;
}
.sticky-bar button { flex: 0 0 auto; width: auto; margin: 0; min-width: 150px; }
/* Sage primary state: Create quote at $0, and step-1 Next while saving. */
button.primary.sage { background: #2A6B45; border-color: #2A6B45; }
/* Deposit radio cards (None / Percentage / Custom amount): one row of
 * three equal cards in the reference, not a vertical stack. */
.radio-cards { display: flex; flex-direction: row; gap: 10px; margin: 12px 0; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #D4DDD6;
  border-radius: 14px;
  padding: 12px 10px;
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  color: #17251F;
  margin: 0;
  cursor: pointer;
  flex: 1;
}
.radio-card input[type="radio"] { margin: 0; width: 20px; height: 20px; }
/* Onboarding Continue: right-aligned intrinsic-width button in the
 * reference, not full-width. */
#btn-ob-next { width: fit-content; margin: 12px 0 12px auto; padding: 14px 28px; }
/* Waste row: label, slider, value on one row in the reference (the
 * label element keeps wrapping the slider so tapping the text still
 * focuses it; flex order puts the slider before the value). */
label.waste-row { display: flex; align-items: center; gap: 12px; }
label.waste-row input[type="range"] { flex: 1; width: auto; margin-top: 0; order: 2; }
label.waste-row #waste-value { order: 3; white-space: nowrap; }
/* Quick Tool panel header + satellite row: bold heading and label,
 * right-aligned provenance note. */
#qt-tool-card .row-between strong { font-size: 1.3rem; }
#qt-tool-card .row-between span:first-child { font-weight: 700; }
#qt-tool-card .row-between span:last-child { text-align: right; }
/* Deposit schedule: boxed summary with a bold lead, as in the
 * reference (same words, sage box from the existing scheme). */
#qt-deposit-schedule { background: #E4EBE5; padding: 14px; border-radius: 14px; }
/* Jobs empty state: centered, generously padded card in the reference. */
#jobs-empty { text-align: center; padding: 48px 20px; }
/* Quote Tracker funnel strip: number-over-label cells with arrow +
 * percentage steps between them, not a single text line. */
#tracker-funnel { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
#tracker-funnel .funnel-cell { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
#tracker-funnel .funnel-cell strong { font-size: 1.3rem; color: #17251F; }
#tracker-funnel .funnel-cell span { font-size: 0.85rem; font-weight: 600; color: #57605D; }
#tracker-funnel .funnel-step { padding-top: 6px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
/* Sign-in page (founder color spec, 2026-10-30): forest #003F30, burnt
 * orange #B74718, off-white #F5F6F2, sage #E4EBE5, amber #FBECCB,
 * borders #D4DDD6, text #17251F, secondary #65716B. The same scheme
 * now runs across the whole app (unified 2026-10-30). */
body.signed-out { background: #FFFFFF; }
body.signed-out header { display: none; }
#section-auth {
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#section-auth input, #section-auth button {
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#section-auth .serif-hero, #section-auth #auth-title {
  font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
}
/* Hero band: full-bleed forest green (negative margins match main padding). */
.auth-hero {
  background: #003F30;
  border-radius: 0;
  padding: 18px 21px 17px;
  margin: -20px -21px 8px;
}
.auth-hero .serif-hero {
  color: #FFFFFF;
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 24px 0 0;
}
.hero-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-pills span {
  background: #1F5A4D;
  color: #fff;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
}
.hero-pills .pill-arrow { background: transparent; color: #B74718; padding: 0; font-size: 0.9rem; }
/* Auth tabs: two equal halves, heavy labels, burnt-orange underline
 * spanning the FULL tab width (gap 0 keeps the hairline continuous). */
#section-auth .auth-tabs { border-bottom: 1px solid #D4DDD6; margin: 3px 0 20px; gap: 0; }
#section-auth .auth-tabs .tab {
  color: #57605D;
  font-weight: 900;
  font-size: 1.0rem;
  min-height: 64px;
  padding: 20px 14px 8px;
  border-bottom: 3px solid transparent;
}
#section-auth .auth-tabs .tab.active { border-bottom-color: #B74718; color: #17251F; }
/* Session-expired banner: pale amber, only shown on expired sessions. */
.session-banner {
  background: #FBECCB;
  border: 1px solid #D4DDD6;
  border-radius: 14px;
  padding: 11px 16px;
  margin: 0 0 10px;
  color: #17251F;
  font-weight: 800;
  font-size: 0.92rem;
}
/* Auth kicker / title / subtext: airy gaps per the reference frames. */
#section-auth #auth-kicker { color: #003F30; letter-spacing: 0.12em; font-weight: 900; margin: 22px 0 8px; }
#section-auth #auth-title { color: #17251F; font-size: 1.7rem; line-height: 1.15; margin: 22px 0 12px; }
#section-auth #auth-sub { color: #57605D; margin: 0 0 9px; }
/* Auth REQUIRED markers are burnt orange, heavy (in-app ones stay green). */
.required.auth-required { color: #B74718; font-weight: 900; font-size: 0.53rem; }
/* Auth field stack: heavier labels, taller inputs, airy gaps. */
#section-auth .field { margin: 9px 0 11px; }
#section-auth .label-row { font-weight: 900; color: #17251F; font-size: 0.8rem; margin-bottom: 5px; }
#section-auth input { border: 1px solid #D4DDD6; border-radius: 14px; background: #FFFFFF; padding: 12px 14px; font-size: 0.9rem; }
/* Auth submit (both tabs): burnt orange, heavy, tall. Margin-top 27px
 * matches the measured Password-input-to-button gap (27.3px); the
 * generic 12px collapses to 16px, which underspaces this chain. */
#section-auth button.primary { background: #B74718; border-color: #B74718; color: #FFFFFF; min-height: 44px; padding: 10px 14px 7px; font-size: 0.89rem; font-weight: 900; }
#section-auth #btn-auth-primary { margin: 27px 0 18px; }
/* Create-tab primary, faded while the form is invalid (reference shows
 * the salmon disabled state on an empty form; #D99E7E is a JPEG-derived
 * estimate, ±5). The sign-in primary is never disabled. Kept after the
 * margin rule so the "#btn-auth-primary" test lookup still lands on it. */
#section-auth #btn-auth-primary:disabled { background: #D99E7E; border-color: #D99E7E; color: #FFFFFF; }
/* Google button: outlined, dark enabled text, heavy. */
#section-auth #btn-google { background: #FFFFFF; border: 1px solid #D4DDD6; color: #757E7B; font-weight: 900; font-size: 1.05rem; min-height: 44px; padding: 8px 14px; margin: 21px 0 12px; }
/* Forgot link: dark green heavy, above the switch line (frame order). */
#section-auth #btn-forgot { color: #003F30; font-weight: 900; margin: 6px 0 12px; font-size: 0.98rem; }
/* Switch link: grey regular with orange action, heavy action only. */
#section-auth #btn-auth-switch { color: #65716B; font-weight: 400; margin: 24px 0 24px; font-size: 0.83rem; }
/* Auth links render as tight text lines (no padded button box). */
#section-auth button.link { min-height: 0; padding: 0; line-height: 1.2; }
.auth-orange { color: #B74718; font-weight: 900; }
/* Password checklist: rules check off live as they are met. */
.pw-rules { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: 1fr 1fr; }
.pw-rules li { color: #65716B; font-size: 0.95rem; padding: 0; }
.pw-rules li.met { color: #003F30; font-weight: 700; }
/* Divider with centered label ("or continue with email"). */
.divider { display: flex; align-items: center; gap: 12px; color: #65716B; font-weight: 700; margin: 20px 0; }
#section-auth .divider { font-weight: 900; margin: 33px 0 15px; font-size: 0.72rem; color: #57605D; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid #D4DDD6; }
.divider span { white-space: nowrap; }
/* Customer code boxes: label + input + full-width pale-filled button
 * (the reference shows a #F5F6F2 fill on the white page — the v9
 * "plain text" reading was a misread of the stills — button text in
 * a lighter slate-green #80928E sampled from the button text).
 * Separated by hairline dividers (no enclosing box). Code labels are
 * the frames' muted dark slate-green (#57605D, sampled), softer than
 * the pure-dark field labels. */
.code-box { border: none; border-top: 1px solid #D4DDD6; border-radius: 0; padding: 20px 0 0; margin: 22px 0 0; }
.code-box .code-label { font-weight: 900; color: #57605D; margin: 0 0 6px; font-size: 0.77rem; }
.code-box input { margin: 0 0 8px; }
.code-box button { background: #F5F6F2; border: none; color: #80928E; margin: 0; font-weight: 900; font-size: 0.95rem; min-height: 44px; padding: 10px 14px; }
/* Privacy link: dark green heavy, centered, generous bottom padding. */
.auth-privacy { text-align: center; margin: 21px 0 40px; }
.auth-privacy a { color: #003F30; font-weight: 900; text-decoration: none; font-size: 0.81rem; }
/* Tracker detail cards (01 Sent / 02 Viewed / 03 Accepted / 04 Paid). */
.tracker-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tracker-card { border: 2px solid #D4DDD6; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.tracker-card strong { font-size: 1.3rem; color: #17251F; }
/* Inspection photo thumbnails on the created sheet. */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
/* Destructive menu action (Delete proposal). */
.menu button.danger { color: #B74718; }
/* Generic field wrapper (label row + input), used by round-2 forms. */
.field { margin: 14px 0; }

/* Onboarding (founder screenshots, Nov 5): a full-width burnt-orange
 * progress bar, a soft gray page with the form in a white card, Sign
 * out top-right, slash kickers, a sage note on step 2, full price
 * labels, flat serif headlines, and burnt-orange CTAs. Scoped to
 * #section-onboarding so the sign-in and tab styles stay untouched.
 * Placed last so no scoped rule sits before its base rule. */
#section-onboarding { background: #F5F6F2; margin: -20px -21px 0; padding: 20px 21px 32px; }
.ob-progress { height: 6px; background: #D4DDD6; border-radius: 3px; overflow: hidden; margin: 4px 0 12px; }
#ob-progress-fill { display: block; height: 100%; width: 50%; background: #B74718; border-radius: 3px; }
.ob-top { display: flex; justify-content: flex-end; }
#btn-ob-signout { width: auto; margin: 0 0 8px; min-height: 44px; font-weight: 900; color: #17251F; }
.ob-card { background: #fff; border-radius: 24px; padding: 24px 22px; box-shadow: 0 2px 12px rgba(23, 37, 31, 0.08); }
#section-onboarding h2.serif-heading { font-size: 2rem; text-shadow: none; }
#section-onboarding .label-row, #section-onboarding .price-label { font-weight: 900; }
#section-onboarding .required { color: #B74718; }
#section-onboarding .optional { color: #57605D; }
#section-onboarding input { padding: 18px 16px; font-size: 1.05rem; border-radius: 16px; }
#section-onboarding .money-row input { font-size: 1.25rem; font-weight: 700; }
#section-onboarding .money-symbol { color: #17251F; font-size: 1.25rem; }
.ob-note { background: #E4EBE5; padding: 14px; border-radius: 14px; color: #17251F; }
#section-onboarding button.primary { background: #B74718; border-color: #B74718; }
#btn-ob-back { color: #57605D; width: fit-content; margin: 4px auto 12px; }

/* Quick Tool green panel (founder screenshots, Nov 5): the whole
 * estimator lives in the one sage card — satellite estimate, waste,
 * squares, price, shingle type, materials, pack error, Use Roofing
 * pack. Bold filled values, hairline dividers, red pack error, serif
 * Down payment head. Scoped to #section-quicktool. Placed last so no
 * scoped rule sits before its base rule. */
#section-quicktool input, #section-quicktool select { font-size: 1.05rem; font-weight: 700; }
#section-quicktool input::placeholder { font-weight: 400; }
#section-quicktool .sheet-title { font-size: 2rem; text-shadow: none; }
#qt-tool-card .qt-card-head { border-bottom: 1px solid #17251F; padding-bottom: 12px; margin-bottom: 16px; }
#qt-tool-card .sat-row { align-items: flex-start; }
#qt-tool-card .sat-row span:first-child { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
#qt-tool-card .sat-row span:last-child { font-weight: 700; text-align: right; color: #17251F; font-size: 0.9rem; }
#btn-estimate { background: #EDF2EA; border-color: #EDF2EA; color: #003F30; }
.qt-exact { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-weight: 700; color: #17251F; }
.qt-exact a { color: #003F30; font-weight: 700; }
#qt-tool-card .waste-row { font-weight: 700; }
#waste-value { font-weight: 700; color: #003F30; }
#section-quicktool #squares-micro { color: #17251F; font-weight: 700; }
#section-quicktool .saved-note { color: #17251F; font-weight: 700; }
#qt-tool-card .money-symbol { color: #17251F; font-size: 1.25rem; }
#qt-tool-card .money-row input { font-size: 1.25rem; font-weight: 700; }
.qt-materials-row { font-weight: 700; }
#qt-materials-total { font-size: 1.6rem; }
#section-quicktool hr.qt-divider { border: none; border-top: 1px solid #17251F; margin: 16px 0; }
#qt-pack-error { background: none; border: none; padding: 0; color: #A63A2E; font-weight: 700; font-size: 1.05rem; }
#qt-advanced-block { margin: 16px 0; }
#qt-advanced-block .row-between strong { font-size: 1.3rem; }
.qt-deposit-title { font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 1.7rem; color: #17251F; }
#section-quicktool #qt-deposit-amount { font-size: 1.6rem; color: #003F30; }
#section-quicktool .radio-card:has(input:checked) { background: #E4EBE5; border-color: #003F30; }

/* v26 (founder screenshots, Nov 14): quote summary + quote created +
 * Quick Tool, matched to the original Muse app.
 * - Quick Tool: serif "Quick Tool" head, blue selected deposit radio
 *   (the reference's blue dot), plain-red deposit error like the pack
 *   error.
 * - Created sheet: light-grey customer card with Customer / Status
 *   pill / Version / Pricing rows, green headline amount, flat
 *   two-line summary rows with hairline dividers, big serif Total,
 *   "Scope of work" as the heading, bold "Ready when you are.",
 *   taller action buttons. Scoped so Home and sign-in stay untouched. */
#qt-tool-card .qt-card-head strong { font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 1.7rem; font-weight: 700; }
#section-quicktool .radio-card input[type="radio"] { accent-color: #0A84FF; }
#qt-deposit-error { background: none; border: none; padding: 0; color: #A63A2E; font-weight: 700; font-size: 1.05rem; }
.card.created-customer { background: #F2F1EA; border-color: #F2F1EA; box-shadow: none; }
.card.created-customer p { margin: 4px 0; }
.created-card-row { margin-top: 12px; }
.created-card-row .muted.small { margin: 0 0 4px; }
.created-pricing { text-align: right; margin-top: 12px; }
.created-pricing .muted.small { margin: 0 0 4px; }
.created-amount { color: #003F30; }
#created-summary li, #created-lines li { border: none; border-bottom: 1px solid #17251F; border-radius: 0; padding: 16px 0; margin: 0; cursor: default; background: transparent; box-shadow: none; }
#created-summary li:active, #created-lines li:active { background: transparent; }
#created-summary li.summary-row p, #created-lines li.summary-row p { margin: 4px 0 0; }
#created-summary .summary-row .row-between strong:last-child, #created-lines .summary-row .row-between strong:last-child { white-space: nowrap; }
#created-summary li.summary-total { border-bottom: none; padding-top: 20px; }
.summary-total-amount { font-family: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 2.6rem; font-weight: 700; color: #17251F; white-space: nowrap; }
.created-ready { color: #17251F; }
.created-ready strong { display: block; font-weight: 900; }
#btn-created-send, #btn-created-easy, #btn-created-pdf, #btn-created-more { min-height: 64px; border-radius: 16px; }

/* v27 (sampled palette, Nov 14): Quick Tool sage card matched to the
 * original Muse app — sampled #F4F7E6, lighter and warmer/yellower
 * than the rebuild's #E4EBE5 (see rebuild/docs/original-palette-
 * sampled-2026-11-14.md). Scoped to #qt-tool-card only, so the other
 * .card.mint cards (follow-up detail, More) keep the existing sage. */
#qt-tool-card { background: #F4F7E6; }
