/* V5 · PAGE RÉGLAGES — modèle « Réglages » (fenêtre de réglages du système) : colonne de catégories à gauche (recherche en
   capsule, lignes à symbole dans une tuile), une catégorie à la fois à droite, en groupes de lignes (patron partagé :
   css/v5/herite-patrons.css). La logique reste dans js/pc-ui.js et les scripts de chaque réglage ; rien n'est déplacé. */

#view-settings .st-layout{ display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 0; max-width: none; margin: 0; align-items: start; }
#view-settings .st-nav{
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 1px; box-sizing: border-box; height: calc(100vh - var(--v5-barre-h)); overflow-y: auto; margin: 0; padding: 10px;
  background: var(--v5-fond); box-shadow: inset calc(-1 * var(--v5-trait-fort)) 0 0 var(--v5-separateur); scrollbar-width: none;
}
/* recherche d'un réglage : champ de recherche en capsule */
#view-settings .st-cherche{
  display: flex; align-items: center; gap: 5px; flex: none; box-sizing: border-box; height: var(--v5-ctrl-l); margin: 0 0 8px; padding: 0 8px; border: 0; border-radius: var(--v5-r-capsule);
  background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-bord-champ); color: var(--v5-texte-3);
}
#view-settings .st-cherche:focus-within{ outline: var(--v5-focus-l) solid var(--v5-focus); }
#view-settings .st-cherche svg{ width: 14px; height: 14px; flex: none; }
#view-settings .st-cherche input{ flex: 1; min-width: 0; width: auto; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; font-size: var(--v5-t-13); }
#view-settings .st-nav .st-group{ margin: 0; padding: 12px 6px 4px; font-size: var(--v5-t-11); font-weight: var(--v5-g-gras); line-height: 14px; letter-spacing: normal; text-transform: none; color: var(--v5-texte-3); }
#view-settings .st-nav .st-group:first-of-type{ padding-top: 2px; }
#view-settings .st-nav button{
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 100%; height: 30px; min-height: 0; margin: 0; padding: 0 6px; border: 0; border-radius: var(--v5-r-sel);
  background: none; text-align: left; font: var(--v5-g-normal) var(--v5-t-13)/16px var(--v5-police); color: var(--v5-texte); cursor: default;
}
#view-settings .st-nav button:hover{ background: var(--v5-survol); }
#view-settings .st-nav button.active{ background: var(--v5-actif-nav); font-weight: var(--v5-g-moyen); }
/* symbole dans une tuile (« Forms / Rows - Leading / Icon Background ») : 20×20, r5,5, graphite */
#view-settings .st-nav .st-ic{ display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: var(--v5-r-case); background: var(--v5-tuile); color: var(--v5-sur-tuile); }
#view-settings .st-nav .st-ic svg{ width: 13px; height: 13px; stroke-width: 2.1; color: inherit; }
/* teintes du système, comme les tuiles des Réglages Système (posées par js/v5/symboles.js) */
#view-settings .st-nav .st-ic[data-teinte="bleu"]{ background: var(--v5-sys-bleu); }
#view-settings .st-nav .st-ic[data-teinte="indigo"]{ background: var(--v5-sys-indigo); }
#view-settings .st-nav .st-ic[data-teinte="violet"]{ background: var(--v5-sys-violet); }
#view-settings .st-nav .st-ic[data-teinte="rose"]{ background: var(--v5-sys-rose); }
#view-settings .st-nav .st-ic[data-teinte="orange"]{ background: var(--v5-sys-orange); }
#view-settings .st-nav .st-ic[data-teinte="jaune"]{ background: var(--v5-sys-jaune); }
#view-settings .st-nav .st-ic[data-teinte="vert"]{ background: var(--v5-sys-vert); }
#view-settings .st-nav .st-ic[data-teinte="sarcelle"]{ background: var(--v5-sys-sarcelle); }
#view-settings .st-nav button.active svg{ color: inherit; }
/* ---- 10/10, demande de Lucas : colonne des catégories façon Vercel (plus de tuiles de couleur, trop « iOS »).
   Une liste de texte sobre : petit symbole au trait, gris ; la catégorie ouverte est en texte plein sur un fond discret ;
   aucun effet au survol ; recherche en rectangle arrondi. Les règles de teinte ci-dessus restent pour mémoire, neutralisées ici. */
#view-settings .st-nav{ padding: 12px 10px; gap: 2px; }
#view-settings .st-cherche{ border-radius: var(--v5-r-ctrl); margin-bottom: 10px; }
#view-settings .st-nav .st-group{ padding: 16px 8px 6px; font-weight: var(--v5-g-moyen); color: var(--v5-texte-3); }
#view-settings .st-nav button{ gap: 9px; height: 32px; padding: 0 8px; border-radius: var(--v5-r-sel); color: var(--v5-texte-2); }   /* 02/11 : comme la barre latérale (ligne choisie r10), plus de capsule ici */
#view-settings .st-nav button:hover{ background: var(--v5-survol); }
#view-settings .st-nav button.active{ background: var(--v5-rempli-2); color: var(--v5-texte); font-weight: var(--v5-g-moyen); }
#view-settings .st-nav .st-ic, #view-settings .st-nav .st-ic[data-teinte]{ width: 16px; height: 16px; border-radius: 0; background: none; color: var(--v5-texte-3); }
#view-settings .st-nav .st-ic svg{ width: 16px; height: 16px; stroke-width: 1.7; }
#view-settings .st-nav button.active .st-ic, #view-settings .st-nav button.active .st-ic[data-teinte]{ color: var(--v5-texte); }

#view-settings .st-body{ min-width: 0; min-height: 0; padding: 22px 40px 60px; border: 0; }
/* 25/10 (audit, P2) : réglages alignés à gauche dans une colonne de 720 px, comme une page Notion (plus centrés dans le vide) */
#view-settings .st-body > section{ max-width: 720px; margin: 0; }
/* une catégorie qui porte un tableau (comptes Vinted, relance) prend la place qu'il lui faut ; fenêtre étroite : le tableau défile de côté */
#view-settings .st-body > section:has(.rel-table){ max-width: 820px; }
html.v5 #view-settings .rel-table{ overflow-x: auto; }
html.v5 #view-settings .cpt-ligne{ grid-template-columns: 24px minmax(140px, 1.6fr) minmax(96px, 1fr) 70px 110px 70px 40px; min-width: 620px;   /* 17/10 : colonne Univers retirée */ box-sizing: border-box; }
html.v5 .cpt-univers{ overflow: hidden; }
html.v5 .cpt-univers .uni-resume{ display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-settings .st-body > section > .status-line{ margin: 0 12px 8px; }
#view-settings .st-body .empty{ padding: 16px 12px; text-align: left; }
#view-settings .st-body .card{ margin: 0 0 20px; padding: 4px 12px; }

/* ================================================================== 11/10, demande de Lucas : refonte des sous-onglets « IA et intégrations »
   Rédaction des annonces — deux blocs lisibles : le niveau de détail des images sur toute la largeur (plus de carte sombre
   étroite), puis les instructions dans un vrai éditeur (chasse fixe, graisse normale, haut), actions en pied à droite.
   Assistant Claude — deux étapes en deux encadrés égaux, numéro dans une pastille, l'adresse dans un champ avec son bouton
   « Copier » sur la même ligne ; les exemples en liste à filets. Jetons seuls, aucune couleur en dur. */
html.v5 #view-settings .conso{ max-width: none; padding: 12px 14px; border: 0; border-radius: var(--v5-r-sel); background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); }
html.v5 #view-settings .conso-tete{ margin: 0 0 8px; font-size: var(--v5-t-13); }
html.v5 #view-settings :is(.conso-lbl, .conso-bornes, .conso-notes){ color: var(--v5-texte-2); }
html.v5 #view-settings :is(.conso-bornes, .conso-notes){ font-size: var(--v5-t-12); }
html.v5 #view-settings .conso-piste{ height: 20px; border-radius: var(--v5-r-ctrl); background: var(--v5-rempli-2); }
html.v5 #view-settings .conso-mode{ margin-top: 12px; padding-top: 12px; box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
html.v5 #view-settings .conso-garde{ display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--v5-t-12); color: var(--v5-texte-2); }

html.v5 #vt-prompt-textarea{ display: block; width: 100%; box-sizing: border-box; min-height: 340px; padding: 12px 14px; border: 0; border-radius: var(--v5-r-sel); background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); font: var(--v5-g-normal) var(--v5-t-12)/19px var(--v5-police-mono); color: var(--v5-texte); resize: vertical; tab-size: 2; }
html.v5 #vt-prompt-textarea:focus{ box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-texte-3); outline: none; }
html.v5 [data-vt-set-body="ia"] .st-row-pied{ display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
html.v5 [data-vt-set-body="ia"] .st-row-pied .status-line{ margin-right: auto; }

html.v5 #view-settings#view-settings .asi-carte{ margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 .asi-colonnes{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html.v5 .asi-bloc{ display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; align-content: start; margin: 0; padding: 14px; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); }
html.v5 .asi-num{ grid-column: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--v5-rempli-2); color: var(--v5-texte-2); font-size: var(--v5-t-12); font-weight: var(--v5-g-fort); }
html.v5 .asi-titre{ grid-column: 2; align-self: center; font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); line-height: 22px; color: var(--v5-texte); }
html.v5 .asi-bloc > :is(.asi-texte, .asi-adresse, .asi-etapes){ grid-column: 2; margin: 0; }
html.v5 .asi-texte{ font-size: var(--v5-t-12); line-height: 17px; color: var(--v5-texte-2); }
html.v5 .asi-adresse{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 0; border: 0; background: none; box-shadow: none; }
html.v5 .asi-adresse > span{ grid-column: 1 / -1; font-size: var(--v5-t-11); color: var(--v5-texte-3); }
html.v5 .asi-adresse > code{ order: 2; min-width: 0; height: var(--v5-ctrl-l); padding: 0 10px; border-radius: var(--v5-r-surface); background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); font: var(--v5-g-normal) var(--v5-t-12)/var(--v5-ctrl-l) var(--v5-police-mono); color: var(--v5-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v5 .asi-adresse > button{ order: 3; white-space: nowrap; }
html.v5 .asi-etapes{ padding: 0 0 0 16px; font-size: var(--v5-t-13); line-height: 19px; color: var(--v5-texte); }
html.v5 .asi-etapes li + li{ margin-top: 6px; }
html.v5 .asi-exemples{ padding: 0; }
html.v5 .asi-exemples > div{ padding: 10px 14px; font-size: var(--v5-t-13); line-height: 18px; color: var(--v5-texte-2); }
html.v5 .asi-exemples > div + div{ box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
@media (max-width: 1100px){ html.v5 .asi-colonnes{ grid-template-columns: minmax(0, 1fr); } }
html.v5 .asi-adresse > code{ grid-column: 1; grid-row: 2; }
html.v5 .asi-adresse > button{ grid-column: 2; grid-row: 2; width: auto; margin: 0; }

/* ================================================================== 11/10, 2e passe sur « IA et intégrations »
   CLÉS API — même grammaire que les autres réglages : plus de carte englobante ; « IA par tâche » est un groupe de lignes
   (nom + aide à gauche, liste à droite), les clés enregistrées un second groupe (tuile de l'IA, nom, chevron), le bouton
   d'ajout à sa taille normale sous la liste. Le formulaire d'une clé est une colonne étroite, actions en pied. */
html.v5 #view-settings#view-settings #st-cles-ia > .card{ display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #st-cles-ia .card-sub{ margin: 0 2px 10px; font-size: var(--v5-t-12); line-height: 17px; color: var(--v5-texte-2); }
html.v5 #st-cles-ia :is(.ia-routes, .ia-liste){ display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); overflow: hidden; }
html.v5 #st-cles-ia .ia-route, html.v5 #st-cles-ia .ia-ligne{ display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 9px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; color: var(--v5-texte); cursor: default; }
html.v5 #st-cles-ia :is(.ia-route, .ia-ligne) + :is(.ia-route, .ia-ligne){ box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
html.v5 #st-cles-ia :is(.ia-route-copy, .ia-txt){ display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
html.v5 #st-cles-ia .ia-nom{ font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); line-height: 16px; color: var(--v5-texte); }
html.v5 #st-cles-ia .ia-sub{ font-size: var(--v5-t-12); font-weight: var(--v5-g-normal); line-height: 15px; color: var(--v5-texte-2); }
html.v5 #st-cles-ia .ia-route :is(.sel-btn, select){ flex: none; width: 230px; }
html.v5 #st-cles-ia .ia-route-foot{ margin: 8px 2px 0; font-size: var(--v5-t-12); color: var(--v5-texte-3); }
html.v5 #st-cles-ia .ia-keys-heading{ margin: 26px 2px 8px; font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); line-height: 16px; color: var(--v5-texte); }
html.v5 #st-cles-ia .ia-logo{ display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--v5-r-sel); background: var(--v5-rempli-2); color: var(--v5-texte); font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); }
html.v5 #st-cles-ia .ia-ligne > svg{ flex: none; width: 14px; height: 14px; color: var(--v5-texte-3); }
html.v5 #st-cles-ia [data-ia-ajouter]{ align-self: flex-start; width: auto; margin: 10px 0 0; }
html.v5 #st-cles-ia > .card > .status-line{ margin: 0 2px; }
html.v5 #st-cles-ia > .card > .st-row{ box-sizing: border-box; padding: 11px 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); }
/* formulaire d'une clé */
html.v5 #st-cles-ia > .card:has(.ia-actions){ max-width: 460px; gap: 14px; }
html.v5 #st-cles-ia .card-title{ margin: 0 0 4px; font-size: var(--v5-t-22); font-weight: var(--v5-g-gras); line-height: var(--v5-i-22); letter-spacing: -.01em; }
html.v5 #st-cles-ia .field{ display: flex; flex-direction: column; gap: 6px; margin: 0; }
html.v5 #st-cles-ia .field > .lbl{ margin: 0; font-size: var(--v5-t-13); font-weight: var(--v5-g-normal); color: var(--v5-texte); }
html.v5 #st-cles-ia .field :is(input, .sel-btn, select){ width: 100%; box-sizing: border-box; }
html.v5 #st-cles-ia .ia-aide{ font-size: var(--v5-t-12); line-height: 17px; color: var(--v5-texte-2); }
html.v5 #st-cles-ia .ia-form-hint{ margin: 0; }
html.v5 #st-cles-ia .ia-actions{ display: flex; align-items: center; gap: 8px; margin-top: 4px; }
html.v5 #st-cles-ia .ia-actions .danger-ghost{ margin-left: auto; }

/* RÉDACTION DES ANNONCES — les deux réglages sont deux groupes distincts, plus une seule grande carte */
html.v5 #view-settings#view-settings [data-vt-set-body="ia"] > .card{ display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 [data-vt-set-body="ia"] .st-row-bloc{ margin: 0; padding: 14px; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); gap: 10px; }
html.v5 [data-vt-set-body="ia"] .st-row-bloc .st-row-t{ font-weight: var(--v5-g-fort); }
html.v5 [data-vt-set-body="ia"] .st-row-pied{ margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html.v5 [data-vt-set-body="ia"] #vt-prompt-textarea{ min-height: 300px; }

/* ASSISTANT CLAUDE — exemples : un guillemet d'ouverture discret, texte en couleur principale */
html.v5 #view-settings#view-settings .asi-exemples{ border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); overflow: hidden; }
html.v5 .asi-exemples > div{ color: var(--v5-texte); }
html.v5 #st-cles-ia .ia-ligne{ min-height: 48px; }
html.v5 #st-cles-ia .ia-logo svg{ display: block; width: 18px; height: 18px; }

/* 12/10 — la recherche de la navigation gardait 220 px dans une colonne de 204 px utiles (224 moins 2 × 10 de marge) : son bord droit dépassait de 16 px et la capsule paraissait coupée. */
#view-settings .st-cherche{ width: auto; max-width: 100%; }

/* 12/10 — ligne de réglage avec un contrôle large (curseur « Étroite / Moyenne / Large / Pleine », liste, champ) dans une page étroite (≈ 400 px, volet PC réduit) :
   le contrôle gardait 60 % de la ligne, débordait de sa boîte et recouvrait l'explication, réduite à 120 px sur 6 ou 7 lignes. Sous 460 px de page, ces lignes passent en bloc
   (explication au-dessus, contrôle dessous, comme .st-row-bloc) : le contrôle reste sous son libellé. Les interrupteurs et cases restent à droite de leur texte. */
#view-settings .st-body > section{ container-type: inline-size; }
/* 31/10 : seuil passé de 460 à 520 px — à 468 px (fenêtre de 1024 px), « Nom d'affichage » gardait 160 px pour son explication sur 4 lignes et « Enregistrer » tombait sous le champ */
@container (max-width: 520px){
  #view-settings .stp-groupe > .st-row:has(.st-row-ctl :is(.liens-mode, .segmented, .vt-radio-row, select, input:not([type=checkbox], [type=radio], [type=range]))){ flex-direction: column; align-items: stretch; gap: 8px; }
  #view-settings .stp-groupe > .st-row:has(.st-row-ctl :is(.liens-mode, .segmented, .vt-radio-row, select, input:not([type=checkbox], [type=radio], [type=range]))) > .st-row-ctl{ max-width: none; justify-content: flex-start; flex: none; }
}

/* 12/10 — page de réglages très étroite (≤ 300 px : barre latérale ouverte + volet PC de 768 px). Le texte de plusieurs lignes (« Crédits ce mois-ci », formules de l'abonnement) tombait à 4 px de large et se repliait mot par mot
   à côté de sa jauge ou de son prix ; le curseur « Étroite / Moyenne / Large / Pleine » (264 px) dépassait de sa carte et coupait « Pleine ». Toutes les lignes sans interrupteur passent en bloc : le texte garde toute la largeur,
   la valeur ou le contrôle passe dessous. Un contrôle segmenté se range sur deux colonnes pour tenir dans la carte. Les interrupteurs restent à droite de leur texte. */
@container (max-width: 300px){
  #view-settings .stp-groupe > .st-row:not(:has(.st-row-ctl input[type=checkbox])){ flex-direction: column; align-items: stretch; gap: 6px; }
  #view-settings .stp-groupe > .st-row:not(:has(.st-row-ctl input[type=checkbox])) > .st-row-ctl{ max-width: none; width: 100%; flex: none; justify-content: flex-start; }
  #view-settings .stp-groupe > .st-row .st-row-ctl :is(.liens-mode, .segmented){ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; height: auto; }
  #view-settings .stp-groupe > .st-row .st-row-ctl :is(.liens-mode, .segmented) > button{ min-width: 0; min-height: 24px; }   /* 01/11 : 16 px de haut avec height:auto */
  #view-settings .stp-groupe > .st-row .st-row-ctl :is(.liens-mode, .segmented):has(> button:nth-of-type(3):last-of-type){   /* 01/11 : les boutons, pas la tuile glissante (span) — Thème cassait en 2 + 1, Densité recevait 3 colonnes */ grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* trois choix (Clair / Sombre / Système) : une seule ligne, pas de case vide */
  #view-settings .stp-groupe > .st-row .st-row-ctl .sel-btn{ width: 100%; max-width: 100%; }   /* liste « Police » : 224 px dans une carte de 188 */
  #view-settings .anim-grille{ grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* Animations : 3 cartes de 63 px débordaient de 12 px, leur nom coupé */
  #view-settings :is(.anim-nom, .anim-forme){ overflow-wrap: anywhere; }
  #view-settings .anim-situations{ grid-template-columns: minmax(0, 1fr); }
  #view-settings .anim-situation{ min-width: 0; }
  #view-settings .anim-situation span{ white-space: normal; overflow-wrap: anywhere; }
  #view-settings .ab-bareme-ligne{ flex-direction: column; align-items: stretch; gap: 2px; }   /* barème des crédits : la ligne et son prix se rangent l'un sous l'autre */
  #view-settings .ab-bareme-prix{ width: auto; min-width: 0; text-align: left; }
  #view-settings .ab-bareme-prix :is(b, span){ white-space: normal; overflow-wrap: anywhere; }
}

/* 12/10 — contrôles de préférence de Réglages (Thème, Densité, Largeur des pages…) : même rôle que « Auto / Manuel » — un choix de mode parmi 2 à 4 valeurs, toujours visible — donc même forme capsule
   (piste, boutons et tuile glissante). La liste déroulante, les champs et les boutons d'action ne changent pas de forme. Réglages étroits (grille ≤ 300 px, plus bas) : coins arrondis plutôt que capsule d'une hauteur de deux lignes. */
#view-settings .st-row-ctl :is(.liens-mode, .segmented), #view-settings .st-row-ctl :is(.liens-mode, .segmented) > button, html #view-settings .st-row-ctl :is(.liens-mode, .segmented) > .v5-seg-tuile{ border-radius: var(--v5-r-capsule); }
@container (max-width: 300px){
  #view-settings .st-row-ctl :is(.liens-mode, .segmented), #view-settings .st-row-ctl :is(.liens-mode, .segmented) > button, html #view-settings .st-row-ctl :is(.liens-mode, .segmented) > .v5-seg-tuile{ border-radius: var(--v5-r-groupe); }
}

/* 12/10 — un seul niveau de cadre (docs/design-system-v5/08_ECHELLE_DES_FORMES.md) : « Rédaction des annonces » posait des blocs encadrés dans une
   carte encadrée, et le réglage de consommation dans un troisième cadre. La carte devient transparente (ses blocs sont les groupes, r16),
   le réglage de consommation se pose directement dans son bloc. */
html.v5 #view-settings [data-vt-set-body="ia"] > .card{ display: flex; flex-direction: column; gap: 16px; padding: 0; border: 0; background: none; box-shadow: none; }
html.v5 #view-settings [data-vt-set-body="ia"] .conso{ padding: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #view-settings .conso-piste{ border-radius: var(--v5-r-presse); }
/* 13/10 — filets en trop : la dernière ligne d'un groupe n'a pas de filet dessous ; la liste des comptes n'ajoute pas un trait au-dessus du tableau */
html.v5 #view-settings .card > .st-row:last-child, html.v5 #view-settings .card > .st-row:not(:has(~ .st-row)):has(~ .status-line:empty){ border-bottom: 0; }   /* 18/10 : « Ajouter un compte » : la ligne est suivie de la ligne d’état vide, le filet restait dans le bas de la carte */
html.v5 #view-settings .card > .status-line:empty{ display: none; }
html.v5 #view-settings :is(#accounts-list, #relance-favoris-accounts, #relances-favoris-list){ border-top: 0; }
/* 13/10 — « Relances et réponses » : deux sections l'une sous l'autre ; la seconde est séparée par de l'air et un filet */
html.v5 #view-settings [data-st-body="relance"].active + [data-st-body="auto"].active{ margin-top: 36px; padding-top: 28px; box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
/* 14/10 — pastilles d'Univers du compte (éditeur d'univers, Fiches, Réglages › comptes) : reprises de l'ancienne page
   Chauffe de comptes, supprimée avec la Routine du jour. Déduites = neutres, saisies = teintées. */
html.v5 .uni-puce{ display: inline-flex; align-items: center; gap: 4px; height: var(--v5-ctrl-h); padding: 0 5px 0 10px; border-radius: var(--v5-r-capsule); background: var(--v5-violet-doux); color: var(--v5-violet-texte); font-size: var(--v5-t-12); font-weight: var(--v5-g-moyen); }
html.v5 .uni-puce.petite{ height: var(--v5-ctrl-s); padding: 0 9px; font-size: var(--v5-t-11); }
html.v5 .uni-puce.deduite{ background: var(--v5-rempli-4); color: var(--v5-texte-2); font-weight: var(--v5-g-normal); }
html.v5 .uni-puce button{ width: 16px; height: 16px; border-radius: 50%; }
html.v5 .uni-puce button:hover{ background: var(--v5-rempli-1); }

/* 18/10 (Lucas : « une barre pour déplacer le truc de gauche à droite, ça fait une double barre ») : le tableau des comptes avait
   une largeur minimale de 620 px ; sur un écran plus étroit, une barre de défilement horizontale apparaissait sous l'en-tête.
   Les colonnes se resserrent maintenant (texte coupé par « … »), sans jamais de barre horizontale. */
html.v5 #view-settings .cpt-table:not(#_){ overflow-x: hidden; }
html.v5 #view-settings .cpt-ligne:not(#_){ min-width: 0; grid-template-columns: 24px minmax(90px, 1.6fr) minmax(76px, 1fr) minmax(48px, .5fr) minmax(64px, .8fr) minmax(56px, .6fr) 32px; }
html.v5 #view-settings .cpt-ligne > *{ min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 24/10 : Relances et réponses, colonne étroite : un nom de compte long (« atelier.seconde.main ») débordait sur la colonne
   « Aujourd'hui ». Le nom a son propre élément (js/vinted-reglages.js) : coupé avec « … », nom complet au survol. */
html.v5 #view-settings .rel-ligne .rel-nom{ min-width: 0; overflow: hidden; }
html.v5 #view-settings .rel-ligne .rel-nom-texte{ min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.v5 #view-settings .rel-ligne .rel-nom :is(i, svg){ flex: none; }

/* ================================================================== 26/10 : Réglages (et Abonnement, Extension, mêmes groupes) façon Notion (gamme choisie le 25/10) — plus de groupes
   encadrés : chaque réglage est une ligne posée sur la page (titre et aide à gauche, contrôle à droite), séparée de la suivante par un
   trait fin ; le titre de groupe est plus présent et souligné. Les contrôles (segmentés, interrupteurs, listes) ne changent pas. */
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .stp-groupe > .st-row:not(#_):not(#_){ padding: 12px 2px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .stp-groupe > .st-row:last-child:not(#_):not(#_){ box-shadow: none; }
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .stp-groupe > .st-row::before{ content: none; }
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .stp-h3:not(#_){ margin: 28px 2px 2px; padding: 0 0 8px; font-size: var(--v5-t-15); line-height: 20px; font-weight: var(--v5-g-fort); box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .stp-groupe:first-of-type .stp-h3:not(#_){ margin-top: 18px; }
/* mêmes principes pour les blocs « carte » des autres sections (Ajouter un compte, liste des comptes, Rédaction des annonces) :
   posés sur la page, un trait fin au-dessus pour les séparer */
html.v5 :is(#view-settings, #view-abonnement, #view-extension) .card.surface:not(#_):not(#_){ padding-left: 2px; padding-right: 2px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
/* Abonnement : le tableau de comparaison des formules perd son cadre (trait fin entre les lignes seulement) */
html.v5 #view-abonnement .abc-table:not(#_):not(#_){ border-radius: 0; box-shadow: none; }

/* 31/10 : champ + bouton (« Ton nom » + Enregistrer) : toujours sur une ligne, le champ prend la place qui reste */
#view-settings .st-row-ctl:has(> input:not([type=checkbox], [type=radio], [type=range]) + button){ flex-wrap: nowrap; }
#view-settings .st-row-ctl > input:not([type=checkbox], [type=radio], [type=range]):has(+ button){ flex: 1 1 140px; min-width: 0; width: auto; }

/* 31/10 : Comptes Vinted dans une page étroite (≈ 470 px, fenêtre de 1024 px) — « Ajouter un compte » avait son explication sur 5 lignes
   de 150 px et le choix de couleur faisait une capsule violette vide de 70 px ; le tableau coupait les noms (« atelier.second… ») */
#view-settings .st-row-ctl:has(> input[type=text]){ flex-wrap: nowrap; }
#view-settings .st-row-ctl > input[type=text]{ flex: 1 1 140px; min-width: 0; width: auto; }
html.v5 #view-settings .st-row-ctl > input[type=color]:not(#_){ flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: default; }
html.v5 #view-settings .st-row-ctl > input[type=color]:not(#_)::-webkit-color-swatch-wrapper{ padding: 0; }
html.v5 #view-settings .st-row-ctl > input[type=color]:not(#_)::-webkit-color-swatch{ border: 0; border-radius: 50%; box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); }
@container (max-width: 520px){
  #view-settings .st-row:has(> .st-row-ctl > input[type=text]){ flex-direction: column; align-items: stretch; gap: 8px; }
  #view-settings .st-row:has(> .st-row-ctl > input[type=text]) > .st-row-ctl{ max-width: none; justify-content: flex-start; flex: none; }
  html.v5 #view-settings .cpt-ligne:not(#_){ grid-template-columns: 24px minmax(0, 1.6fr) minmax(0, 1fr) minmax(56px, .6fr) 32px; }
  html.v5 #view-settings .cpt-ligne > :is(:nth-child(4), :nth-child(5)){ display: none; }   /* En ligne et Ventes du mois : masquées seulement dans une page étroite */
}

/* 01/11 : recherche des Réglages — les rubriques qui ne correspondent pas (classe posée par js/pc-ui.js) disparaissent ; le display:flex
   des boutons de la navigation (plus haut) passait devant et la recherche ne filtrait rien, avec « Aucun réglage trouvé » sous la liste entière */
#view-settings .st-nav .st-filtre-cache{ display: none; }

/* 01/11 : tableaux de Relances et réponses dans une page étroite (≤ 520 px : fenêtre de 820 px) — 424 et 486 px de colonnes pour 262 px :
   barre de défilement horizontale, « Active » hors du cadre. Comme pour Comptes Vinted : colonnes qui se resserrent, « … », et les colonnes
   secondaires (En attente ; Offres et Messages) s'effacent ; le compte, le compteur du jour ou la remise, et l'interrupteur restent. */
@container (max-width: 520px){
  html.v5 #view-settings .rel-table:not(#_){ overflow-x: hidden; }
  html.v5 #view-settings .rel-ligne:not(.cpt-ligne):not(.auto-ligne):not(#_){ grid-template-columns: 24px minmax(0, 1fr) minmax(0, 96px) 44px; column-gap: 8px; padding: 0 10px; }
  html.v5 #view-settings .rel-ligne:not(.cpt-ligne):not(.auto-ligne) > :nth-child(4){ display: none; }
  html.v5 #view-settings .auto-ligne:not(#_){ grid-template-columns: 8px minmax(0, 1fr) 72px 44px; column-gap: 8px; padding: 0 10px; }
  html.v5 #view-settings .auto-ligne > :is(:nth-child(4), :nth-child(5)){ display: none; }
  html.v5 #view-settings .rel-ligne > *{ min-width: 0; }
}
