.brand-status-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 0.75rem; }
.brand-status-links a, a.brand-status-links, .brand-notice a { color: var(--brand-light); text-decoration: underline; }
.brand-connected { position: fixed; inset: 0; display: flex; background: var(--surface-app); color: var(--text-primary); font: var(--text-base)/1.5 var(--font-body); }
.brand-sidebar { position: relative; z-index: 5; height: 100%; flex-shrink: 0; }
.brand-connected-main { min-width: 0; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(ellipse at top left, var(--brand-film), transparent 45%) var(--surface-app); }
.brand-connected-body { max-width: 1240px; margin-inline: auto; padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 48px) 120px; }
.brand-connected h1, .brand-status h1 { font-family: var(--font-display); letter-spacing: var(--tracking-display); }
.brand-connected h1 { font-size: clamp(var(--text-5xl), 6vw, var(--text-7xl)); line-height: 1.08; }
.brand-mobile-heading { position: sticky; inset-block-start: 0; z-index: 6; min-height: calc(60px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; padding: env(safe-area-inset-top) 16px 0; background: var(--glass-header-fill); backdrop-filter: var(--glass-header-filter); box-shadow: var(--glass-header-rim); font-weight: 600; }
.brand-mobile-heading img { width: 26px; filter: var(--mark-filter); }
.brand-mobile-sheet { position: fixed; inset: 0; z-index: 90; }
.brand-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-block: 16px; border-radius: var(--radius-lg); box-shadow: var(--glass-rim); background: var(--glass-surface-fill); }
.brand-notice > svg { flex: none; margin-top: 3px; color: var(--brand-light); }
.brand-notice[role=alert] > svg { color: var(--danger); }
.brand-command { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 6px 18px; border-radius: var(--radius-pill); background: var(--text-primary); color: var(--surface-app); font-weight: 700; }
.brand-command[disabled] { opacity: .55; }
.brand-command:focus-visible, .brand-connected a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.brand-switch { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; color: var(--text-secondary); font-weight: 600; }
.brand-fields { display: grid; gap: 14px; }
.brand-fields label { display: grid; gap: 6px; }
.brand-address code { overflow-wrap: anywhere; }
.brand-address .brand-command { justify-self: start; }
.brand-fields input, .brand-fields textarea, .brand-fields select, .brand-switch select { max-width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--field-rim); background: var(--surface-base); color: var(--text-primary); font: inherit; }
.brand-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-block: 16px; }
.brand-notification-filters .brand-command[aria-pressed=false] { background: var(--surface-raised); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.brand-notification-filters .brand-command[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--text-primary); }
.brand-notification-history { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding-inline: 12px; color: var(--text-primary); cursor: pointer; }
.brand-notification-history input { inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--text-primary); }
.brand-notification-history input:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.brand-panel-list { display: grid; gap: 1px; list-style: none; padding: 0; margin-block: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.brand-panel-list > li { background: var(--surface-base); padding: 16px; overflow-wrap: anywhere; }
.brand-panel-list h3 { margin-block: 0 8px; }

.brand-mobile-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; }
/* Native Pro dialogs own the viewport; sibling navigation must not cover their mobile footer. */
body:has(.brand-workspace .pro-dialog-shade) .brand-mobile-tabs { visibility: hidden; pointer-events: none; }
.brand-category { margin-top: 12px; }
.brand-category summary { cursor: pointer; font-weight: 600; }
.brand-category form { margin-top: 12px; }
.brand-fields .brand-category-option { display: flex; align-items: center; }
.brand-category-option input { min-height: 1em; }
.brand-finance-access { display: grid; gap: 8px; margin: 12px 0; padding: 0; border: 0; min-inline-size: 0; }
.brand-finance-access legend { padding: 0; margin-bottom: 8px; font-size: var(--text-md); font-weight: 700; }
.brand-ownership { margin-block: 24px; }

@media (max-width: 759px) {
  .brand-connected-body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .brand-switch { flex-wrap: wrap; }
  .brand-switch select { min-width: 0; width: 100%; }
  .brand-team-member { grid-template-columns: 38px minmax(0, 1fr) 36px !important; }
  .brand-team-member > select { grid-column: 2 / 4; grid-row: 2; min-width: 0; width: 100%; min-height: 44px; }
  .brand-team-member > span:last-child { grid-column: 3; grid-row: 1; }
}

/* ── Écran d'état de l'espace Marque : carte centrée, ambiance de l'espace ───────────────────────── */
.brand-gate { position: fixed; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vh, 36px); padding: clamp(20px, 6vh, 56px) 16px; background: radial-gradient(ellipse at top left, var(--brand-film), transparent 48%) var(--surface-app); color: var(--text-primary); font: var(--text-base)/1.55 var(--font-body); }
.brand-gate-card { width: min(100%, 520px); display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 5vw, 40px); border-radius: var(--radius-xl); background: var(--glass-surface-fill); box-shadow: var(--glass-rim), var(--shadow-floating); }
.brand-gate-mark { display: block; width: 34px; height: 34px; margin-bottom: 22px; filter: var(--mark-filter); }
.brand-gate-eyebrow { margin: 0 0 8px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.brand-gate h1 { margin: 0; font-family: var(--font-display); font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl)); line-height: 1.1; letter-spacing: var(--tracking-display); text-wrap: balance; }
.brand-gate-lead { margin: 14px 0 0; max-width: 44ch; font-size: var(--text-md); color: var(--text-secondary); text-wrap: pretty; }
.brand-gate-lead[role=alert] { color: var(--text-primary); }
.brand-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.brand-gate .brand-command { gap: 8px; text-decoration: none; }
.brand-gate-link { color: var(--brand-light); font-weight: 600; text-decoration: none; border-radius: var(--radius-xs); }
.brand-gate-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand-gate a:focus-visible, .brand-gate button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.brand-gate-orgs { list-style: none; width: 100%; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.brand-gate-orgs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--field-rim); color: var(--text-primary); font-weight: 600; text-decoration: none; transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.brand-gate-orgs a:hover { background: var(--surface-hover); }
.brand-gate-orgs a svg { color: var(--text-subtle); flex: none; }
.brand-gate-perks { list-style: none; width: min(100%, 520px); margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.brand-gate-perks li { display: flex; align-items: flex-start; gap: 12px; }
.brand-gate-perk-icon { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: var(--glass-rim); color: var(--brand-light); }
.brand-gate-perks li > span:last-child { display: grid; gap: 2px; min-width: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.brand-gate-perks strong { color: var(--text-primary); font-size: var(--text-base); }
@media (max-width: 560px) {
  .brand-gate { justify-content: flex-start; }
  .brand-gate-perks { grid-template-columns: 1fr; }
  .brand-gate .brand-command { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-gate-card, .brand-gate-perks { animation: brandGateIn .5s var(--ease-out) both; }
  .brand-gate-perks { animation-delay: .08s; }
}
@keyframes brandGateIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.brand-workspace { position: fixed; inset: 0; display: flex; background: var(--surface-sunken); }
.brand-workspace-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.brand-workspace-switch { padding: 12px clamp(16px, 3vw, 32px); }
.brand-workspace-switch .brand-switch { margin: 0; }
.brand-workspace-outlet { position: relative; flex: 1; min-height: 0; overflow: auto; }
.brand-workspace-outlet > :is([data-screen-label], .brand-connected, .brand-gate) { position: absolute !important; inset: 0; }
.brand-workspace:has(.brand-workspace-outlet [data-brand-mobile-actions]) .brand-mobile-tabs { display: none; }

@media print {
  .brand-workspace { position: static; display: block; }
  .brand-workspace > :is(aside, .brand-mobile-tabs), .brand-workspace-switch { display: none; }
  .brand-workspace-body, .brand-workspace-outlet { display: block; overflow: visible; }
  .brand-workspace-outlet > :is([data-screen-label], .brand-connected, .brand-gate) { position: static !important; }
}

/* Sidebar — styles du composant : réinitialisations du design, keyframes et états :hover/:active (classes dchb-*, rattachées aux éléments du TSX).
   Source de vérité, éditable à la main ; jetons var(--…) de db-tokens.css. */
.sc-placeholder{background:var(--surface-base) !important;border:1px solid var(--line-strong) !important;border-radius:var(--radius-md) !important;box-shadow:none !important}
html.sc-dc-streaming body{background:var(--surface-app)}
html.sc-dc-streaming .sc-placeholder{background:var(--surface-base) !important;border-color:var(--line-strong) !important}
html.sc-dc-streaming .sc-placeholder::before{background:var(--skeleton-sheen) !important;background-size:400% 100% !important}
.sc-interp.sc-missing{background:var(--surface-base) !important;border:1px solid var(--line-strong) !important;border-radius:var(--radius-md) !important}
html,body{margin:0;padding:0;background:var(--surface-sunken);color:var(--text-primary);font-family:var(--font-body);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:var(--brand-light);text-decoration:none}a:hover{color:var(--brand-pale)}
button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@keyframes sbFade{from{opacity:0}to{opacity:1}}
@keyframes sbTip{from{opacity:0;transform:translate(-4px,-50%)}to{opacity:1;transform:translate(0,-50%)}}
@keyframes sbMenu{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes sbSheet{from{transform:translateY(100%)}to{transform:none}}
@keyframes sbTile{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}

.dchs-1:hover{background:var(--glass-surface-fill) !important;color:var(--text-primary) !important}
.dchs-2:hover{background:var(--glass-surface-fill) !important;color:var(--text-primary) !important}
.dchs-3:hover{background:var(--glass-surface-fill) !important;color:var(--text-primary) !important}
.dchs-4:hover{background:var(--glass-surface-fill) !important}
.dchs-5:hover{background:var(--line-strong) !important}
.dchs-6:hover{background:var(--glass-surface-fill) !important}
.dchs-7:active{transform:scale(.98) !important}
.dchs-8:active{transform:scale(.95) !important}
.dchs-9:active{transform:scale(.96) !important}
.dchs-10:active{background:var(--line) !important}
/* Espaces Pro (Mission Pro, F1 G2) : titre d'espace, titres de groupe et cadenas des tuiles, en classes plutôt qu'en styles
   en ligne pour ne pas alourdir le paquet de navigation partagé des espaces Talent, Fan et Marque (PLAN §8). Hauteur et
   opacité du titre (sidebar repliée) restent en ligne. */
.sb-pro-title{flex-shrink:0;margin:0 0 6px;padding:0 4px;font-family:var(--font-display);font-size:var(--text-lg);font-weight:700;line-height:30px;letter-spacing:var(--tracking-display);color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .25s ease,height .5s cubic-bezier(.2,.9,.2,1)}
.sb-pro-section{margin:6px 0 4px;padding:0 4px;font-size:var(--text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-subtle);line-height:1.35;overflow-wrap:anywhere}
.sb-pro-title-sheet{margin:14px 4px 0;font-family:var(--font-display);font-size:var(--text-lg);font-weight:700;letter-spacing:var(--tracking-display)}
.sb-pro-group{margin-top:12px}
.sb-pro-section-sheet{padding:0 4px 8px;font-size:var(--text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-subtle)}
.sb-pro-tile-lock{position:absolute;top:12px;right:12px;color:var(--text-faint)}

/* BottomNav — styles du composant : réinitialisations du design, keyframes et états :hover/:active (classes dchb-*, rattachées aux éléments du TSX).
   Source de vérité, éditable à la main ; jetons var(--…) de db-tokens.css. */
.sc-placeholder{background:var(--surface-base) !important;border:1px solid var(--line-strong) !important;border-radius:var(--radius-md) !important;box-shadow:none !important}
html.sc-dc-streaming body{background:var(--surface-app)}
.sc-interp.sc-missing{background:var(--surface-base) !important;border:1px solid var(--line-strong) !important;border-radius:var(--radius-md) !important}
button{font-family:var(--font-body);background:none;border:0;padding:0;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
a{color:var(--brand-light);text-decoration:none}a:hover{color:var(--brand-pale)}
.dchb-1:active{transform:scale(.92) !important}
.dchb-2:active{transform:scale(.9) !important}

/* Petits écrans avec bouton d'action (barre Talent à 4 onglets) : le libellé « Expériences » touchait les bords arrondis de
   l'onglet (lettre coupée). Libellé à 10 px, sans espacement par défaut ; l'univers Loud garde le sien.
   19/11/2026 (owner) : « les textes sont coupés sur mobile, comme Expériences ; optimiser l'espace ». Marges de la barre
   resserrées (bord 8 px, écart 6 px, intérieur 4 px) : chaque onglet gagne ~4 px. Un libellé un peu plus long que son
   onglet déborde de quelques pixels sur l'espace libre de ses voisins au lieu d'être coupé (barre repliée : inchangée).
   Mesuré, libellés entiers et au moins 4 px entre deux libellés : 360, 375, 390 px (9,5 px sous 365 px, 9 px sous 340). */
@media (max-width: 420px) {
  [data-tabbar][data-action="1"] { --tabbar-label-size: 10px; --tabbar-inset-x: 8px; --tabbar-gap: 6px; --tabbar-pad: 4px; }
  [data-theme="defaultTheme"] [data-tabbar][data-action="1"], :root:not([data-theme]) [data-tabbar][data-action="1"] { --tabbar-label-tracking: 0; }
  html:not([data-tabbar-state="compact"]) [data-tabbar][data-action="1"] [data-tab] { overflow: visible !important; }
  [data-tabbar][data-action="1"] [data-tab] > span:last-child { max-width: calc(100% + 14px) !important; text-overflow: clip !important; }
}
@media (max-width: 365px) {
  [data-tabbar][data-action="1"] { --tabbar-label-size: 9.5px; }
  [data-theme="defaultTheme"] [data-tabbar][data-action="1"], :root:not([data-theme]) [data-tabbar][data-action="1"] { --tabbar-label-tracking: -0.01em; }
}
@media (max-width: 340px) {
  [data-tabbar][data-action="1"] { --tabbar-label-size: 9px; }
}

/* Primitives des espaces Pro (PLAN §1.4) : SimpleDialog, StepFlow, AccessState, ContextBar, TalentSwitcher.
   Jetons de db-tokens.css seulement, aucune couleur nouvelle. Images clés copiées sous un préfixe `pro-` depuis
   talent-member-journey (pfIn, pfFade, pfSheet) et talent-entry (itIn, itBack, itShake) : aucune dépendance à leurs
   feuilles (TalentEntry.css force le mode sombre). Aucune animation infinie. */

@keyframes pro-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pro-in { 0% { opacity: 0; transform: scale(.9) translateY(10px); filter: blur(6px) } 60% { filter: blur(0) } 100% { opacity: 1; transform: none } }
@keyframes pro-sheet { from { transform: translateY(100%) } to { transform: none } }
@keyframes pro-panel { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
@keyframes pro-step-in { from { opacity: 0; transform: translate3d(18px, 0, 0) } to { opacity: 1; transform: none } }
@keyframes pro-step-back { from { opacity: 0; transform: translate3d(-18px, 0, 0) } to { opacity: 1; transform: none } }
@keyframes pro-shake-a { 0%, 100% { transform: none } 20% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(3px) } }
@keyframes pro-shake-b { 0%, 100% { transform: none } 20% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(3px) } }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.pro-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); font: 600 var(--text-base)/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), opacity var(--dur-fast), transform var(--dur-fast) var(--ease-standard); }
.pro-btn:active:not(:disabled) { transform: scale(.98); }
.pro-btn:disabled { opacity: .55; cursor: default; }
.pro-btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.pro-btn--primary:hover:not(:disabled) { background: var(--btn-primary-hover, var(--btn-primary-bg)); }
.pro-btn--primary[data-tone=critical] { background: var(--danger); color: var(--on-brand); }
.pro-btn--quiet { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pro-btn--quiet:hover:not(:disabled) { background: var(--surface-hover); }
.pro-btn:focus-visible, .pro-dialog :focus-visible, .pro-step :focus-visible, .pro-context :focus-visible, .pro-access :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── SimpleDialog ────────────────────────────────────────────────────────── */
.pro-dialog-shade { position: fixed; inset: 0; z-index: 230; display: flex; align-items: center; justify-content: center; padding: 16px; animation: pro-fade var(--dur-fast) var(--ease-out) both; }
/* Une fenêtre Pro est la plus haute de l'écran : la messagerie flottante (z-index 300) s'efface tant qu'elle est ouverte
   (recette Q-Échanges D-QX-8, généralisée par F1 W3d à toutes les fenêtres et étapes, dans la coque comme dans le
   document Talent délégué). */
body:has(.pro-dialog-shade) [data-messaging-floating] { visibility: hidden; }
.pro-dialog-scrim { position: absolute; inset: 0; background: var(--overlay-scrim); backdrop-filter: var(--glass-scrim-filter); -webkit-backdrop-filter: var(--glass-scrim-filter); }
.pro-dialog { position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 24px 22px; border-radius: var(--radius-xl); background: var(--surface-deep); color: var(--text-primary); font-family: var(--font-body); box-shadow: var(--shadow-overlay), inset 0 0 0 1px var(--line); outline: none; animation: pro-in .42s var(--ease-out) both; }
.pro-dialog[data-size=wide] { width: min(520px, 100%); }
.pro-dialog-grip { display: none; }
.pro-dialog-eyebrow { margin: 0; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-dialog[data-tone=critical] .pro-dialog-eyebrow { color: var(--warn); }
.pro-dialog-title { margin: 0; padding-right: 36px; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.25; letter-spacing: var(--tracking-display); overflow-wrap: anywhere; text-wrap: balance; }
.pro-dialog-lead { margin: -4px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.pro-dialog-body { display: grid; gap: 12px; }
.pro-dialog-body label { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
/* Champs de saisie seulement : une case à cocher, un bouton radio ou un sélecteur de fichier garde son rendu natif (sinon
   les autorisations de `DelegationPermissions` devenaient des cadres de 46 px et leurs libellés une lettre par ligne :
   recette Q-Parcours Entreprise, « Attribuer un talent »). */
.pro-dialog-body :is(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color]), select, textarea),
.pro-step-content :is(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color]), select, textarea) { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: var(--radius-md); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--field-rim); color: var(--text-primary); font: inherit; font-size: var(--text-base); }
.pro-dialog-body [aria-invalid=true], .pro-step-content [aria-invalid=true] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.pro-dialog-error, .pro-step-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--glass-surface-fill); font-size: var(--text-sm); color: var(--danger); }
.pro-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.pro-dialog-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-subtle); cursor: pointer; }
.pro-dialog-close:hover:not(:disabled) { background: var(--glass-surface-fill); color: var(--text-primary); }
/* Feuille : toujours en bas (variant sheet), et sous 760 px pour toutes les variantes. */
.pro-dialog-shade[data-variant=sheet] { align-items: flex-end; padding: 0; }
.pro-dialog[data-variant=sheet] { width: min(560px, 100%); max-height: 88dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: pro-sheet .34s cubic-bezier(.2, .8, .2, 1) both; }
.pro-dialog[data-variant=sheet] .pro-dialog-grip { display: block; align-self: center; width: 40px; height: 5px; margin: -12px 0 2px; border-radius: var(--radius-pill); background: var(--surface-active); }
.pro-dialog-shade[data-variant=panel] { justify-content: flex-end; padding: 12px; }
.pro-dialog[data-variant=panel] { height: 100%; max-height: none; width: min(440px, 100%); animation: pro-panel .36s var(--ease-out) both; }
.pro-dialog[data-variant=panel] .pro-dialog-actions { margin-top: auto; }
@media (max-width: 759px) {
  .pro-dialog-shade, .pro-dialog-shade[data-variant=panel] { align-items: flex-end; justify-content: center; padding: 0; }
  .pro-dialog, .pro-dialog[data-size=wide], .pro-dialog[data-variant=panel] { width: 100%; height: auto; max-height: 88dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: pro-sheet .34s cubic-bezier(.2, .8, .2, 1) both; }
  .pro-dialog .pro-dialog-grip { display: block; align-self: center; width: 40px; height: 5px; margin: -10px 0 2px; border-radius: var(--radius-pill); background: var(--surface-active); }
  .pro-dialog-actions { flex-direction: column-reverse; }
  .pro-dialog-actions .pro-btn { width: 100%; }
}

/* ── StepFlow ────────────────────────────────────────────────────────────── */
.pro-step { width: 100%; max-width: 520px; margin-inline: auto; color: var(--text-primary); font-family: var(--font-body); }
.pro-step-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; margin-bottom: clamp(20px, 5vh, 40px); }
.pro-step[data-compact] .pro-step-bar { margin-bottom: 16px; }
.pro-step-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-secondary); cursor: pointer; }
button.pro-step-icon { background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
button.pro-step-icon:hover:not(:disabled) { color: var(--text-primary); background: var(--surface-raised); }
.pro-step-dots { display: flex; gap: 5px; }
.pro-step-dots span { height: 4px; width: 6px; border-radius: var(--radius-pill); background: var(--text-faint); transition: width var(--dur-slow) var(--ease-out), background var(--dur-base); }
.pro-step-dots span[data-state=done] { background: var(--text-primary); }
.pro-step-dots span[data-state=current] { width: 22px; background: var(--text-primary); }
.pro-step-form { display: flex; flex-direction: column; gap: 18px; }
.pro-step-body[data-dir=in] { animation: pro-step-in .45s var(--ease-out) both; }
.pro-step-body[data-dir=back] { animation: pro-step-back .45s var(--ease-out) both; }
.pro-step-shake[data-shake=a] { animation: pro-shake-a .4s both; }
.pro-step-shake[data-shake=b] { animation: pro-shake-b .4s both; }
.pro-step-optional { margin: 0 0 8px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-step-title { margin: 0; font-family: var(--font-display); font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl)); font-weight: 700; line-height: 1.12; letter-spacing: var(--tracking-display); text-wrap: balance; outline: none; }
.pro-step[data-compact] .pro-step-title { font-size: var(--text-xl); }
.pro-step-lead { margin-top: 10px; font-size: var(--text-md); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.pro-step-content { display: grid; gap: 14px; margin-top: 24px; }
.pro-step-content label { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.pro-step-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 759px) {
  .pro-step-actions { flex-direction: column-reverse; }
  .pro-step-actions .pro-btn { width: 100%; }
}

/* ── AccessState ─────────────────────────────────────────────────────────── */
.pro-access { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: clamp(32px, 9vh, 88px) auto; padding: 0 8px; text-align: center; color: var(--text-primary); animation: pro-fade .4s var(--ease-out) both; }
.pro-access-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand-light); }
.pro-access[data-reason=ERROR] .pro-access-mark { color: var(--danger); }
.pro-access[data-tone=discovery] .pro-access-mark { background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-access-title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.25; letter-spacing: var(--tracking-display); text-wrap: balance; }
.pro-access-lead { margin: 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.pro-access .pro-btn { margin-top: 10px; }

/* ── ContextBar ──────────────────────────────────────────────────────────── */
.pro-context { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 10px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font-family: var(--font-body); }
.pro-context-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-avatar); object-fit: cover; background: var(--surface-raised); color: var(--text-subtle); }
.pro-context-text { flex: 1; min-width: 0; margin: 0; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-context-lead, .pro-context-role { color: var(--text-muted); }
.pro-context-text strong { font-weight: 650; }
.pro-context-change { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--brand-wash); color: var(--brand-pale); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-context-change:hover { background: var(--brand-haze); }
/* Forme courte sous 460 px (PLAN §1.3) : « Vous agissez pour » reste lu, en sur-titre, au-dessus du nom et du rôle. */
.pro-context-who { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 459px) {
  .pro-context { border-radius: var(--radius-lg); }
  .pro-context-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
  .pro-context-lead { font-size: var(--text-xs); }
  .pro-context-who { white-space: nowrap; }
}

/* ── TalentSwitcher ──────────────────────────────────────────────────────── */
.pro-switch-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pro-switch-row { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border: 0; border-radius: var(--radius-lg); background: var(--surface-base); color: var(--text-primary); text-align: left; font: inherit; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-switch-row:hover:not(:disabled) { background: var(--surface-hover); }
.pro-switch-row[aria-pressed=true] { background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-switch-row[aria-pressed=true] > :last-child { color: var(--brand-light); }
.pro-switch-row > img { flex: none; width: 40px; height: 40px; border-radius: var(--radius-avatar); object-fit: cover; }
.pro-switch-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-switch-text strong { font-size: var(--text-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-switch-text span { font-size: var(--text-sm); color: var(--text-muted); }
.pro-switch-row > :last-child { flex: none; color: var(--text-subtle); }
.pro-switch-state { font-size: var(--text-sm); }
/* La pastille « vérifié » d'une ligne cliquable est un repère, pas un second bouton : le toucher ouvre la ligne. */
:is(button, a) db-verified { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .pro-dialog-shade, .pro-dialog, .pro-step-body, .pro-step-shake, .pro-access, .pro-step-dots span, .pro-btn, .pro-switch-row { animation: none !important; transition: none !important; }
}

/* Navigation mobile des espaces Pro (mission multi-Talents §9) : « Changer d'espace », en-tête d'identité, « Plus » et
   « Mes Talents ». Jetons de db-tokens.css seulement (clair et sombre résolus par data-mode), aucune couleur nouvelle,
   aucune animation propre : les feuilles gardent celles de SimpleDialog (pro-ui.css), coupées si le mouvement est réduit.
   À charger APRÈS shared/pro-ui.css (familles pro-workspace et delegated-context).

   Disposition (décision de l'agent 3) : barre basse et feuilles sous 760 px (téléphones de 320 à 430 px, en portrait comme
   en paysage) ; de 760 à 1179 px, la tablette garde le rail et l'arbre réduit des Talents (agent 2), car la largeur d'un
   iPad (768 px en portrait, 1024 px en paysage) permet un rail de 72 px et une colonne de lecture confortable, et un même
   espace garde la même navigation d'une orientation à l'autre. Sur tablette, « Changer d'espace » s'ouvre en panneau
   latéral (variante `panel` de SimpleDialog) et « Mes Talents » passe en deux colonnes. */

/* ── Changer d'espace (TalentSwitcher étendu) ──────────────────────────────── */
.pro-switch-text strong { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pro-switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-switch-heading { margin: 6px 0 -4px; padding: 16px 4px 0; border-top: 1px solid var(--line); font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-dialog-body label.pro-switch-search, label.pro-mtl-search { position: relative; display: block; }
:is(.pro-switch-search, .pro-mtl-search) db-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
label:is(.pro-switch-search, .pro-mtl-search) > input[type=search] { box-sizing: border-box; width: 100%; min-height: 46px; margin: 0; padding: 10px 14px 10px 42px; border: 0; border-radius: var(--radius-md); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--field-rim); color: var(--text-primary); font: 400 var(--text-base)/1.3 var(--font-body); -webkit-appearance: none; appearance: none; }
label:is(.pro-switch-search, .pro-mtl-search) > input[type=search]::placeholder { color: var(--text-subtle); }
label:is(.pro-switch-search, .pro-mtl-search) > input[type=search]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-switch-badge { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font: 700 var(--text-2xs)/1 var(--font-body); }
.pro-switch-empty { margin: 4px 0; padding: 12px 4px; font-size: var(--text-sm); color: var(--text-muted); text-align: center; text-wrap: pretty; }
.pro-switch-add { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--radius-lg); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--brand-light); font: 600 var(--text-base)/1.2 var(--font-body); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-switch-add:hover:not(:disabled) { background: var(--surface-hover); }
.pro-switch-add:disabled { opacity: .55; cursor: default; }
.pro-switch-add:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Longues listes seulement (plus de 20 Talents) : le navigateur ne dessine que les lignes proches de l'écran. */
.pro-space-sheet .pro-switch-list:has(> li:nth-child(21)) > li { content-visibility: auto; contain-intrinsic-size: auto 60px; }
/* Feuille : la poignée, le voile, la croix, Échap et le bouton retour ferment ; pas de second bouton « Fermer » en bas. */
@media (max-width: 759px) {
  .pro-space-sheet .pro-dialog-actions { display: none; }
}

/* ── « Plus » ──────────────────────────────────────────────────────────────── */
.pro-more-list { display: grid; gap: 2px; margin: 0 -6px; padding: 0; list-style: none; }
.pro-more-row { box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font: 500 var(--text-base)/1.3 var(--font-body); text-align: start; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-more-row:hover { background: var(--surface-hover); }
.pro-more-row > [data-ce=db-icon] db-icon { color: var(--text-secondary); }
.pro-more-row > [data-ce=db-icon]:last-child db-icon { color: var(--text-subtle); }
.pro-more-row[aria-current=page] { background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-more-row[aria-current=page] > [data-ce=db-icon] db-icon { color: var(--brand-light); }
.pro-more-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-more-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ── En-tête d'identité ───────────────────────────────────────────────────── */
.pro-mhead { position: sticky; inset-block-start: 0; z-index: 6; flex: none; box-sizing: border-box; display: flex; align-items: center; gap: 2px; min-height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--glass-header-fill); backdrop-filter: var(--glass-header-filter); -webkit-backdrop-filter: var(--glass-header-filter); box-shadow: var(--glass-header-rim); color: var(--text-primary); font-family: var(--font-body); }
.pro-mhead-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px 4px 6px; border: 0; border-radius: var(--radius-lg); background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-mhead-id:hover, .pro-mhead-id[aria-expanded=true] { background: var(--surface-hover); }
.pro-mhead-id img { flex: none; width: 34px; height: 34px; border-radius: var(--radius-avatar); object-fit: cover; }
.pro-mhead-text { min-width: 0; display: grid; gap: 1px; line-height: 1.2; }
.pro-mhead-text strong { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--text-md); font-weight: 650; }
.pro-mhead-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-mhead-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--text-muted); }
.pro-mhead-id > [data-ce=db-icon] db-icon { color: var(--text-subtle); }
.pro-mhead-icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-mhead-icon:hover { background: var(--surface-hover); color: var(--text-primary); }
.pro-mhead-badge { position: absolute; top: 5px; left: 23px; box-sizing: border-box; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font: 700 var(--text-2xs)/1 var(--font-body); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--tabbar-badge-ring); }
.pro-mhead :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.pro-mhead .pro-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── « Mes Talents » ──────────────────────────────────────────────────────── */
.pro-mtl { max-width: 960px; }
.pro-mtl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pro-mtl-head h1 { min-width: 0; margin: 0; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; letter-spacing: var(--tracking-display); overflow-wrap: anywhere; }
.pro-mtl-plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-md); background: var(--btn-brand-bg); color: var(--btn-brand-fg); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.pro-mtl-plus:hover { background: var(--btn-brand-hover, var(--btn-brand-bg)); }
.pro-mtl-plus:active { transform: scale(.96); }
.pro-mtl-lead { margin: 8px 0 0; max-width: 52ch; font-size: var(--text-base); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
label.pro-mtl-search { margin-top: 18px; }
.pro-mtl-label { margin: 26px 0 10px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-mtl-empty { margin: 28px 0; font-size: var(--text-sm); color: var(--text-muted); text-align: center; text-wrap: pretty; }
.pro-mtl-cards, .pro-mtl-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pro-mtl-cards > li { min-width: 0; }
.pro-mtl-cards:has(> li:nth-child(21)) > li { content-visibility: auto; contain-intrinsic-size: auto 124px; }
.pro-mtl-head + .pro-mtl-cards, .pro-mtl-head + .pro-access { margin-top: 22px; }
.pro-mtl-card { box-sizing: border-box; display: grid; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font: inherit; text-align: start; cursor: pointer; overflow: hidden; transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.pro-mtl-card:hover { background: var(--surface-hover); }
.pro-mtl-card:active { transform: scale(.99); }
.pro-mtl-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-mtl-main { box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 12px 12px 14px; }
.pro-mtl-main img { flex: none; width: 48px; height: 48px; border-radius: var(--radius-avatar); object-fit: cover; }
.pro-mtl-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pro-mtl-text strong { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--text-md); font-weight: 600; line-height: 1.25; }
.pro-mtl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-mtl-text > span { font-size: var(--text-sm); line-height: 1.35; color: var(--text-muted); overflow-wrap: anywhere; }
.pro-mtl-main > [data-ce=db-icon] db-icon { color: var(--text-subtle); }
.pro-mtl-open { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-top: 1px solid var(--line); font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.pro-mtl-open db-icon { color: var(--text-subtle); }
.pro-mtl-rows { gap: 6px; }
.pro-mtl-row { box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); }
.pro-mtl-row img { flex: none; width: 40px; height: 40px; border-radius: var(--radius-avatar); object-fit: cover; opacity: .6; }
.pro-mtl-row .pro-mtl-text strong { color: var(--text-secondary); font-weight: 500; }
.pro-mtl-add { width: 100%; margin-top: 18px; color: var(--brand-light); }
.pro-mtl-skeleton { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 124px; padding: 0 16px 0 76px; box-sizing: border-box; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); }
.pro-mtl-skeleton span { display: block; height: 12px; width: 52%; border-radius: var(--radius-pill); background: var(--skeleton-base); }
.pro-mtl-skeleton span + span { width: 34%; }
@media (min-width: 600px) {
  .pro-mtl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-mtl-add { width: auto; }
}

/* ── Barre basse à cinq onglets sans bouton d'action (espace Talent) ───────── */
/* Mêmes réglages que BottomNav.css pour la barre Talent avec action : « Expériences » reste entier de 320 à 430 px. */
@media (max-width: 420px) {
  [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) { --tabbar-label-size: 10px; --tabbar-inset-x: 8px; --tabbar-pad: 4px; }
  [data-theme="defaultTheme"] [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)), :root:not([data-theme]) [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) { --tabbar-label-tracking: 0; }
  html:not([data-tabbar-state="compact"]) [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) [data-tab] { overflow: visible !important; }
  [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) [data-tab] > span:last-child { max-width: calc(100% + 10px) !important; text-overflow: clip !important; }
}
@media (max-width: 365px) {
  [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) { --tabbar-label-size: 9.5px; }
}
@media (max-width: 340px) {
  [data-tabbar][data-action="0"]:has([data-tab]:nth-of-type(5)) { --tabbar-label-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .pro-switch-add, .pro-more-row, .pro-mhead-id, .pro-mhead-icon, .pro-mtl-plus, .pro-mtl-card { transition: none !important; }
  .pro-mtl-card:active, .pro-mtl-plus:active { transform: none; }
}

/* Coque des espaces Pro : même structure que l'espace Marque (Connected.css, .brand-workspace), jetons de db-tokens.css. */
.pro-app { min-height: 100%; }
.pro-workspace { position: fixed; inset: 0; display: flex; background: var(--surface-sunken); color: var(--text-primary); font: var(--text-base)/1.5 var(--font-body); }
.pro-sidebar { position: relative; z-index: 5; height: 100%; flex-shrink: 0; }
.pro-workspace-body { flex: 1; min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at top left, var(--brand-film), transparent 45%) var(--surface-app); }
.pro-workspace-top { box-sizing: border-box; width: 100%; max-width: 1240px; margin-inline: auto; padding: 14px clamp(16px, 4vw, 48px) 0; }
.pro-workspace-top .pro-context { max-width: 640px; }
.pro-workspace-error { margin: 10px 0 0; color: var(--danger); font-size: var(--text-sm); }
.pro-workspace-outlet { position: relative; flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.pro-section { box-sizing: border-box; max-width: 1240px; margin-inline: auto; padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 48px) 120px; }
.pro-section-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance; }
.pro-section-head p { margin: 10px 0 0; max-width: 60ch; font-size: var(--text-md); color: var(--text-secondary); text-wrap: pretty; }
.pro-section-status { margin: 40px 0; color: var(--text-secondary); }
.pro-mobile-heading { position: sticky; inset-block-start: 0; z-index: 6; flex: none; min-height: calc(56px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; padding: env(safe-area-inset-top) 16px 0; background: var(--glass-header-fill); backdrop-filter: var(--glass-header-filter); -webkit-backdrop-filter: var(--glass-header-filter); box-shadow: var(--glass-header-rim); font-weight: 600; }
.pro-mobile-heading img { width: 26px; height: 26px; filter: var(--mark-filter); }
.pro-mobile-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; }
.pro-mobile-sheet { position: fixed; inset: 0; z-index: 90; }
.pro-workspace[data-pro-layout=mobile] .pro-section { padding: 22px 16px calc(120px + env(safe-area-inset-bottom)); }
.pro-workspace[data-pro-layout=mobile] .pro-workspace-top { padding: 12px 16px 0; }
.pro-workspace[data-pro-layout=mobile] .pro-section-head h1 { font-size: var(--text-4xl); }
/* Mission multi-Talents (§9.5, agent 3) : jamais de défilement horizontal sur téléphone ; pendant une saisie, la barre basse
   s'efface pour laisser la place au clavier virtuel (le champ reste visible), puis revient. Styles des feuilles, de
   l'en-tête d'identité et de « Mes Talents » : pro-workspace/mobile/mobile.css. */
.pro-workspace[data-pro-layout=mobile] .pro-workspace-outlet { overflow-x: hidden; overscroll-behavior-y: contain; }
.pro-workspace[data-pro-layout=mobile]:has(.pro-workspace-body :is(input:not([type=checkbox], [type=radio], [type=button], [type=submit], [type=range], [type=color], [type=file]), textarea, select, [contenteditable=true]):focus) .pro-mobile-tabs { display: none; }

/* Mode « focus » (onboarding, O1) : sans sidebar, une colonne centrée, sortie toujours visible. */
.pro-focus { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at top, var(--brand-film), transparent 55%) var(--surface-app); color: var(--text-primary); font: var(--text-base)/1.5 var(--font-body); }
.pro-focus-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 0; }
.pro-focus-bar img { filter: var(--mark-filter); }
.pro-focus-exit { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: var(--radius-md); color: var(--text-subtle); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.pro-focus-exit:hover { color: var(--text-primary); background: var(--glass-surface-fill); }
.pro-focus-main { flex: 1; display: flex; justify-content: center; padding: clamp(16px, 5vh, 48px) 16px calc(24px + env(safe-area-inset-bottom)); }
.pro-focus-main > .pro-section { width: 100%; max-width: 560px; padding: 0; }
.pro-workspace a:focus-visible, .pro-focus a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.db-delegation-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr));gap:8px 16px;margin:14px 0}
.db-delegation-permissions fieldset{min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);padding:8px 12px}
.db-delegation-permissions legend{padding:0 5px;color:var(--text-primary);font-size:var(--text-sm);font-weight:650}
.db-delegation-permissions label{display:flex;align-items:flex-start;gap:9px;min-height:32px;line-height:1.4;padding:6px 0;color:var(--text-secondary);cursor:pointer;overflow-wrap:anywhere}
.db-delegation-permissions input{flex:none;accent-color:var(--brand-light);margin-top:2px}
.db-delegation-permission-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px 16px;margin:8px 0 0;line-height:1.5}
.db-delegation-permission-summary h4{margin:0 0 4px;font-size:var(--text-sm);color:var(--text-primary)}
.db-delegation-permission-summary ul{margin:0;padding-left:20px}
/* Recette Q-Échanges (D-QX-7) : dans une fenêtre simple ou un assistant, pro-ui.css habille tous les champs (pleine
   largeur, 46 px) ; une case à cocher doit rester une case, à gauche de son libellé, sinon chaque autorisation devient un grand bloc vide. */
.pro-dialog-body .db-delegation-permissions label,.pro-step-content .db-delegation-permissions label{display:flex;gap:9px;font-weight:500}
.pro-dialog-body .db-delegation-permissions input[type=checkbox],.pro-step-content .db-delegation-permissions input[type=checkbox]{box-sizing:border-box;width:18px;height:18px;min-height:0;padding:0;border:0;border-radius:4px;background:none;box-shadow:none}
/* Recette Q-Échanges (D-QX-8) : la messagerie flottante du Talent (z-index 300) couvrait le bouton « Enregistrer les
   autorisations » de cette fenêtre, la plus haute de l'écran ; elle s'efface tant que la fenêtre est ouverte. */
body:has(.pro-dialog-shade .db-delegation-permissions) section[aria-label][data-visual-owner]{visibility:hidden}

/* Rubriques M1 des espaces Pro (Vue d'ensemble, Mes talents, Collaborations, Profil professionnel).
   Jetons de db-tokens.css seulement, aucune couleur nouvelle ; grammaire des primitives F1 (pro-ui.css) ; lignes plutôt
   qu'accordéons ; une action principale par écran ; aucune animation infinie. */

.pro-m1 { display: grid; gap: clamp(22px, 4vw, 36px); }
.pro-m1-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pro-m1-head .pro-section-head { flex: 1 1 360px; }
.pro-m1-head .pro-btn { flex: none; }
.pro-m1-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pro-m1-block { display: grid; gap: 12px; }
.pro-m1-block > h2 { margin: 0; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-m1-muted { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.pro-m1-alert { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--glass-surface-fill); color: var(--danger); font-size: var(--text-sm); }

/* Lignes (À traiter, démarrage, récapitulatif, collaborations) : une surface, des filets, rien de chargé. */
.pro-m1-rows { margin: 0; padding: 0; list-style: none; border-radius: var(--radius-xl); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pro-m1-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; }
.pro-m1-row + .pro-m1-row { box-shadow: inset 0 1px 0 var(--line); }
.pro-m1-row-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); color: var(--brand-light); }
.pro-m1-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-m1-row-text strong { font-weight: 600; overflow-wrap: anywhere; }
.pro-m1-row-text span { font-size: var(--text-sm); color: var(--text-muted); }
/* Recette §39 (Q-Navigateur) : une ligne avec des actions passe ses actions à la ligne quand le texte n'a plus 14em
   (768 px avec le rail : le nom du talent tombait à un mot par ligne et le statut chevauchait le contexte). */
.pro-m1-row:has(> .pro-m1-row-actions) { flex-wrap: wrap; row-gap: 8px; }
.pro-m1-row:has(> .pro-m1-row-actions) > .pro-m1-row-text { flex: 1 1 14em; }
.pro-m1-row:has(> .pro-m1-row-actions) > .pro-m1-row-actions { margin-left: auto; }
.pro-m1-link { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--brand-pale); font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer; }
.pro-m1-link:hover { background: var(--brand-wash); }
.pro-m1-link:focus-visible, .pro-m1-card :focus-visible, .pro-m1-tabs :focus-visible, .pro-m1-choice:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Démarrage : l'état de chaque étape (fait, à faire, en attente). */
.pro-m1-row[data-state=DONE] .pro-m1-row-icon { background: var(--ok-wash); color: var(--ok); }
.pro-m1-row[data-state=WAITING] .pro-m1-row-icon { background: var(--warn-wash); color: var(--warn); }
.pro-m1-row[data-state=DONE] .pro-m1-row-text strong { color: var(--text-muted); }
.pro-m1-tag { flex: none; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); color: var(--text-subtle); font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Récapitulatif : quelques totaux réels, jamais un mur de statistiques. */
.pro-m1-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pro-m1-stat { display: grid; gap: 2px; min-width: 132px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; text-align: left; font: inherit; border: 0; cursor: default; }
button.pro-m1-stat { cursor: pointer; }
button.pro-m1-stat:hover { background: var(--surface-hover); }
.pro-m1-stat strong { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; letter-spacing: var(--tracking-display); }
.pro-m1-stat span { font-size: var(--text-sm); color: var(--text-muted); }

/* Découverte : les rubriques qui s'ouvriront avec un talent. */
.pro-m1-discovery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pro-m1-discovery li { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); }
.pro-m1-discovery li > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.pro-m1-discovery li > span svg { color: var(--brand-light); }
.pro-m1-discovery li p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); text-wrap: pretty; }
.pro-m1-note { margin: 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); color: var(--text-secondary); font-size: var(--text-sm); }

/* Cartes de talents. */
.pro-m1-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pro-m1-card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--radius-xl); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); }
.pro-m1-card[data-attention] { box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-m1-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pro-m1-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-avatar); background: var(--brand-wash); color: var(--brand-pale); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; object-fit: cover; }
.pro-m1-identity > div { min-width: 0; display: grid; gap: 2px; }
.pro-m1-identity strong { font-size: var(--text-md); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-m1-identity span { font-size: var(--text-sm); color: var(--text-muted); }
.pro-m1-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pro-m1-facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); color: var(--text-secondary); font-size: var(--text-xs); }
.pro-m1-facts li[data-tone=soon] { background: var(--warn-wash); color: var(--warn); }
.pro-m1-facts li[data-tone=badge] { background: var(--brand-wash); color: var(--brand-pale); }
.pro-m1-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-m1-shortcut { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--text-primary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-m1-shortcut:hover:not(:disabled) { background: var(--surface-hover); }
.pro-m1-shortcut:disabled { opacity: .55; cursor: default; }
.pro-m1-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }

/* Filtres de Mes talents (seulement quand ils discriminent). */
.pro-m1-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pro-m1-filters .pro-m1-toggle { width: auto; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); }
.pro-m1-filters input[type=search] { box-sizing: border-box; flex: 1 1 240px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--field-rim); color: var(--text-primary); font: inherit; }

/* Onglets de Collaborations : une rangée défilante sur mobile. */
.pro-m1-tabs { display: flex; gap: 6px; margin: 0; padding: 4px; overflow-x: auto; border-radius: var(--radius-pill); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: none; }
.pro-m1-tabs::-webkit-scrollbar { display: none; }
/* Recette G3 (Q1, 375 px) : les cinq onglets défilaient, coupés au bord sans le dire. Sous 560 px, ils tiennent en deux
   lignes (trois, puis deux élargis), sans défilement ni onglet caché. */
@media (max-width: 559px) {
  .pro-m1-tabs { flex-wrap: wrap; overflow-x: visible; border-radius: var(--radius-lg); }
  .pro-m1-tab { flex: 1 1 calc(33.333% - 6px); justify-content: center; padding: 0 8px; }
}
.pro-m1-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-m1-tab[aria-selected=true] { background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shadow-raised); }
.pro-m1-status { flex: none; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 650; background: var(--glass-surface-fill); color: var(--text-secondary); }
.pro-m1-status[data-tone=success] { background: var(--ok-wash); color: var(--ok); }
.pro-m1-status[data-tone=waiting] { background: var(--brand-wash); color: var(--brand-pale); }
.pro-m1-status[data-tone=paused] { background: var(--warn-wash); color: var(--warn); }
.pro-m1-row[data-focus] { background: var(--brand-wash); }
.pro-m1-row-actions { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pro-m1-more { justify-self: center; }

/* Choix d'une fenêtre ou d'une étape (talent trouvé, modèle, nature). */
.pro-m1-choices { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pro-m1-choice { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 0; border-radius: var(--radius-lg); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); text-align: left; font: inherit; cursor: pointer; }
.pro-m1-choice:hover { background: var(--surface-hover); }
.pro-m1-choice[aria-pressed=true], .pro-m1-choice[aria-checked=true] { background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-m1-choice > span:not(.pro-m1-row-icon) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-m1-choice small { font-size: var(--text-sm); color: var(--text-muted); }
.pro-m1-fieldset { margin: 0; padding: 0; border: 0; }
.pro-m1-fieldset legend { margin-bottom: 8px; }
.pro-m1-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-m1-chips .pro-m1-choice { width: auto; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); }
.pro-m1-summary-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pro-m1-summary-list li { display: flex; gap: 10px; align-items: center; }
.pro-m1-summary-list li svg { color: var(--ok); flex: none; }
/* Message de la demande, relu avant l'envoi : une citation sobre, le texte du professionnel tel quel. */
.pro-m1-quote { margin: 4px 0 0; padding: 12px 16px; border-left: 3px solid var(--line-strong, var(--line)); border-radius: var(--radius-sm, 8px);
  background: var(--glass-surface-fill); color: var(--text-primary); font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Historique de l'acteur : un titre de Cercle au-dessus de la liste existante (DelegationAudit). */
.pro-m1-history-title { margin: 0; font-size: var(--text-sm); font-weight: 650; color: var(--text-primary); }

/* Fiche professionnelle (privée au compte, montrée aux talents dans une demande ou une conversation). */
.pro-m1-profile { display: grid; gap: 18px; max-width: 760px; }
/* « Modifier mon profil » (correctif G3) : les trois groupes de l'onboarding dans une seule fenêtre, séparés d'un filet. */
.pro-m1-edit-group { display: grid; gap: 14px; }
.pro-m1-edit-group > h3 { margin: 0; }
.pro-m1-edit-group + .pro-m1-edit-group { padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); }
.pro-m1-edit-group .pro-choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-m1-edit-group .pro-choices .pro-choice { min-height: 46px; font-size: var(--text-sm); }
/* Fenêtre longue : « Enregistrer » reste visible pendant le défilement. */
.pro-dialog:has(.pro-m1-edit-group) .pro-dialog-actions { position: sticky; bottom: -22px; z-index: 1; margin-inline: -24px; margin-bottom: -22px; padding: 14px 24px 22px; background: var(--surface-deep); box-shadow: 0 -1px 0 var(--line); }
@media (max-width: 760px) { .pro-dialog:has(.pro-m1-edit-group) .pro-dialog-actions { bottom: calc(-18px - env(safe-area-inset-bottom)); margin-inline: -18px; margin-bottom: calc(-18px - env(safe-area-inset-bottom)); padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); } }
.pro-m1-fiche { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface-base); box-shadow: inset 0 0 0 1px var(--line); }
.pro-m1-fiche[data-compact] { padding: 16px; gap: 10px; }
.pro-m1-fiche p { margin: 0; color: var(--text-secondary); text-wrap: pretty; overflow-wrap: anywhere; }
.pro-m1-fiche a { color: var(--brand-pale); overflow-wrap: anywhere; }
.pro-m1-fields { margin: 0; padding: 0; list-style: none; }
.pro-m1-fields .pro-m1-row-text span { color: var(--text-secondary); white-space: pre-line; overflow-wrap: anywhere; }
.pro-m1-fields .pro-m1-row-text small { color: var(--text-subtle); font-size: var(--text-xs); }

@media (max-width: 759px) {
  .pro-m1-head .pro-btn { width: 100%; }
  .pro-m1-row { flex-wrap: wrap; row-gap: 2px; padding: 12px 14px; }
  /* Recette G2 (375 px, ES) : le texte garde au moins 10em ; un libellé d'action long passe à la ligne, aligné à droite,
     au lieu de couper les mots du texte. */
  .pro-m1-row-text { flex: 1 1 10em; }
  .pro-m1-row > .pro-m1-link { margin-left: auto; }
  .pro-m1-row-actions { width: 100%; justify-content: stretch; }
  .pro-m1-row-actions .pro-btn, .pro-m1-row-actions .pro-m1-link { flex: 1; }
  .pro-m1-cards { grid-template-columns: 1fr; }
  .pro-m1-stat { flex: 1 1 calc(50% - 10px); min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-m1 * { transition: none !important; animation: none !important; }
}

/* Scène animée des onboardings Pro (Mission Pro, O1). Grammaire visuelle reprise de talent-entry (TalentEntry.tsx) :
   média à gauche qui se resserre pendant la saisie, voile, deux lumières `--brand-mist`, carte d'identité à la fin.
   Images clés copiées sous le préfixe `pro-ob-` (itIn, itBack, itRise, itChip) : TalentEntry.css force le mode sombre et
   règle html/body, cette feuille ne règle que `.pro-ob`. Jetons de db-tokens.css seulement, clair et sombre, aucune
   animation infinie ; tout s'arrête avec prefers-reduced-motion. */

@keyframes pro-ob-in { from { opacity: 0; transform: translate3d(18px, 0, 0) } to { opacity: 1; transform: none } }
@keyframes pro-ob-back { from { opacity: 0; transform: translate3d(-18px, 0, 0) } to { opacity: 1; transform: none } }
@keyframes pro-ob-rise { from { opacity: 0; transform: translate3d(0, 12px, 0) } to { opacity: 1; transform: none } }
@keyframes pro-ob-chip { from { opacity: 0; transform: scale(.85) } to { opacity: 1; transform: none } }

.pro-ob { position: relative; min-height: 100dvh; overflow-x: clip; background: var(--surface-sunken); color: var(--text-primary); font-family: var(--font-body); }
.pro-ob-light { position: fixed; inset: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease-out); }
.pro-ob-light[data-light=a] { background: radial-gradient(70% 70% at 0% 100%, var(--brand-mist), transparent 70%); }
.pro-ob-light[data-light=b] { background: radial-gradient(55% 45% at 50% 58%, var(--brand-mist), transparent 72%); }
.pro-ob-stage { position: fixed; top: 0; left: 0; bottom: 0; overflow: hidden; contain: strict; transition: width 1s var(--ease-out); }
.pro-ob-stage-mask { position: absolute; inset: 0; }
.pro-ob-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.pro-ob-scrim { position: absolute; inset: 0; transition: opacity .9s var(--ease-out);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-sunken) 62%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--surface-sunken) 72%, transparent) 70%, var(--surface-sunken) 100%); }
.pro-ob-copy { position: absolute; left: clamp(24px, 3.4vw, 56px); right: 18%; bottom: clamp(44px, 9vh, 96px); animation: pro-ob-rise .7s var(--ease-out) both; }
.pro-ob-copy h2 { margin: 0; max-width: 14ch; font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.pro-ob-copy p { margin: 14px 0 0; max-width: 36ch; font-size: var(--text-lg); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.pro-ob-card { position: absolute; left: 50%; top: 50%; width: min(380px, 82%); text-align: center; transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.pro-ob-avatar { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: var(--radius-avatar); background: linear-gradient(135deg, var(--primary-gradient-1), var(--primary-gradient-2)); color: var(--on-brand); font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 800; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent), 0 34px 80px -24px var(--brand-scrim); }
.pro-ob-kicker { margin-top: 22px; font-size: var(--text-2xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.pro-ob-name { margin-top: 8px; font-family: var(--font-display); font-size: clamp(30px, 2.8vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.pro-ob-name[data-empty] { color: var(--text-faint); }
.pro-ob-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 28px; margin-top: 14px; }
.pro-ob-chips span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--radius-pill); background: var(--glass-chip-light-fill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); animation: pro-ob-chip .35s var(--ease-spring) both; }
.pro-ob-main { position: relative; z-index: 2; box-sizing: border-box; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(18px + env(safe-area-inset-top)) clamp(18px, 4vw, 56px) calc(24px + env(safe-area-inset-bottom)); transition: padding-left 1s var(--ease-out); }
.pro-ob-content { width: 100%; max-width: 520px; margin-inline: auto; }
/* Points d'accueil et de découverte : une ligne par point, icône dans une pastille. */
.pro-ob-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pro-ob-points li { display: flex; align-items: center; gap: 12px; font-size: var(--text-md); color: var(--text-secondary); animation: pro-ob-rise .5s var(--ease-out) both; }
.pro-ob-points li > span:first-child { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand-light); }

/* ── Hôte en mode focus (coque F1) : la scène occupe l'écran, la barre « Plus tard » reste au-dessus ─────────── */
.pro-focus:has(.pro-ob-host) .pro-focus-bar { position: fixed; inset: 0 0 auto; z-index: 5; pointer-events: none; }
.pro-focus:has(.pro-ob-host) .pro-focus-bar > * { pointer-events: auto; }
.pro-focus:has(.pro-ob-host) .pro-focus-main { display: block; padding: 0; }
.pro-focus:has(.pro-ob-host) .pro-ob-main { padding-top: calc(72px + env(safe-area-inset-top)); }
.pro-ob-host .pro-step { background: transparent; }
.pro-ob-state { margin: 40px auto; max-width: 520px; color: var(--text-secondary); text-align: center; }
.pro-ob-state .pro-btn { margin-top: 16px; }
.pro-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Champs ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.pro-ob-fields { display: grid; gap: 18px; }
.pro-ob-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.pro-field { position: relative; display: grid; gap: 6px; }
.pro-field > label[for], .pro-choices > legend, .pro-links > legend, .pro-group > legend { display: flex; align-items: baseline; gap: 8px; padding: 0; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.pro-field-optional { font-size: var(--text-2xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
/* Étape entière facultative (« Facultatif » au-dessus du titre) : la mention n'est pas répétée sur chaque champ (directive 2). */
.pro-step-shake:has(> .pro-step-optional) .pro-field-optional { display: none; }
.pro-input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font: var(--text-md)/1.4 var(--font-body); transition: box-shadow var(--dur-fast) var(--ease-standard); }
.pro-input::placeholder { color: var(--text-faint); }
.pro-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.pro-input[aria-invalid=true] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.pro-textarea { min-height: 112px; resize: vertical; }
select.pro-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-subtle) 50%), linear-gradient(135deg, var(--text-subtle) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.pro-field-hint { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.pro-field-error { margin: 0; font-size: var(--text-sm); color: var(--danger); }
.pro-field-count { position: absolute; right: 10px; top: 0; font-size: var(--text-2xs); color: var(--text-faint); }
.pro-choices, .pro-links, .pro-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.pro-choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.pro-choices .pro-choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-md); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.pro-choice:hover { background: var(--surface-hover); }
/* Le bouton radio natif, invisible, couvre toute la carte (fusion F1 W3d) : depuis que la règle des champs de pro-ui.css
   épargne les cases et les radios (43fd8a42), il gardait sa taille native de 13 px sous l'icône, qui prenait alors le
   clic de la carte (recette §7, M-02, M-03, M-10). Il reçoit lui-même le clic : toute la carte le coche. */
.pro-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pro-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-choice[data-on] { background: var(--brand-wash); box-shadow: inset 0 0 0 1.5px var(--brand-light); }
.pro-choice-icon { flex: none; display: inline-flex; color: var(--brand-light); }
/* Choix multiple (types de structure) : une coche ronde à droite de la carte, pleine quand le type est choisi. */
.pro-choices[data-multiple] .pro-choice-label { flex: 1 1 auto; min-width: 0; }
.pro-choice-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--on-brand); transition: background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.pro-choice[data-on] .pro-choice-check { background: var(--brand); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .pro-choice-check { transition: none; } }
.pro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-secondary); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-chip[aria-pressed=true] { background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-light); color: var(--text-primary); }
.pro-link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 44px; gap: 8px; }
.pro-icon-btn, .pro-add, .pro-link-btn { border: 0; background: none; color: var(--text-secondary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-icon-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-md); }
.pro-icon-btn:hover, .pro-add:hover, .pro-link-btn:hover { color: var(--text-primary); }
.pro-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; }
.pro-link-btn { min-height: 36px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.pro-field :focus-visible, .pro-chips :focus-visible, .pro-links :focus-visible, .pro-path:focus-visible, .pro-settings :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── Chemins (premier talent, équipe, vérification) ─────────────────────────────────────────────────────────── */
.pro-paths { display: grid; gap: 8px; }
.pro-path { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
.pro-path:hover { background: var(--surface-hover); }
.pro-path-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--brand-wash); color: var(--brand-light); }
.pro-path-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-path-text strong { font-size: var(--text-md); font-weight: 600; }
.pro-path-text span { font-size: var(--text-sm); color: var(--text-muted); }
.pro-verify { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro-verify > .pro-path { grid-column: 1 / -1; }
.pro-verify-col { padding: 14px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
.pro-verify-col[data-after] { box-shadow: inset 0 0 0 1px var(--brand-light-ring-soft); }
.pro-verify-title { margin: 0 0 8px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.pro-verify ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Couleurs (grille exportée de la galerie d'Univers) ──────────────────────────────────────────────────────── */
.pal-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.pal-swatch { position: relative; aspect-ratio: 1; min-height: 44px; border: 0; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--circle-accent-1), var(--circle-accent-2)); box-shadow: inset 0 0 0 1px var(--line); color: var(--circle-ink); cursor: pointer; transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.pal-swatch:hover:not(:disabled) { transform: translateY(-1px); }
.pal-swatch[aria-checked=true] { box-shadow: 0 0 0 2px var(--surface-app), 0 0 0 4px var(--circle-accent-2); }
.pal-swatch > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pal-swatch:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.pro-colors { display: grid; gap: 12px; }
.pro-colors-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--text-sm); color: var(--text-muted); }
.pro-colors-preview { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
.pro-colors-chip { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--brand-wash); color: var(--brand-light); font-size: var(--text-sm); font-weight: 600; }
.pro-colors-button { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-size: var(--text-sm); font-weight: 600; transition: background var(--dur-slow) var(--ease-out); }

/* ── Médias (logo, couverture : routes organization-media existantes) ────────────────────────────────────────── */
.pro-media-list { display: grid; gap: 8px; }
.pro-media { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
.pro-media-frame { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-subtle); }
.pro-media[data-slot=COVER] .pro-media-frame { width: 84px; }
.pro-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.pro-media-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-media-text strong { font-size: var(--text-md); }
.pro-media-text span { font-size: var(--text-sm); color: var(--text-muted); }
.pro-media .pro-media-pick { display: inline-flex; min-height: 40px; padding: 0 14px; font-size: var(--text-sm); color: var(--text-primary); }
.pro-media:has(input:focus-visible) .pro-media-pick { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── Liste de démarrage (ProStart) ──────────────────────────────────────────────────────────────────────────── */
.pro-start { display: grid; gap: 12px; margin-top: 24px; }
.pro-start-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pro-start-head h2 { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.pro-start-count { font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pro-start-bar { height: 6px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-raised); }
.pro-start-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width var(--dur-slow) var(--ease-out); }
.pro-start-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pro-start-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); text-decoration: none; }
a.pro-start-row:hover { background: var(--surface-hover); }
.pro-start-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-secondary); }
li[data-state=done] .pro-start-icon { background: var(--brand-wash); color: var(--brand-light); }
.pro-start-label { flex: 1; min-width: 0; font-size: var(--text-md); }
.pro-start-state { flex: none; font-size: var(--text-sm); color: var(--text-muted); }
.pro-start-state[data-state=done] { color: var(--ok); }
.pro-start-open { margin-top: 24px; }
.pro-start-page { max-width: 640px; }

/* ── Paramètres ─────────────────────────────────────────────────────────────────────────────────────────────── */
.pro-tabs { display: flex; gap: 4px; margin: 24px 0 20px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.pro-tabs [role=tab] { flex: none; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--text-muted); font: 600 var(--text-md)/1 var(--font-body); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.pro-tabs [role=tab][aria-selected=true] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--brand-light); }
.pro-settings-block { display: grid; gap: 10px; max-width: 720px; }
.pro-settings-head, .pro-settings-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
.pro-settings-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-settings-text strong { font-size: var(--text-md); font-weight: 600; }
.pro-settings-text span { font-size: var(--text-sm); color: var(--text-muted); overflow-wrap: anywhere; }
.pro-settings-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-avatar); object-fit: cover; background: linear-gradient(135deg, var(--primary-gradient-1), var(--primary-gradient-2)); color: var(--on-brand); font-weight: 800; }
.pro-settings-swatch { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--circle-accent-1), var(--circle-accent-2)); }
.pro-settings-done { margin: 0; font-size: var(--text-sm); color: var(--ok); }
.pro-segment { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); }
.pro-segment button { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-secondary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-segment button[aria-checked=true] { background: var(--brand); color: var(--on-brand); }

@media (max-width: 559px) {
  .pro-ob-pair, .pro-verify { grid-template-columns: 1fr; }
  .pro-link-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .pro-link-row > input:first-child { grid-column: 1 / -1; }
  .pro-settings-row { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  .pro-ob-main { justify-content: flex-start; padding-top: calc(28px + env(safe-area-inset-top)); }
  /* Sous la barre « Plus tard » de la coque (fixe) : le contenu commence en dessous, jamais recouvert. */
  .pro-focus:has(.pro-ob-host) .pro-ob-main { padding-top: calc(64px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  .pro-ob *, .pro-ob *::before, .pro-ob *::after, .pro-start *, .pro-settings *, .pal-swatch { animation: none !important; transition: none !important; }
}
/* Recette §39 (Q-Navigateur, W3c) : sous 1 024 px la photo passe derrière le texte ; en clair, la bande transparente du
   voile (30 %) laissait les visages et les lumières de la photo sous les lignes de l'accueil (lisibilité faible à 375 et
   768 px). Le voile reste continu derrière le texte ; en sombre, rien ne change. */
@media (max-width: 1023px) {
  [data-mode=light] .pro-ob-scrim { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-sunken) 70%, transparent) 0%, color-mix(in srgb, var(--surface-sunken) 80%, transparent) 30%, color-mix(in srgb, var(--surface-sunken) 88%, transparent) 70%, var(--surface-sunken) 100%); }
}

/* ── Informations légales de l'Entreprise (E1, 28/11/2026) : pays, recherche Sirene, carte « Voici ce que nous avons
   trouvé », Paramètres. Une décision par écran, lignes plutôt qu'accordéons ; jetons de db-tokens.css, clair et sombre. */
.pro-legal-phase { display: grid; gap: 16px; animation: pro-ob-in .32s var(--ease-out) both; }
.pro-field-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.pro-legal-country { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: var(--text-sm); color: var(--text-secondary); }
.pro-legal-flag { font-size: 18px; line-height: 1; }
.pro-legal-country .pro-link-btn { margin-left: auto; }
.pro-legal-search { display: grid; gap: 12px; }
.pro-legal-input { position: relative; display: block; }
.pro-legal-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--text-subtle); pointer-events: none; }
/* Plus spécifique que la règle des champs d'une étape ou d'une fenêtre (pro-ui.css) : l'icône ne recouvre jamais le texte. */
.pro-legal-input input.pro-input[type=search] { padding-left: 42px; min-height: 52px; font-size: var(--text-md); }
.pro-legal-input input.pro-input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.pro-legal-status { margin: 0; min-height: 1.2em; font-size: var(--text-sm); color: var(--text-muted); }
.pro-legal-status:empty { min-height: 0; }
.pro-legal-results { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pro-legal-result { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); animation: pro-ob-rise .3s var(--ease-out) both; }
.pro-legal-result:hover:not(:disabled) { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--brand-light); }
.pro-legal-result:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-legal-result:disabled { cursor: progress; opacity: .7; }
.pro-legal-result[data-state=ceased] { opacity: .72; }
.pro-legal-result-icon, .pro-legal-head-icon, .pro-legal-panel-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--brand-wash); color: var(--brand-light); }
.pro-legal-result-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-legal-result-text strong { font-size: var(--text-md); font-weight: 600; overflow-wrap: anywhere; }
.pro-legal-result-text span { font-size: var(--text-sm); color: var(--text-secondary); overflow-wrap: anywhere; }
.pro-legal-result-text .pro-legal-result-meta { color: var(--text-muted); }
.pro-legal-badge { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; background: var(--ok-wash); color: var(--ok-strong); }
.pro-legal-badge[data-state=ceased] { background: var(--surface-hover); color: var(--text-muted); }
.pro-legal-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
.pro-legal-note > svg { flex: none; margin-top: 2px; color: var(--brand-light); }
.pro-legal-note[data-tone=warn] { background: var(--warn-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent); color: var(--text-primary); }
.pro-legal-source { margin: 0; font-size: var(--text-xs); color: var(--text-subtle); }
.pro-legal-empty { padding: 14px 16px; border-radius: var(--radius-md); background: var(--glass-surface-fill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); color: var(--text-secondary); }
.pro-legal-empty p { margin: 0 0 6px; color: var(--text-primary); overflow-wrap: anywhere; }
.pro-legal-empty ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pro-legal-panel { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--warn-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent); }
.pro-legal-panel strong { display: block; font-size: var(--text-md); }
.pro-legal-panel p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-secondary); }
.pro-legal-panel-actions, .pro-legal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pro-legal-alt { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--text-secondary); font: 600 var(--text-sm)/1.2 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pro-legal-alt:hover { color: var(--text-primary); }
.pro-legal-alt > svg { color: var(--brand-light); }
/* La carte : un en-tête (nom, SIREN, état), puis des groupes en lignes. */
.pro-legal-card { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -36px var(--brand-scrim); }
.pro-legal-head { display: flex; align-items: center; gap: 12px; }
.pro-legal-head-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-legal-head-text strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pro-legal-head-text span { font-size: var(--text-sm); color: var(--text-muted); }
.pro-legal-group { display: grid; gap: 6px; }
.pro-legal-group h3 { margin: 0; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.pro-legal-group dl { margin: 0; display: grid; }
.pro-legal-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.pro-legal-row:first-child { border-top: 0; }
.pro-legal-row dt { color: var(--text-muted); }
.pro-legal-row dd { margin: 0; display: grid; color: var(--text-primary); overflow-wrap: anywhere; }
.pro-legal-sub { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.pro-legal-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pro-legal-list li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--text-secondary); overflow-wrap: anywhere; }
.pro-legal-list-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-primary); }
.pro-legal-list-main > .pro-legal-badge { margin-left: auto; height: 22px; }
.pro-legal-tag { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--brand-wash); color: var(--brand-light); font-size: var(--text-2xs); font-weight: 700; }
.pro-legal-settings { display: grid; gap: 14px; }
@media (max-width: 480px) {
  .pro-legal-card { padding: 14px; }
  .pro-legal-row { grid-template-columns: 1fr; gap: 2px; }
  .pro-legal-result { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-legal-phase, .pro-legal-result { animation: none; }
}

.db-professional-workspace{display:grid;gap:16px;margin-top:16px;min-width:0}
.db-professional-workspace :is(h2,h3,h4,p,ul){margin:0}
.db-professional-workspace :is(h2,h3,h4){font-size:var(--text-lg);line-height:1.25;overflow-wrap:anywhere}
.db-professional-workspace :is(p,label,summary,li){font-size:var(--text-sm);line-height:1.45}
.db-professional-card{min-width:0;display:grid;gap:12px;padding:clamp(14px,3vw,20px);border-radius:var(--radius-lg);background:var(--glass-surface-fill);box-shadow:inset 0 0 0 1px var(--line)}
.db-professional-card .db-professional-card{background:var(--surface-raised)}
.db-professional-stack,.db-professional-form{display:grid;gap:10px;min-width:0}
.db-professional-list{padding:0;list-style:none;display:grid;gap:10px}
.db-professional-item{display:grid;gap:10px;border-radius:var(--radius-md);border:1px solid var(--line);padding:12px 14px;min-width:0;overflow-wrap:anywhere}
.db-professional-row,.db-professional-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.db-professional-row{justify-content:space-between}
.db-professional-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 175px}
.db-professional-avatar{width:40px;height:40px;flex:none;border-radius:var(--radius-avatar);display:grid;place-items:center;background:linear-gradient(135deg,var(--primary-gradient-1),var(--primary-gradient-2));color:var(--on-brand);font-weight:800}
.db-professional-status{color:var(--text-secondary)}
.db-professional-warning{color:var(--danger)}
.db-professional-ok{color:var(--ok)}
.db-professional-field{display:grid;gap:5px;min-width:0;color:var(--text-secondary)}
.db-professional-workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface-base);box-shadow:inset 0 0 0 1px var(--field-rim);padding:10px 12px;border:0;border-radius:var(--radius-md);min-width:0;max-width:100%;min-height:44px;font:inherit;color:var(--text-primary)}
.db-professional-field textarea{resize:vertical}
.db-professional-workspace :is(button,summary){min-height:44px;cursor:pointer}
.db-professional-workspace summary{display:list-item;padding:10px 0;color:var(--text-primary);font-weight:650;overflow-wrap:anywhere}
.db-professional-workspace :is(a,button,summary,textarea,select,input):focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.db-professional-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;border-radius:var(--radius-pill);box-shadow:inset 0 0 0 1px var(--line);color:var(--text-primary);font-size:var(--text-sm);font-weight:650;text-align:center}
.db-professional-button[data-tone=primary]{background:linear-gradient(90deg,var(--primary-gradient-1),var(--primary-gradient-2));color:var(--on-brand);box-shadow:none}
.db-professional-button[data-tone=danger]{color:var(--danger)}
.db-professional-button:disabled{opacity:.62;cursor:default}
.db-professional-workspace .db-delegation-permission-summary{margin-top:8px}
.db-professional-workspace .brand-fields{display:grid;gap:8px;min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);padding:10px 12px}
.db-professional-workspace .brand-fields label{display:grid;gap:5px}
.db-professional-workspace .brand-command{justify-self:start;padding:8px 14px;min-height:44px;border-radius:var(--radius-pill);box-shadow:inset 0 0 0 1px var(--line)}

/* Mission Pro E1 : « Ma page publique » et « Mon équipe » de l'espace Entreprise. Jetons de db-tokens.css seulement ;
   les couleurs d'ambiance de la page viennent de ses préréglages (`--co-a1`, `--co-a2`, mêmes valeurs que la vitrine
   Marque). Lignes plutôt que cartes empilées, une action principale, aucune animation infinie. */
.pro-co { display: grid; gap: 24px; align-content: start; }
.pro-co-quiet { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.pro-co-link { padding: 0; border: 0; background: none; color: var(--text-secondary); font: 600 var(--text-sm)/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pro-co-link:hover { color: var(--text-primary); }
.pro-co :focus-visible, .pro-dialog .pro-co-swatch:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Carte de la page : la couverture (ou les couleurs de l'ambiance), le logo, l'état, une action principale. */
.pro-co-page { overflow: hidden; border-radius: var(--radius-xl); background: var(--glass-surface-fill); box-shadow: var(--glass-rim, inset 0 0 0 1px var(--line)); }
.pro-co-page-cover { position: relative; height: clamp(120px, 18vw, 180px); background: radial-gradient(120% 120% at 10% 0%, var(--co-a2), transparent 60%), linear-gradient(150deg, var(--co-a1), color-mix(in srgb, var(--co-a1) 60%, var(--db-black))); }
.pro-co-page-cover img { width: 100%; height: 100%; object-fit: cover; }
.pro-co-page-logo { position: absolute; left: clamp(18px, 3vw, 28px); bottom: -30px; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; overflow: hidden;
  border-radius: 18px; background: var(--surface-deep); box-shadow: 0 0 0 4px var(--surface-app); color: var(--text-primary); font: 700 26px/1 var(--font-display); }
.pro-co-page-logo img { width: 100%; height: 100%; object-fit: cover; }
.pro-co-page-body { display: grid; gap: 6px; padding: 44px clamp(18px, 3vw, 28px) 24px; }
.pro-co-page-name { margin: 0; font: 700 var(--text-2xl)/1.2 var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: anywhere; }
.pro-co-page-meta { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); overflow-wrap: anywhere; }
.pro-co-actions, .pro-co-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pro-co-toolbar { margin-top: 0; }
.pro-co-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 0; padding: 4px 12px 4px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em; color: var(--text-secondary); }
.pro-co-chip > span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.pro-co-chip[data-tone=live] > span { background: var(--success, var(--brand)); }
.pro-co-chip[data-tone=pending] > span { background: var(--warn); }
.pro-co-chip[data-tone=paused] > span { background: var(--warn); }

.pro-co-notes { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pro-co-notes li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text-secondary); }
.pro-co-notes li svg { flex: none; margin-top: 2px; }
.pro-co-notes li[data-tone=blocking] svg { color: var(--warn); }
.pro-co-notes li[data-tone=advice] svg { color: var(--brand-light); }
/* Talents sur la page publique : même ligne que « Mon équipe » (nom, état, une action). */
.pro-co-public-talents { display: grid; gap: 8px; }
.pro-co-subtitle { margin: 0; font: 700 var(--text-lg)/1.3 var(--font-display); color: var(--text-primary); }
.pro-co-rows { display: grid; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pro-co-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.pro-co-row-title { margin: 0 0 2px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }

/* Fenêtres : champs, choix, bascules. */
.pro-co-field { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.pro-co-field small[role=alert] { color: var(--danger); font-weight: 500; }
.pro-co-field-error { margin: 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: var(--text-sm); color: var(--danger); }
.pro-co-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.pro-co-choices, .pro-co-switches { display: grid; gap: 8px; }
.pro-co-choice, .pro-co-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg, var(--radius-md)); background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pro-co-choice:has(input:checked), .pro-co-toggle:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--brand); }
.pro-co-choice input, .pro-co-toggle input { width: 18px; min-height: 0; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.pro-co-choice span, .pro-co-toggle span { display: grid; gap: 2px; color: var(--text-primary); font-weight: 500; }
.pro-co-choice small, .pro-co-toggle small { color: var(--text-secondary); font-size: var(--text-sm); font-weight: 400; }
.pro-co-upload { position: relative; overflow: hidden; justify-self: start; }
.pro-co-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pro-co-cover-step, .pro-co-method, .pro-co-status, .pro-co-ambiance { display: grid; gap: 14px; }
.pro-co-cover-thumb { width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius-lg, var(--radius-md)); object-fit: cover; background: var(--surface-sunken); }
div.pro-co-cover-thumb { display: flex; align-items: center; justify-content: center; color: var(--text-faint); box-shadow: inset 0 0 0 1px var(--line); }
.pro-co-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pro-co-swatch { display: grid; gap: 8px; padding: 8px; border: 0; border-radius: var(--radius-lg, var(--radius-md)); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
.pro-co-swatch span { height: 46px; border-radius: calc(var(--radius-md) - 2px); background: linear-gradient(135deg, var(--co-a1) 0 50%, var(--co-a2) 50% 100%); }
.pro-co-swatch b { padding: 0 4px 2px; font-size: var(--text-sm); }
.pro-co-swatch[aria-checked=true] { box-shadow: inset 0 0 0 2px var(--brand); }
.pro-co-segmented { display: inline-flex; justify-self: start; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.pro-co-segmented button { min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-secondary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-co-segmented button[aria-checked=true] { background: var(--surface-deep); color: var(--text-primary); box-shadow: var(--shadow-floating); }
.pro-co-url { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: var(--text-sm); overflow-wrap: anywhere; }
.pro-co-preview { overflow: hidden; margin: 0 -24px -8px; border-radius: var(--radius-lg, var(--radius-md)); }
.pro-co-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-primary); font-weight: 600; }
.pro-co-ok svg { color: var(--success, var(--brand)); }
.pro-co-request { display: grid; gap: 2px; margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: var(--text-sm); }
.pro-co-capabilities { display: grid; gap: 14px; }
.pro-co-capability h3 { margin: 0 0 8px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.pro-co-capability ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pro-co-capability li { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); }
.pro-co-capability[data-open=true] svg { color: var(--success, var(--brand)); }
.pro-co-capability[data-open=false] li { color: var(--text-secondary); }

/* Mon équipe : une ligne par personne. */
.pro-co-team { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pro-co-member { display: flex; align-items: flex-start; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.pro-co-member[data-status=SUSPENDED] .pro-co-member-text { opacity: .62; }
.pro-co-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-primary); font: 700 var(--text-md)/1 var(--font-display); }
.pro-co-member-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pro-co-member-name { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pro-co-member-meta { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.pro-co-member-meta > span + span::before, .pro-co-page-meta > span + span::before { content: '·'; margin: 0 8px; color: var(--text-faint); }
.pro-co-you { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: var(--text-2xs); font-weight: 700; color: var(--text-subtle); }
.pro-co-talent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pro-co-talent-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: var(--text-sm); font-weight: 600; }
.pro-co-talent-chips small { color: var(--text-secondary); font-weight: 400; }
.pro-co-menu { position: relative; flex: none; }
.pro-co-menu-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-secondary); cursor: pointer; }
.pro-co-menu-button:hover, .pro-co-menu-button[aria-expanded=true] { background: var(--surface-hover); color: var(--text-primary); }
.pro-co-menu-list { position: absolute; right: 0; top: 44px; z-index: 20; display: grid; min-width: 220px; margin: 0; padding: 6px; list-style: none; border-radius: var(--radius-lg, var(--radius-md));
  background: var(--surface-deep); box-shadow: var(--shadow-overlay), inset 0 0 0 1px var(--line); animation: pro-fade var(--dur-fast) var(--ease-out) both; }
.pro-co-menu-list button { width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-primary); font: 500 var(--text-sm)/1.2 var(--font-body); text-align: left; cursor: pointer; }
.pro-co-menu-list button:hover, .pro-co-menu-list button:focus-visible { background: var(--surface-hover); }
.pro-co-menu-list button[data-tone=critical] { color: var(--danger); }
@media (max-width: 759px) {
  .pro-co-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-co-actions .pro-btn--primary, .pro-co-toolbar .pro-btn--primary { flex: 1 1 100%; }
  .pro-co-preview { margin-inline: -18px; }
}

/* Un assistant dans une fenêtre : la fenêtre porte le contexte (titre discret), l'assistant porte la question et ses
   boutons ; on ferme par la croix ou Échap (pas de second « Fermer »). Les champs gardent une graisse normale. */
.pro-dialog:has(.pro-step) .pro-dialog-title { font-size: var(--text-md); font-weight: 600; color: var(--text-secondary); }
.pro-dialog:has(> .pro-dialog-body > .pro-step) > .pro-dialog-actions { display: none; }
.pro-co-field :is(input, select, textarea) { font-weight: 400; }

/* Paramètres › Vérification (VerificationPanel) : une ligne d'état, deux listes, une action. */
.pro-co-verify { display: grid; gap: 20px; max-width: 640px; }
.pro-co-verify-head { display: flex; align-items: flex-start; gap: 14px; }
.pro-co-verify-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--text-secondary); }
.pro-co-verify[data-state=verified] .pro-co-verify-mark { color: var(--success, var(--brand)); }
.pro-co-verify-title { margin: 0 0 2px; font-size: var(--text-md); font-weight: 600; color: var(--text-primary); }
@media (min-width: 720px) { .pro-co-verify .pro-co-capabilities { grid-template-columns: 1fr 1fr; } }
/* Recette §39 (Q-Navigateur, W3c) : à 375 px, l'étiquette « Vous » se coupait en « Vou / s » (le nom autorise la coupure
   n'importe où, l'étiquette en héritait). Elle reste entière, à côté du nom. */
.pro-co-member-name > .pro-co-you { flex: none; white-space: nowrap; overflow-wrap: normal; }
/* Recette §39 (Q-Navigateur) : à 375 px, « Droits actifs : 9 » se coupait avant les deux-points ; la mention reste d'un
   seul tenant, le nom du talent garde la place restante. */
.pro-co-talent-chips small { white-space: nowrap; }

/* Recette Q1-FINITION : retrait d'une demande de vérification et départ d'une équipe (actions secondaires, ton critique). */
.pro-btn--quiet[data-tone=critical] { color: var(--danger); }
.pro-co-withdraw { margin-top: 16px; }
.pro-settings-leave { margin-top: 24px; }

/* Messagerie et Notifications Pro (C1). Jetons de db-tokens.css seulement, aucune couleur nouvelle ; lignes plutôt
   qu'accordéons (PLAN §0.8). Deux volets au-dessus de 760 px, un seul volet en dessous (liste puis fil). */
.pro-x-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pro-inbox-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pro-inbox-shell > .pro-x-delegated { flex: none; margin: 12px 16px; width: auto; }
.pro-inbox-shell > .pro-section-status { flex: none; margin: 10px 16px; }
.pro-inbox-page { box-sizing: border-box; max-width: none; width: 100%; height: 100%; min-height: 0; padding: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pro-support-head { flex: none; display: grid; gap: 8px; padding: 12px 16px; justify-items: start; }
.pro-support-head p { margin: 0; }
.pro-inbox-viewport { box-sizing: border-box; flex: 1; min-height: 0; overflow: hidden; border: 0; border-radius: 0; }
.pro-inbox-viewport [data-messaging-talent] { height: 100% !important; }
/* The shared hover must preserve the selected chip contrast. */
.pro-inbox-page .msg-talent-4[aria-pressed=true]:hover { color: var(--surface-app) !important; }
@media (max-width: 759px) {
  .pro-workspace[data-pro-layout=mobile] .pro-inbox-viewport { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  html[data-conversation-open] .pro-workspace[data-pro-layout=mobile] .pro-inbox-viewport { padding-bottom: env(safe-area-inset-bottom); }
}
.pro-x-delegated { margin: 4px 0 20px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-lg); }
.pro-x-delegated [data-ce="db-icon"] { flex: none; color: var(--text-subtle); }
.pro-x-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; min-height: 420px; }
.pro-x-list, .pro-x-thread-pane { min-width: 0; }
.pro-x-thread-pane { border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: flex; flex-direction: column; }
.pro-x-empty { margin: auto; color: var(--text-muted); font-size: var(--text-sm); }
.pro-x-group { display: grid; gap: 8px; margin-bottom: 16px; }
.pro-x-group-title { margin: 0; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pro-x-rows, .pro-x-results, .pro-x-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pro-x-row { box-sizing: border-box; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard); }
.pro-x-row:hover:not(:disabled), .pro-x-row[aria-current=true] { background: var(--surface-hover); }
.pro-x-row:disabled { cursor: default; opacity: .8; }
.pro-x-row:focus-visible, .pro-x-compose textarea:focus-visible, .pro-x-segment-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pro-x-avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-avatar); background: var(--brand-wash); color: var(--text-primary); font-weight: 700; }
.pro-x-row-text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.pro-x-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pro-x-kind { margin: 0; font-size: var(--text-2xs); font-weight: 600; color: var(--text-subtle); }
.pro-x-preview { font-size: var(--text-sm); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-x-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--btn-primary-bg); color: var(--btn-primary-fg); font-size: var(--text-2xs); font-weight: 700; }
.pro-x-request { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); }
.pro-x-request-text { display: grid; gap: 8px; min-width: 0; }
.pro-x-intro { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.5; overflow-wrap: anywhere; }
.pro-x-request-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-x-thread { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.pro-x-thread-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--line); }
.pro-x-close { margin-left: auto; flex: none; white-space: nowrap; }
/* Nom de l'interlocuteur coupé entre les mots, deux lignes au plus (défaut D-QX-4 : à 375 px il se coupait lettre par
   lettre à côté de « Fermer l'échange »). Le nom complet reste lu par l'étiquette de la section (« Échange avec … »). */
.pro-x-thread-head > div { flex: 1; min-width: 0; }
.pro-x-thread-head .pro-x-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word; line-height: 1.3; }
.pro-x-back { display: none; min-width: 44px; padding: 0; }
.pro-x-messages { flex: 1; overflow: auto; gap: 10px; padding: 4px 0; align-content: start; }
.pro-x-message { max-width: min(78%, 520px); justify-self: start; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--glass-surface-fill); }
.pro-x-message[data-side=own] { justify-self: end; background: var(--brand-wash); }
.pro-x-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.pro-x-message time { display: block; margin-top: 4px; font-size: var(--text-2xs); color: var(--text-subtle); }
.pro-x-tag { display: inline-block; margin-bottom: 4px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.pro-x-compose { display: flex; gap: 10px; align-items: flex-end; }
.pro-x-compose .pro-btn { flex: none; }
.pro-x-compose textarea { flex: 1; box-sizing: border-box; min-height: 46px; max-height: 160px; resize: vertical; padding: 10px 14px; border: 0; border-radius: var(--radius-md); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--field-rim); color: var(--text-primary); font: inherit; }
.pro-x-lock { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--glass-surface-fill); color: var(--text-secondary); font-size: var(--text-sm); }
.pro-x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pro-x-segment { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.pro-x-segment-item { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.pro-x-segment-item[aria-checked=true] { background: var(--surface-raised); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line); }
.pro-x-hint { margin: -6px 0 0; font-size: var(--text-2xs); color: var(--text-subtle); text-align: right; }
.pro-x-notice-text { line-height: 1.45; overflow-wrap: anywhere; }
.pro-x-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.pro-x-notice[data-unread=true] .pro-x-dot { background: var(--btn-primary-bg); }
.pro-x-notice[data-unread=true] .pro-x-notice-text { font-weight: 600; }
@media (max-width: 759px) {
  .pro-x-layout { grid-template-columns: 1fr; min-height: 0; }
  .pro-x-layout[data-open=list] .pro-x-thread-pane { display: none; }
  .pro-x-layout[data-open=thread] .pro-x-list { display: none; }
  .pro-x-thread-pane { padding: 12px; }
  .pro-x-back { display: inline-flex; }
  .pro-x-thread-head { gap: 8px; }
  .pro-x-close { min-height: 36px; padding-inline: 12px; font-size: var(--text-sm); }
  /* F1 W3d (fusion M1 2222e527 et C1 D-QX-4) : sur mobile, une seule ligne avec points de suspension (deux lignes au
     plus sur ordinateur) ; le nom complet reste lu par l'étiquette de la section. */
  .pro-x-thread-head .pro-x-name { -webkit-line-clamp: 1; }
  .pro-x-message { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .pro-x-row { transition: none; } }

@keyframes dbBadgeFloat{0%,100%{transform:perspective(600px) translateY(0) rotateY(-12deg)}50%{transform:perspective(600px) translateY(-2.5%) rotateY(12deg)}}@keyframes dbBadgeSheen{0%,55%{transform:translateX(-120%) rotate(28deg)}85%,100%{transform:translateX(220%) rotate(28deg)}}
