/* Console v3 — page « Avatars » (web/console-v3-avatars.js). Classes préfixées .v3a-.
   S'appuie sur .card, .avatar-grid, .avatar-visual, .progress-track et .button de console.css. */

.v3a-grid { align-items: start; gap: 20px; margin-top: 24px; }
.v3a-grid .v3a-card { width: 100%; max-width: 300px; justify-self: start; }
.v3a-card { position: relative; display: flex; flex-direction: column; overflow: visible; padding: 0; }
/* Sous la barre du haut et l'en-tête mobile (z-index 20 de console.css) : une carte ouverte ne les recouvre jamais. */
.v3a-card.is-open { z-index: 5; }
.v3a-card.is-busy .v3a-rows, .v3a-card.is-busy .v3a-name { opacity: .6; }
.v3a-readonly { margin-top: 16px; }

/* Visuel : image du look, silhouette, étapes de fabrication ou échec. */
.v3a-visual { position: relative; overflow: hidden; aspect-ratio: 1.15 / 1; border-radius: 14px 14px 0 0; background: #ddd8d1; }
.v3a-pill { max-width: calc(100% - 24px); }
/* Fond de l'avatar : l'affiche détourée posée sur le fond retenu. Les deux tiennent dans un carré cadré
   exactement comme la vidéo de survol (carrée, object-fit cover, centre 24 %) : top 24 % de la vignette
   moins 24 % du carré. Le fond couvre le carré, centré, comme le serveur l'incruste dans la vidéo. */
.v3a-visual .v3a-stack { position: absolute; top: 24%; left: 0; width: 100%; aspect-ratio: 1 / 1; transform: translateY(-24%); }
.v3a-visual .v3a-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.v3a-visual .v3a-stack .v3a-cutout { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.v3a-visual { cursor: pointer; }
.v3a-visual .v3a-bg-pill { top: auto; bottom: 12px; }

/* Carte « Créer un avatar » : un grand bouton (silhouette + « + »), de la taille d'une carte.
   Le gabarit invisible .v3a-sizer lui donne la hauteur d'une carte d'avatar. */
.v3a-empty:not(.is-draft) { border: 1.5px dashed var(--line-strong, #cfc9bf); background: transparent; box-shadow: none; }
.v3a-sizer { visibility: hidden; pointer-events: none; }
.v3a-create-tile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; padding: 24px;
  border: 0; border-radius: inherit; color: var(--muted); background: none; font: inherit; cursor: pointer; transition: color .15s, background-color .15s; }
.v3a-create-tile:hover:not([disabled]), .v3a-create-tile[aria-expanded="true"] { color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); }
.v3a-create-tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent, #254EBC) 45%, transparent); outline-offset: 2px; }
.v3a-create-tile[disabled] { cursor: not-allowed; opacity: .55; }
.v3a-create-art { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: var(--surface-muted, #F8F7F4); }
.v3a-create-art > svg { width: 76px; height: 76px; fill: currentColor; opacity: .4; }
.v3a-create-plus { position: absolute; right: 0; bottom: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; background: var(--accent, #254EBC); box-shadow: 0 0 0 4px var(--surface, #fff); }
.v3a-create-plus .v3a-icon { width: 22px; height: 22px; stroke-width: 2.4; }
.v3a-create-label { color: var(--ink); font-size: 16px; font-weight: 700; }

/* Carte brouillon : l'avatar à créer, voix à choisir avant « Créer l'avatar ». */
.v3a-empty.is-draft { border-color: var(--accent, #254EBC); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #254EBC) 16%, transparent); }
.v3a-draft-visual { display: grid; place-items: center; color: var(--muted); background: var(--surface-muted, #F8F7F4); }
.v3a-draft-visual > svg { width: 44%; height: auto; fill: currentColor; opacity: .3; }
.v3a-draft-visual .status-pill { position: absolute; z-index: 2; top: 12px; left: 12px; }
.v3a-row.is-required .v3a-row-value { border-color: var(--accent, #254EBC); color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); }
.v3a-row.is-required .v3a-row-value .v3a-chevron { color: var(--accent, #254EBC); }
.v3a-visual-build, .v3a-visual-failed { display: grid; aspect-ratio: auto; background: var(--surface-muted, #F8F7F4); }
.v3a-visual-build::before, .v3a-visual-failed::before { content: ""; grid-area: 1 / 1; aspect-ratio: 1.15 / 1; }
.v3a-build, .v3a-failed { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; }
.v3a-build p, .v3a-failed p { margin: 0; }
.v3a-build-kicker { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.v3a-build-step { color: var(--ink); font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v3a-build-label { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.v3a-build-bar { margin: 6px 0 2px; background: color-mix(in srgb, var(--line, #e4e0d8) 70%, transparent); }
.v3a-build-bar > span { transition: width .6s ease; }
.v3a-build-meta { color: var(--muted); font-size: 13px; line-height: 1.4; }
.v3a-build-late { color: var(--muted); font-size: 13px; line-height: 1.4; font-style: italic; }
.v3a-failed-title { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.35; }
.v3a-failed-hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.v3a-failed .button { align-self: flex-start; margin-top: 8px; }

/* Corps de carte. */
.v3a-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.v3a-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.v3a-name { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 1.25; }
.v3a-name-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3a-name-empty { color: var(--muted); font-weight: 600; }
.v3a-name-button { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; margin: 0 0 0 -8px; padding: 4px 8px;
  border: 0; border-radius: 8px; color: inherit; background: none; font: inherit; text-align: left; cursor: text; }
.v3a-name-button .v3a-icon { flex: none; width: 16px; height: 16px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.v3a-name-button:hover, .v3a-name-button:focus-visible { background: var(--surface-muted, #F8F7F4); }
.v3a-name-button:hover .v3a-icon, .v3a-name-button:focus-visible .v3a-icon { opacity: 1; }
.v3a-name-input { width: 100%; min-height: 40px; padding: 6px 10px; font-size: 17px; font-weight: 600; }
.v3a-more-anchor, .v3a-row { position: relative; }
.v3a-more { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: none; cursor: pointer; }
.v3a-more:hover, .v3a-more[aria-expanded="true"] { color: var(--ink); background: var(--surface-muted, #F8F7F4); }

.v3a-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v3a-more .v3a-icon { fill: currentColor; stroke: none; }
/* Pliage : repliée, la carte montre la vignette et le nom ; le chevron ouvre les réglages. */
.v3a-fold .v3a-icon { fill: none; stroke: currentColor; transition: transform .18s ease; }
.v3a-fold[aria-expanded="true"] .v3a-icon { transform: rotate(180deg); }
.v3a-fold-body { display: flex; flex-direction: column; gap: 12px; }
.v3a-fold-body[hidden] { display: none; }
.v3a-card.is-folded .v3a-body, .v3a-sizer .v3a-body { padding-bottom: 10px; }
/* Bulle du renommage : nom vu par les visiteurs (SDK), nom du look à part. */
.v3a-name-note { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 0; padding: 9px 11px; border-radius: 10px; color: var(--ink);
  background: var(--accent-soft, #E8EEFB); font-size: 13px; line-height: 1.45; animation: v3a-note-in .16s ease-out; }
.v3a-name-note .v3a-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent, #254EBC); }
.v3a-name-note strong { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; }
@keyframes v3a-note-in { from { opacity: 0; transform: translateY(-3px); } }
.v3a-confirm-detail { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-muted, #F8F7F4); font-weight: 600; }
.v3a-settings-confirm { margin: 0 24px 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: var(--accent-soft, #E8EEFB); font-size: 14px; line-height: 1.45; }
.v3a-play { fill: currentColor; stroke: none; width: 16px; height: 16px; }

.v3a-try { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; }
.v3a-try[disabled] { cursor: not-allowed; opacity: .55; }

/* Les trois lignes : Personnalité, Cerveau, Voix. */
.v3a-rows { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.v3a-row { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); align-items: center; gap: 8px; }
.v3a-row-label { color: var(--muted); font-size: 13px; }
.v3a-row-value { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; min-height: 40px; padding: 6px 8px 6px 10px;
  border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: none; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.v3a-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3a-row-value .v3a-chevron { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.v3a-row-value:hover:not([disabled]) { border-color: var(--line); background: var(--surface-muted, #F8F7F4); }
.v3a-row-value[aria-expanded="true"] { border-color: var(--line); background: var(--surface-muted, #F8F7F4); }
.v3a-row-value[aria-expanded="true"] .v3a-chevron { transform: rotate(180deg); }
.v3a-row-value[disabled] { color: var(--muted); cursor: default; }
.v3a-row.is-muted .v3a-row-value { font-weight: 500; }
.v3a-row.is-ghost .v3a-row-label { color: var(--muted); }
.v3a-row.is-ghost .v3a-row-value { border-color: var(--line, #e4e0d8); background: var(--surface-muted, #F8F7F4); opacity: .6; }
.v3a-hint, .v3a-issue { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.v3a-issue { color: var(--ink); padding: 8px 10px; border-radius: 9px; background: var(--surface-muted, #F8F7F4); }

/* Listes déroulantes. */
.v3a-pop { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; left: 0; min-width: 230px; max-height: min(60vh, 340px); overflow-y: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); box-shadow: 0 14px 40px rgba(20, 20, 30, .16); overscroll-behavior: contain; }
.v3a-row .v3a-pop { left: auto; width: max(100%, 250px); }
.v3a-more-anchor .v3a-pop { left: auto; width: 230px; }
/* Carte « Nouvel avatar » : la liste tient dans la carte, sans la déborder ni l'agrandir. */
.v3a-empty > .v3a-pop { top: 8px; right: 8px; left: 8px; min-width: 0; max-height: calc(100% - 16px); }
.v3a-pop-title { margin: 6px 10px 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.v3a-item-row { display: flex; align-items: center; gap: 4px; }
.v3a-item-row > .v3a-item { flex: 1; min-width: 0; }
.v3a-listen { display: grid; flex: none; place-items: center; width: 34px; height: 34px; margin-right: 2px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  color: var(--accent, #254EBC); background: var(--surface, #fff); cursor: pointer; transition: background-color .15s, border-color .15s; }
.v3a-listen:hover { border-color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); }
.v3a-listen .v3a-play { width: 14px; height: 14px; margin-left: 2px; }
.v3a-listen.is-loading { cursor: progress; }
.v3a-listen.is-loading .v3a-play { animation: v3a-pulse 1s ease-in-out infinite; }
@keyframes v3a-pulse { 50% { opacity: .3; } }
.v3a-pop-heading { margin: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.v3a-pop-empty { margin: 8px 10px; color: var(--muted); font-size: 14px; }
.v3a-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.v3a-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 10px; border: 0; border-radius: 8px;
  color: var(--ink); background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.v3a-item:hover, .v3a-item:focus { outline: none; background: var(--surface-muted, #F8F7F4); }
.v3a-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent, #254EBC); }
.v3a-item.is-checked .v3a-item-label { font-weight: 700; }
.v3a-item.is-off .v3a-item-label, .v3a-item.is-disabled .v3a-item-label { color: var(--muted); }
.v3a-item.is-disabled { cursor: not-allowed; }
.v3a-item.is-danger { color: var(--danger, #B42318); }
.v3a-item-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.v3a-item-label { overflow: hidden; text-overflow: ellipsis; }
.v3a-item-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.v3a-item-sub .v3a-lock { width: 14px; height: 14px; flex: none; }
.v3a-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; color: var(--muted); background: var(--surface-muted, #F8F7F4);
  font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.v3a-check { display: grid; flex: none; place-items: center; width: 20px; color: var(--accent, #254EBC); }
.v3a-check .v3a-icon { width: 18px; height: 18px; }
.v3a-thumb { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 9px;
  color: rgba(255, 255, 255, .8); background: #ddd8d1; font-size: 15px; font-weight: 700; }
.v3a-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.v3a-thumb-plus { color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); }
.v3a-thumb-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 20, 30, .45); }
.v3a-item.is-disabled .v3a-thumb img { filter: grayscale(1); opacity: .7; }
.v3a-thumb-wide { width: 64px; height: 36px; border-radius: 6px; }
.v3a-thumb-wide img { object-position: center; }
.v3a-thumb-wide > .v3a-icon { width: 20px; height: 20px; color: var(--muted); }
.v3a-swatch { border: 1px solid var(--line); }

/* Fenêtre « Fond et réglages ». */
.v3a-settings { display: grid; gap: 16px; }
.v3a-modes { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.v3a-mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.v3a-mode input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent, #254EBC); }
.v3a-mode.is-selected { border-color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); }
.v3a-mode.is-locked { background: var(--surface-muted, #F8F7F4); }
.v3a-mode.is-locked input { opacity: .45; }
.v3a-mode-text { display: grid; gap: 4px; }
.v3a-mode-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.v3a-mode-text strong .v3a-lock { width: 16px; height: 16px; }
.v3a-mode-text > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.v3a-mode:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #254EBC) 30%, transparent); }
.v3a-lock-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.v3a-lock-note[hidden] { display: none; }
.v3a-lock-note p { margin: 0; font-weight: 600; }
.v3a-mode-panel { display: grid; gap: 14px; }
.v3a-summary { padding: 12px 14px; border-radius: 12px; background: var(--surface-muted, #F8F7F4); }
.v3a-summary-title { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.v3a-summary dl { display: grid; gap: 6px; margin: 0; }
.v3a-summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.v3a-summary dt { color: var(--muted); }
.v3a-summary dd { margin: 0; font-weight: 600; text-align: right; }
.v3a-field { display: grid; gap: 6px; }
.v3a-field label { font-size: 14px; font-weight: 600; }
.v3a-field .field-hint { margin: 0; }
.v3a-background { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.v3a-settings-modes { display: grid; gap: 16px; }
.v3a-bg-section { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.v3a-bg-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.v3a-bg-anchor { position: relative; }
.v3a-bg-anchor .v3a-pop { right: 0; left: 0; max-height: min(60vh, 380px); }
.v3a-bg-trigger { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: var(--surface, #fff); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.v3a-bg-trigger:hover:not([disabled]), .v3a-bg-trigger[aria-expanded="true"] { border-color: var(--accent, #254EBC); }
.v3a-bg-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent, #254EBC) 45%, transparent); outline-offset: 2px; }
.v3a-bg-trigger[disabled] { cursor: default; opacity: .75; }
.v3a-bg-trigger > .v3a-icon { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.v3a-bg-value { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v3a-bg-color { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.v3a-bg-color input { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.v3a-bg-locked p { display: inline-flex; align-items: center; gap: 6px; }
.v3a-bg-locked .v3a-lock { width: 16px; height: 16px; flex: none; }
.v3a-bg-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.v3a-formats { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.v3a-formats legend { padding: 0; margin-bottom: 10px; }
.v3a-player-format .v3a-formats legend { margin-bottom: 6px; }
/* Une seule ligne quel que soit le format choisi (Johann 19/11) : chaque colonne prend la place
   de son libellé (« Automatique » n'est plus coupé), le choix ne change pas la graisse pour que
   les boutons ne bougent pas. */
.v3a-format-options { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.v3a-format { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; justify-content: center; min-width: 0; padding-inline: 10px; white-space: nowrap; }
.v3a-format > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .v3a-format-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .v3a-format { flex-direction: column; gap: 5px; padding: 8px 2px; border-radius: 12px; font-size: 13px; }
}
.v3a-format input { position: absolute; opacity: 0; pointer-events: none; }
.v3a-format:has(input:checked) { border-color: var(--accent, #254EBC); background: var(--accent-soft, #E8EEFB); color: var(--accent, #254EBC); }
.v3a-format:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #254EBC) 30%, transparent); }
.v3a-format:has(input:disabled) { cursor: default; opacity: .6; }
/* Petit dessin du format : 16:9, carré, vertical ; Automatique en pointillés. */
.v3a-format-shape { flex: none; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 3px; }
.v3a-format-shape[data-shape="landscape"] { width: 24px; height: 13.5px; margin-block: 3.25px; }
.v3a-format-shape[data-shape="portrait"] { width: 11.25px; height: 20px; }
.v3a-format-shape[data-shape="auto"] { width: 22px; height: 16px; margin-block: 2px; border-style: dashed; }
/* Section « Lecteur » : réglages communs du look (format, cadrage, intensité, qualité, aperçu). */
.v3a-player-format .v3a-formats legend { color: var(--ink); font-size: 14px; font-weight: 600; }
.v3a-player-format { display: grid; gap: 8px; }
.v3a-player-fields { display: grid; gap: 14px; }
.v3a-gain { width: 100%; accent-color: var(--accent, #254EBC); }
.v3a-gain-value { margin-left: 6px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.v3a-player-foot { margin: 0; font-size: 14px; }
.v3a-modes-section { display: grid; gap: 12px; }
.v3a-bg-error { margin: 0; color: var(--danger, #B42318); font-size: 14px; font-weight: 600; }
.v3a-bg-error[hidden] { display: none; }
.v3a-link { padding: 0; border: 0; color: var(--accent, #254EBC); background: none; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.v3a-projects { margin: 10px 0 0; padding-left: 20px; }
.v3a-projects li { margin: 4px 0; font-weight: 600; }
.button.v3a-danger { border-color: var(--danger, #B42318); background: var(--danger, #B42318); }

/* Un réglage à un seul endroit (interrupteur avatars.single.source) : origine de chaque valeur,
   renvoi de voix, sites de l'avatar, carte Voix. Couleurs de la maquette validée le 27/11 :
   « Personnalisé » en ambre, « Hérité du look » / « Réglage MeshLite » en vert. */
.v3a-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.v3a-source { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.v3a-source.is-custom { color: var(--warning, #a36100); background: var(--warning-soft, #fff5dc); }
.v3a-source.is-look, .v3a-source.is-meshlite { color: var(--green, #237a50); background: var(--green-soft, #eaf7f0); }
.v3a-back-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 14px; }
.v3a-same { color: var(--muted); font-size: 13px; }
.v3a-who { margin: 0; padding: 9px 12px; border-radius: 10px; color: var(--ink); background: var(--accent-soft, #EEF2FA); font-size: 14px; line-height: 1.45; }
.v3a-platform-alert, .v3a-reroute-box { padding: 10px 12px; border-radius: 10px; color: var(--ink); background: var(--warning-soft, #fff5dc); font-size: 14px; line-height: 1.45; }
.v3a-platform-alert p, .v3a-reroute-box p { margin: 0; }
.v3a-platform-alert p + p, .v3a-reroute-box p + p { margin-top: 6px; }
.v3a-platform-alert strong, .v3a-reroute-box strong { color: var(--warning, #a36100); }
.v3a-reroute-box { margin-top: 4px; }
.v3a-gain-row { display: flex; align-items: center; gap: 10px; }
.v3a-gain-row .v3a-gain { flex: 1; min-width: 0; }
/* Carte : renvoi de voix et ligne des sites (carte dépliée). */
.v3a-reroute { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 9px; color: var(--ink); background: var(--warning-soft, #fff5dc); font-size: 13px; line-height: 1.45; }
.v3a-reroute::before { content: "↪"; flex: none; color: var(--warning, #a36100); font-weight: 700; }
.v3a-sites-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.v3a-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green, #237a50); }
.v3a-dot.is-warn { background: var(--warning, #a36100); }
/* Carte Voix et liste des sites. */
.v3a-svcs, .v3a-sites { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.v3a-svc, .v3a-site { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.v3a-svc:last-child, .v3a-site:last-child { border-bottom: 0; }
.v3a-svc-text, .v3a-site-text { display: flex; flex: 1 1 200px; flex-direction: column; gap: 2px; min-width: 0; }
.v3a-svc-name, .v3a-site-host { color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.v3a-svc-sub, .v3a-site-sub, .v3a-svc-state { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.v3a-site-note { color: var(--warning, #a36100); font-size: 13px; line-height: 1.45; }
.v3a-svc.is-off .v3a-svc-name { color: var(--muted); }
.v3a-svc.is-chosen .v3a-svc-name strong { color: var(--green, #237a50); }
.v3a-svc .v3a-check { color: var(--green, #237a50); }
.v3a-site .v3a-dot { align-self: flex-start; margin-top: 7px; }

/* Petits écrans et écrans tactiles. */
@media (max-width: 600px) {
  .v3a-grid { gap: 16px; }
  .v3a-grid .v3a-card { max-width: none; }
  .v3a-visual:not(.v3a-visual-build):not(.v3a-visual-failed) { aspect-ratio: 1.5 / 1; }
  .v3a-visual-build::before, .v3a-visual-failed::before { aspect-ratio: 1.5 / 1; }
  .v3a-name-button .v3a-icon { opacity: 1; }
  .v3a-row .v3a-pop, .v3a-more-anchor .v3a-pop { right: 0; left: 0; width: auto; min-width: 0; }
  .v3a-more-anchor { position: static; }
  .v3a-head { position: relative; }
}
@media (pointer: coarse) {
  .v3a-row-value, .v3a-item, .v3a-name-button { min-height: 44px; }
  .v3a-more, .v3a-listen { width: 44px; height: 44px; }
  .v3a-name-button .v3a-icon { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .v3a-name-note { animation: none; }
  .v3a-build-bar > span, .v3a-fold .v3a-icon, .v3a-row-value .v3a-chevron, .v3a-name-button .v3a-icon, .v3a-create-tile, .v3a-listen, .v3a-bg-trigger { transition: none; }
  .v3a-listen.is-loading .v3a-play { animation: none; opacity: .5; }
}
