/* ═══════════════════════════════════════════════ */
/*  PHASE SETTINGS TOGGLE CARD                     */
/* ═══════════════════════════════════════════════ */

.phase-settings__empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 0;
}

.phase-settings__desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.phase-settings__loading {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.phase-settings__error {
  color: var(--danger);
  font-size: 0.82rem;
}

.phase-settings__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.phase-settings__checkbox {
  flex-shrink: 0;
}

.phase-settings__label {
  font-size: 0.82rem;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.phase-settings__label--disabled {
  cursor: default;
}

.phase-settings__label--enabled {
  cursor: pointer;
}

.phase-settings__id {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.phase-settings__badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.phase-settings__badge--always-on {
  background: var(--text-muted);
  color: var(--bg-base);
}

.phase-settings__badge--user-gate {
  background: var(--accent);
  color: var(--accent-text);
}

.phase-settings__row--pending {
  background: var(--warning-dim);
  border-radius: var(--radius-sm);
}

.phase-settings__row--pending .phase-settings__label {
  font-style: italic;
}

.phase-settings__pending-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  margin-left: 4px;
  flex-shrink: 0;
}

.phase-settings__save-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.phase-settings__save-btn {
  padding: 5px 14px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.phase-settings__save-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.phase-settings__save-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.phase-settings__discard-btn {
  padding: 5px 14px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.phase-settings__discard-btn:hover:not(:disabled) {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.phase-settings__discard-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ═══════════════════════════════════════════════ */
/*  SIMPLE PLANNING TOGGLE                         */
/* ═══════════════════════════════════════════════ */

.simple-planning__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.simple-planning__label {
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
}

.simple-planning__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════ */
/*  ADVANCE MODES DROPDOWN SECTION                 */
/* ═══════════════════════════════════════════════ */

.advance-modes__section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 18px;
  margin-bottom: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.advance-modes__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.advance-modes__row--pending {
  background: var(--warning-dim);
  border-radius: var(--radius-sm);
}

.advance-modes__row--pending .advance-modes__label {
  font-style: italic;
}

.advance-modes__label {
  font-size: 0.82rem;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.advance-modes__select {
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  cursor: pointer;
  transition: var(--transition);
}

.advance-modes__select:hover {
  border-color: var(--border-active);
}

.advance-modes__select:focus {
  outline: none;
  border-color: var(--accent);
}
