:root {
  --color-background: #fbfbfb;
  --color-surface: #fdfdfd;
  --color-surface-muted: #f4f3f2;
  --color-evergreen: #04281b;
  --color-evergreen-light: #1c3d2b;
  --color-gold: #c99216;
  --color-gold-soft: #fff3d7;
  --color-green-soft: #e8f2e9;
  --color-text: #15221b;
  --color-muted: #677069;
  --color-border: #dedfdb;
  --color-neutral: #b0b0a3;
  --font-heading: "DM Serif Display", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(4, 40, 27, 0.06);
  --radius-sm: 7px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
  height: auto;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(201, 146, 22, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 332px;
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 0;
  background: linear-gradient(160deg, #043426 0%, var(--color-evergreen) 65%, #003326 100%);
  color: #fff;
}

.brand {
  display: block;
  width: 100%;
  max-width: 205px;
  margin-bottom: 28px;
}

.brand img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.primary-nav {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.primary-nav a {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.primary-nav a.active {
  background: rgba(88, 135, 61, 0.36);
  color: #f4c32c;
}

.primary-nav img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.insights-card {
  position: relative;
  z-index: 1;
  margin: 28px 4px 22px;
  padding: 16px;
  border: 1px solid rgba(213, 167, 54, 0.7);
  border-radius: var(--radius-md);
  background: rgba(0, 44, 31, 0.72);
  box-shadow: var(--shadow-sm);
}

.insights-card h2 {
  margin: 0 0 7px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
}

.insights-card p {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.45;
}

.insights-card a {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(19, 81, 57, 0.75);
  font-size: 14px;
  font-weight: 600;
}

.insights-card svg {
  width: 16px;
  height: 16px;
}

.sidebar-photo {
  width: calc(100% + 32px);
  max-width: none;
  min-height: 260px;
  margin: auto -16px 0;
  display: block;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
}

.topbar {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px 12px 28px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(253, 253, 253, 0.96);
}

.mobile-menu {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.global-search {
  width: min(390px, 38vw);
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-range {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.date-range svg:last-child {
  width: 15px;
}

.notifications {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

.notifications span {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d88c00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.profile-menu img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-menu span {
  display: grid;
  line-height: 1.3;
}

.profile-menu strong {
  font-size: 14px;
}

.profile-menu small {
  color: var(--color-muted);
  font-size: 12px;
}

.profile-menu svg {
  width: 16px;
}

.main-content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 24px 26px 42px;
  overflow: hidden;
  background: var(--color-background);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-evergreen);
}

.page-heading p {
  margin: 0;
  color: var(--color-muted);
}

.heading-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  border: 1px solid var(--color-evergreen);
  background: var(--color-evergreen);
  color: #fff;
  box-shadow: 0 2px 5px rgba(4, 40, 27, 0.16);
}

.button-secondary {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stat-card {
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.stat-card img,
.stat-card > svg {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.stat-card h2 {
  margin: 0 0 3px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.25;
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-evergreen);
}

.stat-card p {
  margin: 6px 0 0;
  color: #247344;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stat-card p span {
  color: var(--color-muted);
  font-weight: 400;
}

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 2.2fr) repeat(4, minmax(100px, 0.9fr)) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.filters label {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 5px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.filters label > span:not(.sr-only) {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.1;
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
}

.lead-search {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.lead-search svg {
  width: 18px;
  color: var(--color-muted);
}

.filter-button {
  min-height: 48px;
}

.board-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--color-neutral) transparent;
  scrollbar-width: thin;
}

.pipeline-board {
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stage-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fafaf8;
  overflow: hidden;
}

.stage-column > header {
  min-height: 51px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
}

.stage-column > header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.stage-column > header h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 21px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  font-size: 11px;
  font-weight: 600;
}

.stage-column > header p {
  margin: 0;
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 11px;
  white-space: nowrap;
}

.lead-list {
  display: grid;
  gap: 9px;
  padding: 0 7px 8px;
}

.lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 146px;
  padding: 12px 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 1px 3px rgba(4, 40, 27, 0.025);
}

.lead-card.selected {
  border-color: #bac3bb;
  background: #fafbf9;
  box-shadow: 0 3px 10px rgba(4, 40, 27, 0.08);
}

.lead-card h3 {
  margin: 0 0 4px;
  padding-right: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.lead-card address {
  margin: 0 0 7px;
  color: #3f4742;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.lead-card > img {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
}

.source {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
}

.website,
.referral {
  background: #e4f0e3;
  color: #275c37;
}

.ads {
  background: #fff0cf;
  color: #8b5b00;
}

.facebook {
  background: #dcecff;
  color: #28588a;
}

.lead-meta {
  margin-top: auto;
  padding-right: 34px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #4e5751;
  font-size: 10px;
  line-height: 1.3;
}

.lead-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 1.5px solid var(--color-gold);
  border-radius: 2px;
}

.add-stage-item {
  min-height: 48px;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-evergreen);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.add-stage-item span {
  margin-right: 5px;
  font-size: 18px;
}

.add-another-stage {
  width: 100%;
  min-height: 51px;
  margin-top: 25px;
  border: 1px dashed var(--color-neutral);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #3c443f;
  font-weight: 600;
  cursor: pointer;
}

.add-another-stage span {
  margin-right: 7px;
  font-size: 20px;
}

.detail-panel {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  border-left: 1px solid var(--color-border);
  background: #fff;
}

.detail-summary {
  position: relative;
  padding: 27px 20px 20px;
}

.close-detail {
  position: absolute;
  top: 18px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close-detail svg {
  width: 23px;
  height: 23px;
}

.detail-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 35px;
}

.detail-heading-row h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.detail-heading-row span {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--color-green-soft);
  color: #386446;
  font-size: 11px;
}

.detail-summary > address {
  margin: 12px 0 15px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.property-photo {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  display: block;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  object-fit: cover;
  object-position: center;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.property-facts div {
  min-width: 0;
  padding: 9px 8px;
  border-right: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.property-facts dd:not(:has(img)) {
  white-space: nowrap;
}

.property-facts div:nth-child(3n) {
  border-right: 0;
}

.property-facts div:nth-child(-n+3) {
  border-top: 0;
}

.property-facts dt {
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 10px;
}

.property-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.property-facts dd img {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  margin-top: 14px;
}

.detail-actions .button {
  min-width: 0;
  min-height: 40px;
  padding-inline: 5px;
  font-size: 11px;
  letter-spacing: -0.1px;
  gap: 4px;
}

.detail-actions .button svg {
  width: 14px;
  height: 14px;
}

.notes-section {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--color-border);
}

.panel-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-section-title h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
}

.panel-section-title button,
.panel-section-title a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-evergreen-light);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.notes-section p {
  margin: 0;
  color: #343b37;
  font-size: 13px;
  line-height: 1.55;
}

.activity-section {
  padding: 20px 22px 30px;
  border-top: 1px solid var(--color-border);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 20px;
  left: 17px;
  width: 1px;
  background: #d8ddd8;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}

.timeline img,
.timeline > li > svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.timeline div {
  display: grid;
}

.timeline time {
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 11px;
}

.timeline strong {
  font-size: 12px;
}

.timeline p {
  margin: 0;
  color: #49514c;
  font-size: 11px;
}

.site-footer {
  min-height: 0;
  background: var(--color-evergreen);
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr) 330px;
  }

  .sidebar {
    padding-inline: 12px;
  }

  .sidebar-photo {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }

  .main-content {
    padding-inline: 20px;
  }

  .filters {
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(105px, 1fr));
  }

  .filter-button {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr) 320px;
  }

  .brand {
    width: 58px;
    overflow: hidden;
  }

  .brand img {
    width: 205px;
    max-width: none;
  }

  .primary-nav a {
    justify-content: center;
    padding-inline: 8px;
  }

  .primary-nav span,
  .insights-card {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .sidebar-photo {
    min-height: 240px;
  }

  .global-search {
    width: min(330px, 34vw);
  }

  .profile-menu span,
  .profile-menu > svg {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(5, 170px);
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    overflow-x: auto;
  }

  .brand {
    width: 150px;
    min-width: 150px;
    margin: 0 8px 0 0;
    overflow: visible;
  }

  .brand img {
    width: 100%;
    max-width: 100%;
  }

  .primary-nav {
    display: flex;
    gap: 4px;
  }

  .primary-nav a {
    min-width: 43px;
  }

  .primary-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .sidebar-photo {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .topbar {
    padding: 10px 16px;
  }

  .mobile-menu {
    display: grid;
  }

  .global-search {
    width: auto;
    flex: 1;
  }

  .date-range span,
  .profile-menu,
  .notifications {
    display: none;
  }

  .date-range {
    width: 43px;
    padding: 0;
    justify-content: center;
  }

  .date-range svg:last-child {
    display: none;
  }

  .main-content {
    padding: 28px 16px 38px;
    overflow: visible;
  }

  .page-heading {
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(5, 185px);
  }

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

  .lead-search {
    grid-column: 1 / -1;
  }

  .detail-panel {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .detail-summary,
  .notes-section,
  .activity-section {
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .sidebar {
    padding-inline: 12px;
  }

  .brand {
    width: 130px;
    min-width: 130px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .global-search input::placeholder {
    color: transparent;
  }

  .page-heading {
    display: grid;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
  }

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

  .lead-search {
    grid-column: auto;
  }

  .property-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-facts div:nth-child(3n) {
    border-right: 1px solid var(--color-border);
  }

  .property-facts div:nth-child(2n) {
    border-right: 0;
  }

  .property-facts div:nth-child(3) {
    border-top: 1px solid var(--color-border);
  }

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

/* ===== app consistency: pinned palette (leads ref) ===== */
:root{--color-evergreen:#04281b;--color-gold:#c99216;--color-muted:#677069;--color-background:#fbfbfb;--font-heading:"DM Serif Display",Georgia,serif;}
.sidebar {position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 0;
  background: linear-gradient(160deg, #043426 0%, var(--color-evergreen) 65%, #003326 100%);
  color: #fff;}
.brand {display: block;
  width: 100%;
  max-width: 205px;
  margin-bottom: 28px;}
.brand img {display: block;
  width: 100%;
  object-fit: contain;}
.primary-nav {display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;}
.primary-nav a {min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;}
.primary-nav a:hover {background: rgba(255, 255, 255, 0.08);}
.primary-nav a.active {background: rgba(88, 135, 61, 0.36);
  color: #f4c32c;}
.primary-nav img {width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;}
.insights-card {position: relative;
  z-index: 1;
  margin: 28px 4px 22px;
  padding: 16px;
  border: 1px solid rgba(213, 167, 54, 0.7);
  border-radius: var(--radius-md);
  background: rgba(0, 44, 31, 0.72);
  box-shadow: var(--shadow-sm);}
.insights-card h2 {margin: 0 0 7px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;}
.insights-card p {margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.45;}
.insights-card a {width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(19, 81, 57, 0.75);
  font-size: 14px;
  font-weight: 600;}
.insights-card svg {width: 16px;
  height: 16px;}
.sidebar-photo {width: calc(100% + 32px);
  max-width: none;
  min-height: 260px;
  margin: auto -16px 0;
  display: block;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%);}
/* ===== app consistency overrides (leads ref) ===== */
.sidebar{width:236px !important;flex:0 0 236px !important;flex-direction:column !important;box-sizing:border-box !important;padding:22px 16px 0 !important;gap:0 !important;height:100vh !important;max-height:100vh !important;min-height:100vh !important;position:sticky !important;top:0 !important;align-self:start !important;overflow-y:auto !important;overflow-x:hidden !important;scrollbar-width:none !important;}
.sidebar::-webkit-scrollbar{display:none !important;}
.sidebar .primary-nav{margin-top:0 !important;padding-top:0 !important;flex:0 0 auto !important;}
.sidebar .brand{margin:0 0 28px !important;padding:0 !important;display:block !important;flex:0 0 auto !important;}
.sidebar .brand img{width:204px !important;height:auto !important;max-width:204px !important;}
.sidebar .insights-card{flex:0 0 auto !important;}
.sidebar-photo{position:static !important;width:236px !important;max-width:none !important;min-width:236px !important;margin:auto -16px 0 -16px !important;height:260px !important;min-height:260px !important;flex:0 0 260px !important;object-fit:cover !important;object-position:center !important;display:block !important;background:none !important;background-image:none !important;}
.sidebar .primary-nav{flex-direction:column !important;}
.sidebar .primary-nav>a{justify-content:flex-start !important;}
.sidebar .primary-nav>a>span{position:static !important;width:auto !important;height:auto !important;margin:0 !important;overflow:visible !important;clip:auto !important;clip-path:none !important;}
.page-heading h1,.main-content>h1,main h1,.workspace>h1{font-size:39px !important;line-height:1.08 !important;font-weight:400 !important;font-family:var(--font-heading) !important;}
.page-heading p,.page-subtitle{font-size:16px !important;}
.topbar{min-height:72px !important;padding-top:14px !important;padding-bottom:14px !important;align-items:center !important;}
footer,.site-footer,.app-footer{background:var(--color-evergreen) !important;}
[class*="card"],.panel{border-radius:10px;}
