/* ===== Panneaux ===== */
.panel {
  margin-top: 28px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

/* ===== Formulaires ===== */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.form .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--mute);
  font-size: 13px;
}

input,
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ===== Liste des cartes du streamer ===== */
.tcard .actions {
  padding: 0 14px 14px;
}

.link-public {
  color: var(--accent);
}

.image-size {
  display: block;
  color: var(--mute);
  font-size: 12px;
  font-weight: 400;
}

.image-drop {
  position: relative;
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--mute);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.image-drop.dragover,
.image-drop:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.image-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-drop > span {
  pointer-events: none;
}

.image-browse {
  color: var(--accent);
  text-decoration: underline;
}

.card-preview #card-preview {
  width: min(220px, 100%);
  margin-top: 10px;
}
