/*
 * Section « Paramètres, Sécurité, Compte » — design 2026-10 (look du portail
 * client). Ne contient que ce que la couche partagée `ds-*` (main.css) ne
 * couvre pas : la connexion en deux colonnes, le menu latéral des réglages,
 * la liste des rôles, les pastilles du journal de sécurité. Jetons de thème
 * uniquement : le sombre s'applique seul.
 */

/* ── Connexion du personnel (login, mot de passe oublié, nouveau mot de passe) ──
   Même structure que le portail : panneau marine à gauche (identique dans
   les deux thèmes), carte à droite sur le fond du thème. */
.sa-body { display: block; margin: 0; min-height: 100vh; background: var(--color-bg); color: var(--color-text); }
.sa-shell .pi { flex: 0 0 auto; }
.sa-shell .sa-lang .lang-btn { background: none; border: 0; }
.sa-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr); }
/* Panneau « gold-brand » du portail (portal.css) : marine avec un halo doré. */
.sa-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 52px; color: #fff;
  background: radial-gradient(90% 60% at 100% 0%, rgba(242,201,76,.32), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(30,127,194,.35), transparent 60%), linear-gradient(160deg, #0B3B5C, #07293F); }
.sa-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 18px; padding: 7px 12px; border-radius: 999px; background: rgba(242,201,76,.16); color: var(--gold-2, #F2C94C); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(242,201,76,.3); }
.sa-kicker svg { width: 16px; height: 16px; }
.sa-pitch h2 em { font-style: normal; background: linear-gradient(90deg, #FFE08A, var(--gold-2, #F2C94C), #E2B640); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sa-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 60% at 70% 30%, #000, transparent); mask-image: radial-gradient(80% 60% at 70% 30%, #000, transparent); pointer-events: none; }
.sa-brand > * { position: relative; z-index: 1; }
.sa-brand-top { display: flex; align-items: center; gap: 12px; }
.sa-brand-top img { width: 44px; height: 44px; border-radius: 11px; background: #fff; object-fit: contain; padding: 3px; }
.sa-brand-top strong { display: block; font-size: 16px; }
.sa-brand-top span { font-size: 13px; color: rgba(255,255,255,.65); }
.sa-pitch h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; font-weight: 700; max-width: 14ch; margin: 0 0 32px; letter-spacing: -.02em; }
.sa-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.sa-pitch li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.7); }
.sa-pitch li svg { flex: 0 0 40px; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(242,201,76,.12); color: var(--gold-2, #F2C94C); box-shadow: inset 0 0 0 1px rgba(242,201,76,.22); }
.sa-pitch li strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.sa-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.sa-foot svg { width: 16px; height: 16px; color: var(--gold-2, #F2C94C); }

/* Touche dorée (portail) : réservée aux moments « premium » — super admin,
   intégration active. Jetons de look.css avec repli local, version sombre. */
.ds-tag.gold, .badge-pill.gold, .role-sa.gold { background: var(--gold-soft, #FFF8E6); color: var(--gold-ink, #7A4E00); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #D4A72C) 45%, transparent); }
:root[data-theme="dark"] .ds-tag.gold, :root[data-theme="dark"] .badge-pill.gold, :root[data-theme="dark"] .role-sa.gold { background: rgba(242,201,76,.16); color: var(--gold-2, #F2C94C); box-shadow: inset 0 0 0 1px rgba(242,201,76,.3); }
.st-gold-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: linear-gradient(180deg, #E2B640, var(--gold, #D4A72C)); color: #fff; box-shadow: 0 8px 18px -8px var(--gold, #D4A72C); flex-shrink: 0; }
.st-gold-ico svg { width: 14px; height: 14px; }
.ds-stat.gold { --t: var(--gold, #D4A72C); }
.ds-stat.gold .ds-stat-v { color: var(--gold-ink, #7A4E00); }
:root[data-theme="dark"] .ds-stat.gold .ds-stat-v { color: var(--gold-2, #F2C94C); }
.sa-main { display: flex; flex-direction: column; padding: 28px; }
.sa-top { display: flex; justify-content: flex-end; }
.sa-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border); }
.sa-lang a { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--color-text-muted); text-decoration: none; }
.sa-lang a:hover { color: var(--color-text); text-decoration: none; }
.sa-shell .sa-lang a.on, .sa-shell .sa-lang a.on:hover { background: var(--color-sidebar-bg, #0B3B5C); color: #fff; }
.sa-card { width: 100%; max-width: 420px; margin: auto; padding: 8px 0 40px; animation: sa-rise .5s cubic-bezier(.22,.8,.22,1) both; }
@keyframes sa-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sa-card { animation: none; } }
.sa-card h1 { font-size: 28px; line-height: 1.2; margin: 18px 0 10px; color: var(--color-text); letter-spacing: -.02em; }
.sa-lead { font-size: 15px; color: var(--color-text-muted); margin: 0 0 26px; }
.sa-card-logo { display: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; object-fit: contain; padding: 3px; box-shadow: inset 0 0 0 1px var(--color-border); }
.sa-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--color-accent-pale); color: var(--color-accent); }
.sa-icon svg { width: 26px; height: 26px; }
.sa-icon.ok { background: var(--color-emerald-pale); color: var(--color-emerald); }
.sa-form { display: grid; gap: 10px; }
.sa-form label { font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.sa-input { position: relative; }
.sa-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); width: 18px; height: 18px; pointer-events: none; }
.sa-input input { width: 100%; height: 50px; padding: 0 14px 0 44px; border-radius: 12px; border: 1px solid var(--color-border-strong); background: var(--color-card); font: inherit; font-size: 15.5px; color: var(--color-text);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.sa-input input:focus { outline: none; border-color: var(--color-accent-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-solid) 15%, transparent); }
.sa-input.has-toggle input { padding-right: 48px; }
.sa-input .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--color-text-light); cursor: pointer; font: inherit; }
.sa-input .pw-toggle:hover { background: var(--color-bg); color: var(--color-accent); }
.sa-input .pw-toggle svg { width: 18px; height: 18px; }
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 8px; padding: 0 18px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 14.5px; color: #fff; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #2A8DD2, #1E7FC2); box-shadow: 0 10px 22px -10px #1E7FC2, inset 0 1px 0 rgba(255,255,255,.2); transition: transform .15s, box-shadow .15s; }
.sa-btn:hover { color: #fff; text-decoration: none; box-shadow: 0 14px 26px -10px #1E7FC2, inset 0 1px 0 rgba(255,255,255,.2); }
.sa-btn:active { transform: translateY(1px); }
.sa-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.sa-btn:hover svg { transform: translateX(3px); }
.sa-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500 !important; color: var(--color-text-muted) !important; cursor: pointer; }
.sa-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-accent-solid); }
.sa-help { margin: 22px 0 0; font-size: 13.5px; color: var(--color-text-muted); text-align: center; }
.sa-help a { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.sa-help a:hover { text-decoration: underline; }
.sa-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 18px; line-height: 1.45; }
.sa-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.sa-note.warn { background: var(--color-rose-pale); color: var(--color-rose); }
.sa-note.ok { background: var(--color-emerald-pale); color: var(--color-emerald); }
@media (max-width: 860px) {
  .sa-shell { grid-template-columns: 1fr; }
  .sa-brand { display: none; }
  .sa-card-logo { display: block; }
  .sa-main { padding: 18px 20px; }
}

/* ── Paramètres : menu des sections + contenu ───────────────────────────── */
.st-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 14px; align-items: start; }
.st-nav { padding: 6px; position: sticky; top: 8px; }
.st-nav-label { display: block; padding: 8px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-light); }
.st-nav .settings-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; margin: 0; border: 0; border-radius: 9px; background: none; text-align: left;
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); cursor: pointer; text-decoration: none; transition: background .12s, color .12s; }
.st-nav .settings-nav-item svg, .st-nav .settings-nav-item .ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-text-light); }
.st-nav .settings-nav-item:hover { background: var(--color-bg); color: var(--color-text); }
.st-nav .settings-nav-item.active { background: var(--color-accent-pale); color: var(--color-accent); font-weight: 600; }
.st-nav .settings-nav-item.active svg, .st-nav .settings-nav-item.active .ico { color: var(--color-accent); }
.st-nav-sep { height: 1px; margin: 6px 8px; background: var(--color-border); }
.st-nav .settings-nav-item .ext { margin-left: auto; width: 12px; height: 12px; opacity: .6; }

/* Champs alignés en haut : une note sous un champ ne décale pas son voisin */
.ds-card .ds-fgrid, .ds-modal .ds-fgrid { align-items: start; }

/* Consigne longue au-dessus d'un champ : en phrase, pas en capitales */
.ds-card .form-label.st-label-long { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 6px; }

/* Formulaires : note « valeur réellement utilisée » sous un champ */
.st-eff { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; line-height: 1.45; }
.st-eff b { color: var(--color-text); font-weight: 600; }
.st-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.st-foot .l { margin-right: auto; }

/* Types de documents : tuiles */
.st-doctypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.st-doc { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px 6px 10px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg); }
.st-doc.custom { background: var(--color-card); border-color: color-mix(in srgb, var(--color-accent-solid) 35%, var(--color-border)); }
.st-doc-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border); flex-shrink: 0; }
.st-doc.custom .st-doc-ico { background: var(--color-accent-pale); box-shadow: none; }
.st-doc-n { flex: 1; min-width: 0; font-size: var(--text-xs); font-weight: 600; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-doc form { margin: 0; display: inline-flex; }

/* Mon compte : avatar + identité */
.st-me { display: flex; align-items: center; gap: 14px; }
.st-me .ds-av.lg, .st-me .user-photo { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.st-me .user-photo { object-fit: cover; }
.st-me b { display: block; font-size: var(--text-md); font-weight: 700; color: var(--color-text); }
.st-me span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Apparence : nuancier */
.st-swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.st-swatch { display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg); font-size: var(--text-xs); }
.st-swatch i { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.st-swatch b { display: block; font-weight: 600; color: var(--color-text); }
.st-swatch span { color: var(--color-text-muted); font-family: var(--font-mono, ui-monospace, Menlo, monospace); }

/* Rôles & accès : liste des rôles à gauche, fiche + matrice à droite.
   La matrice (`perm-*`) garde ses règles dans main.css. */
.st-roles-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.st-role-list { padding: 6px; }
.st-role { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; color: var(--color-text-muted); cursor: pointer; transition: background .12s, color .12s; }
.st-role:hover { background: var(--color-bg); color: var(--color-text); }
.st-role.active { background: var(--color-accent-pale); color: var(--color-accent); }
.st-role-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border); flex-shrink: 0; }
.st-role.active .st-role-ico { background: var(--color-card); }
.st-role-t { flex: 1; min-width: 0; }
.st-role-t b { display: block; font-size: var(--text-sm); font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-role-t span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.st-role-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-role-head .st-role-ico { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.st-role-head .grow { flex: 1 1 260px; min-width: 0; }
.st-role-head .side { margin-left: auto; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.st-role-head .form-input.title { font-size: var(--text-md); font-weight: 700; width: 240px; max-width: 100%; }
.st-role-head .form-input.emoji { width: 54px; padding: 0 4px; font-size: var(--text-lg); text-align: center; }
.st-role-head .form-input.desc { width: 100%; max-width: 420px; }
.st-role-head .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: var(--text-xs); color: var(--color-text-muted); }
.st-role-head .row .form-input { height: 30px; width: auto; font-size: var(--text-xs); }
.st-role-head .perm-delete-btn { margin-top: 0; }
.st-toast { position: fixed; bottom: 20px; right: 20px; z-index: 2000; padding: 9px 14px; border-radius: 10px; background: var(--color-sidebar-bg, #0B3B5C); color: #fff; font-size: var(--text-xs); font-weight: 600; box-shadow: var(--shadow-md); pointer-events: none; }
.st-error { padding: 8px 12px; border-radius: 8px; background: var(--color-rose-pale); color: var(--color-rose); font-size: var(--text-xs); font-weight: 600; }
.st-placeholder { padding: 40px 20px; text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); }
.st-placeholder svg { display: block; margin: 0 auto 8px; color: var(--color-border-strong); }

/* Provenance des leads : ligne partenaire éditable dans le tableau */
.st-partner-row .act form { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: 0; }
.st-partner-row.off td { opacity: .55; }
.st-partner-row td:nth-child(1), .st-partner-row td:nth-child(3) { min-width: 130px; }
.st-partner-row .form-control { width: 100%; }
.st-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.st-inline .form-input { width: auto; min-width: 0; }
.st-inline .form-input.grow { flex: 1 1 200px; }
.st-table-foot { padding: 10px 16px; border-top: 1px solid var(--color-border); }
.st-code { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: var(--text-xs); padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text); }
.st-mono { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: var(--text-xs); }

/* Tuiles KPI : carré d'icône du socle (`ds-stat-i`, look.css) — le carré
   maison `st-stat-i` tombait sous le chiffre, le socle ne reconnaissant que
   le sien dans la colonne de gauche. */


/* Rôles : icône au trait du module (jeu commun), dans la couleur de l'état */
.perm-row-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-light); }
.perm-row.is-read .perm-row-icon { color: var(--color-accent); }
.perm-row.is-write .perm-row-icon { color: var(--color-emerald); }
.st-nav .settings-nav-item .ext { display: inline-flex; }
.form-label.st-label-ico { display: inline-flex; align-items: center; gap: 5px; }
.sa-help a { display: inline-flex; align-items: center; gap: 4px; }
.ds-pager a, .ds-pager button { display: inline-flex; align-items: center; gap: 4px; }

/* ── Sécurité : pastilles du journal, des alertes et des sessions ─────── */
.badge-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text-muted); }
.badge-pill svg { width: 11px; height: 11px; }
.sev-high, .action-export, .action-export_attempt, .rule-chip-high { background: var(--color-rose-pale); color: var(--color-rose); }
.sev-medium, .action-delete, .action-permanent_delete, .rule-chip-medium { background: var(--color-amber-pale); color: var(--color-amber); }
.sev-low, .action-edit, .action-backup, .action-notice_period_on, .action-notice_period_off, .action-restore, .rule-chip-low { background: var(--color-emerald-pale); color: var(--color-emerald); }
.sev-resolved, .action-default { background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text-muted); }
.action-login, .action-view_data, .action-move_card, .role-admin { background: var(--color-accent-pale); color: var(--color-accent); }
.role-sa, .role-superadmin { background: var(--color-purple-pale); color: var(--color-purple); }
.role-sales { background: var(--color-emerald-pale); color: var(--color-emerald); }
.role-comptable, .role-supercomptable, .role-super_comptable { background: var(--color-amber-pale); color: var(--color-amber); }
.role-marketing { background: var(--color-rose-pale); color: var(--color-rose); }
.role-it_support, .role-itsupport { background: var(--ds-indigo-pale, var(--color-accent-pale)); color: var(--ds-indigo, var(--color-accent)); }
.dot-online, .dot-offline { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.dot-online { background: var(--color-emerald-vivid); box-shadow: 0 0 0 3px var(--color-emerald-pale); }
.ds-table tbody tr.high-row td { background: color-mix(in srgb, var(--color-rose-vivid) 9%, var(--color-card)); }
.ds-table tbody tr.high-row:hover td { background: color-mix(in srgb, var(--color-rose-vivid) 13%, var(--color-card)); }
.sec-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sec-feat-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--color-bg); font-size: var(--text-xs); }
.sec-feat-row svg { color: var(--color-emerald); flex-shrink: 0; }
.sec-feat-row b { flex: 1; font-weight: 600; color: var(--color-text); }
.sec-feat-row span { color: var(--color-text-muted); }
.sec-allow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ds-btn.ok { color: var(--color-emerald); }
.ds-btn.ok:hover { border-color: color-mix(in srgb, var(--color-emerald) 40%, transparent); background: var(--color-emerald-pale); }
.ds-table td.c-act .ds-btn.sm { opacity: 1; }
.ds-card-b.sec-rules { display: flex; }
.ds-card-b.sec-feat { display: grid; }
.st-pill-select { height: 30px; padding: 0 26px 0 10px; font-size: var(--text-xs); }

/* Activité d'un compte : fil chronologique */
.ua-tl .ds-tl-t { align-items: center; }
.ua-ip { font-family: var(--font-mono, ui-monospace, Menlo, monospace); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .st-layout, .st-roles-grid { grid-template-columns: minmax(0, 1fr); }
  .st-nav { position: static; }
  .st-role-head .side { margin-left: 0; width: 100%; }
  .perm-bulk { flex-wrap: wrap; }
  .st-role-head .form-input.title { width: 100%; }
}
@media (max-width: 480px) {
  /* Tuiles : libellés sur deux lignes plutôt que tronqués. */
  .ds-stat .ds-stat-l, .ds-stat .ds-stat-l b { white-space: normal; overflow: visible; }
  /* En-tête : l'action passe sous le titre, pleine largeur. */
  .ds-head-r { width: 100%; }
  .ds-head-r > form, .ds-head-r > .ds-btn, .ds-head-r > .ds-btn-primary { width: 100%; }
  .ds-head-r form .ds-btn, .ds-head-r form .ds-btn-primary, .ds-head-r > .ds-btn, .ds-head-r > .ds-btn-primary { width: 100%; justify-content: center; min-height: 40px; }
  /* Formulaires : une colonne, pieds empilés, champs à 16 px (pas de zoom iOS). */
  .ds-fgrid--2 { grid-template-columns: 1fr; }
  .st-foot { flex-direction: column; align-items: stretch; }
  .st-foot .l { margin-right: 0; }
  .st-foot .ds-btn, .st-foot .ds-btn-primary { justify-content: center; min-height: 40px; }
  .st-inline .form-input, .st-inline .form-control, .st-inline .form-input.grow, .st-inline .form-control.grow { flex: 1 1 100%; width: 100%; }
  .st-inline .ds-btn, .st-inline .ds-btn-primary { flex: 1 1 100%; justify-content: center; min-height: 40px; }
  .ds-card .form-input, .ds-card .form-control, .ds-card .form-select, .ds-modal .form-input, .ds-modal .form-control, .ds-modal select, .ds-modal textarea { font-size: 16px; }
  .ds-modal-f .ds-btn, .ds-modal-f .ds-btn-primary { min-height: 40px; }
  .st-role-head .form-input.desc { max-width: none; }
  .st-swatch { min-width: 0; flex: 1 1 100%; }
  .st-doctypes { grid-template-columns: 1fr; }
  .perm-row { padding: .45rem .75rem; }
  .perm-toggle button { min-width: 36px; min-height: 36px; }
  .st-me .ds-av.lg, .st-me .user-photo { width: 48px; height: 48px; }
  .sa-input input { font-size: 16px; }
  .ds-table td.c-act .ds-btn.sm { min-height: 34px; }
}

/* ── Tâches : portée, et Équipes (2026-10-09) ── */
.st-scope-row{display:flex;flex-wrap:wrap;gap:12px}
.st-scope-row .ds-field{flex:1 1 200px;min-width:0}
.st-scope-help{margin:10px 0 0;font-size:12.5px;color:var(--color-text-muted);line-height:1.5}
.st-team-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-team-add .form-input{flex:1 1 200px;min-width:0}
.st-team{margin-top:12px}
.st-team .ds-card-h{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-team .ds-card-h .form-input.title{flex:1 1 200px;min-width:0;font-weight:600}
.st-team.is-archived{opacity:.65}
.st-team-members{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.st-team-member{display:flex;align-items:center;gap:8px;font-size:13.5px;flex-wrap:wrap}
.st-team-mgr{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:12.5px;color:var(--color-text-muted)}
.st-team-pick{max-width:320px}
.st-team .ds-card-h{flex-direction:row}
.st-team .ds-card-h .form-input{width:auto;flex:0 1 240px;min-width:0}
.st-team .ds-card-h .form-input.title{flex:1 1 260px}
