:root {
  --color-canvas: #fbfbfb;
  --color-surface: #fdfdfd;
  --color-soft: #f4f3f2;
  --color-evergreen: #04281b;
  --color-evergreen-light: #1c3d2b;
  --color-muted: #6f756f;
  --color-border: #e1e4e1;
  --color-gold: #d9940d;
  --color-sage: #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: 9px;
}

* {
  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-canvas);
  color: #17231d;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(217, 148, 13, 0.65);
  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 {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(160deg, #053c2b 0%, var(--color-evergreen) 62%, #031d15 100%);
  color: #fff;
}

.sidebar-inner {
  position: relative;
  z-index: 2;
  padding: 28px 18px 310px;
}

.brand {
  display: block;
  width: 215px;
  margin-bottom: 54px;
}

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

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(83, 143, 91, 0.3);
}

.side-nav a.active {
  color: #fff;
}

.side-nav img {
  width: 23px;
  height: 23px;
  margin-right: 15px;
  object-fit: contain;
}

.achievement {
  margin: 36px 4px 0;
  padding: 18px;
  border: 1px solid rgba(217, 148, 13, 0.55);
  border-radius: 10px;
  background: rgba(2, 42, 29, 0.73);
  box-shadow: var(--shadow-sm);
}

.achievement-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievement-heading img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

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

.achievement p {
  margin: 12px 0 13px;
  font-size: 14px;
  line-height: 1.4;
}

.achievement a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(35, 104, 71, 0.55);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-house {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center bottom;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-canvas);
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 34px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(253, 253, 253, 0.96);
}

.search {
  width: min(410px, 40vw);
  position: relative;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 15px 0 42px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-evergreen);
}

.search input::placeholder {
  color: #7d817e;
}

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

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

.date-button > svg:first-child {
  width: 18px;
  height: 18px;
}

.chevron {
  width: 16px;
  height: 16px;
}

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

.notification-button svg {
  width: 24px;
  height: 24px;
}

.notification-button span {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

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

.avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
}

.profile-copy {
  display: grid;
}

.profile-copy strong {
  font-size: 15px;
}

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

main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

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

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

.title-row h1 {
  margin: 0;
  color: var(--color-evergreen);
  font-family: var(--font-heading);
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

.beta {
  padding: 3px 10px;
  border-radius: 6px;
  background: #e4eee7;
  color: var(--color-evergreen-light);
  font-size: 13px;
  font-weight: 700;
}

.page-intro p {
  margin: 6px 0 0;
  color: #455149;
}

.intro-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.button svg {
  width: 20px;
  height: 20px;
}

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

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

.progress {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fff;
}

.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #959995;
  font-size: 15px;
}

.progress-step + .progress-step {
  border-left: 1px solid var(--color-border);
}

.progress-step > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d4d4d4;
  color: #fff;
  font-weight: 700;
}

.progress-step b {
  color: var(--color-evergreen);
}

.progress-step.complete,
.progress-step.current {
  color: var(--color-evergreen);
}

.progress-step.complete > span {
  background: #deebe1;
  color: var(--color-evergreen);
}

.progress-step.current {
  box-shadow: 7px 0 12px rgba(0, 0, 0, 0.05);
}

.progress-step.current > span {
  background: var(--color-evergreen);
}

.studio-layout {
  display: grid;
  grid-template-columns: 240px minmax(400px, 1fr) 340px;
  align-items: start;
  gap: 16px;
}

.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.project-column {
  display: grid;
  gap: 16px;
}

.saved-panel,
.recent-panel {
  padding: 15px;
}

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

.panel-heading h2,
.recent-panel h2,
.controls-heading h2 {
  margin: 0;
  color: #17231d;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
}

.mini-button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
  color: var(--color-evergreen);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.saved-list {
  display: grid;
  gap: 9px;
}

.saved-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.saved-item.selected {
  border-color: #74a383;
  background: #f7fbf8;
}

.saved-item > img {
  width: 58px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center bottom;
}

.saved-item h3,
.recent-list h3 {
  overflow: hidden;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item p,
.recent-list p {
  overflow: hidden;
  margin: 3px 0;
  color: #4e5852;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item small {
  color: #7c837e;
  font-size: 10px;
}

.saved-item button {
  align-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.panel-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--color-evergreen);
  font-size: 12px;
  font-weight: 700;
}

.recent-panel h2 {
  margin-bottom: 14px;
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.recent-list img {
  width: 57px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center bottom;
}

.preview-column {
  min-width: 0;
}

.comparison {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 9px;
  background: #081a18;
  box-shadow: var(--shadow-sm);
}

.comparison-half {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.comparison-half img {
  position: absolute;
  inset: 0;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.comparison-before img {
  left: 0;
  filter: brightness(0.55) saturate(0.65) hue-rotate(10deg);
}

.comparison-after img {
  right: 0;
  left: auto;
  filter: brightness(1.1) saturate(1.18) contrast(1.05);
}

.comparison-half > span {
  position: absolute;
  z-index: 2;
  top: 20px;
  padding: 7px 13px;
  border-radius: 5px;
  background: rgba(2, 17, 19, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.comparison-before > span {
  left: 12px;
}

.comparison-after > span {
  right: 12px;
}

.comparison-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(34, 37, 31, 0.84);
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
}

.comparison-handle::before {
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 1px;
  height: 310px;
  background: #fff;
  content: "";
}

.comparison-handle::after {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 1px;
  height: 310px;
  background: #fff;
  content: "";
}

.comparison-handle svg {
  width: 28px;
  height: 28px;
}

.image-tools {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.image-tools button {
  min-width: 31px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid #ddd;
  background: transparent;
  color: #56615b;
  font-size: 12px;
  cursor: pointer;
}

.image-tools button:last-child {
  border-right: 0;
}

.image-tools svg {
  width: 16px;
  height: 16px;
}

.view-strip {
  display: grid;
  grid-template-columns: 68px repeat(4, minmax(65px, 1fr)) 68px;
  gap: 10px;
  margin-top: 16px;
}

.add-view,
.view-card {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.add-view {
  min-height: 111px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #cdd1ce;
  border-radius: 8px;
  color: #555e58;
  font-size: 12px;
}

.add-view svg {
  width: 26px;
  height: 26px;
  color: #18251f;
}

.view-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  color: #26332c;
  font-size: 12px;
}

.view-card .thumb {
  position: relative;
  height: 87px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
}

.view-card.active .thumb {
  border-color: #33734e;
}

.view-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.view-card b {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fff;
  color: var(--color-evergreen);
}

.controls {
  padding: 17px;
}

.controls-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.controls-heading button {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.controls-heading svg {
  width: 19px;
  height: 19px;
}

.control-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.control-group legend,
.brightness > label {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.style-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.style-options label {
  min-width: 0;
  text-align: center;
  cursor: pointer;
}

.style-options input,
.color-mode input,
.package-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-options img {
  width: 100%;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  object-fit: cover;
  object-position: center bottom;
}

.style-options label.selected img {
  border-color: #497d58;
}

.style-options label.colorful img {
  filter: hue-rotate(245deg) saturate(1.7);
}

.style-options span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-toggles {
  margin: 17px -17px 15px;
  border-top: 1px solid var(--color-border);
}

.feature-toggles button {
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.feature-toggles span {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
}

.feature-toggles img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.feature-toggles b {
  color: #17603c;
  font-size: 12px;
  font-weight: 500;
}

.feature-toggles svg {
  width: 16px;
  height: 16px;
}

.color-mode > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-mode label {
  min-height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.color-mode label.selected {
  border-color: #5d8d6b;
  background: #f5faf6;
  color: var(--color-evergreen);
  font-weight: 700;
}

.brightness {
  margin: 16px 0;
}

.brightness > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
}

.brightness svg {
  width: 20px;
  height: 20px;
}

.brightness input {
  width: 100%;
  accent-color: #17603c;
}

.brightness output {
  padding: 5px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
}

.package-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.package-heading legend {
  margin: 0;
}

.package-heading span {
  color: #555d58;
  font-size: 11px;
}

.package-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.package-options label {
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.package-options label.selected {
  border-color: #347450;
  background: #f7fbf8;
}

.package-options strong {
  margin-bottom: 4px;
}

.package-options img {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.ai-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #eadfc4;
  border-radius: 8px;
  background: #fffaf0;
}

.ai-card > img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ai-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.ai-card p {
  margin: 2px 0 0;
  color: #4d554f;
  font-size: 10px;
  line-height: 1.3;
}

.switch {
  position: relative;
  margin-top: 8px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch i {
  position: relative;
  width: 38px;
  height: 22px;
  display: block;
  border-radius: 20px;
  background: var(--color-evergreen);
}

.switch i::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.notes {
  position: relative;
  margin-top: 17px;
}

.notes h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
}

.notes h3 span {
  color: #67716a;
  font-weight: 400;
}

.notes textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 11px 12px 25px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  color: #243128;
  font-size: 12px;
}

.notes small {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #818681;
  font-size: 11px;
}

.app-footer {
  flex: 0 0 auto;
}

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

  .sidebar-inner {
    padding-inline: 14px;
  }

  .brand {
    width: 190px;
  }

  .topbar {
    padding-inline: 24px;
  }

  .profile-copy {
    display: none;
  }

  main {
    padding: 26px 24px;
  }

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

  .intro-actions {
    flex-wrap: wrap;
  }

  .studio-layout {
    grid-template-columns: 220px minmax(390px, 1fr);
  }

  .controls {
    grid-column: 1 / -1;
  }

  .comparison {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
  }

  .sidebar-inner {
    padding: 16px;
  }

  .brand {
    width: 185px;
    margin-bottom: 18px;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .side-nav img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .achievement,
  .sidebar-house {
    display: none;
  }

  .workspace {
    min-height: calc(100vh - 144px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 20px;
  }

  .search {
    width: 100%;
  }

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

  .profile-copy {
    display: grid;
  }

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

  .intro-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .project-column {
    grid-template-columns: 1fr 1fr;
  }

  .preview-column {
    grid-row: 1;
  }

  .controls {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .side-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .date-button {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
    font-size: 13px;
  }

  .profile-copy {
    display: none;
  }

  main {
    padding: 22px 14px;
  }

  .title-row h1 {
    font-size: 38px;
  }

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

  .button {
    width: 100%;
    padding-inline: 12px;
  }

  .button-primary {
    grid-column: 1 / -1;
  }

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

  .progress-step {
    min-height: 48px;
  }

  .progress-step + .progress-step {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .comparison {
    min-height: 460px;
  }

  .comparison-handle::before,
  .comparison-handle::after {
    height: 230px;
  }

  .image-tools {
    max-width: calc(100% - 20px);
    overflow-x: auto;
  }

  .view-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .add-view {
    min-height: 95px;
  }

  .project-column {
    grid-template-columns: 1fr;
  }

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

  .style-options img {
    height: 82px;
  }

  .color-mode > div,
  .package-options {
    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;}
