:root {
  --sage: #8b9a6b;
  --sage-dark: #6f7d53;
  --text: #5d644f;
  --muted: #727963;
  --bg: #f6f6f3;
  --line: #dde1d2;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #f7f7f4;
  border-bottom: 1px solid #ebece3;
}

.nav-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap img {
  width: 220px;
  max-width: 52vw;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.login-btn {
  background: var(--sage);
  color: #fff !important;
  min-width: 105px;
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 18px rgba(106, 119, 82, 0.22);
}

.hero {
  position: relative;
  height: 470px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 247, 244, 0.92) 0%, rgba(247, 247, 244, 0.73) 38%, rgba(247, 247, 244, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 62px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 1rem 0 1.3rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--sage);
  color: #fff;
  padding: 0.82rem 1.8rem;
  font-size: 1.04rem;
  box-shadow: 0 10px 20px rgba(102, 117, 74, 0.26);
}

.watch-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #aab298;
  border-radius: 50%;
  margin-right: 0.45rem;
  font-size: 0.85rem;
}

.feature-row {
  margin-top: -44px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(95, 102, 83, 0.15);
  overflow: hidden;
}

.feature-card {
  padding: 1.6rem 1.5rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-right: 1px solid #e8ebdd;
}

.feature-card:last-child { border-right: none; }

.feature-card img {
  width: 45px;
  height: 45px;
  margin-top: 0.2rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 2rem;
}

.feature-card p {
  margin: 0.3rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.section {
  padding: 5.5rem 0 4rem;
}

.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.dashboard-mock {
  position: relative;
}

.dashboard-mock > img:first-child {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(80, 88, 68, 0.15);
}

.phone-overlay {
  position: absolute;
  width: 33%;
  right: 4%;
  bottom: -8%;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  font-size: 1.9rem;
  margin: 0 0 1.2rem;
  padding-left: 2rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 800;
}

.media-band {
  background: linear-gradient(180deg, #e4e8d8 0%, #d6dcc4 100%);
  padding: 2.2rem 0 3rem;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.media-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(77, 86, 62, 0.18);
}

.media-card:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 247, 244, 0.92) 0%, rgba(247, 247, 244, 0.73) 38%, rgba(247, 247, 244, 0.2) 100%);
  pointer-events: none;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.demo-wrap {
  text-align: center;
  margin-top: 1.3rem;
}

.demo-btn {
  border: 1px solid #b8bfa7;
  color: var(--text);
  background: #f5f5ef;
  padding: 0.8rem 2.1rem;
  font-size: 1.15rem;
}

.cta-section {
  background: #fbfbf8;
  border-top: 1px solid #e6eadc;
  border-bottom: 1px solid #e6eadc;
  padding: 3.8rem 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  margin: 0;
}

.cta-inner p {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.site-footer {
  background: #f2f3ee;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.footer-grid h4 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.footer-grid p {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #6f7661;
}

.footer-bottom {
  border-top: 1px solid #e0e5d6;
  text-align: center;
  color: #7a8269;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.map-section,
.dashboard-map-section {
  padding-top: 4rem;
}

.map-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  text-align: center;
}

.map-lead.left {
  text-align: left;
}

.map-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 1rem;
}

.map-card {
  border: 1px solid var(--line);
  background: #fcfcf9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(86, 95, 71, 0.1);
}

.map-card h3 {
  margin-top: 0;
}

.map-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.map-inline input,
.pin-form input {
  width: 100%;
  border: 1px solid #cfd5c1;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.map-card input {
  width: 100%;
  border: 1px solid #cfd5c1;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.map-card label {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: block;
}

.pin-form {
  display: grid;
  gap: 0.45rem;
}

.pin-form label {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.map-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.map-canvas {
  width: 100%;
  height: 460px;
  border: 1px solid #ccd2bf;
  border-radius: 8px;
  background: #eef2e5;
}

.map-status,
.map-summary {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.pins-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  max-height: 185px;
  overflow: auto;
}

.pins-list li {
  margin-bottom: 0.45rem;
}

.dashboard-shell-section {
  padding-top: 2.5rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.15rem;
  border: 1px solid #d7ddcb;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(154, 173, 124, 0.2), transparent 28%),
    linear-gradient(180deg, #fafbf7 0%, #f1f4ec 100%);
  box-shadow: 0 18px 50px rgba(67, 79, 57, 0.14);
}

.dashboard-sidebar {
  border-radius: 22px;
  padding: 1rem;
  background:
    linear-gradient(180deg, #355244 0%, #294034 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: #eef4e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar-brand {
  padding: 0.35rem 0.35rem 1rem;
  border-bottom: 1px solid rgba(223, 236, 212, 0.14);
}

.dashboard-sidebar-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d6bb;
}

.dashboard-sidebar-brand h2 {
  margin: 0.45rem 0 0.25rem;
  text-align: left;
  color: #fff;
  font-size: 1.45rem;
}

.dashboard-sidebar-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: #d7e1cf;
}

.dashboard-sidebar-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.dashboard-sidebar-gap {
  height: 0.6rem;
}

.dashboard-sidebar-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  color: #edf4e7;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 239, 220, 0.08);
}

.dashboard-sidebar-link:hover,
.dashboard-sidebar-link.active {
  background: rgba(205, 223, 186, 0.18);
  border-color: rgba(227, 238, 217, 0.2);
}

.dashboard-main {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem;
}

.dashboard-search-wrap {
  flex: 1;
}

.dashboard-search {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d4ddc8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: #41513e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dashboard-icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #d4dcc9;
  border-radius: 14px;
  background: #fff;
  color: #4f5d49;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(120, 131, 103, 0.12);
}

.dashboard-add-btn {
  min-height: 48px;
  padding-inline: 1.35rem;
}

.dashboard-profile {
  min-width: 220px;
  padding: 0.9rem 1rem;
  border: 1px solid #d3dac7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(120, 131, 103, 0.12);
}

.dashboard-profile-name {
  font-size: 1rem;
  font-weight: 800;
  color: #2f3a2f;
}

.dashboard-profile-meta {
  margin-top: 0.25rem;
  font-size: 0.87rem;
  color: #647160;
  font-weight: 700;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-stat-card {
  border: 1px solid #d5dccb;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f3 100%);
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 22px rgba(97, 110, 81, 0.1);
}

.dashboard-stat-card p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #6f7b67;
}

.dashboard-stat-card strong {
  font-size: 2rem;
  line-height: 1;
  color: #324330;
}

.dashboard-primary-grid,
.dashboard-queues-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 1rem;
}

.dashboard-panel {
  border: 1px solid #d7ddcb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(89, 102, 74, 0.08);
}

.dashboard-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dashboard-panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
  text-align: left;
  color: #2d3a2d;
}

.dashboard-panel-head p {
  margin: 0.3rem 0 0;
  color: #6d7868;
  font-size: 0.95rem;
}

.dashboard-text-link {
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-board-map {
  height: 350px;
  border-radius: 18px;
}

.dashboard-inline-status {
  margin: 0.85rem 0 0;
  font-size: 0.94rem;
  color: #687363;
}

.dashboard-activity-list,
.dashboard-queue-list,
.dashboard-notice-list,
.dashboard-open-items-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-activity-list li,
.dashboard-queue-list li,
.dashboard-notice-list li,
.dashboard-open-items-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid #e6eadf;
}

.dashboard-activity-list li:last-child,
.dashboard-queue-list li:last-child,
.dashboard-notice-list li:last-child,
.dashboard-open-items-list li:last-child {
  border-bottom: none;
}

.dashboard-activity-list strong,
.dashboard-queue-list strong {
  display: block;
  color: #30402f;
  font-size: 1rem;
}

.dashboard-activity-list span,
.dashboard-queue-list span {
  display: block;
  margin-top: 0.2rem;
  color: #6f7968;
  font-size: 0.94rem;
}

.dashboard-composer-panel {
  background: linear-gradient(180deg, #fefefc 0%, #f5f8f0 100%);
}

.dashboard-issue-form {
  display: grid;
  gap: 0.9rem;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-form-field {
  display: grid;
  gap: 0.35rem;
}

.dashboard-form-field label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #546252;
}

.dashboard-form-field input,
.dashboard-form-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d2dac6;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem 0.85rem;
  font: inherit;
  color: #374536;
}

.dashboard-open-items-list li {
  font-weight: 700;
  color: #374635;
}

.dashboard-scroll-target {
  scroll-margin-top: 110px;
}

.map-view-section {
  padding-top: 2.5rem;
}

.map-view-shell {
  display: grid;
  gap: 1rem;
}

.map-view-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-view-topbar h1 {
  margin: 0;
  color: #2f3d2d;
}

.map-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 340px;
  gap: 1rem;
}

.map-view-canvas-card,
.map-view-list-card {
  min-width: 0;
}

.map-view-canvas {
  height: min(76vh, 860px);
  border-radius: 18px;
}

.violations-section {
  padding-top: 2.5rem;
}

.violations-shell {
  display: grid;
  gap: 1rem;
}

.violations-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.violations-topbar h1 {
  margin: 0;
  color: #2f3d2d;
}

.violations-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.violations-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.violations-list {
  display: grid;
  gap: 0.75rem;
}

.violations-list-item {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border: 1px solid #d8dfce;
  border-radius: 16px;
  background: #fbfcf9;
  cursor: pointer;
  font: inherit;
  color: #334032;
}

.violations-list-item strong {
  font-size: 1rem;
}

.violations-list-item span,
.violations-list-item em {
  color: #6c7767;
  font-style: normal;
}

.violations-list-item.active {
  border-color: #b9c8ac;
  background: #f2f7eb;
  box-shadow: 0 10px 18px rgba(103, 117, 83, 0.08);
}

.violations-empty-state {
  padding: 1.2rem;
  border: 1px dashed #d5dcc8;
  border-radius: 16px;
  background: #fafbf8;
  color: #6d7868;
}

.violations-detail {
  display: grid;
  gap: 1rem;
}

.violations-address {
  margin: 0 0 0.35rem;
  color: #6f7a6a;
  font-weight: 800;
}

.violations-detail-header h3 {
  margin: 0;
  color: #2d3a2d;
  font-size: 1.8rem;
}

.violations-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

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

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

.violations-meta-grid div {
  padding: 0.85rem 0.95rem;
  border: 1px solid #d9e0cf;
  border-radius: 16px;
  background: #f8faf4;
}

.violations-meta-grid dt {
  margin: 0 0 0.3rem;
  color: #71806d;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.violations-meta-grid dd {
  margin: 0;
  font-weight: 800;
  color: #334032;
}

.violations-description-card {
  padding: 1rem;
  border: 1px solid #d9dfcf;
  border-radius: 18px;
  background: #fbfcf9;
}

.violations-description-card h4 {
  margin: 0 0 0.55rem;
  color: #31402f;
}

.violations-description-card p {
  margin: 0;
  color: #5d685a;
}

.onboarding-section {
  padding-top: 2.5rem;
}

.onboarding-shell {
  display: grid;
  gap: 1rem;
}

.onboarding-intro-card {
  background: linear-gradient(135deg, rgba(139, 154, 107, 0.13), rgba(255, 255, 255, 0.96));
}

.onboarding-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #d7decd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.onboarding-step strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e3ead8;
  color: #395136;
}

.onboarding-step span {
  font-weight: 800;
  color: #41503f;
}

.onboarding-step.active {
  border-color: #bfcbb0;
  box-shadow: 0 10px 20px rgba(108, 122, 90, 0.08);
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 1rem;
}

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

.dashboard-form-field textarea {
  width: 100%;
  border: 1px solid #d2dac6;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem 0.85rem;
  font: inherit;
  color: #374536;
  resize: vertical;
}

.onboarding-summary-card {
  align-content: start;
}

.onboarding-summary-list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.onboarding-summary-list div {
  border: 1px solid #dce3d1;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: #fafbf8;
}

.onboarding-summary-list dt {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71806d;
}

.onboarding-summary-list dd {
  margin: 0;
  font-weight: 800;
  color: #324030;
}

.onboarding-next-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faf2 0%, #eef3e5 100%);
  border: 1px solid #d9dfce;
}

.onboarding-next-card h3 {
  margin: 0 0 0.75rem;
  color: #2f3d2d;
}

.onboarding-import-panel {
  display: grid;
  gap: 1rem;
}

.onboarding-connector-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #d8dfce;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcf9 0%, #f2f6ec 100%);
}

.onboarding-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.85rem;
}

.onboarding-mapping-wrap {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}

.onboarding-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.onboarding-preview-table-wrap {
  overflow: auto;
  border: 1px solid #dbe2d1;
  border-radius: 16px;
  background: #fff;
}

.onboarding-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.onboarding-preview-table th,
.onboarding-preview-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e7ecdf;
  text-align: left;
  vertical-align: top;
}

.onboarding-preview-table th {
  background: #f5f8ef;
  color: #40503d;
  font-size: 0.9rem;
}

.onboarding-preview-table td {
  color: #5b6657;
  font-size: 0.92rem;
}

.dashboard-ref-shell {
  border: 1px solid #d8dece;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f7f3;
  box-shadow: 0 12px 30px rgba(74, 83, 63, 0.14);
}

.dashboard-ref-topbar {
  min-height: 72px;
  background: #f8f9f6;
  border-bottom: 1px solid #e3e8da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.dashboard-ref-search {
  width: min(540px, 100%);
  border: 1px solid #d7decd;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
}

.dashboard-ref-board {
  font-size: 1.55rem;
  font-weight: 800;
  color: #2f3c30;
}

.dashboard-ref-top-right {
  display: grid;
  justify-items: end;
}

.dashboard-ref-customer {
  font-size: 0.9rem;
  color: #647160;
  font-weight: 700;
}

.dashboard-ref-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 360px;
  min-height: 760px;
}

.dashboard-ref-left {
  background: #eef1e9;
  border-right: 1px solid #d9dfcf;
  display: grid;
  grid-template-rows: auto 1fr;
}

.dashboard-ref-nav {
  background: linear-gradient(180deg, #3e5a4b 0%, #2f473b 100%);
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.dashboard-ref-nav-item {
  border: 1px solid rgba(214, 227, 201, 0.18);
  background: transparent;
  border-radius: 10px;
  color: #ebf3e0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0.72rem 0.8rem;
  cursor: pointer;
}

.dashboard-ref-nav-item.active {
  background: rgba(203, 222, 183, 0.24);
}

.dashboard-ref-list-card {
  padding: 0.8rem;
}

.dashboard-ref-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #485348;
  margin-bottom: 0.65rem;
}

.dashboard-ref-list-head span {
  border: 1px solid #d2d9c9;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  background: #fbfcf9;
  font-weight: 700;
}

.dashboard-ref-pins-list {
  max-height: 530px;
  overflow: auto;
  margin: 0;
  padding-left: 1rem;
}

.dashboard-ref-center {
  background: #f7f8f4;
  padding: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.dashboard-ref-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.dashboard-ref-kpis {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  border: 1px solid #d8dece;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: #fff;
}

.dashboard-ref-kpis span {
  color: #586358;
}

.dashboard-ref-kpis strong {
  border-radius: 999px;
  background: #6f8458;
  color: #fff;
  padding: 0 0.38rem;
}

.dashboard-ref-filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dashboard-ref-filters span {
  border: 1px solid #d2d8ca;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: #fdfefb;
  font-weight: 700;
  color: #4d594b;
}

.dashboard-ref-map-wrap {
  position: relative;
}

.dashboard-ref-map {
  height: 620px;
}

.dashboard-ref-map-badge {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d7decf;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  color: #4d5a4a;
}

.dashboard-ref-status {
  margin-top: 0;
}

.dashboard-ref-right {
  border-left: 1px solid #d9dfcf;
  background: #f4f6f1;
  padding: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.dashboard-ref-detail-card {
  border: 1px solid #d8dece;
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem;
}

.dashboard-ref-address {
  margin: 0 0 0.35rem;
  color: #697668;
  font-weight: 700;
}

.dashboard-ref-detail-card h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  color: #2f3a2f;
}

.dashboard-ref-muted {
  color: #637061;
  margin: 0.65rem 0 0;
}

.dashboard-ref-pin-form {
  border: 1px solid #d8dece;
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem;
}

.hoa-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.hoa-portal-grid h2 {
  text-align: left;
  margin: 0 0 0.7rem;
}

@media (max-width: 980px) {
  .nav-row {
    min-height: auto;
    padding: 0.9rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    height: 430px;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero p { font-size: 1.2rem; }

  .feature-row,
  .platform-grid,
  .media-grid,
  .footer-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-ref-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-topbar,
  .dashboard-top-actions,
  .dashboard-panel-head,
  .map-view-topbar,
  .violations-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-profile {
    min-width: 0;
  }

  .dashboard-ref-top-right {
    justify-items: start;
  }

  .dashboard-ref-grid {
    grid-template-columns: 1fr;
  }

  .hoa-portal-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid,
  .violations-stats-grid,
  .dashboard-primary-grid,
  .dashboard-queues-grid,
  .dashboard-form-grid,
  .onboarding-progress-grid,
  .onboarding-grid,
  .onboarding-form-grid,
  .onboarding-import-grid,
  .onboarding-mapping-grid,
  .map-view-grid,
  .violations-grid,
  .violations-meta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-board-map {
    height: 300px;
  }

  .map-view-canvas {
    height: 62vh;
  }

  .dashboard-ref-left,
  .dashboard-ref-right {
    border: 0;
  }

  .dashboard-ref-map {
    height: 430px;
  }

  .feature-row {
    margin-top: 1rem;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid #e8ebdd;
  }

  .feature-card:last-child { border-bottom: none; }

  .section h2,
  .cta-inner h2 {
    font-size: 2rem;
  }

  .checklist li {
    font-size: 1.2rem;
  }

  .cta-inner p {
    font-size: 1.15rem;
  }

  .map-canvas {
    height: 360px;
  }
}
