:root {
  --ink: #10201a;
  --muted: #5a6860;
  --line: #d6ded9;
  --surface: #f5f7f4;
  --panel: #ffffff;
  --green: #157254;
  --green-dark: #0d4e3a;
  --gold: #c98728;
  --blue: #386b85;
  --shadow: 0 14px 36px rgba(16, 32, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(245, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand small,
.eyebrow,
.metrics span,
.lead-board p {
  color: var(--muted);
}

.brand small {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  border-radius: 6px;
  color: var(--muted);
  padding: 8px 10px;
}

nav a:hover {
  background: #e7ede9;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  min-height: min(780px, calc(100vh - 70px));
}

.hero-copy {
  align-content: center;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 64px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 5.8vw, 78px);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h2 {
  font-size: 25px;
  letter-spacing: 0;
  margin-bottom: 0;
}

.hero-copy > p:not(.eyebrow) {
  color: #2e3b34;
  font-size: 19px;
  line-height: 1.55;
  max-width: 640px;
}

.hero-image {
  min-height: 420px;
}

.hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-search,
.intake-card,
.assistant-panel,
.listings-panel,
.lead-board,
.availability-band,
.next-steps,
.area-section,
.reviews-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-search {
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  max-width: 720px;
  padding: 18px;
}

label {
  color: #293730;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

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

input,
select,
textarea {
  background: white;
  border: 1px solid #cbd5cf;
  border-radius: 6px;
  min-width: 0;
  outline: none;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 114, 84, 0.13);
}

.hero-search button,
.intake-card button,
.availability-form button,
.review-form button,
.quick-actions button,
.listing-actions button {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
}

.hero-search button:hover,
.intake-card button:hover,
.availability-form button:hover,
.review-form button:hover,
.quick-actions button:hover,
.listing-actions button:hover {
  background: var(--green-dark);
}

.metrics {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metrics div {
  background: white;
  display: grid;
  gap: 6px;
  padding: 18px clamp(18px, 4vw, 54px);
}

.metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics strong {
  font-size: 18px;
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  padding: clamp(18px, 4vw, 54px);
}

.availability-band,
.next-steps,
.area-section,
.reviews-section {
  margin: clamp(18px, 4vw, 54px) clamp(18px, 4vw, 54px) 0;
}

.availability-band {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  padding: 18px;
}

.availability-copy p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 680px;
}

.signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-grid span {
  align-items: center;
  background: #edf2ee;
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
}

.availability-form,
.review-form {
  background: #f9faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.section-heading.no-border {
  border-bottom: 0;
  padding-bottom: 4px;
}

.section-heading.compact {
  gap: 14px;
}

.icon-button {
  align-items: center;
  background: #ebf1ed;
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.filters {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}

.filters button {
  background: #edf2ee;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.filters button.active {
  background: var(--ink);
  color: white;
}

.listing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 18px;
}

.action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 18px 18px;
}

.action-grid button {
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 160px;
  padding: 16px;
  text-align: left;
}

.action-grid button:hover {
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(16, 32, 26, 0.09);
}

.action-grid .lucide {
  color: var(--green);
  height: 24px;
  width: 24px;
}

.action-grid strong {
  font-size: 17px;
}

.action-grid span {
  color: var(--muted);
  line-height: 1.42;
}

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

.listing-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.listing-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.listing-body h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.listing-meta,
.listing-tags,
.lead-item span {
  color: var(--muted);
  font-size: 14px;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-tags span {
  background: #edf2ee;
  border-radius: 999px;
  padding: 5px 8px;
}

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

.listing-actions button.secondary,
.quick-actions button.secondary {
  background: #edf2ee;
  color: var(--ink);
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 760px;
  position: sticky;
  top: 88px;
}

.online {
  background: #e4f5ed;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 18px;
}

.message {
  border-radius: 8px;
  line-height: 1.42;
  max-width: 88%;
  padding: 11px 12px;
}

.message.bot {
  align-self: flex-start;
  background: #edf2ee;
}

.message.user {
  align-self: flex-end;
  background: var(--ink);
  color: white;
}

.quick-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 18px;
}

.forms-band {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  padding: 0 clamp(18px, 4vw, 54px) clamp(18px, 4vw, 54px);
}

.intake-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.intake-card.owner {
  border-color: #e1d0b6;
}

.intake-card.offer {
  border-color: #d8c59d;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.lead-board {
  display: grid;
  gap: 18px;
  grid-template-columns: 320px 1fr;
  margin: 0 clamp(18px, 4vw, 54px) 54px;
  padding: 18px;
}

.area-grid,
.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px 18px;
}

.area-grid article,
.review-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.area-grid img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.area-grid h3,
.area-grid p,
.review-grid article strong,
.review-grid article p,
.review-grid article span {
  margin-inline: 14px;
}

.area-grid h3,
.review-grid article strong {
  display: block;
  margin-top: 14px;
}

.area-grid p,
.review-grid article p {
  color: var(--muted);
  line-height: 1.45;
}

.review-copy {
  padding: 18px 18px 0;
}

.review-copy p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}

.review-grid article {
  padding-bottom: 14px;
}

.review-grid article span {
  color: var(--gold);
  display: block;
  font-weight: 900;
}

.lead-board p {
  line-height: 1.55;
  margin-bottom: 0;
}

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

.lead-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.lead-item strong {
  color: var(--green-dark);
}

.lucide {
  height: 18px;
  width: 18px;
  stroke-width: 2.2;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.dash-sidebar {
  align-content: start;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 22px;
  height: 100vh;
  padding: 18px;
  position: sticky;
  top: 0;
}

.dash-nav {
  display: grid;
  gap: 6px;
}

.dash-nav a {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-weight: 850;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
}

.dash-nav a:hover,
.dash-nav a.active {
  background: #edf2ee;
  color: var(--ink);
}

.dash-note {
  align-items: center;
  background: #f6f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.dash-note small,
.connection-row span,
.dash-metrics span,
.dash-metrics small,
.task-item small,
.pipeline-card span,
.pipeline-card small,
.ops-listing span,
.ops-listing small,
.connection-card p {
  color: var(--muted);
}

.status-dot {
  background: #c95b43;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.status-dot.ok {
  background: var(--green);
}

.dash-main {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
}

.dash-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.dash-header h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  max-width: 880px;
}

.dash-actions,
.search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-actions button,
.task-form button {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
}

.dash-actions button.secondary {
  background: var(--ink);
}

.dash-actions button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.dash-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-metrics article,
.dash-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dash-metrics article {
  display: grid;
  gap: 5px;
  min-height: 128px;
  padding: 16px;
}

.dash-metrics strong {
  font-size: 34px;
  line-height: 1;
}

.dash-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.dash-grid.bottom-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-panel.large {
  min-width: 0;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.panel-heading.compact {
  align-items: start;
}

.panel-heading select,
.search-tools input,
.search-tools select {
  min-height: 42px;
}

.pipeline-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  overflow-x: auto;
  padding: 14px;
}

.pipeline-column {
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 380px;
  padding: 10px;
}

.pipeline-column header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pipeline-column header span {
  background: #e8eee9;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  min-width: 26px;
  padding: 4px 8px;
  text-align: center;
}

.pipeline-cards {
  align-content: start;
  display: grid;
  gap: 8px;
}

.pipeline-card {
  background: #ffffff;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.pipeline-card div,
.connection-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pipeline-card p {
  color: #334039;
  font-size: 13px;
  margin: 0;
}

.pipeline-card select {
  padding: 8px 10px;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 14px 4px;
}

.empty-state.wide {
  padding: 18px;
}

.task-list,
.task-form,
.connection-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.task-item {
  align-items: start;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.task-item input {
  margin-top: 3px;
}

.task-item:has(input:checked) strong {
  color: var(--muted);
  text-decoration: line-through;
}

.ops-listings {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.ops-listing {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.4fr) 150px 92px 82px 130px;
  padding: 12px;
}

.ops-listing > div {
  display: grid;
  gap: 4px;
}

.ops-listing mark {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
  text-transform: uppercase;
}

.ops-listing mark.active {
  background: #e4f5ed;
  color: var(--green-dark);
}

.ops-listing mark.hot {
  background: #fff0d8;
  color: #81520f;
}

.ops-listing mark.pending {
  background: #e8eef3;
  color: #2f596e;
}

.connection-card {
  background: #f8faf8;
}

.connection-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.connection-row:last-of-type {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .hero,
  .workspace,
  .forms-band,
  .lead-board,
  .availability-band,
  .dashboard-shell,
  .dash-grid,
  .dash-grid.bottom-grid {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    border-right: 0;
    height: auto;
    position: static;
  }

  .dash-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 0;
  }

  .hero-image {
    min-height: 340px;
    order: -1;
  }

  .assistant-panel {
    max-height: none;
    position: static;
  }
}

@media (max-width: 860px) {
  .action-grid,
  .area-grid,
  .review-grid,
  .dash-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dash-header,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-listing {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy {
    gap: 15px;
    padding: 22px;
  }

  .hero-image {
    min-height: 230px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.42;
  }

  .search-row,
  .metrics,
  .listing-actions,
  .form-grid,
  .action-grid,
  .area-grid,
  .review-grid,
  .dash-metrics,
  .ops-listing {
    grid-template-columns: 1fr;
  }

  .metrics div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
