/* ==========================================================================
   PLEROMA DESIGN STUDIOS — ASHRAE 55 Visual Representation Dashboard Styles
   ========================================================================== */

/* 0. VIEW REPRESENTATION SELECTOR TOOLBAR */
.vd-view-toolbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .vd-view-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vd-view-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vd-view-toolbar-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vd-view-select {
  background-color: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  padding: 0.4rem 1rem !important;
  height: auto !important;
  min-width: 280px;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.vd-view-select:focus {
  border-color: #7CB305 !important;
  box-shadow: 0 0 0 3px rgba(124, 179, 5, 0.15) !important;
}

.vd-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7CB305;
  background: #F7FEE7;
  border: 1px solid #D9F99D;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

/* Visual Dashboard Main Container */
.visual-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vd-header-title h2,
.vd-kpi-value,
.vd-card-header h3,
.vd-telemetry-value,
.vd-telemetry-status-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 1. TOP HEADER: Compliance Status & KPI Summary */
.vd-header-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 992px) {
  .vd-header-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vd-header-title h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.025em;
}

.vd-header-title p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0.25rem 0 0 0;
}

.vd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.vd-status-badge.compliant {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
  color: #FFFFFF !important;
  border: 2px solid #86EFAC !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.75), 0 3px 12px rgba(22, 163, 74, 0.4) !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.vd-status-badge.compliant:hover {
  background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%) !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.9), 0 4px 16px rgba(22, 163, 74, 0.5) !important;
  transform: translateY(-1px);
}

.vd-status-badge.non-compliant {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  border: 2px solid #FCA5A5 !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.75), 0 3px 12px rgba(220, 38, 38, 0.45) !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

.vd-status-badge.non-compliant:hover {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%) !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.95), 0 4px 16px rgba(220, 38, 38, 0.55) !important;
  transform: translateY(-1px);
}

.vd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.vd-kpi-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  min-width: 95px;
}

.vd-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  display: block;
}

.vd-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin: 0.15rem 0;
}

.vd-kpi-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  display: block;
}

/* 2 & 3. MAIN HERO: Speedometer Gauge & Avatar Section */
.vd-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .vd-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vd-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}

.vd-card-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  margin: 0;
}

.vd-badge-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Gauge SVG Container */
.vd-gauge-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0.25rem auto 0 auto;
}

.vd-gauge-needle {
  transform-box: view-box;
  transform-origin: 120px 118px;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Chunky Segmented Annular Wedges matching reference design */
.vd-segment-wedge {
  stroke: #FFFFFF !important;
  stroke-width: 2.5px !important;
  stroke-linejoin: round !important;
  transition: fill 0.35s ease, filter 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.vd-segment-wedge:hover {
  filter: brightness(1.12);
  opacity: 0.95;
}

/* Executive Speedometer Telemetry Readout */
.vd-gauge-telemetry-badge {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.75rem 1.15rem;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.vd-telemetry-item {
  display: flex;
  flex-direction: column;
}

.vd-telemetry-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.vd-telemetry-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vd-telemetry-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  transition: all 0.3s ease;
  display: inline-block;
  flex-shrink: 0;
}

.vd-telemetry-status-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.vd-telemetry-divider {
  width: 1px;
  height: 32px;
  background-color: #E2E8F0;
}

.vd-telemetry-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: flex-end;
}

.vd-telemetry-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vd-telemetry-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
}

/* 3. Occupant Avatar & Parameter State Layout */
.vd-avatar-param-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .vd-avatar-param-layout {
    flex-direction: row;
    align-items: center;
  }
}

.vd-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 0.8rem;
}

.vd-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: #FFFFFF;
  border: 3px solid #10B981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.vd-avatar-circle.comfortable {
  border-color: #10B981;
  background: #ECFDF5;
}

.vd-avatar-circle.warm {
  border-color: #F59E0B;
  background: #FFFBEB;
}

.vd-avatar-circle.hot {
  border-color: #EF4444;
  background: #FEF2F2;
}

.vd-avatar-circle.cool {
  border-color: #06B6D4;
  background: #F0FDFA;
}

.vd-avatar-circle.cold {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.vd-avatar-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.vd-avatar-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.vd-avatar-sub {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

/* Parameters Chips Grid (Non-wrapping, spacious) */
.vd-param-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  flex: 1;
  width: 100%;
}

.vd-param-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  transition: all 0.2s ease;
}

.vd-param-chip:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vd-chip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.vd-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vd-chip-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-chip-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. MIDDLE SECTION: Horizontal Sensation Scale Bar */
.vd-scale-bar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vd-scale-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .vd-scale-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vd-comfort-zone-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
}

.vd-scale-track-wrap {
  position: relative;
  padding: 30px 10px 10px 10px;
}

.vd-slider-pin {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  pointer-events: none;
}

.vd-pin-badge {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.vd-pin-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #0F172A;
}

.vd-scale-gradient-bar {
  display: flex;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vd-zone-segment {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 32px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.vd-zone-cold { background: #3B82F6; }
.vd-zone-cool { background: #06B6D4; }
.vd-zone-scool { background: #14B8A6; }
.vd-zone-neutral { background: #10B981; }
.vd-zone-swarm { background: #FBBF24; color: #1E293B; text-shadow: none; }
.vd-zone-warm { background: #F97316; }
.vd-zone-hot { background: #EF4444; }

.vd-scale-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

/* 5. BOTTOM SECTION: Interactive Spatial Microclimate Floor Plan */
.vd-floorplan-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-top: 1rem;
}

.vd-floorplan-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-bottom: 1.5px solid #F1F5F9;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .vd-floorplan-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vd-floorplan-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vd-zone-dropdown {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  padding: 0.45rem 0.9rem !important;
  height: auto !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.vd-zone-dropdown:focus, .vd-zone-dropdown:hover {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.vd-floorplan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .vd-floorplan-grid {
    grid-template-columns: 3.2fr 2fr;
  }
}

.vd-blueprint-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 1.5px solid #1E293B;
  background: #0A0F1D;
}

/* Hotspot Nodes & Beacons */
.vd-hotspot-node {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vd-hotspot-node:hover {
  transform: scale(1.06);
}

.vd-hotspot-pulse {
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    r: 12;
    opacity: 0.9;
  }
  65% {
    r: 28;
    opacity: 0;
  }
  100% {
    r: 28;
    opacity: 0;
  }
}

/* Zone Inspection Cards */
.vd-zone-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vd-zone-list-caption {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  display: block;
  margin-bottom: 0.15rem;
}

.vd-zone-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.vd-zone-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.vd-zone-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.vd-zone-btn.active {
  border-width: 2px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.vd-zone-btn[data-zone="center"].active {
  border-color: #10B981;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-left: 4.5px solid #10B981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.14);
}
.vd-zone-btn[data-zone="window"].active {
  border-color: #F97316;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border-left: 4.5px solid #F97316;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.14);
}
.vd-zone-btn[data-zone="vent"].active {
  border-color: #0284C7;
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border-left: 4.5px solid #0284C7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.14);
}
.vd-zone-btn[data-zone="meeting"].active {
  border-color: #0D9488;
  background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
  border-left: 4.5px solid #0D9488;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.14);
}

.vd-zone-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.vd-zone-btn-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vd-zone-btn-temp {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.vd-zone-btn-desc {
  font-size: 0.72rem;
  color: #64748B;
  display: block;
  font-weight: 500;
}

.vd-zone-btn-telemetry {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  border-top: 1px dashed #E2E8F0;
  font-size: 0.68rem;
  color: #475569;
}

.vd-zone-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.68rem;
  color: #334155;
}

/* 6. CLASSIC PSYCHROMETRIC COORDINATE CHART (Studio Green Header Theme) */
.vd-classic-chart-wrap {
  margin-top: 1rem;
  border: 1.5px solid #BBF7D0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.05) !important;
}

#vd-section-psychchart .vd-card-header,
.vd-card-header-green {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFCCB 100%) !important;
  border-bottom: 2px solid #7CB305 !important;
  border-left: 5px solid #7CB305 !important;
  padding: 10px 16px !important;
  margin-bottom: 0 !important;
}

#vd-section-psychchart .vd-card-header h3,
.vd-card-header-green h3 {
  color: #166534 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#vd-section-psychchart .vd-badge-sub,
.vd-badge-green {
  color: #15803d !important;
  background: #DCFCE7 !important;
  padding: 3px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid #86EFAC !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}

#vd-section-psychchart .vd-chart-control-row {
  background: #F0FDF4 !important;
  border-bottom: 1.5px solid #BBF7D0 !important;
}

#vd-section-psychchart .vd-chart-control-label {
  color: #166534 !important;
  font-weight: 700 !important;
}

#vd-section-psychchart .vd-chart-select-dropdown {
  background-color: #FFFFFF !important;
  border: 1.5px solid #7CB305 !important;
  color: #166534 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(124, 179, 5, 0.15) !important;
}

.vd-chart-canvas-box {
  padding: 0.5rem 0;
}

/* Zero-footprint legacy sandbox */
.vd-legacy-hidden-sandbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   VIEW MODE TOGGLES (Controlled by the Representation View Dropdown)
   ========================================================================== */

.vd-chart-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}

.vd-chart-control-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vd-chart-select-dropdown {
  max-width: 420px;
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: #0F172A !important;
  padding: 0.35rem 0.8rem !important;
  height: auto !important;
}

.vd-chart-canvas-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #FFFFFF;
  min-height: 480px;
  overflow-x: auto;
}

/* Ensure chart containers are visible and centered */
#chart-div, #temphumchart-div, #veltopchart-div, #chart-div-adaptive {
  margin: 0 auto;
}

/* View Mode Hiding Rules */
body.vd-mode-gauge #vd-section-avatar,
body.vd-mode-gauge #vd-section-scale,
body.vd-mode-gauge #vd-section-floorplan,
body.vd-mode-gauge #vd-section-psychchart {
  display: none !important;
}
body.vd-mode-gauge #vd-section-hero {
  grid-template-columns: 1fr !important;
  max-width: 650px;
  margin: 0 auto;
}

body.vd-mode-avatar #vd-section-gauge,
body.vd-mode-avatar #vd-section-scale,
body.vd-mode-avatar #vd-section-floorplan,
body.vd-mode-avatar #vd-section-psychchart {
  display: none !important;
}
body.vd-mode-avatar #vd-section-hero {
  grid-template-columns: 1fr !important;
}

body.vd-mode-scale #vd-section-hero,
body.vd-mode-scale #vd-section-floorplan,
body.vd-mode-scale #vd-section-psychchart {
  display: none !important;
}

body.vd-mode-floorplan #vd-section-hero,
body.vd-mode-floorplan #vd-section-scale,
body.vd-mode-floorplan #vd-section-psychchart {
  display: none !important;
}

body.vd-mode-psychchart #vd-section-hero,
body.vd-mode-psychchart #vd-section-scale,
body.vd-mode-psychchart #vd-section-floorplan {
  display: none !important;
}
body.vd-mode-psychchart #vd-section-psychchart {
  display: block !important;
}

/* ==========================================================================
   STANDARD COMPARISON SUITE (Multi-Condition Benchmarking)
   ========================================================================== */

/* Multi-Pin Sensation Scale */
.vd-comp-scale-bar-wrap {
  position: relative;
  padding: 38px 12px 10px 12px;
}

.vd-comp-pin {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  pointer-events: none;
}

.vd-comp-pin-badge {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.vd-comp-pin-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.vd-comp-pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  margin-top: 1px;
}

/* Compare Dossier Cards */
.vd-comp-dossiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .vd-comp-dossiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vd-comp-dossier {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 0.85rem 0.6rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.vd-comp-dossier.case-1 {
  border: 1.5px solid #FCA5A5;
  background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 35%);
}
.vd-comp-dossier.case-2 {
  border: 1.5px solid #BAE6FD;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 35%);
}
.vd-comp-dossier.case-3 {
  border: 1.5px solid #A7F3D0;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 35%);
}

.vd-comp-dossier.disabled {
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
}

.vd-comp-dossier-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vd-comp-dossier-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin: 0.2rem 0;
  background: #FFFFFF;
  border: 2.5px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vd-comp-dossier-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.vd-comp-dossier-pmv {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 0.15rem;
}

.vd-comp-dossier-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #E2E8F0;
  width: 100%;
}


