:root {
  --color-canvas: #f4f3f2;
  --color-surface: #fbfbfb;
  --color-white: #fdfdfd;
  --color-evergreen: #04281b;
  --color-green: #1c3d2b;
  --color-muted: #6c706d;
  --color-border: #dedfdb;
  --color-stone: #b0b0a3;
  --color-gold: #c88a13;
  --color-red: #bd3028;
  --color-blue: #245db5;
  --font-heading: "DM Serif Display", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
  --shadow-soft: 0 2px 8px rgba(4, 40, 27, 0.06);
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

button {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(200, 138, 19, 0.55);
  outline-offset: 3px;
}

.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 {
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: var(--color-white);
  box-shadow: 0 0 30px rgba(4, 40, 27, 0.08);
}

.sidebar {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
  background: linear-gradient(155deg, #063426 0%, #002d21 58%, #001d17 100%);
}

.brand {
  display: block;
  padding: 22px 20px 15px;
}

.brand img {
  width: 202px;
  display: block;
}

.sidebar-nav {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 22px 16px 8px;
}

.sidebar-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

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

.sidebar-nav a.active {
  color: #f2b91f;
  background: rgba(77, 130, 61, 0.34);
}

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

.insight-card {
  position: relative;
  z-index: 2;
  margin: 18px 21px 230px;
  padding: 20px 17px 17px;
  border: 1px solid rgba(201, 149, 44, 0.66);
  border-radius: 9px;
  background: rgba(1, 46, 34, 0.74);
}

.insight-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.insight-heading img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.insight-heading h2 {
  margin: 0;
  font: 700 15px/1.3 var(--font-body);
}

.insight-card p {
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.55;
}

.insight-card a {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(25, 93, 52, 0.56);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 245px;
  background-image: linear-gradient(180deg, rgba(0,39,29,0) 0%, rgba(0,29,23,0.22) 62%, #001d17 100%), url("assets/house-exterior-night-photo.png");
  background-size: cover;
  background-position: center top;
}

.app-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 34px 16px 30px;
  border-bottom: 1px solid #e6e7e3;
  background: rgba(253,253,253,0.98);
}

.global-search {
  width: min(390px, 38vw);
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.global-search svg {
  width: 19px;
  flex: 0 0 19px;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252b27;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.date-button {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.date-button svg {
  width: 18px;
}

.date-button .chevron {
  width: 15px;
  margin-left: 4px;
}

.notification-button {
  position: relative;
  width: 34px;
  height: 38px;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-button svg {
  width: 22px;
}

.notification-button span {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #d17e08;
  font-size: 10px;
  font-weight: 700;
}

.profile {
  display: grid;
  grid-template-columns: 42px auto 18px;
  align-items: center;
  gap: 10px;
}

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

.profile strong,
.profile small {
  display: block;
  white-space: nowrap;
}

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

.profile small {
  color: #5e625f;
  font-size: 11px;
}

.profile svg {
  width: 17px;
}

.dashboard {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(700px, 1fr) 420px;
  background: var(--color-white);
}

.ticket-listing {
  min-width: 0;
  padding: 24px 24px 18px 27px;
  border-right: 1px solid #e6e7e3;
}

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

.page-heading h1 {
  margin: 0 0 3px;
  color: var(--color-evergreen);
  font: 400 clamp(34px, 3vw, 42px)/1.12 var(--font-heading);
}

.page-heading p {
  margin: 0;
  color: #555c58;
  font-size: 14px;
}

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

.secondary-button,
.primary-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

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

.secondary-button svg {
  width: 17px;
  height: 17px;
}

.primary-button span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-height: 141px;
  display: grid;
  grid-template-columns: 39px 1fr;
  align-content: start;
  gap: 11px;
  overflow: hidden;
  padding: 16px 12px 35px;
  border: 1px solid #e2e3df;
  border-radius: 9px;
  background: white;
  box-shadow: var(--shadow-soft);
}

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

.stat-card > svg {
  color: #376a48;
}

.stat-card h2 {
  margin: 1px 0 1px;
  font: 700 13px/1.3 var(--font-body);
  white-space: nowrap;
}

.stat-card strong {
  display: block;
  color: var(--color-evergreen);
  font: 400 26px/1.15 var(--font-heading);
}

.stat-card p {
  margin: 5px 0 0;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stat-card p span {
  color: #656a67;
  font-weight: 400;
}

.positive {
  color: #278313;
}

.sparkline {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  width: calc(100% - 24px);
  height: 26px;
  color: #245c42;
  stroke-width: 1.4;
}

.urgent-card .sparkline {
  color: #dc332b;
}

.filters {
  display: grid;
  grid-template-columns: minmax(215px, 1.7fr) repeat(4, minmax(82px, 0.64fr)) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.filters label {
  min-width: 0;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 17px 18px;
  padding: 4px 8px 3px 11px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: white;
}

.filters label > span {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
}

.filters select {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.filters .ticket-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.ticket-search svg {
  width: 18px;
  flex: 0 0 18px;
}

.ticket-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.filters > button {
  white-space: nowrap;
}

.ticket-table-section {
  min-width: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.ticket-table {
  width: 100%;
  min-width: 755px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 11px;
}

.ticket-table th {
  padding: 9px 8px 12px;
  color: #222823;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

.ticket-table th:nth-child(1) { width: 15%; }
.ticket-table th:nth-child(2) { width: 9%; }
.ticket-table th:nth-child(3) { width: 15%; }
.ticket-table th:nth-child(4) { width: 17%; }
.ticket-table th:nth-child(5) { width: 17%; }
.ticket-table th:nth-child(6) { width: 17%; }
.ticket-table th:nth-child(7) { width: 10%; }

.ticket-table td {
  height: 64px;
  padding: 8px;
  border-bottom: 1px solid #e5e6e2;
  vertical-align: middle;
}

.ticket-table td small {
  display: block;
  margin-top: 2px;
  color: #4f5652;
  font-size: 10px;
}

.ticket-table td .deadline {
  color: #c5251d;
}

.ticket-table td .warm {
  color: #df5b12;
}

.selected-row td {
  border-top: 1px solid #d5d6d1;
  border-bottom: 1px solid #d5d6d1;
  background: #fbfbfa;
}

.selected-row td:first-child {
  border-left: 1px solid #d5d6d1;
  border-radius: 8px 0 0 8px;
}

.selected-row td:last-child {
  border-right: 1px solid #d5d6d1;
  border-radius: 0 8px 8px 0;
}

.issue-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.issue-cell img,
.issue-cell svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.issue-cell svg {
  color: #376a48;
}

.issue-cell strong,
.issue-cell small {
  display: block;
}

.issue-cell strong {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge.urgent { color: #b5261f; background: #fde6e4; }
.badge.high { color: #db5313; background: #fff0e2; }
.badge.medium { color: #b66e08; background: #fff2d9; }
.badge.low { color: #285d3b; background: #e6f0e8; }
.badge.progress { color: #2159a8; background: #e6efff; }
.badge.assigned { color: #9e6405; background: #fff1d5; }
.badge.scheduled { color: #1e55a7; background: #e6efff; }
.badge.new { color: #24533a; background: #e7f0e9; }

.crew {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.crew i {
  width: 18px;
  height: 18px;
  margin-right: -3px;
  border: 1.5px solid white;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 118%, #c98d63 0 42%, transparent 43%),
    radial-gradient(circle at 50% 40%, #d69b74 0 26%, transparent 27%),
    #3a2a20;
}

.crew b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border-radius: 50%;
  background: #eeefec;
  font-size: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.pagination p {
  margin: 0;
  color: #414743;
  font-size: 12px;
}

.pagination nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
}

.pagination a:first-child,
.pagination a:last-child,
.pagination a.current {
  border-color: var(--color-border);
  background: white;
}

.ticket-detail {
  min-width: 0;
  padding: 0 20px 20px;
  background: #fdfdfd;
}

.detail-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-topbar a {
  color: var(--color-evergreen);
  font-size: 12px;
  font-weight: 700;
}

.detail-topbar button {
  border: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
}

.detail-summary > p {
  margin: 6px 0 17px;
  color: #444a46;
  font-size: 13px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-title-row h2 {
  margin: 0;
  color: #18231c;
  font: 400 23px/1.2 var(--font-heading);
}

.detail-title-row small {
  color: #4b514d;
  font-size: 11px;
}

.property-image {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  display: block;
  border-radius: 7px 7px 0 0;
  object-fit: cover;
  object-position: center top;
}

.resolution-grid {
  display: grid;
  grid-template-columns: 41% 59%;
  border: 1px solid #e2e3df;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.resolution-grid > div:first-child {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.resolution-grid > div + div {
  min-height: 49px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 12px;
  border-left: 1px solid #e2e3df;
}

.resolution-grid small {
  font-size: 10px;
  color: #4b514d;
}

.resolution-grid > div + div .res-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.resolution-grid strong {
  font-size: 12px;
  white-space: nowrap;
}

.resolution-grid em {
  color: #c32720;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}

.detail-section {
  padding: 16px 0;
  border-bottom: 1px solid #e5e6e2;
}

.section-heading {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h3 {
  margin: 0;
  font: 700 14px/1.3 var(--font-body);
}

.section-heading button,
.section-heading a {
  padding: 0;
  border: 0;
  color: var(--color-evergreen);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.issue-details p,
.materials p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 10px;
}

.thumbnail-grid img,
.thumbnail-grid button {
  width: 100%;
  aspect-ratio: 1.13 / 1;
  border-radius: 6px;
}

.thumbnail-grid img {
  object-fit: cover;
}

.thumbnail-grid img:nth-child(1) { object-position: 18% top; }
.thumbnail-grid img:nth-child(2) { object-position: 48% top; }
.thumbnail-grid img:nth-child(3) { object-position: 82% top; }

.thumbnail-grid button {
  border: 1px dashed #cfd0cc;
  color: #315043;
  background: #fafaf9;
  font-size: 25px;
  cursor: pointer;
}

.service-history article {
  position: relative;
  display: flex;
  gap: 10px;
  padding-top: 9px;
}

.service-history article + article::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 13px;
  width: 1px;
  height: 18px;
  background: #d9ddd9;
}

.service-history article img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.service-history article div {
  display: grid;
  font-size: 10px;
}

.service-history article strong {
  font-size: 11px;
}

.quick-actions {
  border-bottom: 0;
  padding-bottom: 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.action-grid button {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 5px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: white;
  font-size: 9px;
  cursor: pointer;
}

.action-grid button.highlight {
  border-color: var(--color-evergreen);
  color: white;
  background: var(--color-evergreen);
}

.action-grid img,
.action-grid svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

footer {
  margin-top: auto;
  background: var(--color-evergreen);
}

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

  .brand img {
    width: 174px;
  }

  .sidebar-nav a {
    gap: 11px;
    font-size: 14px;
  }

  .dashboard {
    grid-template-columns: minmax(670px, 1fr) 390px;
  }

  .ticket-listing {
    padding-right: 18px;
    padding-left: 18px;
  }

  .stat-card {
    grid-template-columns: 33px 1fr;
    padding-right: 8px;
    padding-left: 8px;
  }

  .stat-card > img,
  .stat-card > svg {
    width: 32px;
    height: 32px;
  }

  .filters {
    grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(76px, 0.6fr));
  }

  .filters > button {
    grid-column: -3 / -1;
  }
}

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

  .sidebar-nav {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sidebar-nav a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .insight-card {
    margin-right: 12px;
    margin-left: 12px;
  }

  .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .profile div,
  .profile > svg {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }

  .dashboard {
    display: block;
  }

  .ticket-listing {
    border-right: 0;
  }

  .ticket-detail {
    padding: 24px;
    border-top: 1px solid var(--color-border);
  }

  .detail-summary,
  .detail-section,
  .detail-topbar {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    overflow: visible;
  }

  .brand {
    padding: 14px 18px 8px;
  }

  .brand img {
    width: 180px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 9px 12px 14px;
  }

  .sidebar-nav a {
    min-width: max-content;
    min-height: 40px;
  }

  .insight-card {
    margin: 8px 16px 18px;
  }

  .sidebar-photo {
    position: relative;
    height: 150px;
  }

  .topbar {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .global-search {
    width: 100%;
  }

  .topbar-actions {
    justify-content: space-between;
    gap: 10px;
  }

  .date-button {
    flex: 1;
    justify-content: center;
  }

  .page-heading {
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions button {
    flex: 1;
  }

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

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

  .filters .ticket-search {
    grid-column: 1 / -1;
  }

  .filters > button {
    grid-column: 1 / -1;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .topbar-actions {
    flex-wrap: wrap;
  }

  .date-button {
    min-width: calc(100% - 65px);
  }

  .ticket-listing,
  .ticket-detail {
    padding-right: 14px;
    padding-left: 14px;
  }

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

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

  .filters .ticket-search,
  .filters > button {
    grid-column: auto;
  }

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

  .resolution-grid > div + div {
    border-top: 1px solid #e2e3df;
    border-left: 0;
  }

  .thumbnail-grid,
  .action-grid {
    grid-template-columns: repeat(2, 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;}
