/* ==================================== */
/* GoScores - Score Display Styles      */
/* ==================================== */

/* ==================================== */
/* SCORE CONTAINER                      */
/* ==================================== */
.score-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ==================================== */
/* SCORE HEADER                         */
/* ==================================== */
.score-header {
  position: sticky;
  top: -24px;  /* Compensate for parent padding */
  z-index: 10;
  background: rgba(249, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: -24px -24px 0 -24px;
  padding: 16px 24px;
}

.score-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--border-light);
}

/* Single row layout: title + badge + favorite button */
.score-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 36px;  /* Match button height for alignment */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-pill);
  background: rgba(217, 119, 87, 0.12);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.score-category-badge svg {
  width: 12px;
  height: 12px;
}

.score-header-spacer {
  flex: 1;
}

.score-info-btn,
.score-favorite-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.score-info-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.08);
}

.score-info-btn svg {
  width: 18px;
  height: 18px;
}

.score-favorite-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.score-favorite-btn.is-favorite {
  border-color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.1);
  color: var(--accent-primary);
}

.score-favorite-btn.is-favorite svg {
  fill: var(--accent-primary);
}

.score-favorite-btn svg {
  width: 18px;
  height: 18px;
}

/* ==================================== */
/* SCORE GRID (Form + Result)           */
/* ==================================== */
.score-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* ==================================== */
/* SCORE FORM CARD                      */
/* ==================================== */
.score-form-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.score-form-card-bar {
  height: 4px;
  background: var(--accent-primary);
}

.score-form-content {
  padding: 20px;
}

/* ==================================== */
/* SCORE PARAMETERS                     */
/* ==================================== */
.score-param {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.score-param:last-child {
  border-bottom: none;
}

.score-param-checkbox {
  flex-shrink: 0;
  margin-top: 2px;
}

.score-param-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.score-param-content {
  flex: 1;
  min-width: 0;
}

.score-param-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 2px;
}

.score-param-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.score-param-points {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.1);
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}

/* Select type parameter */
.score-param-select {
  width: 100%;
  margin-top: 8px;
}

.score-param-select select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.score-param-select select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

/* Number input type parameter */
.score-param-number {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.score-param-number input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.score-param-number input[type="number"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

.score-param-unit {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Weeks+Days input (SA+J format) */
.score-param-weeks-days {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.score-param-weeks-days .weeks-input,
.score-param-weeks-days .days-input {
  padding: 8px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.score-param-weeks-days .weeks-input {
  width: 60px;
}

.score-param-weeks-days .days-input {
  width: 50px;
}

.score-param-weeks-days .weeks-input:focus,
.score-param-weeks-days .days-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

.weeks-days-separator {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.weeks-days-decimal {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Radio type parameter */
.score-param-radio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.score-param-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.score-param-radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.score-param-radio-label {
  font-size: 13px;
  color: var(--text-primary);
}

.score-param-radio-points {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Buttons type parameter (pill/chip style) */
.score-param-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.score-param-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.score-param-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.05);
}

.score-param-btn.selected {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.score-param-btn.selected:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: white;
}

/* Buttons stacked type parameter (vertical layout) */
.score-param-buttons-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

/* Toggle type parameter */
.score-param-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ==================================== */
/* SCORE SIDEBAR (Right column)         */
/* ==================================== */
.score-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 69px;  /* Header bottom (45px) + grid margin (24px) */
}

/* ==================================== */
/* SCORE INFO CARD                      */
/* ==================================== */
.score-info-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 16px;
}

.score-info-card[hidden] {
  display: none;
}

.score-info-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ==================================== */
/* SCORE RESULT CARD                    */
/* ==================================== */
.score-result-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

/* Bandeau d'alerte clinique critique (patient-safety), affiché EN HAUT de la
   carte de résultat, au-dessus de la barre de couleur et du score. */
.score-result-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fee2e2;
  border-bottom: 3px solid var(--accent-danger, #dc2626);
  color: #7f1d1d;
}

.score-result-alert-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent-danger, #dc2626);
}

.score-result-alert-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.score-result-bar {
  height: 4px;
  background: var(--border-medium);
  transition: background var(--transition-normal);
}

.score-result-bar.level-low {
  background: var(--accent-success);
}

.score-result-bar.level-intermediate {
  background: #eab308;
}

.score-result-bar.level-high {
  background: #f97316;
}

.score-result-bar.level-critical {
  background: var(--accent-danger);
}

.score-result-content {
  padding: 20px;
  text-align: center;
}

.score-result-value {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.score-result-max {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.score-result-interpretation {
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
}

.score-result-interpretation.level-low {
  background: rgba(93, 138, 102, 0.1);
  border: 1px solid rgba(93, 138, 102, 0.3);
}

.score-result-interpretation.level-intermediate {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.score-result-interpretation.level-high {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.score-result-interpretation.level-critical {
  background: rgba(196, 92, 92, 0.1);
  border: 1px solid rgba(196, 92, 92, 0.3);
}

.score-result-level {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.score-result-interpretation.level-low .score-result-level {
  color: var(--accent-success);
}

.score-result-interpretation.level-intermediate .score-result-level {
  color: #ca8a04;
}

.score-result-interpretation.level-high .score-result-level {
  color: #ea580c;
}

.score-result-interpretation.level-critical .score-result-level {
  color: var(--accent-danger);
}

.score-result-probability {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.score-result-recommendation {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Result actions */
.score-result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.score-result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.score-result-btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
}

.score-result-btn-primary:hover {
  background: var(--accent-primary-hover);
}

.score-result-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.score-result-btn-secondary:hover {
  background: var(--bg-sidebar-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.score-result-btn svg {
  width: 16px;
  height: 16px;
}

/* ==================================== */
/* SCORE ACTIONS CARD                   */
/* ==================================== */
.score-actions-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.score-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

/* La ligne « Guide clinique » peut être un vrai <a href> (SEO-07) :
   neutraliser le style de lien pour conserver l'apparence de la rangée. */
a.score-action-row {
  text-decoration: none;
  color: inherit;
}

.score-action-row:last-child {
  border-bottom: none;
}

.score-action-row:hover {
  background: var(--bg-sidebar-hover);
}

.score-action-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-action-row-icon svg {
  width: 18px;
  height: 18px;
}

.score-action-row-icon.guide {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.score-action-row-icon.share {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.score-action-row-content {
  flex: 1;
  min-width: 0;
}

.score-action-row-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.score-action-row-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.score-action-row-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.score-action-row-chevron svg {
  width: 16px;
  height: 16px;
}

/* ==================================== */
/* SHARE MODAL                          */
/* ==================================== */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  background: var(--bg-canvas);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 360px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.share-modal-overlay.active .share-modal {
  transform: translateY(0);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.share-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.share-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.share-modal-close:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.share-modal-close svg {
  width: 20px;
  height: 20px;
}

.share-modal-body {
  padding: 8px 0;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.share-option:hover {
  background: var(--bg-sidebar-hover);
}

.share-option-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-option-icon svg {
  width: 20px;
  height: 20px;
}

.share-option-icon.pdf {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.share-option-icon.email {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.share-option-icon.copy {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.share-option-icon.link {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.share-option-content {
  flex: 1;
  min-width: 0;
}

.share-option-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.share-option-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================================== */
/* FORMAT SELECTOR                      */
/* ==================================== */
.share-format-selector {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.share-format-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-format-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.share-format-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* ==================================== */
/* EMAIL MODAL                          */
/* ==================================== */
.share-modal-email {
  max-width: 420px;
}

.share-email-body {
  padding: 20px;
}

.share-email-input-group {
  margin-bottom: 16px;
}

.share-email-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-email-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.share-email-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

.share-email-input.error {
  border-color: var(--accent-danger);
}

.share-email-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-danger);
}

.share-email-preview {
  padding: 12px;
  background: var(--bg-sidebar-hover);
  border-radius: var(--border-radius-md);
}

.share-email-preview-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.share-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

.share-modal-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-modal-btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
}

.share-modal-btn-primary:hover:not(:disabled) {
  background: var(--accent-primary-hover);
}

.share-modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.share-modal-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.share-modal-btn-secondary:hover {
  background: var(--bg-sidebar-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==================================== */
/* COPY TOAST                           */
/* ==================================== */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg-canvas);
  padding: 12px 20px;
  border-radius: var(--border-radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1001;
}

.copy-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==================================== */
/* RESPONSIVE                           */
/* ==================================== */
@media (max-width: 900px) {
  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-sidebar {
    position: static;
    order: -1;
  }

  .score-info-card {
    display: none;
  }

  .score-result-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .score-result-value {
    font-size: 40px;
    margin-bottom: 0;
  }

  .score-result-max {
    margin-bottom: 0;
  }

  .score-result-interpretation {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .score-header {
    margin: -16px -16px 0 -16px;
    padding: 12px 16px;
    top: -16px;
  }

  .score-sidebar {
    top: 69px;  /* Header bottom (61-16=45) + grid margin (24) */
  }
}

@media (max-width: 480px) {
  .score-header {
    margin: -12px -12px 0 -12px;
    padding: 12px;
    top: -12px;
  }

  .score-header-row {
    gap: 8px;
  }

  .score-title {
    font-size: 16px;
  }

  .score-category-badge {
    display: none;  /* Hide badge on very small screens */
  }

  .score-form-content {
    padding: 16px;
  }

  .score-result-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================================== */
/* INFO MODAL                           */
/* ==================================== */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 20px;
}

.info-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.info-modal {
  background: var(--bg-canvas);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.info-modal-overlay.active .info-modal {
  transform: translateY(0);
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-sidebar);
}

.info-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-modal-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: var(--border-radius-sm);
}

.info-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.info-modal-close:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.info-modal-close svg {
  width: 18px;
  height: 18px;
}

.info-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.info-modal-section {
  margin-bottom: 20px;
}

.info-modal-section:last-child {
  margin-bottom: 0;
}

.info-modal-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-modal-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.info-modal-section-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

.info-modal-section-content p {
  margin: 0 0 8px 0;
}

.info-modal-section-content p:last-child {
  margin-bottom: 0;
}

.info-modal-references {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-modal-references li {
  position: relative;
  padding: 10px 12px 10px 20px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-sm);
  margin-bottom: 6px;
  border-left: 3px solid var(--accent-primary);
}

.info-modal-references li:last-child {
  margin-bottom: 0;
}

/* Info modal responsive */
@media (max-width: 600px) {
  .info-modal-overlay {
    padding: 12px;
  }

  .info-modal {
    max-height: 90vh;
  }

  .info-modal-header {
    padding: 16px 20px;
  }

  .info-modal-title {
    font-size: 15px;
  }

  .info-modal-body {
    padding: 16px 20px;
  }
}

/* ==================================== */
/* CALCULATOR SPECIFIC STYLES           */
/* ==================================== */

/* Date input styling */
.score-param-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.score-param-date input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-md);
  background: var(--bg-input);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  min-width: 150px;
}

.score-param-date input[type="date"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

/* Measurement list (β-hCG) */
.measurement-list-container {
  margin-top: 12px;
}

.measurement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.measurement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.measurement-item-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 20px;
}

.measurement-date {
  flex: 1;
}

.measurement-date input[type="date"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.measurement-date input[type="date"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(217, 119, 87, 0.15);
}

.measurement-value {
  width: 100px;
}

.measurement-value input[type="number"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  text-align: right;
}

.measurement-value input[type="number"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(217, 119, 87, 0.15);
}

.measurement-unit {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 40px;
}

.measurement-delete-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.measurement-delete-btn:hover {
  background: rgba(196, 92, 92, 0.1);
  color: var(--accent-danger);
}

.measurement-delete-btn svg {
  width: 16px;
  height: 16px;
}

/* Add button */
.score-param-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--border-radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.score-param-add-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.05);
}

.score-param-add-btn svg {
  width: 16px;
  height: 16px;
}

/* Empty result state */
.score-result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.score-result-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--border-medium);
}

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

.score-result-empty-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Calculator result details */
.calculator-result {
  text-align: left;
}

/* Override score-result-value for calculator results */
.score-result-value.calculator-result {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.calculator-result-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.calculator-result-primary {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.calculator-result-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.calculator-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.calculator-details-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
}

.calculator-details-label {
  color: var(--text-secondary);
  flex: 1;
  padding-right: 12px;
}

.calculator-details-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.calculator-details-separator {
  margin: 12px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

/* Calendar sections (gestational calendar) */
.calculator-calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.calculator-calendar-section {
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.calculator-calendar-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calculator-calendar-section-title svg {
  width: 16px;
  height: 16px;
}

.calculator-calendar-section .calculator-details-row {
  padding: 4px 0;
}

.calculator-calendar-section .calculator-details-row:last-child {
  border-bottom: none;
}

/* Static table (pelvimetry) */
.calculator-static-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.calculator-static-table th,
.calculator-static-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.calculator-static-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-sidebar);
}

.calculator-static-table td {
  color: var(--text-primary);
}

.calculator-static-table tr:last-child td {
  border-bottom: none;
}

.calculator-static-table .norm-value {
  font-weight: 600;
  color: var(--accent-success);
}

.calculator-static-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(109, 169, 255, 0.1);
  border-radius: var(--border-radius-md);
  border-left: 3px solid #6DA9FF;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Info level for static displays */
.score-result-interpretation.level-info {
  background: rgba(109, 169, 255, 0.1);
  border: 1px solid rgba(109, 169, 255, 0.3);
}

.score-result-interpretation.level-info .score-result-level {
  color: #6DA9FF;
}

/* Tabs for calculators with multiple methods (intergrowth) */
.calculator-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
}

.calculator-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.calculator-tab:hover {
  color: var(--text-primary);
}

.calculator-tab.active {
  background: var(--bg-canvas);
  color: var(--accent-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Conditional fields */
.score-param[data-conditional] {
  transition: opacity var(--transition-fast), max-height var(--transition-normal);
  overflow: hidden;
}

.score-param[data-conditional].hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  border: none;
}

/* Score sections */
.score-section-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.score-section-header:first-child {
  margin-top: 0;
}

.score-section-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Grid layout for number inputs in sections */
.score-section-content.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.score-section-content.section-grid .score-param {
  border-bottom: none;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  padding: 12px;
}

.score-section-content.section-grid .score-param-number {
  margin-top: 4px;
}

.score-section-content.section-grid .score-param-number input {
  width: 100%;
}

/* Compact toggle layout - 2 columns on wider screens */
.score-section-content.section-toggles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.score-section-content.section-toggles .score-param {
  border-bottom: none;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
}

/* Mixed section with select and number inputs */
.score-section-content.section-mixed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.score-section-content.section-mixed .score-param {
  border-bottom: none;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  padding: 12px;
}

.score-section-content.section-mixed .score-param.full-width {
  grid-column: 1 / -1;
}

/* Row layout - items side by side regardless of type */
.score-section-content.section-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.score-section-content.section-row .score-param {
  border-bottom: none;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  padding: 12px;
  flex-direction: column;
  align-items: stretch;
}

.score-section-content.section-row .score-param-toggle {
  order: -1;
  margin-bottom: 8px;
}

.score-section-content.section-row .score-param-number {
  margin-top: 4px;
}

.score-section-content.section-row .score-param-number input {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .score-section-content.section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-section-content.section-toggles,
  .score-section-content.section-mixed,
  .score-section-content.section-row {
    grid-template-columns: 1fr;
  }

  .score-section-content.section-toggles .score-param:last-child,
  .score-section-content.section-mixed .score-param:last-child,
  .score-section-content.section-row .score-param:last-child {
    border-bottom: none;
  }
}

@media (max-width: 350px) {
  .score-section-content.section-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================== */
/* RADIO IMAGES (Bristol-style)         */
/* ==================================== */
.radio-images-param {
  flex-direction: column;
  border-bottom: none;
  padding: 0;
}

.radio-images-param .score-param-content {
  width: 100%;
}

.radio-images-param .score-param-label {
  padding: 12px 0;
}

.score-param-radio-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.score-param-radio-image-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-sidebar);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.score-param-radio-image-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-sidebar-hover);
}

.score-param-radio-image-option.selected {
  border-color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.08);
}

.score-param-radio-image-option input[type="radio"] {
  display: none;
}

.radio-image-container {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.radio-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.radio-image-text {
  flex: 1;
  min-width: 0;
}

.radio-image-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.radio-image-description {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Selected state text emphasis */
.score-param-radio-image-option.selected .radio-image-label {
  color: var(--accent-primary);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .score-param-radio-image-option {
    padding: 10px 12px;
    gap: 12px;
  }

  .radio-image-container {
    width: 50px;
    height: 50px;
  }

  .radio-image-label {
    font-size: 13px;
  }

  .radio-image-description {
    font-size: 11px;
  }
}

/* Calculator responsive */
@media (max-width: 600px) {
  .measurement-item {
    flex-wrap: wrap;
  }

  .measurement-item-number {
    display: none;
  }

  .measurement-date {
    flex: 1;
    min-width: 120px;
  }

  .measurement-value {
    width: 80px;
  }

  .calculator-result-primary {
    font-size: 28px;
  }

  .score-result-value.calculator-result {
    font-size: 20px;
  }

  .calculator-tabs {
    flex-direction: column;
  }
}

/* ==================================== */
/* COUNTER PARAMETER                    */
/* ==================================== */
.counter-param {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.counter-param .score-param-content {
  flex: 1;
  min-width: 150px;
}

.score-param-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.counter-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(217, 119, 87, 0.08);
}

.counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.counter-decrement {
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  border-right: none;
}

.counter-increment {
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  border-left: none;
}

.counter-value {
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-input);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-points {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}

/* Counter responsive */
@media (max-width: 480px) {
  .counter-param {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .score-param-counter {
    justify-content: flex-end;
  }
}

/* ==================================== */
/* ALGORITHM RESULT (FGR/RCIU)          */
/* ==================================== */

.algorithm-result-ga {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.algorithm-ga-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.algorithm-result-window {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.algorithm-result-action {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
}

.algorithm-result-action.level-critical {
  background: #ef4444;
}

.algorithm-result-action.level-warning {
  background: #f59e0b;
}

.algorithm-result-action.level-normal {
  background: #10b981;
}

.algorithm-result-recommendation {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--border-radius-md);
  border-left: 3px solid var(--accent-primary);
}

.algorithm-result-criteria {
  margin-bottom: 16px;
}

.algorithm-criteria-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.algorithm-criteria-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.algorithm-criteria-list li {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.algorithm-result-surveillance {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.algorithm-surveillance-title {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.algorithm-surveillance-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.algorithm-surveillance-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.algorithm-result-notes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.algorithm-note-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.algorithm-note-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.4;
}

.algorithm-note-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================================== */
/* THÈME SOMBRE — spécifique GoScores    */
/* (fusionné depuis l'ancien dark-theme.css local pour éviter une 2e requête,
   perf-F4 ; complète le dark-theme.css partagé) */
/* ==================================== */

[data-theme="dark"] .score-form-card,
[data-theme="dark"] .score-result-card {
  background: var(--bg-canvas);
  border-color: var(--border-light);
}

[data-theme="dark"] .score-param {
  border-color: var(--border-light);
}

[data-theme="dark"] .score-param-points {
  background: rgba(217, 119, 87, 0.2);
}

[data-theme="dark"] .score-category-badge {
  background: rgba(217, 119, 87, 0.2);
}

[data-theme="dark"] .category-accordion {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-light);
}

[data-theme="dark"] .category-content {
  border-color: var(--border-light);
}

[data-theme="dark"] .score-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .score-item.active {
  background: rgba(217, 119, 87, 0.15);
}

/* Bandeau d'alerte critique en thème sombre (patient-safety, contraste maintenu) */
[data-theme="dark"] .score-result-alert {
  background: rgba(196, 92, 92, 0.22);
  border-bottom-color: #f87171;
  color: #fecaca;
}

[data-theme="dark"] .score-result-alert-icon {
  color: #f87171;
}

/* Result levels in dark mode - maintain WCAG AA contrast */
[data-theme="dark"] .score-result-interpretation.level-low {
  background: rgba(93, 138, 102, 0.15);
  border-color: rgba(93, 138, 102, 0.4);
}

[data-theme="dark"] .score-result-interpretation.level-intermediate {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
}

[data-theme="dark"] .score-result-interpretation.level-high {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
}

[data-theme="dark"] .score-result-interpretation.level-critical {
  background: rgba(196, 92, 92, 0.15);
  border-color: rgba(196, 92, 92, 0.4);
}

[data-theme="dark"] .score-result-interpretation.level-low .score-result-level {
  color: #4ade80;
}

[data-theme="dark"] .score-result-interpretation.level-intermediate .score-result-level {
  color: #fbbf24;
}

[data-theme="dark"] .score-result-interpretation.level-high .score-result-level {
  color: #fb923c;
}

[data-theme="dark"] .score-result-interpretation.level-critical .score-result-level {
  color: #f87171;
}

/* Search input */
[data-theme="dark"] .search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

[data-theme="dark"] .search-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Toggle switch */
[data-theme="dark"] .toggle-slider {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .toggle-slider::before {
  background: var(--bg-main);
}

/* Score param inputs */
[data-theme="dark"] .score-param-select select,
[data-theme="dark"] .score-param-number input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}
