/* Interactive figure styles moved from the legacy global stylesheet (heart, ECG, glucose explorer). */

@keyframes bloodFlowOut {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes bloodFlowIn {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

ul.grid,
ul.editorial-columns-3,
ul.editorial-principles,
ul.transparency-grid,
ul.vital-subgrid,
ul.glucose-metrics-row,
ul.spec-grid,
ul.editorial-insights-grid {
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.telemetry-console {
  background: var(--white);
  border: 1px solid rgba(16, 45, 67, 0.14);
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(16, 45, 67, 0.05),
    0 18px 40px -22px rgba(16, 45, 67, 0.26);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.telemetry-console:hover {
  box-shadow:
    0 4px 10px rgba(16, 45, 67, 0.06),
    0 24px 48px -22px rgba(16, 45, 67, 0.32);
}

.telemetry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.78rem 1.1rem;
  background: linear-gradient(180deg, #FBF9F5 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--border);
}

.telemetry-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C8233C;
  box-shadow: 0 0 0 3px rgba(200, 35, 60, 0.22);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}

.live-pulse-dot.is-beat {
  transform: scale(1.45);
  box-shadow: 0 0 0 8px rgba(200, 35, 60, 0.08);
}

.rhythm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.rhythm-btn {
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.24rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.15s ease, box-shadow 0.16s ease;
}

.rhythm-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

.rhythm-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 10px -4px rgba(16, 45, 67, 0.45);
}

.rhythm-btn-xs {
  padding: 0.16rem 0.54rem;
  font-size: 0.68rem;
}

.telemetry-body {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.telemetry-top-split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 600px) {
  .telemetry-top-split {
    grid-template-columns: 1fr;
  }
}

.heart-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(200, 52, 75, 0.09) 0%, rgba(250, 249, 246, 0.92) 66%),
    var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 0.75rem 0.75rem;
  min-height: 226px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.heart-stage:hover {
  border-color: rgba(180, 35, 60, 0.45);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 60, 0.08), 0 8px 20px -14px rgba(180, 35, 60, 0.35);
}

.heart-phase-pill {
  position: absolute;
  top: 0.55rem;
  left: 0.6rem;
  padding: 0.16rem 0.54rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.heart-stage.is-systole .heart-phase-pill {
  border-color: #C84D62;
  background: #FFF3F5;
  color: #9A1E33;
  transform: scale(1.03);
}

.heart-tap-hint {
  position: absolute;
  top: 0.58rem;
  right: 0.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.heart-stage:hover .heart-tap-hint {
  opacity: 1;
  color: #A12438;
}

.heart-pulse-ring {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 2px solid rgba(196, 40, 66, 0.28);
  pointer-events: none;
  opacity: 0.2;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.heart-pulse-ring-outer {
  width: 168px;
  height: 168px;
  border-width: 1.25px;
  border-color: rgba(21, 154, 156, 0.22);
  opacity: 0.08;
  transform: scale(0.88);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

.heart-stage.is-systole .heart-pulse-ring {
  transform: scale(1.24);
  opacity: 0.68;
}

.heart-stage.is-systole .heart-pulse-ring-outer {
  transform: scale(1.36);
  opacity: 0.42;
}

.heart-svg {
  width: 186px;
  height: 186px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(130, 22, 40, 0.18));
}

.heart-organ-group {
  transform-origin: 110px 116px;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.heart-stage.is-atrial .heart-organ-group {
  transform: scale(1.028, 1.015);
}

.heart-stage.is-systole .heart-organ-group {
  transform: scale(1.095, 1.058);
}

.blood-stream-arterial {
  stroke-dasharray: 6 10;
  animation: bloodFlowOut 1.05s linear infinite;
}

.blood-stream-venous {
  stroke-dasharray: 6 10;
  animation: bloodFlowIn 1.25s linear infinite;
}

.heart-stage.is-paused .blood-stream-arterial,
.heart-stage.is-paused .blood-stream-venous {
  animation-play-state: paused;
}

.vessel-legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.vital-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vital-box:hover {
  border-color: rgba(21, 154, 156, 0.45);
  box-shadow: 0 6px 14px -12px rgba(16, 45, 67, 0.24);
}

.vital-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.vital-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.vital-number {
  font-family: var(--font-mono);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: #B4233C;
  display: inline-block;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s ease;
}

.vital-number.is-beat {
  transform: scale(1.09);
  color: #D62844;
}

.vital-number.teal {
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.vital-unit {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.systole-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #F4E6E9;
  margin-top: 0.48rem;
  overflow: hidden;
}

.systole-bar-fill {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D9485B 0%, #159A9C 100%);
  transition: width 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.systole-bar-fill.is-beat {
  width: 92%;
}

.vital-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.vital-mini {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.48rem 0.55rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.vital-mini:hover {
  background: var(--white);
  border-color: var(--teal);
}

.vital-mini span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vital-mini strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.1rem;
}

.ecg-monitor {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem 0.65rem;
}

.ecg-monitor-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ecg-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ecg-signal-tag {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.ecg-canvas {
  width: 100%;
  height: 130px;
  display: block;
  border: 1px solid #E5C8CC;
  border-radius: 4px;
}

.rhythm-caption {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-body);
}

.rhythm-caption strong {
  color: var(--navy);
}

.telemetry-disclaimer {
  padding: 0.62rem 1.1rem;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.glucose-panel {
  background: var(--white);
  border: 1px solid rgba(16, 45, 67, 0.14);
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(16, 45, 67, 0.04),
    0 18px 38px -22px rgba(16, 45, 67, 0.24);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.glucose-panel:hover {
  box-shadow:
    0 4px 10px rgba(16, 45, 67, 0.05),
    0 24px 48px -22px rgba(16, 45, 67, 0.3);
}

.glucose-panel-header {
  background: linear-gradient(180deg, #FBF9F5 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.glucose-sheet-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  margin-bottom: 0.15rem;
}

.glucose-panel-header h3 {
  color: var(--navy);
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.glucose-unit-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.glucose-tab {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 4px;
  padding: 0.22rem 0.64rem;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.glucose-tab.is-active {
  background: var(--navy);
  color: var(--white);
}

.glucose-panel-body {
  padding: 1.2rem 1.25rem;
}

.glucose-scenario-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
}

.scenario-pill {
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.15s ease, box-shadow 0.16s ease;
}

.scenario-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

.scenario-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 10px -4px rgba(16, 45, 67, 0.42);
}

.glucose-chart-wrap {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-bottom: 0.95rem;
  cursor: crosshair;
  transition: border-color 0.18s ease;
}

.glucose-chart-wrap:hover {
  border-color: rgba(21, 154, 156, 0.45);
}

.glucose-chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.glucose-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
}

.glucose-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  transition: background 0.2s ease;
}

.glucose-chart-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.glucose-svg {
  width: 100%;
  height: auto;
  display: block;
}

.glucose-curve-path {
  transition: d 0.35s ease, stroke 0.25s ease;
}

.glucose-curve-area {
  transition: d 0.35s ease, opacity 0.25s ease;
}

.glucose-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .glucose-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.glucose-metric-card {
  background: var(--white);
  padding: 0.65rem 0.75rem;
  border-right: 1px solid var(--border);
  transition: background 0.22s ease;
}

.glucose-metric-card.is-flash {
  background: var(--teal-soft);
}

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

.glucose-metric-card span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.glucose-metric-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.18rem;
}

.metabolic-sandbox {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem 1rem;
}

.metabolic-sandbox-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.cm-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 45, 67, 0.08);
  overflow: hidden;
  margin: 0 0 0.85rem;
}

.cm-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #159A9C 0%, #D97706 58%, #D9485B 100%);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sandbox-sliders {
  display: grid;
  gap: 0.6rem;
}

.sandbox-slider-row {
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
}

.sandbox-slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sandbox-slider-meta strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.sandbox-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--teal-dark);
  cursor: pointer;
  height: 5px;
}

.public-site .trad-figure,
.public-site .telemetry-console,
.public-site .glucose-panel {
  background: #FFFFFF;
  border: none;
  border-top: 2px solid #102D43;
  border-bottom: 1px solid #BBBBBB;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-top: 0.9rem;
}

.public-site .telemetry-console:hover,
.public-site .glucose-panel:hover {
  box-shadow: none;
}

.public-site .telemetry-header,
.public-site .glucose-panel-header {
  background: #F4F6F8;
  border-bottom: 1px solid #CCCCCC;
  padding: 0.55rem 0.75rem;
}

.public-site .telemetry-body,
.public-site .glucose-panel-body {
  padding: 0.95rem 0;
}

.classic-ecg-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .classic-ecg-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.public-site .heart-stage {
  background: transparent;
  border: none;
  border-right: 1px solid #CCCCCC;
  border-radius: 0;
  padding: 1.5rem 1rem 0.4rem 0;
  min-height: 235px;
}

@media (max-width: 800px) {
  .public-site .heart-stage {
    border-right: none;
    border-bottom: 1px solid #CCCCCC;
    padding: 1.5rem 0 0.85rem;
  }
}

.public-site .heart-stage:hover {
  border-color: #CCCCCC;
  box-shadow: none;
}

.public-site .heart-phase-pill {
  left: 0;
  border-radius: 0;
  border-color: #999999;
  background: #F4F6F8;
}

.public-site .heart-tap-hint {
  right: 1rem;
}

.classic-ecg-column {
  display: grid;
  gap: 0.85rem;
}

.classic-vitals-bar {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.35fr;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #CCCCCC;
}

@media (max-width: 720px) {
  .classic-vitals-bar {
    grid-template-columns: 1fr;
  }
}

.public-site .vital-box,
.public-site .vital-mini,
.public-site .ecg-monitor {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.public-site .vital-box:hover,
.public-site .vital-mini:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.public-site .vital-subgrid {
  gap: 0.65rem;
  align-items: center;
}

.public-site .vital-mini {
  border-left: 1px solid #CCCCCC;
  padding-left: 0.6rem;
}

.public-site .rhythm-btn,
.public-site .scenario-pill,
.public-site .glucose-tab {
  background: #EFEFEF;
  color: #1A1A1A;
  border: 1px solid #888888;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  transition: none;
}

.public-site .rhythm-btn:hover,
.public-site .scenario-pill:hover,
.public-site .glucose-tab:hover {
  background: #E0E4E8;
  border-color: #444444;
  color: #000000;
  transform: none;
  box-shadow: none;
}

.public-site .rhythm-btn.is-active,
.public-site .scenario-pill.is-active,
.public-site .glucose-tab.is-active {
  background: #102D43;
  border-color: #0A1F30;
  color: #FFFFFF;
  box-shadow: none;
}

.public-site .glucose-unit-toggle {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 0.25rem;
}

.public-site .ecg-signal-tag {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #0F7B7D;
}

.public-site .ecg-canvas {
  height: 142px;
  border: 1px solid #C8B2B6;
  border-radius: 0;
}

.public-site .rhythm-caption {
  border-top: none;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  color: #333333;
}

.public-site .telemetry-disclaimer {
  background: #F8F9FA;
  border-top: 1px solid #CCCCCC;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
  color: #444444;
}

.public-site .glucose-chart-wrap {
  background: transparent;
  border: none;
  border-bottom: 1px solid #CCCCCC;
  border-radius: 0;
  padding: 0.3rem 0 0.85rem;
  margin-bottom: 0.85rem;
}

.public-site .glucose-chart-wrap:hover {
  border-color: #CCCCCC;
}

.public-site .glucose-live-pill {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.78rem;
}

.public-site .glucose-metrics-row {
  border: none;
  border-bottom: 1px solid #CCCCCC;
  border-radius: 0;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}

.public-site .glucose-metric-card {
  background: transparent;
  padding: 0.15rem 0.8rem 0.15rem 0;
  border-right: 1px solid #CCCCCC;
}

.public-site .glucose-metric-card:not(:first-child) {
  padding-left: 0.8rem;
}

.public-site .glucose-metric-card:last-child {
  border-right: none;
}

.public-site .metabolic-sandbox {
  background: transparent;
  border: none;
  border-top: 1px solid #CCCCCC;
  border-radius: 0;
  padding: 0.85rem 0 0.2rem;
}

.public-site .cm-meter {
  border-radius: 0;
  height: 5px;
}

.public-site .cm-meter-fill {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .blood-stream-arterial,
  .blood-stream-venous,
  .footer-live-dot {
    animation: none;
  }
  .heart-organ-group,
  .heart-pulse-ring,
  .heart-pulse-ring-outer,
  .systole-bar-fill,
  .cm-meter-fill,
  .btn,
  .editorial-col,
  .spec-sheet,
  .insight-item,
  html.js-anim-ready [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/*
 * Website App Stylesheet (website/static/website/css/website.css)
 * Loaded after static/css/multition.css on all `website` app routes
 * (home, technologies, research overview, about, insights, careers, contact, legal, custom CMS pages).
 *
 * Customize public website typography, palette overrides, or section spacing here
 * without affecting internal Workspace, Research Lab, Deployments, or Security Ops apps.
 */

body[data-app="website"] {
  --website-accent: var(--teal);
  --website-ink: var(--navy);
  --website-border: #d0d7de;
}

/* Public masthead & editorial rhythm hooks */
body[data-app="website"] .trad-navbar a.is-active {
  background-color: var(--website-accent);
}

/* Custom CMS pages & legal document readability */
body[data-app="website"] .cms-article-body p {
  max-width: 78ch;
}

/* ==========================================================================
   MODERN CARDIAC TELEMETRY & 3D ANATOMICAL HEART CONSOLE (Figure 1)
   Uses real-time CSS custom properties driven by website.js biomechanics.
   ========================================================================== */

body[data-app="website"] .heart-modern-console {
  --cardio-bg: linear-gradient(155deg, #071421 0%, #0b1f33 52%, #091727 100%);
  --cardio-surface: rgba(255, 255, 255, 0.045);
  --cardio-surface-strong: rgba(255, 255, 255, 0.08);
  --cardio-border: rgba(148, 184, 214, 0.18);
  --cardio-text: #f1f5f9;
  --cardio-muted: #94a9be;
  --cardio-crimson: #f43f5e;
  --cardio-teal: #2dd4bf;
  --cardio-gold: #fde047;

  background: var(--cardio-bg);
  color: var(--cardio-text);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 16px;
  box-shadow:
    0 24px 48px -24px rgba(7, 20, 33, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  margin-top: 1.15rem;
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Header & Modern Segmented Controls */
body[data-app="website"] .heart-modern-console .heart-modern-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.2rem;
  background: rgba(5, 14, 24, 0.72);
  border-bottom: 1px solid var(--cardio-border);
  backdrop-filter: blur(10px);
}

body[data-app="website"] .heart-modern-console .telemetry-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cardio-text);
}

body[data-app="website"] .heart-modern-console .heart-console-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

body[data-app="website"] .heart-modern-console .heart-console-brand strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

body[data-app="website"] .heart-modern-console .heart-console-brand small {
  font-size: 0.72rem;
  color: var(--cardio-muted);
  letter-spacing: 0.03em;
}

body[data-app="website"] .heart-modern-console .live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cardio-crimson);
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.65), 0 0 12px rgba(244, 63, 94, 0.85);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

body[data-app="website"] .heart-modern-console .live-pulse-dot.is-beat {
  transform: scale(1.42);
  box-shadow: 0 0 0 7px rgba(244, 63, 94, 0), 0 0 18px rgba(244, 63, 94, 1);
}

body[data-app="website"] .heart-modern-console .rhythm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-app="website"] .heart-modern-console .rhythm-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7f3;
  border: 1px solid rgba(148, 184, 214, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.76rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.18s ease;
}

body[data-app="website"] .heart-modern-console .rhythm-btn:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(45, 212, 191, 0.55);
}

body[data-app="website"] .heart-modern-console .rhythm-btn:focus-visible {
  outline: 2px solid var(--cardio-teal);
  outline-offset: 2px;
}

body[data-app="website"] .heart-modern-console .rhythm-btn.is-active {
  background: linear-gradient(135deg, #159a9c 0%, #0f766e 100%);
  border-color: rgba(94, 234, 212, 0.65);
  color: #ffffff;
  box-shadow: 0 0 18px -4px rgba(45, 212, 191, 0.72);
}

body[data-app="website"] .heart-modern-console .rhythm-btn[data-rhythm-preset="arrhythmia"].is-active {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 18px -4px rgba(244, 63, 94, 0.75);
}

body[data-app="website"] .heart-modern-console .rhythm-btn[data-heart-audio].is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(125, 211, 252, 0.7);
}

body[data-app="website"] .heart-modern-console .rhythm-btn-xs {
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
}

/* Main Telemetry Grid */
body[data-app="website"] .heart-modern-console .heart-modern-layout {
  display: grid;
  grid-template-columns: minmax(255px, 295px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.2rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  body[data-app="website"] .heart-modern-console .heart-modern-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* 3D Interactive Anatomical Heart Stage */
body[data-app="website"] .heart-modern-console .heart-modern-stage {
  --systole-energy: 0;
  --atrial-energy: 0;
  --aortic-energy: 0;
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2.35rem 1rem 0.9rem;
  min-height: 310px;
  border-radius: 14px;
  border: 1px solid var(--cardio-border);
  background:
    radial-gradient(circle at 50% 48%, rgba(244, 63, 94, 0.16) 0%, rgba(15, 34, 54, 0.94) 68%),
    #071421;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  perspective: 760px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

body[data-app="website"] .heart-modern-console .heart-modern-stage:hover {
  border-color: rgba(244, 63, 94, 0.48);
  box-shadow:
    inset 0 0 36px rgba(244, 63, 94, 0.12),
    0 12px 28px -18px rgba(244, 63, 94, 0.55);
}

body[data-app="website"] .heart-modern-console .heart-modern-stage:focus-visible {
  outline: 2px solid var(--cardio-teal);
  outline-offset: 2px;
}

/* Dynamic Breathing Radial Glow synced to --systole-energy */
body[data-app="website"] .heart-modern-console .heart-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(244, 63, 94, calc(0.14 + var(--systole-energy, 0) * 0.26)) 0%,
    rgba(45, 212, 191, calc(0.05 + var(--atrial-energy, 0) * 0.12)) 42%,
    transparent 74%
  );
  will-change: opacity;
}

/* Subtle Biometric Reticle Grid behind the Heart */
body[data-app="website"] .heart-modern-console .heart-grid-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 184, 214, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 214, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 48%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 30%, transparent 78%);
}

/* Cardiac Phase Pill & Hint */
body[data-app="website"] .heart-modern-console .heart-phase-pill {
  position: absolute;
  top: 0.72rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(7, 20, 33, 0.8);
  border: 1px solid rgba(148, 184, 214, 0.28);
  backdrop-filter: blur(6px);
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

body[data-app="website"] .heart-modern-console .heart-modern-stage.is-atrial .heart-phase-pill {
  border-color: rgba(253, 224, 71, 0.65);
  background: rgba(253, 224, 71, 0.16);
  color: #fef08a;
}

body[data-app="website"] .heart-modern-console .heart-modern-stage.is-systole .heart-phase-pill {
  border-color: rgba(251, 113, 133, 0.78);
  background: rgba(244, 63, 94, 0.24);
  color: #ffe4e6;
  transform: scale(1.03);
}

body[data-app="website"] .heart-modern-console .heart-tap-hint {
  position: absolute;
  top: 0.78rem;
  right: 0.78rem;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cardio-muted);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

body[data-app="website"] .heart-modern-console .heart-modern-stage:hover .heart-tap-hint {
  opacity: 1;
  color: var(--cardio-teal);
}

/* Concentric Biometric Shockwave Rings */
body[data-app="website"] .heart-modern-console .heart-pulse-ring {
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 2px solid rgba(244, 63, 94, 0.42);
  pointer-events: none;
  opacity: calc(0.14 + var(--systole-energy, 0) * 0.62);
  transform: scale(calc(0.9 + var(--systole-energy, 0) * 0.34));
  will-change: transform, opacity;
}

body[data-app="website"] .heart-modern-console .heart-pulse-ring-outer {
  width: 184px;
  height: 184px;
  border-width: 1.4px;
  border-color: rgba(45, 212, 191, 0.36);
  opacity: calc(0.08 + var(--aortic-energy, 0) * 0.48);
  transform: scale(calc(0.88 + var(--aortic-energy, 0) * 0.36));
}

body[data-app="website"] .heart-modern-console .heart-pulse-ring-third {
  width: 222px;
  height: 222px;
  border-width: 1px;
  border-style: dashed;
  border-color: rgba(148, 184, 214, 0.2);
  opacity: calc(0.18 + var(--systole-energy, 0) * 0.22);
  transform: rotate(calc(var(--systole-energy, 0) * 8deg)) scale(calc(0.96 + var(--aortic-energy, 0) * 0.14));
}

/* 3D Perspective Tilt + Biomechanical Chamber Motion */
body[data-app="website"] .heart-modern-console .heart-svg {
  position: relative;
  z-index: 2;
  width: 204px;
  height: 204px;
  display: block;
  overflow: visible;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateZ(0);
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 calc(8px + var(--systole-energy, 0) * 16px) rgba(244, 63, 94, calc(0.22 + var(--systole-energy, 0) * 0.45)));
  transition: transform 0.18s ease-out;
  will-change: transform, filter;
}

body[data-app="website"] .heart-modern-console .heart-organ-group {
  transform-origin: 120px 124px;
}

body[data-app="website"] .heart-modern-console .heart-atria-group {
  transform-origin: 108px 98px;
  transform: scale(
    calc(1 + var(--atrial-energy, 0) * 0.065),
    calc(1 - var(--atrial-energy, 0) * 0.03)
  );
  will-change: transform;
}

body[data-app="website"] .heart-modern-console .heart-ventricles-group {
  transform-origin: 112px 132px;
  transform: scale(
    calc(1 + var(--systole-energy, 0) * 0.088),
    calc(1 + var(--systole-energy, 0) * 0.052)
  );
  will-change: transform;
}

body[data-app="website"] .heart-modern-console .heart-aorta-group {
  transform-origin: 132px 72px;
  transform: scale(calc(1 + var(--aortic-energy, 0) * 0.045));
  will-change: transform;
}

body[data-app="website"] .heart-modern-console .coronary-vessel {
  stroke-opacity: calc(0.55 + var(--systole-energy, 0) * 0.42);
}

/* Luminous Blood Flow Streams */
body[data-app="website"] .heart-modern-console .blood-stream-arterial {
  stroke-dasharray: 5 11;
  filter: drop-shadow(0 0 3px rgba(255, 228, 230, 0.9));
  animation: bloodFlowOut 1.05s linear infinite;
}

body[data-app="website"] .heart-modern-console .blood-stream-venous {
  stroke-dasharray: 5 11;
  filter: drop-shadow(0 0 3px rgba(186, 230, 253, 0.85));
  animation: bloodFlowIn 1.25s linear infinite;
}

/* Electrical Conduction Overlay (SA -> AV -> His -> Purkinje) */
body[data-app="website"] .heart-modern-console .conduction-system {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

body[data-app="website"] .heart-modern-console .heart-modern-stage.is-conduction-on .conduction-system {
  opacity: 1;
}

body[data-app="website"] .heart-modern-console .conduction-sa-node {
  transform-origin: 76px 94px;
  opacity: calc(0.28 + var(--atrial-energy, 0) * 0.72);
  transform: scale(calc(0.85 + var(--atrial-energy, 0) * 0.65));
}

body[data-app="website"] .heart-modern-console .conduction-atrial-path {
  opacity: calc(0.14 + var(--atrial-energy, 0) * 0.86);
  stroke-dasharray: 6 6;
  stroke-dashoffset: calc(24 - var(--atrial-energy, 0) * 24);
}

body[data-app="website"] .heart-modern-console .conduction-av-node {
  transform-origin: 101px 114px;
  opacity: calc(0.24 + var(--systole-energy, 0) * 0.76);
  transform: scale(calc(0.85 + var(--systole-energy, 0) * 0.55));
}

body[data-app="website"] .heart-modern-console .conduction-his-path,
body[data-app="website"] .heart-modern-console .conduction-purkinje-path {
  opacity: calc(0.14 + var(--systole-energy, 0) * 0.86);
  stroke-dasharray: 8 5;
  stroke-dashoffset: calc(26 - var(--systole-energy, 0) * 26);
}

/* Legend under Heart */
body[data-app="website"] .heart-modern-console .vessel-legend {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: #cbd5e1;
}

body[data-app="website"] .heart-modern-console .legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body[data-app="website"] .heart-modern-console .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

body[data-app="website"] .heart-modern-console .legend-dot-aorta {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.8);
}

body[data-app="website"] .heart-modern-console .legend-dot-venous {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

body[data-app="website"] .heart-modern-console .legend-dot-electric {
  background: #fde047;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.85);
}

/* Right Column: Vitals + Live Oscilloscope Monitor */
body[data-app="website"] .heart-modern-console .heart-modern-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

body[data-app="website"] .heart-modern-console .heart-modern-vitals {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(160px, 1.1fr) minmax(180px, 1.35fr);
  gap: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

@media (max-width: 720px) {
  body[data-app="website"] .heart-modern-console .heart-modern-vitals {
    grid-template-columns: 1fr;
  }
}

body[data-app="website"] .heart-modern-console .vital-box {
  background: var(--cardio-surface);
  border: 1px solid var(--cardio-border);
  border-radius: 12px;
  padding: 0.72rem 0.88rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

body[data-app="website"] .heart-modern-console .vital-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cardio-muted);
}

body[data-app="website"] .heart-modern-console .vital-main {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.38rem;
}

body[data-app="website"] .heart-modern-console .vital-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), color 0.14s ease;
}

body[data-app="website"] .heart-modern-console .vital-number.is-beat {
  color: #fda4af;
  transform: scale(1.06);
}

body[data-app="website"] .heart-modern-console .vital-number.teal {
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--cardio-teal);
}

body[data-app="website"] .heart-modern-console .vital-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cardio-muted);
  letter-spacing: 0.03em;
}

body[data-app="website"] .heart-modern-console .systole-bar {
  display: block;
  height: 4px;
  margin-top: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body[data-app="website"] .heart-modern-console .systole-bar-fill {
  display: block;
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cardio-teal), var(--cardio-crimson));
  transition: width 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-app="website"] .heart-modern-console .systole-bar-fill.is-beat {
  width: 96%;
}

body[data-app="website"] .heart-modern-console .vital-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-app="website"] .heart-modern-console .vital-mini {
  background: var(--cardio-surface);
  border: 1px solid var(--cardio-border);
  border-left: 1px solid var(--cardio-border);
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
}

body[data-app="website"] .heart-modern-console .vital-mini span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cardio-muted);
  font-weight: 700;
}

body[data-app="website"] .heart-modern-console .vital-mini strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: #f8fafc;
}

/* Modern ECG Oscilloscope Screen */
body[data-app="website"] .heart-modern-console .heart-modern-monitor {
  margin: 0;
  background: #040d16;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.65);
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .heart-modern-monitor {
  background: #fffdfb;
  border-color: rgba(204, 96, 108, 0.45);
  box-shadow: none;
}

body[data-app="website"] .heart-modern-console .ecg-monitor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 184, 214, 0.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: #9dd8d4;
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .ecg-monitor-bar {
  background: #f8eff0;
  border-bottom-color: rgba(204, 96, 108, 0.3);
  color: #5a1c26;
}

body[data-app="website"] .heart-modern-console .ecg-bar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

body[data-app="website"] .heart-modern-console .ecg-signal-tag {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .ecg-signal-tag {
  background: #fff1f2;
  border-color: rgba(180, 35, 60, 0.35);
  color: #9f1239;
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .ecg-monitor-bar .rhythm-btn {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .ecg-monitor-bar .rhythm-btn.is-active {
  background: #102d43;
  color: #ffffff;
  border-color: #102d43;
}

body[data-app="website"] .heart-modern-console .ecg-canvas {
  display: block;
  width: 100%;
  height: 174px;
}

body[data-app="website"] .heart-modern-console .rhythm-caption {
  padding: 0.68rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(148, 184, 214, 0.14);
}

body[data-app="website"] .heart-modern-console .rhythm-caption strong {
  color: #ffffff;
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .rhythm-caption {
  background: #faf6f6;
  color: #334155;
  border-top-color: rgba(204, 96, 108, 0.25);
}

body[data-app="website"] .heart-modern-console[data-ecg-theme="paper"] .rhythm-caption strong {
  color: #0f172a;
}

/* Footer Disclaimer */
body[data-app="website"] .heart-modern-console .heart-modern-footer {
  padding: 0.62rem 1.2rem;
  background: rgba(4, 12, 20, 0.78);
  border-top: 1px solid var(--cardio-border);
  font-size: 0.74rem;
  color: var(--cardio-muted);
}

@media (prefers-reduced-motion: reduce) {
  body[data-app="website"] .heart-modern-console .blood-stream-arterial,
  body[data-app="website"] .heart-modern-console .blood-stream-venous {
    animation: none;
  }
  body[data-app="website"] .heart-modern-console .heart-svg {
    transform: none;
  }
}

/* ==========================================================================
   MODERN 24-HOUR GLYCEMIC EXPLORER & CARDIOMETABOLIC SANDBOX (Figure 2)
   Matches Figure 1 with a dark clinical telemetry mode + Light Sheet toggle.
   ========================================================================== */

body[data-app="website"] .glucose-modern-console {
  --g-bg: linear-gradient(155deg, #071421 0%, #0b1f33 52%, #091727 100%);
  --g-header-bg: rgba(5, 14, 24, 0.72);
  --g-surface: rgba(255, 255, 255, 0.045);
  --g-chart-bg: #040d16;
  --g-border: rgba(148, 184, 214, 0.18);
  --g-text: #f1f5f9;
  --g-muted: #94a9be;
  --g-teal: #2dd4bf;
  --g-amber: #f59e0b;
  --g-rose: #fb7185;
  --g-indigo: #818cf8;

  background: var(--g-bg);
  color: var(--g-text);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 16px;
  box-shadow:
    0 24px 48px -24px rgba(7, 20, 33, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  margin-top: 1.15rem;
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Optional Light Clinical Sheet Mode */
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] {
  --g-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --g-header-bg: #f1f5f9;
  --g-surface: #ffffff;
  --g-chart-bg: #fcfefd;
  --g-border: #d5e0ea;
  --g-text: #0f172a;
  --g-muted: #475569;
  --g-teal: #0f766e;
  border-color: #cbd5e1;
  box-shadow: 0 18px 36px -26px rgba(15, 23, 42, 0.22);
}

/* Header & Controls */
body[data-app="website"] .glucose-modern-console .glucose-modern-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--g-header-bg);
  border-bottom: 1px solid var(--g-border);
}

body[data-app="website"] .glucose-modern-console .glucose-sheet-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-teal);
}

body[data-app="website"] .glucose-modern-console .glucose-modern-title h3 {
  margin: 0.14rem 0 0;
  font-size: 1.05rem;
  color: var(--g-text);
  font-family: inherit;
}

body[data-app="website"] .glucose-modern-console .glucose-header-controls,
body[data-app="website"] .glucose-modern-console .glucose-scenario-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-app="website"] .glucose-modern-console .glucose-tab,
body[data-app="website"] .glucose-modern-console .scenario-pill {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7f3;
  border: 1px solid rgba(148, 184, 214, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.18s ease;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-tab,
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .scenario-pill {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

body[data-app="website"] .glucose-modern-console .glucose-tab:hover,
body[data-app="website"] .glucose-modern-console .scenario-pill:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-tab:hover,
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .scenario-pill:hover {
  background: #effcf9;
  border-color: #0f766e;
  color: #0f172a;
}

body[data-app="website"] .glucose-modern-console .glucose-tab.is-active,
body[data-app="website"] .glucose-modern-console .scenario-pill.is-active {
  background: linear-gradient(135deg, #159a9c 0%, #0f766e 100%);
  border-color: rgba(94, 234, 212, 0.65);
  color: #ffffff;
  box-shadow: 0 0 18px -4px rgba(45, 212, 191, 0.72);
}

body[data-app="website"] .glucose-modern-console .scenario-pill[data-glucose-mode="postmeal"].is-active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 18px -4px rgba(245, 158, 11, 0.68);
}

body[data-app="website"] .glucose-modern-console .scenario-pill[data-glucose-mode="variable"].is-active {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 18px -4px rgba(244, 63, 94, 0.68);
}

body[data-app="website"] .glucose-modern-console .scenario-pill[data-glucose-mode="hypo"].is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  border-color: rgba(165, 180, 252, 0.7);
  box-shadow: 0 0 18px -4px rgba(99, 102, 241, 0.68);
}

/* Body Padding & Chart Container */
body[data-app="website"] .glucose-modern-console .glucose-modern-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

@media (max-width: 720px) {
  body[data-app="website"] .glucose-modern-console .glucose-modern-body {
    padding: 0.95rem;
  }
}

body[data-app="website"] .glucose-modern-console .glucose-modern-chart {
  margin: 0;
  background: var(--g-chart-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.45);
  cursor: crosshair;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-modern-chart {
  box-shadow: none;
}

body[data-app="website"] .glucose-modern-console .glucose-chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--g-border);
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-chart-bar {
  background: #f8fafc;
}

body[data-app="website"] .glucose-modern-console .glucose-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--g-text);
}

body[data-app="website"] .glucose-modern-console .glucose-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--g-teal);
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

body[data-app="website"] .glucose-modern-console .glucose-zone-chip {
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.42);
  color: #5eead4;
}

body[data-app="website"] .glucose-modern-console .glucose-zone-chip.is-high {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(251, 113, 133, 0.55);
  color: #fda4af;
}

body[data-app="website"] .glucose-modern-console .glucose-zone-chip.is-low {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(165, 180, 252, 0.55);
  color: #c7d2fe;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-zone-chip {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-zone-chip.is-high {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fda4af;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-zone-chip.is-low {
  background: #eef2ff;
  color: #3730a3;
  border-color: #a5b4fc;
}

body[data-app="website"] .glucose-modern-console .glucose-chart-hint {
  font-size: 0.72rem;
  color: var(--g-muted);
}

/* SVG Chart Element Colors */
body[data-app="website"] .glucose-modern-console .glucose-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.35rem 0.45rem 0.2rem;
}

body[data-app="website"] .glucose-modern-console .glucose-zone-high {
  fill: rgba(244, 63, 94, 0.06);
}

body[data-app="website"] .glucose-modern-console .glucose-zone-low {
  fill: rgba(99, 102, 241, 0.08);
}

body[data-app="website"] .glucose-modern-console .glucose-grid-major {
  stroke: rgba(148, 184, 214, 0.2);
}

body[data-app="website"] .glucose-modern-console .glucose-grid-mid {
  stroke: rgba(148, 184, 214, 0.12);
}

body[data-app="website"] .glucose-modern-console .glucose-grid-target {
  stroke: rgba(45, 212, 191, 0.55);
}

body[data-app="website"] .glucose-modern-console .glucose-meal-guide {
  stroke: rgba(148, 184, 214, 0.25);
}

body[data-app="website"] .glucose-modern-console .glucose-axis-text {
  font-size: 10.5px;
  fill: #94a9be;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body[data-app="website"] .glucose-modern-console .glucose-axis-target {
  font-size: 10.5px;
  font-weight: 700;
  fill: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body[data-app="website"] .glucose-modern-console .glucose-band-caption {
  font-size: 10px;
  font-weight: 700;
  fill: #5eead4;
  font-family: "PT Sans", sans-serif;
  letter-spacing: 0.02em;
}

body[data-app="website"] .glucose-modern-console .glucose-meal-label {
  font-size: 10px;
  font-weight: 700;
  fill: #cbd5e1;
  font-family: "PT Sans", sans-serif;
}

body[data-app="website"] .glucose-modern-console .glucose-tooltip-bg {
  fill: #0b1f33;
  stroke: rgba(94, 234, 212, 0.65);
  stroke-width: 1.2;
}

body[data-app="website"] .glucose-modern-console .glucose-tooltip-text {
  fill: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light Sheet SVG overrides */
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-zone-high {
  fill: rgba(225, 29, 72, 0.045);
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-zone-low {
  fill: rgba(79, 70, 229, 0.055);
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-grid-major {
  stroke: #d8e2ec;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-grid-mid {
  stroke: #e7eef5;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-grid-target {
  stroke: #159a9c;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-meal-guide {
  stroke: #cbd5e1;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-axis-text,
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-meal-label {
  fill: #475569;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-axis-target,
body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-band-caption {
  fill: #0f766e;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .glucose-tooltip-bg {
  fill: #0f172a;
  stroke: #159a9c;
}

/* Modern 4-Metric KPI Row */
body[data-app="website"] .glucose-modern-console .glucose-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 720px) {
  body[data-app="website"] .glucose-modern-console .glucose-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-app="website"] .glucose-modern-console .glucose-metric-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-app="website"] .glucose-modern-console .glucose-metric-card.is-flash {
  border-color: var(--g-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -12px rgba(45, 212, 191, 0.75);
}

body[data-app="website"] .glucose-modern-console .glucose-metric-card span {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-muted);
}

body[data-app="website"] .glucose-modern-console .glucose-metric-card strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  color: var(--g-text);
}

/* Stacked Time-in-Range Distribution Bar */
body[data-app="website"] .glucose-modern-console .tir-dist-wrap {
  margin: 0;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

body[data-app="website"] .glucose-modern-console .tir-dist-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  color: var(--g-text);
}

body[data-app="website"] .glucose-modern-console .tir-legend-items {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

body[data-app="website"] .glucose-modern-console .tir-leg-low {
  color: #a5b4fc;
}

body[data-app="website"] .glucose-modern-console .tir-leg-in {
  color: #5eead4;
}

body[data-app="website"] .glucose-modern-console .tir-leg-high {
  color: #fda4af;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .tir-leg-low {
  color: #4338ca;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .tir-leg-in {
  color: #0f766e;
}

body[data-app="website"] .glucose-modern-console[data-glucose-theme="light"] .tir-leg-high {
  color: #be123c;
}

body[data-app="website"] .glucose-modern-console .tir-stacked-bar {
  margin: 0;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(148, 184, 214, 0.15);
}

body[data-app="website"] .glucose-modern-console .tir-seg {
  display: block;
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-app="website"] .glucose-modern-console .tir-seg-low {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

body[data-app="website"] .glucose-modern-console .tir-seg-in {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

body[data-app="website"] .glucose-modern-console .tir-seg-high {
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
}

body[data-app="website"] .glucose-modern-console .glucose-narrative {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--g-muted);
}

/* Cardiometabolic Interactive Sandbox & Modern Range Sliders */
body[data-app="website"] .glucose-modern-console .glucose-modern-sandbox {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
}

body[data-app="website"] .glucose-modern-console .metabolic-sandbox-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--g-text);
}

body[data-app="website"] .glucose-modern-console .cm-meter {
  margin: 0 0 0.95rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 184, 214, 0.16);
  overflow: hidden;
}

body[data-app="website"] .glucose-modern-console .cm-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf 0%, #f59e0b 58%, #f43f5e 100%);
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-app="website"] .glucose-modern-console .sandbox-sliders {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

@media (max-width: 760px) {
  body[data-app="website"] .glucose-modern-console .sandbox-sliders {
    grid-template-columns: 1fr;
  }
}

body[data-app="website"] .glucose-modern-console .sandbox-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.78rem;
  color: var(--g-text);
}

body[data-app="website"] .glucose-modern-console .sandbox-slider-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

body[data-app="website"] .glucose-modern-console .sandbox-slider-meta strong {
  color: var(--g-teal);
  font-size: 0.82rem;
}

body[data-app="website"] .glucose-modern-console input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #159a9c 0%,
    #2dd4bf var(--slider-pct, 35%),
    rgba(148, 184, 214, 0.25) var(--slider-pct, 35%),
    rgba(148, 184, 214, 0.25) 100%
  );
  outline: none;
  cursor: pointer;
}

body[data-app="website"] .glucose-modern-console input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #159a9c;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.24), 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

body[data-app="website"] .glucose-modern-console input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.14);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.35), 0 4px 12px rgba(0, 0, 0, 0.45);
}

body[data-app="website"] .glucose-modern-console input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #159a9c;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.24);
}

body[data-app="website"] .glucose-modern-console .cm-insight-copy {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--g-muted);
}

body[data-app="website"] .glucose-modern-console .cm-insight-copy strong {
  color: var(--g-text);
}

body[data-app="website"] .glucose-modern-console .glucose-modern-footer {
  padding: 0.65rem 1.2rem;
  background: var(--g-header-bg);
  border-top: 1px solid var(--g-border);
  font-size: 0.74rem;
  color: var(--g-muted);
}

/* ==========================================================================
   CRISP MODERN IMAGE & VISUAL MEDIA PRESENTATION ACROSS PUBLIC WEBSITE
   ========================================================================== */

body[data-app="website"] .brand-link img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body[data-app="website"] .brand-link:hover img {
  transform: translateY(-1px);
  opacity: 0.92;
}

body[data-app="website"] .trad-page img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 26px -18px rgba(16, 45, 67, 0.35);
}

