/* Conservation Command Center — accent overrides (shared rules in hub-base.css) */
.cv-root {
  --hub-accent: var(--guide-color-action);
  --cv-easement: var(--guide-color-moss);
  --cv-habitat: var(--guide-color-mt-amber, #B45309);
  --cv-water: var(--guide-color-lake);
  --cv-program: var(--guide-color-plum);
}

/* ═══ Easement Cards (Item 13) ═════════════════════════════════════════════ */

.cv-easement-card {
  border: 1px solid var(--guide-color-line);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-3, #F7F5F0);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.cv-easement-card:hover {
  background: var(--bg-4, #EDEAE2);
  transform: translateX(3px);
  box-shadow: var(--guide-shadow-raised);
}


.cv-easement-type--federal  { color: var(--guide-color-lake); background: color-mix(in srgb, var(--guide-color-lake) 10%, transparent); }
.cv-easement-type--state    { color: var(--guide-color-moss); background: color-mix(in srgb, var(--guide-color-moss) 10%, transparent); }
.cv-easement-type--private  { color: var(--guide-color-ochre); background: color-mix(in srgb, var(--guide-color-ochre) 10%, transparent); }
.cv-easement-type--tribal   { color: var(--guide-color-plum); background: color-mix(in srgb, var(--guide-color-plum) 10%, transparent); }

.cv-easement-type--federal,
.cv-easement-type--state,
.cv-easement-type--private,
.cv-easement-type--tribal {
  display: inline-block;
  font-size: var(--guide-fs-2xs);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.3px;
  line-height: 16px;
}

.cv-easement-info {
  flex: 1;
  min-width: 0;
}
.cv-easement-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary, #1A1A1F);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cv-easement-desc {
  font-size: var(--text-xxs);
  color: var(--text-secondary, #4A4A52);
  line-height: 1.35;
  margin-top: 3px;
}

.cv-acres-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--guide-color-moss) 12%, transparent);
  color: var(--guide-color-moss);
  white-space: nowrap;
}

.cv-year-badge {
  display: inline-block;
  font-size: var(--guide-fs-2xs);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(22, 101, 52, 0.08);
  color: var(--hub-accent, #166534);
}

.cv-holder-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary, #6B6B73);
  margin-top: 2px;
}

/* ═══ Program Cards (Item 14) ══════════════════════════════════════════════ */

.cv-program-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-3, #F7F5F0);
  border: 1px solid var(--guide-color-line);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  position: relative;
}
.cv-program-card:hover {
  background: var(--bg-4, #EDEAE2);
  transform: translateX(2px);
}

.cv-program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cv-program-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary, #1A1A1F);
}
.cv-program-agency {
  font-size: var(--text-xs);
  color: var(--text-tertiary, #6B6B73);
  margin-top: 1px;
}

.cv-deadline {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--guide-color-status-crit) 10%, transparent);
  color: var(--guide-color-status-crit);
  white-space: nowrap;
}
.cv-deadline--soon {
  background: color-mix(in srgb, var(--guide-color-status-crit) 18%, transparent);
  animation: cv-pulse-green 2s ease-in-out infinite;
}
.cv-deadline--open {
  background: color-mix(in srgb, var(--guide-color-moss) 10%, transparent);
  color: var(--guide-color-moss);
}

.cv-eligible-badge {
  display: inline-block;
  font-size: var(--guide-fs-2xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.3px;
}
.cv-eligible-badge--yes {
  background: color-mix(in srgb, var(--guide-color-moss) 12%, transparent);
  color: var(--guide-color-moss);
}
.cv-eligible-badge--no {
  background: rgba(107, 114, 128, 0.12);
  color: var(--guide-color-status-mute, #6B7280);
}

.cv-funding-bar {
  height: 8px;
  background: var(--bg-0, #e5ddd0);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}
.cv-funding-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--guide-color-action);
  transition: width 0.3s ease;
}
.cv-funding-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--guide-fs-2xs);
  color: var(--text-tertiary, #6B6B73);
  margin-top: 2px;
}

.cv-enrollment-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}
.cv-enrollment-status--active {
  background: color-mix(in srgb, var(--guide-color-moss) 10%, transparent);
  color: var(--guide-color-moss);
}
.cv-enrollment-status--closed {
  background: rgba(107, 114, 128, 0.10);
  color: var(--guide-color-status-mute, #6B7280);
}
.cv-enrollment-status--pending {
  background: color-mix(in srgb, var(--guide-color-ochre) 10%, transparent);
  color: var(--guide-color-ochre);
}

/* ═══ Connectivity Visualization (Item 15) ═════════════════════════════════ */

.cv-corridor-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--guide-color-mt-red-bright, #DC2626), var(--guide-color-ochre), #84CC16, var(--guide-color-moss));
  position: relative;
  overflow: hidden;
}
.cv-corridor-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s ease;
}

.cv-gap-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--guide-color-status-crit);
  border: 2px solid color-mix(in srgb, var(--guide-color-status-crit) 30%, transparent);
  display: inline-block;
  position: relative;
}
.cv-gap-indicator::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--guide-color-status-crit) 30%, transparent);
  animation: cv-pulse-green 2s ease-out infinite;
}

.cv-fragmentation-gauge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 4px solid var(--bg-0, #e5ddd0);
  position: relative;
  background: var(--bg-3, #F7F5F0);
}
.cv-fragmentation-gauge-value {
  font-size: var(--guide-fs-lg);
  font-weight: 800;
  color: var(--text-primary, #1A1A1F);
  line-height: 1;
}
.cv-fragmentation-gauge-label {
  font-size: var(--guide-fs-2xs);
  color: var(--text-tertiary, #6B6B73);
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.3px;
}

.cv-crossing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(3, 105, 161, 0.10);
  color: var(--cv-water, #0369A1);
}

.cv-connectivity-score {
  text-align: center;
  padding: 12px;
}
.cv-connectivity-score-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--hub-accent, #166534);
  line-height: 1;
}
.cv-connectivity-score-label {
  font-size: var(--text-xxs);
  color: var(--text-tertiary, #6B6B73);
  margin-top: 4px;
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.5px;
}
.cv-connectivity-score-sublabel {
  font-size: var(--text-xs);
  color: var(--text-secondary, #4A4A52);
  margin-top: 2px;
}

/* ═══ Dashboard Cards ══════════════════════════════════════════════════════ */

.cv-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
}

.cv-dashboard-card {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-3, #F7F5F0);
  border: 1px solid var(--guide-color-line);
  transition: background 0.3s ease, transform 0.3s ease;
  text-align: center;
}
.cv-dashboard-card:hover {
  background: var(--bg-4, #EDEAE2);
}

.cv-dashboard-card-value {
  font-size: var(--guide-fs-2xl);
  font-weight: 800;
  color: var(--text-primary, #1A1A1F);
  line-height: 1.1;
}
.cv-dashboard-card-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary, #6B6B73);
  margin-top: 4px;
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.3px;
}
.cv-dashboard-card-trend {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: 4px;
}
.cv-dashboard-card-trend--up   { color: var(--guide-color-moss); }
.cv-dashboard-card-trend--down { color: var(--guide-color-status-crit); }

.cv-grade-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--guide-fs-2xl);
  font-weight: 800;
  color: var(--guide-color-text-on-accent, #fff);
  margin: 4px auto;
}
.cv-grade-circle--A { background: var(--guide-color-moss); }
.cv-grade-circle--B { background: #84CC16; }
.cv-grade-circle--C { background: var(--guide-color-ochre); }
.cv-grade-circle--D { background: var(--guide-color-clay); }
.cv-grade-circle--F { background: var(--guide-color-status-crit); }

.cv-indicator-bar {
  height: 6px;
  background: var(--bg-0, #e5ddd0);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.cv-indicator-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
  background: var(--hub-accent, #166534);
}

/* ═══ Scorecard ════════════════════════════════════════════════════════════ */

.cv-scorecard-domain {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-3, #F7F5F0);
  transition: background 0.3s ease;
}
.cv-scorecard-domain:hover {
  background: var(--bg-4, #EDEAE2);
}

.cv-domain-label {
  flex: 1;
  min-width: 0;
  font-size: var(--text-xxs);
  font-weight: 600;
  color: var(--text-primary, #1A1A1F);
}

.cv-domain-weight {
  font-size: var(--guide-fs-2xs);
  font-weight: 600;
  color: var(--text-tertiary, #6B6B73);
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(var(--guide-wash-rgb, 0, 0, 0), 0.04);
  white-space: nowrap;
}

.cv-domain-grade {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  color: var(--guide-color-text-on-accent, #fff);
  font-weight: 700;
  font-size: var(--text-xxs);
  text-align: center;
  flex-shrink: 0;
}

.cv-domain-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-0, #e5ddd0);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}
.cv-domain-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ═══ Basin Report ═════════════════════════════════════════════════════════ */

.cv-basin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-3, #F7F5F0);
  transition: background 0.3s ease;
  cursor: pointer;
}
.cv-basin-row:hover {
  background: var(--bg-4, #EDEAE2);
}
.cv-basin-row:nth-child(even) {
  background: rgba(var(--guide-wash-rgb, 0, 0, 0), 0.02);
}

.cv-basin-name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-xxs);
  font-weight: 600;
  color: var(--text-primary, #1A1A1F);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-basin-grade {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  color: var(--guide-color-text-on-accent, #fff);
  font-weight: 700;
  font-size: var(--text-xs);
  text-align: center;
  flex-shrink: 0;
}

.cv-basin-stat {
  font-size: var(--text-xs);
  font-weight: 600;
  min-width: 48px;
  text-align: right;
  color: var(--text-secondary, #4A4A52);
  white-space: nowrap;
}
.cv-basin-stat--highlight {
  color: var(--hub-accent, #166534);
  font-weight: 700;
}

.cv-basin-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-0, #e5ddd0);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.cv-basin-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ═══ Hex Panel ════════════════════════════════════════════════════════════ */

.cv-hex-panel {
  padding: 8px;
  border-radius: 10px;
  background: var(--bg-3, #F7F5F0);
  border: 1px solid var(--border-default, rgba(0, 0, 0, 0.08));
}

.cv-hex-mode-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--guide-radius-md, 8px);
  border: 1px solid var(--guide-color-line);
  background: var(--guide-color-paper-2);
}
.cv-hex-mode-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border: none;
  border-radius: var(--guide-radius-sm, 6px);
  background: transparent;
  color: var(--guide-color-ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.cv-hex-mode-btn:hover {
  color: var(--guide-color-ink);
}
.cv-hex-mode-btn--active {
  background: var(--guide-color-raised);
  box-shadow: var(--guide-shadow-rest);
  color: var(--guide-color-ink);
}

/* ═══ Insight / Alert Cards ════════════════════════════════════════════════ */

.cv-insight-card {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-3, #F7F5F0);
  border: 1px solid var(--guide-color-line);
  transition: background 0.3s ease;
}
.cv-insight-card:hover {
  background: var(--bg-4, #EDEAE2);
}

.cv-insight-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--hub-accent, #166534);
}
.cv-insight-card--critical .cv-insight-icon { color: var(--guide-color-status-crit); }
.cv-insight-card--warn .cv-insight-icon     { color: var(--guide-color-ochre); }
.cv-insight-card--info .cv-insight-icon     { color: var(--guide-color-lake); }

.cv-insight-content { flex: 1; min-width: 0; }
.cv-insight-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary, #1A1A1F);
}
.cv-insight-body {
  font-size: var(--text-xxs);
  color: var(--text-secondary, #4A4A52);
  line-height: 1.4;
  margin-top: 2px;
}
.cv-insight-meta {
  font-size: var(--guide-fs-2xs);
  color: var(--text-tertiary, #6B6B73);
  margin-top: 3px;
}

/* .cv-alert chrome retired — now styled by the unified global
   [class$="-alert"] rule in components.css so alerts and insight
   cards share the same chrome inside .hub-intel-card. */

/* ═══ Layer Toggles ════════════════════════════════════════════════════════ */

.cv-layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--bg-3, #F7F5F0);
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}
.cv-layer-toggle:hover {
  background: var(--bg-4, #EDEAE2);
}
.cv-layer-toggle--active {
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid var(--guide-color-line);
}

.cv-layer-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hub-accent, #166534);
  flex-shrink: 0;
}
.cv-layer-text { flex: 1; min-width: 0; }
.cv-layer-name {
  font-size: var(--text-xxs);
  font-weight: 600;
  color: var(--text-primary, #1A1A1F);
}
.cv-layer-sub {
  font-size: var(--guide-fs-2xs);
  color: var(--text-tertiary, #6B6B73);
}

.cv-layer-switch {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--bg-0, #e5ddd0);
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.cv-layer-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--guide-shadow-rest);
  transition: transform 0.3s ease;
}
.cv-layer-toggle--active .cv-layer-switch {
  background: var(--hub-accent, #166534);
}
.cv-layer-toggle--active .cv-layer-switch::after {
  transform: translateX(14px);
}

/* ═══ Animations ═══════════════════════════════════════════════════════════ */



.cv-easement-card,
.cv-program-card,
.cv-dashboard-card,
.cv-insight-card,
.cv-alert,
.cv-basin-row {
  animation: cv-fadeIn 0.3s ease both;
}

.cv-easement-card:nth-child(2)  { animation-delay: 0.05s; }
.cv-easement-card:nth-child(3)  { animation-delay: 0.10s; }
.cv-easement-card:nth-child(4)  { animation-delay: 0.15s; }
.cv-easement-card:nth-child(5)  { animation-delay: 0.20s; }

.cv-dashboard-card:nth-child(2) { animation-delay: 0.05s; }
.cv-dashboard-card:nth-child(3) { animation-delay: 0.10s; }
.cv-dashboard-card:nth-child(4) { animation-delay: 0.15s; }
.cv-dashboard-card:nth-child(5) { animation-delay: 0.20s; }
.cv-dashboard-card:nth-child(6) { animation-delay: 0.25s; }

/* ═══ Mobile Responsive — 768px ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .cv-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-easement-card {
    padding: 6px 8px;
  }
  .cv-easement-name {
    font-size: var(--text-xxs);
  }
  .cv-easement-desc {
    font-size: var(--text-xs);
  }

  .cv-program-card {
    padding: 8px 10px;
  }
  .cv-program-name {
    font-size: var(--text-xxs);
  }

  .cv-connectivity-score-value {
    font-size: var(--guide-fs-3xl);
  }
  .cv-fragmentation-gauge {
    width: 52px;
    height: 52px;
    border-width: 3px;
  }
  .cv-fragmentation-gauge-value {
    font-size: var(--guide-fs-base);
  }

  .cv-grade-circle {
    width: 40px;
    height: 40px;
    font-size: var(--guide-fs-lg);
  }

  .cv-dashboard-card-value {
    font-size: var(--text-xl);
  }

  .cv-basin-row {
    padding: 5px 6px;
    gap: 6px;
  }
  .cv-basin-stat {
    font-size: var(--guide-fs-2xs);
    min-width: 40px;
  }
  .cv-basin-bar {
    width: 48px;
  }

  .cv-scorecard-domain {
    padding: 5px 6px;
    gap: 6px;
  }

  .cv-insight-body {
    margin-left: 0;
    margin-top: 4px;
  }

  .cv-layer-toggle {
    padding: 4px 6px;
    gap: 6px;
  }
  .cv-layer-name {
    font-size: var(--text-xs);
  }

  .cv-hex-mode-btn {
    font-size: var(--guide-fs-2xs);
    padding: 3px 8px;
  }

  .cv-alert {
    padding: 6px 8px;
  }
}

/* ═══ Mobile Responsive — 480px ═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .cv-dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .cv-easement-card {
    flex-direction: column;
    gap: 4px;
    padding: 5px 8px;
  }
  .cv-easement-name {
    font-size: var(--text-xs);
    flex-wrap: wrap;
  }
  .cv-acres-badge {
    font-size: var(--guide-fs-2xs);
    padding: 1px 6px;
  }
  .cv-year-badge {
    font-size: var(--guide-fs-2xs);
    padding: 1px 4px;
  }

  .cv-program-card {
    padding: 6px 8px;
  }
  .cv-program-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cv-funding-bar {
    height: 6px;
  }

  .cv-connectivity-score-value {
    font-size: var(--text-2xl);
  }
  .cv-fragmentation-gauge {
    width: 44px;
    height: 44px;
    border-width: 3px;
  }
  .cv-fragmentation-gauge-value {
    font-size: var(--text-md);
  }
  .cv-corridor-bar {
    height: 8px;
  }

  .cv-grade-circle {
    width: 34px;
    height: 34px;
    font-size: var(--guide-fs-base);
  }
  .cv-dashboard-card {
    padding: 6px;
  }
  .cv-dashboard-card-value {
    font-size: var(--text-lg);
  }
  .cv-dashboard-card-label {
    font-size: var(--guide-fs-2xs);
  }

  .cv-basin-row {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 6px;
  }
  .cv-basin-name {
    font-size: var(--text-xs);
    min-width: 100%;
  }
  .cv-basin-bar {
    width: 40px;
    height: 4px;
  }
  .cv-basin-stat {
    font-size: var(--guide-fs-2xs);
    min-width: 36px;
  }

  .cv-scorecard-domain {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 6px;
  }
  .cv-domain-label {
    font-size: var(--text-xs);
    min-width: 100%;
  }
  .cv-domain-bar {
    min-width: 40px;
  }

  .cv-insight-card {
    padding: 6px 8px;
  }
  .cv-insight-title {
    font-size: var(--text-xxs);
  }
  .cv-insight-body {
    font-size: var(--text-xs);
  }

  .cv-alert {
    flex-wrap: wrap;
    padding: 5px 6px;
  }
  .cv-alert-text {
    font-size: var(--text-xs);
  }
  .cv-alert-time {
    margin-left: 0;
    width: 100%;
  }

  .cv-layer-toggle {
    padding: 3px 5px;
    gap: 5px;
  }
  .cv-layer-name {
    font-size: var(--guide-fs-2xs);
  }
  .cv-layer-switch {
    width: 28px;
    height: 16px;
  }
  .cv-layer-switch::after {
    width: 12px;
    height: 12px;
  }
  .cv-layer-toggle--active .cv-layer-switch::after {
    transform: translateX(12px);
  }

  .cv-hex-mode-btn {
    font-size: var(--guide-fs-2xs);
    padding: 2px 6px;
  }
}

/* Dark-theme overrides — amber #D97706 text fails on dark surfaces; easement
   type chip gets dark-mode adjusted background. */
[data-theme="dark"] .cv-grade-circle--C        { background: var(--guide-color-ochre); } /* amber on white circle — fine */
[data-theme="dark"] .cv-insight-card--warn .cv-insight-icon { color: var(--guide-color-status-watch); }
