/* ==========================================================================
   MediByte · Learn ECG with MediByte (/ecg) · v4 Apple Pro Cardiac Cinema
   Pure #000000 Full-Viewport 3D OLED Stage -> #FFFFFF / #F5F5F7 Ceramic Gallery
   Zero Neon Slop · Zero Emojis · Zero Em-Dashes · Zero Horizontal Overflow
   ========================================================================== */

.ecg-page {
  background: #000000;
  color: var(--ink);
  overflow-x: clip;
}

/* Dark-Adaptive Frosted Apple Header over the #000000 3D Cinema Stage */
.site-header.site-header--cinema:not(.is-light-nav) {
  background: rgba(6, 8, 12, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.site-header--cinema.is-light-nav {
  background: rgba(255, 255, 255, 0.84) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

.site-header--cinema .brand-mark__word {
  color: #F5F5F7;
}

.site-header--cinema .nav-links a {
  color: rgba(245, 245, 247, 0.70);
}

.site-header--cinema .nav-links a:hover,
.site-header--cinema .nav-links a.is-current {
  color: #FFFFFF;
}

.site-header--cinema .nav-burger {
  color: #F5F5F7;
}

.site-header--cinema.is-light-nav {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.site-header--cinema.is-light-nav .brand-mark__word {
  color: var(--ink);
}

.site-header--cinema.is-light-nav .nav-links a {
  color: var(--ink-2);
}

.site-header--cinema.is-light-nav .nav-links a:hover,
.site-header--cinema.is-light-nav .nav-links a.is-current {
  color: var(--apple-blue);
}

.site-header--cinema.is-light-nav .nav-burger {
  color: var(--ink);
}

.nav-free-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #86E5DB;
  background: rgba(120, 227, 214, 0.10);
  border: 1px solid rgba(120, 227, 214, 0.24);
  transition: all 0.2s ease;
}

.site-header--cinema.is-light-nav .nav-free-tag {
  color: var(--teal);
  background: rgba(0, 138, 142, 0.09);
  border-color: rgba(0, 138, 142, 0.22);
}

/* ==========================================================================
   ACT I: FULL-VIEWPORT PURE #000000 APPLE PRO 3D HEART CINEMA (#coronary-3d)
   ========================================================================== */
.heart-cinema {
  position: relative;
  width: 100%;
  height: calc(100svh - 52px);
  min-height: 700px;
  max-height: 980px;
  background: #000000;
  color: #F5F5F7;
  overflow: hidden;
  display: block;
}

.heart-cinema__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(620px 560px at 50% 45%, rgba(152, 18, 42, 0.24) 0%, rgba(78, 10, 26, 0.08) 44%, rgba(0, 0, 0, 0) 72%);
  transition: background 0.8s ease;
}

.heart-cinema.is-reperfused .heart-cinema__glow {
  background:
    radial-gradient(620px 560px at 50% 45%, rgba(16, 155, 110, 0.18) 0%, rgba(120, 18, 38, 0.10) 44%, rgba(0, 0, 0, 0) 72%);
}

.heart-cinema.is-angio-mode .heart-cinema__glow {
  background:
    radial-gradient(680px 620px at 50% 45%, rgba(46, 62, 82, 0.24) 0%, rgba(10, 14, 20, 0.06) 52%, rgba(0, 0, 0, 0) 76%);
}

/* Full-Bleed 3D WebGL Canvas Stage */
.heart-cinema__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  user-select: none;
}

#heart-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#heart-3d-canvas:active {
  cursor: grabbing;
}

.cinema-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.86);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cinema-loading.is-hidden {
  opacity: 0;
}

/* Subtle X-Ray C-Arm Corner Reticles */
.cinema-reticles {
  position: absolute;
  inset: 84px 48px 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.heart-cinema.is-angio-mode .cinema-reticles {
  opacity: 1;
}

.cinema-reticles span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.24);
  border-style: solid;
  border-width: 0;
}

.ret-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.ret-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.ret-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.ret-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Minimalist Swiss Hairline Leader Callouts */
.heart-callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.heart-pins-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.spatial-callout-tag {
  position: absolute;
  transform: translateY(-50%);
  pointer-events: auto;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.88);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.16s var(--ease-spring), border-color 0.16s ease, color 0.16s ease;
}

.spatial-callout-tag:hover {
  border-color: rgba(255, 255, 255, 0.48);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.03);
}

.spatial-callout-tag.is-culprit {
  background: rgba(185, 28, 52, 0.88);
  border-color: rgba(255, 168, 182, 0.55);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(217, 41, 68, 0.38);
}

.spatial-callout-tag.is-ischemic {
  background: rgba(22, 26, 36, 0.80);
  border-color: rgba(148, 163, 184, 0.34);
  color: #CBD5E1;
}

.spatial-callout-tag.is-stented {
  background: rgba(12, 118, 86, 0.88);
  border-color: rgba(110, 231, 183, 0.52);
  color: #FFFFFF;
  font-weight: 700;
}

.spatial-callout-tag__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.spatial-callout-tag.is-culprit .spatial-callout-tag__dot {
  background: #FDE047;
}

.spatial-callout-tag.is-ischemic .spatial-callout-tag__dot {
  background: #94A3B8;
}

.spatial-callout-tag.is-stented .spatial-callout-tag__dot {
  background: #6EE7B7;
}

/* Floating Top-Left Apple Keynote Editorial Typography */
.cinema-editorial {
  position: absolute;
  top: 48px;
  left: max(28px, calc((100vw - 1280px) / 2));
  z-index: 8;
  max-width: 345px;
  pointer-events: none;
}

.cinema-editorial a,
.cinema-editorial button {
  pointer-events: auto;
}

.cinema-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #A1A1A6;
  margin-bottom: 10px;
}

.cinema-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.85);
  animation: gentleBeat 1.3s infinite ease-in-out;
}

.heart-cinema.is-reperfused .cinema-dot {
  background: #30D158;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.8);
}

@keyframes gentleBeat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
}

.cinema-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: #FFFFFF;
}

.cinema-subtitle {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #A1A1A6;
  max-width: 34ch;
}

.cinema-vitals-inline {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  flex-wrap: wrap;
}

.cinema-metric span {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6E6E73;
}

.cinema-metric strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  color: #F5F5F7;
}

.cinema-metric strong.is-danger {
  color: #FF453A;
}

.cinema-metric strong.is-good {
  color: #30D158;
}

.cinema-hero-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.cinema-link-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.cinema-link-primary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.cinema-link-quiet {
  font-size: 12.5px;
  font-weight: 500;
  color: #86868B;
  transition: color 0.16s ease;
}

.cinema-link-quiet:hover {
  color: #FFFFFF;
}

/* Floating Right Minimalist Vertical Scenario Index (01..12) */
.cinema-scenario-rail {
  position: absolute;
  top: 48px;
  right: max(28px, calc((100vw - 1280px) / 2));
  z-index: 8;
  width: 248px;
  padding: 12px 10px;
  border-radius: 20px;
  background: rgba(14, 15, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.cinema-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.2px;
  letter-spacing: 0.08em;
  color: #86868B;
}

.cinema-rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 485px;
  overflow-y: auto;
}

.mi-preset-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  background: transparent;
  color: #A1A1A6;
  font-size: 11.4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mi-preset-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF453A;
  flex-shrink: 0;
  opacity: 0.72;
}

.mi-preset-dot.is-equiv {
  background: #FF9F0A;
}

.mi-preset-btn.is-active .mi-preset-dot {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.mi-preset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.mi-preset-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
}

.mi-preset-btn__num {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: #6E6E73;
  min-width: 18px;
}

.mi-preset-btn.is-active .mi-preset-btn__num {
  color: #FF453A;
  font-weight: 700;
}

/* Floating Bottom: Synchronized ECG Oscilloscope Ribbon + VisionOS Glass Dock */
.cinema-bottom-layer {
  position: absolute;
  left: max(28px, calc((100vw - 1280px) / 2));
  right: max(28px, calc((100vw - 1280px) / 2));
  bottom: 20px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cinema-ecg-ribbon {
  width: 100%;
  border-radius: 16px;
  background: rgba(10, 10, 13, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  pointer-events: auto;
}

.cinema-ecg-ribbon__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.2px;
  letter-spacing: 0.05em;
  color: #A1A1A6;
}

.ribbon-status {
  color: #F5F5F7;
  font-weight: 600;
}

.ribbon-readout strong {
  color: #FFFFFF;
}

#cath-icu-canvas {
  width: 100%;
  height: 76px;
  display: block;
}

/* Single VisionOS Floating Glass Control Capsule */
.cinema-dock {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(22, 22, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  flex-wrap: wrap;
  justify-content: center;
}

.dock-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.dock-seg-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.2px;
  font-weight: 600;
  color: #A1A1A6;
  transition: all 0.18s var(--ease-snappy);
}

.dock-seg-btn:hover {
  color: #FFFFFF;
}

.dock-seg-btn.is-active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.dock-pci-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.16s var(--ease-spring), background 0.2s ease, color 0.2s ease;
}

.dock-pci-btn:hover {
  transform: scale(1.025);
}

.dock-pci-btn.is-reperfused {
  background: #30D158;
  color: #041C0C;
}

.dock-pci-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B30;
}

.dock-pci-btn.is-reperfused .dock-pci-dot {
  background: #041C0C;
}

.dock-icon-group {
  display: inline-flex;
  gap: 2px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dock-opt-btn {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 500;
  color: #86868B;
  transition: all 0.16s ease;
}

.dock-opt-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.dock-opt-btn.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
}

.cinema-hover-caption {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: #6E6E73;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ==========================================================================
   ACT II: APPLE CERAMIC GALLERY · CORONARY DOSSIER, AHA 17 & 800 MS SCOPE
   ========================================================================== */
.ceramic-dossier-section {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dossier-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.apple-kicker {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
  margin-bottom: 8px;
}

.apple-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 26ch;
}

.angio-camera-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cam-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cam-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.cam-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.dossier-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.ceramic-card {
  padding: 28px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-ceramic);
}

.micro-label {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink-3);
}

.card-h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sub-h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ceramic-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-2);
}

.vessel-hero-strip {
  padding: 16px 18px;
  border-radius: 18px;
  background: #F5F5F7;
  margin-bottom: 16px;
}

.vessel-hero-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.vessel-hero-strip p {
  margin: 4px 0 0;
  font-size: 12.8px;
  color: var(--ink-2);
}

.leads-split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.leads-split-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: #FAFAFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.lead-mini-tag {
  padding: 3px 9px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
}

.lead-mini-tag--ste {
  background: rgba(217, 56, 41, 0.11);
  color: #C5221F;
}

.lead-mini-tag--std {
  background: rgba(0, 113, 227, 0.10);
  color: var(--apple-blue);
}

.ceramic-proof-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ceramic-proof-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.4px;
  line-height: 1.48;
  color: var(--ink);
}

.ceramic-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--apple-blue);
}

.ceramic-clinical-call {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #F2F7FF;
  border: 1px solid rgba(0, 113, 227, 0.16);
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--ink);
}

/* AHA 17-Segment Swiss Polar Plot Card */
.aha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.aha-count-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(217, 56, 41, 0.10);
  color: #C5221F;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.aha-count-pill.is-reperfused {
  background: rgba(15, 157, 110, 0.12);
  color: #0B7A54;
}

.aha-visual-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

#aha-polar-svg {
  width: 192px;
  height: 192px;
  display: block;
}

.aha-side-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aha-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.2px;
  font-weight: 500;
  color: var(--ink);
}

.aha-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.aha-orientation {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.aha-extra-note {
  margin: 4px 0 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: var(--teal);
  font-weight: 600;
}

.timeline-4d-box {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.timeline-4d-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-4d-head span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.evolution-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.evo-step-btn {
  padding: 10px 10px;
  border-radius: 13px;
  background: #F5F5F7;
  border: 1px solid transparent;
  text-align: center;
  transition: all 0.15s ease;
}

.evo-step-btn small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  color: var(--ink-3);
}

.evo-step-btn strong {
  display: block;
  font-size: 11.8px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--ink);
}

.evo-step-btn.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.evo-step-btn.is-active small {
  color: #A1A1A6;
}

.evo-step-btn.is-active strong {
  color: #FFFFFF;
}

/* Pro Obsidian Instrument Inside Ceramic Gallery: 800 ms Beat Microscope */
.beat-microscope-card {
  padding: 26px 28px;
  border-radius: 28px;
  background: #0B0D11;
  color: #F5F5F7;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.34);
}

.beat-microscope__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.microscope-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #86868B;
}

.microscope-title {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.micro-phase-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.micro-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #A1A1A6;
  font-size: 11.8px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.micro-pill:hover {
  color: #FFFFFF;
}

.micro-pill.is-active {
  background: #FFFFFF;
  color: #000000;
}

.beat-microscope__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.microscope-canvas-box {
  border-radius: 18px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px 14px;
}

#beat-microscope-canvas {
  width: 100%;
  height: 176px;
  display: block;
  border-radius: 10px;
}

.microscope-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #86868B;
}

.microscope-slider-row input[type="range"] {
  flex: 1;
  accent-color: #FFFFFF;
}

.microscope-slider-row strong {
  color: #FFFFFF;
  min-width: 54px;
  text-align: right;
}

.microscope-explain-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.micro-ion-badge {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86E5DB;
}

.micro-desc {
  margin: 10px 0;
  font-size: 13.6px;
  line-height: 1.56;
  color: #D2D2D7;
}

.micro-sync-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: #86868B;
}

/* ==========================================================================
   ACT III: 15-LEAD TELEMETRY WORKBENCH (#workbench-12lead)
   ========================================================================== */
.section-12lead {
  padding: 76px 0;
  background: #F5F5F7;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-head-apple {
  max-width: 760px;
  margin-bottom: 30px;
}

.sheet-workbench {
  padding: 28px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-ceramic);
}

.sheet-workbench.is-dark-paper {
  background: #0B0D11;
  border-color: rgba(255, 255, 255, 0.10);
  color: #F5F5F7;
}

.sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sheet-toolbar__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.micro-pill-light {
  padding: 4px 10px;
  border-radius: 999px;
  background: #F5F5F7;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
}

.sheet-workbench.is-dark-paper .micro-pill-light {
  background: rgba(255, 255, 255, 0.09);
  color: #A1A1A6;
}

.sheet-active-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sheet-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sheet-ctrl-btn {
  padding: 7px 13px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sheet-ctrl-btn:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.sheet-ctrl-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.sheet-workbench.is-dark-paper .sheet-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #D2D2D7;
}

.sheet-workbench.is-dark-paper .sheet-ctrl-btn.is-active {
  background: #FFFFFF;
  color: #000000;
}

.btn-apple-solid {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--apple-blue);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-apple-solid:hover {
  background: var(--apple-blue-hover);
}

.twelve-lead-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.extended-leads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 9px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.2px;
  font-weight: 600;
  color: var(--ink-3);
}

.extended-lead-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lead-cell {
  position: relative;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(217, 56, 41, 0.20);
  background: #FFF7F4;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.lead-cell:hover {
  border-color: var(--apple-blue);
}

.lead-cell.is-selected {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.lead-cell canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lead-cell__tag {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
}

.lead-cell__st {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead-cell__st.is-ste {
  background: rgba(217, 56, 41, 0.14);
  color: #B91C1C;
  border: 1px solid rgba(217, 56, 41, 0.28);
}

.lead-cell__st.is-std {
  background: rgba(0, 113, 227, 0.12);
  color: #0058B0;
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.sheet-workbench.is-dark-paper .lead-cell__st.is-ste {
  background: rgba(255, 69, 58, 0.22);
  color: #FF8A80;
  border-color: rgba(255, 69, 58, 0.42);
}

.sheet-workbench.is-dark-paper .lead-cell__st.is-std {
  background: rgba(100, 210, 255, 0.18);
  color: #7AD7FF;
  border-color: rgba(100, 210, 255, 0.36);
}

.lead-cell__role {
  position: absolute;
  bottom: 5px;
  right: 8px;
  z-index: 2;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.2px;
  color: rgba(29, 29, 31, 0.58);
  font-weight: 600;
}

.sheet-workbench.is-dark-paper .lead-cell {
  background: #050608;
  border-color: rgba(255, 255, 255, 0.12);
}

.sheet-workbench.is-dark-paper .lead-cell__tag {
  background: rgba(20, 22, 28, 0.90);
  color: #F5F5F7;
}

.sheet-workbench.is-dark-paper .lead-cell__role {
  color: rgba(161, 161, 166, 0.72);
}

.zoom-and-compass-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

.caliper-zoom-panel {
  padding: 16px;
  border-radius: 20px;
  background: #F5F5F7;
}

.sheet-workbench.is-dark-paper .caliper-zoom-panel {
  background: rgba(255, 255, 255, 0.04);
}

.caliper-zoom-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.zoom-lead-title {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--apple-blue);
}

.caliper-readout {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.2px;
  font-weight: 600;
  color: var(--ink-2);
}

.sheet-workbench.is-dark-paper .caliper-readout {
  color: #D2D2D7;
}

.zoom-strip-canvas {
  width: 100%;
  height: 176px;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(217, 56, 41, 0.22);
  cursor: ew-resize;
}

.cabrera-compass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 20px;
  background: #0B0D11;
  color: #F5F5F7;
}

.compass-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.compass-tab {
  flex: 1;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: #A1A1A6;
}

.compass-tab.is-active {
  background: #FFFFFF;
  color: #000000;
}

#cabrera-compass-canvas {
  width: 192px;
  height: 192px;
  display: block;
}

.cabrera-compass-card__foot {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.6px;
  color: #86868B;
}

.sheet-vitals-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vital-box {
  padding: 12px 16px;
  border-radius: 16px;
  background: #F5F5F7;
}

.sheet-workbench.is-dark-paper .vital-box {
  background: rgba(255, 255, 255, 0.05);
}

.vital-box small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.vital-box strong {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  margin-top: 3px;
}

/* ==========================================================================
   ACT IV: ALL 80 ECGS FREE CLINICAL ATLAS (#atlas-80)
   ========================================================================== */
.section-atlas {
  padding: 84px 0;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chapter-bento-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.chapter-bento-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 16px;
  background: #F5F5F7;
  border: 1px solid transparent;
  text-align: left;
  transition: all 0.16s ease;
}

.chapter-bento-btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.chapter-bento-btn.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.chapter-bento-btn small {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.2px;
  font-weight: 700;
  color: var(--ink-3);
}

.chapter-bento-btn.is-active small {
  color: #A1A1A6;
}

.chapter-bento-btn strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  margin-top: 4px;
}

.atlas-filter-bar {
  margin-bottom: 22px;
}

.atlas-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.atlas-search-wrap {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: #F5F5F7;
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.atlas-search-wrap:focus-within {
  background: #FFFFFF;
  border-color: var(--apple-blue);
}

.atlas-search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.search-kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.07);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-2);
}

.atlas-quick-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chapter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-size: 12.2px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.chapter-pill.is-active {
  background: #D93829;
  border-color: #D93829;
  color: #FFFFFF;
}

.atlas-stat-badge {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 999px;
  background: #F5F5F7;
}

.topic-deep-dive {
  margin-bottom: 26px;
  padding: 28px;
  border-radius: 28px;
  background: #FAFAFC;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.topic-deep-dive__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 20px;
}

.topic-deep-dive__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dd-action-cluster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.topic-deep-dive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px;
}

.sync-mini-strip {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #FFF7F4;
  border: 1px solid rgba(217, 56, 41, 0.22);
  height: 92px;
}

.sync-mini-strip canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sync-mini-strip__tag {
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.90);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}

.dd-diff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}

.dd-diff-header strong {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--ink-3);
}

.diff-superimpose-btn {
  padding: 5px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.diff-superimpose-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.superimpose-canvas-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #FFF7F4;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.superimpose-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
}

.leg-solid  { color: #C5221F; }
.leg-dashed { color: var(--apple-blue); }

#dd-superimpose-canvas {
  width: 100%;
  height: 112px;
  display: block;
}

.compare-strips-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-strip-card {
  border-radius: 12px;
  overflow: hidden;
  background: #FFF7F4;
  border: 1px solid rgba(217, 56, 41, 0.22);
}

.compare-strip-card small {
  display: block;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.90);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
}

.compare-strip-card canvas {
  width: 100%;
  height: 86px;
  display: block;
}

.topic-step-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.topic-step-tab {
  padding: 8px 6px;
  border-radius: 11px;
  background: #EFEFF4;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.topic-step-tab.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.criteria-list li {
  position: relative;
  padding: 10px 13px 10px 28px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13.4px;
  line-height: 1.46;
  color: var(--ink);
}

.criteria-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--apple-blue);
}

/* 80 Cards Grid */
.atlas-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.atlas-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s ease, border-color 0.16s ease;
}

.atlas-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow-ceramic);
}

.atlas-card.is-active {
  border-color: var(--apple-blue);
  background: #F6FAFF;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.atlas-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.atlas-card__num {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.8px;
  font-weight: 600;
  color: var(--ink-3);
}

.atlas-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 5px 0 4px;
  letter-spacing: -0.015em;
}

.atlas-card__clue {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atlas-card__strip {
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 56, 41, 0.20);
  background: #FFF7F4;
}

.atlas-card__strip canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.atlas-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: var(--ink-3);
}

/* ==========================================================================
   ACT V & VI: TORSO LAB, QTc GAUGE, 12 CASES & SOURCES
   ========================================================================== */
.section-labs {
  padding: 80px 0;
  background: #F5F5F7;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-detective {
  padding: 80px 0 92px;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.labs-two-col,
.detective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.torso-visual {
  border-radius: 18px;
  overflow: hidden;
  background: #0B0D11;
  margin-bottom: 14px;
}

.torso-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.electrode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coach-step-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #F5F5F7;
}

.qtc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qtc-slider-box,
.qtc-out {
  padding: 12px 14px;
  border-radius: 15px;
  background: #F5F5F7;
}

.qtc-out strong {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  margin-top: 3px;
}

.qtc-risk-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
}

.qtc-risk-pill.is-normal { background: #DCFCE7; color: #166534; }
.qtc-risk-pill.is-warn   { background: #FEF3C7; color: #92400E; }
.qtc-risk-pill.is-danger { background: #FEE2E2; color: #991B1B; }

.qtc-spectrum-bar {
  margin-top: 12px;
}

.qtc-spectrum-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8 0%, #22C55E 24%, #22C55E 56%, #F59E0B 74%, #EF4444 100%);
}

.qtc-marker {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.12s ease;
}

.qtc-spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.2px;
  color: var(--ink-3);
  margin-top: 6px;
}

.streak-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #F5F5F7;
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
}

.case-option-btn {
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  border-radius: 14px;
  background: #FAFAFC;
  border: 1px solid rgba(0, 0, 0, 0.09);
  color: var(--ink);
  font-size: 13.8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all 0.14s ease;
}

.case-option-btn:hover:not(:disabled) {
  border-color: var(--apple-blue);
  background: #F2F7FF;
}

.case-option-btn.is-correct {
  border-color: #0F9D6E;
  background: #ECFDF5;
  color: #064E3B;
  font-weight: 600;
}

.case-option-btn.is-wrong {
  border-color: #D93829;
  background: #FEF2F2;
  color: #7F1D1D;
}

.real-ecg-viewer {
  border-radius: 16px;
  overflow: hidden;
  background: #FFF9F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.real-ecg-viewer img {
  width: 100%;
  max-height: 272px;
  object-fit: contain;
  display: block;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 10px;
}

.apple-pro-cta {
  margin-top: 34px;
  padding: 42px;
  border-radius: 30px;
  background: #000000;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.apple-pro-cta h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.apple-pro-cta p {
  margin: 0;
  color: #A1A1A6;
  font-size: 15px;
  line-height: 1.54;
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease;
}

.btn-white-pill:hover {
  transform: translateY(-1px);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE PERFECTION · ZERO OVERFLOW AT 1440PX & 390PX
   ========================================================================== */
@media (max-width: 1140px) {
  .cinema-scenario-rail {
    display: none;
  }

  .dossier-bento-grid,
  .beat-microscope__grid,
  .topic-deep-dive__grid,
  .labs-two-col,
  .detective-grid,
  .zoom-and-compass-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-bento-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .extended-lead-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-free-tag,
  .cinema-hover-caption,
  .cinema-vitals-inline,
  .cinema-hero-links {
    display: none;
  }

  .heart-cinema {
    height: auto;
    min-height: 760px;
    max-height: none;
    padding: 76px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .heart-cinema__stage {
    position: relative;
    height: 390px;
    margin: 8px -16px;
  }

  .cinema-editorial {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
  }

  .cinema-title {
    font-size: 34px;
  }

  .cinema-subtitle {
    font-size: 13px;
    margin-top: 6px;
  }

  .cinema-bottom-layer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 8px;
  }

  .dock-icon-group {
    border-left: none;
    padding-left: 0;
  }

  .spatial-callout-tag {
    font-size: 9px;
    padding: 4px 8px;
  }

  .aha-visual-row,
  .leads-split-row,
  .compare-strips-pair,
  .qtc-grid,
  .twelve-lead-grid,
  .extended-lead-grid,
  .atlas-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-bento-strip,
  .evolution-steps,
  .topic-step-tabs,
  .sheet-vitals-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ceramic-card,
  .sheet-workbench,
  .topic-deep-dive,
  .beat-microscope-card,
  .apple-pro-cta {
    padding: 18px;
    border-radius: 22px;
  }
}

/* ==========================================================================
   ACT III: COMPLETE ACUTE CORONARY SYNDROMES (ACS) COMMAND MASTERCLASS
   Pure Apple Pro Obsidian (#06070A) Showcase Covering Every Clinical Angle
   ========================================================================== */
.section-acs-masterclass {
  padding: 88px 0;
  background: radial-gradient(circle at 82% 12%, rgba(255, 69, 58, 0.11), transparent 46%),
              radial-gradient(circle at 12% 84%, rgba(10, 132, 255, 0.10), transparent 48%),
              #06070A;
  color: #F5F5F7;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.acs-title-light {
  color: #FFFFFF;
}

.acs-payoff {
  background: linear-gradient(90deg, #FF453A 0%, #FF9F0A 52%, #64D2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acs-lead-light {
  color: #A1A1A6;
}

.acs-tab-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.acs-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  color: #A1A1A6;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.acs-tab-btn span {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.65;
}

.acs-tab-btn strong {
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.25;
}

.acs-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.acs-tab-btn.is-active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 10px 26px -12px rgba(255, 255, 255, 0.45);
}

.acs-tab-btn.is-active span {
  color: #C5221F;
  opacity: 1;
}

.acs-panel {
  display: none;
}

.acs-panel.is-active {
  display: block;
}

.acs-pheno-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.acs-pheno-pill {
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #D2D2D7;
  font-size: 12.6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.acs-pheno-pill:hover {
  border-color: rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
}

.acs-pheno-pill.is-active {
  background: #FF453A;
  border-color: #FF453A;
  color: #FFFFFF;
}

.acs-spectrum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.16fr);
  gap: 18px;
  align-items: stretch;
}

.acs-obsidian-card {
  padding: 24px;
  border-radius: 26px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.75);
}

.acs-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.acs-micro-tag {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868B;
}

.acs-card-h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.acs-status-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.6px;
  font-weight: 700;
  white-space: nowrap;
}

.acs-status-pill.is-danger {
  background: rgba(255, 69, 58, 0.16);
  color: #FF6961;
  border: 1px solid rgba(255, 69, 58, 0.34);
}

.acs-status-pill.is-warn {
  background: rgba(255, 214, 10, 0.14);
  color: #FFD60A;
  border: 1px solid rgba(255, 214, 10, 0.32);
}

.acs-status-pill.is-info {
  background: rgba(10, 132, 255, 0.16);
  color: #64D2FF;
  border: 1px solid rgba(100, 210, 255, 0.30);
}

.acs-status-pill.is-safe {
  background: rgba(48, 209, 88, 0.16);
  color: #30D158;
  border: 1px solid rgba(48, 209, 88, 0.32);
}

.acs-lumen-stage {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

#acs-lumen-svg {
  width: 100%;
  max-width: 230px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.acs-lumen-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acs-lumen-stat {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.acs-lumen-stat span {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.2px;
  letter-spacing: 0.07em;
  color: #86868B;
}

.acs-lumen-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #F5F5F7;
}

.acs-sync-3d-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: #0A84FF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.15s ease;
}

.acs-sync-3d-btn:hover {
  background: #409CFF;
  transform: translateY(-1px);
}

.acs-live-strip-wrap {
  width: 100%;
  height: 152px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #FFF8F6;
  margin-bottom: 14px;
}

.acs-live-strip-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.acs-pheno-desc {
  margin: 0 0 14px;
  font-size: 13.8px;
  line-height: 1.56;
  color: #D2D2D7;
}

.acs-pheno-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.acs-pillar-box {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.acs-pillar-box.is-alert {
  background: rgba(255, 69, 58, 0.08);
  border-color: rgba(255, 69, 58, 0.24);
}

.acs-pillar-box p {
  margin: 5px 0 0;
  font-size: 12.6px;
  line-height: 1.48;
  color: #E5E5EA;
}

/* Panel 02: 12 STEMI & OMI Equivalents */
.acs-udmi-bar {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.acs-udmi-title {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FF6961;
}

.acs-udmi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acs-udmi-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.6px;
  color: #D2D2D7;
}

.acs-udmi-chips strong {
  color: #FFFFFF;
}

.acs-equiv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.acs-equiv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.acs-eq-card {
  padding: 13px 14px;
  border-radius: 16px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #F5F5F7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acs-eq-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.acs-eq-card.is-active {
  background: rgba(255, 69, 58, 0.14);
  border-color: #FF453A;
}

.acs-eq-card small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.4px;
  font-weight: 700;
  color: #FF6961;
  letter-spacing: 0.06em;
}

.acs-eq-card strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  color: #FFFFFF;
}

.acs-eq-card span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: #86868B;
}

.acs-eq-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.acs-eq-meta-row > div {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.acs-eq-meta-row strong {
  display: block;
  margin-top: 3px;
  font-size: 12.6px;
  color: #FFFFFF;
}

/* Panel 03: Interactive Cardiac Biomarker Kinetics */
.acs-bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.acs-bio-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acs-mini-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #A1A1A6;
  font-size: 11.4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acs-mini-pill:hover {
  color: #FFFFFF;
}

.acs-mini-pill.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.acs-bio-canvas-box {
  height: 235px;
  border-radius: 16px;
  background: #06080D;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px;
}

#acs-biomarker-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.acs-bio-scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #86868B;
}

.acs-bio-scrubber input[type="range"] {
  flex: 1;
  accent-color: #FF453A;
}

.acs-bio-scrubber strong {
  color: #FFFFFF;
  min-width: 60px;
  text-align: right;
}

.acs-bio-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.acs-bio-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.acs-bio-stat i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acs-bio-stat span {
  font-size: 11.4px;
  color: #A1A1A6;
}

.acs-bio-stat strong {
  margin-left: auto;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #FFFFFF;
}

.acs-bio-caption {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.52;
  color: #D2D2D7;
}

.acs-triage-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acs-triage-box {
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.acs-triage-box.is-safe { border-left: 3px solid #30D158; }
.acs-triage-box.is-warn { border-left: 3px solid #FFD60A; }
.acs-triage-box.is-danger { border-left: 3px solid #FF453A; }

.acs-triage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.acs-triage-head strong { color: #FFFFFF; }
.acs-triage-head span { color: #A1A1A6; }

.acs-triage-box p {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: #D2D2D7;
}

/* Panel 04: Emergency Pharmacology & Reperfusion */
.acs-timeline-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.acs-time-card {
  padding: 20px;
  border-radius: 22px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.acs-time-card.is-urgent { border-top: 3px solid #FF453A; }
.acs-time-card.is-primary { border-top: 3px solid #0A84FF; }
.acs-time-card.is-strat { border-top: 3px solid #FFD60A; }

.acs-time-card h4 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.acs-time-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.54;
  color: #D2D2D7;
}

.acs-rx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.acs-rx-card {
  padding: 16px;
  border-radius: 18px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.acs-rx-card h4 {
  margin: 4px 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.acs-rx-card p {
  margin: 0;
  font-size: 12.4px;
  line-height: 1.48;
  color: #C7C7CC;
}

.acs-rx-stop {
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 69, 58, 0.10);
  border: 1px solid rgba(255, 69, 58, 0.24);
  font-size: 11.4px;
  line-height: 1.4;
  color: #FF8A80;
}

/* Panel 05: Post-MI Complications Timeline */
.acs-comp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.acs-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.acs-comp-card {
  padding: 20px;
  border-radius: 20px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acs-comp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.acs-comp-time {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.14);
  color: #FFD60A;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
}

.acs-comp-vessel {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: #64D2FF;
}

.acs-comp-card h4 {
  margin: 2px 0 0;
  font-size: 15.8px;
  font-weight: 700;
  color: #FFFFFF;
}

.acs-comp-card p {
  margin: 0;
  font-size: 12.6px;
  line-height: 1.5;
  color: #D2D2D7;
}

.acs-comp-action {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #86E5DB;
}

@media (max-width: 1060px) {
  .acs-tab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acs-spectrum-grid,
  .acs-equiv-layout,
  .acs-bio-grid,
  .acs-timeline-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .acs-rx-grid,
  .acs-comp-grid,
  .acs-equiv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section-acs-masterclass {
    padding: 58px 0;
  }

  .acs-tab-bar,
  .acs-lumen-stage,
  .acs-pheno-pillars,
  .acs-eq-meta-row,
  .acs-bio-readouts,
  .acs-equiv-grid,
  .acs-rx-grid,
  .acs-comp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .acs-obsidian-card {
    padding: 18px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   V9 CINEMATIC VISIONOS LAYER: SPECULAR SPOTLIGHT, CURSOR TIP, 3D MIRROR FLIP
   ========================================================================== */
.cinema-cursor-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  padding: 7px 12px;
  max-width: 290px;
  border-radius: 12px;
  background: rgba(14, 16, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #F5F5F7;
  font-size: 11.4px;
  font-weight: 500;
  line-height: 1.38;
  transition: opacity 0.16s ease;
}

.cinema-cursor-tip.is-visible {
  opacity: 1;
}

.cinema-cursor-tip strong {
  color: #FF6961;
  font-weight: 700;
}

/* VisionOS Specular Rim & Pointer-Tracking Glass Sheen on Obsidian Cards */
.acs-obsidian-card,
.acs-eq-card,
.acs-rx-card,
.acs-comp-card,
.acs-time-card,
.beat-microscope-card,
.apple-pro-cta {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 28px 64px -26px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.acs-obsidian-card::before,
.acs-eq-card::before,
.acs-rx-card::before,
.acs-comp-card::before,
.acs-time-card::before,
.beat-microscope-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.085),
    transparent 55%
  );
  transition: opacity 0.28s ease;
}

.acs-obsidian-card:hover::before,
.acs-eq-card:hover::before,
.acs-rx-card:hover::before,
.acs-comp-card:hover::before,
.acs-time-card:hover::before,
.beat-microscope-card:hover::before {
  opacity: 1;
}

.acs-obsidian-card > *,
.acs-eq-card > *,
.acs-rx-card > *,
.acs-comp-card > *,
.acs-time-card > *,
.beat-microscope-card > * {
  position: relative;
  z-index: 1;
}

/* Interactive ACS Intervention & 3D Mirror-Flip Buttons */
.acs-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acs-treat-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.16);
  border: 1px solid rgba(255, 69, 58, 0.42);
  color: #FF8A80;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.acs-treat-btn:hover {
  background: rgba(255, 69, 58, 0.26);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.acs-treat-btn.is-treated {
  background: #30D158;
  border-color: #30D158;
  color: #03150A;
  box-shadow: 0 0 24px -4px rgba(48, 209, 88, 0.55);
}

/* Smooth 3D Posterior Mirror Paper Flip */
.acs-flip-stage {
  position: relative;
  perspective: 900px;
}

.acs-flip-stage canvas {
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.acs-flip-stage.is-flipped canvas {
  transform: rotateX(180deg);
}

.acs-flip-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 4;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.88);
  border: 1px solid rgba(255, 69, 58, 0.45);
  color: #FF8A80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.acs-flip-stage.is-flipped .acs-flip-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Systole-Driven Subtle Glow & Animated Coronary RBC Flow */
.heart-cinema__glow {
  transition: background 0.6s ease;
  will-change: transform, opacity;
}

.heart-cinema.is-reperfused .heart-cinema__glow {
  background: radial-gradient(circle at 50% 48%, rgba(48, 209, 88, 0.22) 0%, rgba(10, 132, 255, 0.10) 40%, rgba(0, 0, 0, 0) 70%);
}

@keyframes rbcFlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.22); opacity: 1; }
}

.rbc-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: rbcFlowPulse 1.2s ease-in-out infinite;
}

/* Refined Dock Elevation & Specular Bevel */
.cinema-dock {
  box-shadow:
    0 24px 56px -14px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cinema-ecg-ribbon {
  box-shadow:
    0 18px 46px -16px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.cinema-scenario-rail {
  box-shadow:
    0 24px 56px -18px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Ceramic Tactile Card Hover Polish */
.ceramic-card {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.ceramic-card:hover {
  box-shadow: 0 22px 54px -22px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .rbc-pulse { animation: none; }
  .acs-flip-stage canvas { transition: none; }
}

/* ==========================================================================
   ACT V: USMLE ELECTROPHYSIOLOGY, ION-CHANNEL & BOARD MASTERY LAB
   Pure Apple Pro Obsidian (#06070A) × Electric Cyan/Sapphire Telemetry
   ========================================================================== */
.section-usmle-lab {
  padding: 88px 0;
  background: radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.14), transparent 46%),
              radial-gradient(circle at 86% 86%, rgba(48, 209, 88, 0.09), transparent 48%),
              #06070A;
  color: #F5F5F7;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.usmle-payoff {
  background: linear-gradient(90deg, #64D2FF 0%, #0A84FF 48%, #30D158 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.usmle-tab-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.usmle-panel {
  display: none;
}

.usmle-panel.is-active {
  display: block;
}

.usmle-drug-bar,
.usmle-lyte-presets,
.usmle-branch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.usmle-vw-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #D2D2D7;
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.usmle-vw-pill:hover {
  border-color: rgba(100, 210, 255, 0.45);
  color: #FFFFFF;
}

.usmle-vw-pill.is-active {
  background: #0A84FF;
  border-color: #0A84FF;
  color: #FFFFFF;
  box-shadow: 0 8px 24px -8px rgba(10, 132, 255, 0.72);
}

.usmle-ap-grid,
.usmle-lyte-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.usmle-cell-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.usmle-scope-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usmle-ap-canvas-wrap {
  height: 205px;
  border-radius: 16px;
  background: #05070C;
  border: 1px solid rgba(100, 210, 255, 0.18);
  overflow: hidden;
}

.usmle-ecg-sync-wrap {
  height: 124px;
  border-radius: 14px;
  background: #FFF8F6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.usmle-ap-canvas-wrap canvas,
.usmle-ecg-sync-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.usmle-ap-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.usmle-metric-chip {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.usmle-metric-chip span {
  display: block;
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86868B;
}

.usmle-metric-chip strong {
  display: block;
  margin-top: 3px;
  font-size: 12.6px;
  color: #64D2FF;
  font-variant-numeric: tabular-nums;
}

.usmle-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.usmle-sliders-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.usmle-slider-card {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.usmle-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.2px;
  color: #A1A1A6;
}

.usmle-slider-head strong {
  font-size: 13.5px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.usmle-slider-card input[type="range"] {
  width: 100%;
  margin: 8px 0 4px;
  accent-color: #64D2FF;
}

.usmle-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9.6px;
  color: #86868B;
  font-variant-numeric: tabular-nums;
}

.usmle-arr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: start;
}

.usmle-avb-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usmle-avb-card {
  width: 100%;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #F5F5F7;
  cursor: pointer;
  transition: all 0.16s ease;
}

.usmle-avb-card:hover {
  border-color: rgba(100, 210, 255, 0.35);
}

.usmle-avb-card.is-active {
  background: rgba(10, 132, 255, 0.14);
  border-color: #0A84FF;
}

.usmle-avb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.usmle-avb-top strong {
  font-size: 13.8px;
  color: #FFFFFF;
}

.usmle-avb-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.usmle-avb-tag.is-benign { background: rgba(48, 209, 88, 0.16); color: #30D158; }
.usmle-avb-tag.is-pacer { background: rgba(255, 69, 58, 0.16); color: #FF6961; }

.usmle-avb-card p {
  margin: 5px 0 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: #C7C7CC;
}

.usmle-crit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: start;
}

.usmle-crit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.usmle-crit-card {
  padding: 13px 14px;
  border-radius: 16px;
  background: #0D1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #F5F5F7;
  cursor: pointer;
  transition: all 0.16s ease;
}

.usmle-crit-card:hover {
  border-color: rgba(100, 210, 255, 0.36);
  transform: translateY(-1px);
}

.usmle-crit-card.is-active {
  background: rgba(10, 132, 255, 0.15);
  border-color: #0A84FF;
}

.usmle-crit-card small {
  display: block;
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64D2FF;
}

.usmle-crit-card strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.usmle-crit-card span {
  display: block;
  margin-top: 4px;
  font-size: 10.6px;
  color: #86868B;
}

@media (max-width: 1060px) {
  .usmle-tab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usmle-ap-grid,
  .usmle-lyte-grid,
  .usmle-arr-layout,
  .usmle-crit-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 680px) {
  .section-usmle-lab {
    padding: 58px 0;
  }

  .usmle-tab-bar,
  .usmle-ap-metrics,
  .usmle-sliders-row,
  .usmle-crit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   3D CARTO ELECTROPHYSIOLOGY CONDUCTION THEATRE (#conduction-theatre)
   Full-Bleed Apple Pro Obsidian Studio × Real-Time 3D WebGL Activation Map
   ========================================================================== */
.section-conduction {
  position: relative;
  overflow: hidden;
  padding: 50px 0 60px;
  scroll-margin-top: 64px;
  background: radial-gradient(ellipse 80% 52% at 50% 0%, rgba(14, 72, 148, 0.22), transparent 64%),
              radial-gradient(ellipse 56% 44% at 18% 64%, rgba(6, 182, 212, 0.10), transparent 64%),
              radial-gradient(ellipse 50% 42% at 86% 72%, rgba(99, 102, 241, 0.09), transparent 62%),
              #020409;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #F5F5F7;
}

.conduction-aurora {
  position: absolute;
  inset: -120px -80px auto;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(circle at 38% 42%, rgba(56, 189, 248, 0.14), transparent 46%),
              radial-gradient(circle at 64% 38%, rgba(129, 140, 248, 0.12), transparent 44%);
  filter: blur(56px);
  opacity: 0.9;
}

.section-conduction .section-head-apple {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-bottom: 18px;
}

.cond-kicker {
  color: #64D2FF !important;
  letter-spacing: 0.14em;
}

.cond-hero-title {
  color: #FFFFFF !important;
  letter-spacing: -0.04em;
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.08 !important;
}

.cond-payoff {
  background: linear-gradient(94deg, #64D2FF 0%, #38BDF8 36%, #818CF8 74%, #34D399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-conduction .lead.is-light {
  color: rgba(235, 238, 245, 0.72);
  max-width: 680px;
  font-size: 14.5px;
  line-height: 1.48;
  margin: 10px auto 0;
}

.conduction-stage-card {
  position: relative;
  z-index: 2;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(168deg, rgba(16, 22, 36, 0.86) 0%, rgba(7, 10, 18, 0.96) 56%, rgba(5, 7, 13, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 42px 110px -28px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(56, 189, 248, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #F5F5F7;
}

.conduction-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.conduction-rhythm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conduction-controls-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cond-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cond-pill:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(100, 210, 255, 0.44);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.cond-pill.is-active {
  background: linear-gradient(180deg, #FFFFFF 0%, #E6EEF8 100%);
  border-color: #FFFFFF;
  color: #030712;
  box-shadow: 0 10px 26px -10px rgba(100, 210, 255, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.conduction-speed-bar {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cond-ctrl-btn {
  padding: 6px 11px;
  border-radius: 999px;
  background: transparent;
  color: #94A3B8;
  font-size: 11.2px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cond-ctrl-btn:hover {
  color: #FFFFFF;
}

.cond-ctrl-btn.is-active {
  background: linear-gradient(180deg, #1E90FF 0%, #0A74E6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px -4px rgba(10, 132, 255, 0.75);
}

.conduction-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: stretch;
}

.conduction-heart-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 46%, rgba(16, 46, 92, 0.36) 0%, rgba(6, 10, 20, 0.88) 62%, #03050B 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cond-3d-viewport {
  position: relative;
  flex: 1;
  min-height: 440px;
  border-radius: 18px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.cond-3d-viewport:active {
  cursor: grabbing;
}

#conduction-heart-canvas {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
}

.cond-callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.cond-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  flex-wrap: wrap;
}

.cond-hud-pill,
.cond-hud-vitals {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 10.2px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(241, 245, 249, 0.86);
  font-variant-numeric: tabular-nums;
}

.cond-hud-vitals {
  color: #64D2FF;
  border-color: rgba(100, 210, 255, 0.24);
}

.cond-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 12px #30D158;
}

/* Floating Keynote Live Phase Subtitle Banner inside 3D Viewport */
.cond-live-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(4, 7, 15, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cond-cap-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.18);
  border: 1px solid rgba(255, 69, 58, 0.45);
  color: #FF6961;
  font-size: 9.8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cond-cap-text {
  font-size: 11.4px;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

/* Sleek VisionOS Playback & Slow-Motion Control Dock */
.cond-studio-dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Clickable 5-Phase Mission-Control Cardiac Cycle Timeline */
.cond-phase-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  margin-top: 8px;
}

.cond-step-btn {
  position: relative;
  text-align: left;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.cond-step-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.cond-step-bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.cond-step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--phase-col, #38BDF8);
  opacity: 0.35;
  transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.cond-step-btn strong {
  display: block;
  font-size: 10.8px;
  font-weight: 700;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cond-step-btn small {
  display: block;
  margin-top: 1px;
  font-size: 9.6px;
  color: #64748B;
  font-variant-numeric: tabular-nums;
}

.cond-step-btn.is-active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.cond-step-btn.is-active .cond-step-bar::after {
  opacity: 1;
  box-shadow: 0 0 12px var(--phase-col, #38BDF8);
}

.cond-step-btn.is-active strong {
  color: #FFFFFF;
}

.cond-step-btn.is-active small {
  color: #CBD5E1;
}

.conduction-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.conduction-ecg-box {
  padding: 15px 16px 13px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.96) 0%, #050810 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.conduction-ecg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cond-ecg-sub {
  margin-top: 3px;
  font-size: 11.4px;
  color: #8E9BAE;
  line-height: 1.35;
}

.cond-axis-readout-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#conduction-axis-canvas {
  width: 46px;
  height: 46px;
  display: block;
}

.conduction-ecg-head strong {
  display: inline-block;
  min-width: 58px;
  text-align: right;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

#conduction-ecg-canvas {
  width: 100%;
  height: 192px;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.conduction-scrubber {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 10.6px;
  font-weight: 600;
  color: #7D8CA3;
  font-variant-numeric: tabular-nums;
}

.conduction-scrubber input[type="range"] {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8 0%, #38BDF8 13%, #FFD60A 13%, #FFD60A 22%, #FF453A 22%, #FF453A 34%, #A855F7 34%, #A855F7 49%, #30D158 49%, #30D158 72%, #334155 72%, #334155 100%);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.conduction-scrubber input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #0A84FF;
  box-shadow: 0 0 12px rgba(100, 210, 255, 0.85);
}

.conduction-live-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.conduction-phase-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.conduction-phase-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 18px #38BDF8;
  flex-shrink: 0;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.conduction-phase-banner h3 {
  margin: 1px 0 0;
  font-family: var(--font-display);
  font-size: 15.8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.conduction-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.cond-stat {
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.036);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.cond-stat span {
  display: block;
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7D8CA3;
}

.cond-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 11.6px;
  font-weight: 650;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

.conduction-explain {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.46;
  color: #CBD5E1;
}

.conduction-velocity-bar {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.velocity-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}

.vel-meter {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.vel-meter.is-firing {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.vel-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.6px;
  color: #94A3B8;
  margin-bottom: 4px;
}

.vel-meter.is-firing .vel-meter-top {
  color: #FFFFFF;
}

.vel-meter-top strong {
  color: #F8FAFC;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vel-meter.is-slow .vel-meter-top strong {
  color: #FFD60A;
}

.vel-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vel-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--vel-col, #38BDF8);
  opacity: 0.65;
  transition: opacity 0.16s ease, box-shadow 0.16s ease;
}

.vel-meter.is-firing .vel-track i {
  opacity: 1;
  box-shadow: 0 0 12px var(--vel-col, #38BDF8);
}

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

  .cond-3d-viewport,
  #conduction-heart-canvas {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .section-conduction {
    padding: 68px 0 64px;
  }

  .conduction-stage-card {
    padding: 14px;
    border-radius: 22px;
  }

  .cond-3d-viewport,
  #conduction-heart-canvas {
    min-height: 360px;
  }

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

  .conduction-telemetry-grid,
  .velocity-meter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .section-conduction {
    padding: 52px 0 28px;
  }

  .conduction-stage-card {
    padding: 16px;
    border-radius: 22px;
  }

  #conduction-heart-canvas {
    height: 330px;
  }

  .conduction-telemetry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   APPLE SPOTLIGHT ARRHYTHMIA & 80-ECG CLINICAL COMMAND CENTER (⌘K)
   Native macOS Sequoia × VisionOS Frosted-Obsidian Glass Command Architecture
   ========================================================================== */
.nav-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.88);
  font-family: var(--font-sans);
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.nav-spotlight-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(100, 210, 255, 0.50);
  color: #FFFFFF;
  box-shadow: 0 0 22px -6px rgba(100, 210, 255, 0.55);
  transform: translateY(-0.5px);
}

.nav-spot-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-sans);
  font-size: 10.2px;
  font-weight: 700;
  color: rgba(245, 245, 247, 0.78);
  line-height: 1.1;
}

.site-header--cinema:not(.is-light-nav) .nav-spotlight-btn {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #F5F5F7 !important;
}

.site-header--cinema:not(.is-light-nav) .nav-spotlight-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(100, 210, 255, 0.55);
  color: #FFFFFF !important;
}

.site-header--cinema:not(.is-light-nav) .nav-spot-kbd {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF !important;
}

.site-header.is-light-nav .nav-spotlight-btn {
  background: rgba(15, 23, 42, 0.055);
  border-color: rgba(15, 23, 42, 0.12);
  color: #1D1D1F;
}

.site-header.is-light-nav .nav-spotlight-btn:hover {
  background: rgba(10, 132, 255, 0.09);
  border-color: rgba(10, 132, 255, 0.34);
  color: #0071E3;
}

.site-header.is-light-nav .nav-spot-kbd {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

/* Prominent Apple Spotlight Search Launcher Bar inside #conduction-theatre */
.cond-spotlight-wrap {
  max-width: 780px;
  margin: 18px auto 0;
}

.apple-spotlight-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.045) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.78),
              0 0 0 1px rgba(100, 210, 255, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #F8FAFC;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.apple-spotlight-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 210, 255, 0.56);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.115) 0%, rgba(255, 255, 255, 0.062) 100%);
  box-shadow: 0 26px 64px -18px rgba(0, 0, 0, 0.85),
              0 0 36px -10px rgba(56, 189, 248, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.spot-trigger-icon {
  color: #64D2FF;
  flex-shrink: 0;
}

.spot-trigger-placeholder {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.78);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-trigger-meta {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #64D2FF;
  font-size: 10.6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.spot-trigger-kbd {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  flex-shrink: 0;
}

.spot-quick-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.spot-quick-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #CBD5E1;
  font-size: 11.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.spot-quick-chip:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(100, 210, 255, 0.45);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING APPLE VISIONOS SPOTLIGHT MODAL OVERLAY
   ========================================================================== */
.ecg-spotlight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 5, 12, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ecg-spotlight-backdrop[hidden] {
  display: none !important;
}

.ecg-spotlight-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ecg-spotlight-window {
  width: min(1080px, 95vw);
  height: min(748px, 89vh);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(18, 24, 38, 0.94) 0%, rgba(9, 13, 22, 0.97) 58%, rgba(6, 9, 16, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 54px 140px -24px rgba(0, 0, 0, 0.92),
              0 0 0 1px rgba(100, 210, 255, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #F8FAFC;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecg-spotlight-backdrop.is-open .ecg-spotlight-window {
  transform: scale(1) translateY(0);
}

.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;
}

/* Top Command Search Field */
.spotlight-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.spotlight-search-icon {
  color: #64D2FF;
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-sans);
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.spotlight-input::placeholder {
  color: rgba(148, 163, 184, 0.62);
}

.spotlight-match-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.spotlight-clear-btn,
.spotlight-esc-btn {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-family: var(--font-sans);
  font-size: 10.6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.spotlight-clear-btn:hover,
.spotlight-esc-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

/* Category Pills Row */
.spotlight-cat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.spotlight-cat-bar::-webkit-scrollbar { display: none; }

.spot-cat-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 11.4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.spot-cat-pill:hover {
  color: #FFFFFF;
  border-color: rgba(100, 210, 255, 0.36);
}

.spot-cat-pill.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #030712;
}

/* Split-Pane Clinical Stage */
.spotlight-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.spotlight-list-col {
  overflow-y: auto;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 5, 11, 0.35);
}

.spot-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 13px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  color: #E2E8F0;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.spot-result-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

.spot-result-item.is-selected {
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.24) 0%, rgba(56, 189, 248, 0.12) 100%);
  border-color: rgba(100, 210, 255, 0.42);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.spot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spot-item-copy {
  flex: 1;
  min-width: 0;
}

.spot-item-title {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-item-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.8px;
  color: #7D8CA3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-result-item.is-selected .spot-item-sub {
  color: #BAE6FD;
}

.spot-item-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  text-transform: uppercase;
}

.spot-item-tag.is-urgent {
  background: rgba(255, 69, 58, 0.18);
  color: #FF6961;
}

/* Right Clinical Dossier Preview */
.spotlight-preview-col {
  overflow-y: auto;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.spot-detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.spot-severity-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9.8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #64D2FF;
}

.spot-severity-pill.is-urgent {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.45);
  color: #FF6961;
}

.spot-substrate-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.6px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #CBD5E1;
}

.spot-detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
}

.spot-detail-clue {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #CBD5E1;
}

/* Live 60 FPS Spotlight ECG Strip */
.spot-ecg-card {
  padding: 11px 13px 10px;
  border-radius: 18px;
  background: #04070E;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.spot-ecg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.spot-ecg-live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64D2FF;
}

.spot-ecg-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spot-lead-pills {
  display: flex;
  gap: 3px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.spot-mini-btn {
  padding: 3px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 10.4px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.spot-mini-btn:hover { color: #FFFFFF; }

.spot-mini-btn.is-active {
  background: #0A84FF;
  color: #FFFFFF;
}

#spotlight-ecg-canvas {
  width: 100%;
  height: 126px;
  display: block;
  border-radius: 10px;
}

/* Biophysical Vitals Tiles */
.spot-vitals-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.spot-vital-tile {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spot-vital-tile span {
  display: block;
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7D8CA3;
}

.spot-vital-tile strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

/* Structured Dossier Grid */
.spot-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.spot-info-card {
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spot-card-label {
  display: block;
  font-size: 9.2px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64D2FF;
  margin-bottom: 6px;
}

.spot-criteria-list {
  margin: 0;
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.48;
  color: #E2E8F0;
}

.spot-criteria-list li {
  margin-bottom: 4px;
}

.spot-info-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: #CBD5E1;
}

/* Trap & Lookalike Banner */
.spot-trap-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.24);
}

.spot-trap-copy p {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.44;
  color: #FDE68A;
}

.spot-compare-btn {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 11.2px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spot-compare-btn:hover {
  background: #FFFFFF;
  color: #030712;
}

/* Sticky Bottom Spotlight Action Bar */
.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(4, 7, 14, 0.85);
}

.spot-action-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spot-act-primary {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1E90FF 0%, #0A74E6 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(10, 132, 255, 0.82);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.spot-act-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.spot-act-secondary {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.spot-act-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.spot-kbd-hints {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #64748B;
}

.spot-kbd-hints kbd {
  padding: 2px 5px;
  margin-right: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #CBD5E1;
}

.spot-empty-state {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}

@media (max-width: 900px) {
  .nav-spot-label,
  .nav-spot-kbd {
    display: none;
  }

  .nav-spotlight-btn {
    padding: 0 10px;
  }

  .spotlight-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 190px minmax(0, 1fr);
  }

  .spotlight-list-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .spot-dossier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot-kbd-hints {
    display: none;
  }
}

@media (max-width: 640px) {
  .ecg-spotlight-backdrop {
    padding: 8px;
  }

  .ecg-spotlight-window {
    width: 100%;
    height: 92vh;
    border-radius: 20px;
  }

  .spotlight-input {
    font-size: 15px;
  }

  .spotlight-match-count {
    display: none;
  }

  .spot-trigger-meta,
  .spot-trigger-kbd {
    display: none;
  }

  .spot-trap-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   CLINICAL EP LAB WORKSTATION EXTENSIONS (CARTO LAT SCALE, 5-CH EP RECORDER,
   A-H-V INTERVAL STRIP & LIVE CLINICAL INTERVENTION BUTTON)
   ========================================================================== */
.cond-hud-left-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cond-lat-scale {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(4, 7, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(203, 213, 225, 0.82);
  font-variant-numeric: tabular-nums;
  width: fit-content;
}

.cond-lat-bar {
  display: inline-block;
  width: 78px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF3B30 0%, #FF9F0A 28%, #30D158 55%, #38BDF8 80%, #818CF8 100%);
}

.cond-rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #BAE6FD;
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cond-rx-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(100, 210, 255, 0.62);
  color: #FFFFFF;
}

.cond-rx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
}

.cond-rx-btn.is-active {
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.24) 0%, rgba(16, 185, 129, 0.16) 100%);
  border-color: rgba(52, 211, 153, 0.68);
  color: #ECFDF5;
  box-shadow: 0 0 22px -6px rgba(48, 209, 88, 0.65);
}

.cond-rx-btn.is-active .cond-rx-dot {
  background: #30D158;
  box-shadow: 0 0 12px #30D158;
}

.cond-track-toggle {
  display: inline-flex;
  gap: 3px;
  margin-top: 6px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cond-track-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: #94A3B8;
  font-size: 10.6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.cond-track-btn:hover { color: #FFFFFF; }

.cond-track-btn.is-active {
  background: #FFFFFF;
  color: #030712;
}

/* Upgraded 5-Channel Hospital EP Recorder Height */
#conduction-ecg-canvas {
  height: 296px;
}

/* Standard Clinical EP Lab 6-Interval Telemetry Strip (PA | AH | HV | PR | QRS | QTc) */
.cond-ep-intervals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-iv-cell {
  padding: 6px 6px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.ep-iv-cell span {
  display: block;
  font-size: 8.6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7D8CA3;
}

.ep-iv-cell strong {
  display: block;
  margin-top: 2px;
  font-size: 11.4px;
  font-weight: 750;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ep-iv-cell small {
  display: block;
  margin-top: 1px;
  font-size: 8.4px;
  color: #64748B;
  font-variant-numeric: tabular-nums;
}

.ep-iv-cell.is-abnormal {
  background: rgba(255, 69, 58, 0.11);
  border-color: rgba(255, 69, 58, 0.36);
}

.ep-iv-cell.is-abnormal strong {
  color: #FF6961;
}

.ep-iv-cell.is-caution {
  background: rgba(255, 214, 10, 0.10);
  border-color: rgba(255, 214, 10, 0.34);
}

.ep-iv-cell.is-caution strong {
  color: #FFD60A;
}

.ep-iv-cell.is-restored {
  background: rgba(48, 209, 88, 0.11);
  border-color: rgba(48, 209, 88, 0.36);
}

.ep-iv-cell.is-restored strong {
  color: #34D399;
}

@media (max-width: 680px) {
  .cond-ep-intervals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #conduction-ecg-canvas {
    height: 270px;
  }
}


/* ==========================================================================
   CLINICAL WORKSTATIONS v20 (#labs-section: FULL-WIDTH 15-LEAD ANATOMY LAB,
   NORMAL-vs-PATHOLOGY 8-STEP CALIPER BENCH & 2D ISBISTER-CHAN QT NOMOGRAM)
   ========================================================================== */
.lab-hero-card {
  padding: 26px 28px 28px;
  margin-bottom: 22px;
}

.lab-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.lab-hero-split {
  display: grid;
  grid-template-columns: minmax(340px, 0.96fr) minmax(0, 1.24fr);
  gap: 24px;
  align-items: start;
}

.lab-hero-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-hero-inspector {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.labs-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.lab-bench-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  min-width: 0;
}

.lab-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* Apple-Precision Recessed Segmented Control Bar */
.lab-seg-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.055);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.lab-seg-bar.is-compact {
  border-radius: 10px;
  padding: 2px;
}

.lab-seg-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font-sans);
  font-size: 11.4px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.lab-seg-bar.is-compact .lab-seg-btn {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 8px;
}

.lab-seg-btn:hover {
  color: #0F172A;
}

.lab-seg-btn.is-active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.lab-seg-btn.is-danger-opt.is-active {
  background: #D93025;
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(217, 48, 37, 0.55);
}

/* Interactive Anatomical Ribcage & SVG Vector Sightline Stage */
.torso-visual.is-interactive {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #F8FAFC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.torso-visual.is-interactive img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.torso-hud-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0F172A;
  font-size: 10.2px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09);
  pointer-events: none;
}

.torso-hud-pill.is-danger {
  background: rgba(217, 48, 37, 0.94);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

@keyframes torsoSonar {
  0%   { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.48), 0 10px 24px rgba(0, 113, 227, 0.56); }
  70%  { box-shadow: 0 0 0 11px rgba(0, 113, 227, 0), 0 10px 24px rgba(0, 113, 227, 0.56); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0), 0 10px 24px rgba(0, 113, 227, 0.56); }
}

.torso-vector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.torso-ics-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.19);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.22s ease;
}

.torso-ics-line span {
  position: absolute;
  left: 9px;
  top: -16px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
}

#torso-ics2-line {
  opacity: 0;
  border-top: 1.5px dashed rgba(217, 48, 37, 0.78);
}

#torso-ics2-line span {
  background: #D93025;
  border-color: #D93025;
  color: #FFFFFF;
}

.torso-visual.is-malpos #torso-ics2-line {
  opacity: 1;
}

/* LA / RA Limb-Lead Reversal Shoulder Badges */
.torso-limb-badge {
  position: absolute;
  top: 19%;
  z-index: 9;
  padding: 4px 9px;
  border-radius: 999px;
  background: #D93025;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid #FFFFFF;
  box-shadow: 0 8px 20px rgba(217, 48, 37, 0.45);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.torso-limb-badge.is-ra { left: 12%; }
.torso-limb-badge.is-la { right: 12%; }

.torso-visual.is-lara .torso-limb-badge {
  opacity: 1;
  transform: scale(1);
}

/* Tactile Precision Electrode Sensor Pins Directly on Intercostal Spaces */
.torso-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  min-width: 29px;
  height: 29px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0071E3;
  border: 2.5px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 10.2px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0, 113, 227, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: top 0.42s cubic-bezier(0.16, 1, 0.3, 1), left 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s ease, background-color 0.18s ease, box-shadow 0.2s ease, opacity 0.18s ease;
}

.torso-pin:hover {
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 7;
}

.torso-pin.is-right {
  background: #D97706;
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.torso-pin.is-post {
  background: #7C3AED;
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.torso-pin.is-active {
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.26), 0 10px 24px rgba(0, 113, 227, 0.56);
  animation: torsoSonar 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  z-index: 8;
}

.torso-pin.is-right.is-active {
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.28), 0 10px 24px rgba(217, 119, 6, 0.56);
}

.torso-pin.is-post.is-active {
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.28), 0 10px 24px rgba(124, 58, 237, 0.56);
}

.torso-visual.is-malpos #pin-V1,
.torso-visual.is-malpos #pin-V2 {
  top: 31% !important;
  background: #D93025;
  box-shadow: 0 0 0 6px rgba(217, 48, 37, 0.28), 0 10px 22px rgba(217, 48, 37, 0.55);
}

.torso-visual.is-lara .torso-pin {
  opacity: 0.45;
}

.torso-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.032);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.torso-legend-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.torso-legend-hint {
  margin-left: auto;
  color: #64748B;
  font-weight: 500;
}

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

.leg-dot.is-std { background: #0071E3; }
.leg-dot.is-right { background: #D97706; }
.leg-dot.is-post { background: #7C3AED; }

/* Hospital Calibrated Mini-Oscilloscope Frame */
.lab-mini-scope {
  padding: 10px 12px 9px;
  border-radius: 15px;
  background: #FFF9F9;
  border: 1px solid rgba(217, 48, 37, 0.14);
}

.lab-mini-scope.is-hero-scope {
  margin-top: 0;
}

.lab-mini-scope.is-coach-scope {
  margin-top: 12px;
}

.lab-mini-scope__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.lab-scope-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.lab-ghost-key {
  font-size: 10px;
  font-weight: 650;
  color: #0071E3;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.07);
  border: 1px dashed rgba(0, 113, 227, 0.35);
}

.lab-scope-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.09);
  color: #0071E3;
  font-size: 10.4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lab-scope-pill.is-danger {
  background: rgba(217, 48, 37, 0.12);
  color: #B92B1F;
}

.lab-scope-pill.is-warn {
  background: rgba(217, 119, 6, 0.13);
  color: #B45309;
}

.lab-scope-pill.is-ok {
  background: rgba(16, 185, 129, 0.13);
  color: #047857;
}

#torso-lead-canvas {
  width: 100%;
  height: 118px;
  display: block;
  border-radius: 9px;
}

#coach-visual-canvas {
  width: 100%;
  height: 126px;
  display: block;
  border-radius: 9px;
}

#qtc-live-canvas {
  width: 100%;
  height: 98px;
  display: block;
  border-radius: 9px;
}

/* Interactive Precordial R-Wave Progression Micro-Thumbnails */
.torso-prog-wrap {
  padding: 11px 12px 12px;
  border-radius: 15px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.torso-prog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.torso-prog-note {
  font-size: 10.6px;
  color: #64748B;
  font-weight: 500;
}

.torso-prog-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}

.torso-prog-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 5px 4px 4px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
}

.torso-prog-tile:hover {
  border-color: rgba(0, 113, 227, 0.42);
  transform: translateY(-1px);
}

.torso-prog-tile.is-active {
  border-color: #0071E3;
  background: rgba(0, 113, 227, 0.045);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.18);
}

.torso-prog-tile.is-right.is-active {
  border-color: #D97706;
  background: rgba(217, 119, 6, 0.05);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.20);
}

.torso-prog-tile.is-post.is-active {
  border-color: #7C3AED;
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.20);
}

.torso-prog-tile__lbl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  font-size: 10px;
  font-weight: 800;
  color: #1E293B;
  font-variant-numeric: tabular-nums;
}

.torso-prog-tile__lbl i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0071E3;
}

.torso-prog-tile.is-right .torso-prog-tile__lbl i { background: #D97706; }
.torso-prog-tile.is-post .torso-prog-tile__lbl i { background: #7C3AED; }

.torso-prog-tile canvas {
  width: 100%;
  height: 36px;
  display: block;
  border-radius: 6px;
}

/* 3-Cell Clinical Landmark Telemetry Matrix */
.lab-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lab-tel-cell {
  padding: 9px 11px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.lab-tel-cell strong {
  display: block;
  margin-top: 3px;
  font-size: 12.2px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.lab-elec-card {
  margin-top: 0;
}

.lab-trap-box {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(217, 48, 37, 0.065);
  border: 1px solid rgba(217, 48, 37, 0.18);
  font-size: 12px;
  line-height: 1.44;
  color: #991B1B;
  font-weight: 600;
}

/* 8-Step Protocol Progress Track & Symmetrical 4x2 Stepper Grid */
.coach-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  margin: 12px 0 10px;
  overflow: hidden;
}

.coach-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0071E3, #00A2A8);
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.coach-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.coach-step-btn {
  padding: 8px 6px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #334155;
  font-family: var(--font-sans);
  font-size: 11.4px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.coach-step-btn:hover {
  border-color: rgba(0, 113, 227, 0.38);
  color: #0071E3;
}

.coach-step-btn.is-active {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #FFFFFF;
}

.lab-coach-readout {
  margin-top: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lab-coach-readout__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.coach-nav-btns {
  display: inline-flex;
  gap: 5px;
}

.coach-nav-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #FFFFFF;
  color: #334155;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.coach-nav-btn:hover {
  border-color: #0071E3;
  color: #0071E3;
}

.coach-criteria-box {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.coach-crit-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.coach-crit-item span {
  display: block;
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748B;
}

.coach-crit-item strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.coach-crit-item.is-wide {
  grid-column: 1 / -1;
}

.coach-delta-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.coach-delta-card {
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.coach-delta-card.is-norm {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.22);
}

.coach-delta-card.is-flag {
  background: rgba(217, 48, 37, 0.06);
  border-color: rgba(217, 48, 37, 0.20);
}

.coach-delta-card span {
  display: block;
  font-size: 9.2px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coach-delta-card.is-norm span { color: #047857; }
.coach-delta-card.is-flag span { color: #B92B1F; }

.coach-delta-card p {
  margin: 3px 0 0;
  font-size: 11.4px;
  line-height: 1.4;
  font-weight: 600;
  color: #1E293B;
}

/* 2D Isbister-Chan Clinical QT Nomogram Box & 4-Formula Telemetry Matrix */
.lab-nomogram-box {
  margin-top: 9px;
  padding: 9px 11px 8px;
  border-radius: 15px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

#qtc-nomogram-canvas {
  width: 100%;
  height: 154px;
  display: block;
  border-radius: 9px;
  cursor: crosshair;
  touch-action: none;
}

.qtc-preset-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.qtc-preset-btn {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #334155;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.qtc-preset-btn:hover {
  border-color: rgba(0, 113, 227, 0.38);
  color: #0071E3;
}

.qtc-preset-btn.is-active {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #FFFFFF;
}

.qtc-mod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.qtc-bogossian-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #FFFFFF;
  color: #334155;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qtc-bogossian-btn:hover {
  border-color: rgba(0, 113, 227, 0.42);
  color: #0071E3;
}

.qtc-bogossian-btn.is-active {
  background: rgba(0, 113, 227, 0.10);
  border-color: #0071E3;
  color: #005BB5;
}

.qtc-bog-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBD5E1;
}

.qtc-bogossian-btn.is-active .qtc-bog-dot {
  background: #0071E3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
}

.qtc-formula-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.qtc-formula-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-variant-numeric: tabular-nums;
}

.qtc-formula-tile.is-primary {
  background: rgba(0, 138, 142, 0.065);
  border-color: rgba(0, 138, 142, 0.26);
}

.qtc-formula-tile.is-bias {
  background: rgba(217, 119, 6, 0.075);
  border-color: rgba(217, 119, 6, 0.28);
}

.qtc-formula-tile strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
}

.qtc-formula-tile.is-bias strong {
  color: #B45309;
}

.qtc-formula-tile small {
  display: block;
  margin-top: 2px;
  font-size: 9.8px;
  font-weight: 600;
  color: #64748B;
}

.qtc-formula-tile.is-bias small {
  color: #B45309;
}

.qtc-verdict-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.14);
  font-size: 12px;
  line-height: 1.48;
  color: #1E293B;
  font-weight: 500;
}

.qtc-verdict-note.is-danger {
  background: rgba(217, 48, 37, 0.08);
  border-color: rgba(217, 48, 37, 0.24);
  color: #991B1B;
}

.qtc-verdict-note.is-warn {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.24);
  color: #92400E;
}

@media (max-width: 1180px) {
  .torso-prog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .lab-hero-split,
  .labs-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lab-hero-card,
  .lab-bench-card {
    padding: 18px 16px;
  }

  .torso-prog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-telemetry-grid {
    grid-template-columns: 1fr;
  }

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

  .qtc-preset-row,
  .qtc-formula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .torso-pin {
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    font-size: 8.8px;
    border-width: 2px;
  }

  .torso-legend-hint {
    margin-left: 0;
  }
}


/* ==========================================================================
   v25 MEDICAL-GRADE HOSPITAL WORKSTATIONS:
   1. GE MUSE Computerized 15-Lead Report & 1-Click Emergency Pattern Bar
   2. USMLE Step 2 CK Patient Chart, Live Vitals Strip & Multi-Lead Switcher
   3. Real 12-Lead Paper ECG 2.6x Optical Loupe, Attending Readout & Lightbox
   ========================================================================== */
.sheet-quick-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.sheet-pat-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #334155;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.sheet-pat-pill:hover {
  border-color: rgba(0, 113, 227, 0.40);
  color: #0071E3;
}

.sheet-pat-pill.is-active {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #FFFFFF;
}

.sheet-muse-report {
  margin: 12px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #F8FAFC;
  overflow: hidden;
}

.muse-metrics-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.muse-cell {
  padding: 9px 11px;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  font-variant-numeric: tabular-nums;
}

.muse-cell:last-child {
  border-right: none;
}

.muse-cell span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748B;
}

.muse-cell strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
}

.muse-cell strong.is-ste { color: #B92B1F; }
.muse-cell strong.is-std { color: #0071E3; }
.muse-cell strong.is-ok  { color: #047857; }

.muse-impression-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: rgba(16, 185, 129, 0.08);
  font-size: 11.8px;
  color: #065F46;
}

.muse-impression-bar.is-critical {
  background: rgba(217, 48, 37, 0.085);
  color: #991B1B;
}

.muse-impression-bar.is-warn {
  background: rgba(217, 119, 6, 0.09);
  color: #92400E;
}

.muse-imp-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #047857;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.muse-impression-bar.is-critical .muse-imp-badge { background: #D93025; }
.muse-impression-bar.is-warn .muse-imp-badge { background: #D97706; }

/* Dark Obsidian Monitor Adaptation for GE MUSE Header */
.sheet-workbench.is-dark-paper .sheet-quick-patterns {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.sheet-workbench.is-dark-paper .sheet-pat-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
}
.sheet-workbench.is-dark-paper .sheet-pat-pill.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0F172A;
}
.sheet-workbench.is-dark-paper .sheet-muse-report {
  background: rgba(12, 18, 30, 0.88);
  border-color: rgba(148, 163, 184, 0.22);
}
.sheet-workbench.is-dark-paper .muse-metrics-row {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}
.sheet-workbench.is-dark-paper .muse-cell {
  border-right-color: rgba(148, 163, 184, 0.14);
}
.sheet-workbench.is-dark-paper .muse-cell span { color: #94A3B8; }
.sheet-workbench.is-dark-paper .muse-cell strong { color: #F8FAFC; }
.sheet-workbench.is-dark-paper .muse-cell strong.is-ste { color: #FF6961; }
.sheet-workbench.is-dark-paper .muse-cell strong.is-std { color: #64D2FF; }
.sheet-workbench.is-dark-paper .muse-cell strong.is-ok  { color: #30D158; }
.sheet-workbench.is-dark-paper .muse-impression-bar { color: #6EE7B7; background: rgba(16, 185, 129, 0.16); }
.sheet-workbench.is-dark-paper .muse-impression-bar.is-critical { color: #FCA5A5; background: rgba(217, 48, 37, 0.22); }
.sheet-workbench.is-dark-paper .muse-impression-bar.is-warn { color: #FCD34D; background: rgba(217, 119, 6, 0.20); }

/* USMLE Step 2 CK Patient Chart & Live Bedside Telemetry Ribbon */
.case-chart-bar {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.085);
}

.case-chart-demo {
  display: inline-block;
  font-size: 9.8px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #0071E3;
}

.case-chart-hpi {
  margin: 3px 0 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: #334155;
  font-weight: 500;
}

.case-vitals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.case-vital-chip {
  padding: 3px 8px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  font-size: 10.6px;
  font-weight: 700;
  color: #1E293B;
  font-variant-numeric: tabular-nums;
}

.case-vital-chip.is-crit {
  background: rgba(217, 48, 37, 0.09);
  border-color: rgba(217, 48, 37, 0.28);
  color: #B92B1F;
}

.case-vital-chip.is-warn {
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.28);
  color: #B45309;
}

.case-strip-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.case-lead-pills,
.case-strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.case-lead-btn {
  padding: 4px 9px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #334155;
  font-family: var(--font-sans);
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.case-lead-btn.is-active {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #FFFFFF;
}

.case-util-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #334155;
  font-family: var(--font-sans);
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.case-util-btn:hover {
  border-color: #0071E3;
  color: #0071E3;
}

.case-util-btn.is-blue {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.24);
  color: #0071E3;
}

.case-hint-banner {
  margin-bottom: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.24);
  color: #92400E;
  font-size: 11.8px;
  line-height: 1.44;
  font-weight: 500;
}

/* Interactive 2.6x Cardiology Optical Loupe & Fullscreen Lightbox for Real Paper ECGs */
.real-ecg-viewer.is-loupe-ready {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.real-ecg-loupe {
  position: absolute;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 2.5px solid #0071E3;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 6;
}

.real-ecg-loupe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(217, 48, 37, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.real-ecg-loupe.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.real-loupe-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 9.8px;
  font-weight: 700;
  pointer-events: none;
}

.real-ecg-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.real-metric-tile {
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.real-metric-tile span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  color: #64748B;
}

.real-metric-tile strong {
  display: block;
  margin-top: 2px;
  font-size: 11.8px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.32;
}

.real-ecg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(6, 9, 15, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.real-ecg-lightbox[hidden] {
  display: none !important;
}

.real-lightbox-panel {
  width: min(1240px, 100%);
  max-height: 92vh;
  background: #11151E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.real-lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #F8FAFC;
  font-size: 14px;
}

.real-lightbox-img-wrap {
  padding: 16px;
  overflow: auto;
  background: #0A0D14;
  text-align: center;
}

.real-lightbox-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #FFFFFF;
}

@media (max-width: 960px) {
  .muse-metrics-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .muse-cell {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  }
}

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


/* ============================================================================
   v26 MEDICAL-SCHOOL & ATTENDING CARDIOLOGY PRO UPGRADES
   - Coronary Dossier Hemodynamics & Myocardial Salvage Wavefront Panel
   - USMLE Live 4-Channel Ion Conductance Bars & Brugada 4-Step Wizard
   - Atlas Clean Strip Header, Balanced Clinical Telemetry & Progressive Expand
   - Timed Board Exam Mode & Scorecard Banner
   ============================================================================ */
.dossier-hemo-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-hemo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dossier-hemo-cell {
  padding: 10px 11px;
  border-radius: 12px;
  background: #F5F7FA;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.dossier-hemo-cell .micro-label {
  display: block;
  font-size: 9.2px;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 3px;
}

.dossier-hemo-cell strong {
  display: block;
  font-size: 12.6px;
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  line-height: 1.28;
}

.dossier-salvage-wrap {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dossier-salvage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dossier-salvage-head .micro-label {
  font-size: 9.4px;
  letter-spacing: 0.06em;
  color: #475569;
}

.dossier-salvage-head strong {
  font-size: 11.4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dossier-salvage-head strong.is-danger { color: #C83224; }
.dossier-salvage-head strong.is-warn   { color: #B45309; }
.dossier-salvage-head strong.is-good   { color: #0F9D6E; }
.dossier-salvage-head strong.is-muted  { color: #64748B; }

.dossier-salvage-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
  overflow: hidden;
  margin-bottom: 8px;
}

.dossier-salvage-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.dossier-salvage-fill.is-danger { background: linear-gradient(90deg, #DC2626, #F97316); }
.dossier-salvage-fill.is-warn   { background: linear-gradient(90deg, #D97706, #FACC15); }
.dossier-salvage-fill.is-good   { background: linear-gradient(90deg, #059669, #34D399); }
.dossier-salvage-fill.is-muted  { background: #94A3B8; }

.dossier-salvage-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: #475569;
}

/* USMLE Live 4-Channel Membrane Conductance Profile */
.vw-ion-bars {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vw-ion-row {
  display: grid;
  grid-template-columns: 152px 1fr 104px;
  align-items: center;
  gap: 10px;
  font-size: 11.4px;
}

.vw-ion-row span {
  color: #CBD5E1;
  font-weight: 600;
}

.vw-ion-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.vw-ion-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.vw-ion-row strong {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

/* USMLE Brugada 4-Step Wide-QRS Algorithm (VT vs SVT-Aberrancy) */
.usmle-brugada-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.usmle-brugada-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.usmle-brugada-title {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.usmle-brugada-verdict {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.14);
  border: 1px solid rgba(100, 210, 255, 0.35);
  color: #64D2FF;
  font-size: 10.6px;
  font-weight: 700;
  white-space: nowrap;
}

.usmle-brugada-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.brugada-step-btn {
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: var(--font-sans);
}

.brugada-step-btn strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #F8FAFC;
}

.brugada-step-btn span {
  display: block;
  font-size: 9.8px;
  color: #94A3B8;
  margin-top: 2px;
}

.brugada-step-btn:hover {
  border-color: rgba(100, 210, 255, 0.45);
}

.brugada-step-btn.is-active {
  background: rgba(10, 132, 255, 0.22);
  border-color: rgba(100, 210, 255, 0.72);
}

.usmle-brugada-detail {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: #D1D5DB;
}

.usmle-brugada-detail strong {
  color: #F8FAFC;
}

/* Atlas & Case Clean Isolated Strip Header (Zero Calibration Pulse Overlap) */
.dd-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px 12px 0 0;
  background: #F4F6F9;
  border: 1px solid rgba(217, 56, 41, 0.20);
  border-bottom: none;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.sync-mini-strip--clean {
  border-radius: 0 0 14px 14px !important;
  margin-top: 0 !important;
}

.dd-quick-telemetry {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dd-tel-cell {
  padding: 10px 11px;
  border-radius: 12px;
  background: #F5F7FA;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.dd-tel-cell span {
  display: block;
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 3px;
}

.dd-tel-cell strong {
  display: block;
  font-size: 12.2px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.dd-tel-cell strong.is-crit { color: #C83224; }
.dd-tel-cell strong.is-norm { color: #0F9D6E; }

/* Atlas Card Crisp Clinical Status Badges (Zero Emoji/Dingbats) */
.atlas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.atlas-badge.is-crit {
  background: rgba(217, 56, 41, 0.10);
  color: #C83224;
  border: 1px solid rgba(217, 56, 41, 0.22);
}

.atlas-crit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D93829;
  display: inline-block;
}

.atlas-badge.is-saved {
  background: rgba(0, 113, 227, 0.10);
  color: #0071E3;
}

.atlas-badge.is-done {
  background: rgba(15, 157, 110, 0.10);
  color: #0F9D6E;
}

.atlas-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.atlas-expand-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #FFFFFF;
  color: #0F172A;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: all 0.16s ease;
}

.atlas-expand-btn:hover {
  border-color: var(--apple-blue);
  color: var(--apple-blue);
  transform: translateY(-1px);
}

/* Practice vs Timed Board Exam Mode Toggle & Scorecard */
.case-mode-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: #EEF1F6;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.case-mode-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.case-mode-btn.is-active {
  background: #0F172A;
  color: #FFFFFF;
}

.case-timer-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 56, 41, 0.10);
  border: 1px solid rgba(217, 56, 41, 0.24);
  color: #C83224;
  font-size: 11.2px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.case-exam-summary {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(15, 157, 110, 0.08));
  border: 1px solid rgba(0, 113, 227, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.case-exam-summary strong {
  display: block;
  font-size: 12.6px;
  color: #0F172A;
}

.case-exam-summary span {
  display: block;
  font-size: 11.4px;
  color: #475569;
  margin-top: 2px;
}

.case-option-btn.is-exam-picked {
  border-color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.14);
}

@media (max-width: 720px) {
  .dossier-hemo-grid,
  .dd-quick-telemetry {
    grid-template-columns: 1fr;
  }
  .usmle-brugada-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vw-ion-row {
    grid-template-columns: 122px 1fr 84px;
    font-size: 10.6px;
  }
}


/* ============================================================================
   v27 JAW-DROPPING APPLE PRO KEYNOTE & MEDTECH CATH-LAB VISUAL ELEVATION
   - Hero Cardiac-Synced Volumetric Studio Backlight & VisionOS Glass Rim Shine
   - Interactive AHA 17-Segment Bull's-Eye Hover Telemetry
   - Live Wiggers Cardiac Cycle & LV Pressure-Volume Loop Observatory
   - Live Telemetry Beacon & Enhanced Pro Console Polish
   ============================================================================ */

/* 1. Hero Volumetric Studio Backlight & VisionOS Glass Polish */
.heart-cinema__glow {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(740px, 86vw);
  height: min(740px, 86vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.24) 0%, rgba(185, 28, 28, 0.10) 36%, rgba(10, 132, 255, 0.04) 62%, transparent 74%);
  filter: blur(26px);
  transition: background 0.8s ease;
  will-change: transform, opacity;
}

.heart-cinema.is-reperfused .heart-cinema__glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(14, 165, 233, 0.11) 38%, rgba(10, 132, 255, 0.04) 64%, transparent 74%);
}

.cinema-scenario-rail {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cinema-ecg-ribbon {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cinema-dock {
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dock-pci-btn {
  box-shadow: 0 0 22px rgba(255, 59, 48, 0.28), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.dock-pci-btn.is-reperfused {
  box-shadow: 0 0 22px rgba(48, 209, 88, 0.32), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ribbon-abp {
  color: #FF6961;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ribbon-spo2 {
  color: #64D2FF;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 2. Interactive AHA 17-Segment Hover Telemetry */
.aha-polar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.aha-seg-g path,
.aha-seg-g circle {
  transition: filter 0.16s ease, opacity 0.16s ease, stroke-width 0.16s ease;
}

.aha-seg-g:hover path,
.aha-seg-g:hover circle {
  filter: brightness(1.16) drop-shadow(0 0 5px rgba(15, 23, 42, 0.24));
  stroke-width: 2.2;
}

.aha-seg-hover-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 10.6px;
  font-weight: 700;
  text-align: center;
  max-width: 232px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.aha-seg-hover-pill.is-danger {
  background: rgba(217, 56, 41, 0.10);
  border-color: rgba(217, 56, 41, 0.24);
  color: #B92B1F;
}

.aha-seg-hover-pill.is-good {
  background: rgba(15, 157, 110, 0.10);
  border-color: rgba(15, 157, 110, 0.24);
  color: #0F9D6E;
}

/* 3. Live 15-Lead Telemetry Beacon */
.sheet-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sheet-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
  animation: liveDotPulse 1.35s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.82); }
}

.cabrera-compass-card {
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* 4. Live Wiggers Cardiac Cycle & LV Pressure-Volume Loop Observatory (#wiggers-lab) */
.section-wiggers {
  position: relative;
  padding: 96px 0 104px;
  background: radial-gradient(ellipse 85% 60% at 50% 0%, #0A1328 0%, #050811 58%, #020409 100%);
  color: #F5F5F7;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiggers-aurora {
  position: absolute;
  top: -120px;
  left: 50%;
  width: min(980px, 95vw);
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(10, 132, 255, 0.18) 0%, rgba(255, 69, 58, 0.10) 46%, transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}

.wiggers-kicker {
  color: #64D2FF !important;
}

.wiggers-payoff {
  background: linear-gradient(90deg, #64D2FF 0%, #30D158 48%, #FFD60A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wiggers-console {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.88) 0%, rgba(7, 11, 20, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.wiggers-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wiggers-state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wiggers-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #CBD5E1;
  font-family: var(--font-sans);
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.wiggers-pill:hover {
  border-color: rgba(100, 210, 255, 0.45);
  color: #FFFFFF;
}

.wiggers-pill.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.wiggers-ctrl-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wiggers-ctrl-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 11.8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wiggers-ctrl-btn.is-active {
  background: rgba(10, 132, 255, 0.24);
  border-color: rgba(100, 210, 255, 0.65);
  color: #64D2FF;
}

.wiggers-speed-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.wiggers-spd-btn {
  padding: 5px 9px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.wiggers-spd-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.wiggers-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 16px;
}

.wiggers-panel {
  padding: 16px;
  border-radius: 20px;
  background: rgba(5, 8, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.wiggers-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wiggers-phase-live {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiggers-phase-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF453A;
  flex-shrink: 0;
}

.wiggers-phase-live strong {
  font-size: 13.6px;
  font-weight: 700;
  color: #F8FAFC;
}

.wiggers-ms-badge,
.wiggers-ef-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wiggers-ef-pill {
  background: rgba(48, 209, 88, 0.14);
  border-color: rgba(48, 209, 88, 0.36);
  color: #4ADE80;
}

.wiggers-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
}

.wiggers-legend-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wiggers-legend-bar i {
  width: 10px;
  height: 3px;
  border-radius: 99px;
  display: inline-block;
}

.wiggers-wave-wrap {
  width: 100%;
  height: 382px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: ew-resize;
}

.wiggers-wave-wrap canvas,
.wiggers-pv-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wiggers-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}

.wiggers-scrubber-row input[type="range"] {
  flex: 1;
  accent-color: #64D2FF;
}

.wiggers-micro-tag {
  display: block;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64D2FF;
}

.wiggers-pv-title {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.wiggers-pv-wrap {
  width: 100%;
  height: 248px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.wiggers-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.wiggers-metric-card {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wiggers-metric-card span {
  display: block;
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 3px;
}

.wiggers-metric-card strong {
  display: block;
  font-size: 12.6px;
  font-weight: 700;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

.wiggers-pearl-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.10);
  border: 1px solid rgba(100, 210, 255, 0.24);
  font-size: 12px;
  line-height: 1.48;
  color: #CBD5E1;
}

.wiggers-pearl-box strong {
  color: #64D2FF;
}

@media (max-width: 1040px) {
  .wiggers-stage-grid {
    grid-template-columns: 1fr;
  }
  .wiggers-wave-wrap {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .section-wiggers {
    padding: 68px 0 74px;
  }
  .wiggers-console {
    padding: 14px;
  }
  .wiggers-metrics-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
   v28 UNIFIED SPACE-BLACK TITANIUM & APPLE LIQUID-GLASS EDITION
   - Zero Jarring White-Page Drops: Continuous OLED Pro Medical Command Suite
   - Hero Rotating Cath-Lab Reticle, Live LVEF Radial Ring Gauge & Stent Toast
   - Cursor-Tracking Liquid-Glass Specular Rim Lighting (--mx, --my)
   - Glowing Obsidian AHA 17-Segment Radar, Dark 2D QT Nomogram & Illuminated Lightboxes
   ============================================================================ */

/* 1. Hero Polar Telemetry Reticle, Circular LVEF Ring Gauge & Reperfusion Toast */
.cinema-polar-reticle {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(640px, 78vw);
  height: min(640px, 78vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  animation: reticleSlowSpin 68s linear infinite;
}

.cinema-polar-reticle svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes reticleSlowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.pci-reperf-toast {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -18px);
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(6, 28, 22, 0.88);
  border: 1px solid rgba(48, 209, 88, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 28px rgba(48, 209, 88, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #4ADE80;
  font-size: 11.2px;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.pci-reperf-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pci-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 12px #30D158;
}

.cinema-vitals-pro {
  display: flex !important;
  align-items: center;
  gap: 16px !important;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 18, 28, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  margin-top: 18px;
  margin-bottom: 18px;
}

.cinema-ef-gauge {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cinema-ef-gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinema-ef-gauge circle#hero-ef-arc {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 6px currentColor);
}

.cinema-ef-gauge strong {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cinema-ef-gauge small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-top: 2px;
}

.cinema-vitals-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cinema-vitals-stack .cinema-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cinema-vitals-stack .cinema-metric span {
  font-size: 9.8px;
  min-width: 72px;
  color: #8E95A5;
}

.cinema-vitals-stack .cinema-metric strong {
  font-size: 12.2px;
}

/* 2. Cursor-Tracking Apple Liquid-Glass Specular Spotlight (--mx, --my) */
.ceramic-card,
.acs-obsidian-card,
.wiggers-panel,
.atlas-card,
.topic-deep-dive,
.sheet-workbench {
  position: relative;
}

.ceramic-card::after,
.acs-obsidian-card::after,
.wiggers-panel::after,
.atlas-card::after,
.topic-deep-dive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(100, 210, 255, 0.09), transparent 62%);
}

.ceramic-card:hover::after,
.acs-obsidian-card:hover::after,
.wiggers-panel:hover::after,
.atlas-card:hover::after,
.topic-deep-dive:hover::after {
  opacity: 1;
}

/* 3. Unified OLED Space-Black & Obsidian Studio Canvas Across All Sections */
body.ecg-page {
  background: #020409;
  color: #F5F5F7;
}

.ceramic-dossier-section,
.section-12lead,
.section-atlas,
.section-labs,
.section-detective {
  background: radial-gradient(ellipse 80% 45% at 50% 0%, #0A1120 0%, #04070E 55%, #020409 100%);
  color: #F5F5F7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-12lead {
  background: radial-gradient(ellipse 85% 48% at 50% 0%, #081326 0%, #030710 58%, #020409 100%);
}

.section-labs {
  background: radial-gradient(ellipse 85% 45% at 50% 0%, #0B1222 0%, #04070F 58%, #020409 100%);
}

.section-detective {
  background: radial-gradient(ellipse 80% 45% at 50% 0%, #0D1120 0%, #04070E 58%, #020409 100%);
}

/* Global Typography on Unified Obsidian Studio */
.ecg-page .section-head-apple .h-section,
.ecg-page .apple-h2,
.ecg-page .card-h3,
.ecg-page .sub-h4,
.ecg-page .topic-deep-dive__title,
.ecg-page .atlas-card__title,
.ecg-page #case-prompt,
.ecg-page #real-ecg-title {
  color: #F5F5F7;
}

.ecg-page .section-head-apple .payoff {
  background: linear-gradient(90deg, #64D2FF 0%, #0A84FF 52%, #30D158 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ecg-page .section-head-apple .lead,
.ecg-page .ceramic-body,
.ecg-page .atlas-card__clue,
.ecg-page .lab-panel-sub,
.ecg-page .dossier-salvage-note,
.ecg-page .aha-orientation,
.ecg-page #real-ecg-context {
  color: #9CA3AF;
}

.ecg-page .section-head-apple .lead strong,
.ecg-page .ceramic-body strong {
  color: #F5F5F7;
}

.ecg-page .apple-kicker {
  color: #64D2FF;
}

.ecg-page .micro-label {
  color: #8E95A5;
}

/* Sculpted Dark Titanium Glass Cards */
.ecg-page .ceramic-card,
.ecg-page .topic-deep-dive {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.88) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  color: #F5F5F7;
}

/* 4. Coronary Dossier (#coronary-dossier) Dark Titanium Polish */
.ecg-page .cam-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .cam-pill:hover {
  border-color: rgba(100, 210, 255, 0.45);
  color: #FFFFFF;
}

.ecg-page .cam-pill.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

.ecg-page .vessel-hero-strip,
.ecg-page .leads-split-box,
.ecg-page .dossier-hemo-cell,
.ecg-page .dossier-salvage-wrap {
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.ecg-page .vessel-hero-strip strong,
.ecg-page .dossier-hemo-cell strong,
.ecg-page .timeline-4d-head span:last-child {
  color: #F8FAFC;
}

.ecg-page .vessel-hero-strip p,
.ecg-page .ceramic-proof-list li {
  color: #CBD5E1;
}

.ecg-page .ceramic-clinical-call {
  background: rgba(10, 132, 255, 0.11);
  border: 1px solid rgba(100, 210, 255, 0.25);
  color: #E2E8F0;
}

.ecg-page .ceramic-clinical-call strong {
  color: #64D2FF;
}

.ecg-page .lead-mini-tag--ste {
  background: rgba(255, 69, 58, 0.18);
  border: 1px solid rgba(255, 69, 58, 0.36);
  color: #FF8A80;
}

.ecg-page .lead-mini-tag--std {
  background: rgba(10, 132, 255, 0.18);
  border: 1px solid rgba(100, 210, 255, 0.35);
  color: #64D2FF;
}

.ecg-page .aha-legend-item span {
  color: #E2E8F0;
}

.ecg-page .aha-extra-note {
  color: #38BDF8;
}

.ecg-page .aha-count-pill {
  background: rgba(255, 69, 58, 0.16);
  border: 1px solid rgba(255, 69, 58, 0.34);
  color: #FF8A80;
}

.ecg-page .aha-count-pill.is-reperfused {
  background: rgba(48, 209, 88, 0.16);
  border-color: rgba(48, 209, 88, 0.38);
  color: #4ADE80;
}

.ecg-page .aha-seg-hover-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .aha-seg-hover-pill.is-danger {
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 69, 58, 0.35);
  color: #FF8A80;
}

.ecg-page .aha-seg-hover-pill.is-good {
  background: rgba(48, 209, 88, 0.16);
  border-color: rgba(48, 209, 88, 0.38);
  color: #4ADE80;
}

.ecg-page .timeline-4d-box,
.ecg-page .dossier-hemo-panel {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ecg-page .evo-step-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #CBD5E1;
}

.ecg-page .evo-step-btn.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

.ecg-page .dossier-salvage-track {
  background: rgba(255, 255, 255, 0.10);
}

.ecg-page .dossier-salvage-head strong.is-danger { color: #FF6961; }
.ecg-page .dossier-salvage-head strong.is-warn   { color: #FFD60A; }
.ecg-page .dossier-salvage-head strong.is-good   { color: #4ADE80; }

/* 5. 15-Lead GE MUSE Pro Console (#workbench-12lead) */
.ecg-page .sheet-workbench.is-dark-paper {
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.94) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid rgba(100, 210, 255, 0.16);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.70), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ecg-page .sheet-workbench.is-dark-paper .sheet-active-title,
.ecg-page .sheet-workbench.is-dark-paper .zoom-lead-title {
  color: #F8FAFC;
}

.ecg-page .sheet-workbench.is-dark-paper .caliper-readout,
.ecg-page .sheet-workbench.is-dark-paper .extended-leads-header {
  color: #94A3B8;
}

.ecg-page .sheet-workbench.is-dark-paper .micro-pill-light {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: #4ADE80;
}

.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

.ecg-page .sheet-workbench.is-dark-paper .caliper-zoom-panel,
.ecg-page .sheet-workbench.is-dark-paper .vital-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.ecg-page .sheet-workbench.is-dark-paper .vital-box small {
  color: #8E95A5;
}

.ecg-page .sheet-workbench.is-dark-paper .vital-box strong {
  color: #F8FAFC;
}

.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-active-title,
.ecg-page .sheet-workbench:not(.is-dark-paper) .zoom-lead-title,
.ecg-page .sheet-workbench:not(.is-dark-paper) .vital-box strong {
  color: #0F172A;
}

/* 6. 80 ECGs Atlas (#atlas-80) Sculpted Dark Titanium Gallery */
.ecg-page .chapter-bento-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #E2E8F0;
}

.ecg-page .chapter-bento-card small {
  color: #8E95A5;
}

.ecg-page .chapter-bento-card:hover {
  border-color: rgba(100, 210, 255, 0.45);
  background: rgba(255, 255, 255, 0.075);
}

.ecg-page .chapter-bento-card.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}

.ecg-page .chapter-bento-card.is-active small {
  color: #475569;
}

.ecg-page .atlas-search-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ecg-page .atlas-search-wrap input {
  color: #F8FAFC;
}

.ecg-page .atlas-search-wrap input::placeholder {
  color: #64748B;
}

.ecg-page .search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
}

.ecg-page .chapter-pill,
.ecg-page .atlas-stat-badge,
.ecg-page .topic-deep-dive .sheet-ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .chapter-pill.is-active {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.45);
  color: #FF8A80;
}

.ecg-page .dd-strip-head {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .dd-diff-header strong {
  color: #94A3B8;
}

.ecg-page .diff-superimpose-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
}

.ecg-page .diff-superimpose-btn.is-active {
  background: #0A84FF;
  border-color: #64D2FF;
  color: #FFFFFF;
}

.ecg-page .topic-step-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #CBD5E1;
}

.ecg-page .topic-step-tab.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

.ecg-page .criteria-list li,
.ecg-page .dd-tel-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.085);
  color: #E2E8F0;
}

.ecg-page .dd-tel-cell strong {
  color: #F8FAFC;
}

.ecg-page .dd-tel-cell strong.is-crit { color: #FF6961; }
.ecg-page .dd-tel-cell strong.is-norm { color: #4ADE80; }

.ecg-page .dd-quick-telemetry {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ecg-page .atlas-card {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.84) 0%, rgba(8, 12, 22, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #F8FAFC;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ecg-page .atlas-card:hover {
  border-color: rgba(100, 210, 255, 0.42);
  transform: translateY(-2px);
}

.ecg-page .atlas-card.is-active {
  border-color: #0A84FF;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.28), 0 18px 42px rgba(0, 0, 0, 0.55);
}

.ecg-page .atlas-card__num,
.ecg-page .atlas-card__foot {
  color: #8E95A5;
}

.ecg-page .atlas-badge.is-crit {
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 69, 58, 0.35);
  color: #FF8A80;
}

.ecg-page .atlas-badge.is-done {
  background: rgba(48, 209, 88, 0.14);
  color: #4ADE80;
}

.ecg-page .atlas-badge.is-saved {
  background: rgba(10, 132, 255, 0.18);
  color: #64D2FF;
}

.ecg-page .atlas-expand-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ecg-page .atlas-expand-btn:hover {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

/* 7. Clinical Workstations (#labs-section: Ribcage Lightbox, 8-Step & Dark QTc Nomogram) */
.ecg-page .torso-stage {
  background: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(100, 210, 255, 0.18), 0 20px 52px rgba(0, 0, 0, 0.58);
}

.ecg-page .torso-legend-strip {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.10);
  color: #CBD5E1;
}

.ecg-page .lab-seg-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ecg-page .lab-seg-btn {
  color: #CBD5E1;
}

.ecg-page .lab-seg-btn.is-active {
  background: #F8FAFC;
  color: #050811;
}

.ecg-page .lab-seg-btn.is-danger-opt.is-active {
  background: #FF453A;
  color: #FFFFFF;
}

.ecg-page .torso-prog-box,
.ecg-page .torso-meta-cell,
.ecg-page .coach-detail-box,
.ecg-page .coach-criteria-cell,
.ecg-page .coach-delta-box,
.ecg-page .qtc-slider-box,
.ecg-page .qtc-formula-tile,
.ecg-page .qtc-nomogram-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #E2E8F0;
}

.ecg-page .torso-prog-tile {
  background: #FFF8F6;
  border-color: rgba(255, 255, 255, 0.14);
}

.ecg-page .torso-prog-tile.is-active {
  border-color: #0A84FF;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.35);
}

.ecg-page .torso-meta-cell strong,
.ecg-page .coach-criteria-cell strong,
.ecg-page .qtc-slider-box strong,
.ecg-page .qtc-formula-tile strong,
.ecg-page #elec-title,
.ecg-page #coach-headline {
  color: #F8FAFC;
}

.ecg-page .qtc-formula-tile.is-primary {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(48, 209, 88, 0.38);
}

.ecg-page .qtc-formula-tile.is-bias {
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.40);
}

.ecg-page .qtc-formula-tile small,
.ecg-page .torso-meta-cell span,
.ecg-page .coach-criteria-cell span {
  color: #94A3B8;
}

.ecg-page .coach-step-btn,
.ecg-page .qtc-preset-btn,
.ecg-page .qtc-bogossian-btn,
.ecg-page .coach-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #CBD5E1;
}

.ecg-page .coach-step-btn.is-active,
.ecg-page .qtc-preset-btn.is-active,
.ecg-page .qtc-bogossian-btn.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

.ecg-page .lab-scope-box {
  background: #FFF8F6;
  border-color: rgba(255, 255, 255, 0.14);
}

.ecg-page .lab-scope-head {
  background: rgba(255, 248, 246, 0.94);
}

.ecg-page .qtc-nomogram-box .lab-scope-head {
  background: rgba(6, 11, 21, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ecg-page .qtc-nomogram-box .lab-scope-head span:first-child {
  color: #64D2FF;
}

.ecg-page .lab-trap-box,
.ecg-page .qtc-verdict-note {
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.28);
  color: #FCA5A5;
}

.ecg-page .qtc-verdict-note.is-warn {
  background: rgba(255, 214, 10, 0.11);
  border-color: rgba(255, 214, 10, 0.30);
  color: #FDE047;
}

.ecg-page .qtc-verdict-note.is-normal,
.ecg-page .qtc-verdict-note:not(.is-danger):not(.is-warn) {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(48, 209, 88, 0.30);
  color: #6EE7B7;
}

.ecg-page .coach-delta-box.is-norm {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(48, 209, 88, 0.28);
  color: #A7F3D0;
}

.ecg-page .coach-delta-box.is-path {
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.30);
  color: #FCA5A5;
}

/* 8. 18 USMLE Cases & Real Paper ECGs (#clinical-detective) Obsidian Board Console */
.ecg-page .case-mode-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.ecg-page .case-mode-btn {
  color: #94A3B8;
}

.ecg-page .case-mode-btn.is-active {
  background: #F8FAFC;
  color: #050811;
}

.ecg-page .streak-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.ecg-page .case-chart-bar,
.ecg-page .real-metric-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.ecg-page .case-chart-demo {
  color: #64D2FF;
}

.ecg-page .case-chart-hpi {
  color: #CBD5E1;
}

.ecg-page .case-vital-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.ecg-page .case-vital-chip.is-warn {
  background: rgba(255, 214, 10, 0.14);
  border-color: rgba(255, 214, 10, 0.34);
  color: #FDE047;
}

.ecg-page .case-vital-chip.is-crit {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.40);
  color: #FF8A80;
}

.ecg-page .case-lead-btn,
.ecg-page .case-util-btn,
.ecg-page .case-board-card .sheet-ctrl-btn,
.ecg-page .real-study-card .elec-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .case-lead-btn.is-active,
.ecg-page .real-study-card .elec-pill.is-active {
  background: #F8FAFC;
  color: #050811;
  border-color: #FFFFFF;
}

.ecg-page .case-util-btn.is-blue {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(100, 210, 255, 0.38);
  color: #64D2FF;
}

.ecg-page .case-option-btn {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #F1F5F9;
}

.ecg-page .case-option-btn:hover:not(:disabled) {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(100, 210, 255, 0.45);
}

.ecg-page .case-option-btn.is-correct {
  background: rgba(16, 185, 129, 0.16);
  border-color: #30D158;
  color: #A7F3D0;
}

.ecg-page .case-option-btn.is-wrong {
  background: rgba(255, 69, 58, 0.16);
  border-color: #FF453A;
  color: #FCA5A5;
}

.ecg-page .case-option-btn.is-exam-picked {
  background: rgba(10, 132, 255, 0.20);
  border-color: #64D2FF;
}

.ecg-page .case-hint-banner {
  background: rgba(255, 214, 10, 0.11);
  border-color: rgba(255, 214, 10, 0.30);
  color: #FDE047;
}

.ecg-page .case-guideline-foot {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(100, 210, 255, 0.22);
  font-size: 12px;
  color: #E2E8F0;
}

.ecg-page .case-exam-summary {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(100, 210, 255, 0.34);
}

.ecg-page .case-exam-summary strong { color: #FFFFFF; }
.ecg-page .case-exam-summary span   { color: #CBD5E1; }

.ecg-page .real-ecg-viewer {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.ecg-page .real-metric-tile span { color: #8E95A5; }
.ecg-page .real-metric-tile strong { color: #F8FAFC; }

/* 9. Space-Black OLED Footer & Glowing App CTA */
.ecg-page .ios-cta-banner {
  background: linear-gradient(135deg, rgba(16, 26, 46, 0.94) 0%, rgba(7, 11, 22, 0.98) 100%);
  border: 1px solid rgba(100, 210, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ecg-page .site-footer {
  background: #020409;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

.ecg-page .site-footer .brand-mark__word,
.ecg-page .site-footer h4,
.ecg-page .site-footer strong {
  color: #F5F5F7;
}

.ecg-page .site-footer a {
  color: #94A3B8;
}

.ecg-page .site-footer a:hover {
  color: #64D2FF;
}

.ecg-page .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .pci-reperf-toast {
    font-size: 9.8px;
    padding: 7px 12px;
    max-width: 92vw;
    white-space: normal;
    text-align: center;
  }
}


/* ============================================================================
   v28.1 FINAL DESIGN-CRAFT PRECISION PATCH
   - Fix all 6 exact dark-mode surface selectors (zero stray white boxes!)
   - Machined Aerospace-Titanium Specular Top Rim Light on Flagship Workstations
   - Apple Pro Metallic Silver-White Display Headlines
   - Hero Non-Wrapping LVEF Ring Gauge + Compact Stent Toast
   ============================================================================ */

/* Hero LVEF Ring Gauge strictly side-by-side & compact Stent Toast */
.cinema-vitals-pro {
  flex-wrap: nowrap !important;
  max-width: 345px;
}

.pci-reperf-toast {
  top: 14px;
}

/* Apple Pro Metallic Silver-White Display Headlines */
.ecg-page .cinema-title,
.ecg-page .section-head-apple .h-section,
.ecg-page .apple-h2 {
  background: linear-gradient(180deg, #FFFFFF 0%, #D8E0EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Machined Aerospace-Titanium Luminous Top Specular Hairline on Flagship Consoles */
.ecg-page .wiggers-console::before,
.ecg-page .sheet-workbench.is-dark-paper::before,
.ecg-page .topic-deep-dive::before,
.ecg-page .lab-hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(100, 210, 255, 0.58) 50%, transparent 100%);
}

/* Fix 1: 4D Infarct Timeline buttons in Coronary Dossier */
.ecg-page .evo-step-btn strong {
  color: #CBD5E1;
}

.ecg-page .evo-step-btn:hover strong {
  color: #FFFFFF;
}

.ecg-page .evo-step-btn.is-active strong {
  color: #050811;
}

/* Fix 2: 80 ECGs Chapter Bento Buttons */
.ecg-page .chapter-bento-btn {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #E2E8F0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ecg-page .chapter-bento-btn small {
  color: #8E95A5;
}

.ecg-page .chapter-bento-btn strong {
  color: #F8FAFC;
}

.ecg-page .chapter-bento-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 210, 255, 0.45);
}

.ecg-page .chapter-bento-btn.is-active {
  background: #F8FAFC;
  border-color: #FFFFFF;
  color: #050811;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}

.ecg-page .chapter-bento-btn.is-active small {
  color: #475569;
}

.ecg-page .chapter-bento-btn.is-active strong {
  color: #050811;
}

/* Fix 3 & 4: Labs Section Dark Glass Cards (Torso Progression, Telemetry, Coach Card, Nomogram Box) */
.ecg-page .torso-legend-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: #CBD5E1;
}

.ecg-page .torso-legend-hint {
  color: #8E95A5;
}

.ecg-page .torso-prog-wrap,
.ecg-page .lab-tel-cell,
.ecg-page .coach-step-card,
.ecg-page .coach-criteria-box > div,
.ecg-page .lab-nomogram-box {
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid rgba(255, 255, 255, 0.095);
  color: #E2E8F0;
}

.ecg-page .lab-nomogram-box {
  background: #060B15;
  border: 1px solid rgba(100, 210, 255, 0.18);
}

.ecg-page .lab-nomogram-box .micro-label {
  color: #64D2FF !important;
}

.ecg-page .torso-prog-note {
  color: #94A3B8;
}

.ecg-page .lab-tel-cell strong,
.ecg-page .coach-criteria-box strong,
.ecg-page #elec-title,
.ecg-page #coach-headline {
  color: #F8FAFC;
}

.ecg-page .coach-criteria-box span,
.ecg-page .coach-criteria-box small {
  color: #94A3B8;
}

.ecg-page .coach-step-card .ceramic-body {
  color: #CBD5E1;
}

.ecg-page .torso-prog-tile {
  background: #FFF8F6;
  border-color: rgba(255, 255, 255, 0.18);
}

.ecg-page .torso-prog-tile span {
  color: #0F172A;
}

/* Fix 5: Real Paper ECG Tabs in #clinical-detective */
.ecg-page .electrode-pills button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.ecg-page .electrode-pills button:hover {
  border-color: rgba(100, 210, 255, 0.45);
  color: #FFFFFF;
}

.ecg-page .electrode-pills button.is-active {
  background: #F8FAFC;
  border-color: #FFFFFF;
  color: #050811;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}


/* ============================================================================
   v29 MEDIBYTE ECG STUDIO PRO OS · FULL-VIEWPORT VISIONOS / MACOS APP SHELL
   - Single-Screen 100svh App Architecture (Zero Long Scrolling Webpage!)
   - Eliminates All Repetitive Marketing Headings & Blog Footers
   - Floating Left VisionOS Glass Workspace Rail (Bottom App Bar on Mobile)
   - True macOS Master-Detail Split View for 80 ECGs & Dedicated 3-Mode Labs
   ============================================================================ */

html:has(body.ecg-studio-os),
body.ecg-studio-os {
  height: 100svh;
  overflow: hidden;
  background: #020409;
}

/* 1. 48px macOS / VisionOS Pro Top Instrument Titlebar */
.ecg-studio-os .studio-os-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 60;
  background: rgba(7, 10, 18, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.ecg-studio-os .studio-topbar-inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.os-crumb-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 400;
}

.os-ws-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.12);
  border: 1px solid rgba(100, 210, 255, 0.28);
  color: #64D2FF;
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Live Center Global Patient Telemetry Pill */
.os-global-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 11.6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.os-global-telemetry:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(100, 210, 255, 0.36);
}

.os-global-telemetry strong {
  color: #FFFFFF;
  font-weight: 700;
}

.os-tel-sep {
  color: rgba(255, 255, 255, 0.28);
}

.os-global-telemetry .is-crit { color: #FF6961; font-weight: 700; }
.os-global-telemetry .is-good { color: #4ADE80; font-weight: 700; }

.os-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF453A;
  box-shadow: 0 0 9px rgba(255, 69, 58, 0.9);
  animation: liveDotPulse 1.3s ease-in-out infinite;
}

.os-live-dot.is-good {
  background: #30D158;
  box-shadow: 0 0 9px rgba(48, 209, 88, 0.9);
}

.os-home-link {
  color: #94A3B8;
  font-size: 12.2px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.os-home-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

/* 2. Floating Left VisionOS Glass App Sidebar Rail */
.studio-os-rail {
  position: fixed;
  top: 58px;
  left: 10px;
  bottom: 10px;
  width: 72px;
  z-index: 50;
  padding: 8px 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.84) 0%, rgba(7, 10, 18, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.os-rail-btn {
  width: 58px;
  flex: 1;
  max-height: 76px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: transparent;
  color: #8E95A5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.os-rail-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.os-rail-btn span {
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.os-rail-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #F8FAFC;
}

.os-rail-btn.is-active {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.28) 0%, rgba(10, 132, 255, 0.12) 100%);
  border-color: rgba(100, 210, 255, 0.48);
  color: #FFFFFF;
  box-shadow: 0 0 24px rgba(10, 132, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.os-rail-btn.is-active svg {
  color: #64D2FF;
  filter: drop-shadow(0 0 6px rgba(100, 210, 255, 0.55));
}

/* 3. Main Full-Viewport App Workspace Stage (Zero Long Scrolling Webpage!) */
.studio-os-stage {
  position: fixed;
  top: 48px;
  left: 90px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #020409;
}

.studio-os-stage > section {
  display: none !important;
}

.studio-os-stage > section.is-ws-active {
  display: block !important;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 22px 28px !important;
  border-top: none !important;
  border-bottom: none !important;
  animation: osWorkspaceReveal 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

@keyframes osWorkspaceReveal {
  from { opacity: 0; transform: scale(0.994); }
  to   { opacity: 1; transform: scale(1); }
}

/* Full-bleed edge-to-edge layout inside App Stage */
.ecg-studio-os .wrap {
  width: 100%;
  max-width: 1520px;
  padding: 0;
  margin: 0 auto;
}

/* Eliminate ALL Repetitive Marketing Section Banners & Webpage Footer inside Studio OS! */
.ecg-studio-os .section-head-apple,
.ecg-studio-os .ios-cta-banner,
.ecg-studio-os .site-footer,
.ecg-studio-os .cond-spotlight-wrap {
  display: none !important;
}

/* 4. Workspace 1: Full-Bleed 3D Heart Stage + Floating VisionOS Sub-View Lens Switcher */
.studio-os-stage > #coronary-3d.is-ws-active {
  padding: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.ecg-studio-os #coronary-3d .cinema-editorial {
  top: 26px;
  left: 28px;
}

.ecg-studio-os #coronary-3d .cinema-scenario-rail {
  top: 26px;
  right: 22px;
}

.ecg-studio-os #coronary-3d .cinema-bottom-layer {
  bottom: 14px;
}

.os-hero-subswitch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 17, 29, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.os-hero-subswitch.is-inline {
  position: static;
  transform: none;
}

.os-dossier-backbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.os-sub-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 11.8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.os-sub-btn:hover {
  color: #FFFFFF;
}

.os-sub-btn.is-active {
  background: #F8FAFC;
  color: #050811;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.22);
}

.ecg-studio-os .pci-reperf-toast {
  top: 56px;
}

/* 5. Workspace 2 (EP Lab), Workspace 3 (Wiggers), Workspace 4 (15-Lead), ACS, USMLE: Tight Pro Framing */
.ecg-studio-os #conduction-theatre .cond-console,
.ecg-studio-os #wiggers-lab .wiggers-console,
.ecg-studio-os #workbench-12lead .sheet-workbench {
  margin-top: 0;
}

.ecg-studio-os #acs-masterclass .acs-master-tabs,
.ecg-studio-os #usmle-ep-lab .usmle-master-tabs {
  margin-top: 0;
  margin-bottom: 16px;
}

/* 6. Workspace 7: TRUE macOS Master-Detail Split-View 80 ECG Clinical Library (#atlas-80) */
.ecg-studio-os #atlas-80.is-ws-active {
  padding: 14px 18px !important;
  overflow: hidden !important;
}

.ecg-studio-os #atlas-80 .wrap {
  height: 100%;
}

.atlas-split-shell {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.atlas-master-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.90) 0%, rgba(7, 11, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.atlas-master-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

.atlas-master-head .atlas-search-wrap {
  flex: 0 0 38px !important;
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 11px;
}

.ecg-studio-os .dd-strip-head span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.atlas-master-head .atlas-quick-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.atlas-master-head .chapter-pill,
.atlas-master-head .atlas-stat-badge {
  padding: 4px 8px;
  font-size: 10.6px;
}

.atlas-master-head .chapter-bento-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin: 0;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.atlas-master-head .chapter-bento-strip::-webkit-scrollbar {
  display: none;
}

.atlas-master-head .chapter-bento-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 10px;
  min-width: auto;
}

.atlas-master-head .chapter-bento-btn small {
  display: none;
}

.atlas-master-head .chapter-bento-btn strong {
  font-size: 11px;
  white-space: nowrap;
}

.atlas-master-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.atlas-master-scroll .atlas-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.atlas-master-scroll .atlas-card {
  padding: 11px 12px;
  border-radius: 14px;
  min-height: 0;
}

.atlas-master-scroll .atlas-card__strip {
  height: 44px;
}

.atlas-master-scroll .atlas-card__clue {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.4px;
  margin-bottom: 6px;
}

.atlas-split-shell > .topic-deep-dive {
  height: 100%;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* 7. Workspace 8: Dedicated 3-Instrument Full-Canvas Bedside Lab Switcher (#labs-section) */
.os-lab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 14px;
}

.os-lab-tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 12.6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.os-lab-tab:hover {
  color: #FFFFFF;
}

.os-lab-tab.is-active {
  background: #F8FAFC;
  color: #050811;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.22);
}

.ecg-studio-os [data-lab-pane] {
  display: none !important;
}

.ecg-studio-os [data-lab-pane].is-lab-active {
  display: block !important;
}

.ecg-studio-os #labs-section .labs-lower-grid {
  display: block;
  margin-top: 0;
}

.ecg-studio-os #labs-section .lab-bench-card.is-lab-active {
  max-width: 1080px;
  margin: 0 auto;
}

/* 8. Responsive Tablet & Mobile Native App Tab Bar (Zero Horizontal Overflow!) */
@media (max-width: 960px) {
  .os-global-telemetry,
  .os-home-link,
  .os-crumb-sep {
    display: none !important;
  }

  .studio-os-rail {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 60px;
    padding: 5px 8px;
    border-radius: 18px;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }

  .studio-os-rail::-webkit-scrollbar {
    display: none;
  }

  .os-rail-btn {
    flex: 0 0 64px;
    height: 48px;
    max-height: 48px;
    border-radius: 12px;
  }

  .studio-os-stage {
    top: 48px;
    left: 0;
    right: 0;
    bottom: 72px;
  }

  .studio-os-stage > section.is-ws-active {
    padding: 12px 12px 24px !important;
  }

  .studio-os-stage > #coronary-3d.is-ws-active {
    overflow-y: auto !important;
  }

  .ecg-studio-os #atlas-80.is-ws-active {
    overflow-y: auto !important;
  }

  .atlas-split-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .atlas-master-col {
    height: 360px;
  }

  .atlas-split-shell > .topic-deep-dive {
    height: auto;
    overflow: visible;
  }

  .os-hero-subswitch {
    top: 8px;
  }
}


/* ============================================================================
   v30 APPLE PRO (FINAL CUT / LOGIC) + LINEAR + DIETER RAMS CARBON DESIGN OVERHAUL
   - 100% Pure Neutral Carbon & Graphite Surfaces (Zero Navy-Blue / Zero Neon Cyan)
   - Flush Edge-to-Edge Pro Chrome (44px Titlebar + 64px Left Rail + 1px Hairlines)
   - Museum-Grade Borderless 3D Heart Hero (Zero Floating Boxes / Zero Glaring White Pills)
   - Flattened Architectural Panels Across All 9 Workspaces & True Flush Split-View Atlas
   ============================================================================ */

:root {
  --pro-void: #000000;
  --pro-bg: #09090B;
  --pro-chrome: #0D0D0F;
  --pro-panel: #111114;
  --pro-well: #16161A;
  --pro-control: #1C1C21;
  --pro-active: #27272C;
  --pro-hairline: rgba(255, 255, 255, 0.075);
  --pro-hairline-md: rgba(255, 255, 255, 0.13);
  --pro-ink: #F4F4F5;
  --pro-ink-sec: #A1A1AA;
  --pro-ink-dim: #71717A;
}

html:has(body.ecg-studio-os),
body.ecg-page,
body.ecg-studio-os {
  background: var(--pro-bg) !important;
  color: var(--pro-ink) !important;
}

/* 1. Kill All AI-Dashboard Neon Auroras, Cyan Laser Rims & Cursor Spotlight Blobs */
.ecg-page .conduction-aurora,
.ecg-page .wiggers-aurora,
.ecg-page .cinema-polar-reticle,
.ecg-page .wiggers-console::before,
.ecg-page .sheet-workbench.is-dark-paper::before,
.ecg-page .topic-deep-dive::before,
.ecg-page .lab-hero-card::before,
.ecg-page .acs-obsidian-card::before,
.ecg-page .ceramic-card::after,
.ecg-page .acs-obsidian-card::after,
.ecg-page .wiggers-panel::after,
.ecg-page .atlas-card::after,
.ecg-page .topic-deep-dive::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* 2. Flush 44px Apple Pro / Linear Top Instrument Titlebar */
.ecg-studio-os .studio-os-topbar {
  height: 44px !important;
  background: var(--pro-chrome) !important;
  border-bottom: 1px solid var(--pro-hairline) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

.ecg-studio-os .os-brand-group {
  gap: 8px;
}

.ecg-studio-os .brand-mark__word {
  font-size: 13.5px;
  letter-spacing: -0.02em;
  color: var(--pro-ink);
}

.ecg-studio-os .os-crumb-sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.ecg-studio-os .os-ws-badge {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--pro-ink-sec) !important;
  font-size: 12.4px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Contextual Cath-Lab Switcher cleanly anchored inside 44px Titlebar */
.os-top-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  margin-left: 8px;
  border-radius: 8px;
  background: var(--pro-well);
  border: 1px solid var(--pro-hairline);
}

.os-top-subtabs .os-sub-btn {
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: var(--pro-ink-sec) !important;
  font-size: 11.4px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.os-top-subtabs .os-sub-btn:hover {
  color: var(--pro-ink) !important;
}

.os-top-subtabs .os-sub-btn.is-active {
  background: var(--pro-active) !important;
  color: #FAFAFA !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* Whisper-Quiet Center Global Patient Telemetry Pill */
.ecg-studio-os .os-global-telemetry {
  padding: 4px 11px !important;
  border-radius: 8px !important;
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  box-shadow: none !important;
  color: var(--pro-ink-sec) !important;
  font-size: 11.4px !important;
  font-weight: 500 !important;
}

.ecg-studio-os .os-global-telemetry:hover {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
}

.ecg-studio-os .os-global-telemetry strong {
  color: var(--pro-ink) !important;
  font-weight: 600 !important;
}

.ecg-studio-os .os-live-dot {
  width: 6px !important;
  height: 6px !important;
  box-shadow: none !important;
}

/* Quiet Monochrome Right Toolbar Controls */
.ecg-studio-os .nav-spotlight-btn {
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  box-shadow: none !important;
  color: var(--pro-ink-sec) !important;
  font-size: 11.6px !important;
}

.ecg-studio-os .nav-spotlight-btn:hover {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
  color: var(--pro-ink) !important;
}

.ecg-studio-os .nav-spot-kbd {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--pro-hairline) !important;
  color: var(--pro-ink-dim) !important;
  font-size: 10px !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
}

.ecg-studio-os .os-home-link {
  color: var(--pro-ink-sec) !important;
  font-size: 11.8px !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
}

.ecg-studio-os .os-home-link:hover {
  color: var(--pro-ink) !important;
  background: var(--pro-well) !important;
}

.ecg-studio-os .nav-download-cta {
  height: 28px !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  background: var(--pro-control) !important;
  border: 1px solid var(--pro-hairline-md) !important;
  color: var(--pro-ink) !important;
  font-size: 11.6px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
}

.ecg-studio-os .nav-download-cta:hover {
  background: var(--pro-active) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* 3. Flush 64px Edge-to-Edge Left Pro Workspace Rail (Zero Floating Bubble!) */
.ecg-studio-os .studio-os-rail {
  top: 44px !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 64px !important;
  padding: 8px 6px !important;
  border-radius: 0 !important;
  background: var(--pro-chrome) !important;
  border: none !important;
  border-right: 1px solid var(--pro-hairline) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  justify-content: flex-start !important;
  gap: 4px !important;
}

.ecg-studio-os .os-rail-btn {
  position: relative;
  width: 52px !important;
  flex: 0 0 54px !important;
  height: 54px !important;
  max-height: 54px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--pro-ink-dim) !important;
  gap: 5px !important;
  box-shadow: none !important;
}

.ecg-studio-os .os-rail-btn svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.75;
}

.ecg-studio-os .os-rail-btn span {
  font-size: 9.4px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

.ecg-studio-os .os-rail-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--pro-ink) !important;
}

.ecg-studio-os .os-rail-btn.is-active {
  background: var(--pro-well) !important;
  border-color: var(--pro-hairline) !important;
  color: #FAFAFA !important;
  box-shadow: none !important;
}

.ecg-studio-os .os-rail-btn.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: #FAFAFA;
}

.ecg-studio-os .os-rail-btn.is-active svg {
  color: #FAFAFA !important;
  filter: none !important;
}

.ecg-studio-os .os-rail-btn.is-active span {
  font-weight: 600 !important;
}

/* 4. Main Workspace Stage Frame & Pure Neutral Carbon Section Backgrounds */
.ecg-studio-os .studio-os-stage {
  top: 44px !important;
  left: 64px !important;
  right: 0 !important;
  bottom: 0 !important;
  background: var(--pro-bg) !important;
}

.ecg-studio-os .studio-os-stage > section.is-ws-active {
  padding: 18px 24px 28px !important;
  background: var(--pro-bg) !important;
  background-image: none !important;
}

.ecg-page .ceramic-dossier-section,
.ecg-page .section-conduction,
.ecg-page .section-wiggers,
.ecg-page .section-12lead,
.ecg-page .section-acs-masterclass,
.ecg-page .section-usmle-lab,
.ecg-page .section-atlas,
.ecg-page .section-labs,
.ecg-page .section-detective {
  background: var(--pro-bg) !important;
  background-image: none !important;
  color: var(--pro-ink) !important;
}

/* 5. Workspace 1: Museum-Grade Uncluttered OLED 3D Heart Hero (#coronary-3d) */
.ecg-studio-os .studio-os-stage > #coronary-3d.is-ws-active {
  padding: 0 !important;
  background: var(--pro-void) !important;
}

.ecg-studio-os #coronary-3d .heart-cinema__glow {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.13) 0%, rgba(185, 28, 28, 0.04) 40%, transparent 70%) !important;
  filter: blur(34px) !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .heart-cinema__glow {
  background: radial-gradient(circle, rgba(48, 209, 88, 0.13) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%) !important;
}

.ecg-studio-os #coronary-3d .cinema-editorial {
  top: 28px !important;
  left: 32px !important;
  max-width: 340px !important;
}

.ecg-studio-os #coronary-3d .cinema-eyebrow {
  font-size: 10px !important;
  letter-spacing: 0.11em !important;
  color: var(--pro-ink-dim) !important;
  margin-bottom: 8px !important;
}

.ecg-studio-os #coronary-3d .cinema-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #FAFAFA !important;
  font-size: clamp(32px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.04 !important;
  margin: 0 0 10px !important;
}

.ecg-studio-os #coronary-3d .cinema-subtitle {
  color: var(--pro-ink-sec) !important;
  font-size: 13px !important;
  line-height: 1.52 !important;
  margin: 0 !important;
}

/* Borderless Editorial Vitals Strip (No Chunky Box Around LVEF!) */
.ecg-studio-os #coronary-3d .cinema-vitals-pro {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 15px 0 0 !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  gap: 15px !important;
  max-width: 330px !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge {
  width: 58px !important;
  height: 58px !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge circle#hero-ef-arc {
  filter: none !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge strong {
  font-size: 13.8px !important;
  font-weight: 700 !important;
  color: #FAFAFA !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge small {
  font-size: 8px !important;
  color: var(--pro-ink-dim) !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric span {
  font-size: 10px !important;
  color: var(--pro-ink-dim) !important;
  min-width: 68px !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric strong {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--pro-ink) !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric strong.is-danger {
  color: #FF453A !important;
}

/* Borderless Minimal Right 12-Scenario Edge Index (Frees the 3D Stage!) */
.ecg-studio-os #coronary-3d .cinema-scenario-rail {
  top: 28px !important;
  right: 24px !important;
  width: 224px !important;
  padding: 0 0 0 12px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ecg-studio-os #coronary-3d .cinema-rail-head {
  padding: 0 4px 8px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
  color: var(--pro-ink-dim) !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn {
  padding: 5.5px 8px !important;
  border-radius: 6px !important;
  border-left: 2px solid transparent !important;
  color: var(--pro-ink-dim) !important;
  font-size: 11.4px !important;
  font-weight: 500 !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--pro-ink) !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn.is-active {
  background: rgba(255, 255, 255, 0.065) !important;
  border-left-color: #FF453A !important;
  color: #FAFAFA !important;
  font-weight: 600 !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .mi-preset-btn.is-active {
  border-left-color: #30D158 !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn__num {
  color: #52525B !important;
  font-size: 9.8px !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn.is-active .mi-preset-btn__num {
  color: var(--pro-ink-sec) !important;
}

/* Restrained Bottom 3-Lead Carbon Monitor & Dieter Rams Hardware Control Dock */
.ecg-studio-os #coronary-3d .cinema-bottom-layer {
  left: 28px !important;
  right: 28px !important;
  bottom: 14px !important;
  gap: 8px !important;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon {
  border-radius: 10px !important;
  background: rgba(11, 11, 13, 0.84) !important;
  border: 1px solid var(--pro-hairline) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon__meta {
  padding: 5px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-size: 10px !important;
  color: var(--pro-ink-dim) !important;
}

.ecg-studio-os #coronary-3d #cath-icu-canvas {
  height: 68px !important;
}

.ecg-studio-os #coronary-3d .cinema-dock {
  padding: 4px 6px !important;
  border-radius: 11px !important;
  background: rgba(17, 17, 20, 0.92) !important;
  border: 1px solid var(--pro-hairline-md) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important;
  gap: 6px !important;
}

.ecg-studio-os #coronary-3d .dock-segment {
  padding: 2px !important;
  border-radius: 8px !important;
  background: var(--pro-bg) !important;
  border: 1px solid var(--pro-hairline) !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn {
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-size: 11.6px !important;
  font-weight: 500 !important;
  color: var(--pro-ink-sec) !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn.is-active {
  background: var(--pro-active) !important;
  color: #FAFAFA !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
}

/* Surgical Graphite Primary PCI Trigger (Replaces Glaring White Brick!) */
.ecg-studio-os #coronary-3d .dock-pci-btn {
  padding: 6px 14px !important;
  border-radius: 8px !important;
  background: #1C1C21 !important;
  border: 1px solid rgba(255, 69, 58, 0.42) !important;
  color: #FAFAFA !important;
  font-size: 11.8px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn:hover {
  background: rgba(255, 69, 58, 0.15) !important;
  border-color: rgba(255, 69, 58, 0.68) !important;
  transform: none !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn .dock-pci-dot {
  width: 7px !important;
  height: 7px !important;
  background: #FF453A !important;
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.75) !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.is-reperfused {
  background: rgba(48, 209, 88, 0.14) !important;
  border-color: rgba(48, 209, 88, 0.45) !important;
  color: #4ADE80 !important;
  box-shadow: none !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.is-reperfused .dock-pci-dot {
  background: #30D158 !important;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.75) !important;
}

.ecg-studio-os #coronary-3d .dock-icon-group {
  border-left-color: var(--pro-hairline) !important;
  padding-left: 6px !important;
  gap: 2px !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn {
  padding: 5px 9px !important;
  border-radius: 6px !important;
  font-size: 11.4px !important;
  color: var(--pro-ink-dim) !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn:hover {
  color: var(--pro-ink) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn.is-active {
  background: var(--pro-control) !important;
  color: #FAFAFA !important;
}

.ecg-studio-os #coronary-3d .cinema-hover-caption {
  font-size: 10.2px !important;
  color: #52525B !important;
}

.ecg-studio-os .pci-reperf-toast {
  top: 16px !important;
  border-radius: 8px !important;
  background: rgba(17, 17, 20, 0.94) !important;
  border: 1px solid rgba(48, 209, 88, 0.42) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
  color: #4ADE80 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* 6. Architectural Flat Carbon Panels Across ALL 9 Workspaces (Zero Navy / Zero Double Boxes) */
.ecg-page .ceramic-card,
.ecg-page .conduction-stage-card,
.ecg-page .wiggers-console,
.ecg-page .sheet-workbench.is-dark-paper,
.ecg-page .acs-obsidian-card,
.ecg-page .topic-deep-dive,
.ecg-page .lab-hero-card,
.ecg-page .lab-bench-card,
.ecg-page .cabrera-compass-card,
.ecg-page .spot-dialog {
  background: var(--pro-panel) !important;
  background-image: none !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Flatten Outer Frame on Multi-Panel Consoles so Inner Panels Own the Grid */
.ecg-studio-os .conduction-stage-card,
.ecg-studio-os .wiggers-console {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.ecg-studio-os .conduction-heart-box,
.ecg-studio-os .conduction-ecg-box,
.ecg-studio-os .wiggers-panel {
  background: var(--pro-panel) !important;
  background-image: none !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.ecg-studio-os .conduction-top-bar,
.ecg-studio-os .wiggers-top-bar {
  padding-bottom: 12px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid var(--pro-hairline) !important;
}

/* Recessed Carbon Inset Wells (Metrics, Telemetry, Criteria, Presets) */
.ecg-page .vessel-hero-strip,
.ecg-page .leads-split-box,
.ecg-page .dossier-hemo-cell,
.ecg-page .dossier-salvage-wrap,
.ecg-page .wiggers-metric-card,
.ecg-page .cond-stat,
.ecg-page .cond-node-card,
.ecg-page .sheet-workbench.is-dark-paper .caliper-zoom-panel,
.ecg-page .sheet-workbench.is-dark-paper .vital-box,
.ecg-page .vw-ion-bars,
.ecg-page .usmle-brugada-detail,
.ecg-page .criteria-list li,
.ecg-page .dd-tel-cell,
.ecg-page .torso-prog-wrap,
.ecg-page .torso-legend-bar,
.ecg-page .torso-legend-strip,
.ecg-page .lab-tel-cell,
.ecg-page .coach-step-card,
.ecg-page .coach-criteria-box > div,
.ecg-page .qtc-slider-box,
.ecg-page .qtc-formula-tile,
.ecg-page .case-chart-bar,
.ecg-page .real-metric-tile,
.ecg-page .acs-metric-tile,
.ecg-page .acs-clinical-note {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.ecg-page .lab-nomogram-box,
.ecg-page .usmle-ap-canvas-wrap,
.ecg-page .wiggers-wave-wrap,
.ecg-page .wiggers-pv-wrap {
  background: #0B0B0D !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 10px !important;
}

.ecg-page .qtc-nomogram-box .lab-scope-head {
  background: #0D0D10 !important;
  border-bottom: 1px solid var(--pro-hairline) !important;
}

/* 7. Unified Calm Graphite Active Controls Across ALL Modules (ZERO Glaring Pure-White Pills!) */
.ecg-page .acs-tab-bar,
.ecg-page .usmle-tab-bar,
.ecg-page .os-lab-bar,
.ecg-page .conduction-speed-bar,
.ecg-page .wiggers-speed-seg,
.ecg-page .lab-seg-bar,
.ecg-page .case-mode-toggle {
  background: var(--pro-panel) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 10px !important;
  padding: 3px !important;
}

.ecg-page .cond-pill,
.ecg-page .wiggers-pill,
.ecg-page .cam-pill,
.ecg-page .evo-step-btn,
.ecg-page .acs-tab-btn,
.ecg-page .acs-pheno-pill,
.ecg-page .usmle-vw-pill,
.ecg-page .brugada-step-btn,
.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn,
.ecg-page .topic-deep-dive .sheet-ctrl-btn,
.ecg-page .chapter-bento-btn,
.ecg-page .topic-step-tab,
.ecg-page .os-lab-tab,
.ecg-page .coach-step-btn,
.ecg-page .qtc-preset-btn,
.ecg-page .qtc-bogossian-btn,
.ecg-page .coach-nav-btn,
.ecg-page .case-lead-btn,
.ecg-page .case-util-btn,
.ecg-page .case-board-card .sheet-ctrl-btn,
.ecg-page .electrode-pills button,
.ecg-page .real-study-card .elec-pill,
.ecg-page .wiggers-ctrl-btn,
.ecg-page .cond-ctrl-btn,
.ecg-page .diff-superimpose-btn {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 8px !important;
  color: var(--pro-ink-sec) !important;
  box-shadow: none !important;
  transform: none !important;
}

.ecg-page .acs-tab-btn,
.ecg-page .os-lab-tab,
.ecg-page .cond-ctrl-btn,
.ecg-page .lab-seg-btn,
.ecg-page .case-mode-btn,
.ecg-page .wiggers-spd-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
}

.ecg-page .cond-pill:hover,
.ecg-page .wiggers-pill:hover,
.ecg-page .cam-pill:hover,
.ecg-page .evo-step-btn:hover,
.ecg-page .acs-tab-btn:hover,
.ecg-page .acs-pheno-pill:hover,
.ecg-page .usmle-vw-pill:hover,
.ecg-page .brugada-step-btn:hover,
.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn:hover,
.ecg-page .chapter-bento-btn:hover,
.ecg-page .topic-step-tab:hover,
.ecg-page .os-lab-tab:hover,
.ecg-page .coach-step-btn:hover,
.ecg-page .qtc-preset-btn:hover,
.ecg-page .case-lead-btn:hover,
.ecg-page .electrode-pills button:hover,
.ecg-page .wiggers-ctrl-btn:hover {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
  color: var(--pro-ink) !important;
  transform: none !important;
}

/* Signature Tactile Active State: Elevated Graphite + Top Specular Hairline + Pure Crisp Ink */
.ecg-page .cond-pill.is-active,
.ecg-page .wiggers-pill.is-active,
.ecg-page .cam-pill.is-active,
.ecg-page .evo-step-btn.is-active,
.ecg-page .acs-tab-btn.is-active,
.ecg-page .acs-pheno-pill.is-active,
.ecg-page .usmle-vw-pill.is-active,
.ecg-page .brugada-step-btn.is-active,
.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn.is-active,
.ecg-page .chapter-bento-btn.is-active,
.ecg-page .topic-step-tab.is-active,
.ecg-page .os-lab-tab.is-active,
.ecg-page .lab-seg-btn.is-active,
.ecg-page .coach-step-btn.is-active,
.ecg-page .qtc-preset-btn.is-active,
.ecg-page .qtc-bogossian-btn.is-active,
.ecg-page .case-mode-btn.is-active,
.ecg-page .case-lead-btn.is-active,
.ecg-page .electrode-pills button.is-active,
.ecg-page .real-study-card .elec-pill.is-active,
.ecg-page .wiggers-ctrl-btn.is-active,
.ecg-page .wiggers-spd-btn.is-active,
.ecg-page .cond-ctrl-btn.is-active,
.ecg-page .diff-superimpose-btn.is-active {
  background: var(--pro-active) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #FAFAFA !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.ecg-page .evo-step-btn.is-active strong,
.ecg-page .chapter-bento-btn.is-active strong,
.ecg-page .acs-tab-btn.is-active strong,
.ecg-page .brugada-step-btn.is-active strong {
  color: #FAFAFA !important;
}

.ecg-page .acs-tab-btn.is-active span,
.ecg-page .chapter-bento-btn.is-active small {
  color: var(--pro-ink-sec) !important;
}

.ecg-page .lab-seg-btn.is-danger-opt.is-active {
  background: rgba(255, 69, 58, 0.18) !important;
  border-color: rgba(255, 69, 58, 0.45) !important;
  color: #FF8A80 !important;
}

/* Refine Accent Micro-Labels & Callouts (Neutral Silver-Zinc instead of Loud Cyan Everywhere) */
.ecg-page .wiggers-micro-tag,
.ecg-page .apple-kicker,
.ecg-page .case-chart-demo,
.ecg-page .lab-nomogram-box .micro-label {
  color: var(--pro-ink-sec) !important;
}

.ecg-page .ceramic-clinical-call,
.ecg-page .wiggers-pearl-box,
.ecg-page .case-exam-summary {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline-md) !important;
  border-left: 2px solid #A1A1AA !important;
  border-radius: 8px !important;
  color: var(--pro-ink-sec) !important;
}

.ecg-page .ceramic-clinical-call strong,
.ecg-page .wiggers-pearl-box strong {
  color: #FAFAFA !important;
}

.ecg-page .usmle-brugada-verdict {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
  color: var(--pro-ink) !important;
}

.ecg-page .case-option-btn {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 9px !important;
  color: var(--pro-ink) !important;
}

.ecg-page .case-option-btn:hover:not(:disabled) {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
}

.ecg-page .case-option-btn.is-exam-picked {
  background: var(--pro-active) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: none !important;
}

/* 8. Workspace 7: TRUE Flush macOS / Linear Master-Detail Split-Pane for 80 ECGs (#atlas-80) */
.ecg-studio-os #atlas-80.is-ws-active {
  padding: 0 !important;
}

.ecg-studio-os #atlas-80 .wrap {
  max-width: 100% !important;
  height: 100% !important;
}

.ecg-studio-os .atlas-split-shell {
  grid-template-columns: 336px minmax(0, 1fr) !important;
  gap: 0 !important;
  height: 100% !important;
}

.ecg-studio-os .atlas-master-col {
  border-radius: 0 !important;
  background: var(--pro-chrome) !important;
  background-image: none !important;
  border: none !important;
  border-right: 1px solid var(--pro-hairline) !important;
  box-shadow: none !important;
}

.ecg-studio-os .atlas-master-head {
  padding: 12px 12px 10px !important;
  border-bottom: 1px solid var(--pro-hairline) !important;
}

.ecg-studio-os .atlas-search-wrap {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 8px !important;
}

.ecg-studio-os .atlas-master-scroll {
  padding: 8px !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-cards-grid {
  gap: 5px !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 10px 11px !important;
  transition: background 0.14s ease, border-color 0.14s ease !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card:hover {
  background: var(--pro-panel) !important;
  border-color: var(--pro-hairline) !important;
  transform: none !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card.is-active {
  background: var(--pro-well) !important;
  border-color: var(--pro-hairline-md) !important;
  border-left: 2px solid #FAFAFA !important;
  box-shadow: none !important;
}

.ecg-studio-os .atlas-split-shell > .topic-deep-dive {
  border-radius: 0 !important;
  border: none !important;
  background: var(--pro-bg) !important;
  padding: 20px 26px 28px !important;
}

.ecg-studio-os .dd-strip-head {
  background: var(--pro-panel) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-bottom: none !important;
  border-radius: 9px 9px 0 0 !important;
  color: var(--pro-ink-sec) !important;
}

.ecg-studio-os .sync-mini-strip--clean {
  border-radius: 0 0 9px 9px !important;
  border-color: var(--pro-hairline) !important;
}

/* 9. Clean Mobile Flush Chrome (<= 960px, Zero Horizontal Overflow) */
@media (max-width: 960px) {
  .ecg-studio-os .os-ws-badge {
    display: none !important;
  }

  .os-top-subtabs {
    margin-left: 4px !important;
  }

  .os-top-subtabs .os-sub-btn {
    padding: 4px 8px !important;
    font-size: 10.6px !important;
  }

  .ecg-studio-os .studio-os-rail {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: 58px !important;
    padding: 4px 6px !important;
    border-right: none !important;
    border-top: 1px solid var(--pro-hairline) !important;
    border-radius: 0 !important;
    flex-direction: row !important;
  }

  .ecg-studio-os .os-rail-btn {
    flex: 0 0 60px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  .ecg-studio-os .os-rail-btn.is-active::before {
    left: 14px;
    right: 14px;
    top: -4px;
    bottom: auto;
    width: auto;
    height: 2px;
    border-radius: 0 0 2px 2px;
  }

  .ecg-studio-os .studio-os-stage {
    top: 44px !important;
    left: 0 !important;
    bottom: 58px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-editorial {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    max-width: none !important;
    padding: 16px 16px 8px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-scenario-rail {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    border-left: none !important;
    border-top: 1px solid var(--pro-hairline) !important;
    padding: 12px 16px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-bottom-layer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 12px 18px !important;
  }

  .ecg-studio-os #atlas-80.is-ws-active {
    padding: 0 !important;
    overflow-y: auto !important;
  }

  .ecg-studio-os .atlas-split-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .ecg-studio-os .atlas-master-col {
    border-right: none !important;
    border-bottom: 1px solid var(--pro-hairline) !important;
    height: 340px !important;
  }

  .ecg-studio-os .atlas-split-shell > .topic-deep-dive {
    padding: 14px 14px 24px !important;
  }
}


/* ============================================================================
   v30.1 SURGICAL PIXEL-POLISH PATCH
   - Neutralize final 4 stray pure-white pills (Lewis Ladder, 15-Lead Preset, Frontal, Myocyte)
   - Neutralize 15-Lead MUSE bar & saturated blue CTA buttons to machined carbon
   - Fix Hero eyebrow single-line balance, loading pill hide, and 390px mobile topbar fit
   ============================================================================ */

.ecg-studio-os #coronary-3d .cinema-eyebrow {
  font-size: 9.4px !important;
  letter-spacing: 0.07em !important;
  white-space: nowrap;
}

.ecg-studio-os #coronary-3d .cinema-loading {
  top: auto !important;
  bottom: 168px !important;
  transform: translateX(-50%) !important;
  padding: 5px 12px !important;
  border-radius: 7px !important;
  background: rgba(17, 17, 20, 0.86) !important;
  border: 1px solid var(--pro-hairline) !important;
  color: var(--pro-ink-sec) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
}

.ecg-studio-os #coronary-3d .cinema-loading.is-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Final 4 Stray Pure-White Pill Selectors -> Refined Machined Graphite */
.ecg-page .cond-track-tabs,
.ecg-page .compass-tabs {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 8px !important;
  padding: 2px !important;
}

.ecg-page .cond-track-btn,
.ecg-page .compass-tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  color: var(--pro-ink-sec) !important;
  box-shadow: none !important;
}

.ecg-page .sheet-pat-pill,
.ecg-page .acs-mini-pill {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 8px !important;
  color: var(--pro-ink-sec) !important;
  box-shadow: none !important;
}

.ecg-page .sheet-pat-pill:hover,
.ecg-page .acs-mini-pill:hover,
.ecg-page .cond-track-btn:hover,
.ecg-page .compass-tab:hover {
  background: var(--pro-control) !important;
  border-color: var(--pro-hairline-md) !important;
  color: var(--pro-ink) !important;
}

.ecg-page .cond-track-btn.is-active,
.ecg-page .sheet-pat-pill.is-active,
.ecg-page .compass-tab.is-active,
.ecg-page .acs-mini-pill.is-active {
  background: var(--pro-active) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #FAFAFA !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* Neutral Carbon 15-Lead GE MUSE Quantitative Bar */
.ecg-page .sheet-workbench.is-dark-paper .sheet-muse-report {
  background: var(--pro-well) !important;
  border: 1px solid var(--pro-hairline) !important;
  border-radius: 10px !important;
}

.ecg-page .sheet-workbench.is-dark-paper .muse-metrics-row {
  background: transparent !important;
  border-bottom: 1px solid var(--pro-hairline) !important;
}

.ecg-page .sheet-workbench.is-dark-paper .muse-cell {
  background: transparent !important;
  border-right-color: var(--pro-hairline) !important;
}

.ecg-page .sheet-workbench.is-dark-paper .muse-cell span {
  color: var(--pro-ink-dim) !important;
}

/* Understated Machined Graphite Primary Action Buttons (Zero Saturated iOS-Blue Stickers!) */
.ecg-page .acs-sync-3d-btn,
.ecg-page .btn-apple-solid {
  background: var(--pro-active) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-radius: 8px !important;
  color: #FAFAFA !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  font-weight: 600 !important;
}

.ecg-page .acs-sync-3d-btn:hover,
.ecg-page .btn-apple-solid:hover {
  background: #323238 !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: none !important;
}

.ecg-page .acs-pci-btn {
  border-radius: 8px !important;
}

/* Mobile 390px Topbar Fit: Keep MediByte Icon + Full Unclipped Subtabs + Search + iOS App */
@media (max-width: 560px) {
  .ecg-studio-os .brand-mark__word {
    display: none !important;
  }

  .ecg-studio-os .studio-os-topbar {
    padding: 0 10px !important;
  }

  .ecg-studio-os .studio-topbar-inner {
    gap: 6px !important;
  }

  .os-top-subtabs {
    margin-left: 2px !important;
  }

  .os-top-subtabs .os-sub-btn {
    padding: 4px 8px !important;
    font-size: 10.4px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-eyebrow {
    white-space: normal !important;
  }
}


/* ============================================================================
   v31 APPLE VISIONOS LIQUID GLASS & SPATIAL KEYNOTE EDITION
   - Zero Left Admin Sidebar: 100% Full-Bleed Spatial Stage
   - Floating VisionOS Liquid Glass 3-Island Command Bar (iOS 26 Capsule on Mobile)
   - Monumental Keynote 3D Heart Hero: Kinetic Watermark, Optical Grain, Glowing Ruby PCI CTA
   - Multi-Layer Apple Liquid Glass Depth, Pearlescent Specular Catchlights & Squircle Geometry
   ============================================================================ */

:root {
  --apple-stage: #050507;
  --apple-glass-bg: rgba(24, 25, 32, 0.58);
  --apple-glass-panel: linear-gradient(180deg, rgba(28, 29, 37, 0.72) 0%, rgba(14, 15, 20, 0.88) 100%);
  --apple-glass-well: rgba(255, 255, 255, 0.042);
  --apple-glass-rim: rgba(255, 255, 255, 0.14);
  --apple-glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --apple-glass-active: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 100%);
  --apple-glass-active-rim: rgba(255, 255, 255, 0.30);
}

html:has(body.ecg-studio-os),
body.ecg-page,
body.ecg-studio-os {
  background: var(--apple-stage) !important;
  color: #F5F5F7 !important;
}

/* 1. Floating 3-Island Apple VisionOS Liquid Glass Spatial Command Bar */
.ecg-studio-os .studio-os-topbar.vision-glass-bar {
  position: fixed !important;
  top: 14px !important;
  left: 22px !important;
  right: 22px !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
  z-index: 65 !important;
}

.ecg-studio-os .vision-topbar-inner {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.ecg-studio-os .vision-glass-island,
.ecg-studio-os .vision-glass-dock,
.ecg-studio-os .vision-right-cluster {
  pointer-events: auto !important;
}

/* Left Brand Floating Glass Capsule */
.ecg-studio-os .vision-glass-island {
  height: 40px !important;
  padding: 0 14px 0 11px !important;
  border-radius: 999px !important;
  background: var(--apple-glass-bg) !important;
  border: 1px solid var(--apple-glass-rim) !important;
  box-shadow: var(--apple-glass-spec), 0 16px 38px -12px rgba(0, 0, 0, 0.72) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  gap: 8px !important;
  flex-shrink: 0;
}

.ecg-studio-os .brand-mark__icon {
  border-radius: 6px;
}

.ecg-studio-os .brand-mark__word {
  font-size: 13.4px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #FFFFFF !important;
}

.ecg-studio-os .os-ws-badge {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(245, 245, 247, 0.64) !important;
}

/* Center Crown Jewel: Floating VisionOS Liquid Glass Workspace Bar (Replaces Left Admin Sidebar!) */
.ecg-studio-os .studio-os-rail.vision-glass-dock {
  position: static !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: 40px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: rgba(24, 25, 32, 0.64) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 20px 50px -12px rgba(0, 0, 0, 0.78) !important;
  -webkit-backdrop-filter: blur(44px) saturate(215%) !important;
  backdrop-filter: blur(44px) saturate(215%) !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  flex-shrink: 0;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn {
  width: auto !important;
  flex: 0 0 auto !important;
  height: 32px !important;
  max-height: 32px !important;
  padding: 0 11.5px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(235, 235, 245, 0.64) !important;
  flex-direction: row !important;
  gap: 0 !important;
  transition: background 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease, box-shadow 0.22s ease !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn svg {
  display: none !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn span {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn.is-active {
  background: var(--apple-glass-active) !important;
  border-color: var(--apple-glass-active-rim) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 6px 18px -4px rgba(0, 0, 0, 0.50) !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn.is-active::before {
  display: none !important;
  content: none !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn.is-active span {
  font-weight: 600 !important;
}

/* Right Floating Utility Cluster */
.ecg-studio-os .vision-right-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0;
}

.ecg-studio-os .os-global-telemetry {
  height: 40px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: var(--apple-glass-bg) !important;
  border: 1px solid var(--apple-glass-rim) !important;
  box-shadow: var(--apple-glass-spec), 0 16px 38px -12px rgba(0, 0, 0, 0.72) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  color: rgba(235, 235, 245, 0.72) !important;
  font-size: 11.6px !important;
}

.ecg-studio-os .os-tel-abp-wrap {
  display: none !important;
}

.ecg-studio-os .os-live-dot {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 10px rgba(255, 69, 58, 0.90) !important;
}

.ecg-studio-os .os-live-dot.is-good {
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.90) !important;
}

.ecg-studio-os .nav-spotlight-btn {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--apple-glass-bg) !important;
  border: 1px solid var(--apple-glass-rim) !important;
  box-shadow: var(--apple-glass-spec), 0 16px 38px -12px rgba(0, 0, 0, 0.72) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  color: rgba(245, 245, 247, 0.84) !important;
  gap: 7px !important;
}

.ecg-studio-os .nav-spotlight-btn:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #FFFFFF !important;
}

.ecg-studio-os .nav-spot-kbd {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(245, 245, 247, 0.78) !important;
  border-radius: 5px !important;
}

/* Signature Gleaming Apple Pearl-Titanium Primary Topbar Pill */
.ecg-studio-os .nav-download-cta {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E6EC 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #09090B !important;
  font-size: 12.2px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  box-shadow: 0 10px 28px -8px rgba(255, 255, 255, 0.34), inset 0 1px 0 #FFFFFF !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease !important;
}

.ecg-studio-os .nav-download-cta:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 14px 34px -6px rgba(255, 255, 255, 0.45), inset 0 1px 0 #FFFFFF !important;
}

@media (max-width: 1360px) {
  .ecg-studio-os #os-tel-case,
  .ecg-studio-os .os-global-telemetry .os-tel-sep:first-of-type {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .ecg-studio-os .os-ws-badge,
  .ecg-studio-os .os-crumb-sep,
  .ecg-studio-os .os-global-telemetry {
    display: none !important;
  }
}

/* 2. Full-Bleed Spatial Stage (Zero Left Offset, Museum Gallery Lighting) */
.ecg-studio-os .studio-os-stage {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: var(--apple-stage) !important;
}

.ecg-studio-os .studio-os-stage > section.is-ws-active {
  padding: 76px 32px 36px !important;
  background: radial-gradient(ellipse 85% 44% at 50% 0%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 72%), #050507 !important;
}

.ecg-studio-os .studio-os-stage > #conduction-theatre.is-ws-active {
  background: radial-gradient(ellipse 75% 48% at 40% 0%, rgba(56, 130, 246, 0.11) 0%, rgba(16, 20, 32, 0.15) 45%, transparent 74%), #050507 !important;
}

.ecg-studio-os .studio-os-stage > #wiggers-lab.is-ws-active {
  background: radial-gradient(ellipse 75% 46% at 50% 0%, rgba(16, 185, 129, 0.09) 0%, transparent 70%), #050507 !important;
}

.ecg-studio-os .studio-os-stage > #acs-masterclass.is-ws-active,
.ecg-studio-os .studio-os-stage > #coronary-dossier.is-ws-active {
  background: radial-gradient(ellipse 75% 46% at 50% 0%, rgba(220, 38, 38, 0.09) 0%, transparent 70%), #050507 !important;
}

.ecg-studio-os .wrap {
  max-width: 1460px !important;
}

/* 3. Workspace 1: Monumental Apple Keynote 3D Heart Stage (#coronary-3d) */
.ecg-studio-os .studio-os-stage > #coronary-3d.is-ws-active {
  padding: 0 !important;
  background: radial-gradient(ellipse 72% 68% at 50% 46%, #1C080C 0%, #090609 46%, #030305 100%) !important;
  transition: background 0.9s ease !important;
}

.ecg-studio-os .studio-os-stage > #coronary-3d.is-reperfused.is-ws-active {
  background: radial-gradient(ellipse 72% 68% at 50% 46%, #061D15 0%, #050B0B 48%, #030305 100%) !important;
}

.ecg-studio-os #coronary-3d .heart-cinema__glow {
  top: 46% !important;
  left: 50% !important;
  width: min(860px, 88vw) !important;
  height: min(860px, 88vw) !important;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.24) 0%, rgba(190, 24, 52, 0.09) 38%, transparent 70%) !important;
  filter: blur(42px) !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .heart-cinema__glow {
  background: radial-gradient(circle, rgba(48, 209, 88, 0.24) 0%, rgba(14, 165, 233, 0.09) 40%, transparent 70%) !important;
}

/* Ultra-Subtle Cinema Optical Film Grain */
.cinema-film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Monumental Apple Keynote Kinetic Background Watermark Behind the 3D Heart */
.cinema-bg-watermark {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", sans-serif);
  font-size: clamp(140px, 21vw, 290px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.016) 68%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.45s ease;
}

/* Left Keynote Editorial Block + Hero Primary Ruby PCI CTA */
.ecg-studio-os #coronary-3d .cinema-editorial {
  top: 108px !important;
  left: 44px !important;
  max-width: 370px !important;
}

.ecg-studio-os #coronary-3d .cinema-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 69, 58, 0.12) !important;
  border: 1px solid rgba(255, 69, 58, 0.28) !important;
  color: #FF8A80 !important;
  font-size: 10.2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  margin-bottom: 16px !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.ecg-studio-os #coronary-3d.is-reperfused .cinema-eyebrow {
  background: rgba(48, 209, 88, 0.12) !important;
  border-color: rgba(48, 209, 88, 0.30) !important;
  color: #6EE7B7 !important;
}

.ecg-studio-os #coronary-3d .cinema-title {
  background: linear-gradient(180deg, #FFFFFF 16%, rgba(210, 216, 228, 0.86) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-size: clamp(44px, 4.4vw, 62px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
  margin: 0 0 14px !important;
}

.ecg-studio-os #coronary-3d .cinema-subtitle {
  color: rgba(235, 235, 245, 0.68) !important;
  font-size: 14.2px !important;
  line-height: 1.54 !important;
  margin: 0 0 22px !important;
  max-width: 345px !important;
}

/* Signature Apple Keynote Hero Action Buttons */
.cinema-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ecg-studio-os .hero-pci-cta,
.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta {
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FF5147 0%, #D9241B 100%) !important;
  border: 1px solid rgba(255, 160, 152, 0.45) !important;
  color: #FFFFFF !important;
  font-size: 13.2px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 14px 36px -8px rgba(255, 59, 48, 0.72) !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.3s ease !important;
}

.ecg-studio-os .hero-pci-cta:hover,
.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 18px 42px -6px rgba(255, 59, 48, 0.85) !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta .dock-pci-dot {
  width: 7px !important;
  height: 7px !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 10px #FFFFFF !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta.is-reperfused {
  background: linear-gradient(180deg, #34D369 0%, #159947 100%) !important;
  border-color: rgba(150, 255, 185, 0.48) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 36px -8px rgba(48, 209, 88, 0.72) !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta.is-reperfused .dock-pci-dot {
  background: #FFFFFF !important;
  box-shadow: 0 0 10px #FFFFFF !important;
}

.hero-glass-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 28px -10px rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  color: #F5F5F7;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, border-color 0.18s ease;
}

.hero-glass-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.vision-dossier-backrow {
  margin-bottom: 14px;
}

.vision-back-3d-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12.2px;
}

/* Apple Watch Ultra Optical LVEF Vitals Strip */
.ecg-studio-os #coronary-3d .cinema-vitals-pro {
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  padding-top: 18px !important;
  margin-top: 0 !important;
  gap: 16px !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge circle#hero-ef-arc {
  filter: drop-shadow(0 0 7px rgba(255, 69, 58, 0.65)) !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .cinema-ef-gauge circle#hero-ef-arc {
  filter: drop-shadow(0 0 7px rgba(48, 209, 88, 0.65)) !important;
}

/* Right Floating VisionOS Liquid Glass Scenario Jewel */
.ecg-studio-os #coronary-3d .cinema-scenario-rail {
  top: 108px !important;
  right: 34px !important;
  width: 236px !important;
  padding: 14px 10px 12px !important;
  border-radius: 22px !important;
  background: rgba(22, 23, 30, 0.50) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 28px 66px -18px rgba(0, 0, 0, 0.78) !important;
  -webkit-backdrop-filter: blur(38px) saturate(200%) !important;
  backdrop-filter: blur(38px) saturate(200%) !important;
}

.ecg-studio-os #coronary-3d .cinema-rail-head {
  padding: 0 8px 10px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 235, 245, 0.50) !important;
  font-weight: 700 !important;
}

.ecg-studio-os #coronary-3d .cinema-rail-list {
  max-height: 392px !important;
  gap: 2px !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn {
  padding: 6.5px 10px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  border-left: 1px solid transparent !important;
  color: rgba(235, 235, 245, 0.62) !important;
  font-size: 11.6px !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #FFFFFF !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn.is-active {
  background: var(--apple-glass-active) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 6px 18px -6px rgba(0, 0, 0, 0.52) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

/* Bottom Centered Apple Dynamic-Island Oscilloscope & Optics Pod */
.ecg-studio-os #coronary-3d .cinema-bottom-layer {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(820px, calc(100vw - 48px)) !important;
  bottom: 20px !important;
  gap: 0 !important;
}

.vision-instrument-pod {
  width: 100%;
  pointer-events: auto;
  border-radius: 24px;
  background: rgba(16, 17, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 30px 76px -14px rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(42px) saturate(210%);
  backdrop-filter: blur(42px) saturate(210%);
  overflow: hidden;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon {
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon__meta {
  padding: 7px 16px 5px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 10.2px !important;
  color: rgba(235, 235, 245, 0.58) !important;
}

.ecg-studio-os #coronary-3d #cath-icu-canvas {
  height: 58px !important;
}

.ecg-studio-os #coronary-3d .cinema-dock {
  width: 100% !important;
  padding: 7px 12px !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.ecg-studio-os #coronary-3d .dock-segment {
  padding: 3px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn {
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 11.8px !important;
  font-weight: 500 !important;
  color: rgba(235, 235, 245, 0.65) !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn.is-active {
  background: var(--apple-glass-active) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.ecg-studio-os #coronary-3d .dock-icon-group {
  border-left: none !important;
  padding-left: 0 !important;
  gap: 4px !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn {
  padding: 5px 11px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  color: rgba(235, 235, 245, 0.56) !important;
  border: 1px solid transparent !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn.is-active {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
}

.ecg-studio-os #coronary-3d .cinema-hover-caption {
  display: none !important;
}

.ecg-studio-os .pci-reperf-toast {
  top: 72px !important;
  border-radius: 999px !important;
  background: rgba(16, 26, 22, 0.78) !important;
  border: 1px solid rgba(48, 209, 88, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 44px -10px rgba(0, 0, 0, 0.80) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
}

/* 4. Authentic Apple Liquid Glass Depth Across Workspaces 2 to 9 */
.ecg-page .ceramic-card,
.ecg-page .conduction-heart-box,
.ecg-page .conduction-ecg-box,
.ecg-page .wiggers-panel,
.ecg-page .sheet-workbench.is-dark-paper,
.ecg-page .acs-obsidian-card,
.ecg-page .topic-deep-dive,
.ecg-page .lab-hero-card,
.ecg-page .lab-bench-card,
.ecg-page .cabrera-compass-card,
.ecg-page .spot-dialog {
  background: var(--apple-glass-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 26px 64px -26px rgba(0, 0, 0, 0.82) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
}

/* Pearlescent Apple Liquid Glass Hover Specular Sheen (Warm Silver-White, Zero Neon Cyan) */
.ecg-page .ceramic-card::after,
.ecg-page .acs-obsidian-card::after,
.ecg-page .wiggers-panel::after,
.ecg-page .topic-deep-dive::after {
  display: block !important;
  content: "" !important;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.055), transparent 60%) !important;
}

.ecg-page .vessel-hero-strip,
.ecg-page .leads-split-box,
.ecg-page .dossier-hemo-cell,
.ecg-page .dossier-salvage-wrap,
.ecg-page .wiggers-metric-card,
.ecg-page .cond-stat,
.ecg-page .cond-node-card,
.ecg-page .sheet-workbench.is-dark-paper .caliper-zoom-panel,
.ecg-page .sheet-workbench.is-dark-paper .vital-box,
.ecg-page .sheet-workbench.is-dark-paper .sheet-muse-report,
.ecg-page .vw-ion-bars,
.ecg-page .usmle-brugada-detail,
.ecg-page .criteria-list li,
.ecg-page .dd-tel-cell,
.ecg-page .torso-prog-wrap,
.ecg-page .torso-legend-bar,
.ecg-page .torso-legend-strip,
.ecg-page .lab-tel-cell,
.ecg-page .coach-step-card,
.ecg-page .coach-criteria-box > div,
.ecg-page .qtc-slider-box,
.ecg-page .qtc-formula-tile,
.ecg-page .case-chart-bar,
.ecg-page .real-metric-tile,
.ecg-page .acs-metric-tile,
.ecg-page .acs-clinical-note {
  background: rgba(255, 255, 255, 0.036) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Apple Metallic Silver-White Display Titles Inside Workspaces */
.ecg-page .apple-h2,
.ecg-page .acs-card-h3,
.ecg-page .topic-deep-dive__title,
.ecg-page .sheet-active-title {
  background: linear-gradient(180deg, #FFFFFF 22%, rgba(212, 218, 230, 0.86) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  letter-spacing: -0.03em !important;
}

/* Luminous Apple Liquid Glass Active Pills & Segmented Controls Across ALL 9 Modules */
.ecg-page .acs-tab-bar,
.ecg-page .usmle-tab-bar,
.ecg-page .os-lab-bar,
.ecg-page .conduction-speed-bar,
.ecg-page .wiggers-speed-seg,
.ecg-page .lab-seg-bar,
.ecg-page .case-mode-toggle,
.ecg-page .cond-track-tabs,
.ecg-page .compass-tabs {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 999px !important;
  padding: 4px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.ecg-page .cond-pill,
.ecg-page .wiggers-pill,
.ecg-page .cam-pill,
.ecg-page .evo-step-btn,
.ecg-page .acs-pheno-pill,
.ecg-page .usmle-vw-pill,
.ecg-page .sheet-pat-pill,
.ecg-page .acs-mini-pill,
.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn,
.ecg-page .topic-deep-dive .sheet-ctrl-btn,
.ecg-page .chapter-bento-btn,
.ecg-page .topic-step-tab,
.ecg-page .coach-step-btn,
.ecg-page .qtc-preset-btn,
.ecg-page .qtc-bogossian-btn,
.ecg-page .coach-nav-btn,
.ecg-page .case-lead-btn,
.ecg-page .case-util-btn,
.ecg-page .case-board-card .sheet-ctrl-btn,
.ecg-page .electrode-pills button,
.ecg-page .real-study-card .elec-pill,
.ecg-page .wiggers-ctrl-btn,
.ecg-page .diff-superimpose-btn {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(235, 235, 245, 0.72) !important;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ecg-page .acs-tab-btn,
.ecg-page .os-lab-tab,
.ecg-page .cond-ctrl-btn,
.ecg-page .cond-track-btn,
.ecg-page .compass-tab,
.ecg-page .lab-seg-btn,
.ecg-page .case-mode-btn,
.ecg-page .wiggers-spd-btn {
  border-radius: 999px !important;
}

.ecg-page .cond-pill.is-active,
.ecg-page .wiggers-pill.is-active,
.ecg-page .cam-pill.is-active,
.ecg-page .evo-step-btn.is-active,
.ecg-page .acs-tab-btn.is-active,
.ecg-page .acs-pheno-pill.is-active,
.ecg-page .usmle-vw-pill.is-active,
.ecg-page .brugada-step-btn.is-active,
.ecg-page .sheet-workbench.is-dark-paper .sheet-ctrl-btn.is-active,
.ecg-page .sheet-pat-pill.is-active,
.ecg-page .cond-track-btn.is-active,
.ecg-page .compass-tab.is-active,
.ecg-page .acs-mini-pill.is-active,
.ecg-page .chapter-bento-btn.is-active,
.ecg-page .topic-step-tab.is-active,
.ecg-page .os-lab-tab.is-active,
.ecg-page .lab-seg-btn.is-active,
.ecg-page .coach-step-btn.is-active,
.ecg-page .qtc-preset-btn.is-active,
.ecg-page .qtc-bogossian-btn.is-active,
.ecg-page .case-mode-btn.is-active,
.ecg-page .case-lead-btn.is-active,
.ecg-page .electrode-pills button.is-active,
.ecg-page .real-study-card .elec-pill.is-active,
.ecg-page .wiggers-ctrl-btn.is-active,
.ecg-page .wiggers-spd-btn.is-active,
.ecg-page .cond-ctrl-btn.is-active,
.ecg-page .diff-superimpose-btn.is-active {
  background: var(--apple-glass-active) !important;
  border-color: var(--apple-glass-active-rim) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 6px 20px -6px rgba(0, 0, 0, 0.55) !important;
}

/* Sculpted Primary CTA Pills Inside Workspaces (View on 3D Heart / Next Case) */
.ecg-page .acs-sync-3d-btn,
.ecg-page .btn-apple-solid {
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E5EC 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #09090B !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.30), inset 0 1px 0 #FFFFFF !important;
}

.ecg-page .acs-sync-3d-btn:hover,
.ecg-page .btn-apple-solid:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F3F7 100%) !important;
  transform: translateY(-1px) !important;
}

.ecg-page .acs-pci-btn {
  border-radius: 999px !important;
}

/* 5. Workspace 7: macOS Tahoe Floating Liquid Glass Split-View Atlas (#atlas-80) */
.ecg-studio-os #atlas-80.is-ws-active {
  padding: 72px 24px 20px !important;
}

.ecg-studio-os .atlas-split-shell {
  grid-template-columns: 344px minmax(0, 1fr) !important;
  gap: 16px !important;
}

.ecg-studio-os .atlas-master-col {
  border-radius: 22px !important;
  background: var(--apple-glass-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 26px 64px -24px rgba(0, 0, 0, 0.82) !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card {
  border-radius: 14px !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card.is-active {
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.ecg-studio-os .atlas-split-shell > .topic-deep-dive {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: var(--apple-glass-panel) !important;
  padding: 24px 28px 30px !important;
}

/* 6. Mobile iOS 26 Floating Liquid Glass Capsule Architecture (<= 960px, Zero Overflow) */
@media (max-width: 960px) {
  .ecg-studio-os .studio-os-topbar.vision-glass-bar {
    top: 10px !important;
    left: 12px !important;
    right: 12px !important;
    height: 40px !important;
  }

  .ecg-studio-os .vision-glass-island {
    height: 38px !important;
    padding: 0 11px !important;
  }

  .ecg-studio-os .brand-mark__word {
    display: inline !important;
    font-size: 13px !important;
  }

  .ecg-studio-os .nav-spotlight-btn,
  .ecg-studio-os .nav-download-cta {
    height: 38px !important;
  }

  /* Transform Center Dock into Floating iOS 26 Liquid Glass Bottom Tab Capsule */
  .ecg-studio-os .studio-os-rail.vision-glass-dock {
    position: fixed !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    height: 60px !important;
    padding: 5px 8px !important;
    border-radius: 24px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    gap: 4px !important;
    z-index: 70 !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn {
    flex: 0 0 64px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding: 4px 2px !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn span {
    font-size: 9.4px !important;
  }

  .ecg-studio-os .studio-os-stage {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
  }

  .ecg-studio-os .studio-os-stage > section.is-ws-active {
    padding: 62px 12px 84px !important;
  }

  .ecg-studio-os .studio-os-stage > #coronary-3d.is-ws-active {
    padding: 58px 0 84px !important;
    overflow-y: auto !important;
  }

  .cinema-bg-watermark {
    top: 22% !important;
    font-size: 112px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-editorial {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    max-width: none !important;
    padding: 8px 16px 14px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-title {
    font-size: 38px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-scenario-rail {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px 14px !important;
  }

  .ecg-studio-os #coronary-3d .cinema-bottom-layer {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px !important;
    bottom: auto !important;
  }

  .ecg-studio-os #atlas-80.is-ws-active {
    padding: 62px 12px 84px !important;
    overflow-y: auto !important;
  }

  .ecg-studio-os .atlas-split-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .ecg-studio-os .atlas-master-col {
    height: 330px !important;
  }
}


/* ============================================================================
   v32 MEDIBYTE APPLE FLAGSHIP CERAMIC + OBSIDIAN PRO THEATRE DESIGN SYSTEM
   - 100% Unified with medi-byte.com Brand DNA (#FFFFFF / #F5F5F7 / #0071E3 / #0A59F5 -> #00A8AB)
   - Frosted White Apple Topbar + Ceramic Segmented Workspace Bar (Matches Homepage Identically)
   - Luminous Apple Studio Pearl 3D Heart Stage (Auto-Shifts to Obsidian Theatre in Electric / X-Ray)
   - High-Contrast Selective Obsidian Pro Scopes Inside Sculpted White Ceramic Apple Bento Cards
   ============================================================================ */

html:has(body.ecg-studio-os),
body.ecg-page,
body.ecg-studio-os {
  background: #F5F5F7 !important;
  color: #1D1D1F !important;
}

/* 1. Seamless MediByte Frosted-White Apple Top Navigation Bar (56px) */
.ecg-studio-os .studio-os-topbar.vision-glass-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 56px !important;
  padding: 0 22px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.075) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  pointer-events: auto !important;
  z-index: 65 !important;
}

.ecg-studio-os .vision-glass-island {
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ecg-studio-os .brand-mark__word {
  color: #1D1D1F !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.ecg-studio-os .os-crumb-sep {
  color: rgba(29, 29, 31, 0.22) !important;
}

.ecg-studio-os .os-ws-badge {
  color: #0071E3 !important;
  font-size: 12.6px !important;
  font-weight: 600 !important;
}

/* Center Apple Ceramic Segmented Workspace Bar (Matches medi-byte.com Homepage Pills!) */
.ecg-studio-os .studio-os-rail.vision-glass-dock {
  height: 36px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: #EFEFF4 !important;
  border: 1px solid rgba(0, 0, 0, 0.055) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn {
  height: 28px !important;
  max-height: 28px !important;
  padding: 0 11px !important;
  color: #6E6E73 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn.is-active {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #1D1D1F !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Right MediByte Utilities (Ceramic Telemetry + Search + Official Apple Blue CTA) */
.ecg-studio-os .os-global-telemetry {
  height: 34px !important;
  padding: 0 12px !important;
  background: #F2F2F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #6E6E73 !important;
  font-size: 11.4px !important;
}

.ecg-studio-os .os-global-telemetry:hover {
  background: #E8E8ED !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.ecg-studio-os .os-global-telemetry strong {
  color: #1D1D1F !important;
}

.ecg-studio-os .os-global-telemetry .is-crit {
  color: #D93829 !important;
}

.ecg-studio-os .os-global-telemetry .is-good {
  color: #008A8E !important;
}

.ecg-studio-os .os-tel-sep {
  color: rgba(29, 29, 31, 0.25) !important;
}

.ecg-studio-os .os-live-dot {
  background: #D93829 !important;
  box-shadow: 0 0 0 3px rgba(217, 56, 41, 0.16) !important;
}

.ecg-studio-os .os-live-dot.is-good {
  background: #00A8AB !important;
  box-shadow: 0 0 0 3px rgba(0, 168, 171, 0.18) !important;
}

.ecg-studio-os .nav-spotlight-btn {
  height: 34px !important;
  padding: 0 11px !important;
  background: #F2F2F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .nav-spotlight-btn:hover {
  background: #E8E8ED !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .nav-spot-kbd {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #6E6E73 !important;
}

/* Official MediByte Apple Blue Get the App Pill (Identical to Homepage!) */
.ecg-studio-os .nav-download-cta {
  height: 34px !important;
  padding: 0 15px !important;
  background: #0071E3 !important;
  border: 1px solid #0071E3 !important;
  color: #FFFFFF !important;
  font-size: 12.2px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px -8px rgba(0, 113, 227, 0.55) !important;
}

.ecg-studio-os .nav-download-cta:hover {
  background: #0077ED !important;
  border-color: #0077ED !important;
  box-shadow: 0 12px 24px -6px rgba(0, 113, 227, 0.65) !important;
}

/* 2. Full-Bleed Apple Ceramic Stage Canvas Across Workspaces */
.ecg-studio-os .studio-os-stage {
  background: #F5F5F7 !important;
}

.ecg-studio-os .studio-os-stage > section.is-ws-active {
  padding: 76px 28px 36px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 24%, #F5F5F7 100%) !important;
  color: #1D1D1F !important;
}

/* 3. Workspace 1: Luminous Apple Studio Pearl 3D Heart Stage (#coronary-3d) */
.ecg-studio-os .studio-os-stage > #coronary-3d.is-ws-active {
  padding: 0 !important;
  background: radial-gradient(ellipse 74% 68% at 50% 44%, #FFFFFF 0%, #F5F8FD 54%, #E9EFF8 100%) !important;
  color: #1D1D1F !important;
  transition: background 0.55s ease !important;
}

.ecg-studio-os .studio-os-stage > #coronary-3d.is-reperfused.is-ws-active {
  background: radial-gradient(ellipse 74% 68% at 50% 44%, #FFFFFF 0%, #F0FAFA 54%, #E4F4F4 100%) !important;
}

.ecg-studio-os #coronary-3d .heart-cinema__glow {
  background: radial-gradient(circle, rgba(217, 56, 41, 0.12) 0%, rgba(10, 89, 245, 0.05) 45%, transparent 72%) !important;
  filter: blur(36px) !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .heart-cinema__glow {
  background: radial-gradient(circle, rgba(0, 168, 171, 0.14) 0%, rgba(10, 89, 245, 0.06) 45%, transparent 72%) !important;
}

/* Sculptural Faint Architectural Watermark (Echoing MediByte Homepage '01' Watermark!) */
.ecg-studio-os #coronary-3d .cinema-bg-watermark {
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.052) 0%, rgba(10, 89, 245, 0.024) 70%, transparent 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Left Keynote Editorial Block + Dr. MediByte Blinking Visor Jewel */
.ecg-studio-os #coronary-3d .cinema-editorial {
  top: 94px !important;
  left: 40px !important;
  max-width: 375px !important;
}

.cinema-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ecg-visor-badge {
  width: 38px !important;
  height: 24px !important;
  flex-shrink: 0;
  pointer-events: auto;
}

.ecg-visor-badge .hero-visor-eye {
  width: 7.5px;
  height: 5px;
}

.ecg-studio-os #coronary-3d .cinema-eyebrow {
  margin-bottom: 0 !important;
  background: rgba(217, 56, 41, 0.09) !important;
  border: 1px solid rgba(217, 56, 41, 0.22) !important;
  color: #C82319 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ecg-studio-os #coronary-3d.is-reperfused .cinema-eyebrow {
  background: rgba(0, 168, 171, 0.10) !important;
  border-color: rgba(0, 168, 171, 0.28) !important;
  color: #007A7E !important;
}

/* Signature MediByte Apple Keynote Display Headline (Jet Ink + Cobalt-to-Teal Depth) */
.ecg-studio-os #coronary-3d .cinema-title {
  background: linear-gradient(108deg, #1D1D1F 0%, #1D1D1F 42%, #0A59F5 78%, #00A8AB 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-size: clamp(44px, 4.5vw, 60px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.0 !important;
  margin: 0 0 12px !important;
}

.ecg-studio-os #coronary-3d .cinema-subtitle {
  color: #6E6E73 !important;
  font-size: 14.5px !important;
  line-height: 1.52 !important;
  margin: 0 0 20px !important;
}

/* Hero Action Pills (MediByte Coral PCI Stent -> Clinical Teal on Reperfusion + White Ceramic Pill) */
.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta {
  height: 42px !important;
  padding: 0 20px !important;
  background: linear-gradient(180deg, #E53E32 0%, #C82319 100%) !important;
  border: 1px solid rgba(200, 35, 25, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 28px -8px rgba(217, 56, 41, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta.is-reperfused {
  background: linear-gradient(180deg, #00B4B8 0%, #008A8E 100%) !important;
  border-color: rgba(0, 138, 142, 0.35) !important;
  box-shadow: 0 12px 28px -8px rgba(0, 168, 171, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.ecg-studio-os .hero-glass-cta {
  height: 42px !important;
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.12) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .hero-glass-cta:hover {
  background: #FFFFFF !important;
  border-color: #0071E3 !important;
  color: #0071E3 !important;
}

/* Apple Watch Ceramic LVEF Ring & Vitals */
.ecg-studio-os #coronary-3d .cinema-vitals-pro {
  border-top: 1px solid rgba(0, 0, 0, 0.085) !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge svg circle:first-child {
  stroke: rgba(29, 29, 31, 0.10) !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge circle#hero-ef-arc {
  filter: none !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge strong {
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .cinema-ef-gauge small {
  color: #86868B !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric span {
  color: #86868B !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric strong {
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric strong.is-danger {
  color: #D93829 !important;
}

.ecg-studio-os #coronary-3d .cinema-vitals-stack .cinema-metric strong.is-good {
  color: #008A8E !important;
}

/* 3D Heart Anatomical Leader Callouts on Pearl White Studio */
.ecg-studio-os #coronary-3d .heart-pin {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #1D1D1F !important;
  box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.14) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

.ecg-studio-os #coronary-3d .heart-pin.is-culprit {
  background: #D93829 !important;
  border-color: #B92B1F !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -6px rgba(217, 56, 41, 0.48) !important;
}

.ecg-studio-os #coronary-3d .heart-pin.is-stented {
  background: #008A8E !important;
  border-color: #006E72 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -6px rgba(0, 168, 171, 0.44) !important;
}

/* Right Floating Frosted White Ceramic Scenario Card */
.ecg-studio-os #coronary-3d .cinema-scenario-rail {
  top: 94px !important;
  right: 32px !important;
  width: 242px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 54px -18px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
}

.ecg-studio-os #coronary-3d .cinema-rail-head {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
  color: #86868B !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn {
  color: #6E6E73 !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn:hover {
  background: #F5F5F7 !important;
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .mi-preset-btn.is-active {
  background: #F2F6FC !important;
  border-color: rgba(0, 113, 227, 0.24) !important;
  color: #1D1D1F !important;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.08) !important;
}

/* Bottom Centered Apple Ceramic Housing Framing Live Obsidian 3-Lead Oscilloscope! */
.ecg-studio-os #coronary-3d .vision-instrument-pod {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 58px -18px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  padding: 7px 7px 0 !important;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon {
  background: #070B14 !important;
  border: 1px solid rgba(10, 89, 245, 0.18) !important;
  border-radius: 17px !important;
  overflow: hidden !important;
}

.ecg-studio-os #coronary-3d .cinema-ecg-ribbon__meta {
  color: rgba(226, 232, 240, 0.72) !important;
}

.ecg-studio-os #coronary-3d .cinema-dock {
  background: transparent !important;
  border-top: none !important;
  padding: 8px 6px !important;
}

.ecg-studio-os #coronary-3d .dock-segment {
  background: #EFEFF4 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn {
  color: #6E6E73 !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn:hover {
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .dock-seg-btn.is-active {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1D1D1F !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09) !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn {
  color: #6E6E73 !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn:hover {
  background: #EFEFF4 !important;
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .dock-opt-btn.is-active {
  background: #E8F1FD !important;
  border-color: rgba(0, 113, 227, 0.22) !important;
  color: #0071E3 !important;
}

/* Auto-Switch Hero to MediByte Obsidian-Sapphire Theatre when Electric or X-Ray Mode is Active! */
.ecg-studio-os .studio-os-stage > #coronary-3d.is-dark-stage.is-ws-active {
  background: radial-gradient(ellipse 75% 65% at 50% 45%, #0A152C 0%, #050914 54%, #020409 100%) !important;
  color: #F5F5F7 !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-bg-watermark {
  background: linear-gradient(180deg, rgba(100, 210, 255, 0.07) 0%, transparent 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-title {
  background: linear-gradient(180deg, #FFFFFF 15%, #93C5FD 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-subtitle,
.ecg-studio-os #coronary-3d.is-dark-stage .cinema-vitals-stack .cinema-metric span {
  color: #94A3B8 !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-ef-gauge strong,
.ecg-studio-os #coronary-3d.is-dark-stage .cinema-vitals-stack .cinema-metric strong {
  color: #F8FAFC !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-vitals-pro {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .cinema-scenario-rail {
  background: rgba(12, 18, 32, 0.80) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .mi-preset-btn {
  color: #94A3B8 !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .mi-preset-btn.is-active {
  background: rgba(10, 132, 255, 0.22) !important;
  border-color: rgba(100, 210, 255, 0.36) !important;
  color: #FFFFFF !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .heart-pin:not(.is-culprit):not(.is-stented) {
  background: rgba(12, 18, 32, 0.88) !important;
  border-color: rgba(100, 210, 255, 0.28) !important;
  color: #F8FAFC !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .vision-instrument-pod {
  background: rgba(10, 15, 28, 0.86) !important;
  border-color: rgba(100, 210, 255, 0.20) !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .dock-segment {
  background: rgba(255, 255, 255, 0.08) !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .dock-seg-btn.is-active {
  background: #0071E3 !important;
  color: #FFFFFF !important;
}

/* 4. Unified Apple Gallery Ceramic Surfaces Across ALL Workspaces (2 to 9) */
.ecg-page .ceramic-card,
.ecg-page .wiggers-panel,
.ecg-page .sheet-workbench:not(.is-dark-paper),
.ecg-page .acs-obsidian-card,
.ecg-page .topic-deep-dive,
.ecg-page .lab-hero-card,
.ecg-page .lab-bench-card,
.ecg-page .atlas-master-col {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(0, 0, 0, 0.075) !important;
  border-radius: 26px !important;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #1D1D1F !important;
}

.ecg-page .ceramic-card::after,
.ecg-page .acs-obsidian-card::after,
.ecg-page .wiggers-panel::after,
.ecg-page .topic-deep-dive::after {
  display: none !important;
}

/* Preserve High-Contrast Obsidian-Sapphire Theatre ONLY on 3D CARTO EP Lab & Dark 15-Lead & Cabrera VCG! */
.ecg-page .conduction-heart-box,
.ecg-page .conduction-ecg-box,
.ecg-page .cabrera-compass-card,
.ecg-page .sheet-workbench.is-dark-paper {
  background: linear-gradient(180deg, #0D1424 0%, #060A14 100%) !important;
  border: 1px solid rgba(10, 89, 245, 0.22) !important;
  border-radius: 26px !important;
  box-shadow: 0 24px 56px -18px rgba(4, 10, 26, 0.34) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #F5F5F7 !important;
}

/* Crisp Apple Ceramic Typography on All Light Cards */
.ecg-page .apple-h2,
.ecg-page .acs-card-h3,
.ecg-page .topic-deep-dive__title,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-active-title,
.ecg-page .card-h3,
.ecg-page .sub-h4,
.ecg-page .wiggers-pv-title,
.ecg-page .wiggers-phase-live strong,
.ecg-page .usmle-brugada-title,
.ecg-page .atlas-card__title,
.ecg-page #case-prompt,
.ecg-page #real-ecg-title,
.ecg-page #elec-title,
.ecg-page #coach-headline {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #1D1D1F !important;
}

.ecg-page .sheet-workbench.is-dark-paper .sheet-active-title {
  background: none !important;
  color: #FFFFFF !important;
}

.ecg-page .apple-kicker,
.ecg-page .acs-micro-tag,
.ecg-page .wiggers-micro-tag,
.ecg-page .case-chart-demo {
  color: #0071E3 !important;
}

.ecg-page .micro-label {
  color: #86868B !important;
}

.ecg-page .ceramic-body,
.ecg-page .atlas-card__clue,
.ecg-page .lab-panel-sub,
.ecg-page .dossier-salvage-note,
.ecg-page .aha-orientation,
.ecg-page .vessel-hero-strip p,
.ecg-page .ceramic-proof-list li,
.ecg-page .wiggers-legend-bar,
.ecg-page .wiggers-scrubber-row,
.ecg-page .case-chart-hpi,
.ecg-page #real-ecg-context,
.ecg-page .torso-prog-note,
.ecg-page .torso-legend-hint,
.ecg-page .coach-step-card .ceramic-body,
.ecg-page .acs-obsidian-card p,
.ecg-page .usmle-brugada-detail {
  color: #52525B !important;
}

.ecg-page .ceramic-body strong,
.ecg-page .vessel-hero-strip strong,
.ecg-page .dossier-hemo-cell strong,
.ecg-page .wiggers-metric-card strong,
.ecg-page .dd-tel-cell strong,
.ecg-page .lab-tel-cell strong,
.ecg-page .coach-criteria-box strong,
.ecg-page .qtc-slider-box strong,
.ecg-page .qtc-formula-tile strong,
.ecg-page .real-metric-tile strong,
.ecg-page .acs-metric-tile strong,
.ecg-page .vw-ion-row strong,
.ecg-page .usmle-brugada-detail strong,
.ecg-page .timeline-4d-head span:last-child,
.ecg-page .aha-legend-item span {
  color: #1D1D1F !important;
}

.ecg-page .vw-ion-row span,
.ecg-page .wiggers-metric-card span,
.ecg-page .qtc-formula-tile small,
.ecg-page .torso-meta-cell span,
.ecg-page .coach-criteria-cell span,
.ecg-page .coach-criteria-box span,
.ecg-page .coach-criteria-box small,
.ecg-page .real-metric-tile span,
.ecg-page .atlas-card__num,
.ecg-page .atlas-card__foot,
.ecg-page .dd-diff-header strong {
  color: #6E6E73 !important;
}

/* Soft Ceramic Inset Wells Inside White Bento Cards */
.ecg-page .vessel-hero-strip,
.ecg-page .leads-split-box,
.ecg-page .dossier-hemo-cell,
.ecg-page .dossier-salvage-wrap,
.ecg-page .wiggers-metric-card,
.ecg-page .vw-ion-bars,
.ecg-page .usmle-brugada-detail,
.ecg-page .criteria-list li,
.ecg-page .dd-tel-cell,
.ecg-page .torso-prog-wrap,
.ecg-page .torso-legend-bar,
.ecg-page .torso-legend-strip,
.ecg-page .lab-tel-cell,
.ecg-page .coach-step-card,
.ecg-page .coach-criteria-box > div,
.ecg-page .qtc-slider-box,
.ecg-page .qtc-formula-tile,
.ecg-page .case-chart-bar,
.ecg-page .real-metric-tile,
.ecg-page .acs-metric-tile,
.ecg-page .acs-clinical-note,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-muse-report,
.ecg-page .sheet-workbench:not(.is-dark-paper) .caliper-zoom-panel,
.ecg-page .sheet-workbench:not(.is-dark-paper) .vital-box {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #1D1D1F !important;
}

.ecg-page .vw-ion-track,
.ecg-page .dossier-salvage-track {
  background: rgba(29, 29, 31, 0.09) !important;
}

.ecg-page .ceramic-clinical-call,
.ecg-page .wiggers-pearl-box,
.ecg-page .case-exam-summary {
  background: #F2F6FC !important;
  border: 1px solid rgba(0, 113, 227, 0.16) !important;
  border-left: 3px solid #0071E3 !important;
  border-radius: 14px !important;
  color: #334155 !important;
}

.ecg-page .ceramic-clinical-call strong,
.ecg-page .wiggers-pearl-box strong,
.ecg-page .case-exam-summary strong {
  color: #0051D5 !important;
}

.ecg-page .case-exam-summary span {
  color: #475569 !important;
}

.ecg-page .usmle-brugada-verdict,
.ecg-page .wiggers-ms-badge,
.ecg-page .streak-pill,
.ecg-page .case-vital-chip {
  background: #F2F2F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1D1D1F !important;
}

.ecg-page .wiggers-ef-pill {
  background: rgba(0, 168, 171, 0.12) !important;
  border-color: rgba(0, 168, 171, 0.28) !important;
  color: #007A7E !important;
}

.ecg-page .aha-seg-hover-pill {
  background: #F2F2F7 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

.ecg-page .aha-count-pill {
  background: rgba(217, 56, 41, 0.10) !important;
  border-color: rgba(217, 56, 41, 0.24) !important;
  color: #C82319 !important;
}

.ecg-page .aha-count-pill.is-reperfused {
  background: rgba(0, 168, 171, 0.12) !important;
  border-color: rgba(0, 168, 171, 0.28) !important;
  color: #007A7E !important;
}

.ecg-page .aha-extra-note {
  color: #0071E3 !important;
}

.ecg-page .lead-mini-tag--ste {
  background: rgba(217, 56, 41, 0.10) !important;
  border-color: rgba(217, 56, 41, 0.22) !important;
  color: #C82319 !important;
}

.ecg-page .lead-mini-tag--std {
  background: rgba(0, 113, 227, 0.09) !important;
  border-color: rgba(0, 113, 227, 0.22) !important;
  color: #0066CC !important;
}

/* Keep Dark High-Contrast Phosphor Scopes Inside Light Ceramic Cards */
.ecg-page .wiggers-wave-wrap,
.ecg-page .wiggers-pv-wrap,
.ecg-page .usmle-ap-canvas-wrap,
.ecg-page .lab-nomogram-box {
  background: #070B14 !important;
  border: 1px solid rgba(10, 89, 245, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px -12px rgba(4, 10, 26, 0.28) !important;
}

.ecg-page .lab-nomogram-box .micro-label {
  color: #64D2FF !important;
}

.ecg-page .qtc-nomogram-box .lab-scope-head {
  background: #0A101E !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Keep Crisp Text Inside Dark EP Lab Cards */
.ecg-page .conduction-heart-box .cond-stat,
.ecg-page .conduction-ecg-box .cond-stat,
.ecg-page .conduction-ecg-box .cond-node-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.ecg-page .conduction-ecg-box .cond-stat strong,
.ecg-page .conduction-ecg-box .cond-node-card strong {
  color: #FFFFFF !important;
}

.ecg-page .conduction-ecg-box .cond-track-tabs {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.ecg-page .conduction-ecg-box .cond-track-btn {
  color: #94A3B8 !important;
}

.ecg-page .conduction-ecg-box .cond-track-btn.is-active {
  background: #0071E3 !important;
  border-color: #0071E3 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.ecg-page .cabrera-compass-card .compass-tabs {
  background: rgba(255, 255, 255, 0.08) !important;
}

.ecg-page .cabrera-compass-card .compass-tab {
  color: #94A3B8 !important;
}

.ecg-page .cabrera-compass-card .compass-tab.is-active {
  background: #0071E3 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

/* 5. Official MediByte Apple Ceramic Segmented Controls & Pill Tabs Across All Modules */
.ecg-page .acs-tab-bar,
.ecg-page .usmle-tab-bar,
.ecg-page .os-lab-bar,
.ecg-page .conduction-speed-bar,
.ecg-page .wiggers-speed-seg,
.ecg-page .lab-seg-bar,
.ecg-page .case-mode-toggle {
  background: #EFEFF4 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 999px !important;
  padding: 4px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.ecg-page .cond-pill,
.ecg-page .wiggers-pill,
.ecg-page .cam-pill,
.ecg-page .evo-step-btn,
.ecg-page .acs-pheno-pill,
.ecg-page .usmle-vw-pill,
.ecg-page .sheet-pat-pill,
.ecg-page .acs-mini-pill,
.ecg-page .brugada-step-btn,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-ctrl-btn,
.ecg-page .topic-deep-dive .sheet-ctrl-btn,
.ecg-page .chapter-bento-btn,
.ecg-page .topic-step-tab,
.ecg-page .coach-step-btn,
.ecg-page .qtc-preset-btn,
.ecg-page .qtc-bogossian-btn,
.ecg-page .coach-nav-btn,
.ecg-page .case-lead-btn,
.ecg-page .case-util-btn,
.ecg-page .case-board-card .sheet-ctrl-btn,
.ecg-page .electrode-pills button,
.ecg-page .real-study-card .elec-pill,
.ecg-page .wiggers-ctrl-btn,
.ecg-page .diff-superimpose-btn {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  color: #4B5563 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.ecg-page .brugada-step-btn strong,
.ecg-page .evo-step-btn strong,
.ecg-page .chapter-bento-btn strong {
  color: #1D1D1F !important;
}

.ecg-page .acs-tab-btn,
.ecg-page .os-lab-tab,
.ecg-page .cond-ctrl-btn,
.ecg-page .lab-seg-btn,
.ecg-page .case-mode-btn,
.ecg-page .wiggers-spd-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #6E6E73 !important;
  box-shadow: none !important;
}

.ecg-page .acs-tab-btn:hover,
.ecg-page .os-lab-tab:hover,
.ecg-page .cond-pill:hover,
.ecg-page .wiggers-pill:hover,
.ecg-page .cam-pill:hover,
.ecg-page .sheet-pat-pill:hover,
.ecg-page .usmle-vw-pill:hover,
.ecg-page .acs-pheno-pill:hover,
.ecg-page .topic-step-tab:hover,
.ecg-page .electrode-pills button:hover {
  border-color: rgba(0, 113, 227, 0.34) !important;
  color: #1D1D1F !important;
}

/* Crisp Elevated White Segmented Active State on Ceramic Tracks */
.ecg-page .acs-tab-btn.is-active,
.ecg-page .os-lab-tab.is-active,
.ecg-page .lab-seg-btn.is-active,
.ecg-page .case-mode-btn.is-active,
.ecg-page .wiggers-spd-btn.is-active,
.ecg-page .cond-ctrl-btn.is-active {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
  color: #1D1D1F !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09) !important;
}

.ecg-page .acs-tab-btn.is-active strong {
  color: #1D1D1F !important;
}

/* Signature MediByte Apple Blue Active State for Standalone Scenario / Mode Pills */
.ecg-page .cond-pill.is-active,
.ecg-page .wiggers-pill.is-active,
.ecg-page .cam-pill.is-active,
.ecg-page .evo-step-btn.is-active,
.ecg-page .acs-pheno-pill.is-active,
.ecg-page .usmle-vw-pill.is-active,
.ecg-page .brugada-step-btn.is-active,
.ecg-page .sheet-pat-pill.is-active,
.ecg-page .acs-mini-pill.is-active,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-ctrl-btn.is-active,
.ecg-page .chapter-bento-btn.is-active,
.ecg-page .topic-step-tab.is-active,
.ecg-page .coach-step-btn.is-active,
.ecg-page .qtc-preset-btn.is-active,
.ecg-page .qtc-bogossian-btn.is-active,
.ecg-page .case-lead-btn.is-active,
.ecg-page .electrode-pills button.is-active,
.ecg-page .real-study-card .elec-pill.is-active,
.ecg-page .wiggers-ctrl-btn.is-active,
.ecg-page .diff-superimpose-btn.is-active {
  background: #0071E3 !important;
  border-color: #0071E3 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -8px rgba(0, 113, 227, 0.55) !important;
}

.ecg-page .evo-step-btn.is-active strong,
.ecg-page .chapter-bento-btn.is-active strong,
.ecg-page .brugada-step-btn.is-active strong {
  color: #FFFFFF !important;
}

.ecg-page .brugada-step-btn.is-active span {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ecg-page .lab-seg-btn.is-danger-opt.is-active {
  background: #D93829 !important;
  border-color: #D93829 !important;
  color: #FFFFFF !important;
}

/* Official Apple Blue Primary Action CTAs (Inspect on 3D Heart, View on 3D Heart, Next Case) */
.ecg-page .acs-sync-3d-btn,
.ecg-page .btn-apple-solid {
  background: #0071E3 !important;
  border: 1px solid #0071E3 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -8px rgba(0, 113, 227, 0.52) !important;
}

.ecg-page .acs-sync-3d-btn:hover,
.ecg-page .btn-apple-solid:hover {
  background: #0077ED !important;
  border-color: #0077ED !important;
  box-shadow: 0 14px 28px -6px rgba(0, 113, 227, 0.62) !important;
}

/* 6. 80 ECGs Apple Ceramic Split-View + Labs Seamless Ribcage + Board Cases */
.ecg-studio-os #atlas-80.is-ws-active {
  padding: 72px 22px 20px !important;
}

.ecg-studio-os .atlas-master-head {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

.ecg-studio-os .atlas-search-wrap {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.ecg-studio-os .atlas-search-wrap input {
  color: #1D1D1F !important;
}

.ecg-studio-os .chapter-pill,
.ecg-studio-os .atlas-stat-badge {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #4B5563 !important;
}

.ecg-studio-os .chapter-pill.is-active {
  background: rgba(217, 56, 41, 0.10) !important;
  border-color: rgba(217, 56, 41, 0.28) !important;
  color: #C82319 !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card {
  background: #FAFAFC !important;
  border: 1px solid rgba(0, 0, 0, 0.055) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card:hover {
  background: #FFFFFF !important;
  border-color: rgba(0, 113, 227, 0.30) !important;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.08) !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card.is-active {
  background: #F2F6FC !important;
  border: 1.5px solid #0071E3 !important;
  box-shadow: 0 8px 20px -8px rgba(0, 113, 227, 0.22) !important;
}

.ecg-studio-os .dd-strip-head {
  background: #F5F5F7 !important;
  border: 1px solid rgba(217, 56, 41, 0.18) !important;
  border-bottom: none !important;
  color: #475569 !important;
}

.ecg-studio-os .sync-mini-strip--clean {
  border-color: rgba(217, 56, 41, 0.18) !important;
}

/* Seamless Anatomical Ribcage & Real Paper ECG on Ceramic White */
.ecg-page .torso-stage {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: none !important;
}

.ecg-page .real-ecg-viewer {
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.12) !important;
}

.ecg-page .case-option-btn {
  background: #F8F9FB !important;
  border: 1px solid rgba(0, 0, 0, 0.085) !important;
  color: #1D1D1F !important;
  border-radius: 14px !important;
}

.ecg-page .case-option-btn:hover:not(:disabled) {
  background: #F2F6FC !important;
  border-color: #0071E3 !important;
}

.ecg-page .case-option-btn.is-correct {
  background: rgba(0, 168, 171, 0.10) !important;
  border-color: #00A8AB !important;
  color: #006E72 !important;
}

.ecg-page .case-option-btn.is-wrong {
  background: rgba(217, 56, 41, 0.09) !important;
  border-color: #D93829 !important;
  color: #B92B1F !important;
}

.ecg-page .lab-trap-box,
.ecg-page .qtc-verdict-note {
  background: rgba(217, 56, 41, 0.075) !important;
  border-color: rgba(217, 56, 41, 0.22) !important;
  color: #B92B1F !important;
}

.ecg-page .qtc-verdict-note.is-warn {
  background: rgba(217, 119, 6, 0.09) !important;
  border-color: rgba(217, 119, 6, 0.26) !important;
  color: #B45309 !important;
}

.ecg-page .qtc-verdict-note.is-normal,
.ecg-page .qtc-verdict-note:not(.is-danger):not(.is-warn),
.ecg-page .coach-delta-box.is-norm {
  background: rgba(0, 168, 171, 0.09) !important;
  border-color: rgba(0, 168, 171, 0.25) !important;
  color: #006E72 !important;
}

.ecg-page .qtc-formula-tile.is-primary {
  background: rgba(0, 168, 171, 0.08) !important;
  border-color: rgba(0, 168, 171, 0.28) !important;
}

.ecg-page .qtc-formula-tile.is-bias {
  background: rgba(217, 56, 41, 0.08) !important;
  border-color: rgba(217, 56, 41, 0.28) !important;
}

.ecg-page .conduction-top-bar,
.ecg-page .wiggers-top-bar {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

/* 7. Mobile Frosted White Apple iOS Bottom Tab Capsule (<= 960px, Zero Overflow) */
@media (max-width: 960px) {
  .ecg-studio-os .studio-os-topbar.vision-glass-bar {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    padding: 0 12px !important;
  }

  .ecg-studio-os .studio-os-rail.vision-glass-dock {
    background: rgba(255, 255, 255, 0.90) !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.18) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn.is-active {
    background: #F2F6FC !important;
    border-color: rgba(0, 113, 227, 0.22) !important;
    color: #0071E3 !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn.is-active svg {
    color: #0071E3 !important;
  }

  .ecg-studio-os .studio-os-stage > #coronary-3d.is-ws-active {
    padding: 58px 0 84px !important;
  }
}


/* ============================================================================
   v32.1 FINAL PIXEL-PERFECTION SPECIFICITY & MOBILE CONTAINING-BLOCK PATCH
   - Fix invisible Search icon/kbd in light topbar (.site-header--cinema override)
   - Fix 4 dark section ID backgrounds (#coronary-dossier, #conduction-theatre, #wiggers-lab, #acs-masterclass)
   - Fix 80 ECGs right detail pane ceramic surface & ACS 4-stat dark ink contrast
   - Fix frosted ceramic 3D Heart callouts (.spatial-callout-tag) & dark-stage Electric toggle pills
   - Fix mobile bottom iOS capsule trapping by moving topbar blur to ::before pseudo-element
   ============================================================================ */

/* 1. Move Topbar Frosted Glass Blur to ::before so Mobile Fixed Bottom Bar NEVER Traps Inside Header! */
.ecg-studio-os .studio-os-topbar.vision-glass-bar {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.ecg-studio-os .studio-os-topbar.vision-glass-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.075);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* 2. Crisp Visible Search Icon & Command-K Badge in Frosted White Topbar */
.ecg-studio-os .site-header--cinema:not(.is-light-nav) .nav-spotlight-btn,
.ecg-studio-os .nav-spotlight-btn {
  background: #F2F2F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .nav-spotlight-btn svg {
  color: #1D1D1F !important;
  stroke: #1D1D1F !important;
}

.ecg-studio-os .nav-spotlight-btn .nav-spot-kbd {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #3F3F46 !important;
  opacity: 1 !important;
}

/* 3. Unify ALL Section IDs onto Luminous MediByte Apple Ceramic White Canvas */
.ecg-studio-os .studio-os-stage > #coronary-dossier.is-ws-active,
.ecg-studio-os .studio-os-stage > #conduction-theatre.is-ws-active,
.ecg-studio-os .studio-os-stage > #wiggers-lab.is-ws-active,
.ecg-studio-os .studio-os-stage > #acs-masterclass.is-ws-active,
.ecg-studio-os .studio-os-stage > #usmle-ep-lab.is-ws-active,
.ecg-studio-os .studio-os-stage > #workbench-12lead.is-ws-active,
.ecg-studio-os .studio-os-stage > #atlas-80.is-ws-active,
.ecg-studio-os .studio-os-stage > #labs-section.is-ws-active,
.ecg-studio-os .studio-os-stage > #clinical-detective.is-ws-active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 24%, #F5F5F7 100%) !important;
  color: #1D1D1F !important;
}

/* 4. Frosted Ceramic 3D Heart Anatomical Callouts (.spatial-callout-tag) */
.ecg-studio-os #coronary-3d:not(.is-dark-stage) .spatial-callout-tag {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.11) !important;
  color: #1D1D1F !important;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.14) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .spatial-callout-tag.is-ischemic {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(217, 56, 41, 0.24) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os #coronary-3d .spatial-callout-tag.is-culprit {
  background: #D93829 !important;
  border-color: #B92B1F !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -6px rgba(217, 56, 41, 0.48) !important;
}

.ecg-studio-os #coronary-3d .spatial-callout-tag.is-stented {
  background: #008A8E !important;
  border-color: #006E72 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -6px rgba(0, 168, 171, 0.44) !important;
}

/* Refine Active Optics Buttons in Dark Electric / X-Ray Stage */
.ecg-studio-os #coronary-3d.is-dark-stage .dock-opt-btn {
  color: #94A3B8 !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .dock-opt-btn.is-active {
  background: rgba(0, 113, 227, 0.26) !important;
  border-color: rgba(100, 210, 255, 0.42) !important;
  color: #64D2FF !important;
}

.ecg-studio-os #coronary-3d.is-dark-stage .hero-glass-cta {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #FFFFFF !important;
}

/* 5. ACS Command Center & USMLE Light Ceramic Contrast Polish (Zero Faded Text!) */
.ecg-page .acs-lumen-stat,
.ecg-page .acs-pillar-box,
.ecg-page .acs-udmi-bar,
.ecg-page .acs-equiv-card,
.ecg-page .acs-rx-card,
.ecg-page .acs-comp-card,
.ecg-page .usmle-ap-metric {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 14px !important;
  color: #1D1D1F !important;
}

.ecg-page .acs-lumen-stat span,
.ecg-page .usmle-ap-metric span {
  color: #6E6E73 !important;
}

.ecg-page .acs-lumen-stat strong,
.ecg-page .acs-equiv-card strong,
.ecg-page .acs-rx-card strong,
.ecg-page .acs-comp-card strong,
.ecg-page .acs-udmi-title,
.ecg-page .usmle-ap-metric strong {
  color: #1D1D1F !important;
}

.ecg-page .acs-pillar-box.is-alert {
  background: rgba(217, 56, 41, 0.07) !important;
  border-color: rgba(217, 56, 41, 0.22) !important;
}

.ecg-page .acs-pillar-box.is-alert .acs-micro-tag {
  color: #C82319 !important;
}

.ecg-page .acs-lumen-svg-wrap {
  background: #070B14 !important;
  border-radius: 20px !important;
  padding: 12px !important;
  border: 1px solid rgba(10, 89, 245, 0.18) !important;
}

.ecg-page .acs-treat-btn {
  background: rgba(217, 56, 41, 0.10) !important;
  border: 1px solid rgba(217, 56, 41, 0.28) !important;
  color: #C82319 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.ecg-page .acs-treat-btn.is-reperfused {
  background: rgba(0, 168, 171, 0.12) !important;
  border-color: rgba(0, 168, 171, 0.30) !important;
  color: #007A7E !important;
}

/* 6. 80 ECGs Split-View Right Detail Pane Pure Apple Ceramic White! */
.ecg-studio-os .atlas-split-shell > .topic-deep-dive {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(0, 0, 0, 0.075) !important;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  color: #1D1D1F !important;
}

.ecg-studio-os .topic-deep-dive__sub,
.ecg-studio-os .topic-deep-dive p {
  color: #52525B !important;
}

.ecg-studio-os .topic-deep-dive h4 {
  color: #1D1D1F !important;
}

/* 7. Mobile Topbar & True Bottom Floating Capsule Clearance */
@media (max-width: 960px) {
  .ecg-studio-os .studio-os-rail.vision-glass-dock {
    position: fixed !important;
    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    height: 60px !important;
    z-index: 80 !important;
  }

  .ecg-studio-os #coronary-3d .heart-cinema__stage {
    height: 390px !important;
    min-height: 360px !important;
  }
}


/* ============================================================================
   v32.2 FINAL MICRO-POLISH: EP LAB CERAMIC PANEL, 3D AORTA CLEARANCE & MOBILE TAB PADDING
   ============================================================================ */

/* 1. Crisp Apple Ceramic White Styling for EP Lab Live Electrophysiology Correlation Card */
.ecg-page .conduction-live-panel {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.075) !important;
  border-radius: 24px !important;
  padding: 18px 20px !important;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  color: #1D1D1F !important;
}

.ecg-page .conduction-live-panel h3,
.ecg-page .conduction-live-panel #cond-phase-title {
  color: #1D1D1F !important;
}

.ecg-page .conduction-live-panel .cond-stat {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 14px !important;
}

.ecg-page .conduction-live-panel .cond-stat span {
  color: #6E6E73 !important;
}

.ecg-page .conduction-live-panel .cond-stat strong {
  color: #1D1D1F !important;
}

.ecg-page .conduction-live-panel .conduction-explain {
  color: #52525B !important;
}

.ecg-page .conduction-live-panel .vel-meter-top span {
  color: #52525B !important;
}

.ecg-page .conduction-live-panel .vel-meter-top strong {
  color: #1D1D1F !important;
}

.ecg-page .conduction-live-panel .vel-track {
  background: rgba(29, 29, 31, 0.09) !important;
}

/* 2. Center 3D Heart Cleanly Below 56px MediByte Frosted Header on Desktop */
@media (min-width: 961px) {
  .ecg-studio-os #coronary-3d .heart-cinema__stage {
    padding-top: 24px !important;
  }
}

/* 3. Centered Mobile iOS Bottom Tab Capsule Breathing Room */
@media (max-width: 960px) {
  .ecg-studio-os .studio-os-rail.vision-glass-dock {
    height: 64px !important;
    padding: 6px 8px !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn {
    height: 50px !important;
    max-height: 50px !important;
    padding: 5px 4px !important;
    gap: 4px !important;
  }
}


/* ============================================================================
   v33 MEDIBYTE ACS COMMAND CENTER · INTERVENTIONAL CARDIOLOGY & APPLE FLAGSHIP SUITE
   - Fixes 100% of Light Ceramic Contrast Across ALL 5 ACS Tabs (Zero White-on-White!)
   - Tab 1: Recessed Obsidian OCT Viewport + Live Transmural Wavefront Bar + Class I Order Chips
   - Tab 2: Apple Ceramic 12-Equivalent Matrix + 4th UDMI Cutoffs + Live 15-Lead Territory Heatmap
   - Tab 3: Interactive Biomarker Drag-Scrub + Live 2023 ESC 0h/1h hs-cTnT Bedside Triage Simulator
   - Tab 4: Apple Ceramic Reperfusion Clocks + Live Patient Contraindication Safety Engine
   - Tab 5: Interactive Post-MI Histological Healing Ribbon + Exam/Echo Hallmark Complication Cards
   ============================================================================ */

/* TAB 1: OCT Viewport, Transmural Myocardial Wavefront Depth & Class I Orders */
.acs-oct-viewport {
  border-radius: 20px;
  background: linear-gradient(180deg, #0D1322 0%, #060912 100%);
  border: 1px solid rgba(10, 89, 245, 0.22);
  box-shadow: 0 16px 36px -16px rgba(4, 10, 26, 0.45);
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acs-oct-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.acs-oct-head span {
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.acs-oct-head strong {
  font-size: 10.2px;
  font-weight: 800;
  color: #FF6961;
  font-variant-numeric: tabular-nums;
}

.acs-oct-head strong.is-good {
  color: #34D399;
}

.acs-oct-viewport svg {
  width: 100%;
  max-width: 248px;
  height: auto;
}

.acs-wall-depth-box {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.065);
}

.acs-wall-depth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.acs-wall-depth-head strong {
  font-size: 12px;
  font-weight: 700;
  color: #1D1D1F;
  font-variant-numeric: tabular-nums;
}

.acs-wall-depth-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.09);
  overflow: hidden;
  margin-bottom: 6px;
}

.acs-wall-depth-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.acs-wall-depth-fill.is-danger { background: linear-gradient(90deg, #D93829, #F97316); }
.acs-wall-depth-fill.is-warn   { background: linear-gradient(90deg, #D97706, #F59E0B); }
.acs-wall-depth-fill.is-info   { background: linear-gradient(90deg, #0071E3, #38BDF8); }
.acs-wall-depth-fill.is-good   { background: linear-gradient(90deg, #008A8E, #00C4C8); }

.acs-wall-depth-ticks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #6E6E73;
}

.acs-orders-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.065);
}

.acs-orders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.acs-order-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
  font-size: 11.4px;
  font-weight: 600;
}

.acs-order-chip.is-accent {
  background: #EEF5FF;
  border-color: rgba(0, 113, 227, 0.25);
  color: #0066CC;
  font-weight: 700;
}

.ecg-page .acs-status-pill.is-safe {
  background: rgba(0, 168, 171, 0.12) !important;
  border: 1px solid rgba(0, 168, 171, 0.32) !important;
  color: #007A7E !important;
}

.ecg-page .acs-status-pill.is-warn {
  background: rgba(217, 119, 6, 0.11) !important;
  border: 1px solid rgba(217, 119, 6, 0.30) !important;
  color: #B45309 !important;
}

.ecg-page .acs-status-pill.is-danger {
  background: rgba(217, 56, 41, 0.10) !important;
  border: 1px solid rgba(217, 56, 41, 0.28) !important;
  color: #C82319 !important;
}

.ecg-page .acs-treat-btn.is-treated {
  background: rgba(0, 168, 171, 0.14) !important;
  border-color: rgba(0, 168, 171, 0.38) !important;
  color: #007A7E !important;
}

/* TAB 2: 4th UDMI Cutoffs, Apple Ceramic 12-Equivalent Matrix & Live 15-Lead Heatmap */
.ecg-page .acs-udmi-bar {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 18px !important;
  padding: 13px 16px !important;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.08) !important;
}

.ecg-page .acs-udmi-title {
  color: #0071E3 !important;
  font-weight: 800 !important;
}

.ecg-page .acs-udmi-chips span {
  background: #F2F6FC !important;
  border: 1px solid rgba(0, 113, 227, 0.16) !important;
  color: #0051D5 !important;
  font-weight: 600 !important;
}

.ecg-page .acs-udmi-chips strong {
  color: #1D1D1F !important;
  font-weight: 700 !important;
}

.ecg-page .acs-eq-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.085) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.07) !important;
  color: #1D1D1F !important;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ecg-page .acs-eq-card small {
  color: #D93829 !important;
  font-weight: 700 !important;
}

.ecg-page .acs-eq-card strong {
  color: #1D1D1F !important;
  font-weight: 700 !important;
}

.ecg-page .acs-eq-card span {
  color: #6E6E73 !important;
}

.ecg-page .acs-eq-card:hover {
  border-color: rgba(0, 113, 227, 0.38) !important;
  background: #FAFBFD !important;
  transform: translateY(-1px) !important;
}

.ecg-page .acs-eq-card.is-active {
  background: #F2F6FC !important;
  border: 1.5px solid #0071E3 !important;
  box-shadow: 0 10px 26px -10px rgba(0, 113, 227, 0.24) !important;
}

.ecg-page .acs-eq-card.is-active small {
  color: #0071E3 !important;
}

.ecg-page .acs-eq-card.is-active strong {
  color: #1D1D1F !important;
}

.ecg-page .acs-eq-card.is-active span {
  color: #334155 !important;
}

.acs-sheet-jump-btn {
  padding: 7px 13px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.acs-sheet-jump-btn:hover {
  background: #FFFFFF;
  border-color: #0071E3;
  color: #0071E3;
}

.acs-eq-leadmap-box {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.065);
}

.acs-eq-leadmap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.acs-eq-leadmap-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.2px;
  font-weight: 600;
  color: #6E6E73;
}

.acs-eq-leadmap-leg span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.acs-eq-leadmap-leg i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.acs-eq-leadmap-leg i.is-ste { background: #D93829; }
.acs-eq-leadmap-leg i.is-std { background: #0071E3; }
.acs-eq-leadmap-leg i.is-tw  { background: #D97706; }

.acs-eq-leadmap {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.acs-hm-lead {
  padding: 5px 2px;
  border-radius: 8px;
  text-align: center;
  font-size: 10.8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #86868B;
}

.acs-hm-lead.is-ste {
  background: #D93829;
  border-color: #B92B1F;
  color: #FFFFFF;
}

.acs-hm-lead.is-std {
  background: #0071E3;
  border-color: #0051D5;
  color: #FFFFFF;
}

.acs-hm-lead.is-tw {
  background: #FEF3C7;
  border-color: #D97706;
  color: #B45309;
}

.ecg-page .acs-eq-meta-row > div {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.065) !important;
  border-radius: 14px !important;
  padding: 11px 13px !important;
}

.ecg-page .acs-eq-meta-row strong {
  color: #1D1D1F !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* TAB 3: Biomarker Kinetics Crisp Readouts & Live 2023 ESC 0h/1h Simulator */
.ecg-page .acs-bio-canvas-box {
  border-radius: 18px !important;
  background: #070B14 !important;
  border: 1px solid rgba(10, 89, 245, 0.18) !important;
  overflow: hidden !important;
}

.ecg-page .acs-bio-scrubber {
  color: #52525B !important;
  font-weight: 600 !important;
}

.ecg-page .acs-bio-scrubber strong,
.ecg-page #acs-bio-hour-out {
  color: #1D1D1F !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

.ecg-page .acs-bio-stat {
  background: #F5F5F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.065) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
}

.ecg-page .acs-bio-stat span {
  color: #6E6E73 !important;
  font-weight: 600 !important;
}

.ecg-page .acs-bio-stat strong {
  color: #1D1D1F !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

.ecg-page .acs-bio-caption {
  color: #52525B !important;
}

.acs-esc-verdict-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.acs-esc-verdict-pill.is-safe   { background: rgba(0, 168, 171, 0.14); color: #007A7E; border: 1px solid rgba(0, 168, 171, 0.34); }
.acs-esc-verdict-pill.is-warn   { background: rgba(217, 119, 6, 0.14); color: #B45309; border: 1px solid rgba(217, 119, 6, 0.34); }
.acs-esc-verdict-pill.is-danger { background: rgba(217, 56, 41, 0.14); color: #C82319; border: 1px solid rgba(217, 56, 41, 0.34); }

.acs-esc-calc {
  padding: 13px 15px;
  border-radius: 16px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.acs-esc-slider-row {
  display: grid;
  grid-template-columns: 152px 1fr 72px;
  align-items: center;
  gap: 10px;
}

.acs-esc-slider-row label {
  font-size: 11.8px;
  font-weight: 700;
  color: #1D1D1F;
}

.acs-esc-slider-row input[type="range"] {
  width: 100%;
  accent-color: #0071E3;
}

.acs-esc-slider-row strong {
  text-align: right;
  font-size: 12.2px;
  font-weight: 800;
  color: #0071E3;
  font-variant-numeric: tabular-nums;
}

.acs-esc-calc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.acs-esc-cutoff-hint {
  font-size: 10.4px;
  font-weight: 600;
  color: #6E6E73;
  font-variant-numeric: tabular-nums;
}

.ecg-page .acs-triage-box {
  background: #F8F9FB !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.ecg-page .acs-triage-box.is-highlighted {
  opacity: 1 !important;
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.16) !important;
}

.ecg-page .acs-triage-box.is-safe   { border-left: 4px solid #00A8AB !important; }
.ecg-page .acs-triage-box.is-warn   { border-left: 4px solid #D97706 !important; }
.ecg-page .acs-triage-box.is-danger { border-left: 4px solid #D93829 !important; }

.ecg-page .acs-triage-box.is-safe.is-highlighted   { background: #F0FAFA !important; border-color: rgba(0, 168, 171, 0.35) !important; }
.ecg-page .acs-triage-box.is-warn.is-highlighted   { background: #FFFBEB !important; border-color: rgba(217, 119, 6, 0.35) !important; }
.ecg-page .acs-triage-box.is-danger.is-highlighted { background: #FEF2F2 !important; border-color: rgba(217, 56, 41, 0.35) !important; }

.ecg-page .acs-triage-head strong {
  color: #1D1D1F !important;
  font-size: 12.6px !important;
  font-weight: 800 !important;
}

.ecg-page .acs-triage-box.is-safe .acs-triage-head strong   { color: #007A7E !important; }
.ecg-page .acs-triage-box.is-warn .acs-triage-head strong   { color: #B45309 !important; }
.ecg-page .acs-triage-box.is-danger .acs-triage-head strong { color: #C82319 !important; }

.ecg-page .acs-triage-head span {
  color: #52525B !important;
  font-weight: 700 !important;
}

.ecg-page .acs-triage-box p {
  color: #4B5563 !important;
}

/* TAB 4: Apple Ceramic Reperfusion Clocks + Interactive Bedside Safety Engine */
.ecg-page .acs-time-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.09) !important;
  color: #1D1D1F !important;
}

.ecg-page .acs-time-card.is-urgent  { border-top: 3px solid #D93829 !important; }
.ecg-page .acs-time-card.is-primary { border-top: 3px solid #0071E3 !important; }
.ecg-page .acs-time-card.is-strat   { border-top: 3px solid #00A8AB !important; }

.ecg-page .acs-time-card.is-lytic-active {
  background: #FFFBEB !important;
  border-color: rgba(217, 119, 6, 0.42) !important;
  border-top: 3px solid #D97706 !important;
}

.ecg-page .acs-time-card h4 {
  color: #1D1D1F !important;
  font-weight: 700 !important;
}

.ecg-page .acs-time-card p {
  color: #52525B !important;
}

.ecg-page .acs-time-card strong {
  color: #1D1D1F !important;
}

.acs-safety-bar {
  margin: 16px 0;
  padding: 15px 18px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.08);
}

.acs-safety-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.acs-safety-head p {
  margin: 4px 0 0;
  font-size: 12.8px;
  color: #4B5563;
  max-width: 560px;
  line-height: 1.45;
}

.acs-safety-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acs-safety-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.085);
  color: #4B5563;
  font-family: var(--font-sans);
  font-size: 11.8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.acs-safety-pill:hover {
  border-color: #0071E3;
  color: #1D1D1F;
}

.acs-safety-pill.is-active {
  background: #0071E3;
  border-color: #0071E3;
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(0, 113, 227, 0.55);
}

.ecg-page .acs-rx-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 16px 18px !important;
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.ecg-page .acs-rx-card.is-rx-danger {
  background: #FFF7F7 !important;
  border: 1.5px solid #D93829 !important;
  box-shadow: 0 14px 32px -14px rgba(217, 56, 41, 0.28) !important;
}

.ecg-page .acs-rx-card.is-rx-warn {
  background: #FFFDF4 !important;
  border: 1.5px solid #D97706 !important;
  box-shadow: 0 14px 32px -14px rgba(217, 119, 6, 0.22) !important;
}

.acs-rx-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acs-rx-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.acs-rx-status.is-ok     { background: rgba(0, 168, 171, 0.12); color: #007A7E; }
.acs-rx-status.is-hold   { background: rgba(107, 114, 128, 0.12); color: #4B5563; }
.acs-rx-status.is-warn   { background: rgba(217, 119, 6, 0.14); color: #B45309; }
.acs-rx-status.is-danger { background: #D93829; color: #FFFFFF; }

.ecg-page .acs-rx-card h4 {
  margin: 2px 0 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1D1D1F !important;
  letter-spacing: -0.02em !important;
}

.acs-rx-dose {
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F2F6FC;
  border: 1px solid rgba(0, 113, 227, 0.14);
  font-size: 12.2px !important;
  font-weight: 700 !important;
  color: #0051D5 !important;
  line-height: 1.42 !important;
}

.acs-rx-note {
  margin: 0 !important;
  font-size: 12.4px !important;
  color: #52525B !important;
  line-height: 1.48 !important;
}

.ecg-page .acs-rx-stop {
  background: rgba(217, 56, 41, 0.075) !important;
  border: 1px solid rgba(217, 56, 41, 0.20) !important;
  color: #991B1B !important;
  border-radius: 12px !important;
  font-size: 11.8px !important;
  line-height: 1.45 !important;
}

.ecg-page .acs-rx-stop strong {
  color: #B91C1C !important;
}

/* TAB 5: Interactive Post-MI Histological Healing Ribbon & High-Contrast Complication Cards */
.acs-healing-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.acs-heal-phase {
  text-align: left;
  padding: 13px 15px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.085);
  box-shadow: 0 8px 22px -14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.acs-heal-phase span {
  display: block;
  font-size: 9.4px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6E6E73;
  margin-bottom: 4px;
}

.acs-heal-phase.is-acute span    { color: #D93829; }
.acs-heal-phase.is-subacute span { color: #B45309; }
.acs-heal-phase.is-late span     { color: #0071E3; }

.acs-heal-phase strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: 3px;
}

.acs-heal-phase small {
  display: block;
  font-size: 11.2px;
  color: #6E6E73;
}

.acs-heal-phase:hover {
  border-color: rgba(0, 113, 227, 0.36);
  transform: translateY(-1px);
}

.acs-heal-phase.is-active {
  background: #F2F6FC;
  border: 1.5px solid #0071E3;
  box-shadow: 0 12px 28px -12px rgba(0, 113, 227, 0.24);
}

.acs-heal-phase.is-subacute.is-active {
  background: #FFFBEB;
  border-color: #D97706;
  box-shadow: 0 12px 28px -12px rgba(217, 119, 6, 0.24);
}

.acs-heal-phase.is-acute.is-active {
  background: #FEF2F2;
  border-color: #D93829;
  box-shadow: 0 12px 28px -12px rgba(217, 56, 41, 0.22);
}

.ecg-page .acs-comp-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ecg-page .acs-comp-card.is-win-acute    { border-top: 3px solid #D93829 !important; }
.ecg-page .acs-comp-card.is-win-subacute { border-top: 3px solid #D97706 !important; }
.ecg-page .acs-comp-card.is-win-late     { border-top: 3px solid #0071E3 !important; }

.ecg-page .acs-comp-time {
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.ecg-page .acs-comp-time.is-win-acute    { background: rgba(217, 56, 41, 0.11) !important; color: #C82319 !important; }
.ecg-page .acs-comp-time.is-win-subacute { background: rgba(217, 119, 6, 0.13) !important; color: #B45309 !important; }
.ecg-page .acs-comp-time.is-win-late     { background: rgba(0, 113, 227, 0.11) !important; color: #0066CC !important; }

.ecg-page .acs-comp-vessel {
  color: #6E6E73 !important;
  font-weight: 600 !important;
  font-size: 11px !important;
}

.ecg-page .acs-comp-card h4 {
  margin: 2px 0 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1D1D1F !important;
  letter-spacing: -0.02em !important;
}

.acs-comp-hallmark {
  padding: 6px 10px;
  border-radius: 10px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.065);
  font-size: 11.4px;
  font-weight: 700;
  color: #1D1D1F;
}

.acs-comp-hallmark span {
  color: #0071E3;
  margin-right: 4px;
}

.acs-comp-clue {
  margin: 0 !important;
  font-size: 12.6px !important;
  line-height: 1.5 !important;
  color: #4B5563 !important;
}

.ecg-page .acs-comp-action {
  margin-top: auto !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #F0FAFA !important;
  border: 1px solid rgba(0, 168, 171, 0.24) !important;
  color: #0F5257 !important;
  font-size: 12px !important;
  line-height: 1.48 !important;
}

.ecg-page .acs-comp-action strong {
  color: #007A7E !important;
}

@media (max-width: 960px) {
  .acs-healing-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acs-eq-leadmap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .acs-esc-slider-row {
    grid-template-columns: 120px 1fr 64px;
  }
}

@media (max-width: 560px) {
  .acs-healing-ribbon {
    grid-template-columns: 1fr;
  }
}


/* v33.1 OCT Single-Line Header & Sleek Horizontal Scrollable Mobile ACS/USMLE Tab Strips */
.acs-oct-head span,
.acs-oct-head strong {
  white-space: nowrap !important;
}

@media (max-width: 960px) {
  .ecg-page .acs-tab-bar,
  .ecg-page .usmle-tab-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 4px !important;
    border-radius: 999px !important;
    padding: 4px !important;
    scrollbar-width: none;
  }

  .ecg-page .acs-tab-bar::-webkit-scrollbar,
  .ecg-page .usmle-tab-bar::-webkit-scrollbar,
  .ecg-page .acs-pheno-pills::-webkit-scrollbar {
    display: none;
  }

  .ecg-page .acs-tab-bar .acs-tab-btn,
  .ecg-page .usmle-tab-bar .acs-tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
  }

  .ecg-page .acs-pheno-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ecg-page .acs-pheno-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}


/* ============================================================================
   v34 MEDIBYTE NEW iOS ATELIER THEME · WARM IVORY PARCHMENT & ELECTRIC ROYAL COBALT
   - Unifies ALL 9 /ecg Workspaces with the Brand-New MediByte iOS App Theme (#FAF7F2 + #0E4FE8)
   - Two-Tone MediByte Wordmark, Warm Sunlit Alabaster 3D Heart Stage & Frosted Ivory Cards
   - Midnight Royal Pro Monitors (#070B16) Framed Inside Tactile Parchment-Ivory Bento Surfaces
   ============================================================================ */

html:has(body.ecg-studio-os),
body.ecg-page,
body.ecg-studio-os {
  background: #FAF7F2 !important;
  color: #16171C !important;
}

/* 1. Frosted Warm Parchment Top Navigation Bar + Two-Tone MediByte Wordmark */
.ecg-studio-os .studio-os-topbar.vision-glass-bar::before {
  background: rgba(250, 247, 242, 0.88) !important;
  border-bottom: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-studio-os .brand-mark__word {
  color: #16171C !important;
}

.ecg-studio-os .brand-mark__word span {
  color: #0E4FE8 !important;
}

.ecg-studio-os .os-ws-badge {
  color: #0E4FE8 !important;
}

/* Warm Cream Segmented Workspace Bar + Pure Ivory Active Pill */
.ecg-studio-os .studio-os-rail.vision-glass-dock {
  background: #EFE9DD !important;
  border: 1px solid rgba(124, 106, 80, 0.13) !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn {
  color: #6B655C !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn:hover {
  background: rgba(255, 253, 249, 0.65) !important;
  color: #16171C !important;
}

.ecg-studio-os .vision-glass-dock .os-rail-btn.is-active {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.12) !important;
  color: #0E4FE8 !important;
  box-shadow: 0 3px 10px rgba(58, 44, 28, 0.09) !important;
}

.ecg-studio-os .os-global-telemetry,
.ecg-studio-os .site-header--cinema:not(.is-light-nav) .nav-spotlight-btn,
.ecg-studio-os .nav-spotlight-btn {
  background: #F2ECE2 !important;
  border: 1px solid rgba(124, 106, 80, 0.14) !important;
  color: #5D5850 !important;
}

.ecg-studio-os .os-global-telemetry strong,
.ecg-studio-os .nav-spotlight-btn svg {
  color: #16171C !important;
  stroke: #16171C !important;
}

.ecg-studio-os .nav-spotlight-btn .nav-spot-kbd {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.18) !important;
  color: #5D5850 !important;
}

.ecg-studio-os .nav-download-cta {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  box-shadow: 0 10px 22px -8px rgba(14, 79, 232, 0.55) !important;
}

/* 2. Warm Alabaster Parchment Stage Across ALL 9 Workspaces */
.ecg-studio-os .studio-os-stage,
.ecg-studio-os .studio-os-stage > #coronary-dossier.is-ws-active,
.ecg-studio-os .studio-os-stage > #conduction-theatre.is-ws-active,
.ecg-studio-os .studio-os-stage > #wiggers-lab.is-ws-active,
.ecg-studio-os .studio-os-stage > #acs-masterclass.is-ws-active,
.ecg-studio-os .studio-os-stage > #usmle-ep-lab.is-ws-active,
.ecg-studio-os .studio-os-stage > #workbench-12lead.is-ws-active,
.ecg-studio-os .studio-os-stage > #atlas-80.is-ws-active,
.ecg-studio-os .studio-os-stage > #labs-section.is-ws-active,
.ecg-studio-os .studio-os-stage > #clinical-detective.is-ws-active {
  background: linear-gradient(180deg, #FAF7F2 0%, #F7F2E9 55%, #F2ECE1 100%) !important;
  color: #16171C !important;
}

/* 3. Workspace 1: Sunlit Warm Alabaster Studio 3D Heart Stage (#coronary-3d) */
.ecg-studio-os .studio-os-stage > #coronary-3d:not(.is-dark-stage).is-ws-active {
  background: radial-gradient(ellipse 74% 68% at 50% 44%, #FFFDF9 0%, #FAF6EE 54%, #EFE8DB 100%) !important;
  color: #16171C !important;
}

.ecg-studio-os .studio-os-stage > #coronary-3d.is-reperfused:not(.is-dark-stage).is-ws-active {
  background: radial-gradient(ellipse 74% 68% at 50% 44%, #FFFDF9 0%, #F2FAF6 54%, #E6F2EC 100%) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .cinema-bg-watermark {
  background: linear-gradient(180deg, rgba(124, 106, 80, 0.095) 0%, rgba(14, 79, 232, 0.032) 72%, transparent 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .cinema-title {
  background: linear-gradient(106deg, #16171C 0%, #16171C 44%, #0E4FE8 82%, #159A6E 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .cinema-subtitle {
  color: #5D5850 !important;
}

.ecg-studio-os #coronary-3d .dock-pci-btn.hero-pci-cta.is-reperfused {
  background: linear-gradient(180deg, #19B27F 0%, #12855F 100%) !important;
  box-shadow: 0 12px 28px -8px rgba(21, 154, 110, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .hero-glass-cta,
.ecg-studio-os #coronary-3d:not(.is-dark-stage) .spatial-callout-tag:not(.is-culprit):not(.is-stented),
.ecg-studio-os #coronary-3d:not(.is-dark-stage) .cinema-scenario-rail,
.ecg-studio-os #coronary-3d:not(.is-dark-stage) .vision-instrument-pod {
  background: rgba(255, 253, 249, 0.90) !important;
  border-color: rgba(124, 106, 80, 0.16) !important;
  box-shadow: 0 20px 50px -18px rgba(58, 44, 28, 0.15), 0 2px 6px rgba(58, 44, 28, 0.04) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .spatial-callout-tag.is-culprit {
  background: linear-gradient(180deg, #E34133 0%, #C62B1E 100%) !important;
  border-color: #B42318 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 26px -6px rgba(217, 54, 40, 0.46) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .spatial-callout-tag.is-stented {
  background: linear-gradient(180deg, #19B27F 0%, #12855F 100%) !important;
  border-color: #0F7352 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 26px -6px rgba(21, 154, 110, 0.44) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .mi-preset-btn.is-active {
  background: #EDF3FF !important;
  border-color: rgba(14, 79, 232, 0.28) !important;
  color: #16171C !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .dock-segment {
  background: #EFE9DD !important;
  border-color: rgba(124, 106, 80, 0.12) !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .dock-seg-btn.is-active {
  background: #FFFDF9 !important;
  color: #0E4FE8 !important;
}

.ecg-studio-os #coronary-3d:not(.is-dark-stage) .dock-opt-btn.is-active {
  background: #EDF3FF !important;
  border-color: rgba(14, 79, 232, 0.26) !important;
  color: #0E4FE8 !important;
}

/* 4. Warm Sunlit Ivory Bento Cards, Sand Wells & Electric Royal Cobalt Controls (Workspaces 2 to 9) */
.ecg-page .ceramic-card,
.ecg-page .wiggers-panel,
.ecg-page .sheet-workbench:not(.is-dark-paper),
.ecg-page .acs-obsidian-card,
.ecg-page .topic-deep-dive,
.ecg-page .lab-hero-card,
.ecg-page .lab-bench-card,
.ecg-page .atlas-master-col,
.ecg-studio-os .atlas-split-shell > .topic-deep-dive,
.ecg-page .conduction-live-panel,
.ecg-page .acs-udmi-bar,
.ecg-page .acs-eq-card,
.ecg-page .acs-time-card,
.ecg-page .acs-safety-bar,
.ecg-page .acs-rx-card,
.ecg-page .acs-heal-phase,
.ecg-page .acs-comp-card {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.14) !important;
  box-shadow: 0 14px 36px -16px rgba(68, 52, 32, 0.09), 0 2px 6px rgba(68, 52, 32, 0.03) !important;
}

.ecg-page .vessel-hero-strip,
.ecg-page .leads-split-box,
.ecg-page .dossier-hemo-cell,
.ecg-page .dossier-salvage-wrap,
.ecg-page .wiggers-metric-card,
.ecg-page .vw-ion-bars,
.ecg-page .usmle-brugada-detail,
.ecg-page .criteria-list li,
.ecg-page .dd-tel-cell,
.ecg-page .torso-prog-wrap,
.ecg-page .torso-legend-bar,
.ecg-page .torso-legend-strip,
.ecg-page .lab-tel-cell,
.ecg-page .coach-step-card,
.ecg-page .coach-criteria-box > div,
.ecg-page .qtc-slider-box,
.ecg-page .qtc-formula-tile,
.ecg-page .case-chart-bar,
.ecg-page .real-metric-tile,
.ecg-page .acs-lumen-stat,
.ecg-page .acs-pillar-box,
.ecg-page .acs-wall-depth-box,
.ecg-page .acs-eq-leadmap-box,
.ecg-page .acs-eq-meta-row > div,
.ecg-page .acs-bio-stat,
.ecg-page .acs-esc-calc,
.ecg-page .acs-comp-hallmark,
.ecg-page .conduction-live-panel .cond-stat,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-muse-report,
.ecg-page .sheet-workbench:not(.is-dark-paper) .caliper-zoom-panel,
.ecg-page .sheet-workbench:not(.is-dark-paper) .vital-box,
.ecg-studio-os .atlas-search-wrap,
.ecg-studio-os .dd-strip-head {
  background: #F5F0E6 !important;
  border-color: rgba(124, 106, 80, 0.13) !important;
}

.ecg-page .acs-tab-bar,
.ecg-page .usmle-tab-bar,
.ecg-page .os-lab-bar,
.ecg-page .conduction-speed-bar,
.ecg-page .wiggers-speed-seg,
.ecg-page .lab-seg-bar,
.ecg-page .case-mode-toggle {
  background: #EFE9DD !important;
  border-color: rgba(124, 106, 80, 0.13) !important;
}

.ecg-page .acs-tab-btn.is-active,
.ecg-page .os-lab-tab.is-active,
.ecg-page .lab-seg-btn.is-active,
.ecg-page .case-mode-btn.is-active,
.ecg-page .wiggers-spd-btn.is-active,
.ecg-page .cond-ctrl-btn.is-active {
  background: #FFFDF9 !important;
  color: #0E4FE8 !important;
  border-color: rgba(124, 106, 80, 0.12) !important;
}

.ecg-page .acs-tab-btn.is-active strong {
  color: #0E4FE8 !important;
}

/* Signature Electric Royal Cobalt (#0E4FE8) Active Pills & Primary CTAs Across ALL Modules */
.ecg-page .apple-kicker,
.ecg-page .acs-micro-tag,
.ecg-page .wiggers-micro-tag,
.ecg-page .case-chart-demo,
.ecg-page .acs-udmi-title,
.ecg-page .acs-esc-slider-row strong,
.ecg-page .acs-comp-hallmark span {
  color: #0E4FE8 !important;
}

.ecg-page .cond-pill.is-active,
.ecg-page .wiggers-pill.is-active,
.ecg-page .cam-pill.is-active,
.ecg-page .evo-step-btn.is-active,
.ecg-page .acs-pheno-pill.is-active,
.ecg-page .usmle-vw-pill.is-active,
.ecg-page .brugada-step-btn.is-active,
.ecg-page .sheet-pat-pill.is-active,
.ecg-page .acs-mini-pill.is-active,
.ecg-page .sheet-workbench:not(.is-dark-paper) .sheet-ctrl-btn.is-active,
.ecg-page .chapter-bento-btn.is-active,
.ecg-page .topic-step-tab.is-active,
.ecg-page .coach-step-btn.is-active,
.ecg-page .qtc-preset-btn.is-active,
.ecg-page .qtc-bogossian-btn.is-active,
.ecg-page .case-lead-btn.is-active,
.ecg-page .electrode-pills button.is-active,
.ecg-page .real-study-card .elec-pill.is-active,
.ecg-page .wiggers-ctrl-btn.is-active,
.ecg-page .diff-superimpose-btn.is-active,
.ecg-page .acs-safety-pill.is-active,
.ecg-page .acs-sync-3d-btn,
.ecg-page .btn-apple-solid {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -8px rgba(14, 79, 232, 0.50) !important;
}

.ecg-page .acs-eq-card.is-active,
.ecg-studio-os .atlas-master-scroll .atlas-card.is-active,
.ecg-page .acs-heal-phase.is-active {
  background: #EDF3FF !important;
  border-color: #0E4FE8 !important;
}

.ecg-studio-os .atlas-master-scroll .atlas-card {
  background: #FAF7F2 !important;
  border-color: rgba(124, 106, 80, 0.11) !important;
}

.ecg-page .case-option-btn {
  background: #FAF7F2 !important;
  border-color: rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .case-option-btn:hover:not(:disabled) {
  background: #EDF3FF !important;
  border-color: #0E4FE8 !important;
}

.ecg-page .acs-rx-card.is-rx-danger {
  background: #FFF5F4 !important;
  border-color: #D93628 !important;
}

/* 5. Mobile Frosted Warm-Parchment Floating Bottom iOS Capsule (Exact iOS App Match!) */
@media (max-width: 960px) {
  .ecg-studio-os .studio-os-rail.vision-glass-dock {
    background: rgba(255, 253, 249, 0.92) !important;
    border: 1px solid rgba(124, 106, 80, 0.16) !important;
    box-shadow: 0 16px 40px -10px rgba(58, 44, 28, 0.18) !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn.is-active {
    background: #EDF3FF !important;
    border-color: rgba(14, 79, 232, 0.22) !important;
    color: #0E4FE8 !important;
  }

  .ecg-studio-os .vision-glass-dock .os-rail-btn.is-active svg {
    color: #0E4FE8 !important;
  }
}


/* ============================================================================
   v35 ECG LAB MASTER OVERHAUL · ZERO-DEFECT USMLE, WARM ATELIER SPOTLIGHT
   & NEW BEDSIDE INTERACTIVE INSTRUMENTS (NERNST, ANTIDOTES, 15-LEAD DOSSIER,
   300-BOX RATE RULER, QUADRANT AXIS & BOARD MASTERY PROGRESS)
   ============================================================================ */

/* 1. USMLE Tab 1: Crisp Royal Cobalt Telemetry Wells (No Washed-Out Sky Cyan!) */
.ecg-page .usmle-ap-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ecg-page .usmle-ap-metrics > div {
  padding: 11px 13px;
  border-radius: 14px;
  background: #F5F0E6 !important;
  border: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .usmle-ap-metrics span {
  display: block;
  color: #6B655C !important;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.ecg-page .usmle-ap-metrics strong {
  display: block;
  color: #0E4FE8 !important;
  font-size: 13.2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 2. USMLE Tab 2: High-Contrast Electrolyte Sliders, Live Nernst Bar & Antidote Simulator */
.ecg-page .usmle-slider-card {
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #F5F0E6 !important;
  border: 1px solid rgba(124, 106, 80, 0.15) !important;
}

.ecg-page .usmle-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ecg-page .usmle-slider-head span {
  color: #16171C !important;
  font-weight: 600 !important;
  font-size: 12.6px !important;
}

.ecg-page .usmle-slider-head strong,
.ecg-page .lyte-val-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  background: #EDF3FF !important;
  border: 1px solid rgba(14, 79, 232, 0.24) !important;
  color: #0E4FE8 !important;
}

.ecg-page .usmle-slider-head strong.is-danger,
.ecg-page .lyte-val-badge.is-danger {
  background: #FFF1F0 !important;
  border-color: rgba(217, 54, 40, 0.34) !important;
  color: #B42318 !important;
}

.ecg-page .usmle-slider-head strong.is-warn,
.ecg-page .lyte-val-badge.is-warn {
  background: #FFF7E6 !important;
  border-color: rgba(212, 136, 23, 0.36) !important;
  color: #A16207 !important;
}

.ecg-page .usmle-slider-head strong.is-ok,
.ecg-page .lyte-val-badge.is-ok {
  background: #ECFDF5 !important;
  border-color: rgba(21, 154, 110, 0.30) !important;
  color: #0F7B58 !important;
}

.ecg-page .usmle-slider-ticks {
  color: #6B655C !important;
  font-size: 10.6px;
}

.lyte-nernst-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lyte-nernst-cell {
  padding: 11px 13px;
  border-radius: 15px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
}

.lyte-nernst-cell span {
  display: block;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7D766B;
  margin-bottom: 3px;
}

.lyte-nernst-cell strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #16171C;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.lyte-nernst-cell strong.is-danger { color: #C62B1E; }
.lyte-nernst-cell strong.is-warn   { color: #B45309; }
.lyte-nernst-cell strong.is-ok     { color: #12855F; }

.lyte-nernst-cell small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6B655C;
}

.lyte-antidote-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
}

.lyte-antidote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lyte-antidote-hint {
  font-size: 11.4px;
  color: #7D766B;
}

.lyte-antidote-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lyte-rx-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: #FFFDF9;
  border: 1px solid rgba(124, 106, 80, 0.18);
  color: #16171C;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lyte-rx-pill:hover {
  border-color: #0E4FE8;
  color: #0E4FE8;
  background: #EDF3FF;
}

.lyte-rx-pill.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%);
  border-color: #0E4FE8;
  color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgba(14, 79, 232, 0.55);
}

.lyte-antidote-readout {
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFFDF9;
  border: 1px solid rgba(14, 79, 232, 0.22);
  box-shadow: 0 8px 20px -14px rgba(14, 79, 232, 0.22);
}

.lyte-ar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.lyte-ar-top strong {
  font-size: 13.6px;
  color: #16171C;
}

.lyte-ar-top span {
  font-size: 11.2px;
  font-weight: 600;
  color: #0E4FE8;
}

.lyte-ar-shift {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #ECFDF5;
  border: 1px solid rgba(21, 154, 110, 0.24);
  color: #0F7B58;
  font-size: 11.2px;
  font-weight: 700;
}

.lyte-antidote-readout p {
  margin: 0 0 7px;
  font-size: 12.4px;
  line-height: 1.48;
  color: #4B463F;
}

.lyte-ar-rule {
  padding-top: 7px;
  border-top: 1px solid rgba(124, 106, 80, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #B42318;
  line-height: 1.42;
}

/* 3. USMLE Tab 3: Fix All 4 Invisible AV Block Titles & Brugada Subtext Contrast */
.ecg-page .usmle-avb-card {
  background: #FAF7F2 !important;
  border: 1px solid rgba(124, 106, 80, 0.14) !important;
  color: #16171C !important;
  border-radius: 15px !important;
  padding: 12px 14px !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.ecg-page .usmle-avb-card:hover {
  background: #FFFDF9 !important;
  border-color: rgba(14, 79, 232, 0.34) !important;
  transform: translateY(-1px);
}

.ecg-page .usmle-avb-card.is-active {
  background: #EDF3FF !important;
  border-color: #0E4FE8 !important;
  box-shadow: 0 8px 20px -12px rgba(14, 79, 232, 0.30) !important;
}

.ecg-page .usmle-avb-card strong,
.ecg-page .usmle-avb-top strong {
  color: #16171C !important;
  font-size: 13.8px !important;
  font-weight: 700 !important;
}

.ecg-page .usmle-avb-card p {
  color: #5D5850 !important;
  margin-top: 4px !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn {
  background: #FAF7F2 !important;
  border: 1px solid rgba(124, 106, 80, 0.15) !important;
  color: #16171C !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 22px -8px rgba(14, 79, 232, 0.52) !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn strong {
  color: #16171C !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn span {
  color: #6B655C !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn.is-active strong {
  color: #FFFFFF !important;
}

.ecg-page .usmle-brugada-steps .brugada-step-btn.is-active span {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* 4. USMLE Tab 4: Harmonize ALL 12 Hypertrophy / Blocks / SCD Cards to Warm Sunlit Ivory */
.ecg-page .usmle-crit-card {
  background: #FFFDF9 !important;
  border: 1px solid rgba(124, 106, 80, 0.15) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px -14px rgba(68, 52, 32, 0.11) !important;
  color: #16171C !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.ecg-page .usmle-crit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 79, 232, 0.36) !important;
  box-shadow: 0 12px 28px -14px rgba(14, 79, 232, 0.22) !important;
}

.ecg-page .usmle-crit-card small {
  color: #0E4FE8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.ecg-page .usmle-crit-card strong {
  color: #16171C !important;
  font-weight: 700 !important;
}

.ecg-page .usmle-crit-card span {
  color: #6B655C !important;
}

.ecg-page .usmle-crit-card.is-active {
  background: linear-gradient(155deg, #EDF3FF 0%, #FFFDF9 100%) !important;
  border-color: #0E4FE8 !important;
  box-shadow: 0 12px 28px -12px rgba(14, 79, 232, 0.30), 0 0 0 1px rgba(14, 79, 232, 0.15) !important;
}

.ecg-page .usmle-crit-card.is-active small {
  color: #0E4FE8 !important;
}

.ecg-page .usmle-crit-card.is-active strong {
  color: #16171C !important;
}

.ecg-page .usmle-crit-card.is-active span {
  color: #464B58 !important;
}

/* 5. Warm Atelier Ivory Command-K Spotlight Modal (With Recessed Midnight Obsidian Oscilloscope!) */
.ecg-page .ecg-spotlight-backdrop {
  background: rgba(22, 23, 28, 0.44) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

.ecg-page .ecg-spotlight-window {
  background: #FFFDF9 !important;
  border: 1px solid rgba(124, 106, 80, 0.22) !important;
  box-shadow: 0 44px 110px -24px rgba(36, 26, 14, 0.36), 0 0 0 1px rgba(255, 253, 249, 0.85) inset !important;
  color: #16171C !important;
}

.ecg-page .spotlight-search-bar {
  background: #FAF7F2 !important;
  border-bottom: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .spotlight-search-icon {
  color: #0E4FE8 !important;
}

.ecg-page .spotlight-input {
  color: #16171C !important;
}

.ecg-page .spotlight-input::placeholder {
  color: #8A8377 !important;
}

.ecg-page .spotlight-match-count,
.ecg-page .spotlight-clear-btn,
.ecg-page .spotlight-esc-btn {
  background: #EFE9DD !important;
  border: 1px solid rgba(124, 106, 80, 0.16) !important;
  color: #5D5850 !important;
}

.ecg-page .spotlight-esc-btn:hover,
.ecg-page .spotlight-clear-btn:hover {
  background: #E6DECF !important;
  color: #16171C !important;
}

.ecg-page .spotlight-cat-bar {
  background: #FAF7F2 !important;
  border-bottom: 1px solid rgba(124, 106, 80, 0.13) !important;
}

.ecg-page .spot-cat-pill {
  background: #FFFDF9 !important;
  border: 1px solid rgba(124, 106, 80, 0.15) !important;
  color: #5D5850 !important;
}

.ecg-page .spot-cat-pill:hover {
  border-color: rgba(14, 79, 232, 0.36) !important;
  color: #0E4FE8 !important;
}

.ecg-page .spot-cat-pill.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  color: #FFFFFF !important;
}

.ecg-page .spotlight-list-col {
  background: #FAF7F2 !important;
  border-right: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .spot-result-item {
  color: #16171C !important;
}

.ecg-page .spot-result-item:hover {
  background: #F2ECE1 !important;
}

.ecg-page .spot-result-item.is-selected {
  background: #EDF3FF !important;
  border-color: rgba(14, 79, 232, 0.32) !important;
  color: #16171C !important;
  box-shadow: none !important;
}

.ecg-page .spot-item-sub {
  color: #6B655C !important;
}

.ecg-page .spot-result-item.is-selected .spot-item-sub {
  color: #0E4FE8 !important;
}

.ecg-page .spot-item-tag {
  background: #EFE9DD !important;
  color: #5D5850 !important;
}

.ecg-page .spot-item-tag.is-urgent {
  background: #FFF1F0 !important;
  color: #C62B1E !important;
}

.ecg-page .spot-severity-pill {
  background: #EDF3FF !important;
  border-color: rgba(14, 79, 232, 0.25) !important;
  color: #0E4FE8 !important;
}

.ecg-page .spot-severity-pill.is-urgent {
  background: #FFF1F0 !important;
  border-color: rgba(217, 54, 40, 0.32) !important;
  color: #C62B1E !important;
}

.ecg-page .spot-substrate-pill {
  background: #F5F0E6 !important;
  border-color: rgba(124, 106, 80, 0.16) !important;
  color: #5D5850 !important;
}

.ecg-page .spot-detail-title {
  color: #16171C !important;
}

.ecg-page .spot-detail-clue {
  color: #5D5850 !important;
}

/* Keep Recessed Live Oscilloscope Sleek Midnight Royal Obsidian inside Warm Ivory Spotlight! */
.ecg-page .spot-ecg-card {
  background: #070B16 !important;
  border: 1px solid rgba(14, 79, 232, 0.26) !important;
  box-shadow: 0 14px 32px -14px rgba(10, 18, 38, 0.45) !important;
}

.ecg-page .spot-vital-tile,
.ecg-page .spot-info-card {
  background: #F5F0E6 !important;
  border: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .spot-vital-tile span {
  color: #7D766B !important;
}

.ecg-page .spot-vital-tile strong {
  color: #16171C !important;
}

.ecg-page .spot-card-label {
  color: #0E4FE8 !important;
}

.ecg-page .spot-criteria-list,
.ecg-page .spot-info-card p {
  color: #3F3B35 !important;
}

.ecg-page .spot-trap-banner {
  background: #FFF7E6 !important;
  border-color: rgba(212, 136, 23, 0.34) !important;
}

.ecg-page .spot-trap-copy p {
  color: #7C4A03 !important;
}

.ecg-page .spot-compare-btn {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.22) !important;
  color: #16171C !important;
}

.ecg-page .spotlight-footer {
  background: #FAF7F2 !important;
  border-top: 1px solid rgba(124, 106, 80, 0.14) !important;
}

.ecg-page .spot-act-primary {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 22px -8px rgba(14, 79, 232, 0.55) !important;
}

.ecg-page .spot-act-secondary,
.ecg-page .spot-act-ghost {
  background: #FFFDF9 !important;
  border: 1px solid rgba(124, 106, 80, 0.20) !important;
  color: #16171C !important;
  box-shadow: 0 2px 6px rgba(58, 44, 28, 0.05) !important;
}

.ecg-page .spot-act-secondary:hover,
.ecg-page .spot-act-ghost:hover {
  background: #EDF3FF !important;
  border-color: #0E4FE8 !important;
  color: #0E4FE8 !important;
}

.ecg-page .spot-kbd-hints {
  color: #5D5850 !important;
}

.ecg-page .spot-kbd-hints kbd {
  background: #EFE9DD !important;
  border: 1px solid rgba(124, 106, 80, 0.22) !important;
  color: #16171C !important;
}

/* 6. 15-Lead GE MUSE: Live Selected Lead Anatomical Dossier & Calibration Trap Banner */
.sheet-calib-banner {
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 14px;
  background: #FFF7E6;
  border: 1px solid rgba(212, 136, 23, 0.36);
  color: #7C4A03;
  font-size: 12.6px;
  line-height: 1.44;
}

.sheet-calib-banner strong {
  color: #9A3412;
}

.zoom-lead-dossier {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.zld-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #FFFDF9;
  border: 1px solid rgba(124, 106, 80, 0.16);
  color: #3F3B35;
  font-size: 11.4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zld-pill.is-accent {
  background: #EDF3FF;
  border-color: rgba(14, 79, 232, 0.24);
  color: #0E4FE8;
}

.zld-pill.is-ste {
  background: #FFF1F0;
  border-color: rgba(217, 54, 40, 0.34);
  color: #B42318;
  font-weight: 700;
}

.zld-pill.is-std {
  background: #EDF3FF;
  border-color: rgba(14, 79, 232, 0.32);
  color: #0E4FE8;
  font-weight: 700;
}

.sheet-workbench.is-dark-paper .zld-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
}

.sheet-workbench.is-dark-paper .zld-pill.is-ste {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.38);
  color: #FF8A80;
}

.sheet-workbench.is-dark-paper .zld-pill.is-std {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.34);
  color: #7DD3FC;
}

/* 7. Labs 8-Step Rapid Rate Box Ruler & 4-Quadrant QRS Axis Matrix */
.coach-quick-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.cqt-block {
  padding: 14px 16px;
  border-radius: 16px;
  background: #F5F0E6;
  border: 1px solid rgba(124, 106, 80, 0.14);
}

.cqt-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 9px;
}

.cqt-head strong {
  font-size: 13.4px;
  color: #16171C;
  font-variant-numeric: tabular-nums;
}

.cqt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cqt-btn {
  padding: 6px 11px;
  border-radius: 999px;
  background: #FFFDF9;
  border: 1px solid rgba(124, 106, 80, 0.18);
  color: #16171C;
  font-size: 11.6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cqt-btn:hover {
  border-color: #0E4FE8;
  color: #0E4FE8;
}

.cqt-btn.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%);
  border-color: #0E4FE8;
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(14, 79, 232, 0.50);
}

.cqt-axis-note {
  margin: 8px 0 0;
  font-size: 11.8px;
  line-height: 1.44;
  color: #5D5850;
}

/* 8. Cases: MediByte iOS Royal Cobalt Board Readiness Progress Bar */
.case-mastery-bar {
  margin: 10px 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #F5F0E6;
  border: 1px solid rgba(124, 106, 80, 0.13);
}

.case-mastery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 7px;
  color: #5D5850;
  font-weight: 600;
}

.case-mastery-head strong {
  color: #0E4FE8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.case-mastery-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(124, 106, 80, 0.16);
  overflow: hidden;
}

.case-mastery-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0E4FE8 0%, #2568FF 100%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
  .ecg-page .usmle-ap-metrics,
  .lyte-nernst-bar,
  .coach-quick-tools {
    grid-template-columns: 1fr;
  }

  .ecg-page .usmle-lyte-presets,
  .ecg-page .sheet-quick-patterns,
  .ecg-page .usmle-drug-bar,
  .ecg-page .usmle-branch-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ecg-page .usmle-lyte-presets::-webkit-scrollbar,
  .ecg-page .sheet-quick-patterns::-webkit-scrollbar,
  .ecg-page .usmle-drug-bar::-webkit-scrollbar,
  .ecg-page .usmle-branch-pills::-webkit-scrollbar {
    display: none;
  }

  .ecg-page .usmle-lyte-presets button,
  .ecg-page .sheet-quick-patterns button,
  .ecg-page .usmle-drug-bar button,
  .ecg-page .usmle-branch-pills button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
