/* ─────────────────────────────────────────────────────────────────
   People input : libellé au-dessus + une rangée par personne avec ×,
   bouton + à la fin pour en ajouter une autre.
   ───────────────────────────────────────────────────────────────── */
.people-field {
  display: grid;
  gap: 2px;
}
.people-field-label {
  color: var(--fg-soft);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.people-rows {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.people-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ui-control-height);
  gap: var(--ui-frame-gap);
  align-items: stretch;
  min-width: 0;
}
.people-row .entity-autocomplete-wrap {
  min-width: 0;
}
.people-row input[type="text"] {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: rgba(var(--surface-rgb), 0.92);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.78rem;
  padding: var(--ui-control-pad-y) var(--ui-control-pad-x);
  line-height: 1.22;
  min-height: var(--ui-control-height);
  outline: none;
}
.people-row input[type="text"]:focus {
  border-color: var(--fg);
}
.people-field .people-row-remove,
.people-field .people-row-add {
  flex: 0 0 var(--ui-control-height);
  width: var(--ui-control-height);
  min-width: var(--ui-control-height);
  max-width: var(--ui-control-height);
  height: var(--ui-control-height);
  min-height: var(--ui-control-height);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0;
}
.people-field .people-row-add {
  align-self: start;
  border-style: dashed;
  background: var(--area-btn-bg);
  border-color: var(--area-btn-border);
  color: var(--fg);
}
.people-field .people-row-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.people-field .people-row-add:hover {
  border-color: var(--fg-soft);
  color: var(--fg);
}

/* ─────────────────────────────────────────────────────────────────
   Image tiles : médias actuels compacts, actions visibles.
   ───────────────────────────────────────────────────────────────── */
.image-tiles,
.current-media {
  border: 1px solid var(--area-frame);
  background: rgba(var(--surface-rgb), 0.72);
  padding: var(--ui-frame-pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: var(--ui-frame-gap);
}
.current-media-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(var(--surface-rgb), 0.62);
  padding: var(--ui-band-pad);
}
.current-media-head span {
  color: var(--fg-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.current-media-head small {
  color: var(--fg-soft);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}
.image-tile {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--area-frame) 46%, var(--border-soft));
  background:
    linear-gradient(135deg, rgba(var(--surface-rgb), 0.94) 0%, rgba(var(--surface-rgb), 0.72) 100%);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.image-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: auto;
  border: 0;
}
.image-tile.is-main {
  border-color: var(--area-submit-border);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--area-submit-border) 34%, transparent);
}
.image-tile.image-tile-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--fg-rgb), 0.04);
}
.image-tile-doc-label {
  color: var(--fg-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.image-tile-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  border: 1px solid var(--area-submit-border);
  background: rgba(var(--surface-rgb), 0.86);
  color: var(--fg-soft);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 4px;
  pointer-events: none;
}
.image-tile-actions {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.image-tile-action {
  position: relative;
  width: var(--ui-button-height);
  height: var(--ui-button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: rgba(var(--surface-rgb), 0.96);
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0;
}
.image-tile-action:hover {
  border-color: var(--fg-soft);
  color: var(--fg);
}
.image-tile-action input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.image-tile-action.image-tile-radio:has(input:checked) {
  background: var(--area-submit-bg);
  border-color: var(--area-submit-border);
  color: var(--fg);
}
.image-tile-action.image-tile-cb:has(input:checked) {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}


