/* Champs et panneaux partagés — index sidebar, paramètres, mail */

.panel {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.panel-head h2 {
  margin: 0;
}

.btn-link {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  line-height: 1;
}

.btn-link:hover {
  color: var(--teal);
  background: var(--teal-dim);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.field > span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.field-row span {
  flex: 1;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
  height: 4px;
}

.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.field output {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
}

.select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.select:focus {
  outline: none;
  border-color: var(--teal);
}

.select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-card {
  position: relative;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.profile-card:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.profile-card.active {
  border-color: rgba(45, 212, 191, 0.5);
  background: var(--teal-dim);
}

.profile-card.active.violet {
  border-color: rgba(167, 139, 250, 0.5);
  background: var(--violet-dim);
}

.profile-card.active.amber {
  border-color: rgba(251, 191, 36, 0.5);
  background: var(--amber-dim);
}

.profile-card.offline {
  opacity: 0.55;
}

.profile-card .name {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-card .meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.status-dot.online {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.status-dot.offline {
  background: #f87171;
}

#models-panel.offline {
  opacity: 0.55;
  pointer-events: none;
}
