:root {
  --ink: #172033;
  --muted: #617086;
  --brand: #071f33;
  --accent: #c52825;
  --accent-dark: #9f1f1e;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #d9e1eb;
  --success: #238056;
  --shadow: 0 16px 40px rgba(7, 31, 51, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: "Manrope", Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

.dashboard-lock {
  align-items: center;
  background: rgba(18, 37, 45, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.dashboard-lock.hidden {
  display: none;
}

.dashboard-is-locked {
  overflow: hidden;
}

.dashboard-lock-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  max-width: 430px;
  padding: 26px;
  width: 100%;
}

.dashboard-lock-card h1 {
  font-size: 30px;
  letter-spacing: -0.05em;
  margin: 18px 0 8px;
}

.dashboard-lock-card p {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-lock-card button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  margin-top: 14px;
  padding: 13px 16px;
  width: 100%;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(18px, calc((100% - 1080px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 13px;
  color: white;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 46px;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
}

.brand div span,
.save-indicator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.save-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.save-button {
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 13px;
}

.save-indicator.saved {
  color: var(--success);
  font-weight: 800;
}

.app-shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 26px 18px 112px;
}

.hero {
  background: var(--brand);
  border-radius: 28px;
  color: white;
  padding: clamp(25px, 5vw, 42px);
}

.hero h1 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  margin: 12px 0 16px;
  max-width: 680px;
  text-transform: uppercase;
}

.hero > p:not(.eyebrow) {
  color: #dae5e6;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 650px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
  font-size: clamp(29px, 5vw, 47px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  max-width: 680px;
  text-transform: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
}

.help-dock {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  bottom: 18px;
  box-shadow: 0 16px 40px rgba(7, 31, 51, 0.16);
  display: flex;
  gap: 12px;
  padding: 10px;
  position: fixed;
  right: 18px;
  z-index: 90;
}

.help-dock span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding-left: 4px;
  white-space: nowrap;
}

.help-dock div {
  display: flex;
  gap: 8px;
}

.help-dock a,
.help-dock button {
  align-items: center;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  min-width: 94px;
  padding: 8px 13px;
  text-decoration: none;
}

.help-dock button {
  background: #f1f5fa;
  color: var(--brand);
  cursor: pointer;
}

.help-dock a:first-of-type {
  background: var(--brand);
  color: #ffffff;
}

.help-dock a:last-child {
  background: var(--accent);
  color: #ffffff;
}

.accuracy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  padding: 18px;
}

.accuracy-topline {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.accuracy-topline h2 {
  font-size: clamp(21px, 4vw, 27px);
  margin-top: 5px;
}

.accuracy-topline strong {
  color: var(--brand);
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.05em;
}

.accuracy-meter {
  background: #e8eeec;
  border-radius: 999px;
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
}

.accuracy-meter span {
  background: linear-gradient(90deg, var(--accent), #44b685);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 0;
}

.accuracy-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.accuracy-checks span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.accuracy-checks span.done {
  background: #e9f6ee;
  border-color: #b9dfc7;
  color: var(--success);
}

.accuracy-checks span.done::before {
  content: "✓ ";
}

.stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin: 20px 0;
}

.step {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 10px 4px;
}

.step span {
  align-items: center;
  background: #e6ebea;
  border-radius: 50%;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.step.active {
  background: #edf2f1;
  color: var(--brand);
}

.step.active span {
  background: var(--brand);
  color: white;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  padding: clamp(18px, 4vw, 30px);
}

.panel.active {
  display: block;
}

.discount-modal {
  align-items: center;
  background: rgba(18, 37, 45, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 50;
}

.discount-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(18, 37, 45, 0.24);
  max-width: 470px;
  padding: 24px;
  text-align: left;
  width: 100%;
}

.discount-card h2 {
  color: var(--accent);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 10px;
}

.discount-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.discount-detected {
  color: var(--ink) !important;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12 !important;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.discount-zip {
  background: #e9f6ee;
  border: 1px solid #b9dfc7;
  border-radius: 999px;
  color: var(--success);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-top: 12px;
  padding: 8px 12px;
}

#discountMessage {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 16px;
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding: 14px;
}

.discount-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.discount-actions button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
}

.discount-actions .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.discount-actions .secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.section-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 23px;
}

h2 {
  font-size: clamp(23px, 4vw, 29px);
  letter-spacing: -0.045em;
  margin: 6px 0 0;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.fields {
  display: grid;
  gap: 17px;
}

.fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fields.compact {
  margin-top: 17px;
}

label {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

label span {
  color: #b54a33;
}

input:not([type="checkbox"]),
select,
textarea {
  background: var(--surface);
  border: 1px solid #cfd9d6;
  border-radius: 12px;
  color: var(--ink);
  display: block;
  margin-top: 8px;
  outline: none;
  padding: 13px;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

input[type="range"] {
  accent-color: var(--accent);
  display: block;
  margin-top: 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 59, 70, 0.14);
}

.route-check-card {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 20px;
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 18px;
}

.route-check-card input {
  max-width: none;
}

.delivery-options {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
}

.checkbox-line {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  min-height: 52px;
  padding: 12px;
}

.checkbox-line input[type="checkbox"],
.lead-consent input[type="checkbox"],
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  height: 20px;
  margin: 0;
  width: 20px;
}

.highlight {
  background: #eef8f6;
  border: 1px solid #b9dfd7;
  border-radius: 16px;
  padding: 14px;
}

.route-status {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding: 13px;
}

.route-status.available {
  background: #e9f6ee;
  border-color: #b9dfc7;
  color: var(--success);
}

.route-status.unavailable {
  background: #f5f7f6;
}

.running-total {
  background: #e9f0ef;
  border-radius: 15px;
  min-width: 78px;
  padding: 10px 13px;
  text-align: center;
}

.running-total strong {
  color: var(--brand);
  display: block;
  font-size: 27px;
  line-height: 1;
}

.running-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.running-total small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.running-total small strong {
  color: var(--brand);
  display: inline;
  font-size: 12px;
}

.rooms {
  display: grid;
  gap: 12px;
}

.room {
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}

.room-toggle {
  align-items: center;
  background: var(--surface-soft);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 15px 16px;
  text-align: left;
  width: 100%;
}

.room-toggle .room-total {
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
  padding: 5px 10px;
}

.room-toggle .chevron {
  font-size: 16px;
  transition: transform 0.18s;
}

.room.open .chevron {
  transform: rotate(180deg);
}

.room-items {
  display: none;
  padding: 5px 12px 12px;
}

.room.open .room-items {
  display: block;
}

.counter-row {
  align-items: center;
  border-bottom: 1px solid #eef2f0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 59px;
  padding: 9px 3px;
}

.counter-row:last-child {
  border-bottom: 0;
}

.item-copy strong {
  display: block;
  font-size: 14px;
}

.item-copy small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.other-item-row {
  align-items: flex-start;
  padding-bottom: 14px;
  padding-top: 14px;
}

.other-item-row .item-copy {
  flex: 1;
  min-width: 0;
}

.other-item-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 9px;
}

.other-item-input:not([type="checkbox"]) {
  font-size: 14px;
  height: 42px;
  margin-top: 5px;
  max-width: 220px;
  padding: 8px 10px;
}

.counter {
  align-items: center;
  background: #f2f5f4;
  border-radius: 12px;
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
}

.counter button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 23px;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.counter button.plus {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.counter output {
  font-size: 16px;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
}

.box-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.box-grid .counter-row {
  background: var(--surface-soft);
  border: 0;
  border-radius: 15px;
  padding: 11px;
}

.subsection {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.subsection h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0;
}

.storage-card {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 17px;
  padding: 16px;
}

.storage-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.storage-unit-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.storage-unit-entry {
  background: white;
  border: 1px solid #f2d6b5;
  border-radius: 15px;
  padding: 12px;
}

.storage-unit-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.extra-stop-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-top: 14px;
  padding: 14px;
}

.extra-stop-card h4 {
  font-size: 16px;
  margin: 0 0 4px;
}

.inventory-choice-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 16px;
}

.inventory-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.inventory-choice {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  padding: 16px;
  text-align: left;
}

.inventory-choice.active {
  background: #edf5f3;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 59, 70, 0.1);
}

.inventory-choice strong,
.inventory-choice span {
  display: block;
}

.inventory-choice strong {
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}

.inventory-choice span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.manual-inventory-section {
  display: grid;
  gap: 12px;
}

.manual-inventory-head {
  margin-bottom: 2px;
}

.manual-inventory-head h3 {
  font-size: 18px;
  margin: 0;
}

.quick-estimate-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 16px;
}

.inventory-search-label {
  margin: 14px 0 12px;
}

.bundle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 14px;
}

.bundle-button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 12px;
}

.bundle-button:hover,
.bundle-button:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7, 31, 51, 0.1);
}

.lead-consent label {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  line-height: 1.45;
}

.scanner-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 16px;
}

.scanner-head h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin: 5px 0 0;
}

.scanner-note {
  background: #fff8ed;
  border: 1px solid #f1c27d;
  border-radius: 14px;
  color: #5f3b0d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 12px 14px;
}

.scanner-analyze {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  margin-top: 14px;
  padding: 12px 16px;
}

.scanner-result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 15px;
  grid-template-columns: 160px minmax(0, 1fr);
  margin-top: 16px;
  padding: 14px;
}

.room-scan-summary {
  grid-column: 1 / -1;
}

.room-scan-summary strong {
  color: var(--brand);
  display: block;
  font-size: 17px;
}

.room-scan-summary p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 0;
}

.scanner-preview-wrap {
  background: var(--surface-soft);
  border-radius: 14px;
  overflow: hidden;
}

.scanner-preview-wrap img {
  aspect-ratio: 1;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.size-buttons button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.size-buttons button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.scanner-cube {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  margin: 12px 0 0;
}

.scanner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.scanner-actions button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 14px;
}

.scanner-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.scanner-list h4 {
  margin: 0;
}

.scanner-list-item {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 11px;
}

.scanner-list-thumb {
  border-radius: 10px;
  flex: 0 0 58px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.scanner-list-item strong,
.scanner-list-item span {
  display: block;
}

.scanner-list-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.storage-estimate {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 0;
}

.upload-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.upload-card input[type="file"] {
  background: white;
}

.upload-options {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.notes-label {
  margin-top: 18px;
}

.actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.actions button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 20px;
}

.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink);
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.review-section {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.review-section:last-child {
  border-bottom: 0;
}

.review-section h3 {
  font-size: 15px;
  margin: 0 0 9px;
}

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

.summary-grid div,
.review-list li {
  color: var(--muted);
  font-size: 13px;
}

.review-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-list strong {
  color: var(--ink);
}

.consent {
  background: #f5f7f6;
  border-radius: 12px;
  margin-top: 16px;
  padding: 14px;
}

.reminder-card {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 14px;
  margin-top: 16px;
  padding: 14px;
}

.reminder-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.reminder-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.submit-cta {
  background: #edf7f4;
  border: 1px solid #b9d9d1;
  border-radius: 14px;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
  margin-top: 14px;
  padding: 15px 16px;
}

.consent label {
  align-items: flex-start;
  display: flex;
  font-weight: 600;
  gap: 10px;
}

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

.submission-status {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 0;
}

.thank-you-card {
  background: #e9f6ee;
  border: 1px solid #b9dfc7;
  border-radius: 18px;
  margin-top: 18px;
  padding: 18px;
}

.thank-you-card h2 {
  color: var(--success);
  font-size: clamp(25px, 5vw, 34px);
  margin-top: 6px;
}

.thank-you-card p:not(.eyebrow) {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 18px 0 0;
}

.dashboard-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.dashboard-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 26px 18px 48px;
}

.dashboard-hero {
  align-items: center;
  background: var(--brand);
  border-radius: 28px;
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 38px);
}

.dashboard-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.dashboard-hero p:not(.eyebrow) {
  color: #dae5e6;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.dashboard-metrics {
  display: grid;
  gap: 10px;
  min-width: 150px;
}

.dashboard-metrics span,
.cube-badge {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 13px;
  text-align: center;
}

.dashboard-metrics strong,
.cube-badge strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.dashboard-metrics span,
.cube-badge span {
  color: #d9e5e6;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 20px;
}

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

.pipeline-stage {
  background: var(--surface);
  border: 1px solid rgba(21, 59, 70, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(18, 37, 45, 0.07);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.pipeline-stage span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.pipeline-stage strong {
  font-size: 24px;
  line-height: 1;
}

.pipeline-stage:hover {
  border-color: rgba(21, 59, 70, 0.32);
  transform: translateY(-1px);
}

.lead-panel,
.import-card,
.lead-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.lead-panel {
  align-self: start;
  position: sticky;
  top: 92px;
}

.lead-panel-head,
.lead-title-row,
.dashboard-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.lead-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lead-panel h2,
.import-card h2,
.lead-detail h2 {
  letter-spacing: -0.04em;
  margin: 0;
}

.small-button {
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 11px;
}

.lead-search {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.03em;
  margin-top: 14px;
  text-transform: uppercase;
}

.lead-search input {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 44px;
  padding: 10px 12px;
  text-transform: none;
}

.lead-search input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(242, 154, 58, 0.18);
}

.lead-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.lead-list-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 12px;
  text-align: left;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.status-pill.new-lead {
  background: #e8f2ff;
  color: #1d5f9f;
}

.status-pill.quoted {
  background: #edf0f4;
  color: #526070;
}

.status-pill.spoke-no-inventory {
  background: #eaf7ef;
  color: #217343;
}

.status-pill.status-90-days-out {
  background: #fff5c7;
  color: #8a6800;
}

.status-pill.72-hours-no-answer {
  background: #e7f6f3;
  color: #176b60;
}

.status-pill.open {
  background: #fff1dc;
  color: #9a5a12;
}

.status-pill.no-longer-interested {
  background: #efe9ff;
  color: #6341a3;
}

.status-pill.bad-lead-refund {
  background: #fff0f0;
  color: #a63a3a;
}

.status-pill.booked {
  background: #daf7ec;
  color: #096747;
}

.lead-list-item.active {
  background: #edf5f3;
  border-color: var(--brand);
}

.lead-list-item strong,
.lead-list-item span,
.lead-list-item small {
  display: block;
}

.lead-list-item span,
.lead-list-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.lead-status-bar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.status-control {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-control select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 10px;
  text-transform: none;
}

.lead-workspace-tabs {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding: 6px;
}

.lead-workspace-tab {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 12px;
}

.lead-workspace-tab.active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 37, 45, 0.08);
  color: var(--ink);
}

.lead-tab-panel {
  display: none;
}

.lead-tab-panel.active {
  display: block;
}

.dashboard-actions {
  flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-actions.compact-actions {
  margin-top: 0;
}

.pricing-settings {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
}

.range-value {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;
  padding: 3px 9px;
}

.file-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 20px;
}

.file-button input {
  display: none;
}

.lead-detail.empty {
  min-height: 220px;
}

.cube-badge {
  background: var(--brand);
  color: white;
  min-width: 120px;
}

.dashboard-summary-grid,
.quote-total-grid,
.two-card-grid {
  display: grid;
  gap: 12px;
}

.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.dashboard-summary-grid div,
.quote-total-grid div {
  background: var(--surface-soft);
  border-radius: 15px;
  padding: 13px;
}

.dashboard-summary-grid span,
.quote-total-grid span,
.quote-total-grid small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-summary-grid strong,
.quote-total-grid strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.tracking-summary {
  display: grid;
  gap: 14px;
}

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

.tracking-metrics span,
.tracking-row,
.tracking-stop {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 12px;
}

.tracking-metrics strong,
.tracking-row strong,
.tracking-stop strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
}

.tracking-metrics span,
.tracking-row span,
.tracking-stop span,
.tracking-stop small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.tracking-funnel,
.tracking-stops {
  display: grid;
  gap: 8px;
}

.tracking-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
}

.tracking-summary h3 {
  font-size: 14px;
  margin: 4px 0 0;
}

.quote-total-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.quote-total-grid strong {
  color: var(--brand);
  font-size: 27px;
  line-height: 1;
}

.pricing-card {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 18px;
  padding: 16px;
}

.pricing-total {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pricing-total span,
.pricing-breakdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-total strong {
  color: var(--brand);
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.pricing-total small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pricing-total .minimum-note {
  background: white;
  border: 1px solid #f2d6b5;
  border-radius: 999px;
  color: #a64f00;
  margin-top: 4px;
  padding: 7px 10px;
}

.pricing-breakdown {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 15px;
}

.pricing-breakdown div {
  background: white;
  border: 1px solid #f2d6b5;
  border-radius: 13px;
  padding: 12px;
}

.pricing-breakdown strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

.bulky-fee-card {
  background: #fff8ef;
  border-color: #f2d6b5;
}

.access-fee-card {
  background: #eef7fb;
  border-color: #b8d9e8;
}

.access-fee-card .bulky-fee-head > strong,
.access-fee-card .bulky-fee-list em {
  color: var(--brand);
}

.access-fee-card .bulky-fee-list li {
  border-color: #b8d9e8;
}

.bulky-fee-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.bulky-fee-head h3 {
  margin: 0;
}

.bulky-fee-head > strong {
  color: #a64f00;
  font-size: 24px;
  white-space: nowrap;
}

.bulky-fee-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.bulky-fee-list li {
  align-items: center;
  background: white;
  border: 1px solid #f2d6b5;
  border-radius: 13px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.bulky-fee-list span,
.bulky-fee-list small {
  display: block;
}

.bulky-fee-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.bulky-fee-list em {
  color: #a64f00;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.estimate-draft-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.estimate-draft-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.estimate-draft-head h3 {
  font-size: 21px;
  margin: 4px 0;
}

.estimate-document {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.estimate-title-row {
  align-items: flex-start;
  border-bottom: 2px solid var(--brand);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.estimate-title-row h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 5px;
}

.estimate-title-row span,
.estimate-grid small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

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

.estimate-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.estimate-grid div {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 12px;
}

.estimate-grid span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-grid strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.estimate-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

.estimate-table th,
.estimate-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.estimate-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.estimate-table td:last-child,
.estimate-table th:last-child {
  text-align: right;
}

.estimate-total-row td {
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.estimate-document h4 {
  margin: 4px 0 -4px;
}

.estimate-fee-list {
  margin: 0;
  padding-left: 18px;
}

.estimate-terms {
  background: #fff8ef;
  border: 1px solid #f2d6b5;
  border-radius: 14px;
  padding: 13px;
}

.estimate-terms p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.dashboard-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.dashboard-section > h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.dashboard-rooms {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-room {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.dashboard-room h3 {
  font-size: 15px;
  margin: 0 0 9px;
}

.dashboard-room ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-room li {
  align-items: center;
  background: white;
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 10px;
}

.dashboard-room li.with-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.dashboard-item-thumb {
  border-radius: 9px;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.dashboard-room li strong {
  color: var(--brand);
  white-space: nowrap;
}

.qa-added-tag {
  background: rgba(242, 154, 58, 0.15);
  border-radius: 999px;
  color: var(--brand);
  display: inline-block;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  margin-left: 6px;
  padding: 2px 7px;
  text-transform: uppercase;
}

.dashboard-room p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.qa-card {
  border-color: rgba(242, 154, 58, 0.45);
  background: linear-gradient(135deg, rgba(242, 154, 58, 0.1), rgba(255, 255, 255, 0.96));
}

.qa-summary {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  color: var(--muted);
  font-size: 0.85rem;
}

.qa-summary strong {
  color: var(--ink);
  font-size: 1.15rem;
  white-space: nowrap;
}

.qa-toggle-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.qa-add-form {
  align-items: end;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(21, 59, 70, 0.24);
  border-radius: 18px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.4fr 1fr 0.45fr 0.65fr auto;
  margin-top: 1rem;
  padding: 0.85rem;
}

.qa-add-form div {
  display: grid;
  gap: 0.35rem;
}

.qa-add-form label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qa-add-form input,
.qa-add-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.route-qa-card {
  background: #fff;
}

.crm-file-card {
  background: linear-gradient(135deg, rgba(21, 59, 70, 0.045), rgba(255, 255, 255, 0.98));
}

.crm-file-form {
  display: grid;
  gap: 12px;
  margin-top: 0.9rem;
}

.crm-file-form input,
.crm-file-form select,
.crm-file-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  text-transform: none;
  width: 100%;
}

.crm-file-form input[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
}

.crm-file-form textarea {
  line-height: 1.5;
  min-height: 110px;
  resize: vertical;
}

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

.crm-entry-column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.crm-entry-column h4 {
  background: var(--brand);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  margin: 0 0 3px;
  padding: 8px 10px;
  text-align: center;
}

.crm-row,
.crm-inline-fields,
.crm-bottom-strip {
  display: grid;
  gap: 8px;
}

.crm-inline-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-inline-fields.city-state {
  grid-template-columns: minmax(0, 1.2fr) 70px minmax(128px, 0.9fr);
}

.crm-bottom-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.crm-file-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hidden-field {
  display: none !important;
}

.crm-notes-label {
  display: grid;
  gap: 0.4rem;
}

.rep-inventory-card {
  background: #f8fbfa;
}

.rep-builder-total {
  background: var(--brand);
  border-radius: 14px;
  color: #fff;
  min-width: 104px;
  padding: 11px;
  text-align: center;
}

.rep-builder-total strong,
.rep-builder-total span {
  display: block;
}

.rep-builder-total strong {
  font-size: 23px;
  line-height: 1;
}

.rep-builder-total span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  margin-top: 3px;
}

.rep-room-strip,
.rep-catalog-list,
.rep-current-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rep-room-strip {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.rep-room-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 8px;
  text-align: left;
}

.rep-room-chip {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.rep-room-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.rep-catalog-head {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
}

.rep-catalog-head strong,
.rep-catalog-head small,
.rep-catalog-head span {
  display: block;
}

.rep-catalog-head strong {
  font-size: 15px;
}

.rep-catalog-head small,
.rep-catalog-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rep-room-chip:hover {
  border-color: rgba(21, 59, 70, 0.35);
  box-shadow: 0 8px 18px rgba(18, 37, 45, 0.08);
}

.rep-catalog-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rep-catalog-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 10px;
}

.rep-catalog-row.selected {
  border-color: rgba(21, 59, 70, 0.42);
  box-shadow: inset 4px 0 0 var(--brand);
}

.rep-catalog-row strong,
.rep-catalog-row small {
  display: block;
}

.rep-catalog-row strong {
  font-size: 13px;
}

.rep-catalog-row small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.rep-counter {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 32px 30px 32px;
  min-height: 34px;
  overflow: hidden;
}

.rep-counter button {
  background: transparent;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
}

.rep-counter button:hover {
  background: rgba(21, 59, 70, 0.09);
}

.rep-counter span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.rep-inventory-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1.4fr 0.45fr 0.65fr auto;
  margin-top: 14px;
}

.rep-inventory-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rep-inventory-form input,
.rep-inventory-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  text-transform: none;
  width: 100%;
}

.rep-current-list h4 {
  font-size: 14px;
  margin: 4px 0;
}

.rep-current-list div {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.rep-current-list span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.rep-current-list strong {
  color: var(--brand);
  white-space: nowrap;
}

.follow-up-card {
  background: linear-gradient(135deg, rgba(21, 59, 70, 0.06), rgba(255, 255, 255, 0.98));
}

.route-qa-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.9rem;
}

.route-qa-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.route-qa-form input {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  text-transform: none;
}

.follow-up-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.follow-up-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  min-height: 120px;
  padding: 0.8rem;
  resize: vertical;
}

.qa-toggle-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(18, 37, 45, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 0.8rem;
  cursor: pointer;
}

.qa-toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.qa-toggle-row span {
  display: grid;
  gap: 0.2rem;
}

.qa-toggle-row small {
  color: var(--muted);
}

.qa-toggle-row em {
  border-radius: 999px;
  background: rgba(21, 59, 70, 0.09);
  color: var(--ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
}

.qa-toggle-row.inactive {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.65);
}

  .qa-toggle-row.inactive strong {
  text-decoration: line-through;
}

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

.photo-gallery figure {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  overflow: hidden;
}

.photo-gallery img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.photo-gallery figcaption,
.upload-filenames {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
}

.upload-filenames {
  padding: 12px 0 0;
}

.empty-line {
  justify-content: flex-start !important;
}

.crm-output {
  background: #0e2229;
  border-radius: 14px;
  color: #e8f1ef;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.ghl-embed {
  background: #f3f5f7;
}

.ghl-embed .topbar {
  display: none;
}

.ghl-embed .dashboard-shell {
  max-width: none;
  padding: 14px;
}

.ghl-embed .dashboard-hero {
  border-radius: 18px;
  padding: 20px;
}

.ghl-embed .dashboard-hero h1 {
  font-size: clamp(25px, 4vw, 36px);
}

.ghl-embed .dashboard-hero p:not(.eyebrow) {
  max-width: 820px;
}

.ghl-embed .dashboard-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.ghl-embed .lead-panel,
.ghl-embed .import-card,
.ghl-embed .lead-detail {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18, 37, 45, 0.06);
}

.ghl-embed .lead-panel {
  top: 14px;
}

.site-disclosure {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 22px auto 0;
  max-width: 880px;
  text-align: center;
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    gap: 10px;
    min-height: 63px;
  }

  .save-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .save-indicator {
    display: none;
  }

  .app-shell {
    padding: 14px 10px 120px;
  }

  .help-dock {
    border-radius: 18px 18px 0 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .help-dock {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .help-dock span {
    padding-left: 0;
    text-align: center;
  }

  .help-dock div {
    width: 100%;
  }

  .help-dock a,
  .help-dock button {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero {
    border-radius: 21px;
    padding: 23px 19px;
  }

  .discount-modal {
    align-items: center;
    padding: 10px;
  }

  .discount-card {
    border-radius: 18px;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 18px;
  }

  .discount-card h2 {
    font-size: 29px;
  }

  .discount-detected {
    font-size: 21px;
    margin-bottom: 12px;
  }

  #discountMessage {
    font-size: 14px;
    padding: 12px;
  }

  .discount-zip {
    margin-top: 10px;
  }

  .discount-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .discount-actions button {
    flex: 1;
    padding: 12px 10px;
  }

  .step {
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
  }

  .panel {
    border-radius: 18px;
    padding: 17px 13px;
  }

  .fields.two-col,
  .fields.three-col,
  .delivery-options,
  .crm-entry-grid,
  .crm-inline-fields,
  .crm-inline-fields.city-state,
  .crm-bottom-strip,
  .inventory-choice-grid,
  .box-grid,
  .upload-options,
  .summary-grid,
  .pricing-settings,
  .dashboard-layout,
  .pipeline-summary,
  .rep-room-strip,
  .rep-catalog-list,
  .rep-inventory-form,
  .dashboard-summary-grid,
  .quote-total-grid,
  .pricing-breakdown,
  .route-qa-form,
  .qa-add-form,
  .estimate-grid,
  .estimate-grid.compact,
  .dashboard-rooms,
  .two-card-grid,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .lead-title-row,
  .estimate-title-row,
  .estimate-draft-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-panel {
    position: static;
  }

  .room-toggle {
    padding: 14px 12px;
  }

  .counter-row {
    gap: 6px;
  }

  .counter button {
    height: 43px;
    width: 43px;
  }

  .scanner-result {
    grid-template-columns: 1fr;
  }

  .scanner-preview-wrap img {
    max-height: 220px;
  }

  .scanner-actions,
  .scanner-list-item {
    align-items: stretch;
    flex-direction: column;
  }

  .stepper {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .step {
    min-width: 82px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .actions button {
    min-height: 52px;
    width: 100%;
  }

  .checkbox-line {
    align-items: flex-start;
  }

  .bundle-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

