:root {
  --ink: #17211c;
  --muted: #66736d;
  --line: #d8e2dd;
  --paper: #f6f8f6;
  --white: #ffffff;
  --green: #24715a;
  --green-deep: #1d5b49;
  --cyan: #8fd4c0;
  --shadow: 0 24px 80px rgba(23, 33, 28, 0.16);
  --radius: 8px;
  --header-glass: rgba(255, 255, 255, 0.82);
  --panel-glass: linear-gradient(180deg, rgba(38, 80, 65, 0.94), rgba(23, 33, 28, 0.98));
  --button-gradient: linear-gradient(180deg, #2a7c63 0%, #1f5e4b 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143, 212, 192, 0.18), transparent 32%),
    linear-gradient(180deg, #f9fbf8 0%, var(--paper) 100%);
  color: var(--ink);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px;
}

.header,
.card,
.panel-card {
  border-radius: var(--radius);
}

.header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--header-glass);
  border: 1px solid rgba(216, 226, 221, 0.9);
  box-shadow: 0 18px 50px rgba(23, 33, 28, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-row,
.action-row,
.section-title-row,
.package-header,
.map-toolbar,
.map-link-row {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
}

.logo {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--green));
  mask: url("../assets/good-attic-logo-cropped.png") center / contain no-repeat;
  -webkit-mask: url("../assets/good-attic-logo-cropped.png") center / contain no-repeat;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 4px;
}

.brand-title,
.section-title {
  font-size: 16px;
  font-weight: 700;
}

.brand-copy,
.subtle,
.line-meta,
.option-list,
.package-list,
.bullet-list,
.helper-text {
  color: var(--muted);
}

.brand-copy {
  font-size: 12px;
}

.storage-status {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.storage-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.18);
}

.storage-status[data-state="error"]::before {
  background: #a76f38;
  box-shadow: 0 0 0 3px rgba(167, 111, 56, 0.16);
}

.storage-status[data-state="saved"]::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 113, 90, 0.14);
}

.storage-status[data-state="loading"]::before {
  animation: pulseSync 1s ease-in-out infinite;
}

@keyframes pulseSync {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #eef4f1;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.mode-button,
.ghost-btn,
.primary-btn,
.map-toggle,
.package-tab,
.option-card {
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.mode-button,
.map-toggle {
  border: 0;
  background: transparent;
  color: #4e5c57;
  padding: 8px 12px;
  cursor: pointer;
}

.mode-button.active,
.map-toggle.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(23, 33, 28, 0.08);
}

.action-row {
  gap: 10px;
  justify-content: flex-end;
}

.ghost-btn,
.primary-btn {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.primary-btn {
  border: 0;
  color: white;
  background: var(--button-gradient);
  box-shadow: 0 16px 30px rgba(36, 113, 90, 0.26);
}

.workspace {
  margin-top: 12px;
}

.lead-board {
  display: grid;
  gap: 12px;
}

.lead-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 86% 20%, rgba(143, 212, 192, 0.24), transparent 32%);
  border: 1px solid rgba(216, 226, 221, 0.9);
  box-shadow: 0 18px 50px rgba(23, 33, 28, 0.08);
}

.lead-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead-hero-panel {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel-glass);
  color: white;
  box-shadow: var(--shadow);
}

.lead-hero-panel span,
.lead-hero-panel small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.lead-hero-panel strong {
  font-size: 44px;
  line-height: 1;
}

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

.lead-bucket {
  min-height: 460px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 226, 221, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(23, 33, 28, 0.06);
}

.lead-bucket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.lead-bucket-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lead-bucket-head strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 8px;
  background: #eef4f1;
  color: var(--green);
}

.lead-stack {
  display: grid;
  gap: 10px;
}

.lead-card {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lead-card:hover {
  border-color: rgba(36, 113, 90, 0.42);
  box-shadow: 0 16px 34px rgba(23, 33, 28, 0.1);
  transform: translateY(-1px);
}

.lead-card-top,
.lead-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-card h3 {
  margin: 0;
  font-size: 15px;
}

.lead-age,
.lead-property-status {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
}

.lead-address {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.lead-property-status {
  margin-top: 8px;
  color: var(--muted);
}

.lead-draft-status {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lead-card-actions {
  margin-top: 12px;
}

.lead-move {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.empty-bucket {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 320px;
  gap: 14px;
}

.main-column,
.side-column,
.client-stack {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(23, 33, 28, 0.04);
  padding: 14px;
}

.panel-card {
  background: var(--panel-glass);
  color: white;
  box-shadow: var(--shadow);
  padding: 14px;
}

.panel-card .eyebrow {
  color: rgba(143, 212, 192, 0.92);
}

.map-panel-wide {
  display: grid;
  gap: 8px;
}

.property-grid,
.mini-metrics,
.client-grid,
.options-grid,
.property-bar-grid {
  display: grid;
  gap: 10px;
}

.property-stat,
.metric {
  border-radius: 8px;
}

.property-stat {
  padding: 8px 10px;
  background: #f7faf8;
  border: 1px solid #e2ebe6;
}

.property-stat.estimate {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.property-stat.estimate .label,
.property-stat.estimate .value,
.property-stat.estimate .helper-text {
  color: rgba(255, 255, 255, 0.9);
}

.property-stat.estimate .helper-text {
  color: rgba(255, 255, 255, 0.58);
}

.metric {
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label,
.label,
thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.label,
thead th {
  color: var(--muted);
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
}

.metric-value,
.value,
.money,
.qty,
.quote-total,
.option-price,
.client-package-price {
  font-weight: 700;
}

.value,
.metric-value {
  font-size: 14px;
}

.package-tabs,
.map-switch {
  display: inline-flex;
  gap: 6px;
  background: #eef4f1;
  border-radius: 8px;
  padding: 4px;
}

.package-tab {
  border: 0;
  padding: 7px 10px;
  border-radius: 6px;
  color: #4d5b56;
  cursor: pointer;
  background: transparent;
}

.package-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 33, 28, 0.08);
}

.map-toolbar,
.map-link-row,
.section-title-row,
.package-header {
  justify-content: space-between;
  gap: 10px;
}

.map-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.map-preview-large {
  height: clamp(440px, 58vh, 680px);
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.map-preview::after {
  content: "Measure path";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.map-preview:has(.live-map-canvas)::before,
.map-preview:has(.live-map-canvas)::after {
  display: none;
}

.live-map-canvas {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.measure-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 24px));
  padding: 10px;
  border-radius: 8px;
  background: rgba(23, 33, 28, 0.86);
  color: white;
  box-shadow: 0 16px 36px rgba(23, 33, 28, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.measure-tool-head,
.measure-readouts,
.measure-save-row,
.measure-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.measure-tool-head,
.measure-save-row {
  justify-content: space-between;
}

.measure-tool-head strong,
.measure-readouts strong,
.measure-overlay button,
.measure-overlay select {
  font-size: 11px;
  font-weight: 800;
}

.measure-tool-head span,
.measure-readouts span {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.measure-tool-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

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

.measure-readouts div {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.measure-save-row select {
  min-width: 112px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 6px 7px;
}

.measure-actions {
  justify-content: flex-end;
}

.measure-overlay button {
  border: 0;
  border-radius: 6px;
  background: rgba(143, 212, 192, 0.22);
  color: white;
  cursor: pointer;
  padding: 5px 7px;
}

.measure-tool-tabs button.active,
.measure-overlay button[data-save-map-measure] {
  background: linear-gradient(135deg, #17211c, #24715a);
}

.measure-overlay button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.map-placeholder strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.map-placeholder span {
  display: block;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.map-kicker,
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.map-meta-row {
  margin-top: 2px;
}

.map-action-row {
  justify-content: flex-start;
}

.map-stage {
  display: grid;
  gap: 6px;
}

.property-bar {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.property-bar-main {
  display: grid;
  gap: 5px;
}

.property-address-line,
.property-data-line,
.measurement-line,
.property-ops-line {
  display: grid;
  align-items: center;
  gap: 6px;
}

.property-address-line {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.property-address-line .eyebrow {
  margin: 0;
}

.property-address-line strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-ops-line {
  grid-template-columns: minmax(410px, 1.05fr) minmax(390px, 0.95fr);
  align-items: stretch;
}

.property-data-line {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  align-self: start;
  gap: 5px;
  min-width: 0;
}

.property-mini-stat {
  display: grid;
  place-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 6px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.property-mini-stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.property-mini-stat strong {
  color: white;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.05;
  white-space: nowrap;
}

.measurement-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: stretch;
  height: 73px;
  min-height: 73px;
  max-height: 73px;
}

.property-bar-grid {
  grid-template-columns: 206px minmax(0, 1fr);
  margin-top: 5px;
  align-items: stretch;
}

.property-data-rail,
.property-est-row {
  display: grid;
  gap: 6px;
}

.property-data-rail {
  grid-template-rows: 1fr auto;
}

.property-est-row {
  grid-template-columns: 92px 1fr;
}

.compact-property-heading {
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr);
  gap: 7px;
  align-items: baseline;
}

.property-bar-heading .subtle {
  color: rgba(255, 255, 255, 0.74);
}

.lead-property-lockup {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.lead-property-lockup strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-status {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.lookup-status.warning {
  color: #f1c98e;
}

.measurement-card,
.source-control-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.measurement-card .label,
.source-control-card .label {
  color: rgba(255, 255, 255, 0.86);
}

.measurement-card {
  padding: 5px 7px 6px;
}

.measurement-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.measurement-summary {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.measurement-summary span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.qty-source-toggle {
  display: inline-flex;
  gap: 3px;
  justify-self: end;
  width: auto;
  padding: 2px;
  border-radius: 8px;
  background: rgba(238, 244, 241, 0.96);
}

.qty-source-option {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4e5c57;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
  padding: 5px 6px;
  white-space: nowrap;
}

.qty-source-option.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 33, 28, 0.1);
}

.qty-source-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.measure-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(62px, auto);
  align-content: start;
  gap: 6px;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 212, 192, 0.55) rgba(255, 255, 255, 0.08);
}

.measure-grid::-webkit-scrollbar {
  width: 4px;
}

.measure-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.measure-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(143, 212, 192, 0.55);
}

.measure-slot {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.measurement-line-count-1 .measure-slot {
  min-height: 100%;
}

.measure-slot-row {
  display: grid;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.measure-slot-row:first-child {
  grid-template-columns: minmax(0, 1fr) 22px;
}

.measure-slot-row:last-child {
  grid-template-columns: minmax(62px, 68px) minmax(94px, 1fr) minmax(62px, 68px) auto;
}

.measure-slot-title {
  min-width: 0;
}

.measure-row-label,
.measure-area,
.measure-op-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.measure-op-label {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.measure-sqft-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.measure-sqft-field span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.measure-stack {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
  gap: 4px;
  align-items: center;
}

.measure-stack label {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px;
  align-items: center;
}

.measure-stack label span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
}

.measure-x {
  justify-self: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.measure-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 3px 6px;
}

.measure-area {
  flex: 1;
  white-space: nowrap;
}

.measure-map-source {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(143, 212, 192, 0.14);
  color: rgba(143, 212, 192, 0.9);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.measure-assign,
.measure-mini-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 4px;
}

.measure-mini-select {
  min-width: 0;
  max-width: none;
}

.measure-remove,
.measure-add-slot,
.measure-add-inline {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.measure-remove {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
}

.measure-add-slot {
  display: grid;
  align-content: center;
  gap: 2px;
  width: 96px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px dashed rgba(143, 212, 192, 0.44);
  background: rgba(143, 212, 192, 0.12);
  color: white;
  text-align: left;
}

.measure-add-slot span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
}

.measure-add-inline {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: rgba(143, 212, 192, 0.22);
  color: white;
  font-size: 16px;
  line-height: 1;
}

.stacked-est {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.helper-text {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 6px;
}

.source-control-card {
  display: grid;
  align-content: center;
  padding: 6px;
}

.quote-total {
  font-size: 30px;
  line-height: 1;
  margin-top: 8px;
}

.mini-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.payment-action-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.payment-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.payment-status.error {
  color: #9b5b22;
}

.client-payment-status {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 28, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.payment-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 246, 0.9)),
    radial-gradient(circle at 90% 20%, rgba(143, 212, 192, 0.24), transparent 34%);
  border-bottom: 1px solid var(--line);
}

.payment-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-checkout-body {
  display: block;
  min-height: 0;
  overflow: auto;
  background: #f5f6f5;
}

.payment-summary-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 33, 28, 0.96), rgba(30, 82, 65, 0.96)),
    radial-gradient(circle at top right, rgba(143, 212, 192, 0.28), transparent 34%);
  color: white;
}

.payment-summary-row,
.payment-summary-total {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-summary-row span,
.payment-summary-total span,
.payment-summary-total small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-summary-row strong {
  font-size: 17px;
}

.payment-summary-total strong {
  font-size: 38px;
  line-height: 1;
}

.checkout-cart-shell {
  display: grid;
  gap: 14px;
  padding: 18px 14px;
}

.checkout-page-title {
  margin: 0;
  color: #050806;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.checkout-info-strip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: #eceeed;
  color: #17211c;
  font-size: 15px;
  line-height: 1.25;
}

.checkout-box-icon,
.checkout-truck-icon,
.checkout-card-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #101512;
}

.checkout-box-icon::before {
  content: "";
  width: 21px;
  height: 19px;
  border: 2px solid currentColor;
  transform: perspective(60px) rotateX(18deg) rotateZ(-24deg);
}

.checkout-box-icon::after {
  content: "i";
  position: absolute;
  right: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #929996;
  border-radius: 999px;
  color: #777f7a;
  font-size: 13px;
  font-weight: 900;
}

.checkout-card {
  overflow: hidden;
  border: 1px solid #ecefec;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 34px rgba(23, 33, 28, 0.12);
}

.checkout-card-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #ecefec;
  color: #050806;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.checkout-truck-icon::before {
  content: "";
  width: 25px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 8px 6px 0 -4px currentColor;
}

.checkout-truck-icon::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 17px 0 0 currentColor;
}

.checkout-card-icon::before {
  content: "";
  width: 25px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat;
}

.checkout-project-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.checkout-project-thumb {
  display: grid;
  place-items: center;
  width: 78px;
  height: 92px;
  border: 1px solid #dce7e1;
  border-radius: 10px;
  background:
    linear-gradient(155deg, rgba(143, 212, 192, 0.24), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 50% 20%, rgba(36, 113, 90, 0.22), transparent 38%);
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.checkout-project-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  color: #050806;
}

.checkout-project-copy strong {
  font-size: 16px;
  line-height: 1.15;
}

.checkout-project-copy span,
.checkout-project-copy em {
  color: #7b837f;
  font-size: 13px;
  font-style: normal;
  line-height: 1.25;
}

.checkout-project-copy b {
  margin-top: 8px;
  color: #050806;
  font-size: 20px;
  line-height: 1;
}

.payment-options-panel {
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.payment-option {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #ecefec;
  border-radius: 0;
  background: white;
  color: var(--ink);
  text-align: left;
}

.payment-option.selected {
  border-color: #ecefec;
  box-shadow: none;
}

.payment-option strong,
.payment-option span {
  display: block;
}

.payment-option strong {
  font-size: 15px;
}

.payment-option span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.payment-option em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.payment-method-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.pay-badge,
.card-brand,
.split-badge,
.invoice-icon {
  display: inline-grid;
  place-items: center;
  height: 24px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.apple-pay-badge {
  width: 72px;
  border-radius: 5px;
  background: #050505;
  color: white;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.paypal-badge {
  width: 58px;
  background: #f6c657;
  color: #123c7c;
  font-size: 12px;
}

.card-brand-row {
  width: 78px;
}

.card-brand {
  width: 36px;
  border: 1px solid #dce3df;
  background: white;
}

.card-brand.visa {
  color: #1a3f8f;
  font-style: italic;
  letter-spacing: -0.06em;
}

.card-brand.amex {
  background: #2e77bb;
  color: white;
  font-size: 8px;
}

.card-brand.disc {
  color: #e36b20;
  font-size: 8px;
}

.card-brand.mc {
  position: relative;
  overflow: hidden;
}

.card-brand.mc i,
.card-brand.mc b {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  top: 4px;
}

.card-brand.mc i {
  left: 8px;
  background: #eb001b;
}

.card-brand.mc b {
  right: 8px;
  background: rgba(247, 158, 27, 0.9);
}

.split-pay-row {
  width: 82px;
}

.split-badge {
  width: 40px;
  border-radius: 999px;
  font-size: 8px;
}

.split-badge.klarna {
  background: #ffb3c7;
  color: #171717;
}

.split-badge.affirm {
  background: #edf4ff;
  color: #2557d6;
}

.invoice-icon {
  position: relative;
  width: 30px;
  border: 1px solid #cbd8d2;
  background: linear-gradient(180deg, #ffffff, #f4f8f6);
}

.invoice-icon::before,
.invoice-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 999px;
  background: #8aa098;
}

.invoice-icon::before {
  top: 8px;
}

.invoice-icon::after {
  top: 14px;
}

.payment-secure-note {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-top: 1px solid #ecefec;
  border-radius: 0;
  background: #f7faf8;
  color: var(--ink);
}

.payment-secure-note strong {
  font-size: 12px;
}

.payment-secure-note span {
  color: var(--muted);
  font-size: 12px;
}

.converge-hpp-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid #ecefec;
  background:
    linear-gradient(135deg, rgba(247, 250, 248, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 0 0, rgba(143, 212, 192, 0.18), transparent 42%);
}

.converge-hpp-panel strong,
.converge-hpp-panel span {
  display: block;
}

.converge-hpp-panel strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.converge-hpp-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.converge-hpp-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
}

.converge-hpp-lock::before {
  content: "";
  width: 16px;
  height: 13px;
  margin-top: 7px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: white;
}

.converge-hpp-lock::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 13px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.payment-card-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #ecefec;
  border-radius: 0;
  background: white;
}

.payment-card-form label {
  display: grid;
  gap: 5px;
}

.payment-card-form span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-card-form input {
  width: 100%;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px;
}

.payment-card-form input:focus {
  outline: 0;
  border-color: rgba(36, 113, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.payment-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.checkout-message {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-message[data-tone="error"] {
  color: #9b5b22;
}

.checkout-message[data-tone="success"] {
  color: var(--green);
}

.checkout-bottom-bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid #dfe4e0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -16px 34px rgba(23, 33, 28, 0.14);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #050806;
  font-size: 18px;
  line-height: 1.1;
}

.checkout-total-row strong:last-child {
  white-space: nowrap;
}

.checkout-main-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #17211c, #24715a);
  color: white;
  box-shadow: 0 13px 28px rgba(36, 113, 90, 0.25);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
}

.checkout-main-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-wallet-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 20px rgba(23, 33, 28, 0.08);
}

.apple-wallet {
  background: #050505;
  color: white;
  font-size: 22px;
  gap: 4px;
}

.apple-wallet span {
  font-weight: 950;
}

.paypal-wallet {
  background: #ffc439;
  color: #173f7a;
  font-size: 24px;
  font-style: italic;
}

.paypal-wallet span {
  color: #1d5194;
}

.venmo-wallet {
  background: #098de8;
  color: white;
  font-size: 27px;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 10px 0;
  border-bottom: 1px solid #edf2ee;
  vertical-align: top;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.line-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.line-meta {
  font-size: 12px;
}

.line-source {
  margin-top: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
}

.line-toolbar {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.line-add-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.line-add-actions .compact-action {
  width: 100%;
}

.optional-action {
  color: var(--green);
}

.compact-action {
  padding: 7px 9px;
  font-size: 12px;
}

.line-text-input {
  display: block;
  width: min(100%, 360px);
  border: 1px solid transparent;
  outline: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 2px 4px;
  margin-left: -4px;
}

.line-name-input {
  font-size: 14px;
  font-weight: 800;
}

.line-meta-input {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.line-text-input:focus {
  border-color: rgba(36, 113, 90, 0.38);
  background: #f7faf8;
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.18);
}

.line-edit-wrap {
  display: inline-grid;
  grid-template-columns: minmax(58px, 1fr) auto;
  gap: 4px;
  align-items: center;
  max-width: 108px;
  padding: 3px 6px;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.line-edit-wrap.rate {
  grid-template-columns: auto minmax(56px, 1fr);
}

.line-qty-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.line-qty-stack strong {
  font-size: 13px;
}

.line-source-select {
  width: 100%;
  max-width: 108px;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  background: #f7faf8;
  color: #4e5c57;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 5px;
}

.line-source-select:focus {
  outline: 0;
  border-color: rgba(36, 113, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.line-edit-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.line-edit-wrap:focus-within {
  border-color: rgba(36, 113, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.line-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-items: start;
}

.optional-line-row {
  background: rgba(143, 212, 192, 0.07);
}

.line-optional-toggle {
  border: 0;
  border-radius: 6px;
  background: rgba(102, 115, 109, 0.12);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  height: 28px;
  padding: 0 7px;
  white-space: nowrap;
}

.line-optional-toggle.included {
  background: rgba(36, 113, 90, 0.12);
  color: var(--green);
}

.line-icon-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4e5c57;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
}

.line-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.line-icon-button:hover {
  color: var(--green);
  background: rgba(36, 113, 90, 0.08);
}

.line-icon-button.danger:hover {
  color: #8a5526;
  background: rgba(167, 111, 56, 0.08);
}

.line-window-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 28, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.line-window {
  width: min(560px, 100%);
  border: 1px solid rgba(216, 226, 221, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 14px;
}

.line-window-header,
.line-window-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.line-window-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.line-window-grid label {
  display: grid;
  gap: 5px;
}

.line-window-grid label:nth-child(2) {
  grid-column: span 2;
}

.line-window-grid span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.line-window-grid input,
.line-window-grid select {
  width: 100%;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px;
}

.line-window-grid input:focus,
.line-window-grid select:focus {
  outline: 0;
  border-color: rgba(36, 113, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.option-card,
.client-package {
  border: 1px solid var(--line);
  background: #fbfcfb;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.option-card.best,
.client-package.selected {
  background: linear-gradient(180deg, rgba(36, 113, 90, 0.08), rgba(255, 255, 255, 0.92));
  border-color: rgba(36, 113, 90, 0.22);
}

.option-card h3,
.client-package h3 {
  margin: 0;
  font-size: 16px;
}

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

.packages-card-title {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.add-package-button {
  white-space: nowrap;
}

.option-card.custom {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(143, 212, 192, 0.11), rgba(255, 255, 255, 0.94));
}

.option-card.client-hidden {
  opacity: 0.78;
}

.package-chip-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.package-chip-action,
.package-chip-action-spacer {
  width: 34px;
  height: 24px;
}

.package-chip-action {
  border: 0;
  border-radius: 6px;
  background: rgba(36, 113, 90, 0.12);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.package-chip-action.danger {
  background: rgba(167, 111, 56, 0.13);
  color: #8a4e20;
  font-size: 18px;
}

.package-chip-action.muted {
  background: rgba(102, 115, 109, 0.13);
  color: var(--muted);
}

.package-name-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  padding: 4px 6px;
}

.package-name-input:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.package-client-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.option-price,
.client-package-price {
  font-size: 24px;
  margin: 8px 0;
}

.option-list,
.package-list,
.bullet-list {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.side-stack {
  grid-template-columns: 1fr;
}

.notes-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.note-field {
  display: grid;
  gap: 5px;
}

.note-field span,
.upload-slot span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px;
}

.note-field textarea:focus {
  outline: 0;
  border-color: rgba(36, 113, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.22);
  background: white;
}

.upload-slot {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed rgba(36, 113, 90, 0.34);
  border-radius: 8px;
  background: rgba(143, 212, 192, 0.12);
  cursor: pointer;
}

.upload-slot input {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.upload-slot small {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 250px;
  gap: 12px;
}

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

.hero-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.04;
  font-weight: 800;
}

.hero-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.hero-price-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.hero-price {
  font-size: 38px;
  font-weight: 800;
  line-height: 0.95;
  margin: 4px 0;
}

.cta-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.client-payment-options {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.client-payment-options div {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.client-grid {
  grid-template-columns: 1.2fr 1fr;
}

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

.bullet-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.bullet-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.client-accent-card {
  background: rgba(143, 212, 192, 0.11);
  border-color: rgba(36, 113, 90, 0.18);
}

.top-space {
  margin-top: 10px;
}

.presentation-shell,
.client-share-shell {
  display: grid;
  gap: 14px;
}

.presentation-hero,
.presentation-value-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  min-height: 210px;
  padding: 22px;
}

.presentation-value-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: 315px;
  overflow: hidden;
}

.presentation-hero-copy,
.presentation-value-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.presentation-hero h1,
.presentation-value-copy h1,
.client-quote-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.presentation-value-copy h1 {
  font-size: clamp(46px, 6.4vw, 86px);
}

.presentation-hero p,
.client-quote-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.45;
}

.presentation-address,
.client-address {
  width: fit-content;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.presentation-promise-grid {
  display: grid;
  gap: 16px;
  align-content: center;
}

.presentation-promise-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.presentation-promise-card span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--cyan);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.presentation-promise-card strong {
  color: white;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.presentation-review-carousel {
  grid-column: 1 / -1;
  margin-top: 8px;
  overflow: hidden;
}

.presentation-review-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.presentation-review-card {
  flex: 0 0 min(286px, 76vw);
  scroll-snap-align: start;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.presentation-review-card.expanded {
  flex-basis: min(480px, 90vw);
  background: rgba(255, 255, 255, 0.12);
}

.presentation-stars {
  color: #f3c96b;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.presentation-review-card p {
  display: -webkit-box;
  min-height: 72px;
  margin: 9px 0 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.presentation-review-card.expanded p {
  display: block;
  max-height: 220px;
  overflow: auto;
  -webkit-line-clamp: unset;
}

.presentation-review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.presentation-review-foot span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-review-foot button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.presentation-found-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 58px rgba(23, 33, 28, 0.08);
}

.presentation-found-hero {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 10px;
}

.presentation-found-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.presentation-found-hero p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.presentation-found-list {
  display: grid;
  gap: 12px;
}

.presentation-found-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.presentation-found-media {
  display: grid;
  min-height: 104px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 212, 192, 0.2), rgba(246, 248, 246, 0.96));
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.presentation-found-media img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.presentation-found-copy {
  display: grid;
  gap: 5px;
}

.presentation-found-copy span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-found-copy strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.presentation-found-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.presentation-price-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.presentation-price-card span,
.presentation-price-card small,
.approval-breakdown span,
.client-total-card span,
.client-total-card small,
.client-home-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-price-card strong,
.approval-total,
.client-total-card strong {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.presentation-decision,
.presentation-story,
.presentation-scope,
.presentation-proof {
  min-width: 0;
}

.presentation-approval {
  position: static;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) auto minmax(320px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.presentation-approval h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.presentation-approval-heading {
  display: grid;
  gap: 4px;
}

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

.presentation-package {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--ink);
  cursor: pointer;
}

.presentation-package.selected {
  border-color: rgba(36, 113, 90, 0.58);
  background:
    linear-gradient(180deg, rgba(143, 212, 192, 0.18), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 38px rgba(36, 113, 90, 0.12);
}

.presentation-package span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-package strong {
  font-size: 24px;
  line-height: 1;
}

.presentation-package em {
  font-style: normal;
  font-size: 28px;
  font-weight: 850;
}

.presentation-package small {
  color: var(--muted);
  line-height: 1.35;
}

.approval-breakdown,
.story-steps,
.client-step-list,
.client-home-grid {
  display: grid;
  gap: 10px;
}

.presentation-approval .approval-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approval-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.story-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.story-steps div,
.client-step-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.story-steps span,
.client-step-list span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.story-steps strong,
.client-step-list strong {
  display: block;
  margin-bottom: 5px;
}

.story-steps p,
.client-step-list small {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.presentation-scope,
.presentation-proof {
  grid-column: 1 / -1;
}

.presentation-scope-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.presentation-scope-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.presentation-scope-row strong,
.presentation-scope-row span {
  display: block;
}

.presentation-scope-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.presentation-scope-row small {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

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

.proof-tile {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 14px;
  border: 1px dashed rgba(36, 113, 90, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 212, 192, 0.16), rgba(255, 255, 255, 0.92));
  color: var(--green);
  font-weight: 850;
  text-align: center;
}

.proof-tile.uploaded {
  border-style: solid;
  background: #f7faf8;
  color: var(--ink);
}

.client-share-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 84px;
}

.client-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel-glass);
  color: white;
  box-shadow: var(--shadow);
}

.client-quote-hero {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 260px;
  padding: 8px;
}

.client-total-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.client-total-card .ghost-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.client-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.client-step-list div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.client-step-list span {
  grid-row: span 2;
  margin-bottom: 0;
}

.client-included-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.client-included-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.client-included-list li:last-child {
  border-bottom: 0;
}

.client-included-list strong,
.client-included-list span {
  display: block;
}

.client-included-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.client-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.client-home-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.client-home-grid span {
  display: block;
  color: var(--muted);
}

.client-home-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.client-photo-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
}

.client-photo-list div {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.client-sticky-approval {
  position: sticky;
  bottom: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(720px, calc(100% - 20px));
  margin: 4px auto 0;
  padding: 10px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(23, 33, 28, 0.16);
  backdrop-filter: blur(18px);
}

.client-sticky-approval span,
.client-sticky-approval strong {
  display: block;
}

.client-sticky-approval span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-sticky-approval strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.payment-result-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.payment-result-card {
  width: min(560px, 100%);
  padding: 28px;
}

.payment-result-card h1 {
  margin: 0 0 10px;
  color: white;
  font-size: 34px;
}

.payment-result-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .header,
  .builder-layout,
  .lead-buckets,
  .hero-summary,
  .client-grid,
  .presentation-hero,
  .presentation-value-hero,
  .presentation-found-section,
  .presentation-grid,
  .client-quote-card,
  .client-review-grid {
    grid-template-columns: 1fr;
  }

  .presentation-approval {
    grid-template-columns: 1fr;
  }

  .presentation-found-hero {
    position: static;
  }

  .property-bar-grid {
    grid-template-columns: 214px minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .measurement-line {
    align-items: stretch;
  }

  .measurement-line-count-1 .measure-slot {
    min-height: 100%;
  }

  .measurement-line:not(.measurement-line-count-1) .measure-slot {
    min-height: 62px;
  }

  .qty-source-toggle {
    align-self: center;
  }
}

@media (max-width: 860px) {
  .property-bar-grid,
  .lead-hero,
  .mini-metrics,
  .bullets-compact,
  .story-steps,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .payment-modal-backdrop {
    padding: 0;
    place-items: stretch;
  }

  .payment-modal {
    width: 100%;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .payment-checkout-body {
    overflow: auto;
  }

  .payment-summary-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .payment-options-panel {
    overflow: visible;
  }

  .payment-option {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }

  .checkout-cart-shell {
    padding-bottom: 18px;
  }

  .checkout-bottom-bar {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .header {
    grid-template-columns: 1fr;
  }

  .property-bar-grid,
  .property-est-row,
  .lead-hero,
  .lead-property-lockup,
  .mini-metrics,
  .bullets-compact,
  .presentation-packages,
  .story-steps,
  .proof-strip,
  .client-home-grid {
    grid-template-columns: 1fr;
  }

  .presentation-hero,
  .presentation-value-hero,
  .presentation-found-section,
  .client-quote-card {
    padding: 14px;
  }

  .presentation-hero h1,
  .presentation-value-copy h1,
  .presentation-found-hero h2,
  .client-quote-hero h1 {
    font-size: 38px;
  }

  .presentation-hero p,
  .client-quote-hero p {
    font-size: 15px;
  }

  .presentation-price-card strong,
  .approval-total,
  .client-total-card strong {
    font-size: 44px;
  }

  .presentation-approval .approval-breakdown {
    grid-template-columns: 1fr;
  }

  .presentation-found-card {
    grid-template-columns: 1fr;
  }

  .presentation-found-media img {
    height: 180px;
  }

  .presentation-scope-row {
    grid-template-columns: 1fr;
  }

  .measure-slot {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 58px;
  }

  .measure-grid {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .property-ops-line,
  .property-data-line,
  .measurement-line {
    grid-template-columns: 1fr;
  }

  .measure-add-slot {
    width: 100%;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    flex: 1;
  }
}
