:root {
  --forest: #153d2f;
  --forest-2: #0f2d24;
  --forest-3: #092018;
  --leaf: #2f7d56;
  --grass: #6fb536;
  --lime: #b7f04b;
  --mint: #ebf7e0;
  --sun: #f0c34a;
  --paper: #f8f9f6;
  --paper-2: #f0ede4;
  --card: #ffffff;
  --charcoal: #1a2220;
  --muted: #6b7670;
  --line: #e4e8e2;
  --danger: #b33a32;
  --warning: #b97716;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(21, 61, 47, 0.07), 0 8px 24px rgba(21, 61, 47, 0.06);
  --shadow-strong: 0 4px 12px rgba(21, 61, 47, 0.10), 0 16px 40px rgba(21, 61, 47, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-bottom: 88px;
}

button, input, textarea, select, a.button {
  font: inherit;
}

button, a.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover, a.button:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 61, 47, 0.22);
  box-shadow: 0 4px 12px rgba(21, 61, 47, 0.10);
  background: #fafcf8;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(183, 240, 75, 0.75);
  outline-offset: 2px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -12px -12px 0;
  padding: 11px 14px;
  background: rgba(248, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(21, 61, 47, 0.07);
  box-shadow: 0 1px 0 rgba(21, 61, 47, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}

.brand span {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--forest), #378658 55%, var(--lime));
  box-shadow: 0 10px 22px rgba(21, 61, 47, 0.24);
}

.brand div {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-search input {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
}

.search-results {
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.search-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--forest);
}

.search-title span {
  color: var(--muted);
  font-weight: 900;
}

.admin-reminder {
  display: grid;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 16px;
  border: 2px solid rgba(179, 58, 50, .28);
  border-left: 7px solid var(--danger);
  border-radius: var(--radius);
  background: #fff7f1;
  box-shadow: var(--shadow);
}

.admin-reminder h2 {
  margin: 0 0 6px;
  color: var(--danger);
}

.admin-reminder p {
  margin: 0 0 8px;
  color: var(--charcoal);
  line-height: 1.45;
}

.admin-reminder small {
  color: var(--muted);
  font-weight: 850;
}

.admin-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-result {
  width: 100%;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  text-align: left;
}

.search-result span {
  display: grid;
  gap: 3px;
}

.search-result small {
  color: var(--muted);
  font-weight: 800;
}

.search-result em {
  font-style: normal;
  color: var(--forest);
}

.sync-pill {
  display: none;
  border: 1px solid rgba(21, 61, 47, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.7);
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 16px;
  scrollbar-width: none;
  position: sticky;
  top: 58px;
  z-index: 4;
  background: var(--paper);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.tabs button {
  white-space: nowrap;
  min-height: 36px;
  padding: 7px 14px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
}

.tabs button:hover {
  background: rgba(255,255,255,0.85);
  border-color: var(--line);
  transform: none;
  box-shadow: none;
  color: var(--forest);
}

.tabs .active {
  color: var(--forest);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.mobile-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(21, 61, 47, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(21, 61, 47, 0.16), 0 2px 4px rgba(21, 61, 47, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav button {
  min-height: 54px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-nav button:hover {
  transform: none;
  box-shadow: none;
}

.mobile-nav button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--forest);
  background: var(--mint);
  font-weight: 900;
}

.mobile-nav button small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.mobile-nav .active {
  background: var(--forest);
  color: #fff;
}

.mobile-nav .active span {
  background: var(--lime);
  color: var(--forest);
}

.mobile-nav .active small {
  color: #fff;
}

@media (max-width: 759px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .tabs {
    padding: 8px 12px 10px;
  }

  .tabs button:nth-child(n+7) {
    display: none;
  }

  .top-actions .sync-pill {
    display: none;
  }

  .top-actions button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: .82rem;
  }

  .hero, .module-head {
    padding: 20px;
  }

  .hero h1, .module-head h1 {
    font-size: 2.05rem;
  }

  .customer-editor {
    position: static;
  }

  .customer-list {
    margin-bottom: 0;
  }

  .inline-item {
    grid-template-columns: 1fr;
  }

  .record-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .record-open {
    justify-self: start;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .actions button,
  .actions .button {
    flex-basis: calc(50% - 4px);
  }
}

.hero, .module-head {
  display: grid;
  gap: 18px;
  align-items: end;
  margin: 4px 0 14px;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(140deg, var(--forest-3) 0%, #1a5c40 60%, #2a6b4a 100%);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}

.hero::after, .module-head::after {
  content: "";
  position: absolute;
  inset: auto -6rem -8rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: rgba(183, 240, 75, 0.08);
  pointer-events: none;
}

.hero h1, .module-head h1 {
  margin: 4px 0 8px;
  max-width: 720px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.module-head h1 { font-size: clamp(1.8rem, 5vw, 3.1rem); }

.hero-copy, .module-head p:not(.eyebrow) {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 900;
  color: var(--lime);
}

.primary {
  background: var(--lime);
  border-color: rgba(140, 190, 30, 0.6);
  color: var(--forest-2);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(140, 190, 30, 0.25);
}

.primary:hover {
  background: #c4f85a;
  border-color: rgba(140, 190, 30, 0.7);
  box-shadow: 0 4px 14px rgba(140, 190, 30, 0.35);
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.focus-chip {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(21, 61, 47, 0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 26px rgba(21, 61, 47, 0.08);
}

.focus-chip span, .focus-chip small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.focus-chip strong {
  display: block;
  margin: 3px 0;
  color: var(--forest);
  font-size: 1.08rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.metric, .panel, .card, .stub-box, .setting, .incoming {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 116px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric span, .metric small, .row small, .note, .empty {
  color: var(--muted);
}

.metric strong {
  font-size: 2rem;
  color: var(--forest);
  letter-spacing: 0;
}

.metric.lime { background: var(--mint); }
.metric.forest { background: linear-gradient(135deg, var(--forest), var(--leaf)); color: #fff; }
.metric.forest strong, .metric.forest span, .metric.forest small { color: #fff; }
.metric.danger strong { color: var(--danger); }
.metric.warning strong { color: var(--warning); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 850;
  font-size: .84rem;
}

.two-col {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

.panel {
  padding: 17px;
}

.panel h2, .lane h3 {
  margin: 0 0 12px;
  color: var(--forest);
}

.stack {
  display: grid;
  gap: 8px;
}

.row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border-color: var(--line);
  font-weight: 800;
  background: #fbfcfa;
  box-shadow: none;
}

.row span {
  overflow-wrap: anywhere;
}

.cards {
  display: grid;
  gap: 12px;
  margin: 14px 0 80px;
}

.card {
  padding: 17px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--lime) 80%);
  opacity: 0.55;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  margin: 0;
  color: var(--forest);
}

.card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0;
}

.card-top, .split, .profit, .price-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
  background: var(--mint);
  border: 1px solid rgba(21, 61, 47, 0.10);
}

.badge.overdue, .badge.rain-delayed, .badge.issue-reported, .badge.unclassified, .badge.needs-receipt { color: #fff; background: var(--danger); }
.badge.ready-to-send, .badge.ready-to-export, .badge.accepted, .badge.paid, .badge.new { background: var(--lime); }
.badge.needs-review, .badge.pending, .badge.offered { background: #fff0c2; color: #6e4700; }
.badge-contractor-client { background: #eff4ff; color: #2c4a9e; border-color: rgba(44, 74, 158, 0.18); font-size: 0.72rem; }

.contractor-client-row { border-left: 3px solid #7b96e0; }

.contractor-clients-section {
  margin-top: 28px;
}

.contractor-clients-header {
  padding: 14px 16px;
  background: #eff4ff;
  border: 1px solid rgba(44, 74, 158, 0.18);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.contractor-clients-header h2 {
  margin: 0 0 4px;
  color: #2c4a9e;
  font-size: 1rem;
}

.contractor-clients-header p {
  margin: 0;
  font-size: 0.82rem;
  color: #4a5a80;
}

.contractor-ownership-warning {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #eff4ff;
  border: 1px solid rgba(44, 74, 158, 0.22);
  border-left: 5px solid #7b96e0;
  border-radius: var(--radius);
}

.contractor-ownership-warning strong {
  display: block;
  color: #2c4a9e;
  margin-bottom: 4px;
}

.contractor-ownership-warning p {
  margin: 0;
  font-size: 0.85rem;
  color: #4a5a80;
}

.contractor-add-client-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.contractor-add-client-panel h2 { margin: 0 0 6px; }
.contractor-add-client-panel .panel-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-success {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--mint);
  border: 1px solid rgba(47, 125, 86, 0.2);
  border-radius: var(--radius);
  color: var(--forest);
  font-weight: 600;
  font-size: 0.875rem;
}

.contractor-finance-hub {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contractor-finance-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contractor-finance-selector label {
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}

.contractor-finance-selector select {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--paper);
  color: var(--charcoal);
}

.finance-hub-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-hub-metric {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
}

.finance-hub-metric small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-hub-metric strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.finance-hub-earnings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.finance-hub-earnings h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
}

.finance-earnings-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.finance-earnings-row:last-child { border-bottom: none; }
.finance-earnings-row b { color: var(--charcoal); }
.finance-earnings-row small { color: var(--muted); display: block; font-size: 0.75rem; }
.finance-earnings-row .earn-amount { font-weight: 700; color: var(--forest); text-align: right; }
.finance-earnings-row .earn-status { text-align: right; }

.mini-grid, .settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.mini-grid span, .price-pair span, .setting {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fbfcfa;
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.price-pair span {
  flex: 1;
}

.price-pair b, .profit strong {
  display: block;
  color: var(--forest);
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.actions button, .actions .button {
  flex: 1 1 auto;
}

.form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intake-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.public-form-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 80px;
}

.public-site {
  display: grid;
  gap: 22px;
  margin-bottom: 80px;
}

.public-form-shell { order: 1; }
.public-choice-strip { order: 2; }
.other-services-info { order: 3; }
.service-strip { order: 4; }
.public-about { order: 5; }
.public-work { order: 6; }
.public-service-areas { order: 7; }
.public-promos { order: 8; }

.public-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid rgba(21, 61, 47, .14);
  border-radius: var(--radius);
  background: rgba(251, 250, 243, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(9, 32, 24, .13);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 34%),
    repeating-linear-gradient(135deg, rgba(183, 240, 75, .16) 0 7px, transparent 7px 14px),
    linear-gradient(135deg, var(--forest-3), var(--leaf));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 24px rgba(9, 32, 24, .2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  inset: 9px 11px;
  border: 3px solid var(--lime);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 999px;
  transform: rotate(-22deg);
}

.brand-mark::after {
  inset: 18px 10px 8px 13px;
  border-color: var(--sun);
  border-left-color: transparent;
  border-right-color: transparent;
  opacity: .92;
}

.brand-mark i {
  inset: 8px 20px 9px 8px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .72);
  border-left-color: transparent;
  border-right-color: transparent;
  opacity: .75;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--leaf);
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-nav a:not(.public-brand) {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(21, 61, 47, .1);
  text-decoration: none;
  font-weight: 900;
  font-size: .86rem;
}

.public-nav a:not(.public-brand):hover {
  background: var(--mint);
}

.public-nav .public-login-link {
  opacity: .58;
  background: transparent;
  border-color: transparent;
  font-size: .78rem;
}

.public-nav .public-login-link:hover {
  opacity: 1;
  background: #fff;
  border-color: rgba(21, 61, 47, .1);
}

.public-page-section {
  scroll-margin-top: 84px;
  min-height: min(680px, calc(100vh - 150px));
  align-content: center;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.public-choice-strip {
  display: grid;
  gap: 10px;
}

.public-choice-strip a,
.public-choice-strip article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(47, 125, 86, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fff, rgba(233, 247, 223, .58)),
    linear-gradient(90deg, rgba(240, 195, 74, .2), transparent 42%);
  color: var(--forest);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.public-choice-strip small {
  color: var(--leaf);
  font-size: .72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.public-choice-strip strong {
  font-size: 1.18rem;
  color: var(--forest);
}

.public-choice-strip span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.public-choice-strip a:first-child {
  border-color: rgba(111, 181, 54, .36);
  box-shadow: 0 18px 40px rgba(21, 61, 47, .13);
}

.public-secondary-choice {
  margin-top: 10px;
}

.public-secondary-choice a {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px dashed rgba(47, 125, 86, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  color: var(--forest);
  text-decoration: none;
}

.public-secondary-choice small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.public-secondary-choice strong {
  font-size: 1rem;
}

.public-secondary-choice span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.public-about,
.public-work,
.public-service-areas,
.public-promos {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(21, 61, 47, .10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(251, 250, 243, .98)),
    linear-gradient(90deg, rgba(183, 240, 75, .13), transparent 36%);
  box-shadow: var(--shadow);
}

.public-about h2,
.public-work h2,
.public-service-areas h2,
.public-promos h2 {
  margin: 0 0 8px;
  color: var(--forest);
}

.public-about p:not(.eyebrow),
.public-service-areas p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 750;
}

.public-proof-grid,
.promo-grid,
.work-example-grid {
  display: grid;
  gap: 10px;
}

.public-proof-grid article,
.promo-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(47, 125, 86, .18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(21, 61, 47, .06);
}

.public-proof-grid strong,
.promo-grid strong {
  color: var(--forest);
}

.public-proof-grid span,
.promo-grid span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.work-card {
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 32, 24, .1), rgba(9, 32, 24, .78)),
    linear-gradient(135deg, var(--forest), var(--leaf));
  border: 1px solid rgba(47, 125, 86, .18);
}

.work-card strong {
  font-size: 1.25rem;
}

.work-card span {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  line-height: 1.35;
}

.work-card-lawn {
  background:
    linear-gradient(180deg, rgba(9, 32, 24, .05), rgba(9, 32, 24, .8)),
    linear-gradient(135deg, #21533c, #6fb536);
}

.work-card-hedge {
  background:
    linear-gradient(180deg, rgba(9, 32, 24, .05), rgba(9, 32, 24, .8)),
    linear-gradient(135deg, #234637, #3f7f52);
}

.work-card-tidy {
  background:
    linear-gradient(180deg, rgba(9, 32, 24, .05), rgba(9, 32, 24, .8)),
    linear-gradient(135deg, #2f4931, #b1913d);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-route-lines {
  display: grid;
  gap: 12px;
}

.area-route-lines article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .18);
  border-radius: var(--radius);
  background: #fff;
}

.area-route-lines strong {
  color: var(--forest);
}

.area-tags span {
  padding: 9px 11px;
  border: 1px solid rgba(47, 125, 86, .22);
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-strip article,
.public-copy,
.other-services-info,
.backup-panel,
.planner,
.route-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-strip article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.service-strip em {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.service-strip strong,
.public-copy h2,
.planner h2,
.route-card h3 {
  color: var(--forest);
}

.service-strip span,
.public-copy,
.other-services-info,
.planner-head span,
.route-card p {
  color: var(--muted);
}

.public-copy {
  padding: 18px;
}

.mowing-quote-photo {
  overflow: hidden;
  margin: -18px -18px 16px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius) 8px 0 0;
  background: var(--mint);
}

.mowing-quote-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.public-section-head {
  display: grid;
  gap: 8px;
}

.public-section-head h2 {
  margin: 0;
  color: var(--forest);
}

.public-section-head p:not(.eyebrow) {
  max-width: 720px;
  line-height: 1.5;
}

.public-copy h2 {
  margin: 0 0 8px;
}

.public-copy p {
  line-height: 1.5;
}

.public-copy li {
  margin: 8px 0;
  font-weight: 800;
}

.guarantee-fineprint {
  padding: 10px;
  border-left: 4px solid var(--leaf);
  border-radius: var(--radius);
  background: #f4faee;
  color: var(--forest);
  font-size: .86rem;
  font-weight: 850;
}

.other-services-info {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.other-services-info:not([open]) {
  min-height: auto;
  align-content: start;
}

.other-services-summary {
  cursor: pointer;
  list-style: none;
}

.other-services-summary::-webkit-details-marker {
  display: none;
}

.other-services-summary strong {
  color: var(--forest);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.other-services-summary em {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.other-services-info[open] .other-services-summary em {
  background: var(--leaf);
}

.other-services-intro {
  color: var(--muted);
  font-weight: 800;
}

.other-services-info h2 {
  margin: 0 0 8px;
  color: var(--forest);
}

.other-services-info p {
  margin: 0;
  line-height: 1.5;
}

.other-service-grid {
  display: grid;
  gap: 10px;
}

.other-service-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
}

.other-service-grid strong {
  color: var(--forest);
}

.other-service-grid span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.other-service-form {
  margin: 0;
  border: 1px solid rgba(21, 61, 47, 0.10);
  box-shadow: none;
}

.tick-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.tick-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 86, .18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-weight: 900;
}

.tick-grid input {
  width: 18px;
  height: 18px;
}

.success-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .32);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
}

.upload-field {
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 13px;
  border: 1px dashed rgba(47, 125, 86, .45);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-weight: 900;
}

.upload-field input {
  font-weight: 700;
}

.terms-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .28);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
  line-height: 1.4;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.declaration-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .28);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
}

.declaration-summary strong,
.declaration-summary span {
  color: var(--forest);
  font-weight: 900;
}

.declaration-summary small {
  color: var(--muted);
  font-weight: 800;
}

.automation-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .26);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
}

.automation-summary.ready {
  background: #eef8e9;
}

.automation-summary.review {
  border-color: rgba(185, 119, 22, .32);
  background: #fff8ea;
}

.automation-summary strong,
.automation-summary span {
  color: var(--forest);
  font-weight: 900;
}

.automation-summary small {
  color: var(--muted);
  font-weight: 800;
}

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.photo-strip img,
.photo-strip span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--mint);
  color: var(--forest);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}

.price-options,
.site-condition-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-options strong {
  color: var(--forest);
}

.price-option-grid {
  display: grid;
  gap: 8px;
}

.price-option-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
}

.price-option-grid article.selected {
  border-color: rgba(47, 125, 86, .55);
  background: #fff;
}

.price-option-grid span {
  color: var(--muted);
  font-weight: 900;
}

.price-option-grid b {
  color: var(--forest);
  font-size: 1.25rem;
}

.site-condition-form {
  margin: 0;
}

.estimate-preview {
  min-height: 50px;
  display: grid;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
}

.instant-estimate {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.instant-estimate h2 {
  margin: 4px 0 8px;
  color: var(--forest);
  font-size: 1.8rem;
}

.instant-estimate p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.estimate-widget {
  display: grid;
  gap: 8px;
}

.instant-map {
  min-height: 340px;
}

.instant-estimate > .note,
.instant-estimate > .public-actions,
.instant-map {
  grid-column: 1 / -1;
}

.estimate-result {
  display: grid;
  gap: 8px;
}

.estimate-result span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--muted);
  font-weight: 900;
}

.estimate-result b {
  color: var(--forest);
  font-size: 1.25rem;
}

.door-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.door-card {
  min-height: 130px;
  display: grid;
  gap: 7px;
  justify-items: start;
  align-content: center;
  text-align: left;
  background: #fff;
}

.door-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.door-card strong {
  color: var(--forest);
  font-size: 1.25rem;
}

.door-card small {
  color: var(--muted);
}

.public-door {
  background: linear-gradient(135deg, #fff, var(--mint));
}

.measure-layout {
  display: grid;
  gap: 14px;
  margin-bottom: 80px;
}

.measure-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.auto-detect-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0 80px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.maps-boundary-note {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(47, 125, 86, .28);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
}

.maps-boundary-note strong {
  color: var(--forest);
}

.maps-boundary-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 800;
}

.linz-detection-panel,
.linz-preview-panel {
  border: 1px solid rgba(47, 125, 86, .22);
  background: #f6fbf8;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.linz-detection-panel h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.linz-detection-panel p,
.linz-detection-panel small,
.linz-preview-panel span {
  margin: 0;
  color: var(--muted);
}

.linz-detection-panel small,
.linz-preview-panel span {
  display: block;
  font-size: .85rem;
}

.linz-detection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auto-detect-panel h2 {
  margin: 4px 0 8px;
  color: var(--forest);
}

.auto-detect-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.auto-detect-grid {
  display: grid;
  gap: 14px;
}

.auto-detect-controls {
  margin: 0;
}

.auto-detect-preview {
  display: grid;
  gap: 12px;
}

#autoDetectCanvas {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf3e8;
}

.measure-controls {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.measure-map {
  width: 100%;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf3e8;
}

.estimate-card h2 {
  margin: 4px 0 12px;
  color: var(--forest);
  font-size: 2rem;
}

.section-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.compact-sections {
  width: 100%;
  margin: 8px 0 0;
}

.section-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.section-row > span {
  width: 12px;
  height: 32px;
  border-radius: 999px;
  background: var(--section-color, var(--lime));
}

.section-row strong {
  display: block;
  color: var(--forest);
}

.section-row small {
  color: var(--muted);
  font-weight: 800;
}

.section-row b {
  color: var(--forest);
}

.measurement-evidence {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, .32);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
}

.measurement-evidence span,
.measurement-evidence small {
  color: var(--forest);
  font-weight: 800;
}

.public-hero {
  min-height: min(430px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 5vw, 46px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 45, 36, 0.02), rgba(15, 45, 36, 0.88)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: var(--shadow-strong);
}

.hero-brand-lockup {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(9, 32, 24, .58);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.hero-brand-lockup div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hero-brand-lockup strong {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.05;
}

.hero-brand-lockup small {
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.hero-logo-card {
  width: min(330px, 78vw);
  margin: 0 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  background: rgba(251, 250, 243, .94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.hero-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.public-hero h1 {
  margin: 4px 0 8px;
  max-width: 860px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
}

.public-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
  font-size: 1.04rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.customer-form {
  margin-top: 0;
  border: 1px solid rgba(21, 61, 47, 0.10);
  box-shadow: var(--shadow);
}

.review-note {
  border-color: rgba(185, 119, 22, .32);
  background: #fff8ea;
}

.estimate-confirm {
  border-color: rgba(47, 125, 86, .32);
  background: #eef8e9;
}

.quote-offer-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.quote-offer-summary article {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 86, .22);
  border-radius: var(--radius);
  background: #fff;
}

.quote-offer-summary small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-offer-summary strong {
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.2;
}

.quote-offer-summary span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

.quote-result-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 800;
}

.success-note strong,
.success-note span {
  display: block;
}

.customer-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.record-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 80px;
}

.record-list.compact {
  margin: 0;
}

.record-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, .9fr) minmax(115px, .7fr) minmax(110px, .7fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.record-row:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 125, 86, 0.35);
  box-shadow: var(--shadow-strong);
}

.record-row.selected {
  border-color: var(--leaf);
  box-shadow: inset 3px 0 0 var(--leaf), var(--shadow);
}

.bank-row {
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, .8fr) minmax(120px, .7fr) minmax(110px, .55fr) minmax(150px, .75fr);
}

.bank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.bank-actions button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: .82rem;
}

.record-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.record-row small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.record-main b {
  color: var(--forest);
  font-size: 1.02rem;
}

.record-open {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--mint);
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
}

.back-button {
  margin: 0 0 12px;
}

.job-hero-card {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(21, 61, 47, 0.10);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f2f8ec);
  box-shadow: var(--shadow);
}

.job-hero-card h2 {
  margin: 4px 0 8px;
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1.05;
}

.job-hero-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.job-hero-actions {
  display: grid;
  gap: 8px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.detail-summary div {
  min-height: 72px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 61, 47, 0.06);
}

.detail-summary span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-summary strong {
  color: var(--forest);
}

.quick-forms {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.mini-form {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 61, 47, 0.06);
}

.mini-form strong {
  color: var(--forest);
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.detail-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 61, 47, 0.06);
}

.detail-panel h2 {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 1rem;
}

.detail-panel dl {
  display: grid;
  grid-template-columns: minmax(100px, .5fr) minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.detail-panel dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel dd {
  margin: 0;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--muted);
  font-weight: 900;
}

.checklist span.done {
  border-color: rgba(47, 125, 86, .35);
  background: var(--mint);
  color: var(--forest);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline span {
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 3px solid var(--line);
}

.timeline b {
  color: var(--forest);
}

.timeline small {
  color: var(--muted);
  font-weight: 800;
}

.schedule-groups {
  display: grid;
  gap: 14px;
  margin-bottom: 80px;
}

.planner {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.planner-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.planner-head h2 {
  margin: 4px 0 0;
}

.planner-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.planner-day {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.planner-day strong {
  color: var(--forest);
}

.planner-day span,
.planner-day small {
  color: var(--muted);
  font-weight: 800;
}

.route-clusters {
  display: grid;
  gap: 10px;
}

.route-card {
  padding: 12px;
}

.route-card h3,
.route-card p {
  margin: 0 0 8px;
}

.route-order-panel {
  margin-bottom: 14px;
}

.route-order-row {
  grid-template-columns: 42px minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(110px, .6fr) auto;
}

.route-step {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 950;
}

.client-actions-grid {
  display: grid;
  gap: 14px;
}

.schedule-group {
  display: grid;
  gap: 8px;
}

.schedule-group h2 {
  margin: 0;
  color: var(--forest);
  font-size: 1.05rem;
}

.sheet-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.sheet-panel {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sheet-toolbar {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf6;
  color: var(--forest);
}

.sheet-toolbar span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.sheet-grid {
  display: grid;
  min-width: 920px;
}

.jobs-sheet,
.jobs-sheet .sheet-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(240px, 1.6fr) minmax(120px, .8fr) minmax(130px, .9fr) minmax(120px, .8fr) minmax(115px, .7fr);
}

.schedule-sheet,
.schedule-sheet .sheet-row {
  grid-template-columns: minmax(140px, .9fr) minmax(150px, 1fr) minmax(230px, 1.5fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(120px, .8fr);
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 36px;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf3e8;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-row {
  grid-column: 1 / -1;
  display: grid;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--charcoal);
  text-align: left;
  box-shadow: none;
}

.sheet-row:hover {
  transform: none;
  background: #f8fbf4;
  box-shadow: inset 3px 0 0 var(--leaf);
}

.sheet-row.selected {
  background: var(--mint);
  box-shadow: inset 4px 0 0 var(--forest);
}

.sheet-row > span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.sheet-row small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.sheet-row .badge {
  width: fit-content;
}

.sheet-empty {
  grid-column: 1 / -1;
  padding: 18px;
}

.customer-list {
  margin: 0;
}

.customer-card.selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(183, 240, 75, .25), var(--shadow);
}

.customer-editor {
  position: sticky;
  top: 116px;
  margin-top: 0;
}

.field-action-bar {
  position: sticky;
  top: 72px;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(21, 61, 47, 0.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(21, 61, 47, 0.12);
  backdrop-filter: blur(12px);
}

.field-action-bar button,
.field-action-bar .button {
  min-height: 50px;
  padding: 8px 6px;
}

.compact-form {
  margin-top: 0;
}

.form-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
}

.incoming {
  display: grid;
  gap: 10px;
  padding: 15px;
  box-shadow: none;
  border-color: var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfa);
}

.incoming div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.incoming strong {
  color: var(--forest);
}

.incoming span, .incoming small, .incoming p {
  color: var(--muted);
}

.incoming p {
  margin: 0;
  font-weight: 800;
}

.incoming .next-action {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #f4faee;
  color: var(--forest);
  font-weight: 900;
}

.incoming-review .next-action {
  background: #fff7df;
  color: #7a5200;
}

.incoming .urgent-action {
  background: #ffe7e1;
  color: #8a1f11;
}

.guarantee-clock {
  display: block;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 1000;
}

.guarantee-clock.ok {
  background: #e9f8dc;
  color: var(--forest);
}

.guarantee-clock.warning {
  background: #fff0c2;
  color: #6e4700;
}

.guarantee-clock.danger {
  background: var(--danger);
  color: #fff;
}

.full-action {
  width: 100%;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 11px 13px;
  color: var(--charcoal);
  background: #fff;
  font-size: 0.9375rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 125, 86, 0.12);
}

.inline-input {
  margin-top: 8px;
}

.read-panel {
  min-height: 120px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 800;
}

.send-draft-panel {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(47, 125, 86, .22);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.send-draft-panel h3,
.send-draft-panel p {
  margin: 0;
}

.send-draft-panel textarea {
  min-height: 190px;
  white-space: pre-wrap;
}

.inline-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.inline-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fbfcfa;
}

.inline-item span {
  color: var(--forest);
  font-weight: 900;
}

.invoice-paper {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfcfa);
  color: var(--charcoal);
}

.invoice-paper strong {
  color: var(--forest);
  font-size: 1.2rem;
}

.invoice-paper b {
  color: var(--forest);
  font-size: 2rem;
}

.check-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fbfcfa;
  color: var(--forest);
  font-weight: 900;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--forest);
}

input::placeholder, textarea::placeholder {
  color: #8a948f;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.lanes {
  display: grid;
  gap: 14px;
  margin-bottom: 80px;
}

.lane {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 12px 30px rgba(21, 61, 47, 0.07);
}

.stub-box {
  margin: 14px 0;
  padding: 16px;
  border-left: 5px solid var(--lime);
}

.setting {
  display: grid;
  gap: 8px;
}

.setting span {
  color: var(--muted);
  font-size: .82rem;
}

.setting strong {
  color: var(--forest);
  overflow-wrap: anywhere;
}

.backup-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px;
}

.backup-panel h2 {
  margin: 4px 0 8px;
  color: var(--forest);
}

.backup-panel p {
  margin: 0;
  color: var(--muted);
}

.automation-settings {
  margin: 0 0 14px;
  border: 1px solid rgba(47, 125, 86, .2);
}

.automation-settings h2 {
  margin: 4px 0 8px;
  color: var(--forest);
}

.automation-settings p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.automation-settings > div,
.automation-settings .note {
  grid-column: 1 / -1;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  posit
/* ── Quote acceptance portal ───────────────────────── */
.accept-portal {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.accept-hero {
  padding: 32px 16px 20px;
  text-align: center;
}

.accept-hero h1 {
  font-size: 2rem;
  margin: 8px 0;
  color: var(--forest);
}

.accept-hero p {
  color: var(--muted);
  margin: 0;
}

.accept-card {
  margin: 0 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.accept-code-form {
  display: grid;
  gap: 12px;
}

.accept-code-form label {
  color: var(--forest);
  font-weight: 900;
}

.accept-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.accept-price-block {
  padding: 16px;
  background: var(--mint);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  text-align: center;
}

.accept-price-block small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accept-price-block strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--forest);
}

.accept-detail {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.accept-terms {
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.accept-terms p { margin: 0; }

.accept-name-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--paper);
  box-sizing: border-box;
}

.accept-name-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 86, 0.12);
  border-color: var(--leaf);
}

.accept-card-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(47, 125, 86, 0.2);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.35;
}

.accept-card-check input {
  margin-top: 2px;
}

.accept-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
}

.accept-small {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.accept-confirmed {
  padding: 16px;
  background: var(--mint);
  border: 1px solid rgba(47, 125, 86, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

.accept-confirmed strong {
  display: block;
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.accept-confirmed p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Smart Run Planner ─────────────────────────────────────────────────────── */
.smart-plan-panel {
  margin-bottom: 16px;
}

.smart-plan-days {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.smart-plan-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.smart-plan-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  flex-wrap: wrap;
}

.smart-plan-day-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smart-plan-day-head strong {
  font-size: 0.95rem;
}

.smart-plan-day-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smart-plan-day-meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

.smart-plan-job {
  opacity: 1;
}

.smart-plan-blocked {
  opacity: 0.55;
}

/* ── Weather + Rain Delay Panel ──────────────────────────────────────────────*/
.weather-panel {
  margin-bottom: 16px;
  border-left: 4px solid var(--border);
  transition: border-color 0.2s;
}

.weather-rainy {
  border-left-color: #5b9bd5;
  background: color-mix(in srgb, #5b9bd5 5%, var(--paper));
}

.weather-today-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  padding: 6px 0 4px;
}

.weather-forecast {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  min-width: 70px;
  text-align: center;
  background: var(--surface);
}

.weather-day.rainy {
  border-color: #5b9bd5;
  background: color-mix(in srgb, #5b9bd5 10%, var(--paper));
}

.weather-day b {
  font-size: 0.78rem;
}

.rain-delay-btn {
  background: #5b9bd5 !important;
}

/* Rain delay customer drafts */
.rain-drafts {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.rain-drafts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rain-draft-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rain-draft-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rain-draft-text {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  padding: 8px 10px;
  border-radius: calc(var(--radius) - 2px);
  white-space: pre-wrap;
  margin: 0;
}

/* ── Schedule one-click header button ───────────────────────────────────────*/
.schedule-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-go-btn {
  flex-shrink: 0;
  align-self: center;
  font-size: 1rem;
  padding: 10px 20px;
}

/* ── Rain alert banner (dashboard) ──────────────────────────────────────────*/
.rain-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: color-mix(in srgb, #5b9bd5 12%, var(--paper));
  border: 1px solid #5b9bd5;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ── Sunday catch-up toggle ──────────────────────────────────────────────────*/
.sunday-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}

/* ── Job Completion Review Overlay ───────────────────────────────────────────*/
.job-review-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.job-review-panel {
  background: var(--paper);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 22px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-review-head h2 {
  margin: 4px 0 2px;
  font-size: 1.15rem;
}

.review-price-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.review-base-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.review-base-block strong {
  font-size: 1.3rem;
  color: var(--forest);
}

.review-addon-block {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-addon-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-condition-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-next-date {
  margin: 0;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: calc(var(--radius) - 2px);
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}


/* ── Price Health screen ─────────────────────────────── */
.price-health-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.price-health-alert.price-health-ok {
  background: color-mix(in srgb, var(--leaf) 10%, transparent);
  border-left-color: var(--leaf);
}
.price-health-alert strong { display: block; margin-bottom: 2px; }
.price-health-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-health-header {
  display: grid;
  grid-template-columns: 1fr 130px 120px 140px;
  gap: 8px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.price-health-row {
  display: grid;
  grid-template-columns: 1fr 130px 120px 140px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
}
.price-health-row.price-health-under {
  border-left-color: var(--danger);
}
.price-health-row.price-health-nodata {
  border-left-color: var(--surface-2);
  opacity: 0.7;
}
.price-health-client strong,
.price-health-rate strong,
.price-health-price strong {
  display: block;
  font-size: 0.9rem;
}
.price-health-client small,
.price-health-rate small,
.price-health-price small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}
.price-health-rate strong { font-variant-numeric: tabular-nums; }
.price-health-row .bank-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.price-health-row .bank-actions button {
  font-size: 0.78rem;
  padding: 4px 8px;
}

/* ── Contractor mobile portal ────────────────────────── */
.contractor-mobile { max-width: 480px; margin: 0 auto; padding-bottom: 32px; }
.contractor-today-panel { padding: 16px; }
.contractor-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.contractor-panel-head h2 { margin: 0; font-size: 1.1rem; }
.contractor-name-chip {
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px;
  background: var(--forest); color: #fff; border-radius: 20px;
}
.contractor-jobs-list { display: flex; flex-direction: column; gap: 10px; }
.contractor-job-card {
  background: var(--card); border-radius: var(--radius);
  border-left: 4px solid var(--border); padding: 14px;
}
.contractor-job-card.timer-running { border-left-color: var(--leaf); }
.contractor-job-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 6px; gap: 8px;
}
.contractor-job-head strong { display: block; font-size: 1rem; }
.contractor-job-head small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.timer-badge {
  font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--leaf); white-space: nowrap; padding: 2px 8px;
  background: color-mix(in srgb, var(--leaf) 12%, transparent);
  border-radius: 6px; flex-shrink: 0;
}
.contractor-job-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.contractor-job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contractor-job-actions .button { flex: 1; min-width: 120px; padding: 10px; font-size: 0.88rem; text-align: center; }
.timer-start-btn { background: var(--forest) !important; color: #fff !important; font-weight: 700; }
.timer-stop-btn { background: var(--danger) !important; color: #fff !important; font-weight: 700; }
.contractor-extras-list {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 0.8rem; display: flex; flex-direction: column; gap: 3px;
}
.contractor-extras-list strong { display: block; margin-bottom: 4px; color: var(--muted); }
.contractor-extras-list span { display: flex; justify-content: space-between; }
.contractor-extras-list em { color: var(--muted); }

/* Owner on-site focus page */
.my-run-shell {
  max-width: 560px;
  padding-bottom: 34px;
}

.my-run-hero {
  padding: 18px 0 10px;
}

.my-run-hero h1 {
  margin: 2px 0 6px;
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 0.98;
}

.my-run-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.my-run-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.my-run-filter button {
  min-height: 46px;
  border-radius: 8px;
}

.my-run-filter .active {
  background: var(--forest);
  color: #fff;
}

.my-run-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.my-run-stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.my-run-stats small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: .72rem;
}

.my-run-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 1.35rem;
  color: var(--forest);
}

.my-run-list {
  display: grid;
  gap: 12px;
}

.my-run-closeout-list {
  margin-bottom: 14px;
}

.my-run-section-title {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--forest);
}

.my-run-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.my-run-card-active {
  border-left-color: var(--forest);
}

.my-run-closeout-card {
  border-left-color: var(--forest);
}

.my-run-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.my-run-card-head h2 {
  margin: 1px 0 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.my-run-card-head p,
.my-run-card-head small {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.my-run-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.my-run-focus-grid span {
  background: var(--surface);
  border-radius: 8px;
  padding: 8px;
}

.my-run-focus-grid small,
.my-run-note span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.my-run-focus-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--forest);
}

.my-run-note {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.my-run-note strong {
  color: var(--forest);
}

.my-run-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.my-run-actions .button,
.my-run-actions button {
  min-height: 46px;
  text-align: center;
}

.my-run-invoice-actions {
  grid-template-columns: 1fr;
}

/* Extra-work photo gate overlay */
.extra-gate-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
}
.extra-gate-panel {
  background: var(--bg); border-radius: var(--radius); padding: 20px;
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
}
.extra-gate-panel h2 { margin: 0 0 4px; font-size: 1.1rem; }
.extra-gate-note { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.extra-gate-rule {
  font-size: 0.82rem; background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-left: 3px solid var(--warning); padding: 8px 10px;
  border-radius: 4px; margin-bottom: 14px; line-height: 1.5;
}
.photo-upload-label { display: block; margin-bottom: 10px; cursor: pointer; }
.photo-upload-label input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-upload-btn {
  display: block; padding: 12px; text-align: center; font-size: 1rem;
  background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius);
  font-weight: 600; color: var(--forest);
}
.extra-photo-preview { margin-bottom: 10px; border-radius: var(--radius); overflow: hidden; }
.extra-photo-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.extra-gate-actions { display: flex; gap: 8px; margin-top: 12px; }
.extra-gate-actions .button { flex: 1; padding: 10px; text-align: center; }

/* Pending extras approval panel (owner dashboard) */
.pending-extras-panel {
  background: color-mix(in srgb, var(--warning) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
.pending-extras-head { margin-bottom: 10px; }
.pending-extras-head strong { display: block; font-size: 0.95rem; }
.pending-extras-head small { color: var(--muted); font-size: 0.78rem; }
.pending-extra-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--border);
}
.pending-extra-info strong { display: block; font-size: 0.9rem; }
.pending-extra-info small { color: var(--muted); font-size: 0.78rem; }
.pending-extra-photo img {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: 6px; display: block; cursor: pointer;
}
.pending-extra-actions { display: flex; flex-direction: column; gap: 4px; }
.pending-extra-actions .button { font-size: 0.78rem; padding: 4px 8px; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--forest); cursor: pointer; text-decoration: underline; font-size: inherit; }

/* ── GST tracker panel ───────────────────────────────── */
.gst-tracker-panel {
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--forest);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.gst-tracker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}
.gst-tracker-head strong { display: block; font-size: 0.95rem; }
.gst-tracker-head small  { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.gst-countdown { text-align: right; flex-shrink: 0; }
.gst-countdown strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.gst-countdown small  { display: block; font-size: 0.72rem; color: var(--muted); }
.gst-tracker-body { display: flex; flex-direction: column; gap: 4px; }
.gst-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 2px 0;
}
.gst-row strong { font-variant-numeric: tabular-nums; }
.gst-row-sub span, .gst-row-sub strong { color: var(--muted); }
.gst-alert {
  margin: 10px 0 0;
  font-size: 0.8rem;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-radius: 4px;
  color: var(--text);
}
.gst-alert-overdue {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

/* ── Utility classes replacing inline styles ─────────── */
.row-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.row-warning { border-left: 5px solid var(--warning); }
.row-danger  { border-left: 5px solid var(--danger); }
.backup-panel-danger { border-left: 6px solid var(--danger) !important; }
.backup-panel-ok     { border-left: 6px solid var(--lime) !important; }
.flex-row-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-spacer    { margin-top: 24px; }
.panel-spacer-sm { margin-top: 12px; }
.portal-switch-hint { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-narrow { max-width: 420px; }
.input-narrow { width: 90px; }
.empty-padded { padding: 16px; }
.gst-row-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.accept-hidden { display: none; }

/* ── Banking reconciliation ──────────────────────────── */
.bank-import-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--card);
  border-radius: var(--radius); margin-bottom: 14px;
}
.bank-import-info strong { display: block; font-size: 0.95rem; }
.bank-import-info small  { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.bank-import-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.bank-quick-wins {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; background: var(--surface);
  border-radius: var(--radius); margin-bottom: 12px; font-size: 0.83rem;
}
.bank-quick-wins strong { margin-right: 4px; }
.bank-qw-item {
  padding: 3px 10px; border-left: 3px solid var(--warning);
  background: var(--card); border-radius: 4px;
}
.bank-qw-clear { color: var(--leaf); }

.bank-filter-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.bank-filter-tabs button {
  padding: 6px 12px; font-size: 0.82rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}
.bank-filter-tabs button.active {
  background: var(--forest); color: #fff; border-color: var(--forest);
}

.bank-txn-list { display: flex; flex-direction: column; gap: 6px; }
.bank-row { display: grid; grid-template-columns: 2fr 1fr 1fr 80px auto; gap: 8px; align-items: center; }
@media (max-width: 680px) {
  .bank-row { grid-template-columns: 1fr auto; }
  .bank-row > span:not(:first-child):not(:last-child) { display: none; }
}

/* ── Customer history panel ──────────────────────────── */
.client-history-panel {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.client-history-panel h3 { margin: 0 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing:.04em; color: var(--muted); }
.client-history-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
@media (max-width:480px) { .client-history-grid { grid-template-columns: repeat(2,1fr); } }
.ch-stat { text-align: center; padding: 8px; background: var(--surface); border-radius: 8px; }
.ch-stat strong { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ch-stat small  { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.ch-note    { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.ch-warning { margin: 8px 0 0; font-size: 0.8rem; color: var(--danger); }
.ch-good    { margin: 8px 0 0; font-size: 0.8rem; color: var(--leaf); }

/* ── Quote follow-up panel ───────────────────────────── */
.quote-followup-panel {
  background: color-mix(in srgb, var(--warning) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
.qf-head { margin-bottom: 10px; }
.qf-head strong { display: block; font-size: 0.95rem; }
.qf-head small  { color: var(--muted); font-size: 0.78rem; }
.qf-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.qf-info strong { display: block; font-size: 0.88rem; }
.qf-info small  { color: var(--muted); font-size: 0.76rem; }
.qf-actions { display: flex; gap: 6px; flex-shrink: 0; }
.qf-actions button { font-size: 0.78rem; padding: 4px 10px; }

/* ── Today's wrap panel ──────────────────────────────── */
.todays-wrap-panel {
  background: var(--card); border-radius: var(--radius);
  border-left: 4px solid var(--forest); padding: 14px 16px; margin-bottom: 16px;
}
.wrap-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.wrap-head strong { font-size: 1rem; }
.wrap-head small  { color: var(--muted); font-size: 0.78rem; }
.wrap-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
@media (max-width:600px) { .wrap-stats { grid-template-columns: repeat(3,1fr); } }
.wrap-stat { text-align: center; padding: 8px 4px; }
.wrap-stat strong { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.wrap-stat small  { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.wrap-stat-warn   strong { color: var(--warning); }
.wrap-stat-danger strong { color: var(--danger); }
.wrap-note { margin: 8px 0 0; font-size: 0.78rem; color: var(--muted); }

/* ── Receipt photo gallery ───────────────────────────── */
.receipt-gallery { margin-bottom: 16px; }
.receipt-gallery h3 { font-size: 0.9rem; margin: 0 0 10px; }
.receipt-gallery h3 small { font-weight: 400; color: var(--muted); }
.receipt-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; }
.receipt-thumb { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.receipt-thumb img { width: 100%; height: 90px; object-fit: cover; display: block; }
.receipt-thumb-info { padding: 4px 6px; }
.receipt-thumb-info strong { display: block; font-size: 0.82rem; }
.receipt-thumb-info small  { display: block; font-size: 0.72rem; color: var(--muted); }

/* ── Route map panel ─────────────────────────────────── */
.route-map-panel {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
}
.route-map-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; gap: 10px;
}
.route-map-head strong { display: block; font-size: 0.95rem; }
.route-map-head small  { display: block; font-size: 0.76rem; color: var(--muted); }
.route-stop-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.route-stop {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 8px; align-items: center; padding: 6px 8px;
  background: var(--surface); border-radius: 8px;
}
.route-stop-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.route-stop-info strong { display: block; font-size: 0.85rem; }
.route-stop-info small  { display: block; font-size: 0.74rem; color: var(--muted); }
.route-stop a.button   { font-size: 0.76rem; padding: 4px 8px; white-space: nowrap; }
.route-map-embed { border-radius: var(--radius); overflow: hidden; }
.route-map-no-key { font-size: 0.78rem; color: var(--muted); padding: 8px 0; }

/* Smooth access and auth screens */
.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(21,61,47,.08), rgba(183,240,75,.16)),
    var(--paper);
}

.access-hero,
.auth-card {
  width: min(100%, 720px);
  padding: 28px;
  border: 1px solid rgba(21,61,47,.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.access-hero h1,
.auth-card h1 {
  margin: 6px 0 8px;
  color: var(--forest);
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.access-hero p,
.auth-card p {
  max-width: 580px;
  color: var(--muted);
}

.access-actions,
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.auth-shell {
  align-items: start;
  padding-top: 8vh;
}

.auth-card {
  width: min(100%, 480px);
}

.auth-form,
.auth-management-form {
  box-shadow: none;
  border: 1px solid var(--line);
}

.auth-message {
  min-height: 1.4em;
  font-weight: 800;
  color: var(--forest);
}

.auth-links a {
  color: var(--forest);
  font-weight: 900;
}

.auth-user-list {
  display: grid;
  gap: 8px;
  min-width: min(100%, 340px);
}

.auth-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.auth-user-row span {
  display: grid;
}

.auth-user-row small {
  color: var(--muted);
  font-weight: 800;
}
