/**
 * ICU MONITOR — CLINICAL AUTHORITY THEME
 * Dark • High Contrast • Real-Time • Medical Device Aesthetic
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Backgrounds */
  --icu-bg: #0a0a0f;
  --icu-surface: #12121a;
  --icu-surface-2: #1a1a24;
  --icu-surface-3: #22222e;
  
  /* Borders */
  --icu-border: #2a2a3a;
  --icu-border-light: #3a3a4a;
  
  /* Text */
  --icu-text: #f0f0f5;
  --icu-text-dim: #a0a0b0;
  --icu-text-muted: #606070;
  
  /* Status Colors */
  --icu-running: #00e676;
  --icu-running-glow: rgba(0, 230, 118, 0.4);
  --icu-paused: #78909c;
  --icu-warning: #ffc107;
  --icu-warning-glow: rgba(255, 193, 7, 0.4);
  --icu-urgent: #ff9800;
  --icu-urgent-glow: rgba(255, 152, 0, 0.5);
  --icu-critical: #f44336;
  --icu-critical-glow: rgba(244, 67, 54, 0.6);
  --icu-critical-done: #b71c1c;
  
  /* Drug Colors */
  --color-red: #ef5350;
  --color-purple: #ab47bc;
  --color-blue: #42a5f5;
  --color-orange: #ff7043;
  --color-teal: #26a69a;
  --color-green: #66bb6a;
  
  /* Gauge Colors */
  --gauge-bg: #1a1a24;
  --gauge-track: #2a2a3a;
  --gauge-fill: #00e676;
  
  /* UI */
  --icu-radius: 12px;
  --icu-radius-sm: 8px;
  --icu-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  /* Font */
  --icu-font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

/* ============================================
   SCREEN FLASH OVERLAY
   ============================================ */
.icu-screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.15s;
}

.icu-screen-flash.critical {
  background: radial-gradient(ellipse at center, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.1) 100%);
  box-shadow: inset 0 0 100px rgba(244, 67, 54, 0.5);
}

.icu-screen-flash.completed {
  background: radial-gradient(ellipse at center, rgba(183, 28, 28, 0.4) 0%, rgba(183, 28, 28, 0.2) 100%);
  box-shadow: inset 0 0 150px rgba(183, 28, 28, 0.7);
}

/* ============================================
   FULLSCREEN ALERT
   ============================================ */
.icu-fullscreen-alert {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  animation: fs-alert-bg 0.5s infinite;
}

@keyframes fs-alert-bg {
  0%, 100% { background: rgba(183, 28, 28, 0.95); }
  50% { background: rgba(0, 0, 0, 0.95); }
}

.icu-fs-alert-content {
  text-align: center;
  padding: 40px;
}

.icu-fs-alert-icon {
  font-size: 80px;
  animation: fs-icon-pulse 0.3s infinite;
}

@keyframes fs-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.icu-fs-alert-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 8px;
  margin: 20px 0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.icu-fs-alert-drug {
  font-size: 32px;
  font-weight: 700;
  color: var(--icu-critical);
  margin-bottom: 10px;
}

.icu-fs-alert-message {
  font-size: 24px;
  color: #fff;
  margin-bottom: 40px;
  animation: fs-text-blink 0.5s infinite;
}

@keyframes fs-text-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.icu-fs-alert-btn {
  padding: 20px 60px;
  font-size: 24px;
  font-weight: 700;
  background: #fff;
  color: var(--icu-critical-done);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: all 0.2s;
}

.icu-fs-alert-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

/* ============================================
   PATIENT INFO BAR
   ============================================ */
.icu-patient-bar {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, var(--icu-surface) 100%);
  border-bottom: 1px solid var(--icu-border);
  padding: 12px 16px;
}

.icu-patient-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--icu-text-muted);
  font-size: 14px;
}

.icu-patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icu-patient-info.has-alert {
  animation: patient-bar-alert 1s infinite;
}

@keyframes patient-bar-alert {
  0%, 100% { background: transparent; }
  50% { background: rgba(244, 67, 54, 0.1); }
}

.icu-patient-avatar {
  width: 42px;
  height: 42px;
  background: var(--icu-surface-3);
  border: 2px solid var(--icu-running);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icu-running);
  flex-shrink: 0;
}

.icu-patient-avatar svg {
  width: 24px;
  height: 24px;
}

.icu-patient-info.has-alert .icu-patient-avatar {
  border-color: var(--icu-critical);
  color: var(--icu-critical);
  animation: avatar-pulse 0.5s infinite;
}

@keyframes avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-critical-glow); }
  50% { box-shadow: 0 0 20px var(--icu-critical-glow); }
}

.icu-patient-details {
  flex: 1;
  min-width: 0;
}

.icu-patient-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--icu-text);
  margin-bottom: 3px;
}

.icu-patient-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.icu-meta-item {
  font-size: 11px;
  color: var(--icu-text-dim);
}

.icu-meta-item strong {
  color: var(--icu-text-muted);
  font-weight: 600;
}

.icu-patient-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icu-patient-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icu-stat {
  font-size: 12px;
  color: var(--icu-text-dim);
  white-space: nowrap;
}

.icu-stat-value {
  font-weight: 700;
  color: var(--icu-running);
  margin-right: 3px;
}

.icu-stat.alert .icu-stat-value {
  color: var(--icu-critical);
}

.icu-btn-add-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--icu-running) 0%, #00c853 100%);
  border: none;
  border-radius: var(--icu-radius-sm);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.icu-btn-add-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--icu-running-glow);
}

.icu-btn-add-compact svg {
  width: 16px;
  height: 16px;
}

.icu-patient-status {
  text-align: center;
}

.icu-status-indicator {
  padding: 8px 16px;
  background: var(--icu-surface-3);
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius-sm);
}

.icu-status-indicator.active {
  border-color: var(--icu-running);
  background: rgba(0, 230, 118, 0.1);
}

.icu-status-indicator.alert {
  border-color: var(--icu-critical);
  background: rgba(244, 67, 54, 0.15);
  animation: status-alert 0.5s infinite;
}

@keyframes status-alert {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-critical-glow); }
  50% { box-shadow: 0 0 15px var(--icu-critical-glow); }
}

.icu-status-count {
  display: block;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--icu-font-mono);
  color: var(--icu-running);
}

.icu-status-indicator.alert .icu-status-count {
  color: var(--icu-critical);
}

.icu-status-label {
  font-size: 10px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
}

.icu-btn-edit {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius-sm);
  color: var(--icu-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icu-btn-edit:hover {
  background: var(--icu-surface-3);
  border-color: var(--icu-border-light);
}

.icu-btn-edit svg {
  width: 16px;
  height: 16px;
}

.icu-btn-sm {
  padding: 8px 16px;
  background: var(--icu-running);
  border: none;
  border-radius: var(--icu-radius-sm);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   CARD ALERT BAR
   ============================================ */
.icu-card-alert-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icu-card-alert-bar.warning {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  color: var(--icu-warning);
  border-bottom: 2px solid var(--icu-warning);
}

.icu-card-alert-bar.urgent {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.25) 0%, rgba(255, 152, 0, 0.15) 100%);
  color: var(--icu-urgent);
  border-bottom: 2px solid var(--icu-urgent);
  animation: alert-bar-pulse 0.5s infinite;
}

.icu-card-alert-bar.critical {
  background: linear-gradient(90deg, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.2) 100%);
  color: var(--icu-critical);
  border-bottom: 2px solid var(--icu-critical);
  animation: alert-bar-flash 0.3s infinite;
}

.icu-card-alert-bar.critical-done {
  background: linear-gradient(90deg, rgba(183, 28, 28, 0.4) 0%, rgba(183, 28, 28, 0.3) 100%);
  color: #fff;
  border-bottom: 3px solid var(--icu-critical-done);
  animation: alert-bar-flash 0.2s infinite;
}

@keyframes alert-bar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes alert-bar-flash {
  0%, 100% { opacity: 1; background-color: rgba(244, 67, 54, 0.3); }
  50% { opacity: 0.7; background-color: rgba(244, 67, 54, 0.5); }
}

.icu-alert-icon {
  font-size: 16px;
}

.icu-alert-ack {
  padding: 4px 12px;
  background: #fff;
  border: none;
  border-radius: 4px;
  color: var(--icu-critical-done);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
}

/* ============================================
   HEARTBEAT ANIMATION
   ============================================ */
.icu-heartbeat {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: var(--icu-running);
  border-radius: 50%;
  animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--icu-running-glow);
  }
  25% { 
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--icu-running-glow);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--icu-running-glow);
  }
  75% {
    transform: scale(1.15);
    box-shadow: 0 0 8px var(--icu-running-glow);
  }
}

.icu-card.warning .icu-heartbeat {
  background: var(--icu-warning);
  animation-name: heartbeat-warning;
}

@keyframes heartbeat-warning {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-warning-glow); transform: scale(1); }
  50% { box-shadow: 0 0 15px var(--icu-warning-glow); transform: scale(1.3); }
}

.icu-card.urgent .icu-heartbeat {
  background: var(--icu-urgent);
  animation: heartbeat-urgent 0.5s infinite;
}

@keyframes heartbeat-urgent {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-urgent-glow); transform: scale(1); }
  50% { box-shadow: 0 0 20px var(--icu-urgent-glow); transform: scale(1.4); }
}

.icu-card.critical .icu-heartbeat,
.icu-card.critical-done .icu-heartbeat {
  background: var(--icu-critical);
  animation: heartbeat-critical 0.25s infinite;
}

@keyframes heartbeat-critical {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-critical-glow); transform: scale(1); }
  50% { box-shadow: 0 0 25px var(--icu-critical-glow); transform: scale(1.5); }
}

/* ============================================
   CARD STATUS VARIATIONS
   ============================================ */
.icu-card.warning {
  border-color: var(--icu-warning);
  box-shadow: 0 0 20px var(--icu-warning-glow);
}

.icu-card.urgent {
  border-color: var(--icu-urgent);
  box-shadow: 0 0 25px var(--icu-urgent-glow);
  animation: card-urgent-pulse 0.8s infinite;
}

@keyframes card-urgent-pulse {
  0%, 100% { box-shadow: 0 0 25px var(--icu-urgent-glow); }
  50% { box-shadow: 0 0 40px var(--icu-urgent-glow); }
}

.icu-card.critical {
  border-color: var(--icu-critical);
  box-shadow: 0 0 30px var(--icu-critical-glow);
  animation: card-critical-pulse 0.4s infinite;
}

.icu-card.critical-done {
  border-color: var(--icu-critical-done);
  box-shadow: 0 0 40px rgba(183, 28, 28, 0.7);
  animation: card-critical-flash 0.25s infinite;
}

@keyframes card-critical-pulse {
  0%, 100% { box-shadow: 0 0 30px var(--icu-critical-glow); }
  50% { box-shadow: 0 0 50px var(--icu-critical-glow); }
}

@keyframes card-critical-flash {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(183, 28, 28, 0.7);
    border-color: var(--icu-critical-done);
  }
  50% { 
    box-shadow: 0 0 60px rgba(183, 28, 28, 0.9);
    border-color: #ff1744;
  }
}

.icu-card.acknowledged {
  border-color: var(--icu-paused);
  opacity: 0.6;
}

/* Timer colors for alert states */
.icu-timer.warning .icu-timer-value {
  color: var(--icu-warning);
  text-shadow: 0 0 20px var(--icu-warning-glow);
}

.icu-timer.urgent .icu-timer-value {
  color: var(--icu-urgent);
  text-shadow: 0 0 25px var(--icu-urgent-glow);
  animation: timer-urgent 0.5s infinite;
}

@keyframes timer-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.icu-timer.critical .icu-timer-value,
.icu-timer.critical-done .icu-timer-value {
  color: var(--icu-critical);
  text-shadow: 0 0 30px var(--icu-critical-glow);
  animation: timer-critical 0.25s infinite;
}

@keyframes timer-critical {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* Progress bar colors */
.icu-progress-fill.warning {
  background: var(--icu-warning);
  box-shadow: 0 0 10px var(--icu-warning-glow);
}

.icu-progress-fill.urgent {
  background: var(--icu-urgent);
  box-shadow: 0 0 15px var(--icu-urgent-glow);
}

.icu-progress-fill.critical,
.icu-progress-fill.critical-done {
  background: var(--icu-critical);
  box-shadow: 0 0 20px var(--icu-critical-glow);
}

/* ============================================
   FLOATING BADGE
   ============================================ */
.icu-badge {
  position: fixed;
  bottom: 180px;
  right: 8px;
  z-index: 9998;
  display: none !important; /* Hidden - using tools menu instead */
  cursor: pointer;
  transition: all 0.3s ease;
}

.icu-badge-inner {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
  border: 2px solid var(--icu-running);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3), 0 0 0 4px rgba(0, 230, 118, 0.1);
  transition: all 0.3s ease;
}

.icu-badge:hover .icu-badge-inner {
  transform: scale(1.1);
  border-color: var(--icu-running);
  box-shadow: 0 0 20px var(--icu-running-glow);
}

.icu-badge-icon {
  width: 28px;
  height: 28px;
  color: var(--icu-text-dim);
  transition: color 0.3s;
}

.icu-badge.has-active .icu-badge-icon {
  color: var(--icu-running);
  filter: drop-shadow(0 0 4px var(--icu-running-glow));
}

.icu-badge.has-alert .icu-badge-icon {
  color: var(--icu-alert);
  animation: badge-pulse 1s infinite;
}

.icu-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 22px;
  height: 22px;
  background: var(--icu-running);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.icu-badge.has-alert .icu-badge-count {
  background: var(--icu-alert);
  color: #fff;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================
   MODAL
   ============================================ */
.icu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.icu-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.icu-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.icu-modal-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 95vh;
  background: var(--icu-bg);
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius) var(--icu-radius) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--icu-shadow);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.icu-modal.open .icu-modal-container {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .icu-modal {
    align-items: center;
    padding: 20px;
  }
  
  .icu-modal-container {
    max-height: 90vh;
    border-radius: var(--icu-radius);
  }
}

/* ============================================
   HEADER
   ============================================ */
.icu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--icu-surface) 0%, var(--icu-bg) 100%);
  border-bottom: 1px solid var(--icu-border);
}

.icu-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icu-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--icu-running) 0%, #00c853 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icu-logo svg {
  width: 24px;
  height: 24px;
  color: #000;
}

.icu-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--icu-text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.icu-subtitle {
  font-family: var(--icu-font-mono);
  font-size: 13px;
  color: var(--icu-running);
  letter-spacing: 1px;
}

.icu-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icu-btn-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius-sm);
  color: var(--icu-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icu-btn-icon:hover {
  background: var(--icu-surface-2);
  border-color: var(--icu-border-light);
  color: var(--icu-text);
}

.icu-btn-icon svg {
  width: 20px;
  height: 20px;
}

.icu-btn-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--icu-radius-sm);
  color: var(--icu-text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s;
}

.icu-btn-close:hover {
  background: var(--icu-alert);
  color: #fff;
}

/* ============================================
   PATIENT TABS
   ============================================ */
.icu-patient-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: var(--icu-surface);
  border-bottom: 1px solid var(--icu-border);
  overflow-x: auto;
}

.icu-patient-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--icu-radius-sm);
  color: var(--icu-text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.icu-patient-tab:hover {
  background: var(--icu-surface-2);
}

.icu-patient-tab.active {
  background: var(--icu-surface-2);
  border-color: var(--icu-running);
  color: var(--icu-text);
}

.icu-patient-tab.alert {
  border-color: var(--icu-alert);
  animation: tab-alert 1s infinite;
}

@keyframes tab-alert {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-alert-glow); }
  50% { box-shadow: 0 0 0 4px var(--icu-alert-glow); }
}

.icu-tab-bed {
  font-size: 11px;
  color: var(--icu-text-muted);
}

.icu-tab-count {
  min-width: 20px;
  height: 20px;
  background: var(--icu-running);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icu-tab-add {
  border: 1px dashed var(--icu-border);
  color: var(--icu-text-muted);
}

.icu-tab-add:hover {
  border-color: var(--icu-running);
  color: var(--icu-running);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.icu-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.icu-infusions {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .icu-infusions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Empty State */
.icu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.icu-empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  color: var(--icu-text-muted);
  opacity: 0.3;
}

.icu-empty-icon svg {
  width: 100%;
  height: 100%;
}

.icu-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--icu-text-dim);
}

.icu-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--icu-text-muted);
}

/* ============================================
   INFUSION CARD
   ============================================ */
.icu-card {
  background: var(--icu-surface);
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.icu-card.running {
  border-color: var(--icu-running);
  box-shadow: 0 0 20px var(--icu-running-glow), inset 0 1px 0 rgba(0, 230, 118, 0.1);
}

.icu-card.alert {
  border-color: var(--icu-alert);
  box-shadow: 0 0 20px var(--icu-alert-glow);
  animation: card-alert-pulse 1.5s infinite;
}

.icu-card.paused {
  border-color: var(--icu-paused);
  opacity: 0.85;
}

.icu-card.completed {
  border-color: var(--icu-completed);
  opacity: 0.6;
}

@keyframes card-alert-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--icu-alert-glow); }
  50% { box-shadow: 0 0 40px var(--icu-alert-glow); }
}

/* Card Header */
.icu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--icu-surface-2);
  border-bottom: 1px solid var(--icu-border);
}

.icu-drug-badge {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.icu-drug-badge.color-red { background: var(--color-red); }
.icu-drug-badge.color-purple { background: var(--color-purple); }
.icu-drug-badge.color-blue { background: var(--color-blue); }
.icu-drug-badge.color-orange { background: var(--color-orange); }
.icu-drug-badge.color-teal { background: var(--color-teal); }
.icu-drug-badge.color-green { background: var(--color-green); }

.icu-card-controls {
  display: flex;
  gap: 6px;
}

.icu-ctrl-btn {
  width: 32px;
  height: 32px;
  background: var(--icu-surface);
  border: 1px solid var(--icu-border);
  border-radius: 6px;
  color: var(--icu-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icu-ctrl-btn:hover {
  background: var(--icu-surface-3);
  border-color: var(--icu-border-light);
}

.icu-ctrl-btn.play:hover {
  background: var(--icu-running);
  border-color: var(--icu-running);
  color: #000;
}

.icu-ctrl-btn.danger:hover {
  background: var(--icu-alert);
  border-color: var(--icu-alert);
  color: #fff;
}

.icu-ctrl-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

/* Card Body */
.icu-card-body {
  padding: 12px;
}

/* Timer Section */
.icu-timer-section {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--icu-border);
}

/* Timer */
.icu-timer {
  text-align: center;
}

.icu-timer-value {
  font-family: var(--icu-font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--icu-running);
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 0 30px var(--icu-running-glow);
}

.icu-timer.paused .icu-timer-value {
  color: var(--icu-paused);
  text-shadow: 0 0 20px var(--icu-paused-glow);
}

.icu-timer.alert .icu-timer-value {
  color: var(--icu-alert);
  text-shadow: 0 0 30px var(--icu-alert-glow);
  animation: timer-blink 0.5s infinite;
}

.icu-timer.completed .icu-timer-value {
  color: var(--icu-completed);
  text-shadow: none;
}

@keyframes timer-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.icu-timer-label {
  font-size: 10px;
  color: var(--icu-text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icu-elapsed {
  margin-top: 6px;
  font-size: 10px;
  color: var(--icu-text-dim);
}

.icu-elapsed-value {
  font-family: var(--icu-font-mono);
  color: var(--icu-text);
  margin-left: 4px;
}

/* Metrics Grid */
.icu-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.icu-metric-card {
  background: var(--icu-surface-2);
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.icu-metric-card.pump {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, rgba(0, 230, 118, 0.08) 100%);
  border-color: rgba(0, 230, 118, 0.3);
}

.icu-metric-card.volume.critical {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, rgba(255, 82, 82, 0.15) 100%);
  border-color: var(--icu-alert);
  animation: metric-pulse 1s infinite;
}

@keyframes metric-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--icu-alert-glow); }
  50% { box-shadow: 0 0 15px var(--icu-alert-glow); }
}

.icu-gauge-mini {
  position: relative;
  height: 40px;
}

.icu-gauge-mini svg {
  width: 100%;
  height: 100%;
}

.icu-gauge-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.icu-gauge-num {
  font-family: var(--icu-font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--icu-running);
}

.icu-metric-big {
  font-family: var(--icu-font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--icu-text);
}

.icu-metric-label {
  font-size: 10px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Drops Section */
.icu-drops-section {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, rgba(66, 165, 245, 0.1) 100%);
  border: 1px solid rgba(66, 165, 245, 0.3);
  border-radius: var(--icu-radius-sm);
  padding: 8px;
  margin-bottom: 10px;
}

.icu-drops-section.unreliable {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, rgba(255, 171, 0, 0.15) 100%);
  border-color: var(--icu-paused);
}

.icu-drops-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--icu-text);
}

.icu-drops-icon {
  font-size: 14px;
}

.icu-drops-title {
  flex: 1;
}

.icu-drops-warn {
  background: var(--icu-paused);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.icu-drops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.icu-drop-item {
  text-align: center;
  padding: 6px;
  background: var(--icu-surface);
  border-radius: 6px;
}

.icu-drop-item.counter {
  background: linear-gradient(135deg, var(--icu-surface) 0%, rgba(0, 230, 118, 0.1) 100%);
}

.icu-drop-value {
  font-family: var(--icu-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #42a5f5;
}

.icu-drop-item.counter .icu-drop-value {
  color: var(--icu-running);
  font-size: 15px;
}

.icu-drops-section.unreliable .icu-drop-value {
  color: var(--icu-paused);
}

.icu-drop-label {
  font-size: 8px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 3px;
}

.icu-drop-label small {
  font-size: 7px;
  opacity: 0.7;
}

/* Progress Section */
.icu-progress-section {
  margin-bottom: 8px;
}

.icu-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--icu-text-muted);
  margin-bottom: 3px;
}

.icu-arc-bg {
  fill: none;
  stroke: var(--gauge-track);
  stroke-width: 8;
  stroke-linecap: round;
}

.icu-arc-fill {
  fill: none;
  stroke: var(--icu-running);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--icu-running-glow));
  transition: stroke-dasharray 0.5s ease;
}

.icu-gauge-value {
  font-family: var(--icu-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--icu-text);
  margin-top: -30px;
}

.icu-gauge-unit {
  font-size: 10px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
}

.icu-metric-block {
  background: var(--icu-surface-2);
  border-radius: var(--icu-radius-sm);
  padding: 12px 8px;
}

.icu-metric-block.highlight {
  background: linear-gradient(180deg, var(--icu-surface-2) 0%, rgba(0, 230, 118, 0.1) 100%);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.icu-metric-value {
  font-family: var(--icu-font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--icu-text);
}

.icu-metric-unit {
  font-size: 10px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Progress Bar */
.icu-progress {
  margin-bottom: 12px;
}

.icu-progress-bar {
  height: 6px;
  background: var(--gauge-track);
  border-radius: 3px;
  overflow: hidden;
}

.icu-progress-fill {
  height: 100%;
  background: var(--icu-running);
  border-radius: 3px;
  transition: width 1s linear;
  box-shadow: 0 0 8px var(--icu-running-glow);
}

.icu-progress-fill.alert {
  background: var(--icu-alert);
  box-shadow: 0 0 10px var(--icu-alert-glow);
}

.icu-progress-fill.paused {
  background: var(--icu-paused);
  box-shadow: none;
}

.icu-progress-fill.completed {
  background: var(--icu-completed);
  box-shadow: none;
}

.icu-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: var(--icu-text-muted);
}

/* Dose Range */
.icu-dose-range {
  margin-bottom: 12px;
}

.icu-dose-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.icu-dose-zone {
  flex: 1;
}

.icu-dose-zone.low { background: #1565c0; }
.icu-dose-zone.normal { background: #2e7d32; }
.icu-dose-zone.high { background: #ef6c00; }

.icu-dose-marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 14px;
  background: var(--icu-paused);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--icu-paused-glow);
}

.icu-dose-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: var(--icu-text-muted);
}

/* Concentration */
.icu-concentration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: var(--icu-surface-2);
  border-radius: var(--icu-radius-sm);
  font-size: 12px;
}

.icu-conc-label {
  color: var(--icu-text-muted);
}

.icu-conc-value {
  font-family: var(--icu-font-mono);
  font-weight: 600;
  color: var(--icu-text);
}

/* Card Alert */
.icu-card-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 82, 82, 0.15);
  border-top: 1px solid var(--icu-alert);
  color: var(--icu-alert);
  font-size: 12px;
  font-weight: 500;
}

.icu-card-alert svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* ============================================
   FOOTER
   ============================================ */
.icu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--icu-surface);
  border-top: 1px solid var(--icu-border);
}

.icu-footer-stats {
  display: flex;
  gap: 16px;
}

.icu-stat {
  font-size: 13px;
  color: var(--icu-text-dim);
}

.icu-stat-value {
  font-weight: 700;
  color: var(--icu-running);
  margin-right: 4px;
}

.icu-stat.alert .icu-stat-value {
  color: var(--icu-alert);
}

.icu-stat.paused .icu-stat-value {
  color: var(--icu-paused);
}

.icu-btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--icu-running) 0%, #00c853 100%);
  border: none;
  border-radius: var(--icu-radius-sm);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.icu-btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--icu-running-glow);
}

.icu-btn-add span {
  font-size: 18px;
}

/* ============================================
   SETTINGS PANEL
   ============================================ */
.icu-settings-panel {
  position: absolute;
  top: 70px;
  right: 16px;
  width: 280px;
  background: var(--icu-surface-2);
  border: 1px solid var(--icu-border);
  border-radius: var(--icu-radius);
  box-shadow: var(--icu-shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.icu-settings-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.icu-settings-content {
  padding: 16px;
}

.icu-settings-content h3 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--icu-text);
}

.icu-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--icu-text-dim);
}

.icu-setting-row input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  background: var(--icu-surface);
  border: 1px solid var(--icu-border);
  border-radius: 4px;
  color: var(--icu-text);
  text-align: center;
}

.icu-setting-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--icu-running);
}

.icu-settings-content hr {
  border: none;
  border-top: 1px solid var(--icu-border);
  margin: 16px 0;
}

.icu-btn-danger {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--icu-alert);
  border-radius: var(--icu-radius-sm);
  color: var(--icu-alert);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.icu-btn-danger:hover {
  background: var(--icu-alert);
  color: #fff;
}

/* ============================================
   PRINT HIDE
   ============================================ */
@media print {
  .icu-badge,
  .icu-modal {
    display: none !important;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
.icu-main::-webkit-scrollbar {
  width: 6px;
}

.icu-main::-webkit-scrollbar-track {
  background: var(--icu-surface);
}

.icu-main::-webkit-scrollbar-thumb {
  background: var(--icu-border);
  border-radius: 3px;
}

.icu-main::-webkit-scrollbar-thumb:hover {
  background: var(--icu-border-light);
}

/* ============================================
   PREPARATION STRIP
   ============================================ */
.icu-prep-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--icu-surface-2);
  border-radius: var(--icu-radius-sm);
  border: 1px solid var(--icu-border);
}

.icu-prep-item {
  text-align: center;
}

.icu-prep-label {
  display: block;
  font-size: 8px;
  color: var(--icu-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.icu-prep-value {
  font-family: var(--icu-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--icu-text);
}

/* ============================================
   DOSE SECTION
   ============================================ */
.icu-dose-section {
  margin-bottom: 8px;
}

/* ============================================
   PHASE 7.0 — WIDE VIEW & DENSITY TOGGLES
   ============================================ */

/* Wide View Mode */
.icu-modal.wide-view .icu-modal-container {
  max-width: 95vw;
  width: 95vw;
}

.icu-modal.wide-view #icu-infusions {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* Compact Density */
.icu-modal.compact-density .icu-modal-container {
  max-height: 98vh;
}

.icu-modal.compact-density .icu-infusion-card {
  padding: 10px;
  gap: 6px;
}

.icu-modal.compact-density .icu-card-header {
  padding: 6px 10px;
  font-size: 13px;
}

.icu-modal.compact-density .icu-card-body {
  padding: 8px 10px;
  gap: 6px;
}

.icu-modal.compact-density .icu-stat-grid {
  gap: 6px;
}

.icu-modal.compact-density .icu-stat-value {
  font-size: 16px;
}

.icu-modal.compact-density .icu-stat-label {
  font-size: 9px;
}

.icu-modal.compact-density .icu-progress-bar {
  height: 5px;
}

.icu-modal.compact-density .icu-patient-bar {
  padding: 10px 16px;
}

.icu-modal.compact-density .icu-patient-tabs {
  padding: 8px 16px;
}

/* View Controls Panel */
.icu-view-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  background: #1a1a24;
  border-bottom: 1px solid #2a2a3a;
}

.icu-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a0a0b0;
  cursor: pointer;
  user-select: none;
}

.icu-view-controls input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.icu-view-controls-divider {
  width: 1px;
  height: 16px;
  background: #2a2a3a;
}

/* ============================================
   PHASE 7.2.1 — ICU MONITOR CARD DENSITY
   Target: 1366×768 @ 100% zoom
   Desktop only (≥1280px)
   ============================================ */

@media (min-width: 1280px) {
  /* Card Structure Compression */
  .icu-card-header {
    padding: 10px 14px;
  }
  
  .icu-card-body {
    padding: 10px;
  }
  
  /* Timer Section Tightening */
  .icu-timer-section {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .icu-timer-value {
    font-size: 28px;
    letter-spacing: 2px;
  }
  
  .icu-timer-label {
    font-size: 9px;
    margin-top: 2px;
  }
  
  .icu-elapsed {
    margin-top: 4px;
    font-size: 9px;
  }
  
  /* Metrics Grid Compression */
  .icu-metrics-grid {
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .icu-metric-card {
    padding: 6px 5px;
  }
  
  .icu-gauge-mini {
    height: 36px;
  }
  
  .icu-gauge-num {
    font-size: 14px;
  }
  
  .icu-metric-big {
    font-size: 18px;
  }
  
  .icu-metric-label {
    font-size: 9px;
  }
  
  /* Drops Section Compression */
  .icu-drops-section {
    padding: 6px;
    margin-bottom: 8px;
  }
  
  .icu-drops-header {
    gap: 5px;
    margin-bottom: 6px;
    font-size: 10px;
  }
  
  .icu-drops-grid {
    gap: 5px;
  }
  
  .icu-drop-item {
    padding: 5px;
  }
  
  .icu-drop-value {
    font-size: 16px; /* Critical value: preserve ≥16px */
  }
  
  .icu-drop-label {
    font-size: 9px;
  }
  
  /* Progress Section Compression */
  .icu-progress-section {
    margin-bottom: 6px;
  }
  
  .icu-progress-header {
    font-size: 9px;
    margin-bottom: 2px;
  }
  
  .icu-progress {
    margin-bottom: 10px;
  }
  
  .icu-progress-bar {
    height: 5px;
  }
  
  .icu-gauge-value {
    font-size: 20px;
    margin-top: -28px;
  }
  
  .icu-metric-block {
    padding: 10px 7px;
  }
  
  .icu-metric-value {
    font-size: 18px; /* Critical value: preserve ≥16px */
  }
  
  /* Dose Section Compression */
  .icu-dose-range {
    margin-bottom: 10px;
  }
  
  .icu-dose-bar {
    height: 5px;
  }
  
  .icu-dose-labels {
    margin-top: 3px;
    font-size: 9px;
  }
  
  .icu-concentration {
    padding: 6px;
    font-size: 11px;
  }
  
  .icu-conc-value {
    font-size: 12px; /* Body text: preserve ≥12px */
  }
}

/* Fit Screen Enhancement - Internal Scrolling */
@media (min-width: 1280px) and (max-height: 900px) {
  .icu-modal-container {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  
  /* Ultra-compact for laptop screens */
  .icu-modal.compact-density .icu-timer-value {
    font-size: 24px;
  }
  
  .icu-modal.compact-density .icu-metric-card {
    padding: 4px 3px;
  }
  
  .icu-modal.compact-density .icu-gauge-mini {
    height: 32px;
  }
}

/* ============================================
   STATUS CAPSULES (Clock, Date, Shift)
   ============================================ */
.icu-status-capsule {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.icu-status-capsule .icu-clock-time {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.icu-status-capsule .icu-clock-date {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.icu-shift-capsule {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.icu-shift-capsule .icu-shift-label {
  font-size: 8px;
  color: rgba(74, 222, 128, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.icu-shift-capsule .icu-shift-time {
  font-weight: 700;
  font-size: 14px;
  color: #4ade80;
  line-height: 1.2;
  margin-top: 2px;
}

/* Search Warning */
.icu-search-warning {
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 4px;
  color: #fbbf24;
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icu-clear-search {
  padding: 4px 8px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 3px;
  color: #fbbf24;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.icu-clear-search:hover {
  background: rgba(251, 191, 36, 0.3);
}

/* Settings Panel Header */
.icu-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.icu-settings-header h3 {
  margin: 0;
}

.icu-settings-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.icu-settings-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Subtitle Row - Side-by-side capsules */
.icu-subtitle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
