/* =============================================================================
   EMDR AI v2.1 — Stili aggiuntivi TAPPA A
   Componenti: scheda paziente, mappa 10 ricordi, Posto Sicuro, piano, rifugio
   Estende style.css NeuroFlow senza duplicare variabili
   ============================================================================= */

/* ==================== SIDEBAR PATIENT CARD ==================== */
.sb-patient-card {
  margin: var(--s-4);
  padding: var(--s-3);
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet-soft));
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--r-md);
  position: relative;
}

.sb-patient-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
}

.sb-patient-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-weight: 700;
}

.sb-patient-close {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.sb-patient-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.sb-patient-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.sb-patient-meta {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: var(--s-1);
}

/* ==================== SIDEBAR NAV (8 FASI) ==================== */
.sb-section {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--s-3) var(--s-5) var(--s-2);
  margin-top: var(--s-2);
}

.sb-item {
  cursor: pointer;
  position: relative;
}

.sb-item .sb-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: all 0.2s;
}

.sb-item.active .sb-dot {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg-1);
  box-shadow: 0 0 12px var(--cyan-soft);
}

.sb-item:hover:not(.active) .sb-dot {
  background: rgba(0, 217, 255, 0.15);
  color: var(--cyan);
}

.sb-item .sb-dot-action {
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: var(--bg-1);
}

.sb-item .sb-dot-shelter {
  background: linear-gradient(135deg, var(--lime), #4ADE80);
  color: var(--bg-1);
  font-size: 0.65rem;
}

.sb-check {
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-check.completed {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 8px var(--lime-soft);
}

.sb-check.completed::after {
  content: '✓';
  color: var(--bg-1);
  font-size: 0.7rem;
  font-weight: 700;
}

.sb-counter {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

/* ==================== APERTURA (selezione paziente) ==================== */
.apertura-input-row {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.apertura-input-row .input-glass {
  flex: 1;
}

.apertura-hint {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: var(--s-2);
  font-style: italic;
  min-height: 20px;
}

.apertura-hint.hint-new {
  color: var(--lime);
}

.apertura-hint.hint-existing {
  color: var(--cyan);
}

.apertura-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--glass-border);
}

.apertura-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-height: 400px;
  overflow-y: auto;
}

.apertura-empty {
  color: var(--text-faint);
  font-style: italic;
  text-align: center;
  padding: var(--s-4);
}

.apertura-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
}

.apertura-row:hover {
  background: rgba(0, 217, 255, 0.06);
  border-color: var(--cyan);
}

.apertura-row-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  min-width: 80px;
}

.apertura-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apertura-row-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.apertura-row-badges {
  display: flex;
  gap: 4px;
}

.apertura-badge {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apertura-badge--ok {
  background: var(--lime-soft);
  color: var(--lime);
}

.apertura-badge--missing {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
}

/* ==================== FASE HEADER ==================== */
.fase-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--glass-border);
}

.fase-badge {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg-1);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 12px var(--cyan-soft);
}

.fase-badge--P {
  background: linear-gradient(135deg, var(--gold), var(--magenta));
}

.fase-badge--seduta {
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}

.fase-badge--diario {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.fase-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1;
}

.fase-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin-left: auto;
  text-align: right;
  max-width: 350px;
}

/* ==================== CHECKBOX GLASS ==================== */
.checkbox-row {
  margin: var(--s-2) 0;
}

.check-glass {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.check-glass:hover {
  background: rgba(255, 255, 255, 0.03);
}

.check-glass input[type="checkbox"] {
  display: none;
}

.check-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.check-glass input[type="checkbox"]:checked + .check-mark {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-soft);
}

.check-glass input[type="checkbox"]:checked + .check-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-1);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-glass span:last-child {
  font-size: 0.9rem;
  color: var(--text);
}

/* ==================== MAPPA RICORDI ==================== */
.ricordi-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.ricordo-row {
  display: grid;
  grid-template-columns: 32px 1fr 100px 140px 32px;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: all 0.2s;
}

.ricordo-row:hover {
  border-color: var(--glass-border-strong);
}

.ricordo-num {
  width: 28px;
  height: 28px;
  background: var(--violet-soft);
  color: var(--violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.ricordo-evento {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}

.ricordo-evento:focus {
  border-bottom-color: var(--cyan);
}

.ricordo-eta {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 10px;
  text-align: center;
}

.ricordo-eta:focus {
  outline: none;
  border-color: var(--cyan);
}

.ricordo-sud {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.ricordo-sud-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
}

.ricordo-sud-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--magenta);
  cursor: pointer;
  box-shadow: 0 0 8px var(--magenta-soft);
}

.ricordo-sud-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--magenta);
  min-width: 24px;
  text-align: center;
}

.ricordo-del {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid transparent;
  color: var(--risk);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ricordo-del:hover {
  background: var(--risk);
  color: var(--bg-1);
}

.ricordi-empty {
  color: var(--text-faint);
  font-style: italic;
  text-align: center;
  padding: var(--s-4);
}

/* ==================== POSTO SICURO ==================== */
.card--posto-sicuro {
  background: linear-gradient(135deg, rgba(125, 255, 177, 0.06), rgba(0, 217, 255, 0.04));
  border-color: rgba(125, 255, 177, 0.25);
}

.ps-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.ps-mode-card {
  cursor: pointer;
  position: relative;
}

.ps-mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.ps-mode-content {
  display: block;
  padding: var(--s-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: all 0.2s;
}

.ps-mode-content strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.ps-mode-content small {
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.4;
}

.ps-mode-card input[type="radio"]:checked + .ps-mode-content {
  border-color: var(--lime);
  background: var(--lime-soft);
  box-shadow: 0 0 16px var(--lime-soft);
}

.ps-mode-card input[type="radio"]:checked + .ps-mode-content strong {
  color: var(--lime);
}

.ps-content {
  animation: psFade 0.4s ease-out;
}

@keyframes psFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ps-procedure {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background: rgba(125, 255, 177, 0.05);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.ps-procedure-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--lime);
  margin-bottom: var(--s-2);
  font-weight: 600;
}

.ps-steps {
  list-style: decimal;
  padding-left: var(--s-5);
  color: var(--text-soft);
}

.ps-steps li {
  margin: 4px 0;
  font-size: 0.85rem;
}

/* ==================== PIANO TERAPEUTICO ==================== */
.tema-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
  backdrop-filter: blur(16px);
}

.tema-header {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--glass-border);
}

.tema-name {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  flex: 1;
  outline: none;
  border-bottom: 1px dashed transparent;
  padding: 4px 0;
  transition: border-color 0.2s;
}

.tema-name:focus {
  border-bottom-color: var(--gold);
}

.tema-del {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid transparent;
  color: var(--risk);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tema-del:hover {
  background: var(--risk);
  color: var(--bg-1);
}

.tema-targets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-3);
}

.target-col {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-md);
  padding: var(--s-3);
}

.target-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
}

.target-col-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.target-col-passato .target-col-label { color: var(--violet); }
.target-col-presente .target-col-label { color: var(--cyan); }
.target-col-futuro .target-col-label { color: var(--lime); }

.target-add {
  background: transparent;
  border: 1px dashed var(--glass-border);
  color: var(--text-faint);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.target-add:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.target-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-height: 60px;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
}

.target-text {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
}

.target-del {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.85rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.target-del:hover {
  color: var(--risk);
}

.target-empty {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-style: italic;
  text-align: center;
  padding: var(--s-2);
}

.temi-empty {
  text-align: center;
  padding: var(--s-6);
  color: var(--text-faint);
  font-style: italic;
}

/* ==================== RIFUGIO ==================== */
.card--rifugio {
  max-width: 700px;
  background: linear-gradient(135deg, rgba(125, 255, 177, 0.08), rgba(0, 217, 255, 0.04));
  border-color: rgba(125, 255, 177, 0.3);
  padding: var(--s-7) var(--s-6);
}

.rifugio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.rifugio-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px var(--lime-soft));
  animation: rifugioFloat 4s ease-in-out infinite;
}

@keyframes rifugioFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.rifugio-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--lime);
  text-align: center;
}

.rifugio-sub {
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: var(--s-4);
}

.rifugio-block {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-2) 0;
}

.rifugio-block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 4px;
  font-weight: 700;
}

.rifugio-block-content {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rifugio-parolachiave {
  background: linear-gradient(135deg, var(--lime-soft), var(--cyan-soft));
  border: 1px solid var(--lime);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
  margin: var(--s-3) 0;
}

.rifugio-parolachiave-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--s-2);
}

.rifugio-parolachiave-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.05em;
}

.rifugio-empty {
  text-align: center;
  padding: var(--s-5);
  color: var(--text-faint);
  font-style: italic;
}

/* ==================== UTILITIES ==================== */
.btn--small {
  padding: var(--s-2) var(--s-3);
  font-size: 0.8rem;
}

.action-row--inline {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  justify-content: flex-start;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: var(--s-2);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .ricordo-row {
    grid-template-columns: 28px 1fr 32px;
    grid-template-rows: auto auto;
  }
  .ricordo-eta, .ricordo-sud {
    grid-column: 2 / 3;
  }
  .tema-targets {
    grid-template-columns: 1fr;
  }
  .ps-mode-selector {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   TAPPA B — Nuovi componenti per Fase 3 + sedute
   ============================================================================= */

/* ==================== CODICE SESSIONE (modalità remoto) ==================== */
.session-code-display {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
  color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet-soft));
  border: 1px solid var(--cyan);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin: var(--s-3) 0;
  text-shadow: 0 0 24px var(--cyan-soft);
}

.session-status {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9rem;
  color: var(--text-soft);
  justify-content: center;
}

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

.status-waiting {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: statusPulse 1.5s ease-in-out infinite;
}

.status-connected {
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-soft);
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==================== DIMENSIONE TEMPORALE PILLS ==================== */
.dim-pills {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.dim-pill {
  cursor: pointer;
  flex: 1;
  position: relative;
}

.dim-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.dim-pill span {
  display: block;
  padding: var(--s-3) var(--s-4);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.2s;
}

.dim-pill input[type="radio"]:checked + span {
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet-soft));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-soft);
}

/* ==================== TARGET ACTIVE CARD (in Fase 3+) ==================== */
.target-active-card {
  background: linear-gradient(135deg, rgba(255, 214, 110, 0.08), rgba(255, 77, 203, 0.04));
  border: 1px solid rgba(255, 214, 110, 0.3);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}

.target-active-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.target-active-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-2);
  line-height: 1.3;
}

.target-active-meta {
  display: flex;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.target-active-meta span::before {
  content: '·';
  margin-right: var(--s-2);
  color: var(--gold);
}

.target-active-meta span:first-child::before {
  display: none;
}

/* ==================== CARD PROMPT (frase tra virgolette per il terapeuta) ==================== */
.card-prompt {
  display: block;
  margin-top: var(--s-2);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.4;
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

/* ==================== SCALE SLIDERS (SUD/VOC) ==================== */
.scale-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-3) 0 var(--s-2);
}

.scale-slider {
  flex: 1;
  height: 6px;
  background: linear-gradient(90deg,
    rgba(125, 255, 177, 0.3) 0%,
    rgba(255, 214, 110, 0.3) 50%,
    rgba(255, 77, 203, 0.3) 100%);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.scale-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg-1);
  cursor: grab;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.scale-slider--sud::-webkit-slider-thumb {
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta-soft);
}

.scale-slider--voc::-webkit-slider-thumb {
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-soft);
}

.scale-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
  line-height: 1;
}

.scale-display--sud {
  color: var(--magenta);
}

.scale-display--voc {
  color: var(--lime);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: var(--s-2);
  padding: 0 var(--s-2);
}

/* ═══════════════════════════════════════════════════════════════
   BLS MODULE — TAPPA B1.5 (Studio locale: timer + audio binaurale)
   ═══════════════════════════════════════════════════════════════ */

.card--bls {
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet-soft));
  border-color: rgba(0, 217, 255, 0.25);
}

.card--bls-inset {
  margin-top: var(--s-3);
  background: linear-gradient(135deg, var(--lime-soft), var(--cyan-soft));
  border-color: rgba(125, 255, 177, 0.25);
}

.bls-controls {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-3);
}

.bls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.bls-label {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 500;
}

.bls-duration {
  width: 90px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.bls-toggle {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.bls-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bls-toggle-track {
  display: block;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  position: relative;
  transition: all 0.2s;
}

.bls-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-faint);
  border-radius: 50%;
  transition: all 0.2s;
}

.bls-toggle input:checked + .bls-toggle-track {
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.bls-toggle input:checked + .bls-toggle-track .bls-toggle-thumb {
  left: 24px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-soft);
}

.bls-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  gap: var(--s-3);
}

.bls-timer {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px var(--cyan-soft);
}

.bls-timer.bls-timer--running {
  color: var(--lime);
  text-shadow: 0 0 14px var(--lime-soft);
}

.bls-timer.bls-timer--paused {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-soft);
}

.bls-counter {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.bls-counter span {
  color: var(--magenta);
  font-weight: 600;
  font-family: var(--font-mono);
}

.bls-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.bls-btn {
  flex: 1;
  min-width: 120px;
}

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

@keyframes bls-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-soft); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

.bls-timer--running {
  animation: bls-pulse 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
  padding: 0 var(--s-3);
}

