: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);
}

body.client-view-active {
  --client-header-progress: 0;
  overflow-x: hidden;
  background: #fff;
}

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

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

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  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);
}

.workspace-header {
  justify-self: stretch;
  align-self: stretch;
}

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

.lead-system-header {
  position: sticky;
  top: 10px;
  z-index: 45;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(23, 33, 28, 0.1);
}

.lead-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 260px);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.lead-system-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.lead-system-brand .logo {
  flex-basis: 64px;
  width: 64px;
  height: 32px;
}

.lead-system-brand strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.lead-header-select {
  justify-self: end;
  width: 100%;
}

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

.brand-row {
  gap: 12px;
}

.logo {
  flex: 0 0 70px;
  width: 70px;
  height: 34px;
  background: url("../assets/good-attic-logo-mark.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="pending"]::before {
  background: #d2a642;
  box-shadow: 0 0 0 3px rgba(210, 166, 66, 0.18);
}

.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;
}

.workspace-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.prequote-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #cfe0d9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.prequote-status-toggle.complete {
  border-color: rgba(143, 212, 192, 0.9);
  color: var(--green-deep);
  background: rgba(237, 255, 249, 0.92);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.16);
}

.prequote-status-toggle:disabled {
  cursor: default;
  opacity: 0.75;
}

.prequote-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dce8e3;
  transition: background 160ms ease;
}

.prequote-toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(23, 33, 28, 0.16);
  transition: transform 160ms ease;
}

.prequote-status-toggle.complete .prequote-toggle-track {
  background: var(--green);
}

.prequote-status-toggle.complete .prequote-toggle-track span {
  transform: translateX(14px);
}

.quote-send-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #12372c, var(--green));
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(36, 113, 90, 0.18);
}

.quote-send-button.sent {
  background: #e8f4ef;
  color: var(--green-deep);
  border: 1px solid rgba(36, 113, 90, 0.18);
  box-shadow: none;
}

.quote-send-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.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);
}

.mode-label-short {
  display: none;
}

.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;
  min-width: 0;
}

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

.lead-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  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-home-controls,
.market-controls,
.lead-reporting-section,
.home-pipeline-panel,
.company-pipeline {
  display: grid;
  gap: 12px;
}

.market-selector-top {
  margin-top: 2px;
}

.market-calendar-select {
  position: relative;
  display: grid;
  gap: 5px;
  width: min(280px, 100%);
}

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

.market-calendar-select select {
  width: 100%;
  min-height: 40px;
  padding: 9px 38px 9px 12px;
  border: 1px solid rgba(36, 113, 90, 0.18);
  border-radius: var(--radius);
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--green) 50%) calc(100% - 18px) 17px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--green) 50%, transparent 50%) calc(100% - 14px) 17px / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(23, 33, 28, 0.05);
}

.lead-reporting-section {
  padding-top: 4px;
}

.compact-report-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(23, 33, 28, 0.06);
}

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

.lead-report-tile {
  display: grid;
  gap: 6px;
  min-height: 86px;
  align-content: center;
  padding: 11px 12px;
  border: 1px solid rgba(216, 226, 221, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.lead-system-header .lead-report-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 249, 0.88));
}

.lead-report-tile span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-report-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.lead-report-metric strong {
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 950;
  line-height: 1.04;
}

.lead-report-metric small {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.trend-badge {
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.lead-report-metric.up.low strong,
.lead-report-metric.up.low small,
.trend-badge.up.low {
  color: #24715a;
}

.lead-report-metric.up.medium strong,
.lead-report-metric.up.medium small,
.trend-badge.up.medium {
  color: #1d5b49;
}

.lead-report-metric.up.high strong,
.lead-report-metric.up.high small,
.trend-badge.up.high {
  color: #0f4e3e;
}

.lead-report-metric.down.low strong,
.lead-report-metric.down.low small,
.trend-badge.down.low {
  color: #a84a4a;
}

.lead-report-metric.down.medium strong,
.lead-report-metric.down.medium small,
.trend-badge.down.medium {
  color: #8f3333;
}

.lead-report-metric.down.high strong,
.lead-report-metric.down.high small,
.trend-badge.down.high {
  color: #762323;
}

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

.lead-performance-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 184px;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.06);
}

.lead-performance-card > span,
.lead-performance-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-performance-card > strong {
  color: var(--ink);
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-performance-card small {
  letter-spacing: 0;
  text-transform: none;
}

.lead-performance-rows {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.lead-performance-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #e6eeea;
}

.lead-performance-rows span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lead-performance-rows strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.home-view-switch,
.calendar-tabs {
  display: grid;
  gap: 6px;
  padding: 5px;
  border: 1px solid #dbe6e1;
  border-radius: var(--radius);
  background: #eef4f1;
}

.home-view-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-view-switch-compact {
  width: min(320px, 100%);
  justify-self: start;
  padding: 4px;
}

.home-view-switch button,
.calendar-tab {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4d5b56;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.home-view-switch button {
  min-height: 42px;
  padding: 9px 10px;
}

.home-view-switch-compact button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

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

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

.calendar-tab {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.calendar-tab strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
  font-size: 11px;
}

.market-calendar,
.home-pipeline-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.market-calendar {
  overflow-x: auto;
}

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

.market-section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.market-section-head > strong,
.market-section-head > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #eef4f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.market-section-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.market-section-actions > span {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #eef4f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.today-quotes-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 243, 0.78)),
    radial-gradient(circle at 88% 10%, rgba(143, 212, 192, 0.24), transparent 32%);
  box-shadow: 0 14px 36px rgba(23, 33, 28, 0.06);
}

.today-quote-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.today-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(36, 113, 90, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.today-quote-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.today-quote-card.prequote-complete {
  border-color: rgba(39, 226, 191, 0.95);
  background:
    linear-gradient(180deg, rgba(39, 226, 191, 0.26), rgba(240, 255, 250, 0.98));
  box-shadow:
    0 0 0 1px rgba(39, 226, 191, 0.42),
    0 12px 28px rgba(30, 192, 164, 0.22);
}

.today-quote-card.quote-sent {
  border-color: rgba(15, 78, 62, 0.5);
  background: linear-gradient(180deg, rgba(15, 78, 62, 0.22), rgba(238, 248, 243, 0.98));
}

.today-quote-card.prequote-needed {
  border-color: rgba(201, 75, 75, 0.22);
  background: linear-gradient(180deg, rgba(255, 111, 111, 0.12), rgba(255, 255, 255, 0.96));
}

.today-quote-card span,
.today-quote-card em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-quote-card.prequote-needed span,
.today-quote-card.prequote-needed em {
  color: #a33f3f;
}

.today-quote-card.prequote-complete span,
.today-quote-card.prequote-complete em {
  color: #0a8f78;
}

.today-quote-card.quote-sent span,
.today-quote-card.quote-sent em {
  color: #0f4e3e;
}

.today-quote-card strong {
  font-size: 17px;
  line-height: 1.1;
}

.quote-map-link,
.today-quote-card small,
.today-quote-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.quote-map-link:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.on-the-way-menu {
  position: relative;
  justify-self: end;
}

.on-the-way-menu summary {
  min-width: 118px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--button-gradient);
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  list-style: none;
  text-align: center;
}

.on-the-way-menu summary::-webkit-details-marker {
  display: none;
}

.on-the-way-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  min-width: 136px;
  padding: 6px;
  border: 1px solid rgba(216, 226, 221, 0.95);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 44px rgba(23, 33, 28, 0.14);
}

.on-the-way-options button {
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: #eef4f1;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.on-the-way-options button:hover {
  background: rgba(143, 212, 192, 0.24);
}

.today-quote-empty {
  display: grid;
  gap: 4px;
  min-height: 96px;
  align-content: center;
  padding: 14px;
  border: 1px dashed rgba(36, 113, 90, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.calendar-week-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.calendar-week-controls span {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #eef4f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.calendar-week-controls button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.calendar-week-controls .calendar-arrow-button {
  display: inline-grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.calendar-week-controls .calendar-arrow-button:hover,
.calendar-week-controls .calendar-arrow-button:focus-visible {
  color: var(--green-deep);
  background: rgba(143, 212, 192, 0.14);
  outline: 0;
}

.calendar-grid {
  display: grid;
  gap: 10px;
}

.calendar-grid.week-grid {
  min-width: 840px;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.mobile-month-shell,
.calendar-grid.mobile-month-grid {
  display: none;
}

.calendar-day {
  min-width: 0;
  min-height: 178px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.calendar-day.today {
  border-color: rgba(36, 113, 90, 0.42);
  box-shadow: inset 0 0 0 1px rgba(36, 113, 90, 0.18);
}

.calendar-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-day-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-day-head strong {
  color: var(--ink);
  font-size: 14px;
}

.calendar-day-stack {
  display: grid;
  gap: 8px;
}

.calendar-appt {
  display: grid;
  gap: 0;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(36, 113, 90, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(143, 212, 192, 0.14), rgba(255, 255, 255, 0.94));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.calendar-appt.expanded {
  padding: 10px;
}

.calendar-appt-compact {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-appt-compact strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-appt-details {
  display: none;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 113, 90, 0.14);
}

.calendar-appt.expanded .calendar-appt-details {
  display: grid;
}

.calendar-appt.prequote-complete {
  border-color: rgba(39, 226, 191, 0.95);
  background:
    linear-gradient(180deg, rgba(39, 226, 191, 0.28), rgba(240, 255, 250, 0.98));
  box-shadow:
    0 0 0 1px rgba(39, 226, 191, 0.38),
    0 10px 24px rgba(30, 192, 164, 0.2);
}

.calendar-appt.quote-sent {
  border-color: rgba(15, 78, 62, 0.5);
  background:
    linear-gradient(180deg, rgba(15, 78, 62, 0.25), rgba(229, 244, 238, 0.98));
}

.calendar-appt.prequote-needed {
  border-color: rgba(201, 75, 75, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 111, 111, 0.13), rgba(255, 248, 248, 0.98));
}

.calendar-appt.prequote-needed span {
  color: #a33f3f;
}

.calendar-appt.prequote-complete span {
  color: #0a8f78;
}

.calendar-appt.quote-sent span {
  color: #0f4e3e;
}

.calendar-appt span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.calendar-appt-details strong {
  font-size: 14px;
  line-height: 1.1;
}

.calendar-appt small,
.calendar-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.calendar-appt-details em {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-appt.prequote-needed .calendar-appt-details em {
  color: #a33f3f;
}

.calendar-appt.prequote-complete .calendar-appt-details em {
  color: #0a8f78;
}

.calendar-appt.quote-sent .calendar-appt-details em {
  color: #0f4e3e;
}

.calendar-appt .compact-action {
  justify-self: start;
  min-height: 28px;
  margin-top: 2px;
  padding: 6px 9px;
  font-size: 11px;
}

.calendar-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.market-calendar.panel-card {
  border-color: rgba(205, 214, 210, 0.95);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(23, 33, 28, 0.08);
}

.market-calendar.panel-card .eyebrow {
  color: var(--green);
}

.market-calendar .calendar-grid.week-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(205, 214, 210, 0.95);
  border-radius: var(--radius);
  background: #fff;
}

.market-calendar .calendar-day {
  min-height: 196px;
  border: 0;
  border-right: 1px solid rgba(205, 214, 210, 0.95);
  border-radius: 0;
  background: #fff;
}

.market-calendar .calendar-day:last-child {
  border-right: 0;
}

.market-calendar .calendar-day.today {
  background: linear-gradient(180deg, rgba(219, 246, 237, 0.82), #fff 56%);
  box-shadow: inset 0 0 0 2px rgba(36, 113, 90, 0.24);
}

.market-calendar .calendar-day-head {
  margin: -10px -10px 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(205, 214, 210, 0.72);
  background: #fbfcfb;
}

.market-calendar .calendar-day.today .calendar-day-head {
  border-bottom-color: rgba(36, 113, 90, 0.24);
  background: rgba(238, 248, 243, 0.92);
}

.market-calendar .calendar-day-head strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.market-calendar .calendar-day-head strong em {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-calendar .calendar-appt {
  border-radius: 6px;
}

.mobile-month-shell {
  overflow-x: auto;
  border: 1px solid rgba(205, 214, 210, 0.95);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.calendar-grid.mobile-month-grid {
  width: max-content;
  min-width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 0;
  border: 0;
  border-radius: 0;
}

.calendar-grid.mobile-month-grid .calendar-day {
  scroll-snap-align: start;
}

.company-pipeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 460px;
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(23, 33, 28, 0.06);
}

.company-column.collapsed {
  min-height: 0;
}

.company-column-head {
  display: flex;
  width: 100%;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.company-column-head span {
  display: grid;
  gap: 4px;
}

.company-column-head em {
  color: var(--ink);
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.company-column-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

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

.market-kanban-panel {
  overflow-x: auto;
}

.lead-board .lead-kanban-buckets {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  min-width: 920px;
}

.lead-kanban-buckets .lead-bucket {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: clamp(430px, 48vh, 600px);
}

.lead-kanban-buckets .lead-stack {
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.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-stack.drag-over {
  outline: 2px dashed rgba(39, 226, 191, 0.72);
  outline-offset: 5px;
  background: rgba(39, 226, 191, 0.08);
}

.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.dragging {
  opacity: 0.56;
  transform: scale(0.98);
}

.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.prequote-complete {
  border-color: rgba(39, 226, 191, 0.95);
  background:
    linear-gradient(180deg, rgba(39, 226, 191, 0.18), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 0 1px rgba(39, 226, 191, 0.36),
    0 14px 30px rgba(30, 192, 164, 0.16);
}

.lead-card.quote-sent {
  border-color: rgba(15, 78, 62, 0.42);
  background:
    linear-gradient(180deg, rgba(15, 78, 62, 0.16), rgba(247, 252, 249, 0.98));
}

.lead-card.prequote-needed {
  border-color: rgba(201, 75, 75, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 111, 111, 0.08), rgba(255, 255, 255, 0.98));
}

.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 {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.lead-address-main {
  color: var(--ink);
  text-decoration: none;
}

.lead-address-main:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-map-links a {
  padding: 4px 7px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: 999px;
  background: #eef4f1;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.lead-map-links a:hover {
  border-color: rgba(36, 113, 90, 0.34);
  background: rgba(143, 212, 192, 0.24);
}

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

.lead-appointment-meta {
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.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;
}

.lead-card.virtual-lead {
  border-color: rgba(143, 212, 192, 0.42);
  background:
    linear-gradient(180deg, rgba(143, 212, 192, 0.1), #ffffff);
}

.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;
  width: 100%;
  min-width: 0;
}

.main-column,
.side-column,
.client-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.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;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.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;
  min-width: 0;
}

.map-toolbar > div,
.map-link-row > * {
  min-width: 0;
}

.map-switch {
  flex: 0 1 auto;
  min-width: 0;
}

.map-preview {
  position: relative;
  width: 100%;
  min-width: 0;
  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;
  min-width: 0;
}

.qty-source-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.qty-source-toolbar > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

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

.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);
  align-self: stretch;
  min-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: auto;
  overflow: visible;
  overscroll-behavior: contain;
  padding-right: 0;
  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);
}

.proposal-accepted-proof {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 212, 192, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(143, 212, 192, 0.22), rgba(255, 255, 255, 0.09));
}

.proposal-accepted-proof.compact {
  padding: 10px 12px;
}

.proposal-accepted-proof strong {
  color: white;
  font-size: 16px;
  line-height: 1.1;
}

.proposal-accepted-proof small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.proposal-accepted-pill {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(143, 212, 192, 0.22);
  color: #dffcf2;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 9, 0.68);
  animation: checkoutBackdropFade 420ms ease forwards;
}

body.payment-modal-open {
  overflow: hidden;
  touch-action: none;
}

@keyframes checkoutBackdropFade {
  from { background: rgba(7, 12, 9, 0); }
  to { background: rgba(7, 12, 9, 0.68); }
}

.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);
  animation: checkoutModalFadeIn 460ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkoutModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.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-modal-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.payment-modal-close:hover {
  border-color: rgba(36, 113, 90, 0.28);
  background: white;
  color: var(--green);
}

.proposal-thank-you-modal {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(500px, 100%);
  padding: 26px;
  border: 1px solid rgba(216, 226, 221, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: checkoutModalFadeIn 460ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.proposal-thank-you-modal .payment-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.proposal-thank-you-check {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #17211c, #24715a);
  color: white;
  box-shadow: 0 16px 30px rgba(36, 113, 90, 0.24);
  font-size: 30px;
  font-weight: 950;
}

.proposal-thank-you-modal h2 {
  max-width: 390px;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.proposal-thank-you-modal p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.proposal-thank-you-modal .proposal-accepted-proof {
  background: rgba(246, 248, 246, 0.92);
}

.proposal-thank-you-modal .proposal-accepted-proof strong {
  color: var(--ink);
}

.proposal-thank-you-modal .proposal-accepted-proof small {
  color: var(--muted);
}

.proposal-thank-you-modal .proposal-accepted-pill {
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
}

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

.proposal-thank-you-contact-prompt {
  margin-bottom: -8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.proposal-thank-you-actions .primary-btn,
.proposal-thank-you-actions .ghost-btn {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.proposal-thank-you-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.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-schedule-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.94)),
    radial-gradient(circle at 100% 0, rgba(143, 212, 192, 0.2), transparent 42%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

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

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

.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-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;
}

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

.payment-option {
  display: grid;
  grid-template-columns: 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-toggle {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #ecefec;
  background: #fbfdfb;
}

.card-payment-primary {
  padding: 12px 14px;
  border-bottom: 1px solid #ecefec;
  background: #fbfdfb;
}

.card-payment-primary-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(36, 113, 90, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 113, 90, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 22px rgba(36, 113, 90, 0.08);
}

.card-payment-primary-copy strong,
.card-payment-primary-copy span {
  display: block;
}

.card-payment-primary-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.card-payment-primary-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.card-payment-primary-copy em {
  color: var(--green);
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.card-payment-primary .payment-method-choice {
  border-color: rgba(36, 113, 90, 0.35);
}

.payment-method-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.payment-method-choice.active {
  border-color: rgba(36, 113, 90, 0.45);
  background:
    linear-gradient(135deg, rgba(36, 113, 90, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 22px rgba(36, 113, 90, 0.08);
}

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

.payment-method-choice strong {
  font-size: 15px;
  font-weight: 950;
}

.payment-method-choice span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.payment-method-choice em {
  color: var(--green);
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.payment-method-choice:not(.active) em {
  color: var(--muted);
  font-size: 12px;
}

.offline-deposit-choice {
  display: grid;
  gap: 7px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #ecefec;
  background: white;
}

.offline-deposit-choice > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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;
}

.offline-deposit-panel {
  display: none;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid #ecefec;
  background:
    linear-gradient(135deg, rgba(36, 113, 90, 0.08), rgba(255, 255, 255, 0.98));
}

.offline-deposit-panel strong,
.offline-deposit-panel span {
  display: block;
}

.offline-deposit-panel strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.offline-deposit-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-modal-backdrop[data-payment-method="offline"] .payment-card-form,
.payment-modal-backdrop[data-payment-method="offline"] .converge-hpp-panel {
  display: none;
}

.payment-modal-backdrop[data-payment-method="offline"] .offline-deposit-panel {
  display: grid;
}

.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 {
  padding: 12px 16px;
  border-bottom: 1px solid #ecefec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-message:empty {
  display: none;
}

.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-summary {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  row-gap: 5px;
  align-items: baseline;
  justify-items: start;
}

.checkout-total-row {
  display: contents;
  line-height: 1.1;
}

.checkout-total-muted span,
.checkout-total-muted strong {
  color: var(--muted);
}

.checkout-total-row span {
  justify-self: end;
  font-weight: 850;
  white-space: nowrap;
}

.checkout-total-muted {
  font-size: 14px;
}

.checkout-total-muted span {
  font-size: 13px;
}

.checkout-total-muted strong {
  font-size: 15px;
  font-weight: 850;
}

.checkout-total-due {
  font-size: 18px;
}

.checkout-total-due span {
  font-size: 17px;
}

.checkout-total-due span,
.checkout-total-due strong {
  color: var(--ink);
}

.checkout-total-due strong {
  font-size: 17px;
  font-weight: 950;
}

.checkout-total-row strong:last-child {
  justify-self: start;
  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-afterpay-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
}

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: grid;
  flex: 1 1 520px;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 8px;
  align-items: start;
}

.line-toolbar .package-tabs {
  grid-column: 2;
  justify-self: center;
}

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

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

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

.discount-action {
  color: #8b5f1d;
}

.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-material-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 4px;
  width: min(100%, 188px);
  margin-top: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf8;
}

.line-toggle-block {
  display: grid;
  gap: 4px;
  width: min(100%, 360px);
  margin-top: 8px;
}

.line-toggle-block .line-material-toggle {
  margin-top: 0;
}

.line-toggle-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.line-depth-toggle {
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  width: min(100%, 360px);
}

.line-material-toggle button {
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.line-material-toggle button.active {
  background: var(--green);
  color: white;
  box-shadow: 0 6px 14px rgba(36, 113, 90, 0.18);
}

.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,
.line-window-grid textarea {
  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,
.line-window-grid 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;
}

.manual-lead-window {
  width: min(680px, 100%);
}

.manual-contact-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 12px 0 2px;
  padding: 10px;
  border: 1px solid rgba(36, 113, 90, 0.14);
  border-radius: var(--radius);
  background: rgba(238, 248, 243, 0.72);
}

.manual-contact-lookup label {
  display: grid;
  gap: 5px;
}

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

.manual-contact-lookup input {
  width: 100%;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 9px;
}

.manual-contact-message,
.manual-contact-selected {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.manual-contact-selected {
  color: var(--green);
}

.manual-contact-results {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.manual-contact-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(36, 113, 90, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.manual-contact-result.selected {
  border-color: rgba(36, 113, 90, 0.52);
  background: rgba(232, 248, 242, 0.92);
  box-shadow: 0 0 0 3px rgba(143, 212, 192, 0.18);
}

.manual-contact-result strong {
  font-size: 13px;
}

.manual-contact-result span {
  color: var(--muted);
  font-size: 12px;
}

.manual-lead-grid label:nth-child(2) {
  grid-column: auto;
}

.manual-lead-grid .full {
  grid-column: 1 / -1;
}

.manual-lead-error {
  margin: -4px 0 12px;
  color: #a33f3f;
  font-size: 12px;
  font-weight: 850;
}

.discount-window {
  width: min(500px, 100%);
}

.discount-window-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.discount-preset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.discount-preset {
  min-height: 44px;
  border: 1px solid #dce7e1;
  border-radius: var(--radius);
  background: #f7faf8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.discount-preset.active {
  border-color: rgba(36, 113, 90, 0.32);
  background: rgba(36, 113, 90, 0.12);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(36, 113, 90, 0.08);
}

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

.discount-percent-field > span,
.discount-preview-card span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discount-percent-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #dce7e1;
  border-radius: var(--radius);
  background: #f7faf8;
  padding: 0 10px;
}

.discount-percent-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  padding: 11px 0;
}

.discount-percent-input strong {
  color: var(--muted);
  font-size: 14px;
}

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

.discount-preview-card {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(139, 95, 29, 0.16);
  border-radius: var(--radius);
  background: rgba(252, 247, 238, 0.9);
}

.discount-preview-card strong {
  color: #8b5f1d;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.discount-preview-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.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,
.finding-field span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finding-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.finding-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.finding-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dce7e1;
  border-radius: var(--radius);
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
}

.finding-field 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;
}

.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,
.upload-preview-list {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.upload-preview-list {
  gap: 8px;
}

.upload-empty-state {
  color: var(--muted);
}

.upload-empty-state.is-uploading {
  padding: 8px 10px;
  border: 1px solid rgba(36, 113, 90, 0.22);
  border-radius: var(--radius);
  background: rgba(143, 212, 192, 0.16);
  color: var(--green);
  font-weight: 850;
}

.upload-preview-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.upload-preview-thumb {
  display: grid;
  width: 52px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: rgba(23, 33, 28, 0.08);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.upload-preview-thumb img,
.upload-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upload-preview-meta span {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.upload-preview-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-meta small {
  color: var(--muted);
  font-size: 11px;
}

.upload-preview-row em {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(36, 113, 90, 0.12);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.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: 12px;
  align-content: center;
}

.presentation-promise-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(3, 12, 8, 0.1);
}

.presentation-promise-card span {
  display: grid;
  width: 9px;
  height: 9px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(143, 212, 192, 0.14);
}

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

.presentation-review-widget {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.presentation-review-widget-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  max-width: 760px;
}

.presentation-review-widget-head strong {
  color: white;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.presentation-review-carousel {
  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(270px, 0.42fr) minmax(0, 1.58fr);
  gap: 22px;
  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-good-attic-section {
  background:
    linear-gradient(135deg, rgba(143, 212, 192, 0.14), rgba(255, 255, 255, 0.98) 42%),
    white;
}

.presentation-found-hero {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  justify-items: start;
  margin-bottom: 18px;
  text-align: left;
}

.presentation-found-hero .eyebrow {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.presentation-found-hero .eyebrow span {
  color: var(--green);
}

.presentation-found-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.presentation-finding-rail {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.finding-visual-dashboard {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 0;
  width: 100%;
}

.finding-depth-module,
.finding-score-module {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 8px 4px 12px;
}

.finding-module-head {
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
}

.finding-module-head span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.finding-module-head strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.finding-depth-visual {
  --depth-fill: 0%;
  --depth-fill-target: 0%;
  display: grid;
  justify-items: center;
  width: 100%;
}

.depth-ruler {
  position: relative;
  width: 112px;
  min-height: 204px;
  overflow: hidden;
  border: 1px solid rgba(36, 113, 90, 0.22);
  border-left: 7px solid rgba(23, 33, 28, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.08) 0 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(23, 33, 28, 0.16), rgba(23, 33, 28, 0.16) 1px, transparent 1px, transparent 18px),
    #f7faf8;
  background-size: 24px 100%, auto;
  box-shadow:
    0 22px 44px rgba(23, 33, 28, 0.18),
    0 8px 18px rgba(36, 113, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.presentation-good-attic-dashboard .depth-ruler {
  padding-top: 18px;
  overflow: visible;
}

.depth-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: var(--depth-fill);
  background: linear-gradient(180deg, rgba(143, 212, 192, 0.72), rgba(36, 113, 90, 0.9));
  transition: height 1.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.presentation-good-attic-dashboard .depth-fill {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.depth-ruler .depth-tick {
  position: absolute;
  right: 10px;
  z-index: 2;
  bottom: var(--tick);
  color: rgba(23, 33, 28, 0.72);
  font-size: 10px;
  font-weight: 900;
  transform: translateY(50%);
}

.depth-ruler .depth-tick::before {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 36px;
  height: 2px;
  background: rgba(23, 33, 28, 0.4);
  content: "";
  transform: translateY(-50%);
}

.depth-current-marker {
  position: absolute;
  right: 0;
  bottom: var(--depth-fill);
  left: 0;
  z-index: 3;
  height: 2px;
  background: var(--green);
  opacity: 0;
  transition:
    bottom 1.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
  transform: translateY(50%);
}

.finding-depth-visual.is-visible .depth-current-marker {
  opacity: 1;
}

.depth-current-marker span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.finding-score-ring {
  position: relative;
  --score: 0%;
  --ring-color: var(--green);
  --ring-track: rgba(36, 113, 90, 0.22);
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--score), var(--ring-track) 0);
  box-shadow:
    0 24px 48px rgba(23, 33, 28, 0.2),
    0 8px 20px rgba(36, 113, 90, 0.16);
}

.finding-score-ring::before {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(23, 33, 28, 0.92);
  content: "";
}

.finding-score-ring strong,
.finding-score-ring span {
  position: relative;
  z-index: 1;
}

.finding-score-ring strong {
  color: white;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.finding-score-ring span {
  width: 96px;
  color: #cfe4dc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.finding-score-module.is-empty .finding-score-ring {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.presentation-found-media-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 56px;
  align-items: start;
  min-width: 0;
}

.presentation-found-report {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.presentation-tendency-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(143, 212, 192, 0.12), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 42px rgba(23, 33, 28, 0.08);
}

.presentation-tendency-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-tendency-card strong {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.presentation-tendency-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.presentation-inspection-notes {
  display: grid;
  gap: 8px;
  padding: 4px 0 0;
}

.presentation-inspection-notes span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.presentation-inspection-notes p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.5;
}

.presentation-solution-scope {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(42, 124, 99, 0.96), rgba(23, 33, 28, 0.98));
  box-shadow: 0 26px 72px rgba(23, 33, 28, 0.2);
  color: white;
}

.presentation-solution-head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.presentation-solution-head h3 {
  margin: 0;
  color: white;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.presentation-solution-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
}

.presentation-solution-list {
  display: grid;
  gap: 18px;
}

.presentation-solution-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.presentation-solution-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.presentation-solution-item strong {
  color: white;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.presentation-solution-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.presentation-solution-item ul {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding-left: 18px;
  color: white;
  font-size: 15px;
  line-height: 1.35;
}

.presentation-solution-price {
  display: grid;
  min-height: 0;
  align-content: start;
  justify-items: end;
  gap: 4px;
  min-width: 116px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.presentation-solution-price span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-solution-price strong {
  color: white;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.presentation-solution-price small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.quote-optional-choices {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.presentation-optional-choices {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.quote-optional-head span,
.quote-optional-head strong {
  display: block;
}

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

.presentation-optional-choices .quote-optional-head span {
  color: var(--cyan);
}

.quote-optional-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.presentation-optional-choices .quote-optional-head strong {
  color: white;
}

.quote-optional-list {
  display: grid;
  gap: 10px;
}

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

.presentation-optional-choices .quote-optional-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.quote-optional-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quote-optional-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.presentation-optional-choices .quote-optional-copy strong {
  color: white;
}

.quote-optional-copy span,
.quote-optional-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
}

.presentation-optional-choices .quote-optional-copy span,
.presentation-optional-choices .quote-optional-copy small {
  color: rgba(255, 255, 255, 0.72);
}

.quote-optional-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 6px;
}

.quote-optional-choice {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.presentation-optional-choices .quote-optional-choice {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
}

.quote-optional-choice.active[data-optional-included="true"] {
  border-color: rgba(36, 113, 90, 0.35);
  background: rgba(36, 113, 90, 0.12);
  color: var(--green);
}

.presentation-optional-choices .quote-optional-choice.active[data-optional-included="true"] {
  background: var(--cyan);
  color: var(--ink);
}

.quote-optional-choice.active[data-optional-included="false"] {
  background: rgba(102, 115, 109, 0.14);
  color: #4e5c57;
}

.presentation-optional-choices .quote-optional-choice.active[data-optional-included="false"] {
  background: rgba(255, 255, 255, 0.24);
  color: white;
}

.quote-optional-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.quote-optional-status.added {
  border-color: rgba(36, 113, 90, 0.26);
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
}

.quote-optional-status.not-added {
  border-color: rgba(102, 115, 109, 0.18);
  background: #f7faf8;
  color: var(--muted);
}

.presentation-solution-total {
  display: grid;
  justify-items: end;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  text-align: right;
}

.presentation-solution-total span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-solution-total strong {
  color: white;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.presentation-found-carousel {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: stretch;
  min-width: 0;
}

.presentation-found-carousel-head {
  display: grid;
  gap: 7px;
  justify-items: center;
  width: 100%;
  text-align: center;
}

.presentation-found-carousel-head span {
  color: var(--green);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.presentation-found-carousel-head small {
  display: inline-grid;
  min-width: 82px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(36, 113, 90, 0.16);
  border-radius: var(--radius);
  background: rgba(143, 212, 192, 0.18);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-found-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}

.presentation-found-gallery {
  display: flex;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.presentation-found-gallery::-webkit-scrollbar {
  display: none;
}

.presentation-found-stage.is-single-media .presentation-found-gallery {
  justify-content: center;
}

.presentation-found-photo {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  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: 13px;
  font-weight: 850;
  scroll-snap-align: center;
  text-align: center;
}

.presentation-found-stage.has-media-peek .presentation-found-photo {
  flex-basis: calc(100% - 112px);
  scroll-snap-align: center;
}

.presentation-found-stage.is-single-media .presentation-found-photo {
  flex-basis: calc(100% - 112px);
}

.presentation-found-photo img,
.presentation-found-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presentation-found-photo video {
  background: #102019;
}

.presentation-found-photo.video-card small {
  top: 12px;
  bottom: auto;
}

.presentation-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(23, 33, 28, 0.42);
  box-shadow: 0 22px 44px rgba(23, 33, 28, 0.24);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.presentation-video-play span {
  margin-left: 6px;
  font-size: 38px;
  line-height: 1;
}

.video-card.is-playing .presentation-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.presentation-video-scrub {
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.presentation-video-time,
.presentation-video-speeds {
  display: flex;
  align-items: center;
  gap: 8px;
}

.presentation-video-time {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 850;
}

.presentation-video-speeds button {
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  cursor: pointer;
}

.presentation-video-speeds {
  justify-content: flex-end;
}

.presentation-video-speeds button.active {
  background: var(--cyan);
  color: var(--ink);
}

.presentation-video-scrub input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: var(--cyan);
  cursor: ew-resize;
}

.presentation-found-photo small {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(23, 33, 28, 0.72);
  color: white;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-found-controls {
  position: absolute;
  top: 50%;
  right: -21px;
  left: -21px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.presentation-found-controls button {
  display: grid;
  width: 54px;
  height: 78px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.36);
  box-shadow: 0 16px 34px rgba(23, 33, 28, 0.2);
  color: white;
  font: inherit;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  padding: 0 0 7px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.presentation-found-controls button:active {
  transform: translateY(1px);
}

.media-lightbox-open {
  overflow: hidden;
}

.presentation-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 15, 0.86);
  backdrop-filter: blur(18px);
}

.presentation-media-viewer {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  justify-items: center;
}

.presentation-media-full {
  position: relative;
  display: block;
  width: min(100%, 980px);
  max-width: 100%;
  max-height: calc(100vh - 126px);
  overflow: hidden;
}

.presentation-media-track {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.presentation-media-track::-webkit-scrollbar {
  display: none;
}

.presentation-media-slide {
  display: grid;
  flex: 0 0 100%;
  max-height: calc(100vh - 126px);
  place-items: center;
  scroll-snap-align: center;
}

.presentation-media-slide img,
.presentation-media-slide video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 126px);
  border-radius: var(--radius);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.presentation-media-slide video {
  background: #07110d;
}

.presentation-media-controls {
  position: absolute;
  top: 50%;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.presentation-media-controls button {
  display: grid;
  width: 62px;
  height: 92px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
  padding: 0 0 8px;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.presentation-media-exit {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a7c63 0%, #1f5e4b 100%);
  box-shadow: 0 18px 40px rgba(36, 113, 90, 0.32);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  text-transform: uppercase;
}

.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-scope,
.presentation-proof {
  min-width: 0;
}

.presentation-approval {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.presentation-approval h2 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.presentation-close-copy {
  display: grid;
  grid-column: 1 / 3;
  align-content: center;
  gap: 10px;
}

.presentation-close-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.45;
}

.presentation-close-help {
  display: grid;
  grid-column: 1 / 3;
  grid-row: 2;
  gap: 11px;
  min-height: 0;
  align-content: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.presentation-close-help > strong {
  color: white;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.presentation-close-contact-actions .ghost-btn {
  min-height: 46px;
  align-items: center;
  font-size: 15px;
  font-weight: 900;
}

.presentation-close-stack {
  display: grid;
  grid-column: 3 / 5;
  grid-row: 1 / 3;
  gap: 10px;
  align-content: start;
}

.presentation-close-price {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(3, 12, 8, 0.14);
}

.presentation-close-deposit {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.presentation-close-price span,
.presentation-close-price small,
.presentation-close-deposit span,
.presentation-close-deposit small,
.presentation-close-note {
  color: rgba(255, 255, 255, 0.68);
}

.presentation-close-price span,
.presentation-close-deposit span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-close-price small,
.presentation-close-deposit small,
.presentation-close-note {
  font-size: 13px;
  line-height: 1.42;
}

.presentation-close-price .approval-total {
  font-size: clamp(32px, 3.5vw, 48px);
}

.presentation-close-deposit strong {
  color: white;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.presentation-close-accept {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 950;
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 1;
  text-align: center;
}

.presentation-close-accept.accepted {
  background: linear-gradient(135deg, #17382f, #24715a);
  cursor: pointer;
}

.presentation-close-note strong {
  color: white;
}

.presentation-close-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.presentation-close-actions > button {
  min-height: 46px;
  align-items: center;
  font-size: 16px;
  font-weight: 850;
}

.presentation-package-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 42px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.presentation-package-switch-option {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
}

.presentation-package-switch-option.active {
  color: var(--green);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(3, 12, 8, 0.14);
}

.presentation-close-note {
  grid-column: 1 / -1;
  padding-top: 2px;
}

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

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

.approval-breakdown div {
  display: grid;
  gap: 8px;
  justify-content: stretch;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.approval-breakdown strong {
  color: white;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.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;
}

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

.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-top: 100px;
  padding-bottom: 84px;
  scroll-padding-top: 96px;
}

.shell-client-view {
  width: 100%;
  max-width: none;
  padding: 12px 12px 18px;
  overflow: visible;
  background: #fff;
}

.shell-client-view .workspace {
  margin-top: 0;
}

.client-view-header {
  position: fixed;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 60;
  display: grid;
  gap: calc(28px - (22px * var(--client-header-progress)));
  padding: calc(12px - (4px * var(--client-header-progress)));
  border: 1px solid rgba(216, 226, 221, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 880ms ease,
    backdrop-filter 880ms ease,
    -webkit-backdrop-filter 880ms ease;
}

.client-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  min-height: calc(62px - (20px * var(--client-header-progress)));
}

.client-home-link {
  display: inline-grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: calc(70px - (12px * var(--client-header-progress))) auto;
  width: auto;
  min-width: 0;
  min-height: calc(42px - (10px * var(--client-header-progress)));
  gap: calc(6px - (1px * var(--client-header-progress)));
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: calc(23px - (4px * var(--client-header-progress)));
  font-weight: 950;
  letter-spacing: 0;
}

.client-view-logo {
  display: block;
  width: calc(70px - (12px * var(--client-header-progress)));
  height: calc(42px - (10px * var(--client-header-progress)));
  object-fit: contain;
}

.client-home-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-header-details {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-width: 0;
  gap: 10px;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 620ms ease 110ms,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1) 110ms;
}

.client-header-accepted-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-view-header .client-header-info-item {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.client-view-header .client-header-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.client-view-header .client-header-icon svg {
  width: 14px;
  height: 14px;
}

.client-view-header .client-header-info-item strong {
  font-size: 15px;
  line-height: 1.08;
  white-space: nowrap;
}

.client-view-header .client-header-info-item small {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.client-proposal-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(10px - (4px * var(--client-header-progress)));
  padding-top: calc(8px - (8px * var(--client-header-progress)));
  transition: grid-template-columns 260ms ease;
}

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

.client-proposal-page-intro {
  display: grid;
  gap: 30px;
  min-height: 0;
  align-content: start;
  padding: 12px 16px 28px;
  border: 1px solid rgba(216, 226, 221, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.08);
}

.client-proposal-page-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.client-proposal-page-top .client-home-link {
  justify-self: start;
}

.client-proposal-intro h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(44px, 8vw, 86px);
  font-weight: 950;
  line-height: 0.92;
  opacity: 1;
  margin-bottom: calc(4px - (4px * var(--client-header-progress)));
  transform: none;
}

@keyframes clientHeaderFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-proposal-loading {
  display: grid;
  gap: 22px;
  padding: 12px 16px 28px;
  border: 1px solid rgba(216, 226, 221, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.08);
}

.client-proposal-loading strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.client-header-info-item {
  display: grid;
  grid-template-columns: calc(42px - (22px * var(--client-header-progress))) minmax(0, 1fr);
  gap: calc(12px - (6px * var(--client-header-progress)));
  align-items: start;
  min-width: 0;
  padding: calc(14px - (7px * var(--client-header-progress)));
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  opacity: 0;
  transform: translateY(6px);
  animation: clientHeaderFadeIn 1800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 260ms ease;
}

.client-proposal-intro .client-header-info-item:nth-of-type(1) {
  animation-delay: 760ms;
}

.client-proposal-intro .client-header-info-item:nth-of-type(2) {
  animation-delay: 1120ms;
}

.client-proposal-intro .client-header-info-item:nth-of-type(3) {
  animation-delay: 1480ms;
}

.client-header-icon {
  display: grid;
  width: calc(42px - (22px * var(--client-header-progress)));
  height: calc(42px - (22px * var(--client-header-progress)));
  place-items: center;
  border: 1px solid rgba(36, 113, 90, 0.14);
  border-radius: var(--radius);
  background: #eef8f3;
  color: var(--green);
}

.client-header-icon svg {
  width: calc(22px - (9px * var(--client-header-progress)));
  height: calc(22px - (9px * var(--client-header-progress)));
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.client-header-info-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.client-header-info-item span:not(.client-header-icon) {
  color: var(--green);
  font-size: calc(11px - (2px * var(--client-header-progress)));
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-header-info-item strong,
.client-header-info-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-header-info-item strong {
  color: var(--ink);
  font-size: calc(17px - (6px * var(--client-header-progress)));
  font-weight: 900;
  line-height: 1.18;
}

.client-header-info-item small {
  color: var(--muted);
  font-size: calc(12px - (3px * var(--client-header-progress)));
  font-weight: 760;
  line-height: 1.3;
}

body.client-header-compact .client-view-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(23, 33, 28, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.client-header-compact .client-view-header .client-header-details {
  opacity: 1;
  transform: translateY(0);
}

body.client-header-compact .client-view-header .client-header-icon {
  border-radius: 6px;
}

.client-question-menu {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
}

.client-question-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(36, 113, 90, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #17211c, #24715a);
  color: white;
  box-shadow: 0 10px 22px rgba(36, 113, 90, 0.22);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}

.client-question-menu summary::-webkit-details-marker {
  display: none;
}

.client-question-menu summary::after {
  display: none;
  content: "";
}

.client-question-menu[open] summary::after {
  transform: rotate(180deg);
}

.client-question-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 6px;
  min-width: 168px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 33, 28, 0.16);
}

.client-question-dropdown a {
  display: grid;
  min-height: 38px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.client-question-dropdown a:hover,
.client-question-dropdown a:focus-visible {
  background: #eef6f2;
}

.shell-client-view .presentation-shell {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.shell-client-view .panel-card:not(.presentation-value-hero) {
  background: #fff;
  color: var(--ink);
}

.shell-client-view .presentation-value-hero {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.shell-client-view .presentation-value-copy h1 {
  color: var(--ink);
}

.shell-client-view .presentation-value-copy .eyebrow {
  color: var(--green-deep);
}

.shell-client-view .presentation-promise-card {
  border-color: rgba(36, 113, 90, 0.28);
  background:
    linear-gradient(135deg, rgba(42, 124, 99, 0.96), rgba(29, 91, 73, 0.94));
}

.shell-client-view .presentation-promise-card strong {
  color: white;
}

.shell-client-view .presentation-review-widget {
  background: #fff;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 0;
}

.shell-client-view .presentation-review-widget-head strong,
.shell-client-view .presentation-review-card p {
  color: var(--ink);
}

.shell-client-view .presentation-review-widget-head strong {
  font-size: clamp(26px, 3vw, 38px);
}

.shell-client-view .presentation-review-card {
  border-color: var(--line);
  background: #fff;
}

.shell-client-view .presentation-review-foot span {
  color: var(--muted);
}

.shell-client-view .presentation-found-section,
.shell-client-view .presentation-good-attic-section {
  box-shadow: none;
}

.shell-client-view .presentation-finding-rail,
.shell-client-view .presentation-good-attic-section .presentation-finding-rail {
  position: sticky;
  top: 116px;
  align-self: start;
  z-index: 2;
}

.shell-client-view .presentation-found-report,
.shell-client-view .presentation-solution-scope {
  min-width: 0;
}

.shell-client-view .presentation-found-hero h2 {
  white-space: normal;
}

.shell-client-view .presentation-solution-scope,
.shell-client-view .presentation-found-media-stack {
  min-width: 0;
}

.shell-client-view .presentation-close-widget {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.shell-client-view .presentation-good-attic-section {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  padding-bottom: 0;
}

.shell-client-view .presentation-good-attic-section + .presentation-approval {
  margin-top: -14px;
  padding-top: 12px;
  border-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

.shell-client-view .presentation-approval h2,
.shell-client-view .presentation-close-help > strong,
.shell-client-view .presentation-close-deposit strong,
.shell-client-view .presentation-close-note strong {
  color: var(--ink);
}

.shell-client-view .presentation-close-copy p,
.shell-client-view .presentation-close-price span,
.shell-client-view .presentation-close-price small,
.shell-client-view .presentation-close-deposit span,
.shell-client-view .presentation-close-deposit small,
.shell-client-view .presentation-close-note {
  color: var(--muted);
}

.shell-client-view .presentation-close-price,
.shell-client-view .presentation-close-deposit,
.shell-client-view .presentation-package-switch {
  border-color: var(--line);
  background: #f8faf8;
  box-shadow: none;
}

.shell-client-view .proposal-accepted-proof {
  border-color: rgba(36, 113, 90, 0.2);
  background: #f8faf8;
}

.shell-client-view .proposal-accepted-proof strong {
  color: var(--ink);
}

.shell-client-view .proposal-accepted-proof small {
  color: var(--muted);
}

.shell-client-view .proposal-accepted-pill {
  background: rgba(36, 113, 90, 0.1);
  color: var(--green);
}

.shell-client-view .presentation-package-switch-option {
  color: var(--muted);
}

.shell-client-view .presentation-package-switch-option.active {
  color: white;
  background: var(--green);
}

.shell-client-view .presentation-solution-price span,
.shell-client-view .presentation-solution-price small {
  display: none;
}

.shell-client-view .presentation-solution-price {
  min-height: 0;
  justify-items: end;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
}

.shell-client-view .presentation-solution-scope {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.shell-client-view .presentation-solution-head h3 {
  color: var(--ink);
  font-size: clamp(32px, 8vw, 48px);
}

.shell-client-view .presentation-solution-head p {
  color: var(--muted);
}

.shell-client-view .presentation-solution-item {
  border-color: transparent;
  background: #fff;
  box-shadow: none;
}

.shell-client-view .presentation-solution-item strong,
.shell-client-view .presentation-solution-price strong {
  color: var(--ink);
}

.shell-client-view .presentation-solution-item span,
.shell-client-view .presentation-solution-item ul {
  color: var(--muted);
}

.shell-client-view .presentation-solution-total {
  border-top-color: var(--line);
}

.shell-client-view .presentation-solution-total span {
  color: var(--muted);
}

.shell-client-view .presentation-solution-total strong {
  color: var(--ink);
}

.shell-client-view .presentation-solution-deposit {
  margin-top: -4px;
  padding-top: 0;
  border-top: 0;
}

.shell-client-view .presentation-solution-deposit span,
.shell-client-view .presentation-solution-deposit strong {
  color: var(--green);
}

.shell-client-view .presentation-close-deposit {
  display: none;
}

.shell-client-view .client-presentation-optional-choices {
  padding: 14px;
  border: 1px solid rgba(34, 238, 216, 0.7);
  background: rgba(226, 255, 250, 0.5);
  box-shadow:
    0 0 0 1px rgba(34, 238, 216, 0.18),
    0 0 28px rgba(34, 238, 216, 0.16);
}

.shell-client-view .client-presentation-optional-choices .quote-optional-head span {
  color: #0d8f82;
}

.shell-client-view .client-presentation-optional-choices .quote-optional-head strong,
.shell-client-view .client-presentation-optional-choices .quote-optional-copy strong {
  color: var(--ink);
}

.shell-client-view .client-presentation-optional-choices .quote-optional-copy span,
.shell-client-view .client-presentation-optional-choices .quote-optional-copy small {
  color: var(--muted);
}

.shell-client-view .client-presentation-optional-choices .quote-optional-item {
  border-color: rgba(34, 238, 216, 0.86);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 18px rgba(34, 238, 216, 0.12);
}

.shell-client-view .client-presentation-optional-choices .quote-optional-item.accepted {
  border-color: rgba(34, 238, 216, 0.86);
  background: #fff;
  box-shadow: 0 0 18px rgba(34, 238, 216, 0.1);
}

.shell-client-view .client-presentation-optional-choices .quote-optional-actions {
  grid-template-columns: minmax(86px, 1fr);
}

.shell-client-view .client-presentation-optional-choices.locked .quote-optional-item.declined {
  border-color: rgba(102, 115, 109, 0.22);
  background: #fff;
  box-shadow: none;
}

.shell-client-view .client-presentation-optional-choices .quote-optional-choice {
  border-color: #17cfc0;
  background: #ecfffb;
  color: #086d66;
}

.shell-client-view .client-presentation-optional-choices .quote-optional-choice.active[data-optional-included="false"] {
  border-color: rgba(23, 33, 28, 0.16);
  background: #f7faf8;
  color: var(--muted);
}

.shell-client-view .presentation-close-help {
  grid-column: 1 / -1;
}

.shell-client-view .presentation-close-contact-actions .ghost-btn {
  border-color: rgba(36, 113, 90, 0.22);
  background: var(--green);
  color: white;
}

.client-site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 225, 232, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 14px 50px rgba(23, 33, 28, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.client-header-quote {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-header-quote span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-header-quote strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-header-quote small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.client-header-actions .ghost-btn,
.client-header-actions .primary-btn {
  min-height: 42px;
  min-width: 82px;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
}

.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: 980px) {
  .client-site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .client-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .client-header-actions .ghost-btn,
  .client-header-actions .primary-btn {
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .client-site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .client-share-shell {
    padding-top: 84px;
  }
}

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

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

  .presentation-close-copy,
  .presentation-close-help,
  .presentation-close-stack,
  .presentation-close-price,
  .presentation-close-deposit,
  .presentation-close-accept,
  .presentation-close-actions {
    grid-column: 1;
  }

  .presentation-close-stack {
    grid-row: auto;
  }

  .presentation-close-help {
    grid-row: auto;
    min-height: 0;
  }

  .presentation-finding-rail {
    position: static;
  }

  .presentation-found-section {
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: 16px;
  }

  .presentation-good-attic-section .presentation-finding-rail {
    position: sticky;
    top: 14px;
  }

  .presentation-good-attic-section .presentation-solution-scope {
    max-height: min(760px, calc(100dvh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .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,
  .lead-performance-grid,
  .calendar-tabs,
  .mini-metrics,
  .bullets-compact,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .header:not(.lead-system-header) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
  }

  .header:not(.lead-system-header) .brand-row {
    min-width: 0;
    gap: 7px;
  }

  .header:not(.lead-system-header) .logo {
    flex-basis: 38px;
    width: 38px;
    height: 22px;
  }

  .header:not(.lead-system-header) .brand-row > div:last-child {
    min-width: 0;
  }

  .header:not(.lead-system-header) .eyebrow,
  .header:not(.lead-system-header) .storage-status {
    display: none;
  }

  .header:not(.lead-system-header) .brand-title {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header:not(.lead-system-header) .brand-copy {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header:not(.lead-system-header) .workspace-header-actions {
    gap: 4px;
  }

  .header:not(.lead-system-header) .quote-send-button {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .header:not(.lead-system-header) .prequote-status-toggle {
    min-height: 30px;
    gap: 5px;
    padding: 4px 6px;
    font-size: 0;
  }

  .header:not(.lead-system-header) .prequote-toggle-track {
    width: 30px;
    height: 18px;
  }

  .header:not(.lead-system-header) .prequote-toggle-track span {
    width: 12px;
    height: 12px;
  }

  .header:not(.lead-system-header) .prequote-status-toggle.complete .prequote-toggle-track span {
    transform: translateX(12px);
  }

  .header:not(.lead-system-header) .mode-switch {
    width: auto;
    gap: 2px;
    padding: 2px;
  }

  .header:not(.lead-system-header) .mode-button {
    flex: 0 0 auto;
    padding: 6px 5px;
    font-size: 9px;
    line-height: 1;
  }

  .header:not(.lead-system-header) .mode-label-full {
    display: none;
  }

  .header:not(.lead-system-header) .mode-label-short {
    display: inline;
  }

  .map-toolbar,
  .map-link-row.map-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .qty-source-toolbar {
    justify-content: space-between;
    padding: 2px 0 0;
  }

  .map-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .map-toggle {
    min-width: 0;
    padding: 7px 6px;
    font-size: 11px;
  }

  .lead-system-header {
    top: 8px;
    gap: 10px;
    padding: 10px;
  }

  .lead-header-top {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr);
    gap: 8px;
  }

  .lead-system-brand {
    gap: 8px;
  }

  .lead-system-brand .logo {
    flex-basis: 46px;
    width: 46px;
    height: 28px;
  }

  .lead-system-brand strong {
    font-size: 14px;
  }

  .lead-header-select .market-calendar-select,
  .lead-header-select {
    min-width: 0;
  }

  .lead-header-select select {
    min-width: 0;
    padding-right: 24px;
    font-size: 12px;
  }

  .lead-compact-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .lead-report-tile {
    min-width: 0;
    min-height: 70px;
    padding: 7px 5px;
  }

  .lead-report-tile span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .lead-report-metric {
    gap: 3px;
    min-width: 0;
  }

  .lead-report-metric strong {
    font-size: 13px;
  }

  .lead-report-metric small {
    font-size: 10px;
  }

  .trend-badge {
    font-size: 7px;
  }

  .today-quote-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .on-the-way-menu {
    justify-self: stretch;
  }

  .on-the-way-menu summary {
    width: 100%;
  }

  .on-the-way-options {
    left: 0;
    right: auto;
  }

  .market-calendar .market-section-head {
    display: grid;
    gap: 10px;
  }

  .market-kanban-panel .market-section-head {
    display: grid;
  }

  .market-section-actions {
    justify-content: space-between;
  }

  .market-calendar .calendar-week-controls {
    justify-content: flex-start;
  }

  .market-calendar .desktop-week-grid {
    display: none;
  }

  .market-calendar .mobile-month-shell,
  .market-calendar .calendar-grid.mobile-month-grid {
    display: grid;
  }

  .market-calendar .mobile-month-shell {
    display: block;
  }

  .market-calendar .calendar-day {
    min-height: 206px;
  }

  .calendar-grid.mobile-month-grid .calendar-day.today {
    min-width: 158px;
  }

  .payment-modal-backdrop {
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .payment-modal {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    min-height: 0;
    border-radius: var(--radius);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .payment-modal-header {
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .payment-modal-header .eyebrow,
  .payment-modal-header p,
  .payment-secure-note,
  .checkout-schedule-note {
    display: none;
  }

  .payment-modal-header .section-title {
    font-size: 22px;
    line-height: 1;
  }

  .payment-modal-close {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

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

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

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

  .payment-method-toggle {
    gap: 6px;
    padding: 8px 10px;
  }

  .card-payment-primary {
    padding: 8px 10px;
  }

  .card-payment-primary-copy {
    gap: 8px;
    padding: 9px 10px;
  }

  .card-payment-primary-copy strong {
    font-size: 13px;
  }

  .card-payment-primary-copy span {
    font-size: 10.5px;
  }

  .card-payment-primary-copy em {
    font-size: 13px;
  }

  .payment-method-choice {
    gap: 8px;
    padding: 9px 10px;
  }

  .payment-method-choice strong {
    font-size: 13px;
  }

  .payment-method-choice span {
    font-size: 10.5px;
  }

  .payment-method-choice em {
    font-size: 13px;
  }

  .payment-method-choice:not(.active) em {
    font-size: 10.5px;
  }

  .offline-deposit-choice {
    gap: 5px;
    padding: 0 10px 8px;
  }

  .offline-deposit-choice > span {
    font-size: 9px;
  }

  .checkout-cart-shell {
    gap: 8px;
    padding: 10px;
  }

  .checkout-page-title {
    font-size: 30px;
    line-height: 0.95;
  }

  .checkout-card {
    box-shadow: 0 8px 20px rgba(23, 33, 28, 0.08);
  }

  .checkout-card-head {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
    font-size: 18px;
  }

  .checkout-card-icon {
    width: 26px;
    height: 26px;
  }

  .checkout-card-icon::before {
    width: 22px;
    height: 15px;
  }

  .converge-hpp-panel {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
  }

  .converge-hpp-lock {
    width: 28px;
    height: 28px;
  }

  .converge-hpp-lock::before {
    width: 13px;
    height: 10px;
    margin-top: 6px;
  }

  .converge-hpp-lock::after {
    top: 6px;
    width: 11px;
    height: 10px;
  }

  .converge-hpp-panel strong {
    font-size: 13px;
  }

  .converge-hpp-panel span {
    font-size: 11px;
    line-height: 1.2;
  }

  .payment-card-form {
    gap: 7px;
    padding: 9px 10px;
  }

  .payment-card-form label {
    gap: 4px;
  }

  .payment-card-form span {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .payment-card-form input {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 16px;
  }

  .payment-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .checkout-message {
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.2;
  }

  .checkout-bottom-bar {
    gap: 7px;
    padding: 9px 12px max(10px, env(safe-area-inset-bottom));
  }

  .checkout-total-summary {
    justify-content: start;
  }

  .checkout-total-due span,
  .checkout-total-due strong {
    font-size: 16px;
  }

  .checkout-main-button {
    min-height: 48px;
    font-size: 17px;
  }

  .checkout-afterpay-note {
    font-size: 10px;
    line-height: 1.2;
  }

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

  .workspace-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .property-bar-grid,
  .property-est-row,
  .lead-hero,
  .lead-performance-grid,
  .home-view-switch,
  .calendar-tabs,
  .lead-property-lockup,
  .mini-metrics,
  .bullets-compact,
  .proof-strip,
  .client-home-grid {
    grid-template-columns: 1fr;
  }

  .home-view-switch.home-view-switch-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .presentation-hero h1,
  .presentation-value-copy h1,
  .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-tendency-grid {
    grid-template-columns: 1fr;
  }

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

  .presentation-close-contact-actions {
    grid-template-columns: 1fr;
  }

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

  .quote-optional-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-close-copy p {
    font-size: 15px;
  }

  .presentation-found-section {
    grid-template-columns: minmax(152px, 0.38fr) minmax(240px, 1fr);
    gap: 12px;
    overflow-x: auto;
  }

  .presentation-finding-rail {
    min-width: 0;
  }

  .presentation-found-hero h2 {
    font-size: clamp(30px, 5.4vw, 44px);
  }

  .presentation-found-hero .eyebrow {
    font-size: 12px;
  }

  .finding-visual-dashboard {
    gap: 10px;
  }

  .finding-depth-module,
  .finding-score-module {
    padding-right: 0;
    padding-left: 0;
  }

  .finding-module-head span {
    font-size: 12px;
  }

  .finding-module-head strong {
    font-size: 19px;
  }

  .depth-ruler {
    width: 88px;
    min-height: 170px;
  }

  .depth-ruler .depth-tick::before {
    width: 24px;
  }

  .finding-score-ring {
    width: 122px;
    height: 122px;
  }

  .finding-score-ring::before {
    inset: 9px;
  }

  .finding-score-ring strong {
    font-size: 44px;
  }

  .finding-score-ring span {
    width: 78px;
    font-size: 10px;
  }

  .presentation-found-media-stack {
    min-width: 240px;
  }

  .presentation-found-stage,
  .presentation-found-carousel-head {
    width: min(100%, 280px);
  }

  .presentation-found-stage.has-media-peek .presentation-found-photo {
    flex-basis: calc(100% - 76px);
  }

  .presentation-found-stage.is-single-media .presentation-found-photo {
    flex-basis: calc(100% - 76px);
  }

  .presentation-found-controls {
    right: -14px;
    left: -14px;
  }

  .presentation-found-controls button {
    width: 42px;
    height: 64px;
    font-size: 40px;
  }

  .presentation-video-play {
    width: 68px;
    height: 68px;
  }

  .presentation-video-play span {
    font-size: 30px;
  }

  .presentation-solution-scope {
    min-width: 360px;
    padding: 16px;
  }

  .presentation-good-attic-section .presentation-finding-rail {
    left: 14px;
    z-index: 2;
  }

  .presentation-solution-head {
    display: grid;
  }

  .presentation-solution-head h3 {
    font-size: 26px;
  }

  .presentation-solution-list {
    gap: 12px;
  }

  .presentation-solution-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .presentation-solution-title-row {
    gap: 10px;
  }

  .presentation-solution-item strong {
    font-size: 20px;
  }

  .presentation-solution-item span {
    font-size: 12px;
  }

  .presentation-solution-item ul {
    font-size: 14px;
  }

  .presentation-solution-price {
    min-width: 84px;
  }

  .shell-client-view .presentation-solution-price {
    min-height: 0;
    justify-items: end;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: right;
  }

  .presentation-media-lightbox {
    padding: 14px;
  }

  .presentation-media-exit {
    font-size: 15px;
    padding: 11px 19px;
  }

  .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;
  }

  .line-toolbar {
    grid-template-columns: 1fr;
  }

  .line-toolbar .package-tabs,
  .line-add-actions {
    grid-column: 1;
    justify-self: stretch;
  }

  .line-toolbar .package-tabs {
    justify-content: center;
  }

  article[data-builder-panel="line-items"] .section-title-row {
    display: grid;
    gap: 14px;
  }

  article[data-builder-panel="line-items"] table,
  article[data-builder-panel="line-items"] thead,
  article[data-builder-panel="line-items"] tbody,
  article[data-builder-panel="line-items"] tr,
  article[data-builder-panel="line-items"] td {
    display: block;
  }

  article[data-builder-panel="line-items"] thead {
    display: none;
  }

  article[data-builder-panel="line-items"] tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 10px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2ee;
  }

  article[data-builder-panel="line-items"] tr:last-child {
    border-bottom: 0;
  }

  article[data-builder-panel="line-items"] td {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  article[data-builder-panel="line-items"] td:first-child {
    grid-column: 1 / -1;
  }

  article[data-builder-panel="line-items"] td:not(:first-child)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  article[data-builder-panel="line-items"] td:nth-child(2)::before {
    content: "Qty";
  }

  article[data-builder-panel="line-items"] td:nth-child(3)::before {
    content: "Rate";
  }

  article[data-builder-panel="line-items"] td:nth-child(4)::before {
    content: "Total";
  }

  article[data-builder-panel="line-items"] td:nth-child(5)::before {
    content: "Actions";
  }

  article[data-builder-panel="line-items"] .line-name-input {
    font-size: 17px;
  }

  article[data-builder-panel="line-items"] .line-meta-input {
    margin-top: 4px;
    font-size: 14px;
  }

  article[data-builder-panel="line-items"] .line-source {
    margin-top: 8px;
    font-size: 12px;
  }

  article[data-builder-panel="line-items"] .line-qty-stack,
  article[data-builder-panel="line-items"] .line-actions {
    justify-items: stretch;
  }

  article[data-builder-panel="line-items"] .line-edit-wrap,
  article[data-builder-panel="line-items"] .line-source-select {
    width: min(100%, 148px);
    max-width: 148px;
    min-height: 38px;
  }

  article[data-builder-panel="line-items"] .line-edit-wrap.rate {
    width: min(100%, 132px);
    max-width: 132px;
  }

  article[data-builder-panel="line-items"] .line-source-select {
    width: min(100%, 132px);
  }

  article[data-builder-panel="line-items"] .line-edit-input,
  article[data-builder-panel="line-items"] .line-qty-stack strong,
  article[data-builder-panel="line-items"] td[data-line-total] {
    font-size: 16px;
    line-height: 1.15;
  }

  article[data-builder-panel="line-items"] .line-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .manual-lead-grid {
    grid-template-columns: 1fr;
  }

  .manual-contact-lookup {
    grid-template-columns: 1fr;
  }

  .manual-lead-grid .full {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  body.client-view-active {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
  }

  .shell-client-view {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 14px;
    overflow: visible;
  }

  .shell-client-view .workspace,
  .shell-client-view .presentation-shell {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .shell-client-view .panel-card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .client-view-header {
    top: 8px;
    right: 8px;
    left: 8px;
    gap: calc(8px - (2px * var(--client-header-progress)));
    padding: calc(9px - (1px * var(--client-header-progress)));
  }

  .client-header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
    min-height: calc(58px - (16px * var(--client-header-progress)));
  }

  .client-home-link {
    grid-template-columns: calc(64px - (6px * var(--client-header-progress))) minmax(0, auto);
    gap: calc(6px - (1px * var(--client-header-progress)));
    min-height: calc(38px - (6px * var(--client-header-progress)));
    font-size: calc(21px - (2px * var(--client-header-progress)));
  }

  .client-view-logo {
    width: calc(64px - (6px * var(--client-header-progress)));
    height: calc(38px - (6px * var(--client-header-progress)));
  }

  .client-header-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .client-header-accepted-badge {
    grid-column: 2;
    font-size: 8px;
    max-width: 120px;
  }

  .client-view-header .client-header-info-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
  }

  .client-view-header .client-header-icon {
    width: 20px;
    height: 20px;
  }

  .client-view-header .client-header-icon svg {
    width: 12px;
    height: 12px;
  }

  .client-view-header .client-header-info-item strong {
    font-size: 12px;
  }

  .client-view-header .client-header-info-item small {
    font-size: 9px;
  }

  .client-proposal-intro {
    grid-template-columns: 1fr;
    gap: calc(8px - (2px * var(--client-header-progress)));
  }

  .client-proposal-page-intro {
    min-height: 0;
    gap: 24px;
    padding: 9px 14px 20px;
  }

  .client-proposal-page-top {
    gap: 8px;
  }

  .client-proposal-intro h1 {
    font-size: 54px;
  }

  .client-header-info-item {
    grid-template-columns: calc(34px - (14px * var(--client-header-progress))) minmax(0, 1fr);
    gap: calc(9px - (3px * var(--client-header-progress)));
    padding: calc(10px - (3px * var(--client-header-progress)));
  }

  .client-header-icon {
    width: calc(34px - (14px * var(--client-header-progress)));
    height: calc(34px - (14px * var(--client-header-progress)));
  }

  .client-header-icon svg {
    width: calc(19px - (6px * var(--client-header-progress)));
    height: calc(19px - (6px * var(--client-header-progress)));
  }

  .client-header-info-item strong {
    font-size: calc(14px - (3px * var(--client-header-progress)));
  }

  .client-header-info-item small {
    font-size: calc(11px - (2px * var(--client-header-progress)));
  }

  .client-question-menu {
    grid-column: auto;
  }

  .client-question-menu summary {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .client-question-dropdown {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .shell-client-view .client-presentation-optional-choices {
    padding: 10px;
  }

  .shell-client-view .client-presentation-optional-choices .quote-optional-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .shell-client-view .presentation-found-section,
  .shell-client-view .presentation-good-attic-section,
  .shell-client-view .presentation-approval {
    grid-template-columns: minmax(88px, 0.3fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    overflow: visible;
  }

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

  .shell-client-view .presentation-tendency-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shell-client-view .presentation-finding-rail,
  .shell-client-view .presentation-good-attic-section .presentation-finding-rail {
    position: sticky;
    top: max(168px, calc(50dvh - 156px));
    left: auto;
    z-index: auto;
    width: 100%;
  }

  .shell-client-view .presentation-found-report,
  .shell-client-view .presentation-solution-scope {
    grid-column: 2;
  }

  .shell-client-view .presentation-good-attic-section {
    grid-template-columns: 1fr;
  }

  .shell-client-view .presentation-good-attic-section .presentation-finding-rail {
    position: static;
    grid-column: 1;
    width: 100%;
  }

  .shell-client-view .presentation-good-attic-section .finding-visual-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .shell-client-view .presentation-good-attic-section .finding-depth-module {
    grid-column: 2;
    grid-row: 1;
  }

  .shell-client-view .presentation-good-attic-section .finding-score-module:first-of-type {
    grid-column: 1;
    grid-row: 1;
  }

  .shell-client-view .presentation-good-attic-section .finding-score-module:last-of-type {
    grid-column: 3;
    grid-row: 1;
  }

  .shell-client-view .presentation-good-attic-section .finding-depth-module,
  .shell-client-view .presentation-good-attic-section .finding-score-module {
    justify-content: center;
    min-width: 0;
    padding: 7px 2px 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .shell-client-view .presentation-good-attic-section .presentation-solution-scope {
    grid-column: 1;
  }

  .shell-client-view .finding-visual-dashboard {
    gap: 4px;
  }

  .shell-client-view .finding-depth-module,
  .shell-client-view .finding-score-module {
    gap: 5px;
    padding: 4px 0 7px;
  }

  .shell-client-view .finding-module-head span {
    font-size: 9px;
  }

  .shell-client-view .finding-module-head strong {
    font-size: 14px;
  }

  .shell-client-view .depth-ruler {
    width: 56px;
    min-height: 104px;
    border-left-width: 5px;
  }

  .shell-client-view .depth-ruler .depth-tick::before {
    width: 12px;
  }

  .shell-client-view .depth-current-marker span {
    padding: 3px 5px;
    font-size: 9px;
  }

  .shell-client-view .finding-score-ring {
    width: 70px;
    height: 70px;
  }

  .shell-client-view .finding-score-ring::before {
    inset: 6px;
  }

  .shell-client-view .finding-score-ring strong {
    font-size: 25px;
  }

  .shell-client-view .finding-score-ring span {
    width: 46px;
    font-size: 7px;
  }

  .shell-client-view .presentation-found-hero h2 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
  }

  .shell-client-view .finding-visual-dashboard,
  .shell-client-view .presentation-found-media-stack,
  .shell-client-view .presentation-solution-scope {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
  }

  .shell-client-view .presentation-found-media-stack {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shell-client-view .presentation-found-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .shell-client-view .presentation-found-stage,
  .shell-client-view .presentation-found-carousel-head {
    width: 100%;
    max-width: 100%;
  }

  .shell-client-view .presentation-found-stage {
    overflow: hidden;
  }

  .shell-client-view .presentation-found-gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shell-client-view .presentation-found-photo,
  .shell-client-view .presentation-found-stage.has-media-peek .presentation-found-photo,
  .shell-client-view .presentation-found-stage.is-single-media .presentation-found-photo {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    max-height: min(58vh, 420px);
  }

  .shell-client-view .presentation-found-photo.is-carousel-clone {
    display: grid;
  }

  .shell-client-view .presentation-found-controls {
    display: flex;
    right: 8px;
    left: 8px;
  }

  .shell-client-view .presentation-found-controls button {
    width: 36px;
    height: 52px;
    font-size: 34px;
  }

  .shell-client-view .presentation-solution-item,
  .shell-client-view .presentation-scope-row {
    grid-template-columns: 1fr;
  }

  .shell-client-view .presentation-approval {
    gap: 12px;
  }

  .shell-client-view .presentation-close-stack {
    grid-row: 1;
  }

  .shell-client-view .presentation-close-copy,
  .shell-client-view .presentation-close-help,
  .shell-client-view .presentation-close-stack,
  .shell-client-view .presentation-close-price,
  .shell-client-view .presentation-close-deposit,
  .shell-client-view .presentation-close-accept,
  .shell-client-view .presentation-close-actions {
    grid-column: 1;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .shell-client-view .presentation-found-section,
  .shell-client-view .presentation-good-attic-section {
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
    overflow: visible;
  }

  .shell-client-view .presentation-finding-rail,
  .shell-client-view .presentation-good-attic-section .presentation-finding-rail {
    position: sticky;
    top: 116px;
    left: auto;
    z-index: 2;
    width: 100%;
  }

  .shell-client-view .presentation-found-report,
  .shell-client-view .presentation-solution-scope {
    grid-column: 2;
  }
}

@media print {
  @page {
    margin: 0.45in;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body,
  body.client-view-active {
    width: auto;
    overflow: visible;
    background: #fff;
  }

  .workspace-header,
  .client-view-header,
  .client-question-menu,
  [data-client-temp-home],
  [data-print-client-pdf],
  [data-request-changes],
  [data-mark-approved],
  [data-view-payment-proof],
  .presentation-package-switch,
  .presentation-close-help,
  .presentation-found-controls,
  .presentation-video-play,
  .presentation-video-scrub,
  .presentation-media-lightbox {
    display: none !important;
  }

  .shell,
  .shell-client-view,
  .workspace,
  .shell-client-view .workspace,
  .client-presentation-page,
  .presentation-shell {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .client-proposal-page-intro,
  .panel-card,
  .presentation-found-section,
  .presentation-good-attic-section,
  .presentation-approval {
    break-inside: avoid;
    box-shadow: none;
  }

  .presentation-found-section,
  .presentation-good-attic-section {
    grid-template-columns: 1fr;
  }

  .presentation-finding-rail,
  .shell-client-view .presentation-finding-rail,
  .shell-client-view .presentation-good-attic-section .presentation-finding-rail {
    position: static;
    width: 100%;
  }

  .presentation-found-gallery {
    overflow: visible;
  }

  .presentation-found-photo,
  .shell-client-view .presentation-found-photo {
    max-height: 420px;
  }
}
