/* =====================================================
   PULSE - Platform for Urgent Live Scenario Exercises
   ===================================================== */

/* ─── Boot splash – neutre, affiché tant que /api/me n'a pas tranché ──────── */
/* Empêche le flash de la mire de connexion à l'ouverture (notamment dans un
   nouvel onglet d'espace de travail, cf. boot() dans auth.js). */
#boot-splash { display: none; }
body[data-shield-mode="boot"] #boot-splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
}
.boot-splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot-splash-inner img { opacity: .9; }
.boot-splash-spin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--brand-2);
  animation: boot-splash-rot .7s linear infinite;
}
@keyframes boot-splash-rot { to { transform: rotate(360deg); } }
.boot-splash-nojs {
  max-width: 320px;
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  padding: 0 20px;
}

/* ─── Auth view – hidden/shown by auth.js ─────────────────────────────────── */
#auth-view[hidden],
#app-view[hidden] { display: none !important; }

#app-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#auth-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100vh;
  width: 100%;
  position: relative;
  isolation: isolate;
}

/* Background photo (salle de crise) — placé derrière tout le contenu de la mire
   avec un voile blanc en gradient pour garantir la lisibilité de la card et du
   hero. Le footer reste blanc opaque et masque naturellement le bas de l'image. */
#auth-view::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.82) 45%,
      rgba(255,255,255,0.55) 100%
    ),
    url('../assets/background.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

.login-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  z-index: 100;
}
.login-skip:focus { left: 0; }

.login-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(11,23,68,.02);
}
.login-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.login-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.login-brand-mark { display: inline-flex; }
.login-brand-name { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.login-brand-divider { width: 1px; height: 28px; background: var(--border); }
.login-brand-baseline { font-size: 11px; line-height: 1.45; color: var(--text2); letter-spacing: .01em; font-weight: 500; }
.login-acro { color: var(--brand-2); font-weight: 700; }
.login-topbar-actions { display: flex; align-items: center; gap: 8px; }
.login-topbar-actions .orbit-switcher { border-left: none; padding-left: 0; margin-left: 0; }
.login-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text2);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.login-lang:hover { background: var(--bg); color: var(--text); border-color: var(--border); }

.login-main {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  position: relative;
}

/* Feed preview – 4 cards illustratives empilées en arrière-plan, sortant
   "de derrière" la card login (overlap intentionnel masqué par le z-index 2
   de .login-card). Discrètes, légèrement inclinées, ne forcent pas le texte
   hero à se réduire. Décor pur (aria-hidden, pointer-events:none). */
.login-feed-preview {
  position: absolute;
  top: 60px;
  right: 430px;       /* cards bord droit à right 430 ; bord gauche card login à
                         right 492 → ~62px sont sous la card login, le reste (~148px)
                         déborde vers la gauche, jusqu'à chevaucher les pillars en
                         arrière-plan (z-index 0 → passe DERRIÈRE pillars/texte) */
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
  z-index: 0;         /* sous .login-card (z-index 2) ET sous .login-hero-content
                         (z-index 1) : effet "calque d'arrière-plan" */
}
.login-feed-preview .feed-card {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(11,23,68,.06));
  transform-origin: center;
}
/* Inclinaison + opacité décroissante – chaque card a son propre angle pour
   éviter l'alignement parfait (effet "feed live" naturel). */
.login-feed-preview .feed-card-1 { transform: rotate(-2.5deg) translateX(4px);   opacity: .78; }
.login-feed-preview .feed-card-2 { transform: rotate(1.5deg)  translateX(-6px);  opacity: .70; }
.login-feed-preview .feed-card-3 { transform: rotate(-3deg)   translateX(8px);   opacity: .62; }

.login-hero { position: relative; display: flex; flex-direction: column; }
.login-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 110px;
  padding-left: 70px;
}
.login-hero-decor { position: absolute; top: -40px; left: -90px; opacity: .7; pointer-events: none; }
.login-hero-title {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 20px;
}
.login-hero-dot { color: var(--brand); }
.login-hero-lede { font-size: 14.5px; line-height: 1.65; color: #4b5563; max-width: 460px; margin: 0 0 32px; }
.login-hero-lede strong { color: var(--brand-2); font-weight: 600; }

.login-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  max-width: 560px;
}
.login-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.login-pillar-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.login-pillar-label { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--text); }

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  box-shadow: 0 24px 48px -12px rgba(11,23,68,.08), 0 4px 12px rgba(11,23,68,.04);
  position: relative;
  z-index: 2;
  align-self: start;
}
.login-card-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.login-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.login-card-titles h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.login-card-titles p { margin: 4px 0 0; font-size: 13.5px; color: var(--text2); }

.login-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid #fca5a5;
  text-align: center;
}

.login-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.login-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 14px 8px;
  margin-bottom: -1px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  position: relative;
  transition: color .15s;
  font-family: inherit;
  white-space: nowrap;
}
.login-tab:hover { color: var(--text); }
.login-tab.is-active { color: var(--text); }
.login-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
}
.login-tab-panel { display: block; }
.login-tab-panel[hidden] { display: none; }

.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
#auth-view .login-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.login-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.login-input-icon {
  position: absolute;
  left: 12px;
  display: inline-flex;
  color: var(--text3);
  pointer-events: none;
}
#auth-view .login-input input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 12px 11px 38px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  border-radius: 10px;
  box-shadow: none;
}
#auth-view .login-input input::placeholder { color: var(--text3); }
.login-input-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-input-toggle:hover { color: var(--text2); background: var(--bg); }
.login-input-toggle svg[hidden] { display: none; }

.login-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 16px; }
.login-forgot { font-size: 13px; color: var(--text2); text-decoration: none; transition: color .15s; }
.login-forgot:hover { color: var(--text); text-decoration: underline; }
.login-submit {
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.login-submit:hover { background: var(--brand-2); }
.login-submit:active { transform: scale(.98); }
.login-submit:disabled { opacity: .65; cursor: not-allowed; }

.login-link-text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--text); }
.login-link-hint { margin: 0; font-size: 13px; color: var(--text2); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--text3);
  font-size: 12px;
}
.login-divider::before,
.login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

#auth-view .login-sso {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
#auth-view .login-sso:hover { background: var(--bg); border-color: var(--border2); }

/* État désactivé – passkey-other-btn + sso-login-btn (placeholders en
   attente d'intégration). Empêche le hover, signale visuellement la
   non-disponibilité, et bloque le cursor pointer. Override le :hover
   ci-dessus pour qu'il ne déclenche plus sur disabled. */
#auth-view .login-sso:disabled,
#auth-view .login-sso[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  background: #fff;
  border-color: var(--border);
  color: var(--text3);
}
#auth-view .login-sso:disabled:hover,
#auth-view .login-sso[aria-disabled="true"]:hover {
  background: #fff;
  border-color: var(--border);
}

#auth-view .login-help { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--text2); }
#auth-view .login-help a { color: var(--brand-2); font-weight: 500; text-decoration: none; }
#auth-view .login-help a:hover { text-decoration: underline; }

.login-footer { border-top: 1px solid var(--border); background: #fff; margin-top: auto; }
.login-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.login-footer-brand { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text2); }
.login-footer-brand strong { color: var(--text); font-weight: 700; letter-spacing: .06em; display: block; font-size: 12px; }
.login-footer-tagline { display: block; line-height: 1.35; margin-top: 1px; }
.login-footer-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-footer-mark img { display: block; width: 28px; height: auto; }
.login-footer-text { display: flex; flex-direction: column; }
.login-footer-copy { margin: 0; font-size: 12px; color: var(--text2); }

@media (max-width: 1024px) {
  .login-main { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .login-hero-title { font-size: 36px; }
  .login-hero-decor, .login-feed-preview { display: none; }
  .login-card { margin-left: 0; max-width: 480px; }
}
@media (max-width: 640px) {
  .login-topbar-inner { padding: 12px 16px; gap: 12px; }
  .login-brand-divider, .login-brand-baseline { display: none; }
  .login-main { padding: 24px 16px; }
  .login-hero-title { font-size: 30px; }
  .login-hero-lede { margin-bottom: 32px; }
  .login-pillars { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .login-card { padding: 24px 20px; border-radius: 14px; }
  .login-footer-inner { flex-direction: column; padding: 16px; align-items: flex-start; gap: 12px; }
}

*{box-sizing:border-box;margin:0;padding:0}

:root{
  /* Brand */
  --brand:#22c55e;          /* PULSE green */
  --brand-2:#16a34a;        /* darker green */
  --brand-soft:#dcfce7;     /* very light green */
  --brand-tint:rgba(34,197,94,.08);

  /* Surfaces */
  --bg:#fafafa;
  --bg2:#ffffff;
  --bg3:#f3f4f6;

  /* Ink */
  --text:#0f172a;
  --text2:#475569;
  --text3:#94a3b8;

  /* Lines */
  --border:#e5e7eb;
  --border2:#d1d5db;

  /* Shape */
  --radius:14px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md:0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);

  /* Semantic – critique */
  --text-muted:#667085;
  --critique:#EF4444;
  --critique-soft:#FEE2E2;

  /* Channels */
  --x:#000;
  --of:#e30613;
  --blue:#1d9bf0;
}

html,body{height:100%;overflow:hidden}
body{
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  background-color:#f8fafc;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  height:100vh;
}
/* Subtle hex pattern is restored only on the newsroom (not on home, simulation room, or configurator) */
#newsroom{
  background-image:url("../assets/hex-pattern.svg");
  background-repeat:repeat;
  background-size:240px 208px;
  background-attachment:fixed;
}

/* ─── App header (global) ─── */
.app-header{
  display:flex;align-items:center;gap:1rem;
  padding:.75rem 1.25rem;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
  flex-wrap:wrap;
}
.app-brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:inherit;cursor:pointer}
.app-brand:hover{opacity:.85}
.app-logo{width:40px;height:40px;display:block;flex-shrink:0}
.app-brand-text{display:flex;flex-direction:column;line-height:1.15}
.app-brand-text strong{font-size:20px;font-weight:800;letter-spacing:.04em;color:var(--text)}
.app-brand-text small{font-size:11px;font-weight:500;color:var(--brand-2);letter-spacing:.01em}
/* Baseline à droite du logo PULSE (encadrée par deux .app-sep). Calquée sur
 * la topbar PILOT (.topbar-baseline) : deux lignes sobres, slate-600, regular,
 * sans uppercase ni tracking. Le retour à la ligne est un <br> dans le HTML. */
.app-tagline{
  font-size:10.5px;line-height:1.35;color:var(--text2);font-weight:500;
  align-self:center;white-space:normal;
}
/* Highlight the P / U / L / S / E initials of the subtitle so the acronym
 * pops; the rest of each word stays in a low-emphasis muted grey. */
.pulse-letter{font-weight:900;color:var(--brand);text-transform:uppercase;font-size:1.15em;letter-spacing:.02em}
.pulse-rest{color:#94a3b8;font-weight:400;text-transform:lowercase}
.app-context{
  font-size:13px;font-weight:600;color:var(--text2);
  display:flex;align-items:center;gap:.4rem;
}
.app-context svg{width:14px;height:14px}
.app-bc-home{
  background:none;border:none;padding:0;cursor:pointer;font-family:inherit;
  font-size:13px;font-weight:500;color:var(--text3);line-height:1;
  transition:color .15s;
}
.app-bc-home:hover{color:var(--text)}
.app-bc-sep{color:var(--text3);font-size:11px}
.app-bc-current{font-weight:600;color:var(--text)}
/* Crumb « Client - ID - nom » : tronqué pour ne pas casser la topbar */
.js-bc-exercise{display:inline-block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
/* Topbar : TOUS les contrôles du header à hauteur uniforme (34px) sur TOUS
   les écrans. Scopé à .app-header (et non plus .app-controls) car depuis la
   réorganisation, ORBIT / engrenage / widget user ne sont plus enfants de
   .app-controls – ils sont enfants directs de .app-header. */
.app-header .btn,
.app-header .orbit-btn,
.app-header .wall-timer-card,
.app-header .user-menu-btn{height:34px;padding-top:0;padding-bottom:0;box-sizing:border-box}
.app-spacer{flex:1}
.app-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
/* Séparateur vertical du header : logo │ ORBIT │ fil d'ariane … boutons │ ⚙.
   Même trait que .login-brand-divider (1px var(--border)). Décoratif. */
.app-sep{width:1px;height:26px;background:var(--border);flex-shrink:0;align-self:center;margin:0 .15rem}

/* ─── Buttons ─── */
.btn{
  display:inline-flex;align-items:center;gap:.4rem;
  background:var(--bg2);border:1px solid var(--border2);border-radius:var(--radius-sm);
  padding:.45rem .85rem;font-size:12.5px;font-weight:500;font-family:inherit;
  color:var(--text);cursor:pointer;white-space:nowrap;
  transition:background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.btn:hover{background:var(--bg3);border-color:#9ca3af}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-2);border-color:var(--brand-2)}
.btn-red{background:var(--of);border-color:var(--of);color:#fff}
.btn-red:hover{background:#c5040f;border-color:#c5040f}
.btn-amber{background:#f59e0b;border-color:#f59e0b;color:#fff}
.btn-amber:hover{background:#d97706;border-color:#d97706}
.btn-ghost{background:transparent;border-color:transparent}
.btn-ghost:hover{background:var(--bg3)}
.topbar-logout{
  position:relative;background:transparent;border:1px solid var(--border);
  border-radius:10px;width:38px;height:38px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);cursor:pointer;flex-shrink:0;
  transition:background .15s,color .15s,border-color .15s;
}
.topbar-logout:hover{background:var(--critique-soft);color:var(--critique);border-color:var(--critique-soft)}
.topbar-logout:focus-visible{outline:2px solid var(--critique);outline-offset:2px}
.btn-loading{opacity:.6;pointer-events:none}

/* Live indicator */
.wall-live-indicator{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--brand-2);
  background:var(--brand-soft);border:1px solid rgba(34,197,94,.3);
  border-radius:100px;padding:.3rem .75rem;
}
.wall-live-dot{
  width:7px;height:7px;border-radius:50%;background:var(--brand);
  box-shadow:0 0 6px var(--brand);animation:pulse 1.5s infinite;
}

/* Timer card */
.wall-timer-card{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#fff;border:1px solid var(--border);border-radius:10px;
  box-shadow:var(--shadow-sm);
  padding:0 .8rem;
  height:38px;box-sizing:border-box;
}
.ex-timer{
  font-size:14px;font-family:'JetBrains Mono','Cascadia Code',Consolas,monospace;
  font-weight:700;letter-spacing:.04em;color:var(--text);line-height:1;
}
.wall-timer-label{
  font-size:10px;font-weight:500;color:var(--text3);
  text-transform:uppercase;letter-spacing:.06em;line-height:1;
}

/* Footer retiré (bandeau de pied de page supprimé). */

/* ─── HOME ─── */
#home{flex:1;display:flex;flex-direction:column;min-height:0;background:#f8fafc;overflow-y:auto}

/* Suite banner - embedded in the home header */
.home-suite-banner{
  flex:1;min-width:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:0 1rem;text-align:center;
}
.home-suite-eyebrow{
  font-size:10px;letter-spacing:.32em;font-weight:500;color:var(--brand-2);
  text-transform:uppercase;margin-bottom:.35rem;
}
.home-suite-nav{
  display:flex;justify-content:center;align-items:center;
  gap:.6rem;flex-wrap:wrap;
}
.suite-item{
  position:relative;display:inline-flex;align-items:center;gap:.5rem;
  padding:.5rem .8rem;
  font-size:13px;font-weight:500;letter-spacing:.18em;
  color:#cbd5e1;cursor:not-allowed;user-select:none;line-height:1;
}
.suite-icon{width:18px;height:18px;flex:0 0 18px;display:block}
.suite-label{display:inline-block;line-height:1}
.suite-item--active{
  color:#16a34a;font-weight:600;cursor:default;
}
.suite-item--active::after{
  content:"";position:absolute;left:.8rem;right:.8rem;bottom:-2px;
  height:2px;border-radius:2px;background:var(--brand);
}
.suite-sep{color:#e2e8f0;font-size:13px;user-select:none;line-height:1}

/* ─── ORBIT Platform Switcher ─── */
.orbit-switcher{
  position:relative;display:inline-flex;align-items:center;flex-shrink:0;
}
.orbit-btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.38rem .7rem .38rem .55rem;
  background:transparent;color:var(--text);
  border:none;border-radius:9px;
  font-size:13px;font-weight:600;letter-spacing:.04em;
  cursor:pointer;white-space:nowrap;font-family:inherit;
  transition:background .15s,transform .08s;
}
.orbit-btn:hover{background:var(--bg3)}
.orbit-btn:active{transform:scale(.97)}
.orbit-btn-logo{width:18px;height:18px;flex-shrink:0}
.orbit-chevron{
  width:13px;height:13px;opacity:.65;
  transition:transform .2s;flex-shrink:0;
}
.orbit-btn[aria-expanded="true"]{background:var(--bg3)}
.orbit-btn[aria-expanded="true"] .orbit-chevron{transform:rotate(180deg)}

.orbit-dropdown{
  position:absolute;top:calc(100% + 8px);left:0;
  min-width:195px;
  background:#fff;
  border:1px solid var(--border);border-radius:12px;
  box-shadow:var(--shadow-lg);
  z-index:300;padding:4px;
}
.orbit-dropdown[hidden]{display:none}
.app-controls .orbit-dropdown{left:auto;right:0}

.orbit-item{
  display:flex;align-items:center;gap:.75rem;
  padding:.55rem .8rem;border-radius:8px;
  text-decoration:none;color:var(--text);
  font-size:13px;font-weight:500;
  cursor:pointer;transition:background .12s;
}
.orbit-item:hover{background:var(--bg3)}
.orbit-item--active{
  background:var(--brand-soft);color:var(--brand-2);
  font-weight:600;cursor:default;
}
.orbit-item--active:hover{background:var(--brand-soft)}

.orbit-item-icon{
  width:28px;height:28px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  border-radius:7px;
}
.orbit-item-icon svg{width:16px;height:16px}
.orbit-item-icon--orbit{background:#1e293b;color:#fff}
.orbit-item-icon--pulse{background:var(--brand-soft);color:var(--brand-2)}
.orbit-item-icon--shield{background:#fef9c3;color:#a16207}
.orbit-item-icon--pilot{background:#fee2e2;color:#dc2626}
.orbit-item-icon--alive{background:#dbeafe;color:#1d4ed8}

.orbit-item-label{line-height:1}

/* Tagline shown only on HOME, next to the orbit button */
.orbit-tagline{
  font-size:11.5px;font-weight:600;
  color:var(--brand-2);line-height:1.35;letter-spacing:.01em;
  flex-shrink:0;
}

/* Main hero block */
/* #home est désormais la FICHE d'un exercice (plus le hero d'origine) :
   conteneur de position pour .app-mountain + scroll interne via .exh. */
.home-content{
  position:relative;flex:1;min-height:0;display:flex;flex-direction:column;
  overflow:hidden;
}
.exh{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;padding:24px 30px 40px}
.exh-inner{max-width:1240px;width:100%;margin:0 auto}
.home-inner{
  position:relative;z-index:2;
  display:flex;flex-direction:column;align-items:center;
  width:100%;max-width:1100px;
}

/* Decorative background SVGs */
.home-decor{position:absolute;pointer-events:none;z-index:1}
.home-decor--radar{
  left:-8rem;top:25%;width:34rem;height:34rem;
  color:var(--brand);opacity:.07;
}
.home-decor--radar svg{width:100%;height:100%}
.home-decor--waves{
  right:-6rem;top:18%;width:42rem;height:22rem;
  color:#64748b;opacity:.06;
}
.home-decor--waves svg{width:100%;height:100%}

/* Headline */
.home-headline{
  font-size:clamp(34px,5vw,60px);font-weight:800;letter-spacing:-.025em;
  text-align:center;line-height:1.05;color:var(--text);
}
.home-headline-dot{color:var(--brand)}
.home-pulse-line{
  margin-top:1.75rem;display:flex;justify-content:center;
  color:var(--brand);
}
.home-tagline{
  margin-top:1rem;font-size:17px;color:var(--text2);text-align:center;
  letter-spacing:.005em;
}

/* Cards */
.role-cards{
  margin-top:3.5rem;display:grid;grid-template-columns:repeat(3,1fr);
  gap:1.75rem;width:100%;max-width:1200px;
}
.role-card{
  position:relative;background:#fff;border:1px solid var(--border);
  border-radius:20px;padding:2.25rem 2rem 1.75rem;text-align:center;
  display:flex;flex-direction:column;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:transform .25s ease, box-shadow .25s ease;
}
.role-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.rc-icon{
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto;
}
.rc-icon svg{width:26px;height:26px;stroke-width:1.8;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rc-title{
  margin-top:1.25rem;font-size:22px;font-weight:600;letter-spacing:-.005em;
}
.rc-divider{
  width:32px;height:1px;margin:.65rem auto 0;
}
.rc-text{
  margin-top:1.1rem;font-size:14.5px;line-height:1.65;color:var(--text2);
  flex:1;
}
.rc-cta{
  margin-top:1.75rem;width:100%;display:inline-flex;align-items:center;
  justify-content:center;gap:.5rem;
  border:none;cursor:pointer;color:#fff;
  font-family:inherit;font-size:14.5px;font-weight:500;
  padding:.95rem 1.25rem;border-radius:12px;
  transition:background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.rc-cta svg{width:14px;height:14px}
.rc-cta:active{transform:translateY(1px)}
.rc-cta:focus-visible{outline:2px solid var(--text);outline-offset:2px}

/* Green variant */
.role-card--green .rc-icon{background:#dcfce7;color:var(--brand)}
.role-card--green .rc-title{color:#16a34a}
.role-card--green .rc-divider{background:var(--brand)}
.role-card--green .rc-cta{background:var(--brand)}
.role-card--green .rc-cta:hover{background:var(--brand-2)}

/* Blue variant */
.role-card--blue .rc-icon{background:#dbeafe;color:#2563eb}
.role-card--blue .rc-title{color:#2563eb}
.role-card--blue .rc-divider{background:#2563eb}
.role-card--blue .rc-cta{background:#2563eb}
.role-card--blue .rc-cta:hover{background:#1d4ed8}

/* Violet variant (Observer) */
.role-card--violet .rc-icon{background:#ede9fe;color:#7c3aed}
.role-card--violet .rc-title{color:#7c3aed}
.role-card--violet .rc-divider{background:#7c3aed}
.role-card--violet .rc-cta{background:#7c3aed}
.role-card--violet .rc-cta:hover{background:#6d28d9}

/* Educational banner */
.home-banner{
  margin-top:3rem;display:inline-flex;align-items:center;gap:.55rem;
  background:#f1f5f9;color:var(--text2);
  font-size:13px;padding:.55rem 1.1rem;border-radius:100px;
  border:1px solid var(--border);
}
.home-banner svg{width:14px;height:14px;color:#94a3b8}

/* Mountain decoration
 * Contrainte à gauche comme le hero login (~65 % du viewport) :
 * left:0 → right:35 % reproduit la colonne hero face à la carte (35 %).
 * Même hauteur / opacité / masques que .login-hero-mountain. */
.home-mountain{
  position:absolute;bottom:0;left:0;right:35%;
  height:340px;overflow:hidden;pointer-events:none;z-index:0;
}
.home-mountain img{
  display:block;width:100%;height:100%;
  object-fit:cover;object-position:60% 50%;opacity:.92;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 70%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 2%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 70%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 2%, #000 97%, transparent 100%);
          mask-composite: intersect;
}

/* Responsive */
@media (max-width: 960px){
  .role-cards{grid-template-columns:repeat(2,1fr);max-width:660px}
}
@media (max-width: 620px){
  .role-cards{grid-template-columns:1fr;max-width:480px}
  .home-content{padding:2rem 1.25rem}
  .home-decor,.home-mountain{display:none}
}

/* ─── Sources live ─── */
/* ─── Inject cards (new design) ─── */
.inject-card{
  background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:1rem 1.15rem;margin-bottom:.7rem;
  box-shadow:var(--shadow-sm);
  transition:border-color .12s,box-shadow .12s;
}
.inject-card:hover{border-color:#d8b4fe;box-shadow:var(--shadow-md)}
.inject-card:last-child{margin-bottom:0}
.inject-card--loading{
  background:#faf5ff;border-color:#e9d5ff;
  min-height:70px;display:flex;align-items:center;justify-content:center;
  gap:.55rem;color:var(--text3);font-size:12.5px;font-style:italic;
  animation:pulse 1.4s ease-in-out infinite;
}
.inject-card--loading:hover{border-color:#e9d5ff;box-shadow:var(--shadow-sm)}
.inject-card--loading svg{color:#a78bfa}

.inject-row{display:flex;align-items:center;gap:.85rem}
.inject-channel{
  width:36px;height:36px;border-radius:50%;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:11.5px;letter-spacing:.02em;
}
.inject-channel--x{background:#000}
.inject-channel--x svg{width:14px;height:14px;fill:#fff}
.inject-channel--of{background:var(--of)}

.inject-cat{
  display:inline-flex;align-items:center;flex-shrink:0;
  font-size:10.5px;font-weight:700;letter-spacing:.08em;
  padding:4px 11px;border-radius:6px;
}
.inject-cat--social{background:#f3e8ff;color:#7e22ce}
.inject-cat--media{background:#dbeafe;color:#1e40af}

.inject-content{flex:1;min-width:0;font-size:13.5px;line-height:1.55;color:var(--text)}
.inject-content strong{font-weight:700;color:var(--text);display:block;margin-bottom:2px}

.inject-meta{display:flex;align-items:center;gap:.85rem;flex-shrink:0}
.inject-time{font-size:12px;color:var(--text3);white-space:nowrap;font-weight:500}
.inject-use-btn{
  padding:.45rem 1.05rem;font-size:12.5px;font-weight:600;
  border-radius:8px;white-space:nowrap;
}

.inject-justif{
  margin-top:.6rem;padding-left:50px;
  font-size:11.5px;color:var(--text2);font-style:italic;line-height:1.45;
  display:flex;align-items:flex-start;gap:.4rem;
}
.inject-justif-icon{color:#f59e0b;flex-shrink:0;margin-top:1px;width:14px;height:14px}

.inject-card-img{margin:.55rem 0 0 50px;border-radius:6px;overflow:hidden}
.inject-card-img img{width:100%;max-height:110px;object-fit:cover;display:block}

/* Inject card header pieces */
.injects-count-pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 7px;border-radius:100px;
  background:var(--brand);color:#fff;
  font-size:11px;font-weight:700;letter-spacing:0;text-transform:none;
}

.manualpubs-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 5px;border-radius:100px;
  background:var(--brand);color:#fff;font-size:10px;font-weight:700;
}

.src-cols{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:.25rem}
.src-col{min-width:0}
.src-col-head{
  font-size:11px;font-weight:700;color:var(--text2);
  text-transform:uppercase;letter-spacing:.12em;
  margin-bottom:.7rem;display:flex;align-items:center;gap:.5rem;
}
.src-col-label{color:var(--text2)}
.src-col-suffix{color:var(--text3);font-weight:500;text-transform:lowercase;letter-spacing:0;font-size:10.5px}
.src-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 6px;border-radius:100px;
  background:var(--brand-soft);color:var(--brand-2);
  font-size:10.5px;font-weight:700;letter-spacing:0;text-transform:none;
}
.src-list{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;margin-bottom:.5rem}
.src-item{
  display:inline-flex;align-items:center;gap:4px;
  background:#fff;border:1px solid var(--border2);
  border-radius:100px;padding:5px 5px 5px 12px;
  transition:background .12s,border-color .12s,box-shadow .12s;
}
.src-item:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:var(--shadow-sm)}
.src-tag{font-size:12px;color:var(--text);font-family:'JetBrains Mono',monospace;line-height:1;white-space:nowrap}
.src-del{
  background:none;border:none;cursor:pointer;color:var(--text3);
  font-size:11px;line-height:1;padding:0 4px;flex-shrink:0;
  border-radius:50%;width:16px;height:16px;
  display:inline-flex;align-items:center;justify-content:center;
}
.src-del:hover{color:#dc2626;background:rgba(220,38,38,.1)}
.src-empty{font-size:11px;color:var(--text3);font-style:italic;padding:2px 0}

/* "+ Ajouter" pill */
.src-add-pill{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:inherit;font-size:12px;font-weight:500;
  color:var(--text2);background:#fff;
  border:1px dashed var(--border2);
  border-radius:100px;padding:5px 14px;
  cursor:pointer;line-height:1;
  transition:background .12s,border-color .12s,color .12s;
}
.src-add-pill:hover{background:var(--brand-soft);color:var(--brand-2);border-color:var(--brand);border-style:solid}

/* Inline add input (revealed by + Ajouter) */
.src-add-row{display:none;gap:4px;margin-top:.4rem;align-items:center}
.src-cancel-btn{
  background:none;border:1px solid var(--border2);
  border-radius:var(--radius-sm);
  cursor:pointer;color:var(--text3);
  font-size:14px;line-height:1;
  width:32px;height:32px;flex-shrink:0;
}
.src-cancel-btn:hover{color:#dc2626;border-color:#fca5a5}

/* Collapsible suggestions */
.src-suggestions{margin-top:.65rem}
.src-suggestions summary{
  font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text3);cursor:pointer;padding:2px 0;list-style:none;
  display:inline-flex;align-items:center;gap:.3rem;
}
.src-suggestions summary::-webkit-details-marker{display:none}
.src-suggestions summary::before{content:"▸";font-size:8px;transition:transform .15s}
.src-suggestions[open] summary::before{transform:rotate(90deg)}
.src-suggestions[open] summary{margin-bottom:.4rem}
.src-add-row input{flex:1;min-width:0}
.src-sugg-head{
  font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text3);margin:.7rem 0 .35rem;
}
.src-sugg-grid{display:flex;flex-wrap:wrap;gap:4px}
.src-sugg-chip{
  font-size:11px;font-weight:600;
  background:var(--bg2);color:var(--text2);
  border:1px solid var(--border);border-radius:100px;
  padding:3px 9px;cursor:pointer;
  transition:all .12s;white-space:nowrap;
  font-family:inherit;
}
.src-sugg-chip:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.src-sugg-chip.added{
  background:#f0fdf4;border-color:#bbf7d0;color:#16a34a;
  cursor:default;opacity:.85;
}
.src-add-btn{padding:.4rem .6rem;font-size:14px;font-weight:700;line-height:1}

/* ─── NEWSROOM ─── */
#newsroom{flex:1;display:flex;flex-direction:column;min-height:0}
.nr-layout{display:grid;grid-template-columns:1fr 1fr;flex:1;overflow:hidden;min-height:0}

/* Columns */
.nr-col{
  overflow-y:auto;overflow-x:hidden;background:var(--bg);
  padding:1rem;
  display:flex;flex-direction:column;gap:.85rem;
  border-right:1px solid var(--border);
  /* Grid items default to min-height:auto, which prevents the column from
     scrolling when its content exceeds the layout height. Force min-* to 0. */
  min-height:0;min-width:0;
  /* Reserve gutter so layout doesn't shift when scrollbar appears */
  scrollbar-gutter:stable;
  /* Firefox: thin always-visible scrollbar */
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.nr-col:last-child{border-right:none}
/* WebKit/Chromium/Edge: always-visible thin scrollbar */
.nr-col::-webkit-scrollbar{width:10px;height:10px}
.nr-col::-webkit-scrollbar-track{background:transparent}
.nr-col::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:6px;border:2px solid var(--bg)}
.nr-col::-webkit-scrollbar-thumb:hover{background:#94a3b8}

/* Cards keep their natural height - never let the column compress them */
.nr-card{flex-shrink:0}

/* Cards */
.nr-card{
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  display:flex;flex-direction:column;
}
.section-context  {border-top:3px solid #3b82f6}
.section-composer {border-top:3px solid var(--brand)}
.section-injects  {border-top:3px solid #a855f7}
.section-timeline {border-top:3px solid #f59e0b}

/* Card header */
.nr-card-head{
  display:flex;align-items:center;gap:.65rem;
  padding:.85rem 1.25rem;
  border-bottom:1px solid var(--border);
  background:var(--bg2);flex-shrink:0;
}
.nr-card-icon-wrap{
  width:28px;height:28px;border-radius:8px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
}
.nr-card-icon-wrap svg{width:14px;height:14px}
.section-context  .nr-card-icon-wrap{background:#dbeafe;color:#1e40af}
.section-composer .nr-card-icon-wrap{background:var(--brand-soft);color:var(--brand-2)}
.section-injects  .nr-card-icon-wrap{background:#f3e8ff;color:#7e22ce}
.section-timeline .nr-card-icon-wrap{background:#fef3c7;color:#b45309}
.nr-card-title{font-size:12.5px;font-weight:700;color:var(--text);flex:1;text-transform:uppercase;letter-spacing:.08em}
.nr-card-chevron{font-size:10px;color:var(--text3);transition:transform .2s;margin-left:auto}

/* Unified collapse/expand toggle for newsroom tiles + context tile */
.nr-card-toggle{
  background:none;border:1px solid transparent;cursor:pointer;
  padding:5px;color:#64748b;border-radius:6px;
  display:inline-flex;align-items:center;justify-content:center;
  transition:all .15s;flex-shrink:0;margin-left:.5rem;
  width:28px;height:28px;
}
.nr-card-toggle:hover{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0}
.nr-card-toggle svg{width:14px;height:14px;transition:transform .25s ease}
.nr-card.collapsed .nr-card-toggle svg,
.ctx-collapsed .nr-card-toggle svg{transform:rotate(-90deg)}
.nr-card.collapsed > .nr-card-body{display:none !important}

/* Card body */
.nr-card-body{padding:1.1rem 1.25rem;flex:1}
.nr-card-actions{display:flex;align-items:center;gap:8px;margin-top:1rem;flex-wrap:wrap}

/* Context: 4-column horizontal layout with icons + vertical dividers */
.ctx-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:start}
.ctx-field{
  display:flex;flex-direction:column;gap:.55rem;min-width:0;
  padding:0 1.25rem;
  border-left:1px solid var(--border);
}
.ctx-field:first-child{border-left:none;padding-left:0}
.ctx-field:last-child{padding-right:0}
.ctx-field-icon{
  width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;
  color:#94a3b8;
}
.ctx-field-icon svg{width:20px;height:20px}
.ctx-field-label{
  font-size:10.5px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text3);margin:0;
}

/* View mode (default): inputs styled as flowing text, non-interactive */
.ctx-field input[type=text],
.ctx-field textarea{
  width:100%;border:none;background:transparent;
  padding:.1rem 0;font-size:13.5px;color:var(--text);
  font-family:inherit;line-height:1.5;font-weight:500;
  resize:none;border-radius:0;
  pointer-events:none;cursor:default;
}
.ctx-field input[type=text]::placeholder,
.ctx-field textarea::placeholder{color:var(--text3);font-weight:400}
.ctx-field textarea{min-height:46px}

/* Edit mode: inputs become real form fields */
#ctx-panel.ctx-edit-mode .ctx-field input[type=text],
#ctx-panel.ctx-edit-mode .ctx-field textarea{
  border:1px solid var(--border2);background:#fff;
  padding:.5rem .75rem;border-radius:var(--radius-sm);
  pointer-events:auto;cursor:text;
  transition:border-color .12s,box-shadow .12s;
}
#ctx-panel.ctx-edit-mode .ctx-field input[type=text]:focus,
#ctx-panel.ctx-edit-mode .ctx-field textarea:focus{
  border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint);
}

/* Body action row: always visible - header "Éditer" controls only field editability */
#ctx-panel .nr-card-actions{margin-top:1.25rem}
/* Hide "Sauvegarder" body button when not in edit mode to avoid duplication with header */
#ctx-panel:not(.ctx-edit-mode) #btn-save-context{display:none}

/* Edit toggle button in card header */
.ctx-edit-btn{
  margin-left:auto;
  padding:.4rem .85rem;font-size:12px;font-weight:500;
  text-transform:none;letter-spacing:0;border-radius:8px;
}
.ctx-edit-btn svg{flex-shrink:0}
@media (max-width:1100px){
  .ctx-grid{grid-template-columns:repeat(2,1fr)}
  .ctx-field{padding:0 .75rem}
  .ctx-field:nth-child(odd){border-left:none;padding-left:0}
  .ctx-field:nth-child(2n){padding-right:0}
}

/* Composer side-by-side grid (form left, preview right) */
.nr-composer-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:1rem;align-items:start;
}
.nr-composer-form-col{min-width:0}
.nr-composer-preview-col{
  position:sticky;top:0;
  background:#f8fafc;border:1px solid var(--border);
  border-radius:12px;padding:.85rem;
  display:flex;flex-direction:column;gap:.5rem;
}
@media (max-width:1200px){
  .nr-composer-grid{grid-template-columns:1fr}
  .nr-composer-preview-col{position:static}
}

.nr-preview-label{
  font-size:10px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text3);
  margin-bottom:.5rem;display:flex;align-items:center;gap:.4rem;
}
.nr-preview-label svg{width:12px;height:12px}
.nr-preview-tweet-card{
  background:#000;border:1px solid #2f3336;border-radius:12px;
  padding:.75rem;font-size:12px;color:#e7e9ea;
}
.nr-preview-tweet-name{font-weight:700;color:#fff;font-size:12.5px}
.nr-preview-tweet-handle{color:#71767b;font-size:11.5px}
.nr-preview-tweet-body{
  margin-top:.4rem;line-height:1.45;color:#e7e9ea;
  font-size:12.5px;word-break:break-word;white-space:pre-wrap;
}
.nr-preview-tweet-img{width:100%;border-radius:8px;margin-top:.5rem;max-height:120px;object-fit:cover;display:block}
.nr-preview-of-card{
  background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.nr-preview-of-source{
  display:flex;align-items:center;gap:.4rem;padding:.6rem .75rem .35rem;
}
.nr-preview-of-srclogo{
  width:18px;height:18px;border-radius:4px;background:var(--of);
  color:#fff;font-size:9px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
}
.nr-preview-of-srcname{font-size:12px;font-weight:600;color:var(--of)}
.nr-preview-of-rubrique{
  font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--text3);margin-left:auto;
}
.nr-preview-of-headline{
  font-size:14px;font-weight:700;color:var(--text);
  padding:.1rem .75rem .35rem;line-height:1.3;
}
.nr-preview-of-chapo{font-size:11.5px;color:var(--text2);padding:0 .75rem .55rem;line-height:1.45}
.nr-preview-of-img{width:100%;max-height:140px;object-fit:cover;display:block}

/* Timeline */
.nr-timeline-body{padding:0}
.nr-timeline-section{padding:.85rem 1.25rem}
.nr-timeline-section+.nr-timeline-section{border-top:1px solid var(--border)}
.nr-timeline-section-head{
  display:flex;align-items:center;gap:.5rem;
  font-size:11px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--text2);
  margin-bottom:.65rem;
}
.nr-timeline-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.nr-timeline-dot--sent{background:#16a34a;box-shadow:0 0 0 3px #dcfce7}
.nr-timeline-dot--pending{background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}

/* Timeline filter tabs */
.timeline-filters{display:flex;align-items:center;gap:.25rem;margin-left:auto}
.tl-filter{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:inherit;font-size:12px;font-weight:500;line-height:1;
  cursor:pointer;white-space:nowrap;
  height:30px;padding:0 .9rem;border-radius:100px;
  background:transparent;color:var(--text2);
  border:1.5px solid transparent;
  transition:background .15s,color .15s,border-color .15s;
}
.tl-filter:hover{color:var(--text)}
.tl-filter.is-active{background:#fff;color:var(--brand-2);border-color:var(--brand);font-weight:600}

/* Timeline rows (unified sent + pending) */
.tl-list{display:flex;flex-direction:column}
.tl-row{
  display:flex;align-items:center;gap:.85rem;
  padding:.85rem 1.25rem;border-bottom:1px solid var(--border);
  transition:background .12s;
}
.tl-row:last-child{border-bottom:none}
.tl-row:hover{background:#fafbfc}
.tl-time-col{
  flex-shrink:0;width:70px;
  display:flex;flex-direction:column;gap:1px;line-height:1.3;
}
.tl-tplus{font-size:12px;font-weight:600;color:var(--text2)}
.tl-clock{font-size:11px;color:var(--text3);font-family:'JetBrains Mono','Cascadia Code',monospace}
.tl-channel{
  width:30px;height:30px;border-radius:50%;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:10px;letter-spacing:.02em;
}
.tl-channel--x{background:#000}
.tl-channel--x svg{width:12px;height:12px;fill:#fff}
.tl-channel--of{background:var(--of)}
.tl-channel--pr{background:#f59e0b;font-size:9.5px}
.tl-content{
  flex:1;min-width:0;font-size:13px;color:var(--text);line-height:1.45;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tl-status{
  display:inline-flex;align-items:center;flex-shrink:0;
  font-size:11.5px;font-weight:600;
  padding:4px 14px;border-radius:8px;
}
.tl-status--sent{background:#dcfce7;color:#15803d}
.tl-status--pending{background:#ffedd5;color:#c2410c}
.tl-status--cancelled{background:#e5e7eb;color:#6b7280;text-decoration:line-through}
.tl-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}

/* Reaction count buttons (sent items) */
.tl-reaction-btn{
  display:inline-flex;align-items:center;gap:.3rem;
  background:#f8fafc;border:1px solid var(--border);
  border-radius:6px;padding:3px 8px;
  cursor:pointer;font-family:inherit;font-size:11.5px;color:var(--text2);
  transition:background .12s,border-color .12s,transform .08s;
}
.tl-reaction-btn:hover{background:#f1f5f9;border-color:var(--border2)}
.tl-reaction-btn:active{transform:scale(.96)}
.tl-reaction-btn.reacting{opacity:.5;pointer-events:none;animation:pulse .9s ease-in-out infinite}
.tl-reaction-icon{font-size:13px;line-height:1}

/* Edit / delete icon buttons (pending items) */
.tl-icon-btn{
  width:30px;height:30px;border-radius:6px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--border);
  cursor:pointer;color:var(--text2);
  transition:background .12s,border-color .12s,color .12s;
}
.tl-icon-btn:hover{background:#f8fafc;border-color:var(--border2);color:var(--text)}
.tl-icon-btn--del:hover{color:#dc2626;border-color:#fca5a5;background:#fef2f2}
.tl-import-excel-btn{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;margin:0;text-transform:none;letter-spacing:0;font-size:12px}

/* Composer + timeline-row "save success" flash */
@keyframes composer-flash {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); transform: scale(1); }
  30%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);  transform: scale(1.005); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);    transform: scale(1); }
}
.composer-flash {
  animation: composer-flash .7s ease-out;
  border-color: #22c55e !important;
}

@keyframes tl-row-flash {
  0%   { background: rgba(34, 197, 94, .35); }
  60%  { background: rgba(34, 197, 94, .15); }
  100% { background: transparent; }
}
.tl-row-flash {
  animation: tl-row-flash 1.2s ease-out;
}
.tl-icon-btn--send{color:#7c3aed;border-color:#ddd6fe;background:#f5f3ff}
.tl-icon-btn--send:hover{color:#fff;border-color:#7c3aed;background:#7c3aed}
.tl-icon-btn svg{width:13px;height:13px}

.tl-more-btn{
  background:none;border:none;cursor:pointer;
  color:var(--text3);font-size:18px;line-height:1;
  padding:4px 8px;border-radius:6px;font-family:inherit;
}
.tl-more-btn:hover{background:#f1f5f9;color:var(--text)}

/* Footer "Voir tout" */
.tl-footer{
  padding:.6rem 1.25rem;display:flex;justify-content:center;align-items:center;gap:.6rem;
  border-top:1px solid var(--border);min-height:32px;
}
.tl-footer:empty{display:none}
.tl-pager-btn{
  background:none;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;
  width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;
  color:#475569;transition:all .15s;padding:0;
}
.tl-pager-btn:hover:not(:disabled){background:#f1f5f9;border-color:#cbd5e1;color:#0f172a}
.tl-pager-btn:disabled{opacity:.4;cursor:not-allowed}
.tl-pager-btn svg{width:13px;height:13px}
.tl-pager-info{
  font-size:12px;color:#64748b;font-family:'JetBrains Mono',monospace;
  letter-spacing:.02em;user-select:none;
}

/* Legacy aliases - kept for JS-rendered content that uses old class names */
.nr-inner{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:1.1rem 1.25rem}
.panel-head{font-size:13.5px;font-weight:700;color:var(--text);margin-bottom:.95rem;display:flex;align-items:center;gap:.55rem}
.panel-icon{width:24px;height:24px;border-radius:7px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.panel-icon svg{width:13px;height:13px}

/* Platform tabs */
.plat-tabs{display:flex;gap:6px;margin-bottom:1.25rem}
.plat-tab{
  display:flex;align-items:center;gap:6px;padding:.45rem .95rem;
  border:1px solid var(--border2);border-radius:100px;
  font-size:13px;cursor:pointer;background:#fff;color:var(--text2);
  transition:all .12s;font-family:inherit;
}
.plat-tab:hover{background:var(--bg3)}
.plat-tab.active-x{background:#000;border-color:#000;color:#fff}
.plat-tab.active-of{background:var(--of);border-color:var(--of);color:#fff}
.plat-tab.active-prompt{background:#f59e0b;border-color:#f59e0b;color:#fff}

/* Composer preview - prompt card */
.nr-preview-prompt-card{padding:1rem;background:#fff;border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;gap:.7rem}
.nr-preview-prompt-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.nr-preview-prompt-sujet{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#92400e;background:#fde68a;padding:3px 8px;border-radius:6px}
.nr-preview-prompt-resume{font-size:13.5px;font-weight:600;color:#0f172a}
.nr-preview-prompt-flow{display:flex;align-items:center;gap:.4rem;font-size:12.5px;color:#475569;font-weight:500;flex-wrap:wrap}
.nr-preview-prompt-arrow{color:#7c3aed;font-weight:700}
.nr-preview-prompt-stimuli{font-size:13px;line-height:1.5;color:#0f172a;background:#f8fafc;border-left:3px solid #7c3aed;padding:.6rem .8rem;border-radius:0 8px 8px 0;white-space:pre-wrap}
.nr-preview-prompt-reaction{font-size:12px;color:#15803d;background:#f0fdf4;padding:.5rem .7rem;border-radius:6px;line-height:1.45}
.nr-preview-prompt-label{display:block;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#16a34a;margin-bottom:.2rem}
.prompt-modal-card--view{max-width:560px}

/* Import result modal */
.ir-headline{font-size:15px;font-weight:700;color:#0f172a;margin-bottom:1rem;line-height:1.4}
.ir-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-bottom:1rem}
.ir-tile{padding:.85rem .9rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;text-align:center}
.ir-tile-value{font-size:24px;font-weight:800;color:#0f172a;line-height:1;font-family:'JetBrains Mono',monospace}
.ir-tile-label{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#94a3b8;margin-top:.4rem}
.ir-tile-extra{font-size:11px;color:#64748b;margin-top:.25rem}
.ir-tile:nth-child(1){background:#f0fdf4;border-color:#bbf7d0}
.ir-tile:nth-child(1) .ir-tile-value{color:#16a34a}
.ir-tile:nth-child(2):not(:has(.ir-tile-value:empty)) .ir-tile-value{color:#94a3b8}
.ir-breakdown{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.85rem}
.ir-pill{display:inline-flex;align-items:center;font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;letter-spacing:.02em}
.ir-pill--pr{background:#fed7aa;color:#9a3412}
.ir-pill--x{background:#0f172a;color:#fff}
.ir-pill--of{background:#dbeafe;color:#1e40af}
.ir-line{font-size:13px;color:#0f172a;padding:.4rem 0;line-height:1.5}
.ir-line--ok{color:#16a34a;font-weight:600}
.ir-line--warn{color:#92400e}
.ir-line--muted{color:#94a3b8;font-size:11.5px;margin-top:.5rem;border-top:1px solid #f1f5f9;padding-top:.5rem}
.ir-sources{display:flex;flex-direction:column;gap:.5rem;margin:.6rem 0 1rem}
.ir-source-row{display:flex;align-items:flex-start;gap:.7rem;padding:.7rem .85rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.ir-source-icon{flex-shrink:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px}
.ir-source-icon--pr{background:#fed7aa}
.ir-source-icon--ai{background:#ede9fe}
.ir-source-text{flex:1;min-width:0}
.ir-source-title{font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.35}
.ir-source-sub{font-size:11.5px;color:#64748b;margin-top:.15rem;line-height:1.4}

/* Import progress stepper */
.ip-steps{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-direction:column}
.ip-step{display:flex;align-items:center;gap:.85rem;padding:.55rem 0;position:relative;color:#94a3b8;font-size:13.5px;line-height:1.4}
.ip-step:not(:last-child)::after{
  content:'';position:absolute;left:11px;top:32px;bottom:-6px;width:2px;background:#e2e8f0;
}
.ip-step--done:not(:last-child)::after{background:#16a34a}
.ip-step-icon{
  flex-shrink:0;width:24px;height:24px;border-radius:50%;
  border:2px solid #cbd5e1;background:#fff;
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;transition:all .2s;
}
.ip-step-label{font-weight:500}
.ip-step--active{color:#0f172a;font-weight:600}
.ip-step--active .ip-step-icon{
  border-color:#7c3aed;background:#ede9fe;
}
.ip-step--active .ip-step-icon::before{
  content:'';width:10px;height:10px;border-radius:50%;
  border:2px solid #7c3aed;border-top-color:transparent;
  animation:ip-spin .8s linear infinite;
}
.ip-step--done{color:#0f172a}
.ip-step--done .ip-step-icon{
  border-color:#16a34a;background:#16a34a;
}
.ip-step--done .ip-step-icon::before{
  content:'';width:8px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) translate(1px, -1px);
}
@keyframes ip-spin{to{transform:rotate(360deg)}}
.ip-hint{font-size:11.5px;color:#94a3b8;text-align:center;font-style:italic;border-top:1px solid #f1f5f9;padding-top:.7rem}

/* Forms */
label{display:block;font-size:11px;font-weight:600;color:var(--text2);margin-bottom:.35rem;margin-top:1rem;text-transform:uppercase;letter-spacing:.06em}
label:first-of-type,.nr-inner label:first-of-type{margin-top:0}
input[type=text],input[type=number],input[type=password],textarea,select{
  width:100%;background:#fff;border:1px solid var(--border2);
  border-radius:var(--radius-sm);padding:.55rem .8rem;font-size:13px;color:var(--text);
  font-family:inherit;resize:vertical;outline:none;
  transition:border-color .12s, box-shadow .12s;
}
input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
textarea{min-height:90px}
.char-count{font-size:11px;color:var(--text3);text-align:right;margin-top:.25rem}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* Engagement metrics - 4-column grid with icon-prefixed inputs */
.num-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;
  margin-top:.85rem;
}
.num-field{min-width:0;display:flex;flex-direction:column}
.num-field label{margin-top:0;margin-bottom:.4rem}
.num-input{
  position:relative;display:flex;align-items:center;
}
.num-icon{
  position:absolute;left:.6rem;width:14px;height:14px;
  color:var(--text3);pointer-events:none;
}
.num-input input{padding-left:1.85rem}
.num-field select{padding-right:1.5rem}
@media (max-width:1100px){
  .num-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.img-row{display:flex;gap:6px;align-items:stretch}
.img-row input{flex:1;min-width:0}
.find-img-btn{flex-shrink:0;font-size:12px;padding:.5rem .75rem}
.form-actions{display:flex;align-items:center;gap:8px;margin-top:1.25rem;flex-wrap:wrap}
.offset-field{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text2)}
.offset-field input{width:64px;text-align:right}
.divider{border:none;border-top:1px solid var(--border);margin:1.1rem 0}

/* Scenario */
.scenario-empty{text-align:center;padding:2.75rem 1rem;color:var(--text3);font-size:13px}
.scene-item{
  background:#fff;border:1px solid var(--border);border-radius:10px;
  padding:.65rem .9rem;margin-bottom:.5rem;display:flex;align-items:flex-start;gap:.7rem;
  transition:border-color .15s;
}
.scene-item:hover{border-color:var(--border2)}
.scene-badge{display:inline-flex;align-items:center;font-size:10px;font-weight:700;padding:2px 7px;border-radius:100px;white-space:nowrap;flex-shrink:0;margin-top:2px;letter-spacing:.04em}
.badge-x{background:#000;color:#fff}
.badge-of{background:var(--of);color:#fff}
.scene-text{font-size:12px;color:var(--text);flex:1;line-height:1.4}
.scene-time{font-size:11px;color:var(--text3);white-space:nowrap;flex-shrink:0;font-family:monospace}
.scene-del{background:none;border:none;cursor:pointer;color:var(--text3);font-size:15px;line-height:1;padding:0 2px;flex-shrink:0}
.scene-del:hover{color:#dc2626}
/* En-têtes de groupe (À venir / Envoyées) */
.scene-group-head{
  display:flex;align-items:center;gap:.5rem;
  font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:.5rem .25rem .35rem;margin-top:.25rem;
  border-bottom:1px solid var(--border);margin-bottom:.55rem;
}
.scene-group-head:first-child{margin-top:0}
.scene-group-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.scene-group-pending{color:#b45309}
.scene-group-pending .scene-group-dot{background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}
.scene-group-sent{color:#16a34a;margin-top:.9rem}
.scene-group-sent .scene-group-dot{background:#16a34a}
.scene-group-count{
  margin-left:auto;background:rgba(0,0,0,.06);color:var(--text2);
  font-size:10px;font-weight:700;padding:1px 7px;border-radius:100px;letter-spacing:0;
}

/* Item envoyé : visuellement très atténué + strikethrough */
.scene-item-sent{
  background:#f9fafb;border-color:#e5e7eb;
  border-left:3px solid #16a34a;padding-left:calc(.9rem - 2px);
}
.scene-item-sent .scene-badge{opacity:.55}
.scene-item-sent .scene-text{
  color:var(--text3);text-decoration:line-through;text-decoration-color:#9ca3af;
}
.scene-sent-mark{
  font-size:10px;font-weight:800;color:#fff;background:#16a34a;
  padding:3px 8px;border-radius:100px;
  white-space:nowrap;flex-shrink:0;letter-spacing:.04em;
}
.reaction-btns{display:flex;gap:3px;flex-shrink:0}
.reaction-btn{
  background:none;border:1px solid var(--border);border-radius:6px;
  padding:2px 6px;cursor:pointer;font-size:13px;line-height:1.4;
  transition:background .1s,border-color .1s,transform .08s;
}
.reaction-btn:hover{background:var(--bg3);border-color:var(--border2);transform:scale(1.15)}
.reaction-btns.reacting .reaction-btn{opacity:.35;pointer-events:none;animation:pulse .9s ease-in-out infinite}
.ex-controls{
  margin:auto -.85rem -.85rem;
  padding:.95rem 1.25rem;background:var(--bg3);border-top:1px solid var(--border);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.ex-status{font-size:12px;color:var(--text2)}
.ex-status.running{color:var(--brand-2);font-weight:600}
.ex-status.paused{color:#d97706;font-weight:600}

/* ─── CRISIS WALL ─── */
#wall{flex:1;display:flex;flex-direction:column;min-height:0;background:#f8fafc}
.wall-content{display:flex;flex:1;overflow:hidden;min-height:0}
.wall-col{display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--border);background:var(--bg2);position:relative;min-width:0}
.wall-col--twister{flex:0 0 50%;}
.wall-col--press{flex:0 0 50%;}
@media (max-width:1100px){
  .wall-col--twister{flex:0 0 50%}
  .wall-col--press{flex:1}
}

/* Pastille "X nouvelles publications" */
.new-items-pill{
  position:absolute;top:54px;left:50%;transform:translateX(-50%);
  z-index:50;
  background:var(--brand);color:#fff;border:none;border-radius:100px;
  padding:.45rem 1.05rem;font-size:12.5px;font-weight:700;
  font-family:inherit;cursor:pointer;
  box-shadow:0 4px 14px rgba(34,197,94,.45),0 1px 3px rgba(0,0,0,.15);
  display:inline-flex;align-items:center;gap:.4rem;
  animation:pillpop .25s cubic-bezier(.16,1,.3,1.2),pillpulse 1.6s ease-in-out infinite .25s;
}
.new-items-pill:hover{background:var(--brand-2)}
@keyframes pillpop{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes pillpulse{0%,100%{box-shadow:0 4px 14px rgba(34,197,94,.45),0 1px 3px rgba(0,0,0,.15)}50%{box-shadow:0 4px 22px rgba(34,197,94,.7),0 1px 3px rgba(0,0,0,.15)}}

/* Tweet "hot" - fort engagement ou viral */
.tweet.tweet-hot{box-shadow:0 0 0 2px #f59e0b,0 4px 18px rgba(245,158,11,.35)}
.tweet.tweet-hot::before{
  content:"FORT ENGAGEMENT";
  position:absolute;top:-9px;right:14px;
  background:#f59e0b;color:#000;font-size:9.5px;font-weight:800;
  letter-spacing:.08em;padding:2px 8px;border-radius:100px;
}
.tweet{position:relative}

/* Double horodatage T+ / heure réelle */
.time-tplus{font-weight:700;color:var(--brand-2)}
.tweet-time .time-tplus{color:#1d9bf0}
.time-real{opacity:.85}
.wall-col:last-child{border-right:none}
.wall-col-head{
  padding:.7rem 1.1rem;border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:.75rem;flex-shrink:0;background:#fff;
  min-height:48px;
}
.wall-col-title{display:flex;align-items:center;gap:.55rem;flex:1;min-width:0}
.wall-col-titles{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2}
.chan-label{font-size:13px;font-weight:800;letter-spacing:.16em;color:var(--text)}
.chan-sublabel{font-size:11px;font-weight:400;color:var(--text3);letter-spacing:0;margin-top:2px}
/* Badge « EN DIRECT » (.chan-live) supprimé avec le fil d'Ariane du mur. */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.55}}
.wall-feed{flex:1;overflow-y:auto;padding:1rem;background:#f8fafc;min-height:0}
.wall-feed--twister{background:#f8fafc}


.wall-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:3.5rem 1rem;font-size:13px;color:var(--text3);gap:.6rem;
}
.wall-empty--dark{color:#64748b}
.wall-empty::before{
  content:"";width:48px;height:48px;border-radius:50%;
  background:var(--brand-tint);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
  background-size:24px 24px;background-position:center;background-repeat:no-repeat;
}

/* Press toolbar - filters + sort */
.wall-press-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:.6rem 1.1rem;background:#fff;border-bottom:1px solid var(--border);
  flex-shrink:0;flex-wrap:wrap;
}
.press-filters{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.press-filter{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:inherit;font-size:11.5px;font-weight:500;line-height:1;
  cursor:pointer;white-space:nowrap;
  height:28px;padding:0 .85rem;border-radius:100px;
  background:#fff;color:var(--text2);
  border:1.5px solid var(--border2);
  transition:background .15s,color .15s,border-color .15s;
}
.press-filter:hover{background:#f1f5f9;border-color:#9ca3af}
.press-filter.is-active{background:#fff;color:var(--brand-2);border-color:var(--brand);font-weight:600}
.press-filter.is-active:hover{background:#f0fdf4;border-color:var(--brand-2)}
.press-sort{
  display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
  font-family:inherit;font-size:11.5px;font-weight:500;line-height:1;
  cursor:pointer;white-space:nowrap;
  height:28px;padding:0 .85rem;border-radius:100px;
  background:#fff;color:var(--text2);border:1.5px solid var(--border2);
  transition:background .15s,border-color .15s;
}
.press-sort:hover{background:#f8fafc;border-color:#9ca3af}
.press-sort svg{width:13px;height:13px;flex-shrink:0}

/* Press toolbar right section (sort + live badge) */
.press-toolbar-right{display:flex;align-items:center;gap:.6rem;flex-shrink:0}

/* Twister column footer - auto-refresh toggle */
.wall-col-footer{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:.55rem 1.1rem;background:#fff;border-top:1px solid var(--border);
  flex-shrink:0;
}
.wall-col-footer-label{font-size:11.5px;color:var(--text2)}
.wall-col--twister .wall-col-footer{background:#fff}

/* ─── Twister dual-feed layout ─── */
.wall-feed-dual{display:flex;flex:1;overflow:hidden;min-height:0}
.feed-x-main{
  flex:3;display:flex;flex-direction:column;overflow:hidden;min-height:0;position:relative;
}
.feed-x-main .new-items-pill{top:8px}
.feed-x-side{
  flex:2;display:flex;flex-direction:column;overflow:hidden;min-height:0;
  border-left:1px solid var(--border);
  background:#f0f4f8;
}
.feed-x-side-hd{
  padding:.4rem .75rem;flex-shrink:0;
  font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text3);border-bottom:1px solid var(--border);
  background:#f0f4f8;
}
.wall-feed--side{padding:.25rem 0}
.wall-feed--twister::-webkit-scrollbar{width:4px}
.wall-feed--twister::-webkit-scrollbar-track{background:transparent}
.wall-feed--twister::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:4px}
.wall-feed--twister{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.12) transparent}

/* Compact tweet card */
.tweet--compact{
  display:flex;align-items:flex-start;gap:.5rem;
  padding:.55rem .7rem;
  border-bottom:1px solid var(--border) !important;
  background:transparent !important;border-radius:0 !important;border-top:none !important;
  border-left:none !important;border-right:none !important;
  cursor:default;transition:background .12s;
}
.tweet--compact:hover{background:rgba(0,0,0,.03) !important}
.tweet-compact-avatar{
  width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;margin-top:1px;
}
.tweet-compact-avatar--ini{
  display:flex;align-items:center;justify-content:center;
  background:#dbeafe;color:#3b82f6;font-size:10px;font-weight:700;
}
.tweet-compact-body{display:flex;flex-direction:column;gap:.12rem;min-width:0;flex:1}
.tweet-compact-meta{display:flex;align-items:baseline;gap:.3rem;min-width:0;flex-wrap:nowrap;overflow:hidden}
.tweet-compact-name{
  font-size:12px;font-weight:700;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;min-width:0;
}
.tweet-compact-handle{font-size:11px;color:var(--text3);white-space:nowrap;flex-shrink:0}
.tweet-compact-text{
  font-size:11.5px;color:var(--text2);line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ─── Reputation module – light theme ─── */
.repute-panel{
  flex-shrink:0;
  background:#f8fafc;border-top:1px solid #e5e7eb;
  padding:.85rem 1rem 1rem;
}
.repute-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:.7rem;
}
.repute-head-left{
  display:flex;align-items:center;gap:.45rem;
  font-size:11px;font-weight:700;letter-spacing:.16em;color:#22c55e;
  text-transform:uppercase;
}
.repute-head-link{
  font-family:inherit;font-size:11.5px;font-weight:500;
  color:#475569;background:none;border:none;cursor:pointer;padding:0;
  transition:color .15s;white-space:nowrap;
}
.repute-head-link:hover{color:#94a3b8}
.repute-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;
}
.repute-card{
  background:#fff;border-radius:14px;border:1px solid #e2e8f0;
  padding:.85rem .9rem;display:flex;flex-direction:column;gap:.35rem;
  box-shadow:0 1px 3px rgba(0,0,0,.06);min-width:0;overflow:hidden;
}
.repute-card-title{
  font-size:10px;font-weight:700;letter-spacing:.13em;
  color:#475569;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.repute-icon-score{display:flex;align-items:center;gap:.5rem}
.repute-big{font-size:26px;font-weight:700;line-height:1;color:#1e293b}
.repute-label{font-size:13px;font-weight:600;line-height:1;color:#64748b}
/* Gauge */
.repute-gauge-wrap{margin-top:.4rem}
.repute-gauge-track{
  position:relative;height:7px;border-radius:100px;
  background:linear-gradient(to right,#ef4444 0%,#f97316 28%,#e5e7eb 50%,#86efac 72%,#22c55e 100%);
}
.repute-gauge-cursor{
  position:absolute;top:50%;transform:translate(-50%,-50%);
  width:3px;height:14px;border-radius:2px;
  background:#1e293b;transition:left .6s ease,background .4s ease;
}
.repute-gauge-scale{
  display:flex;justify-content:space-between;margin-top:4px;
  font-size:10px;color:#475569;
}
.repute-delta{font-size:11px;color:#475569;line-height:1.3;margin-top:.2rem}
/* Card header row - title + info button */
.repute-card-hdr{
  display:flex;align-items:center;justify-content:space-between;gap:.3rem;
}
.repute-card-hdr .repute-card-title{flex:1;min-width:0}
.repute-card-info{
  flex-shrink:0;width:15px;height:15px;border-radius:50%;
  border:1.5px solid #e2e8f0;background:transparent;
  font-size:9px;font-weight:700;color:#94a3b8;font-family:inherit;
  display:flex;align-items:center;justify-content:center;
  cursor:default;line-height:1;padding:0;
  transition:border-color .15s,color .15s;
}
.repute-card-info:hover{border-color:#64748b;color:#94a3b8}
/* Volume card - centered hero layout */
.repute-card--vol{align-items:center;text-align:center;gap:.45rem}
.repute-card--vol .repute-card-hdr{width:100%}
.repute-vol-icon-wrap{
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  background:rgba(99,102,241,.18);color:#818cf8;
  display:flex;align-items:center;justify-content:center;
  margin-top:.2rem;
}
.repute-vol-big{font-size:34px;font-weight:800;letter-spacing:-.02em;margin-top:.05rem}
/* Volume */
.repute-volume-delta{
  font-size:16px;font-weight:700;line-height:1;margin-top:.1rem;
  letter-spacing:-.005em;
}
.repute-sublabel{font-size:11px;color:#475569}
/* Sparkline */
#repute-sparkline{
  width:100%;height:56px;display:block;margin-top:.15rem;
  color:#ef4444; /* used by area gradient via currentColor; recoloured by JS */
}
.repute-spark-row{
  display:flex;font-size:12px;font-weight:700;color:var(--text);
  line-height:1.25;margin-top:.2rem;
}
.repute-spark-row span{flex:1}
.repute-spark-row span:first-child{text-align:left}
.repute-spark-row span:nth-child(2){text-align:center}
.repute-spark-row span:last-child{text-align:right}
.repute-spark-row span:only-child{text-align:center}
.repute-spark-row small{font-size:10px;color:var(--text3);font-weight:400;display:block;margin-top:2px}
.repute-trend-label{font-size:12px;font-weight:600;line-height:1.2;margin-top:.45rem;display:flex;align-items:center;gap:.25rem}
/* Risk */
.repute-card--risk{align-items:center;text-align:center}
.repute-risk-shield{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(239,68,68,.12);color:#ef4444;
  margin-top:.15rem;transition:background .4s ease,color .4s ease;
}
.repute-risk-badge{
  font-size:24px;font-weight:800;letter-spacing:.04em;line-height:1.05;margin-top:.2rem;
  transition:color .4s ease;
}
.repute-risk-sub{font-size:11.5px;color:#64748b}
.repute-risk-note{font-size:10.5px;color:#475569;margin-top:.25rem}
/* Bars */
.repute-bars{display:flex;flex-direction:column;gap:.42rem;flex:1;margin-top:.15rem}
.repute-bar-row{display:flex;align-items:center;gap:.4rem}
.repute-bar-icon{font-size:13px;flex-shrink:0;line-height:1}
.repute-bar-label{font-size:11.5px;color:#64748b;width:48px;flex-shrink:0}
.repute-bar-track{flex:1;height:7px;border-radius:100px;background:#f1f5f9;overflow:hidden}
.repute-bar-fill{height:100%;border-radius:100px;transition:width .6s ease}
.repute-bar--neg{background:#ef4444}
.repute-bar--neu{background:#f59e0b}
.repute-bar--pos{background:#22c55e}
.repute-bar-pct{font-size:11.5px;font-weight:700;color:#64748b;width:32px;text-align:right;flex-shrink:0;white-space:nowrap}
.repute-total{font-size:10.5px;color:#475569;text-align:right;margin-top:.2rem}
@media(max-width:1300px){.repute-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.repute-grid{grid-template-columns:repeat(2,1fr)}}

/* Toggle switch */
.toggle-switch{
  position:relative;width:40px;height:22px;
  background:#cbd5e1;border:none;border-radius:100px;
  cursor:pointer;padding:0;flex-shrink:0;
  transition:background .2s;
}
.toggle-switch.is-on{background:var(--brand)}
.toggle-knob{
  position:absolute;top:2px;left:2px;
  width:18px;height:18px;border-radius:50%;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.15);
  transition:transform .2s;
}
.toggle-switch.is-on .toggle-knob{transform:translateX(18px)}

/* Legacy sim-warn - hidden (replaced by app-footer) */
.sim-warn{display:none}

/* ─── TWEET (dark themed) ─── */
.tweet{background:#000;border:1px solid #2f3336;border-radius:16px;padding:1rem 1rem .85rem;margin-bottom:.85rem;animation:slide-in .35s ease}
.tweet-header{display:flex;align-items:flex-start;gap:.65rem;margin-bottom:.55rem}
.tweet-avatar{width:42px;height:42px;border-radius:50%;flex-shrink:0;background:#1d3a52;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff}
.tweet-names{flex:1;min-width:0}
.tweet-name-row{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tweet-name{font-size:14px;font-weight:700;color:#fff}
.tweet-verified{color:var(--blue);font-size:14px}
.tweet-handle{font-size:13px;color:#71767b}
.tweet-body{font-size:14px;line-height:1.55;color:#e7e9ea;margin-bottom:.6rem;word-break:break-word}
.tweet-img{width:100%;border-radius:12px;margin-bottom:.65rem;max-height:260px;object-fit:cover;display:block}
.tweet-time{font-size:12px;color:#71767b;margin-bottom:.6rem}
.tweet-stats{display:flex;gap:1.25rem;border-top:1px solid #2f3336;padding-top:.6rem;flex-wrap:wrap}
.tweet-stat{display:flex;align-items:center;gap:.3rem;font-size:13px;color:#71767b;position:relative}
.tweet-stat svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Stat numbers - transition-based highlight (no layout reflow) */
.tweet-stat-n{
  display:inline-block;
  font-variant-numeric:tabular-nums;
  transition: color .15s ease-out, transform .15s ease-out, text-shadow .15s ease-out, font-weight .1s;
}
.stat-flash{
  color:#f59e0b !important;
  transform:scale(1.18);
  text-shadow:0 0 6px rgba(245,158,11,.5);
}
.stat-flash-haineux{
  color:#ef4444 !important;
  transform:scale(1.45);
  text-shadow:0 0 10px rgba(239,68,68,.75);
  font-weight:800;
}

/* Badge "+N" */
@keyframes statPop {
  0%   { opacity:0; transform:translate(-50%, 4px) scale(.5) }
  20%  { opacity:1; transform:translate(-50%, -12px) scale(1.05) }
  100% { opacity:0; transform:translate(-50%, -36px) scale(.9) }
}
.tweet-stat-pop{
  position:absolute; top:-2px; left:50%;
  pointer-events:none;
  font-size:11px; font-weight:700; color:#f59e0b;
  background:rgba(245,158,11,.2);
  border:1px solid rgba(245,158,11,.5);
  padding:1px 7px; border-radius:100px;
  white-space:nowrap;
  animation: statPop 1.3s ease-out forwards;
  font-variant-numeric:tabular-nums;
  z-index:5;
}
.tweet-stat-pop.pop-haineux{
  color:#fff; background:#ef4444; border-color:#c00;
  font-size:13px; font-weight:900;
  text-shadow:0 0 4px rgba(0,0,0,.4);
  box-shadow:0 0 12px rgba(239,68,68,.6);
}

/* Aura tweet haineux - transition, pas d'animation (pas de reflow) */
.tweet{ transition: box-shadow .2s ease-out }
.tweet-hate-pulse{ box-shadow:0 0 28px 4px rgba(239,68,68,.6) !important }
.viral-badge{background:#ff4500;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;margin-left:5px;letter-spacing:.04em}
.tweet-live-badge{background:var(--brand);color:#fff;font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;margin-left:5px;letter-spacing:.06em;text-transform:uppercase}

.tweet-link-card{border:1px solid #2f3336;border-radius:12px;overflow:hidden;margin-bottom:.65rem;cursor:pointer;transition:background .15s}
.tweet-link-card:hover{background:#0d0d0d}
.tweet-link-card-img{width:100%;max-height:200px;object-fit:cover;display:block}
.tweet-link-card-meta{padding:.5rem .75rem;background:#000}
.tweet-link-card-domain{font-size:12px;color:#71767b;margin-bottom:.2rem}
.tweet-link-card-title{font-size:13px;color:#e7e9ea;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

.tweet-quote-card{border:1px solid #2f3336;border-radius:14px;padding:.6rem .75rem;margin-bottom:.65rem;cursor:pointer;background:#000;transition:background .15s}
.tweet-quote-card:hover{background:#0d0d0d}
.tweet-quote-header{display:flex;align-items:center;gap:.4rem;margin-bottom:.3rem;font-size:13px}
.tweet-quote-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;flex-shrink:0}
.tweet-quote-avatar-fallback{width:20px;height:20px;border-radius:50%;background:#2f3336;display:flex;align-items:center;justify-content:center;font-size:10px;color:#e7e9ea;flex-shrink:0}
.tweet-quote-name{color:#e7e9ea;font-weight:700}
.tweet-quote-handle{color:#71767b}
.tweet-quote-body{font-size:13px;color:#e7e9ea;line-height:1.4;margin-bottom:.5rem;white-space:pre-wrap;word-break:break-word}
.tweet-quote-media{width:100%;max-height:240px;object-fit:cover;border-radius:10px;display:block}

.tweet-reply-context{margin:0 0 .55rem;padding:.4rem .6rem;border-left:2px solid #2f3336;cursor:pointer;transition:border-color .15s}
.tweet-reply-context:hover{border-left-color:var(--blue)}
.tweet-reply-line{font-size:12px;color:#71767b;margin-bottom:.2rem}
.tweet-reply-to{color:var(--blue)}
.tweet-reply-excerpt{font-size:12px;color:#8b98a5;line-height:1.4;font-style:italic;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ─── PRESS CARD (horizontal layout - image left, content right) ─── */
.of-card{
  background:#fff;border:1px solid var(--border);border-radius:12px;
  margin-bottom:.85rem;overflow:hidden;animation:slide-in .35s ease;
  box-shadow:var(--shadow-sm);
  display:flex;gap:1rem;padding:.9rem 1rem;
  transition:box-shadow .15s,border-color .15s;
}
.of-card:hover{box-shadow:var(--shadow-md);border-color:#cbd5e1}
.of-thumb{
  width:140px;height:90px;flex-shrink:0;
  border-radius:8px;overflow:hidden;
  background:#f1f5f9;border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
}
.of-img{width:100%;height:100%;object-fit:cover;display:block}
.of-thumb-empty{font-size:24px;opacity:.4}
.of-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}
.of-source{display:flex;align-items:center;gap:.45rem;margin-bottom:.1rem}
.of-source-logo{
  width:18px;height:18px;border-radius:4px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:9px;font-weight:800;color:#fff;flex-shrink:0;
  background:var(--of);
}
.of-source-name{font-size:11.5px;font-weight:600;color:var(--of)}
.of-headline{
  font-size:14px;font-weight:700;font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  line-height:1.35;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.of-chapo{
  font-size:12px;color:var(--text2);line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.of-meta{
  font-size:11px;color:var(--text3);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.4rem;
  margin-top:auto;padding-top:.3rem;
}
.of-meta .time-tplus{color:var(--brand-2);font-weight:600}
.of-meta .time-real{color:var(--text3)}

/* Press card redesign: meta row (badge + source + age) */
.of-card-meta-row{
  display:flex;align-items:center;gap:.4rem;margin-bottom:.3rem;
  overflow:hidden;flex-wrap:nowrap;
}
.of-badge{
  display:inline-flex;align-items:center;
  font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 6px;border-radius:4px;flex-shrink:0;line-height:1.4;
}
.of-badge--breaking{background:#dc2626;color:#fff}
.of-badge--live{background:#0284c7;color:#fff}
.of-badge--une{background:#ea580c;color:#fff}
.of-source-sep{color:var(--text3);font-size:11px;flex-shrink:0}
.of-source-cat{font-size:11px;color:var(--text3);flex-shrink:0;white-space:nowrap}
.of-card-age{
  font-size:11px;color:var(--text3);white-space:nowrap;
  margin-left:auto;flex-shrink:0;
}
/* Legacy classes kept for the article modal (vertical full layout) */
.of-header{background:var(--of);padding:.45rem .95rem;display:flex;align-items:center}
.of-logo-text{color:#fff;font-size:12px;font-weight:800;font-family:Georgia,serif;letter-spacing:.03em}
.of-rubrique{font-size:10px;color:rgba(255,255,255,.85);text-transform:uppercase;letter-spacing:.1em;margin-left:auto}
.of-kicker{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--of);margin-bottom:.3rem}

@keyframes slide-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
.spinning{display:inline-block;animation:spin .8s linear infinite}
.live-sep{display:flex;align-items:center;gap:.5rem;margin:.5rem 0;font-size:10px;color:#555;letter-spacing:.08em}
.live-sep::before,.live-sep::after{content:'';flex:1;border-top:1px solid #2f3336}

/* ─── OF ZOOM MODAL ─── */
.of-card{cursor:pointer}
.of-card:hover{box-shadow:var(--shadow-md)}

#of-modal{display:none;position:fixed;inset:0;z-index:500;background:rgba(15,23,42,.6);backdrop-filter:blur(4px);align-items:center;justify-content:center;padding:1.5rem}
#of-modal.open{display:flex}
#of-modal-inner{background:#fff;border-radius:16px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:var(--shadow-lg)}
#of-modal-close{position:sticky;top:.75rem;float:right;margin:.75rem .75rem 0 0;background:rgba(255,255,255,.9);border:1px solid var(--border2);border-radius:50%;width:32px;height:32px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;z-index:10;flex-shrink:0;backdrop-filter:blur(4px)}
#of-modal-close:hover{background:var(--bg3)}
.of-article-img{width:100%;max-height:300px;object-fit:cover;display:block}
.of-article-body{padding:1.5rem 1.75rem 2rem}
.of-article-kicker{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--of);margin-bottom:.5rem}
.of-article-headline{font-size:clamp(20px,4vw,26px);font-weight:700;font-family:Georgia,'Times New Roman',serif;line-height:1.25;color:var(--text);margin-bottom:.85rem}
.of-article-lead{font-size:15px;color:var(--text);line-height:1.7;margin-bottom:1.25rem;font-weight:400}
.of-article-meta{font-size:12px;color:var(--text3);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem;border-top:1px solid var(--border);padding-top:.75rem}

/* ═══════════════════════════════════════════════════════
   PULSE CONFIGURATOR - admin dashboard (redesigned)
   ═══════════════════════════════════════════════════════ */
#configurator{flex:1;display:flex;flex-direction:column;min-height:0;background:#f7f9fb}
#configurator{background-image:none}
.cfg-layout{display:grid;grid-template-columns:260px 1fr;flex:1;overflow:hidden;background:transparent;position:relative}

/* ─── Header buttons ─── */
.cfg-header-btn{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1rem;border-radius:10px;font-weight:500;font-size:13px}
.cfg-header-btn svg{width:14px;height:14px}

/* ─── Sidebar ─── */
.cfg-sidebar{
  background:transparent;border-right:1px solid var(--border);
  padding:1.5rem 1rem;overflow-y:auto;
  display:flex;flex-direction:column;gap:3px;
  position:relative;z-index:2;
}
.cfg-sidebar-label{
  font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.16em;
  color:#94a3b8;padding:.5rem .85rem .55rem;
}
.cfg-sidebar-label--spaced{margin-top:1.25rem}
.cfg-nav-item{
  display:flex;align-items:center;gap:.75rem;
  width:100%;padding:.7rem .85rem;
  background:transparent;border:1px solid transparent;border-radius:10px;
  font-size:13.5px;font-weight:500;color:var(--text2);
  cursor:pointer;text-align:left;
  transition:background .15s,color .15s,border-color .15s;
}
.cfg-nav-item:hover{background:#eef2f6;color:var(--text)}
.cfg-nav-item.active{
  background:#ecfdf5;color:#15803d;font-weight:600;
  border-color:#bbf7d0;
}
.cfg-nav-item.active svg{color:var(--brand-2)}
.cfg-nav-item svg{width:17px;height:17px;flex-shrink:0;color:var(--text3)}

/* ─── Main panel ─── */
.cfg-main{
  overflow-y:auto;padding:2.25rem 2.5rem 3rem;
  display:flex;flex-direction:column;
  position:relative;z-index:2;
}
.cfg-page{max-width:1080px;width:100%;margin:0 auto}
.cfg-page--wide{max-width:1200px}
/* Accès & Sécurité : tableaux 6 colonnes + panneau latéral → plus large. */
.cfg-page--xwide{max-width:1340px}
.cfg-page-head{margin-bottom:1.75rem}
.cfg-page-head h2{font-size:26px;font-weight:700;color:#0f172a;margin-bottom:.4rem;letter-spacing:-.015em}
.cfg-page-head p{font-size:14px;color:var(--text2);line-height:1.55}
.cfg-page-head code{font-size:12px;background:var(--bg3);padding:1px 6px;border-radius:4px;font-family:'JetBrains Mono',monospace;color:var(--text)}

/* ─── Sous-onglets de page (ex. Accès & Sécurité) ─── */
.cfg-subtabs{display:flex;gap:1.5rem;border-bottom:1px solid var(--border);margin-bottom:1.5rem}
.cfg-subtab{appearance:none;background:none;border:none;padding:.55rem .15rem;margin-bottom:-1px;font-size:13.5px;font-weight:600;color:var(--text2);cursor:pointer;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.cfg-subtab:hover{color:var(--text)}
.cfg-subtab.active{color:var(--brand-2);border-bottom-color:var(--brand)}

/* ─── Cards ─── */
.cfg-card{
  background:#fff;border:1px solid var(--border);border-radius:18px;
  padding:1.5rem 1.75rem;box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.cfg-card--accent{border-color:#bbf7d0;box-shadow:0 0 0 1px rgba(34,197,94,.15)}
.cfg-card-narrow{max-width:560px}
.cfg-card-head{display:flex;align-items:center;gap:.9rem;margin-bottom:1.25rem}
.cfg-card-head--space{justify-content:space-between;align-items:flex-start;gap:1rem}
.cfg-card-head-left{display:flex;align-items:center;gap:.9rem;min-width:0}
.cfg-card-head-right{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem;flex-shrink:0}
.cfg-card-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:12px;
  background:#dcfce7;color:var(--brand-2);flex-shrink:0;
}
.cfg-card-icon--soft{background:#dcfce7;color:#15803d}
.cfg-card-icon--violet{background:#ede9fe;color:#7c3aed}
.cfg-card-icon--blue-soft{background:#dbeafe;color:#2563eb}
.cfg-card-icon svg{width:20px;height:20px}
.cfg-card-title{font-size:16.5px;font-weight:700;color:var(--text);line-height:1.2;letter-spacing:-.005em}
.cfg-card-sub{font-size:12px;color:var(--text2);margin-top:3px}

/* ─── Pills ─── */
.cfg-pill{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.32rem .8rem;border-radius:100px;
  font-size:12px;font-weight:600;white-space:nowrap;
}
.cfg-pill svg{width:13px;height:13px}
.cfg-pill--ok{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.cfg-pill--off{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}
.cfg-pill--warn{background:#fef3c7;color:#92400e;border:1px solid #fde68a}

/* ─── Grid layouts ─── */
.cfg-grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem;margin-bottom:1.25rem;align-items:stretch;width:100%}
.cfg-grid-2 > *{min-width:0;width:100%;box-sizing:border-box}
.cfg-page > .cfg-card + .cfg-card{margin-top:1.25rem}

/* ─── État du système - APIs externes list ─── */
.cfg-api-list{display:flex;flex-direction:column;gap:.85rem;margin-bottom:1.25rem}
.cfg-api-row{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;
  padding:.95rem 1.1rem;
  background:#fff;border:1px solid var(--border);border-radius:14px;
}
.cfg-api-logo{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  font-weight:700;font-size:13px;
}
.cfg-api-logo--sm{width:32px;height:32px;font-size:12px}
.cfg-api-logo--x{background:#000;color:#fff}
.cfg-api-logo--anthropic{background:#c79c7e;color:#3f1f0a}
.cfg-api-info{min-width:0}
.cfg-api-name{font-size:14px;font-weight:600;color:var(--text)}
.cfg-api-sub{font-size:12px;color:var(--text2);margin-top:1px}
.cfg-api-sub.is-ok{color:#15803d;font-weight:500}

/* ─── Banner (operational status) ─── */
.cfg-banner{
  display:flex;align-items:center;gap:.55rem;
  padding:.75rem 1rem;border-radius:12px;
  font-size:13px;font-weight:500;
}
.cfg-banner--ok{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.cfg-banner--ko{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.cfg-banner-dot{
  width:9px;height:9px;border-radius:50%;background:currentColor;flex-shrink:0;
  box-shadow:0 0 0 3px rgba(34,197,94,.15);
}
.cfg-banner--ko .cfg-banner-dot{box-shadow:0 0 0 3px rgba(239,68,68,.15)}

/* ─── Stat tiles ─── */
.cfg-stat-tiles{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1.25rem;
}
.cfg-stat-tile{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:1.35rem .4rem 1.1rem;min-width:0;
  background:#fafbfc;border:1px solid var(--border);border-radius:14px;
}
.cfg-stat-tile-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:14px;margin-bottom:.85rem;
}
.cfg-stat-tile-icon svg{width:22px;height:22px}
.cfg-stat-tile-icon--blue{background:#dbeafe;color:#2563eb}
.cfg-stat-tile-icon--violet{background:#ede9fe;color:#7c3aed}
.cfg-stat-tile-icon--green{background:#dcfce7;color:#15803d}
.cfg-stat-tile-num{font-size:30px;font-weight:700;color:var(--text);line-height:1.1;letter-spacing:-.01em}
.cfg-stat-tile-num--small{font-size:30px;color:#16a34a;letter-spacing:-.005em}
.cfg-stat-tile-num.is-stopped{color:#dc2626}
.cfg-stat-tile-num.is-idle{color:#64748b}
.cfg-stat-tile-label{font-size:12px;color:var(--text2);margin-top:.4rem;line-height:1.3;padding:0 .15rem}
.cfg-stat-tile-hint{font-size:11px;color:var(--text3);margin-top:.2rem;font-style:italic}

/* ─── Informations système ─── */
.cfg-sysinfo-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
}
.cfg-sysinfo-item{
  display:flex;align-items:center;gap:.85rem;min-width:0;
}
.cfg-sysinfo-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:10px;flex-shrink:0;
  background:#f1f5f9;color:#64748b;
}
.cfg-sysinfo-icon svg{width:17px;height:17px}
.cfg-sysinfo-label{font-size:11.5px;color:var(--text3);text-transform:none;letter-spacing:0;font-weight:500}
.cfg-sysinfo-val{font-size:13.5px;font-weight:600;color:var(--text);margin-top:1px}

/* ─── Tests page ─── */
.cfg-tests-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:1.25rem;align-items:start;min-height:0}
.cfg-tests-card,.cfg-tests-output-card{padding:1.5rem;display:flex;flex-direction:column}

.cfg-step-head{
  display:flex;align-items:center;gap:.7rem;margin-bottom:1.25rem;
}
.cfg-step-head--right{justify-content:flex-start}
.cfg-step-head--right .cfg-clear-btn{margin-left:auto}
.cfg-step-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:50%;
  background:#dcfce7;color:#15803d;font-size:13px;font-weight:700;
}
.cfg-step-title{font-size:15px;font-weight:600;color:var(--text)}
.cfg-clear-btn{
  font-size:12px;font-weight:500;padding:.4rem .8rem;border-radius:8px;
  color:var(--text2);
}

.cfg-test-block{padding:.5rem 0}
.cfg-test-block-head{
  display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;
}
.cfg-test-block-title{font-size:14px;font-weight:600;color:var(--text)}
.cfg-test-block-sub{font-size:12px;color:var(--text2);margin-top:1px}
.cfg-test-sep{border:none;border-top:1px solid var(--border);margin:1.25rem -1.5rem 1.25rem;padding:0;width:auto}

.cfg-help{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;border-radius:50%;background:#e2e8f0;
  color:var(--text3);font-size:10px;font-weight:600;cursor:help;margin-left:.2rem;
  font-family:'Inter',system-ui,sans-serif;
}
.cfg-input-hint{font-size:11.5px;color:var(--text3);margin-top:.3rem}

.cfg-test-btn{
  width:100%;justify-content:center;
  margin-top:1rem;padding:.75rem 1rem;
  font-size:13.5px;font-weight:600;border-radius:10px;
}

/* Response area */
.cfg-resp-tabs{
  display:flex;gap:.4rem;margin-bottom:.85rem;
}
.cfg-resp-tab{
  padding:.45rem 1rem;border-radius:8px;cursor:pointer;
  background:#f1f5f9;border:1px solid var(--border);
  font-size:12.5px;font-weight:500;color:var(--text2);
  transition:background .15s,color .15s,border-color .15s;
}
.cfg-resp-tab:hover{background:#e2e8f0}
.cfg-resp-tab.active{background:#0f172a;color:#fff;border-color:#0f172a}

.cfg-tests-output{
  background:#0d1117;border:1px solid #21262d;border-radius:14px;
  display:flex;flex-direction:column;overflow:hidden;position:relative;
  min-height:340px;flex:1;
}
.cfg-response-body{
  flex:1;overflow-y:auto;padding:1.1rem 1.3rem;margin:0;
  font-size:12px;font-family:'JetBrains Mono','Cascadia Code','Fira Code',Consolas,monospace;
  color:#e6edf3;white-space:pre-wrap;word-break:break-all;line-height:1.7;
  counter-reset:line;
}
.cfg-response-body .cfg-resp-line{
  display:block;padding-left:2.4rem;position:relative;
}
.cfg-response-body .cfg-resp-line::before{
  counter-increment:line;content:counter(line);
  position:absolute;left:0;width:2rem;text-align:right;
  color:#5b6470;user-select:none;
}
.cfg-resp-placeholder{color:#5b6470;font-style:italic}

.cfg-resp-status-overlay{
  position:absolute;top:.75rem;right:.75rem;
  display:flex;align-items:center;gap:.5rem;
}
.cfg-resp-time{font-size:11px;color:#8b949e;font-family:'JetBrains Mono',monospace}
.cfg-badge{padding:3px 11px;border-radius:100px;font-size:10.5px;font-weight:700;letter-spacing:.04em;display:inline-flex;align-items:center;gap:.25rem}
.cfg-badge.ok{background:rgba(34,197,94,.18);color:#3fb950;border:1px solid rgba(34,197,94,.3)}
.cfg-badge.ok::before{content:"";width:6px;height:6px;border-radius:50%;background:#3fb950}
.cfg-badge.ko{background:rgba(239,68,68,.18);color:#f85149;border:1px solid rgba(239,68,68,.3)}
.cfg-badge.loading{background:rgba(88,166,255,.18);color:#58a6ff;border:1px solid rgba(88,166,255,.3)}

.cfg-resp-footer{
  display:flex;align-items:center;gap:.55rem;
  padding:.7rem 1rem;margin-top:.75rem;
  background:#dcfce7;color:#15803d;border:1px solid #bbf7d0;
  border-radius:10px;font-size:12.5px;font-weight:500;
}
.cfg-resp-footer.is-ko{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.cfg-resp-footer-time{margin-left:auto;font-size:11.5px;color:var(--text2);font-family:'JetBrains Mono',monospace;font-weight:400}

/* ─── Mot de passe ─── */
.cfg-pwd-card{padding:1.5rem 1.75rem}
.cfg-pwd-status{
  display:flex;align-items:center;gap:.75rem;
  padding:.85rem 1rem;border-radius:12px;
  background:#dcfce7;color:#15803d;border:1px solid #bbf7d0;
  margin-bottom:1.5rem;
}
.cfg-pwd-status-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;background:#22c55e;color:#fff;
  flex-shrink:0;
}
.cfg-pwd-status-icon svg{width:14px;height:14px}
.cfg-pwd-status-title{font-size:13px;font-weight:600;color:#15803d}
.cfg-pwd-status-sub{font-size:11.5px;color:#16a34a;margin-top:1px}

.cfg-pwd-input{
  position:relative;display:flex;align-items:stretch;
}
.cfg-pwd-input input{flex:1;padding-right:2.6rem}
.cfg-pwd-eye{
  position:absolute;right:.6rem;top:50%;transform:translateY(-50%);
  background:transparent;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  padding:.3rem;color:var(--text3);border-radius:6px;
  transition:color .15s,background .15s;
}
.cfg-pwd-eye:hover{color:var(--text);background:var(--bg3)}
.cfg-pwd-eye svg{width:16px;height:16px}

.cfg-pwd-strength{margin-top:.5rem}
.cfg-pwd-bar{display:flex;gap:4px;margin-bottom:.35rem}
.cfg-pwd-bar-i{
  flex:1;height:5px;background:#e5e7eb;border-radius:100px;
  transition:background .2s;
}
.cfg-pwd-strength.is-1 .cfg-pwd-bar-i[data-i="0"]{background:#ef4444}
.cfg-pwd-strength.is-2 .cfg-pwd-bar-i[data-i="0"],
.cfg-pwd-strength.is-2 .cfg-pwd-bar-i[data-i="1"]{background:#f59e0b}
.cfg-pwd-strength.is-3 .cfg-pwd-bar-i[data-i="0"],
.cfg-pwd-strength.is-3 .cfg-pwd-bar-i[data-i="1"],
.cfg-pwd-strength.is-3 .cfg-pwd-bar-i[data-i="2"]{background:#eab308}
.cfg-pwd-strength.is-4 .cfg-pwd-bar-i{background:#22c55e}
.cfg-pwd-strength-label{font-size:11.5px;color:var(--text3)}
.cfg-pwd-strength-label strong{color:var(--text);font-weight:600}
.cfg-pwd-strength.is-1 .cfg-pwd-strength-label strong{color:#dc2626}
.cfg-pwd-strength.is-2 .cfg-pwd-strength-label strong{color:#d97706}
.cfg-pwd-strength.is-3 .cfg-pwd-strength-label strong{color:#ca8a04}
.cfg-pwd-strength.is-4 .cfg-pwd-strength-label strong{color:#15803d}

.cfg-pwd-match{
  display:flex;align-items:center;gap:.4rem;
  margin-top:.4rem;font-size:12px;font-weight:500;
}
.cfg-pwd-match.is-ok{color:#15803d}
.cfg-pwd-match.is-ko{color:#dc2626}
.cfg-pwd-match::before{content:"";display:inline-block;width:14px;height:14px;border-radius:50%;flex-shrink:0}
.cfg-pwd-match.is-ok::before{background:#22c55e url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat}
.cfg-pwd-match.is-ko::before{background:#ef4444 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/10px no-repeat}

.cfg-pwd-save{
  width:100%;justify-content:center;margin-top:1.25rem;
  padding:.95rem 1rem;font-size:14px;font-weight:600;border-radius:12px;
}

/* ─── Tip card (Bonnes pratiques / Bon à savoir) ─── */
.cfg-tip{
  display:flex;align-items:flex-start;gap:.85rem;
  padding:1.1rem 1.3rem;border-radius:14px;
  background:#eff6ff;border:1px solid #bfdbfe;
  margin-top:1.25rem;position:relative;
}
.cfg-tip-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;
  background:#3b82f6;color:#fff;flex-shrink:0;
}
.cfg-tip-icon svg{width:16px;height:16px}
.cfg-tip-body{flex:1;min-width:0}
.cfg-tip-title{font-size:13.5px;font-weight:700;color:#1e3a8a;margin-bottom:.5rem}
.cfg-tip-text{font-size:12.5px;color:#1e40af;line-height:1.55}
.cfg-tip-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem}
.cfg-tip-list li{display:flex;align-items:center;gap:.55rem;font-size:12.5px;color:#1e40af}
.cfg-tip-check{
  display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;border-radius:50%;background:#3b82f6;color:#fff;
  font-size:9px;font-weight:700;flex-shrink:0;
}
.cfg-tip-shield{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:14px;background:#dbeafe;color:#2563eb;flex-shrink:0;
  align-self:center;
}
.cfg-tip-shield svg{width:24px;height:24px}

/* ─── Consommation IA ─── */
.cfg-page-head--with-action{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.cfg-page-head--with-action > div:first-child{flex:1;min-width:0}
.cfg-page-head-actions{display:flex;gap:.5rem;flex-shrink:0;padding-top:.4rem}

.cfg-aim-kpi-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem;
}
.cfg-aim-kpi{
  background:#fff;border:1px solid var(--border);border-radius:18px;
  padding:1.25rem 1.4rem;min-width:0;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  display:flex;flex-direction:column;gap:.45rem;
}
.cfg-aim-kpi-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:12px;margin-bottom:.2rem;
}
.cfg-aim-kpi-icon svg{width:18px;height:18px}
.cfg-aim-kpi-icon--blue{background:#dbeafe;color:#2563eb}
.cfg-aim-kpi-icon--violet{background:#ede9fe;color:#7c3aed}
.cfg-aim-kpi-icon--green{background:#dcfce7;color:#15803d}
.cfg-aim-kpi-label{font-size:12.5px;color:var(--text2);font-weight:500}
.cfg-aim-kpi-num{font-size:30px;font-weight:700;color:var(--text);line-height:1.1;letter-spacing:-.01em}
.cfg-aim-kpi-hint{font-size:11.5px;color:var(--text3);font-style:italic;line-height:1.35}
.cfg-aim-kpi-hint--ok{color:#15803d;font-style:normal;font-weight:500}

.cfg-aim-cache-tiles{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1rem;
}
.cfg-aim-cache-tile{
  background:#fafbfc;border:1px solid var(--border);border-radius:14px;
  padding:1rem .9rem;min-width:0;
  display:flex;flex-direction:column;gap:.3rem;
}
.cfg-aim-cache-tile-label{font-size:11.5px;color:var(--text3);font-weight:500}
.cfg-aim-cache-tile-num{font-size:21px;font-weight:700;color:var(--text);letter-spacing:-.01em}
.cfg-aim-cache-tile-hint{font-size:11px;color:var(--text3);line-height:1.3}

.cfg-aim-cat-list{display:flex;flex-direction:column;gap:.85rem}
.cfg-aim-cat-row{display:grid;grid-template-columns:1fr auto auto;gap:.6rem 1rem;align-items:center;font-size:13px}
.cfg-aim-cat-row-label{color:var(--text);font-weight:500}
.cfg-aim-cat-row-bar{
  grid-column:1 / -1;height:6px;background:#f1f5f9;border-radius:6px;overflow:hidden;
}
.cfg-aim-cat-row-bar-fill{
  height:100%;background:#7c3aed;border-radius:6px;transition:width .3s ease;
}
.cfg-aim-cat-row-pct{color:var(--text2);font-variant-numeric:tabular-nums;font-weight:600;min-width:42px;text-align:right}
.cfg-aim-cat-row-tokens{color:var(--text3);font-size:11.5px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.cfg-aim-cat-empty,
.cfg-aim-activity-empty,
.cfg-aim-scenario-empty{
  text-align:center;color:var(--text3);font-style:italic;font-size:13px;
  padding:1.25rem;border:1px dashed var(--border);border-radius:12px;background:#fafbfc;
}

.cfg-aim-scenario{
  background:#fafbfc;border:1px solid var(--border);border-radius:12px;
  padding:.85rem 1rem;margin-bottom:1rem;font-size:13px;
}
.cfg-aim-scenario-client{font-weight:600;color:var(--text);margin-bottom:.2rem}
.cfg-aim-scenario-objectif{color:var(--text2);font-size:12px;line-height:1.4}

.cfg-aim-summary{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
.cfg-aim-summary-row{
  display:flex;justify-content:space-between;align-items:center;
  font-size:12.5px;color:var(--text2);
  padding:.45rem .7rem;background:#fafbfc;border-radius:8px;
}
.cfg-aim-summary-row strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}

.cfg-aim-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.cfg-aim-actions .btn{font-size:12.5px}
.cfg-aim-reset-btn{color:#991b1b;border-color:#fecaca;background:#fef2f2}
.cfg-aim-reset-btn:hover{background:#fee2e2}

.cfg-aim-activity-list{
  display:flex;flex-direction:column;gap:.5rem;
  max-height:420px;overflow-y:auto;
}
.cfg-aim-activity-row{
  display:grid;grid-template-columns:64px 1fr auto;gap:.85rem;
  align-items:center;padding:.65rem .85rem;
  background:#fafbfc;border:1px solid var(--border);border-radius:10px;
  font-size:12.5px;
}
.cfg-aim-activity-time{color:var(--text3);font-variant-numeric:tabular-nums;font-weight:500}
.cfg-aim-activity-main{min-width:0;display:flex;flex-direction:column;gap:.1rem}
.cfg-aim-activity-cat{font-weight:600;color:var(--text);font-size:13px}
.cfg-aim-activity-meta{color:var(--text3);font-size:11.5px;display:flex;gap:.65rem;flex-wrap:wrap}
.cfg-aim-activity-meta span:not(:last-child)::after{content:"·";margin-left:.65rem;color:var(--text3)}
.cfg-aim-activity-badge{
  display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:100px;
  font-size:11px;font-weight:600;white-space:nowrap;
}
.cfg-aim-activity-badge--ok{background:#dcfce7;color:#15803d}
.cfg-aim-activity-badge--warn{background:#fef3c7;color:#92400e}
.cfg-aim-activity-badge--err{background:#fee2e2;color:#991b1b}

/* Activity list — regroupement par action utilisateur (actionId). Le header
   du groupe est cliquable (toggle data-expanded) ; les children sont indentés
   et plus discrets pour bien marquer la hiérarchie « 1 action = N appels ».
   `flex-shrink:0` indispensable : le parent `.cfg-aim-activity-list` est un
   flex column, sans ce flag les groupes se collapsent à 0px de hauteur si la
   liste excède `max-height:420px`. `min-height` sur le header garantit aussi
   une zone cliquable de taille raisonnable. */
.cfg-aim-activity-group{
  background:#fafbfc;border:1px solid var(--border);border-radius:10px;
  flex-shrink:0;
}
.cfg-aim-activity-group .cfg-aim-activity-group-header{
  display:grid;grid-template-columns:16px 64px 1fr auto;gap:.65rem;
  align-items:center;padding:.65rem .85rem;
  min-height:2.6rem;
  cursor:pointer;user-select:none;
  font-size:12.5px;
  transition:background .12s;
}
.cfg-aim-activity-group .cfg-aim-activity-group-header:hover{background:#f3f4f6}
.cfg-aim-activity-group .cfg-aim-activity-group-header:focus-visible{outline:2px solid var(--brand-2);outline-offset:-2px}
.cfg-aim-activity-group-chevron{color:var(--text3);transition:transform .15s}
.cfg-aim-activity-group[data-expanded] .cfg-aim-activity-group-chevron{transform:rotate(90deg)}
.cfg-aim-activity-group-label{color:var(--brand-2)}
.cfg-aim-activity-group-children{display:none;padding:.15rem .85rem .65rem 2.65rem;background:#fff;border-top:1px solid var(--border)}
.cfg-aim-activity-group[data-expanded] .cfg-aim-activity-group-children{display:flex;flex-direction:column;gap:.4rem}
.cfg-aim-activity-row--child{
  background:#fafbfc;border:1px dashed var(--border);
  padding:.5rem .7rem;font-size:12px;
  grid-template-columns:56px 1fr auto;
}
.cfg-aim-activity-row--child .cfg-aim-activity-cat{font-size:12.5px;font-weight:500}
.cfg-aim-activity-row--child .cfg-aim-activity-meta{font-size:11px}

@media (max-width:1100px){
  .cfg-aim-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cfg-aim-cache-tiles{grid-template-columns:1fr}
}

/* ─── Clés API ─── */
.cfg-key-card{padding:1.5rem 1.75rem}
.cfg-key-card-desc{font-size:12.5px;color:var(--text2);margin-top:3px;line-height:1.4}
.cfg-key-updated{font-size:11.5px;color:var(--text3)}
.cfg-key-current{
  position:relative;display:flex;align-items:center;
  background:#f8fafc;border:1px solid var(--border);border-radius:10px;
  padding:.15rem;
}
.cfg-key-current input{
  flex:1;background:transparent;border:none;padding:.55rem .8rem;
  font-family:'JetBrains Mono',monospace;font-size:12.5px;color:var(--text);
}
.cfg-key-current input:focus{box-shadow:none}
.cfg-key-icon-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:8px;flex-shrink:0;
  background:transparent;border:none;color:var(--text3);cursor:pointer;
  transition:color .15s,background .15s;
}
.cfg-key-icon-btn:hover{color:var(--text);background:#fff}
.cfg-key-icon-btn svg{width:15px;height:15px}

.cfg-key-update-row{display:flex;gap:.6rem}
.cfg-key-update-row input{flex:1;min-width:0;font-family:'JetBrains Mono',monospace;font-size:12.5px}
.cfg-paste-btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.5rem .9rem;border-radius:10px;
  background:#fff;border:1px solid var(--border2);color:var(--text2);
  font-size:12px;font-weight:500;flex-shrink:0;
}
.cfg-paste-btn:hover{background:var(--bg3);color:var(--text)}

.cfg-key-update-foot{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-top:.85rem;flex-wrap:wrap;
}
.cfg-key-update-hint{
  display:flex;align-items:center;gap:.4rem;
  font-size:11.5px;color:var(--text3);
}
.cfg-key-update-hint svg{flex-shrink:0;color:var(--text3)}
.cfg-key-save{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.6rem 1.1rem;font-size:13px;font-weight:600;border-radius:10px;
}

.cfg-msg{font-size:12px;min-height:1.3em;margin-top:.5rem;font-weight:500}

/* ─── Mots de passe d'accès – layout 2 colonnes + contrôles dynamiques ─── */
.cfg-pwd-step{
  display:flex;gap:.85rem;align-items:flex-start;
  background:#f8fafc;border:1px solid var(--border);border-radius:12px;
  padding:.9rem 1rem;margin:.4rem 0 1.1rem;
}
.cfg-pwd-step-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:50%;flex-shrink:0;
  background:#2563eb;color:#fff;font-size:12.5px;font-weight:700;
}
.cfg-pwd-step-body{flex:1;min-width:0}
.cfg-pwd-step-label{display:block;font-size:12px;font-weight:600;color:var(--text2);margin-bottom:.45rem;text-transform:uppercase;letter-spacing:.04em}

.cfg-pwd-roles{
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;
  margin-bottom:.5rem;
}
.cfg-pwd-role{
  background:#fff;border:1px solid var(--border);border-radius:12px;
  padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.7rem;
}
.cfg-pwd-role[data-role="admin"]{border-top:3px solid #ef4444}
.cfg-pwd-role[data-role="player"]{border-top:3px solid #6366f1}
.cfg-pwd-role-head{display:flex;align-items:flex-start;gap:.65rem}
.cfg-pwd-role[data-role="admin"]  .cfg-pwd-step-num{background:#ef4444}
.cfg-pwd-role[data-role="player"] .cfg-pwd-step-num{background:#6366f1}
.cfg-pwd-role-title{font-size:14px;font-weight:700;color:var(--text)}
.cfg-pwd-role-sub{font-size:11.5px;color:var(--text3);line-height:1.4;margin-top:1px}

.cfg-pwd-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text2);margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.04em}
.cfg-pwd-field input[type="password"],
.cfg-pwd-field input[type="text"]{
  width:100%;background:#f8fafc;border:1px solid var(--border);border-radius:10px;
  padding:.55rem .8rem;color:var(--text);font-size:13px;outline:none;font-family:inherit;
  transition:border-color .15s, background .15s;
}
.cfg-pwd-field input:focus{border-color:#3b82f6;background:#fff}

/* Jauge de robustesse */
.cfg-pwd-strength{display:flex;flex-direction:column;gap:.3rem}
.cfg-pwd-strength-bar{
  position:relative;height:6px;border-radius:999px;background:#e5e7eb;overflow:hidden;
}
.cfg-pwd-strength-bar span{
  position:absolute;top:0;left:0;height:100%;width:0%;
  border-radius:999px;background:#cbd5e1;transition:width .2s, background .2s;
}
.cfg-pwd-strength-label{font-size:11px;color:var(--text3);font-weight:600;letter-spacing:.02em}
.cfg-pwd-strength[data-level="1"] .cfg-pwd-strength-bar span{width:20%;background:#dc2626}
.cfg-pwd-strength[data-level="1"] .cfg-pwd-strength-label{color:#dc2626}
.cfg-pwd-strength[data-level="2"] .cfg-pwd-strength-bar span{width:40%;background:#f97316}
.cfg-pwd-strength[data-level="2"] .cfg-pwd-strength-label{color:#f97316}
.cfg-pwd-strength[data-level="3"] .cfg-pwd-strength-bar span{width:60%;background:#eab308}
.cfg-pwd-strength[data-level="3"] .cfg-pwd-strength-label{color:#a16207}
.cfg-pwd-strength[data-level="4"] .cfg-pwd-strength-bar span{width:80%;background:#22c55e}
.cfg-pwd-strength[data-level="4"] .cfg-pwd-strength-label{color:#15803d}
.cfg-pwd-strength[data-level="5"] .cfg-pwd-strength-bar span{width:100%;background:#16a34a}
.cfg-pwd-strength[data-level="5"] .cfg-pwd-strength-label{color:#15803d}

/* Liste de contrôle dynamique */
.cfg-pwd-checklist{
  list-style:none;padding:.55rem .75rem;margin:0;
  background:#f8fafc;border:1px solid var(--border);border-radius:10px;
  display:grid;grid-template-columns:1fr 1fr;gap:.3rem .85rem;
  font-size:11.5px;color:var(--text2);
}
.cfg-pwd-checklist li{display:flex;align-items:center;gap:.4rem;line-height:1.3;transition:color .15s}
.cfg-pwd-checklist li strong{font-weight:600;color:inherit}
.cfg-pwd-dot{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;border-radius:50%;flex-shrink:0;
  background:#e5e7eb;color:#fff;font-size:9px;font-weight:700;
  transition:background .15s;
}
.cfg-pwd-checklist li.ok{color:#15803d}
.cfg-pwd-checklist li.ok .cfg-pwd-dot{background:#22c55e}
.cfg-pwd-checklist li.ok .cfg-pwd-dot::after{content:"\2713"}
.cfg-pwd-checklist li.ko{color:#b91c1c}
.cfg-pwd-checklist li.ko .cfg-pwd-dot{background:#ef4444}
.cfg-pwd-checklist li.ko .cfg-pwd-dot::after{content:"\00d7"}

/* Indicateur de correspondance "confirmation" */
.cfg-pwd-match{
  font-size:11.5px;font-weight:600;margin-top:.35rem;min-height:1.2em;
  display:flex;align-items:center;gap:.3rem;
}
.cfg-pwd-match.ok{color:#15803d}
.cfg-pwd-match.ko{color:#b91c1c}

@media (max-width:900px){
  .cfg-pwd-roles{grid-template-columns:1fr}
  .cfg-pwd-checklist{grid-template-columns:1fr}
}

/* ─── Sources prédéfinies ─── */
.cfg-src-tabs{
  display:flex;gap:0;margin-bottom:1.5rem;
  border-bottom:1px solid var(--border);padding:0;
}
.cfg-src-tab{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 1.25rem;
  background:transparent;border:none;border-bottom:2px solid transparent;
  font-size:13.5px;font-weight:500;color:var(--text2);
  cursor:pointer;transition:color .15s,border-color .15s;margin-bottom:-1px;
  font-family:inherit;
}
.cfg-src-tab:hover{color:var(--text)}
.cfg-src-tab.active{color:#15803d;border-bottom-color:#22c55e;font-weight:600}

.cfg-src-grid{
  display:grid;grid-template-columns:1.15fr 1fr;gap:1.25rem;align-items:start;
}
.cfg-src-side{display:flex;flex-direction:column;gap:1.25rem}

.cfg-src-list-card{padding:1.5rem 1.75rem;display:flex;flex-direction:column}
.cfg-src-list-head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-bottom:.4rem;
}
.cfg-src-list-title{
  display:flex;align-items:center;gap:.5rem;
  font-size:15.5px;font-weight:700;color:var(--text);
}
.cfg-src-count-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:22px;height:22px;padding:0 7px;
  background:#22c55e;color:#fff;border-radius:100px;
  font-size:11.5px;font-weight:700;
}
.cfg-src-list-sub{font-size:12.5px;color:var(--text2);margin-bottom:1rem}
.cfg-src-list-foot{
  font-size:12px;color:var(--text3);text-align:left;
  margin-top:.9rem;padding-top:.9rem;border-top:1px solid var(--border);
}
.cfg-sort-btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.45rem .85rem;border-radius:8px;
  font-size:12px;font-weight:500;color:var(--text2);
}

.cfg-sugg-list{
  display:flex;flex-direction:column;gap:.5rem;
  max-height:420px;overflow-y:auto;
}
.cfg-sugg-item{
  display:flex;align-items:center;gap:.85rem;
  padding:.7rem .85rem;
  background:#fff;border:1px solid var(--border);border-radius:12px;
  font-size:13px;min-width:0;
  transition:border-color .15s,box-shadow .15s;
}
.cfg-sugg-item:hover{border-color:#cbd5e1;box-shadow:var(--shadow-sm)}
.cfg-sugg-logo{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:#0f172a;color:#fff;font-size:11px;font-weight:700;flex-shrink:0;
  text-transform:uppercase;
  background-size:cover;background-position:center;
}
.cfg-sugg-info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.cfg-sugg-name{font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cfg-sugg-handle{font-size:11.5px;color:var(--text3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cfg-sugg-item .src-del{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:8px;
  background:#fef2f2;border:1px solid #fee2e2;color:#ef4444;
  cursor:pointer;flex-shrink:0;font-size:13px;
  transition:background .15s,color .15s;
}
.cfg-sugg-item .src-del::before{
  content:"";width:14px;height:14px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
}
.cfg-sugg-item .src-del:hover{background:#ef4444;color:#fff;border-color:#ef4444}
.src-empty{padding:1.5rem;text-align:center;color:var(--text3);font-size:13px}

/* Add card (right column) */
.cfg-src-add-card{padding:1.5rem 1.75rem}
.cfg-src-add-title{font-size:15.5px;font-weight:700;color:var(--text);margin-bottom:.3rem}
.cfg-src-add-sub{font-size:12.5px;color:var(--text2);margin-bottom:1.1rem}
.cfg-src-add-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem;
}
.cfg-src-add-grid label{
  margin-top:0;margin-bottom:.35rem;
  font-size:12px;font-weight:500;color:var(--text2);text-transform:none;letter-spacing:0;
  display:flex;align-items:center;
}
.cfg-src-add-grid input{font-size:13px;width:100%}
.cfg-add-source-btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.7rem 1.1rem;border-radius:10px;
  background:#fff;border:1.5px solid #22c55e;color:#15803d;
  font-size:13px;font-weight:600;
  transition:background .15s;
}
.cfg-add-source-btn:hover{background:#dcfce7;border-color:#16a34a}

/* Suggestions populaires */
.cfg-src-popular-card{padding:1.5rem 1.75rem}
.cfg-src-popular-title{font-size:15.5px;font-weight:700;color:var(--text);margin-bottom:.3rem}
.cfg-src-popular-sub{font-size:12.5px;color:var(--text2);margin-bottom:1.1rem}
.cfg-src-popular-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;
}
.cfg-popular-chip{
  display:flex;align-items:center;gap:.45rem;
  padding:.55rem .7rem;
  background:#f8fafc;border:1px solid var(--border);border-radius:10px;
  font-size:12px;color:var(--text);cursor:pointer;
  transition:background .15s,border-color .15s;min-width:0;
  font-family:inherit;
}
.cfg-popular-chip:hover{background:#fff;border-color:#22c55e}
.cfg-popular-chip-logo{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;background:#0f172a;color:#fff;
  font-size:9px;font-weight:700;flex-shrink:0;
  background-size:cover;background-position:center;
}
.cfg-popular-chip-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.cfg-popular-chip-plus{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;color:var(--text3);flex-shrink:0;line-height:1;
}
.cfg-popular-chip:hover .cfg-popular-chip-plus{color:#22c55e}

.cfg-popular-more{
  display:flex;align-items:center;justify-content:center;gap:.4rem;
  width:100%;margin-top:.85rem;
  padding:.6rem 1rem;border-radius:10px;
  background:#f8fafc;border:1px solid var(--border);
  font-size:12.5px;font-weight:500;color:var(--text2);cursor:pointer;
  font-family:inherit;
  transition:background .15s;
}
.cfg-popular-more:hover{background:#f1f5f9}
.cfg-popular-more svg{transition:transform .2s}
.cfg-popular-more.is-open svg{transform:rotate(180deg)}

/* ─── À propos modal ─── */
#about-modal{display:none;position:fixed;inset:0;z-index:800;background:rgba(15,23,42,.7);backdrop-filter:blur(6px);align-items:center;justify-content:center;padding:1.5rem}
#about-modal.open{display:flex}
.about-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:2rem;width:100%;max-width:560px;position:relative;max-height:90vh;overflow-y:auto}
.about-close{position:absolute;top:.9rem;right:.9rem;background:var(--bg3);border:1px solid var(--border);border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}
.about-close:hover{background:var(--border)}
.about-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.1rem}
.about-logo{width:48px;height:48px;flex-shrink:0}
.about-title{font-size:22px;font-weight:800;letter-spacing:.04em;color:var(--text)}
.about-subtitle{font-size:11.5px;color:var(--brand-2);font-weight:500}
.about-desc{font-size:13.5px;color:var(--text2);line-height:1.65;margin-bottom:1.25rem}
.about-features{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-bottom:1.5rem}
.about-feat{display:flex;align-items:flex-start;gap:.6rem;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.7rem .8rem;font-size:12.5px;line-height:1.45}
.about-feat strong{display:block;margin-bottom:.1rem;font-size:12.5px;color:var(--text)}
.about-feat-icon{font-size:18px;flex-shrink:0;line-height:1;margin-top:2px}
.about-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--text3);padding-top:.85rem;border-top:1px solid var(--border)}
.about-version{font-family:monospace;font-size:11px;background:var(--bg3);padding:2px 8px;border-radius:100px}

/* ─── À propos · Suite SECALYS ─── */
.about-suite{margin:0 0 1.4rem;padding:1rem 1.1rem;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm)}
.about-suite-title{font-size:10.5px;font-weight:700;color:var(--brand-2);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.5rem}
.about-suite-intro{font-size:12.5px;color:var(--text2);line-height:1.55;margin:0 0 .85rem}
.about-suite-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.about-suite-item{display:flex;align-items:center;gap:.7rem;font-size:12.5px;color:var(--text2);line-height:1.45}
.about-suite-icon{flex-shrink:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--bg2);border:1px solid var(--border);border-radius:7px;color:var(--text2)}
.about-suite-icon svg{width:16px;height:16px}
.about-suite-text strong{font-weight:800;color:var(--text);letter-spacing:.04em;margin-right:.15rem}
.about-suite-item--current{color:var(--text)}
.about-suite-item--current .about-suite-icon{background:var(--brand);border-color:var(--brand);color:#fff}
.about-suite-here{display:inline-block;margin-left:.4rem;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-2);background:var(--brand-soft);padding:1px 7px;border-radius:100px;border:1px solid rgba(34,197,94,.3);vertical-align:1px}

/* ─── Documentation modal ─── */
#doc-modal{display:none;position:fixed;inset:0;z-index:800;background:rgba(15,23,42,.7);backdrop-filter:blur(6px);align-items:center;justify-content:center;padding:1.5rem}
#doc-modal.open{display:flex}
.doc-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;max-width:760px;max-height:90vh;display:flex;flex-direction:column;position:relative}
.doc-close{position:absolute;top:.9rem;right:.9rem;background:rgba(255,255,255,.9);border:1px solid var(--border);border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:15px;display:flex;align-items:center;justify-content:center;z-index:2}
.doc-close:hover{background:var(--bg3)}
.doc-header{padding:1.5rem 1.75rem 0;flex-shrink:0;border-bottom:1px solid var(--border)}
.doc-title{font-size:18px;font-weight:800;color:var(--text);margin-bottom:1rem}
.doc-tabs{display:flex;gap:6px;padding-bottom:0;margin-bottom:-1px}
.doc-tab{padding:.5rem 1.1rem;background:transparent;border:1px solid var(--border);border-bottom:none;border-radius:8px 8px 0 0;font-size:13px;font-weight:600;color:var(--text2);cursor:pointer;transition:background .15s,color .15s}
.doc-tab:hover{background:var(--bg3)}
.doc-tab.active{background:var(--bg2);color:var(--text);border-bottom:1px solid var(--bg2);margin-bottom:-1px;position:relative;z-index:1}
.doc-body{flex:1;overflow-y:auto;padding:1.75rem}
.doc-section{margin-bottom:2rem}
.doc-section:last-child{margin-bottom:0}
.doc-section h3{font-size:14.5px;font-weight:700;color:var(--text);margin-bottom:.65rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)}
.doc-section p{font-size:13px;color:var(--text2);line-height:1.65;margin-bottom:.5rem}
.doc-warn{background:#fef3c7;border:1px solid #fcd34d;border-radius:var(--radius-sm);padding:.75rem 1rem;font-size:12.5px;color:#92400e;line-height:1.5;margin-top:.75rem}
.doc-list{padding-left:1.3rem;font-size:13px;color:var(--text2);line-height:1.9}
.doc-list li{margin-bottom:.15rem}
.doc-cols{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.65rem}
.doc-col-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.9rem 1rem;font-size:12.5px;color:var(--text2);line-height:1.55}
.doc-col-head{display:flex;align-items:center;gap:.45rem;font-weight:700;font-size:13px;margin-bottom:.4rem;color:var(--text)}
.doc-indicators{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}
.doc-indicator{display:flex;align-items:flex-start;gap:.65rem;font-size:12.5px;color:var(--text2);line-height:1.55}
.doc-ind-badge{flex-shrink:0;padding:2px 10px;border-radius:100px;font-size:11.5px;font-weight:600;white-space:nowrap;border:1px solid transparent}
.doc-two-col{display:grid;grid-template-columns:1fr 1fr;gap:1rem;font-size:13px;color:var(--text2);line-height:1.6}
.doc-two-col strong{display:block;color:var(--text);margin-bottom:.3rem}

/* ─── Documentation modal - extensions (TOC, tables, runbook, ASCII, code, FAQ, glossaire) ─── */
.doc-box.doc-box--wide{max-width:1080px}
.doc-section h4{font-size:13px;font-weight:700;color:var(--text);margin:.95rem 0 .35rem}
.doc-toc{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.8rem 1rem;margin-bottom:1.25rem;font-size:12.5px}
.doc-toc-title{font-weight:700;font-size:11px;color:var(--text2);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.4rem}
.doc-toc ol{margin:0;padding-left:1.4rem;color:var(--text2);line-height:1.85;column-count:2;column-gap:1.5rem}
.doc-toc a{color:var(--text2);text-decoration:none}
.doc-toc a:hover{color:var(--text);text-decoration:underline}
.doc-table{width:100%;border-collapse:collapse;font-size:12px;margin:.6rem 0 .35rem;line-height:1.5}
.doc-table th,.doc-table td{border:1px solid var(--border);padding:.45rem .6rem;text-align:left;vertical-align:top;color:var(--text2)}
.doc-table th{background:var(--bg3);color:var(--text);font-weight:700;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em}
.doc-table code{font-family:'JetBrains Mono',monospace;font-size:11.5px;background:var(--bg3);padding:1px 5px;border-radius:4px;color:var(--text)}
.doc-table tr:nth-child(even) td{background:rgba(15,23,42,.025)}
.doc-arch{background:#0f172a;color:#e2e8f0;border-radius:var(--radius-sm);padding:.95rem 1.1rem;margin:.65rem 0;font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.55;white-space:pre;overflow-x:auto}
.doc-code{background:#0f172a;color:#e2e8f0;border-radius:var(--radius-sm);padding:.8rem 1rem;margin:.55rem 0;font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.55;overflow-x:auto;white-space:pre}
.doc-code-inline{font-family:'JetBrains Mono',monospace;font-size:11.5px;background:var(--bg3);padding:1px 6px;border-radius:4px;color:var(--text);border:1px solid var(--border)}
.doc-note{background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius-sm);padding:.7rem 1rem;font-size:12.5px;color:#1e40af;line-height:1.55;margin:.65rem 0}
.doc-tip{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:var(--radius-sm);padding:.7rem 1rem;font-size:12.5px;color:#15803d;line-height:1.55;margin:.65rem 0}
.doc-kbd{display:inline-block;padding:1px 7px;font-family:'JetBrains Mono',monospace;font-size:10.5px;background:var(--bg3);border:1px solid var(--border);border-bottom-width:2px;border-radius:4px;color:var(--text);line-height:1.4}
.doc-faq{margin:.4rem 0}
.doc-faq summary{cursor:pointer;font-weight:600;font-size:12.5px;color:var(--text);padding:.55rem .8rem;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);list-style:none;margin-bottom:.35rem;transition:background .15s}
.doc-faq summary::-webkit-details-marker{display:none}
.doc-faq summary::before{content:'▸ ';color:var(--text2);font-size:11px}
.doc-faq[open] summary::before{content:'▾ '}
.doc-faq[open] summary{margin-bottom:.4rem;background:var(--bg2)}
.doc-faq summary:hover{background:var(--bg2)}
.doc-faq-body{font-size:12.5px;color:var(--text2);line-height:1.65;padding:.1rem .85rem .35rem}
.doc-glossary{display:grid;grid-template-columns:auto 1fr;gap:.45rem 1rem;font-size:12.5px;color:var(--text2);line-height:1.55;margin:.45rem 0}
.doc-glossary dt{font-weight:700;color:var(--text);font-family:'JetBrains Mono',monospace;font-size:11.5px;white-space:nowrap}
.doc-glossary dd{margin:0}
.doc-confirm{background:#fef3c7;color:#92400e;font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:4px;display:inline-block;margin-left:.35rem;letter-spacing:.04em;text-transform:uppercase;border:1px solid #fcd34d;vertical-align:middle}
@media (max-width:880px){
  .doc-box.doc-box--wide{max-width:96vw}
  .doc-toc ol{column-count:1}
  .doc-glossary{grid-template-columns:1fr}
  .doc-glossary dt{margin-top:.3rem}
  .doc-table{font-size:11px}
  .doc-arch,.doc-code{font-size:10.5px}
}

/* ─── Responsive tweaks ─── */
@media (max-width: 1100px){
  .cfg-tests-grid{grid-template-columns:1fr}
  .cfg-tests-output{min-height:340px}
  .cfg-grid-2{grid-template-columns:1fr}
  .cfg-stat-tiles{grid-template-columns:1fr 1fr 1fr}
  .cfg-sysinfo-grid{grid-template-columns:1fr 1fr}
  .cfg-src-grid{grid-template-columns:1fr}
  .cfg-src-popular-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 760px){
  .role-cards{grid-template-columns:1fr;max-width:320px}
  .nr-layout,.wall-content,.cfg-layout{grid-template-columns:1fr}
  .nr-panel,.wall-col{border-right:none;border-bottom:1px solid var(--border)}
  .app-brand-text{display:none}
  .app-tagline{display:none}
  .app-context{margin-left:0;padding-left:0;border-left:none}
  .orbit-tagline{display:none}
  .orbit-switcher{margin-left:0;padding-left:0;border-left:none}
  /* Header wrap : les séparateurs verticaux n'ont plus de sens empilés. */
  .app-sep{display:none}
  .cfg-sidebar{
    flex-direction:row;flex-wrap:wrap;
    border-right:none;border-bottom:1px solid var(--border);
    padding:.6rem .75rem;gap:.3rem;
  }
  .cfg-sidebar-label{display:none}
  .cfg-nav-item{width:auto;padding:.45rem .75rem;font-size:12.5px}
  .cfg-main{padding:1.25rem 1rem}
  .cfg-page-head h2{font-size:17px}
  .cfg-stat-tiles{grid-template-columns:1fr}
  .cfg-sysinfo-grid{grid-template-columns:1fr 1fr}
  .cfg-src-add-grid{grid-template-columns:1fr}
  .cfg-src-popular-grid{grid-template-columns:1fr}
  .cfg-access-form-grid{grid-template-columns:1fr}
  .about-features,.doc-cols,.doc-two-col{grid-template-columns:1fr}
  .about-box{padding:1.5rem 1.25rem}
  .doc-body{padding:1.25rem 1rem}
}

/* ── Toast notification ── */
.app-toast{
  position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);
  background:var(--bg2);color:var(--text);
  border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:.55rem 1.25rem;font-size:.875rem;
  z-index:9999;opacity:0;transition:opacity .2s;pointer-events:none;
  max-width:min(90vw,480px);text-align:center;white-space:pre-wrap;
}
.app-toast.visible{opacity:1}
.app-toast.toast-error{border-color:#ef4444;color:#ef4444}
.app-toast.toast-ok{border-color:#22c55e;color:#22c55e}

/* ── Access link generator (cfg-panel-acces) ── */
.cfg-access-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.75rem;margin:.9rem 0 1rem}
.cfg-access-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text2);margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.06em}
.cfg-access-field input,.cfg-access-field select{
  width:100%;background:var(--bg2);border:1px solid var(--border);border-radius:8px;
  padding:.55rem .75rem;color:var(--text);font-size:.875rem;outline:none;font-family:inherit;
}
.cfg-access-field input:focus,.cfg-access-field select:focus{border-color:var(--brand)}
.cfg-access-field select option{background:var(--surface)}
.cfg-access-links{margin-top:1.1rem;display:flex;flex-direction:column;gap:.6rem}
.cfg-access-links-empty{text-align:center;color:var(--text3);font-size:.875rem;padding:1.25rem 0}
.cfg-access-link-item{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.5rem}
.cfg-access-link-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.cfg-access-link-id{font-size:13px;font-weight:700;color:var(--text)}
.cfg-access-link-ttl{font-size:11.5px;font-weight:600;color:var(--text3);background:var(--bg);border:1px solid var(--border);border-radius:5px;padding:.1rem .45rem}
.cfg-access-link-url{display:flex;gap:.5rem;align-items:center}
.cfg-access-link-url input{flex:1;background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:.45rem .7rem;color:var(--text2);font-size:12px;font-family:'JetBrains Mono',monospace;outline:none}
.cfg-access-copy-btn{flex-shrink:0;padding:.42rem .8rem;background:var(--surface);border:1px solid var(--border);border-radius:7px;color:var(--text2);cursor:pointer;font-size:.78rem;font-weight:600;transition:all .15s}
.cfg-access-copy-btn:hover{border-color:var(--brand);color:var(--brand)}
.cfg-access-copy-btn.copied{border-color:#22c55e;color:#22c55e;background:rgba(34,197,94,.08)}
.cfg-role-badge{display:inline-block;font-size:.68rem;font-weight:700;padding:.15rem .55rem;border-radius:5px;letter-spacing:.02em}
.cfg-role-badge--player{background:rgba(99,102,241,.15);color:#a5b4fc}
.cfg-role-badge--observer{background:rgba(14,165,233,.15);color:#7dd3fc}
.cfg-role-badge--facilitator{background:rgba(249,115,22,.15);color:#fdba74}
.cfg-role-badge--admin{background:rgba(239,68,68,.15);color:#fca5a5}
.cfg-access-delete-btn{margin-left:auto;padding:.25rem .55rem;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--text3);cursor:pointer;font-size:.72rem;font-weight:600;transition:all .15s}
.cfg-access-delete-btn:hover{border-color:#ef4444;color:#ef4444;background:rgba(239,68,68,.08)}
/* Regroupement par rôle des liens d'accès (#448 — un lien partagé par rôle) */
.cfg-access-role-group{display:flex;flex-direction:column;gap:.5rem}
.cfg-access-role-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:.35rem}
.cfg-access-role-hint{font-size:11.5px;color:var(--text3)}

/* ─── Journaux ─── */
.cfg-logs-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:1rem}
.cfg-logs-tab{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:none;border-bottom:2px solid transparent;padding:.55rem 1rem;font-family:inherit;font-size:13px;font-weight:500;color:var(--text2);cursor:pointer;margin-bottom:-1px;transition:color .12s,border-color .12s}
.cfg-logs-tab:hover{color:var(--text)}
.cfg-logs-tab.active{color:var(--brand-2,var(--brand));border-bottom-color:var(--brand);font-weight:600}
.cfg-logs-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 .35rem;border-radius:9px;background:var(--bg3);color:var(--text2);font-size:10.5px;font-weight:700}
.cfg-logs-tab.active .cfg-logs-tab-count{background:var(--brand-soft,#dcfce7);color:var(--brand-2,#16a34a)}

.cfg-logs-toolbar{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}
.cfg-logs-hint{font-size:11px;color:var(--text3);margin-left:.25rem}
.cfg-logs-list{display:flex;flex-direction:column;gap:.4rem}
.cfg-logs-empty{font-size:13px;color:var(--text3);padding:1.5rem;text-align:center;background:var(--bg2);border-radius:8px;border:1px solid var(--border)}
.cfg-log-entry{background:var(--bg2);border:1px solid var(--border);border-radius:8px;padding:.65rem .85rem;font-size:12px;border-left:3px solid #dc2626}
.cfg-log-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem;flex-wrap:wrap}
.cfg-log-time{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--text3);min-width:7ch}
.cfg-log-origin{font-size:10px;font-weight:700;letter-spacing:.06em;padding:.1rem .4rem;border-radius:4px;text-transform:uppercase}
.cfg-log-origin--server{background:#fee2e2;color:#991b1b}
.cfg-log-origin--client{background:#fef3c7;color:#92400e}
.cfg-log-source{font-size:11px;color:var(--text2);font-weight:500}
.cfg-log-msg{font-size:12.5px;color:var(--text);line-height:1.5;word-break:break-word}
.cfg-log-ctx{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--text3);margin-left:.4rem}
.cfg-log-stack{font-family:'JetBrains Mono',monospace;font-size:10.5px;color:var(--text3);margin-top:.4rem;white-space:pre-wrap;word-break:break-word;background:var(--bg3);border-radius:4px;padding:.4rem .5rem;max-height:160px;overflow:auto}

/* Activity entries - coloured left bar by severity, type pill, IP/role chips */
.cfg-act-entry{background:var(--bg2);border:1px solid var(--border);border-radius:8px;padding:.6rem .85rem;font-size:12px;border-left:3px solid #94a3b8}
.cfg-act-entry--info{border-left-color:#3b82f6}
.cfg-act-entry--warn{border-left-color:#f59e0b}
.cfg-act-entry--ok{border-left-color:#22c55e}
.cfg-act-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem;flex-wrap:wrap}
.cfg-act-type{font-size:10.5px;font-weight:700;letter-spacing:.04em;padding:.12rem .55rem;border-radius:5px;text-transform:uppercase;background:var(--bg3);color:var(--text2)}
.cfg-act-type--info{background:#dbeafe;color:#1e40af}
.cfg-act-type--warn{background:#fef3c7;color:#92400e}
.cfg-act-type--ok{background:#dcfce7;color:#166534}
.cfg-act-role{font-size:10.5px;font-weight:600;padding:.1rem .45rem;border-radius:4px;background:var(--bg3);color:var(--text2);text-transform:capitalize}
.cfg-act-ip{font-family:'JetBrains Mono',monospace;font-size:10.5px;color:var(--text3)}
.cfg-act-msg{font-size:12.5px;color:var(--text);line-height:1.45;word-break:break-word}

/* ═══════════════════════════════════════════════════
   OBSERVER ROOM v3
   ═══════════════════════════════════════════════════ */
#observer{display:flex;flex-direction:column;height:100vh;overflow:hidden;position:relative}

/* ── KPI bar ── */
.obs-kpi-bar{display:flex;align-items:stretch;border-bottom:1px solid var(--border);background:var(--bg);flex-shrink:0}
.obs-kpi-tile{display:flex;align-items:center;gap:1rem;padding:1.1rem 1.6rem;border-right:1px solid var(--border);flex:1}
.obs-kpi-tile:last-child{border-right:none}
.obs-kpi-tile--accent{}
.obs-kpi-icon-wrap{width:50px;height:50px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#64748b}
.obs-kpi-icon-wrap--violet{background:#ede9fe;color:#7c3aed}
.obs-kpi-info{display:flex;flex-direction:column;min-width:0}
.obs-kpi-label-sm{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#94a3b8;margin-bottom:.25rem}
.obs-kpi-big{font-size:22px;font-weight:700;color:var(--text);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.obs-kpi-big--violet{color:#7c3aed;font-size:16px;white-space:normal;line-height:1.3}
.obs-kpi-sub{font-size:11.5px;color:#94a3b8;margin-top:.15rem}

/* ── 2-col content ── */
.obs-content{display:flex;flex:1;overflow:hidden;min-height:0}
.obs-col{display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--border);min-width:0}
.obs-col:last-child{border-right:none}
.obs-col--timeline{width:42%;min-width:300px}
.obs-col--notes{flex:1}
.obs-col-head{display:flex;align-items:center;gap:.6rem;padding:.85rem 1.2rem;border-bottom:1px solid var(--border);background:var(--bg);flex-shrink:0}
.obs-col-title{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text2)}
.obs-col-body{flex:1;overflow-y:auto;padding:1rem 1.2rem}
.obs-empty{font-size:13px;color:var(--text3);text-align:center;padding:2.5rem 1rem}

/* ── Timeline v3 (time | dot+line | content | badge) ── */
.obs-timeline{display:flex;flex-direction:column}
.obs-tl-section{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8;padding:.9rem 0 .5rem;display:flex;align-items:center;gap:.5rem}
.obs-tl-section::after{content:'';flex:1;height:1px;background:var(--border)}
.obs-tl-section:first-child{padding-top:0}

.obs-tl-item{display:grid;grid-template-columns:52px 24px 1fr auto;align-items:start;gap:0 8px;padding:.35rem 0}
.obs-tl-item--clickable{cursor:pointer;border-radius:6px;transition:background .15s}
.obs-tl-item--clickable:hover{background:#f8fafc}
.obs-tl-type{display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;letter-spacing:.04em;padding:1px 5px;border-radius:4px;margin-right:.4rem;vertical-align:1px;color:#fff;line-height:1.4;min-width:20px}
.obs-tl-type--x{background:#000}
.obs-tl-type--of{background:#2563eb}
.obs-tl-type--pr{background:#f59e0b}
.obs-tl-time-col{font-size:11.5px;font-family:'JetBrains Mono',monospace;color:#94a3b8;text-align:right;padding-top:3px;white-space:nowrap}
.obs-tl-dot-col{display:flex;flex-direction:column;align-items:center}
.obs-tl-dot2{width:20px;height:20px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.obs-tl-dot2--fired{background:#22c55e}
.obs-tl-dot2--next{background:#fff;border:2px solid #7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.2)}
.obs-tl-dot2--upcoming{background:#fff;border:2px solid #e2e8f0}
.obs-tl-connector2{width:2px;flex:1;min-height:12px;margin:3px 0}
.obs-tl-connector2--fired{background:#22c55e88}
.obs-tl-connector2--upcoming{background:#e2e8f0}
.obs-tl-content2{padding-bottom:.6rem;min-width:0}
.obs-tl-name2{font-size:13.5px;font-weight:600;color:var(--text);line-height:1.35;margin-bottom:.15rem}
.obs-tl-name2--fired{color:#94a3b8;font-weight:500}
.obs-tl-desc2{font-size:12px;color:#94a3b8;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.obs-tl-badge-col{padding-top:2px;text-align:right}
.obs-tl-pill{font-size:11px;font-weight:600;padding:.2rem .7rem;border-radius:20px;white-space:nowrap;display:inline-block}
.obs-tl-pill--fired{background:#dcfce7;color:#16a34a}
.obs-tl-pill--next{background:#ede9fe;color:#7c3aed}
.obs-tl-pill--upcoming{background:#f1f5f9;color:#64748b}
.obs-tl-pill--x{background:#f1f5f9;color:#0f172a}
.obs-tl-pill--of{background:#fef3c7;color:#92400e}

/* ── Notes / Observations ── */
.obs-notes-section{display:flex;flex-direction:column;gap:.9rem}

.obs-note-textarea-wrap{position:relative;flex-shrink:0}
.obs-note-textarea{width:100%;min-height:110px;border:1.5px solid #e2e8f0;border-radius:12px;padding:.85rem 3.2rem .85rem .9rem;font-family:inherit;font-size:13.5px;color:var(--text);background:var(--bg);resize:none;outline:none;transition:border-color .15s,box-shadow .15s;line-height:1.6;box-sizing:border-box}
.obs-note-textarea::placeholder{color:#cbd5e1}
.obs-note-textarea:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.1)}
.obs-note-save-btn{position:absolute;bottom:.65rem;right:.65rem;width:32px;height:32px;border-radius:8px;border:none;background:#ede9fe;color:#7c3aed;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.obs-note-save-btn:hover{background:#7c3aed;color:#fff}

.obs-notes-list{display:flex;flex-direction:column;gap:.45rem}
.obs-notes-empty{font-size:13px;color:#94a3b8;text-align:center;padding:1rem 0}
.obs-note-item{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:0 .65rem;padding:.55rem 0;border-bottom:1px solid #f1f5f9}
.obs-note-item:last-child{border-bottom:none}
.obs-note-bullet{color:#7c3aed;font-size:16px;line-height:1.5;flex-shrink:0;margin-top:.05rem}
.obs-note-inner{min-width:0}
.obs-note-text{font-size:13.5px;color:var(--text);line-height:1.5}
.obs-note-time{font-size:11px;color:#94a3b8;font-family:'JetBrains Mono',monospace;margin-top:.15rem}
.obs-note-del{background:none;border:none;cursor:pointer;color:#cbd5e1;padding:.1rem .2rem;border-radius:4px;font-size:16px;line-height:1;transition:color .15s;flex-shrink:0;margin-top:.15rem}
.obs-note-del:hover{color:#dc2626}

/* ── Context card ── */
.obs-ctx{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.9rem 1rem;flex-shrink:0}
.obs-ctx-title{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#94a3b8;margin-bottom:.55rem}
.obs-ctx-field{font-size:13px;color:var(--text2);margin-bottom:.3rem;line-height:1.5}
.obs-ctx-field strong{color:var(--text);font-weight:600}

/* ── Chat panel ── */
.obs-chat-panel{position:fixed;bottom:0;right:24px;width:340px;z-index:200;display:flex;flex-direction:column;border-radius:14px 14px 0 0;overflow:hidden;box-shadow:0 -8px 32px rgba(0,0,0,.1);border:1px solid #e2e8f0;border-bottom:none;background:#fff}
.obs-chat-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;user-select:none}
.obs-chat-header-icon{width:26px;height:26px;border-radius:50%;background:#ede9fe;display:flex;align-items:center;justify-content:center;color:#7c3aed;flex-shrink:0}
.obs-chat-title{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#0f172a;flex:1}
.obs-chat-unread{background:#dc2626;color:#fff;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;padding:0 4px;display:flex;align-items:center;justify-content:center}
.obs-chat-min-btn{background:none;border:none;cursor:pointer;font-size:18px;color:#94a3b8;padding:0 .2rem;line-height:1;border-radius:4px;flex-shrink:0;transition:color .15s}
.obs-chat-min-btn:hover{color:#0f172a}
.obs-chat-body{display:flex;flex-direction:column;height:340px}
.obs-chat-notice{display:flex;gap:.5rem;padding:.6rem .85rem;background:#fffbeb;border-bottom:1px solid #fef3c7;font-size:11.5px;color:#92400e;line-height:1.55;flex-shrink:0}
.obs-chat-messages{flex:1;overflow-y:auto;padding:.65rem .75rem;display:flex;flex-direction:column;gap:.3rem;min-height:0}
.obs-chat-empty{font-size:12.5px;color:#94a3b8;text-align:center;padding:2rem .5rem;width:100%;align-self:center}
.obs-chat-msg{max-width:78%;padding:.5rem .75rem .35rem;border-radius:3px 14px 14px 14px;background:#f1f5f9;align-self:flex-start;display:flex;flex-direction:column}
.obs-chat-msg--mine{align-self:flex-end;background:#7c3aed;border-radius:14px 3px 14px 14px}
.obs-chat-msg-author{font-size:10px;font-weight:700;color:#7c3aed;letter-spacing:.03em;margin-bottom:.2rem;line-height:1}
.obs-chat-msg-text{font-size:13px;color:#0f172a;line-height:1.45;word-break:break-word}
.obs-chat-msg--mine .obs-chat-msg-text{color:#fff}
.obs-chat-msg-time{font-size:9.5px;color:#94a3b8;margin-top:.2rem;font-family:'JetBrains Mono',monospace;align-self:flex-end;line-height:1}
.obs-chat-msg--mine .obs-chat-msg-time{color:rgba(255,255,255,.6)}
.obs-chat-input-row{display:flex;gap:.4rem;padding:.65rem .75rem;border-top:1px solid #e2e8f0;flex-shrink:0}
.obs-chat-input{flex:1;border:1.5px solid #e2e8f0;border-radius:8px;padding:.45rem .7rem;font-family:inherit;font-size:13px;color:#0f172a;background:#fff;outline:none;transition:border-color .15s}
.obs-chat-input:focus{border-color:#7c3aed}
.obs-chat-send-btn{width:36px;height:36px;border-radius:8px;border:none;background:#7c3aed;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}
.obs-chat-send-btn:hover{background:#6d28d9}

/* ── Newsroom chat (same structure, positioned same) ── */
.obs-chat-panel--nr{}
.obs-chat-toggle{display:flex;align-items:center;gap:.55rem;padding:.7rem 1rem;background:#f8fafc;border:none;width:100%;cursor:pointer;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#0f172a;border-bottom:1px solid #e2e8f0;text-align:left}
.obs-chat-toggle:hover{background:#e2e8f0}

/* ── Footer ── */
.obs-footer{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1.5rem;background:var(--bg);border-top:1px solid var(--border);font-size:11.5px;color:#94a3b8;flex-shrink:0}

@media (max-width:1000px){
  .obs-col--timeline{width:45%}
  .obs-kpi-tile{padding:.9rem 1rem}
  .obs-kpi-big{font-size:18px}
}
@media (max-width:720px){
  .obs-col--timeline{display:none}
  .obs-col--notes{width:100%}
  .obs-kpi-bar{overflow-x:auto;flex-wrap:nowrap}
  .obs-kpi-tile{min-width:150px;flex:none}
}
@media (max-width:500px){
  .obs-chat-panel{width:calc(100vw - 32px);right:16px}
}

/* ── Context section: view + edit modes ── */
#ctx-card{position:relative;padding:1.25rem 1.5rem 1.5rem}

.ctx-head{display:flex;align-items:flex-start;gap:.85rem;margin:0 0 1.25rem;flex-wrap:wrap}
.ctx-head-icon{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#2563eb;display:flex;align-items:center;justify-content:center;margin-top:2px}
.ctx-head-icon svg{width:16px;height:16px}
.ctx-head-text{flex:1;min-width:200px}
.ctx-head-title{margin:0;font-size:14.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#0f172a}
.ctx-head-sub{margin:.2rem 0 0;font-size:12.5px;color:#64748b;line-height:1.4}
.ctx-edit-btn{display:inline-flex;align-items:center;gap:.4rem}
/* legacy .ctx-head-chevron rules removed - context tile now uses .nr-card-toggle */

/* Collapsed state: hide everything below the head */
.ctx-collapsed .ctx-tabs,
.ctx-collapsed .ctx-panels,
.ctx-collapsed .nr-card-actions{display:none}
.ctx-collapsed .ctx-head{margin-bottom:0}
.ctx-collapsed #ctx-card,
#ctx-card.ctx-collapsed{padding-bottom:1rem}

/* View: tabbed layout (long texts get the full card width) */
.ctx-tabs{display:flex;gap:.35rem;border-bottom:1px solid #e2e8f0;margin-bottom:1rem;flex-wrap:wrap}
.ctx-tab{display:inline-flex;align-items:center;gap:.5rem;appearance:none;background:none;border:none;border-bottom:2px solid transparent;padding:.5rem .65rem;margin-bottom:-1px;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;transition:color .15s,border-color .15s,background .15s;border-radius:8px 8px 0 0}
.ctx-tab:hover{color:#0f172a;background:#f8fafc}
.ctx-tab-icon{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ctx-tab-icon svg{width:14px;height:14px}
.ctx-tab-label{white-space:nowrap}
.ctx-tab.is-active{color:#0f172a}
.ctx-tab--blue.is-active{border-bottom-color:#2563eb}
.ctx-tab--green.is-active{border-bottom-color:#16a34a}
.ctx-tab--violet.is-active{border-bottom-color:#7c3aed}
.ctx-tab--orange.is-active{border-bottom-color:#ea580c}
.ctx-tab--cyan.is-active{border-bottom-color:#0891b2}

.ctx-panels{margin-bottom:1rem}
.ctx-panel{display:none;flex-direction:column;gap:.5rem;padding:.35rem .1rem 0;min-width:0}
.ctx-panel.is-active{display:flex}
.ctx-vcard-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:.2rem}
.ctx-vcard-icon svg{width:16px;height:16px}
.ctx-vcard-icon--blue{background:#dbeafe;color:#2563eb}
.ctx-vcard-icon--green{background:#dcfce7;color:#16a34a}
.ctx-vcard-icon--violet{background:#ede9fe;color:#7c3aed}
.ctx-vcard-icon--orange{background:#fed7aa;color:#ea580c}
.ctx-vcard-icon--cyan{background:#cffafe;color:#0e7490}
.ctx-vcard-count{color:#64748b;font-weight:600}
.ctx-vcard-title{font-size:14px;font-weight:700;color:#0f172a;line-height:1.35;word-break:break-word}
.ctx-vcard-desc{font-size:12.5px;color:#475569;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.ctx-vcard-desc--full{font-size:12.5px}
.ctx-vcard-list{margin:.2rem 0 0;padding-left:1.1rem;font-size:12.5px;color:#0f172a;line-height:1.55}
.ctx-vcard-list li{margin-bottom:.15rem}
.ctx-vcard-empty{font-style:italic;color:#94a3b8;list-style:none;margin-left:-1.1rem}
.ctx-vcard-more{margin-top:.35rem;background:none;border:none;color:#2563eb;font-size:12px;font-weight:600;cursor:pointer;padding:0;text-align:left}
.ctx-vcard-more:hover{text-decoration:underline}

/* Environnement card (info banner, soft blue) */
.ctx-env-card{display:flex;align-items:flex-start;gap:.7rem;padding:.85rem 1rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;margin-top:.5rem}
.ctx-env-icon{flex-shrink:0;width:24px;height:24px;border-radius:50%;background:#bfdbfe;color:#2563eb;display:flex;align-items:center;justify-content:center;margin-top:1px}
.ctx-env-icon svg{width:13px;height:13px}
.ctx-env-label{font-size:10px;font-weight:700;letter-spacing:.07em;color:#1e40af;text-transform:uppercase;margin-bottom:.25rem}
.ctx-env-text{font-size:12.5px;color:#1e3a8a;line-height:1.55}
.ctx-env-card--edit{flex-direction:row;align-items:flex-start}
.ctx-env-card--edit textarea{margin-top:.4rem;width:100%;border:1px solid #bfdbfe;border-radius:6px;padding:.5rem .65rem;font-family:inherit;font-size:12.5px;background:#fff;color:#0f172a;resize:vertical;outline:none}
.ctx-env-card--edit textarea:focus{border-color:#2563eb}

/* Edit fields (rendered inside .ctx-panel tabs, mirroring the view mode) */
.ctx-edit-col{display:flex;flex-direction:column;gap:.45rem;min-width:0}
.ctx-edit-col input[type="text"], .ctx-edit-col textarea{
  width:100%;border:1px solid #cbd5e1;border-radius:6px;padding:.5rem .65rem;
  font-family:inherit;font-size:13px;color:#0f172a;background:#fff;outline:none;
  transition:border-color .15s;
}
.ctx-edit-col input[type="text"]:focus, .ctx-edit-col textarea:focus{border-color:#2563eb}
.ctx-edit-col textarea{resize:vertical;min-height:90px}
.ctx-edit-counter{font-size:10.5px;color:#94a3b8;text-align:right;font-family:'JetBrains Mono',monospace}

/* Acteurs editor */
.ctx-acteurs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;max-height:280px;overflow-y:auto}
.ctx-acteurs-empty{font-size:12px;color:#94a3b8;font-style:italic;padding:.4rem .2rem}

/* ════════════════════════════════════════════════════════════════════
   EXERCICES (v2 – mode multi-exercices). Écran d'atterrissage post-login.
   Tokens partagés (:root global) ; classes scopées #exercices / #exCreateModal
   pour éviter toute collision. Réutilise .home-mountain et .btn/.btn-primary.
   ════════════════════════════════════════════════════════════════════ */
#exercices{flex:1;display:flex;flex-direction:column;min-height:0;background:#f8fafc;overflow:hidden}
.ex-content{position:relative;flex:1;min-height:0;overflow:hidden}
/* .home-mountain (réutilisé) s'ancre ici, bottom-left, derrière le contenu,
   exactement comme sur #home (même img, même masque, même charte). */
.ex-inner{position:relative;z-index:2;height:100%;overflow-y:auto;padding:26px 30px 40px}

.ex-head{margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
/* Bouton « Créer » aligné sur le bord droit de la colonne principale (= au-dessus
   de la corbeille), pas sur le bord de l'écran : on défalque la colonne KPI
   (.ex-kpis 280px + gap .ex-layout 20px). Sous 1100px les KPI passent dessous
   et .ex-main reprend toute la largeur → plus de décalage. */
.ex-head-create{flex-shrink:0;margin-right:300px}
@media (max-width:1100px){.ex-head-create{margin-right:0}}
.ex-title{font-size:24px;font-weight:800;margin:0 0 4px;color:var(--text)}
.ex-sub{color:var(--text2);font-size:13.5px;margin:0}

/* Layout : contenu principal (gauche) + rail KPI vertical (droite) */
.ex-layout{display:flex;gap:20px;align-items:flex-start;margin-top:4px}
.ex-main{flex:1;min-width:0}
.ex-kpis{width:280px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}
.ex-kpi{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow-sm)}
.ex-kpi-l{display:flex;flex-direction:column;gap:2px;min-width:0}
.ex-kpi-lbl{font-size:12.5px;color:var(--text2);font-weight:500}
.ex-kpi-val{font-size:30px;font-weight:800;line-height:1.1;margin:4px 0 2px;color:var(--text)}
.ex-kpi-foot{font-size:11.5px;color:var(--text3)}
.ex-kpi-ic{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--bg3);color:var(--text3)}
.ex-kpi-ic svg{width:20px;height:20px}
.ex-kpi--green  .ex-kpi-val{color:#16a34a}.ex-kpi--green  .ex-kpi-ic{background:#dcfce7;color:#16a34a}
.ex-kpi--amber  .ex-kpi-val{color:#d97706}.ex-kpi--amber  .ex-kpi-ic{background:#fef3c7;color:#d97706}
.ex-kpi--violet .ex-kpi-val{color:#7c3aed}.ex-kpi--violet .ex-kpi-ic{background:#ede9fe;color:#7c3aed}
.ex-kpi--blue   .ex-kpi-val{color:#2563eb}.ex-kpi--blue   .ex-kpi-ic{background:#dbeafe;color:#2563eb}
@media (max-width:1100px){.ex-layout{flex-direction:column}.ex-kpis{width:100%;flex-direction:row;flex-wrap:wrap}.ex-kpis .ex-kpi{flex:1 1 200px}}
/* Colonne ID (badge) + indicateur de tri d'en-tête */
.ex-id{display:inline-block;background:var(--bg3);color:var(--text2);font-size:11.5px;font-weight:600;padding:5px 9px;border-radius:7px;letter-spacing:.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.ex-sort{color:var(--text3);font-size:11px}
/* Sélecteur « N / page » du pager */
.ex-pagesize{height:32px;border:1px solid var(--border);border-radius:8px;background:var(--bg2);color:var(--text2);font-family:inherit;font-size:12px;font-weight:600;padding:0 8px;cursor:pointer;margin-left:8px}

/* ════════════════════════════════════════════════════════════════════
   Fiche d'un exercice (#home → .exh) – conforme à la maquette.
   ════════════════════════════════════════════════════════════════════ */
.exh-back{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px 0 10px;border:1px solid var(--border);border-radius:9px;background:var(--bg2);color:var(--text2);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;margin-bottom:22px}
.exh-back:hover{background:var(--bg3);color:var(--text)}
.exh-back svg{width:15px;height:15px}

.exh-head{display:flex;align-items:flex-start;gap:18px;margin-bottom:6px}
/* Icône (« logo ») dont le HAUT est aligné sur le HAUT du titre (pas sur le badge).
   line-height figés sur .exh-status (1) et .exh-title (1.2) → décalage déterministe :
   badge = 11px (font) + 6 (padding 3+3) = 17px, + 8px margin-bottom = 25px jusqu'au
   titre ; +8px d'ajustement optique → 33px pour caler l'icône au niveau du titre. */
.exh-ic{position:relative;width:64px;height:64px;border-radius:14px;background:var(--bg3);color:var(--text2);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:33px}
.exh-ic svg{width:28px;height:28px}
.exh-ic.dark{background:#1e293b;color:#fff}
.exh-ic-d,.exh-ic-d2{position:absolute;bottom:7px;width:7px;height:7px;border-radius:50%;background:var(--text3)}
.exh-ic-d{left:9px}.exh-ic-d2{right:9px}
.exh-ic-d.run,.exh-ic-d2.run{background:var(--brand)}
.exh-ic-d.prep,.exh-ic-d2.prep{background:#d97706}
.exh-head-main{flex:1;min-width:0}
.exh-status{display:inline-block;font-size:11px;font-weight:700;line-height:1;letter-spacing:.04em;padding:3px 9px;border-radius:6px;margin-bottom:8px;background:var(--bg3);color:var(--text2)}
.exh-status.run{background:#dcfce7;color:#16a34a}
.exh-status.prep{background:#fef3c7;color:#d97706}
.exh-status.done{background:#e2e8f0;color:#64748b}
.exh-title{font-size:26px;font-weight:800;line-height:1.2;letter-spacing:-.01em;margin:0;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.exh-star{width:20px;height:20px;color:#f6b400;flex-shrink:0}
.exh-sub{font-size:12.5px;color:var(--text3);margin-top:6px;font-variant-numeric:tabular-nums}
.exh-desc{font-size:14px;color:var(--text2);margin:10px 0 0;max-width:760px;line-height:1.55}
.exh-actions{display:flex;align-items:flex-start;gap:8px;flex-shrink:0;margin-left:auto}
.btn.exh-modify{height:38px;padding:0 14px}
.btn.exh-modify svg{width:15px;height:15px}
.exh-more{position:relative}
.exh-more-btn{width:38px;height:38px;border:1px solid var(--border);background:var(--bg2);border-radius:9px;color:var(--text2);display:flex;align-items:center;justify-content:center;cursor:pointer}
.exh-more-btn:hover{background:var(--bg3);color:var(--text)}
.exh-more-btn svg{width:18px;height:18px}
.exh-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:230px;background:var(--bg2);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg);z-index:300;padding:5px}
.exh-menu[hidden]{display:none}
.exh-mi{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:none;padding:9px 11px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:500;color:var(--text2);cursor:pointer}
.exh-mi:hover{background:var(--bg3);color:var(--text)}
.exh-mi svg{width:16px;height:16px;flex-shrink:0;color:var(--text3)}
.exh-mi--del{color:var(--critique)}
.exh-mi--del svg{color:var(--critique)}
.exh-mi--del:hover{background:var(--critique-soft);color:var(--critique)}

/* Aligné sur .exh-desc : même retrait que .exh-head-main (icône 64 + gap 18)
   et même max-width que .exh-desc (760px). Chips de largeur uniforme. */
.exh-metas{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 42px calc(64px + 18px);max-width:760px}
.exh-meta{flex:1 1 140px;min-width:0;display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:9px;background:transparent;padding:8px 12px}
.exh-meta-ic{width:24px;height:24px;border-radius:6px;background:var(--bg3);color:var(--text3);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.exh-meta-ic svg{width:13px;height:13px}
.exh-meta-a{font-size:12px;font-weight:700;color:var(--text);line-height:1.25}
.exh-meta-b{font-size:10px;color:var(--text3);margin-top:1px;line-height:1.2}

.exh-ws-head{margin-bottom:16px}
.exh-ws-head h2{font-size:18px;font-weight:800;margin:0;color:var(--text)}
.exh-ws-head p{font-size:13.5px;color:var(--text2);margin:4px 0 0}
.exh-ws-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.exh-ws{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:32px 28px;box-shadow:var(--shadow-sm);transition:transform .24s cubic-bezier(.22,1,.36,1),box-shadow .24s ease;will-change:transform}
.exh-ws-ic{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg3);color:var(--text3);margin:0 auto 20px;transition:transform .24s cubic-bezier(.22,1,.36,1)}
.exh-ws-ic svg{width:27px;height:27px}
.exh-ws-t{font-size:19px;font-weight:800;margin:0;color:var(--text)}
.exh-ws-t::after{content:"";display:block;width:34px;height:3px;border-radius:999px;margin:12px auto 0;background:currentColor}
.exh-ws-x{font-size:14px;color:var(--text2);line-height:1.6;margin:18px 0 24px;flex:1;align-self:stretch}
.exh-ws-btn{height:48px;border:none;border-radius:12px;font-family:inherit;font-size:14px;font-weight:700;color:#fff;background:var(--text2);cursor:pointer;width:100%;transition:transform .15s ease,filter .15s ease}
.exh-ws-foot{font-size:12px;color:var(--text3);text-align:center;margin-top:14px}
.exh-ws:not(.is-soon):hover{transform:translateY(-8px);box-shadow:0 24px 50px -18px rgba(15,23,42,.28)}
.exh-ws:not(.is-soon):hover .exh-ws-ic{transform:scale(1.08)}
.exh-ws:not(.is-soon):hover .exh-ws-btn{filter:brightness(1.05)}
.exh-ws:not(.is-soon) .exh-ws-btn:active{transform:translateY(1px)}
.exh-ws-badge{position:absolute;top:14px;right:14px;font-size:10px;font-weight:700;letter-spacing:.03em;color:var(--text3);background:var(--bg3);padding:3px 8px;border-radius:999px}
/* Indicateur « ouvre dans un nouvel onglet » – coin haut-droit de la tuile. */
.exh-ws-ext{position:absolute;top:14px;right:14px;width:16px;height:16px;color:var(--text3);pointer-events:none;transition:color .2s ease}
.exh-ws-ext svg{width:16px;height:16px;display:block}
.exh-ws:not(.is-soon):hover .exh-ws-ext{color:var(--text2)}
.exh-ws--green  .exh-ws-ic{background:#dcfce7;color:#16a34a}.exh-ws--green  .exh-ws-t{color:#16a34a}.exh-ws--green  .exh-ws-btn{background:#22c55e}.exh-ws--green  .exh-ws-btn:hover{background:#16a34a}
.exh-ws--blue   .exh-ws-ic{background:#dbeafe;color:#2563eb}.exh-ws--blue   .exh-ws-t{color:#2563eb}.exh-ws--blue   .exh-ws-btn{background:#3b82f6}.exh-ws--blue   .exh-ws-btn:hover{background:#2563eb}
.exh-ws--violet .exh-ws-ic{background:#ede9fe;color:#7c3aed}.exh-ws--violet .exh-ws-t{color:#7c3aed}.exh-ws--violet .exh-ws-btn{background:#8b5cf6}.exh-ws--violet .exh-ws-btn:hover{background:#7c3aed}
.exh-ws--slate.is-soon{opacity:.85}
.exh-ws--slate .exh-ws-ic{background:#e2e8f0;color:#64748b}
.exh-ws--slate .exh-ws-t{color:#94a3b8}
.exh-ws--slate .exh-ws-x{color:var(--text3)}
.exh-ws-btn[disabled]{background:var(--bg3);color:var(--text3);cursor:not-allowed}
@media (max-width:1180px){.exh-ws-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:680px){.exh-ws-grid{grid-template-columns:1fr}.exh-head{flex-wrap:wrap}.exh-actions{margin-left:0}.exh-metas{margin-left:0}}

.ex-filters{display:flex;gap:12px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.ex-search{flex:1;min-width:240px;position:relative}
.ex-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text3)}
.ex-search input{width:100%;height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);padding:0 14px 0 38px;font-family:inherit;font-size:13.5px;color:var(--text)}
.ex-search input::placeholder{color:var(--text3)}
.ex-fdrop{height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);padding:0 12px;display:flex;flex-direction:column;justify-content:center;min-width:150px;cursor:pointer}
.ex-fl{font-size:10px;color:var(--text3);font-weight:600}
.ex-fv{font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text)}
.ex-fv svg{width:13px;height:13px;color:var(--text3)}
.ex-ftog{height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);display:flex;align-items:center;gap:10px;padding:0 14px;font-weight:600;font-size:13px;color:var(--text2);font-family:inherit}
.ex-ftog svg{width:15px;height:15px;color:var(--text3)}
.ex-ftog.on{border-color:var(--brand);color:var(--brand-2)}
.ex-ftog.on svg{color:#d97706}
/* Bouton Corbeille (toggle vue soft-delete) – accent critique quand actif. */
.ex-trash-btn{cursor:pointer}
.ex-trash-btn:hover{border-color:var(--border2);color:var(--text)}
.ex-trash-btn.on{border-color:var(--critique);color:var(--critique);background:var(--critique-soft)}
.ex-trash-btn.on svg{color:var(--critique)}
.ex-trash-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--critique);color:#fff;font-size:11px;font-weight:700;line-height:1}
.ex-switch{width:34px;height:20px;border-radius:999px;background:var(--border2);position:relative;flex-shrink:0;transition:.15s}
.ex-switch::after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:.15s}
.ex-ftog.on .ex-switch{background:var(--brand)}
.ex-ftog.on .ex-switch::after{left:16px}

.ex-tbl-wrap{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.ex-table{width:100%;border-collapse:collapse}
.ex-table thead th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--text3);padding:14px 18px;border-bottom:1px solid var(--border);background:#fcfcfd}
.ex-table tbody td{padding:16px 18px;border-bottom:1px solid var(--border);vertical-align:middle;font-size:13px}
.ex-table tbody tr:last-child td{border-bottom:none}
.ex-tr{cursor:pointer}
.ex-tr:hover{background:#fcfdfc}
.ex-tbl-empty{padding:50px 18px;text-align:center;color:var(--text3);font-size:13px}
.ex-cell{display:flex;align-items:flex-start;gap:13px}
.ex-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex-shrink:0}
.ex-dot.run{background:var(--brand)}.ex-dot.prep{background:var(--blue)}.ex-dot.done{background:var(--text3)}
.ex-ic{width:38px;height:38px;border-radius:10px;background:var(--bg3);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--text2)}
.ex-ic svg{width:18px;height:18px}
.ex-ic.dark{background:#1e293b;color:#fff}
.ex-name{font-weight:600;display:flex;align-items:center;gap:7px;color:var(--text)}
.ex-star{color:#d97706;width:14px;height:14px;flex-shrink:0}
.ex-desc{color:var(--text3);font-size:12px;margin-top:3px;max-width:330px}
.ex-st{display:flex;flex-direction:column;gap:3px}
.ex-st-main{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:12.5px}
.ex-st-main .ex-d{width:7px;height:7px;border-radius:50%}
.ex-st.run .ex-st-main{color:var(--brand-2)}.ex-st.run .ex-d{background:var(--brand)}
.ex-st.prep .ex-st-main{color:#d97706}.ex-st.prep .ex-d{background:#d97706}
.ex-st.done .ex-st-main{color:var(--text3)}.ex-st.done .ex-d{background:var(--text3)}
.ex-st-sub{font-size:11px;color:var(--text3)}
.ex-chip{display:inline-block;background:var(--bg3);color:var(--text2);font-size:11.5px;font-weight:600;padding:5px 11px;border-radius:8px}
.ex-cli{display:flex;align-items:flex-start;gap:8px}
.ex-cli-ic{width:16px;height:16px;color:var(--text3);margin-top:1px;flex-shrink:0}
.ex-cli-name{font-weight:600;font-size:12.5px;color:var(--text)}
.ex-cli-sec{font-size:11px;color:var(--text3)}
.ex-dt-main,.ex-pp-main{font-weight:600;font-size:12.5px;color:var(--text)}
.ex-dt-sub,.ex-pp-sub{font-size:11px;color:var(--text3)}
.ex-row-act{width:34px;height:34px;border:1px solid var(--border);background:var(--bg2);border-radius:8px;color:var(--text3);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ex-row-act:hover{background:var(--bg3);color:var(--text)}
.ex-th-i{display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--text3);color:var(--text3);font-size:9px;align-items:center;justify-content:center;margin-left:5px;vertical-align:middle}
.ex-pager{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:12.5px;color:var(--text3)}
.ex-pager-pages{display:flex;align-items:center;gap:6px}
.ex-pg{width:32px;height:32px;border:1px solid var(--border);background:var(--bg2);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--text2);font-weight:600;cursor:pointer}
.ex-pg.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.ex-pg[data-dis]{opacity:.4;cursor:default}
.ex-pg svg{width:14px;height:14px}
@media (max-width:980px){.ex-kpis .ex-kpi{flex:1 1 160px}}

/* ── Wizard « Créer un exercice » (modale 4 étapes) ── */
#exCreateModal .exw-back{position:fixed;inset:0;background:rgba(15,23,42,.5);display:none;align-items:center;justify-content:center;z-index:1000;padding:24px}
#exCreateModal .exw-back.open{display:flex}
#exCreateModal .exw-modal{background:var(--bg2);border-radius:18px;width:100%;max-width:720px;max-height:92vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-lg)}
#exCreateModal .exw-h{padding:20px 26px;display:flex;align-items:center;justify-content:space-between}
#exCreateModal .exw-h h3{margin:0;font-size:18px;font-weight:800;color:var(--text)}
#exCreateModal .exw-x{width:32px;height:32px;border:none;background:transparent;border-radius:8px;color:var(--text2);font-size:20px;line-height:1;cursor:pointer}
#exCreateModal .exw-x:hover{background:var(--bg3)}
#exCreateModal .exw-stepper{display:flex;align-items:center;padding:4px 26px 18px}
#exCreateModal .exw-stp{display:flex;align-items:center;gap:9px;flex-shrink:0}
#exCreateModal .exw-c{width:26px;height:26px;border-radius:50%;background:#e2e8f0;color:var(--text3);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
#exCreateModal .exw-t{font-size:12.5px;font-weight:600;color:var(--text3);white-space:nowrap}
#exCreateModal .exw-stp.active .exw-c{background:#1e293b;color:#fff}
#exCreateModal .exw-stp.active .exw-t{color:var(--text)}
#exCreateModal .exw-stp.done .exw-c{background:var(--brand);color:#fff}
#exCreateModal .exw-stp.done .exw-t{color:var(--text2)}
#exCreateModal .exw-c svg{width:14px;height:14px}
#exCreateModal .exw-line{flex:1;height:2px;background:var(--border);margin:0 12px;border-radius:2px}
#exCreateModal .exw-line.done{background:var(--brand)}
#exCreateModal .exw-b{padding:6px 26px 22px;overflow-y:auto}
#exCreateModal .exw-sec{font-size:15px;font-weight:700;margin:6px 0 18px;color:var(--text)}
#exCreateModal .exw-step{display:none}
#exCreateModal .exw-step.show{display:block}
#exCreateModal .exw-fld{margin-bottom:16px;position:relative}
#exCreateModal .exw-fld label{display:block;font-size:12.5px;font-weight:600;margin-bottom:7px;color:var(--text)}
#exCreateModal .exw-fld input,#exCreateModal .exw-fld select,#exCreateModal .exw-fld textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:11px 13px;font-family:inherit;font-size:13.5px;color:var(--text);background:var(--bg2)}
#exCreateModal .exw-fld input::placeholder,#exCreateModal .exw-fld textarea::placeholder{color:var(--text3)}
#exCreateModal .exw-fld select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:34px}
#exCreateModal .exw-row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#exCreateModal .exw-cnt{position:absolute;right:4px;bottom:-18px;font-size:11px;color:var(--text3)}
#exCreateModal .exw-ic{position:relative}
#exCreateModal .exw-ic svg{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--text3);pointer-events:none}
/* Champs date/heure natifs : on garde l'icône décorative .exw-ic à droite et
   on masque l'indicateur natif (sinon doublon) ; le clic sur le champ ouvre
   le picker natif via showPicker(). */
#exCreateModal .exw-ic input[type=date],#exCreateModal .exw-ic input[type=time]{padding-right:36px;cursor:pointer}
#exCreateModal input[type=date]::-webkit-calendar-picker-indicator,#exCreateModal input[type=time]::-webkit-calendar-picker-indicator{opacity:0}
#exCreateModal input[type=date]::-webkit-inner-spin-button,#exCreateModal input[type=time]::-webkit-inner-spin-button{display:none}
#exCreateModal .exw-i{display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--text3);color:var(--text3);font-size:9px;align-items:center;justify-content:center;margin-left:5px;vertical-align:middle}
#exCreateModal .exw-rcards{display:grid;gap:12px;margin-bottom:18px}
#exCreateModal .exw-rcards.c3{grid-template-columns:repeat(3,1fr)}
#exCreateModal .exw-rcards.c2{grid-template-columns:repeat(2,1fr)}
#exCreateModal .exw-rcard{border:1.5px solid var(--border);border-radius:12px;padding:14px;cursor:pointer;display:flex;gap:10px;align-items:flex-start;transition:.12s}
#exCreateModal .exw-rcard:hover{border-color:var(--border2)}
#exCreateModal .exw-rcard.sel{border-color:var(--brand);background:var(--brand-tint)}
#exCreateModal .exw-rdot{width:16px;height:16px;border-radius:50%;border:2px solid var(--border2);flex-shrink:0;margin-top:1px;position:relative}
#exCreateModal .exw-rcard.sel .exw-rdot{border-color:var(--brand)}
#exCreateModal .exw-rcard.sel .exw-rdot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--brand)}
#exCreateModal .exw-rt{font-size:13px;font-weight:700;color:var(--text)}
#exCreateModal .exw-rs{font-size:11.5px;color:var(--text3);margin-top:2px}
#exCreateModal .exw-psec{margin-bottom:22px}
#exCreateModal .exw-psec-h{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
#exCreateModal .exw-pt{font-size:14px;font-weight:700;color:var(--text)}
#exCreateModal .exw-ps{font-size:12px;color:var(--text3);margin-top:2px}
#exCreateModal .exw-add{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--bg2);border-radius:9px;height:34px;padding:0 13px;font-weight:600;font-size:12.5px;color:var(--text2);cursor:pointer;font-family:inherit}
#exCreateModal .exw-add:hover{background:var(--bg3)}
#exCreateModal .exw-add svg{width:13px;height:13px}
#exCreateModal .exw-prow{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:10px;padding:11px 13px;margin-bottom:8px}
#exCreateModal .exw-pn{font-weight:600;font-size:13px;min-width:130px;color:var(--text)}
#exCreateModal .exw-pchip{background:var(--bg3);color:var(--text2);font-size:11px;font-weight:600;padding:4px 10px;border-radius:7px}
#exCreateModal .exw-pe{color:var(--text3);font-size:12px;flex:1}
#exCreateModal .exw-pi{color:var(--text3);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:7px;cursor:pointer}
#exCreateModal .exw-pi:hover{background:var(--bg3);color:var(--text2)}
#exCreateModal .exw-pi svg{width:15px;height:15px}
#exCreateModal .exw-recap{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#exCreateModal .exw-rcard-box{border:1px solid var(--border);border-radius:12px;padding:18px}
#exCreateModal .exw-rrow{display:flex;gap:12px;padding:7px 0;font-size:12.5px;border-bottom:1px solid var(--bg3)}
#exCreateModal .exw-rrow:last-child{border-bottom:none}
#exCreateModal .exw-rk{color:var(--text3);min-width:130px;flex-shrink:0}
#exCreateModal .exw-rv{font-weight:600;color:var(--text)}
#exCreateModal .exw-grp{font-size:13px;font-weight:700;margin:0 0 10px;color:var(--text)}
#exCreateModal .exw-grp.mt{margin-top:18px}
#exCreateModal .exw-rp{display:flex;align-items:center;justify-content:space-between;padding:7px 0;font-size:12.5px;border-bottom:1px solid var(--bg3)}
#exCreateModal .exw-rp:last-child{border-bottom:none}
#exCreateModal .exw-rpn{font-weight:600;color:var(--text)}
#exCreateModal .exw-rpc{background:var(--bg3);color:var(--text2);font-size:11px;font-weight:600;padding:3px 9px;border-radius:7px}
#exCreateModal .exw-f{padding:16px 26px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:10px}
@media (max-width:760px){#exCreateModal .exw-recap{grid-template-columns:1fr}}

/* ════════════════════════════════════════════════════════════════════
   Fond montagne – COMPOSANT STANDARD (.app-mountain).
   CSS identique à la page de login (.login-hero-mountain) : hauteur 340px,
   même masque dégradé, même opacité, même cadrage ; bleed left/right au
   lieu du calc() propre au hero login.

   Injecté par header-widgets.js DANS le wrapper de contenu des écrans
   "calmes" uniquement : Accueil (.home-content) et Mes exercices
   (.ex-content). Ces wrappers sont déjà position:relative;overflow:hidden
   avec leur contenu en z-index:2 → la montagne (z-index:0) passe derrière
   le contenu et le overflow:hidden clippe le bleed (zéro ascenseur).
   La page de login garde son propre .login-hero-mountain (référence).

   Volontairement PAS sur rédaction/simulation/observation/configurateur :
   ces écrans sont des layouts plein écran à scroll interne, sans zone
   basse libre – un décor de 340px y chevauche l'UI et crée des
   ascenseurs (c'est aussi pour ça que le design d'origine ne mettait la
   montagne que sur login + accueil).
   ════════════════════════════════════════════════════════════════════ */
/* Confinée en BAS-GAUCHE (~60% de large) comme sur la page de login,
   où .login-hero-mountain n'occupe que la colonne hero gauche (la carte
   de connexion prend la droite). right:40% reproduit ce cadrage : montagne
   discrète bas-gauche, personnage à gauche, fondu doux à droite – pas
   étalée sur toute la largeur. */
/* Treatment identique à #auth-view::before (mire login) : background-image
   en cover/bottom + voile blanc en gradient pour adoucir. Plus d'<img>
   interne (div vide, le rendu est 100% CSS). */
.app-mountain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.82) 45%,
      rgba(255,255,255,0.55) 100%
    ),
    url('../assets/background.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
@media (max-width:620px) { .app-mountain { display: none; } }

/* Dropdowns de filtres (Statut / Type / Client) */
.ex-fdrop{position:relative}
.ex-fdrop .ex-fv{cursor:pointer}
.ex-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:100%;background:var(--bg2);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg);z-index:300;padding:4px;max-height:280px;overflow:auto}
.ex-menu[hidden]{display:none}
.ex-mi{display:block;width:100%;text-align:left;background:transparent;border:none;padding:9px 12px;border-radius:7px;font-family:inherit;font-size:13px;font-weight:500;color:var(--text2);cursor:pointer;white-space:nowrap}
.ex-mi:hover{background:var(--bg3);color:var(--text)}
.ex-mi.on{background:var(--brand-soft);color:var(--brand-2);font-weight:600}

/* Actions par ligne : icônes éditer / archiver / supprimer */
.ex-acts{display:flex;align-items:center;gap:4px;justify-content:flex-end}
.ex-act{width:32px;height:32px;border:1px solid var(--border);background:var(--bg2);border-radius:8px;color:var(--text3);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ex-act svg{width:15px;height:15px}
.ex-act:hover{background:var(--bg3);color:var(--text)}
.ex-act--del:hover{background:var(--critique-soft);color:var(--critique);border-color:var(--critique-soft)}

/* ── Sélection multiple, tri & actions de parc (WU11 — delta UX opérateur) ── */
.ex-th-chk,.ex-td-chk{width:46px}
.ex-chk,.ex-chk-all{width:15px;height:15px;cursor:pointer;accent-color:var(--brand);vertical-align:middle;margin:0}
.ex-th-s{cursor:pointer;user-select:none;white-space:nowrap}
.ex-th-s:hover{color:var(--text2)}
.ex-th-s.on{color:var(--text)}
.ex-th-s.on .ex-sort{color:var(--brand)}
.ex-th-s:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.ex-tr--sel td,.ex-tr--sel:hover td{background:var(--brand-tint)}
.ex-bulk{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;padding:10px 14px;background:var(--brand-tint);border:1px solid var(--brand-soft);border-radius:10px}
.ex-bulk[hidden]{display:none}
.ex-blk-n{font-size:13px;font-weight:700;color:var(--brand-2)}
.ex-blk-actions{display:flex;gap:8px;flex-wrap:wrap}
.ex-blk-act{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border:1px solid var(--border);background:var(--bg2);border-radius:8px;font-family:inherit;font-size:12.5px;font-weight:600;color:var(--text2);cursor:pointer}
.ex-blk-act svg{width:15px;height:15px}
.ex-blk-act:hover{background:var(--bg3);color:var(--text)}
.ex-blk-act--del:hover{background:var(--critique-soft);color:var(--critique);border-color:var(--critique-soft)}
.ex-blk-clear{margin-left:auto;background:none;border:none;font-family:inherit;font-size:12.5px;font-weight:600;color:var(--text3);cursor:pointer;text-decoration:underline}
.ex-blk-clear:hover{color:var(--text)}

/* Wizard – lignes participants éditables */
#exCreateModal .exw-prow .exw-pn-i,#exCreateModal .exw-prow .exw-pr-i,#exCreateModal .exw-prow .exw-pe-i{
  border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-family:inherit;font-size:12.5px;color:var(--text);background:var(--bg2);min-width:0}
#exCreateModal .exw-prow .exw-pn-i{flex:0 0 150px}
#exCreateModal .exw-prow .exw-pr-i{flex:0 0 130px}
#exCreateModal .exw-prow .exw-pe-i{flex:1}
#exCreateModal .exw-prow input::placeholder{color:var(--text3)}
#exCreateModal .exw-pempty{font-size:12px;color:var(--text3);font-style:italic;padding:8px 2px}
.ctx-acteur-row{display:flex;align-items:center;gap:.4rem}
.ctx-acteur-input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:6px;padding:.4rem .55rem;font-family:inherit;font-size:12.5px;color:#0f172a;background:#fff;outline:none;transition:border-color .15s}
.ctx-acteur-input:focus{border-color:#2563eb}
.ctx-acteur-del{background:none;border:1px solid #e2e8f0;border-radius:6px;width:28px;height:28px;flex-shrink:0;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}
.ctx-acteur-del:hover{color:#dc2626;border-color:#fca5a5;background:#fef2f2}
.ctx-add-acteur{margin-top:.4rem;background:none;border:1px dashed #cbd5e1;border-radius:6px;color:#2563eb;font-size:12.5px;font-weight:600;cursor:pointer;padding:.45rem .7rem;text-align:left;transition:all .15s}
.ctx-add-acteur:hover{border-color:#2563eb;background:#eff6ff}

@media (max-width:600px){
  .ctx-tab-label{display:none}
  .ctx-tab{padding:.5rem}
}

/* ── Prompt modal (chronogramme animator cue) ── */
.prompt-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:500;align-items:center;justify-content:center;padding:1rem}
.prompt-modal-card{background:#fff;border-radius:14px;width:100%;max-width:640px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.25);display:flex;flex-direction:column;border:1px solid #e2e8f0}
.prompt-modal-header{display:flex;align-items:center;gap:.6rem;padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%)}
.prompt-modal-tag{font-family:'JetBrains Mono',monospace;font-size:11.5px;font-weight:700;color:#92400e;background:#fde68a;padding:3px 9px;border-radius:6px;letter-spacing:.02em;flex-shrink:0}
.prompt-modal-sujet{font-size:13.5px;font-weight:600;color:#0f172a;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prompt-modal-close{background:none;border:none;cursor:pointer;font-size:24px;color:#64748b;line-height:1;width:28px;height:28px;border-radius:6px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;transition:background .15s}
.prompt-modal-close:hover{background:rgba(0,0,0,.06);color:#0f172a}
.prompt-modal-flow{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.prompt-modal-actor{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}
.prompt-modal-actor-label{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8}
.prompt-modal-actor-val{font-size:13.5px;font-weight:600;color:#0f172a;line-height:1.35;white-space:pre-line}
.prompt-modal-arrow{flex-shrink:0;color:#7c3aed}
.prompt-modal-section{padding:.85rem 1.25rem;border-bottom:1px solid #f1f5f9}
.prompt-modal-section:last-of-type{border-bottom:none}
.prompt-modal-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#7c3aed;margin-bottom:.4rem}
.prompt-modal-resume,.prompt-modal-stimuli,.prompt-modal-reaction,.prompt-modal-comment{font-size:13.5px;line-height:1.55;color:#0f172a;white-space:pre-wrap;word-break:break-word}
.prompt-modal-stimuli{font-weight:500;background:#f8fafc;border-left:3px solid #7c3aed;padding:.7rem .9rem;border-radius:0 8px 8px 0}
.prompt-modal-reaction{color:#15803d}
.prompt-modal-comment{color:#64748b;font-style:italic}
.prompt-modal-footer{padding:.85rem 1.25rem;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:.5rem;background:#fafbfc}

/* ── Feature #162 – IDs séquentiels dans la timeline ── */
.tl-seq-id{font-size:9.5px;font-weight:700;color:#94a3b8;letter-spacing:.04em;font-family:'JetBrains Mono','Cascadia Code',monospace}
.tl-time-col{flex-shrink:0;width:82px;display:flex;flex-direction:column;gap:1px;line-height:1.3}

/* ── Feature #163 – Horaire absolu dans la timeline ── */
.tl-clock{font-size:11px;font-weight:600;color:#4f46e5;font-family:'JetBrains Mono','Cascadia Code',monospace;letter-spacing:.01em}

/* ── Feature #164 – Segmentation joueurs/PNJ ── */
.ctx-vcard-section-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;padding:.35rem 0 .1rem;list-style:none;margin-top:.3rem}
.ctx-vcard-section-label:first-child{margin-top:0}
.ctx-vcard-joueur{color:#2563eb}
.ctx-acteur-type-btn{width:32px;height:28px;flex-shrink:0;border:1.5px solid #e2e8f0;border-radius:6px;background:#f8fafc;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0}
.ctx-acteur-type-btn--joueur{border-color:#bfdbfe;background:#eff6ff}
.ctx-acteur-type-btn--pnj{border-color:#e2e8f0;background:#f8fafc}
.ctx-acteur-type-btn:hover{transform:scale(1.1)}

/* ── Feature #168 – Écran de pause plein écran ── */
#wall-pause-overlay{position:fixed;inset:0;z-index:999;background:rgba(2,6,23,.93);display:flex;align-items:center;justify-content:center;animation:wall-pause-fadein .3s ease}
@keyframes wall-pause-fadein{from{opacity:0}to{opacity:1}}
.wall-pause-content{text-align:center;color:#f8fafc;padding:2rem}
.wall-pause-icon{color:#f8fafc;margin-bottom:1.75rem;opacity:.75}
.wall-pause-title{font-size:2.25rem;font-weight:800;letter-spacing:-.03em;line-height:1.1}
.wall-pause-sub{font-size:1rem;color:#94a3b8;margin-top:.75rem;font-weight:400}

/* ── Feature #169 – Comptes factices & viralité form-x ── */
.x-account-select,.x-virality-select{width:100%;padding:.5rem .7rem;border:1.5px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:12.5px;color:#0f172a;background:#fff;cursor:pointer;outline:none;transition:border-color .15s;margin-bottom:.5rem}
.x-account-select:focus,.x-virality-select:focus{border-color:#2563eb}
.x-virality-row{margin-bottom:.25rem}
.form-hint{font-size:10px;font-weight:400;color:#94a3b8;font-style:italic;margin-left:.3rem;text-transform:none;letter-spacing:0}

/* ── Composer redesign ── */
/* Stepper */
.composer-steps{display:flex;align-items:center;gap:4px;margin-left:auto;margin-right:8px}
.composer-step{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:500;color:#94a3b8}
.composer-step--active{color:#0f172a}
.composer-step-num{width:18px;height:18px;border-radius:50%;background:#e2e8f0;color:#64748b;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0}
.composer-step--active .composer-step-num{background:var(--brand);color:#fff}
.composer-step-lbl{font-size:11px}
.composer-step-line{width:20px;height:1px;background:#e2e8f0}

/* Channel tabs v2 */
.plat-tabs{display:flex;gap:6px;margin-bottom:1.1rem}
.plat-tab{display:flex;align-items:center;gap:8px;padding:.5rem .7rem;border:1.5px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;transition:all .12s;font-family:inherit;flex:1;text-align:left}
.plat-tab:hover{background:#f8fafc;border-color:#cbd5e1}
.plat-tab-icon-wrap{width:28px;height:28px;border-radius:7px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.plat-tab-icon-wrap--x{background:#000;color:#fff}
.plat-tab-icon-wrap--of{background:#ffe4e6}
.plat-tab-icon-wrap--prompt{background:#fef3c7}
.plat-tab-body{display:flex;flex-direction:column;gap:1px}
.plat-tab-name{font-size:12px;font-weight:600;color:#0f172a;line-height:1.2}
.plat-tab-sub{font-size:10px;color:#94a3b8;font-weight:400;line-height:1.2}
.plat-tab.active-x{border-color:#000;background:#000}
.plat-tab.active-x .plat-tab-name,.plat-tab.active-x .plat-tab-sub{color:#fff}
.plat-tab.active-x .plat-tab-icon-wrap--x{background:rgba(255,255,255,.15)}
.plat-tab.active-of{border-color:var(--of);background:var(--of)}
.plat-tab.active-of .plat-tab-name,.plat-tab.active-of .plat-tab-sub{color:#fff}
.plat-tab.active-of .plat-tab-icon-wrap--of{background:rgba(255,255,255,.2)}
.plat-tab.active-prompt{border-color:#f59e0b;background:#f59e0b}
.plat-tab.active-prompt .plat-tab-name,.plat-tab.active-prompt .plat-tab-sub{color:#fff}
.plat-tab.active-prompt .plat-tab-icon-wrap--prompt{background:rgba(255,255,255,.2)}

/* Field groups */
.composer-field-grp{margin-bottom:.85rem}
.composer-lbl{display:block;font-size:10.5px;font-weight:700;color:#64748b;letter-spacing:.07em;text-transform:uppercase;margin-bottom:.35rem;display:flex;align-items:center;gap:4px}
.composer-field-desc{font-size:11px;color:#94a3b8;margin:.0 0 .4rem;line-height:1.4}
.composer-optional{font-size:9.5px;font-weight:400;color:#94a3b8;text-transform:none;letter-spacing:0}
.composer-lbl-info-icon{width:12px;height:12px;color:#cbd5e1;flex-shrink:0}
.composer-section-lbl{font-size:10px;font-weight:700;color:#94a3b8;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.6rem}

/* Input with icon prefix */
.input-icon-wrap{position:relative;display:block}
.input-prefix-icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:13px;height:13px;color:#94a3b8;pointer-events:none}
.input-icon-wrap input{padding-left:28px}

/* Tweet media buttons */
.composer-tweet-bottom-row{display:flex;align-items:center;justify-content:space-between;margin-top:.3rem}
.composer-media-btns{display:flex;gap:2px}
.composer-media-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:6px;color:#64748b;transition:background .1s;font-family:inherit}
.composer-media-btn:hover{background:#f1f5f9;color:var(--brand)}

/* Programmation section */
.composer-programmation{display:flex;gap:12px;align-items:flex-start;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:.85rem;margin-top:.5rem;margin-bottom:.5rem}
.composer-prog-icon-wrap{width:32px;height:32px;border-radius:8px;flex-shrink:0;background:#dcfce7;color:#16a34a;display:flex;align-items:center;justify-content:center}
.composer-prog-body{flex:1;min-width:0}
.composer-prog-title{font-size:10.5px;font-weight:700;color:#15803d;letter-spacing:.07em;text-transform:uppercase;margin-bottom:.15rem}
.composer-prog-offset{display:flex;align-items:center;gap:6px;font-size:13px;color:#0f172a;margin:.4rem 0}
.composer-prog-offset input{width:64px;text-align:right;border-radius:6px;border:1.5px solid #bbf7d0;background:#fff;padding:.3rem .4rem;font-size:13px;font-family:inherit}
.composer-prog-offset input:focus{border-color:#16a34a;outline:none}
.composer-prog-sched-btn{font-size:12px;font-weight:600;color:#16a34a;background:#dcfce7;border:1px solid #bbf7d0;border-radius:8px;padding:.3rem .75rem;cursor:pointer;font-family:inherit;transition:background .1s}
.composer-prog-sched-btn:hover{background:#bbf7d0}

/* Action bar */
.composer-action-bar{display:flex;align-items:center;gap:8px;padding:.75rem 0 .1rem;border-top:1px solid var(--border);margin-top:.25rem}
.composer-btn-draft{font-size:12.5px;color:#64748b;background:none;border:none;cursor:pointer;font-family:inherit;padding:.45rem .65rem;border-radius:8px;font-weight:500;margin-right:auto;transition:background .1s}
.composer-btn-draft:hover{background:#f1f5f9;color:#0f172a}
.composer-btn-preview-action{display:flex;align-items:center;gap:5px;font-size:12.5px;color:#64748b;background:#fff;border:1.5px solid var(--border);border-radius:8px;padding:.42rem .9rem;cursor:pointer;font-family:inherit;font-weight:500;transition:all .12s}
.composer-btn-preview-action:hover{border-color:#94a3b8;color:#0f172a}
.composer-btn-publish{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:#fff;background:#16a34a;border:none;border-radius:8px;padding:.45rem 1rem;cursor:pointer;font-family:inherit;transition:background .12s}
.composer-btn-publish:hover{background:#15803d}
.composer-btn-publish-sep{width:1px;height:14px;background:rgba(255,255,255,.35);margin:0 1px;flex-shrink:0}

/* Preview header */
.composer-preview-hdr{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:#64748b;letter-spacing:.08em;text-transform:uppercase;padding:.4rem .2rem;margin-bottom:.5rem}
.composer-preview-disclaimer{font-size:10px;color:#94a3b8;margin:.5rem 0 .75rem;line-height:1.5;text-align:center;font-style:italic}

/* Conseils */
.composer-conseils{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:.75rem}
.composer-conseils-hdr{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:#16a34a;margin-bottom:.5rem}
.composer-conseils-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px}
.composer-conseils-list li{display:flex;align-items:center;gap:6px;font-size:11px;color:#374151;font-weight:500}
.composer-conseils-list li svg{color:#16a34a;flex-shrink:0}

/* Dark tweet preview card */
.nr-preview-tweet-card{background:#0f1419;border:1px solid #2f3336;border-radius:12px;padding:.85rem;font-size:12px;color:#e7e9ea}
.tweet-preview-inner{display:flex;gap:10px}
.tweet-preview-avatar{width:36px;height:36px;border-radius:50%;background:#1d9bf0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff;flex-shrink:0;text-transform:uppercase}
.tweet-preview-right{flex:1;min-width:0}
.tweet-preview-hdr{display:flex;align-items:center;gap:4px;margin-bottom:3px;flex-wrap:wrap}
.tweet-preview-name{font-size:13px;font-weight:700;color:#fff}
.tweet-preview-verified{color:#1d9bf0;font-size:13px}
.tweet-preview-handle{font-size:12px;color:#71767b}
.tweet-preview-body{font-size:13px;color:#e7e9ea;line-height:1.5;margin-bottom:6px;white-space:pre-wrap;word-break:break-word}
.tweet-preview-ts{font-size:11px;color:#71767b;margin-bottom:8px}
.tweet-preview-actions{display:flex;gap:18px;align-items:center;border-top:1px solid #2f3336;padding-top:8px}
.tweet-preview-action-btn{display:flex;align-items:center;gap:4px;color:#71767b;font-size:11px;background:none;border:none;cursor:default;padding:0}
.tweet-preview-action-btn svg{width:14px;height:14px}

/* ── Composer step items (header stepper) ── */
.composer-step-item{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:500;color:#94a3b8;cursor:pointer;padding:.4rem .6rem;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;user-select:none;border-radius:4px 4px 0 0}
.composer-step-item:hover{color:#64748b}
.composer-step-item.is-active{color:#16a34a;border-bottom-color:#16a34a;font-weight:700}
.composer-step-item.is-active .composer-step-num{background:#16a34a;color:#fff}
.composer-step-item.is-done{color:#16a34a}
.composer-step-item.is-done .composer-step-num{background:#dcfce7;color:#16a34a;font-size:0}
.composer-step-item.is-done .composer-step-num::before{content:"✓";font-size:10px;font-weight:800}

/* Nav buttons (Suivant / Précédent) */
.composer-btn-next{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:#fff;background:#2563eb;border:none;border-radius:8px;padding:.45rem 1rem;cursor:pointer;font-family:inherit;transition:background .12s;margin-left:auto}
.composer-btn-next:hover{background:#1d4ed8}
.composer-btn-prev{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:500;color:#64748b;background:#fff;border:1.5px solid var(--border);border-radius:8px;padding:.42rem .9rem;cursor:pointer;font-family:inherit;transition:all .12s}
.composer-btn-prev:hover{border-color:#94a3b8;color:#0f172a}

/* Step 2 – Paramètres */
.composer-params-section{padding:.85rem 0;border-bottom:1px solid var(--border)}
.composer-params-section:last-of-type{border-bottom:none}
.composer-params-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
@media(max-width:900px){.composer-params-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.composer-params-grid{grid-template-columns:1fr}}
.composer-toggle-row{display:flex;align-items:center;gap:1rem;padding:.5rem 0}
.composer-toggle-info{flex:1;min-width:0}
.composer-toggle-label{font-size:13px;font-weight:600;color:#0f172a}
.composer-toggle-desc{font-size:11px;color:#94a3b8;margin-top:2px}
.composer-toggle-switch{flex-shrink:0;position:relative;display:inline-block;width:40px;height:22px;cursor:pointer}
.composer-toggle-switch input{opacity:0;width:0;height:0}
.composer-toggle-thumb{position:absolute;inset:0;background:#e2e8f0;border-radius:11px;transition:background .2s}
.composer-toggle-thumb::before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.composer-toggle-switch input:checked + .composer-toggle-thumb{background:#16a34a}
.composer-toggle-switch input:checked + .composer-toggle-thumb::before{transform:translateX(18px)}

/* Step 3 – Publication cards */
.composer-pub-cards{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.85rem}
.composer-pub-card{display:flex;flex-direction:row;align-items:center;gap:.75rem;padding:.9rem 1rem;border:2px solid var(--border);border-radius:12px;cursor:pointer;background:#fff;transition:all .15s}
.composer-pub-card:hover{border-color:#94a3b8}
.composer-pub-card.is-active{border-color:#16a34a;background:#f0fdf4}
.composer-pub-card-radio{width:18px;height:18px;border-radius:50%;border:2px solid #cbd5e1;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .15s}
.composer-pub-card.is-active .composer-pub-card-radio{border-color:#16a34a;background:#16a34a}
.composer-pub-card.is-active .composer-pub-card-radio::after{content:"";display:block;width:7px;height:7px;border-radius:50%;background:#fff}
.composer-pub-card-icon-wrap{width:36px;height:36px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#64748b;transition:all .15s}
.composer-pub-card.is-active .composer-pub-card-icon-wrap{background:#dcfce7;color:#16a34a}
.composer-pub-card-text{flex:1;min-width:0}
.composer-pub-card-title{font-size:13px;font-weight:700;color:#0f172a;line-height:1.3}
.composer-pub-card-desc{font-size:11px;color:#94a3b8;line-height:1.4;margin-top:2px}
.composer-pub-info{display:flex;align-items:center;gap:.75rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:.85rem 1rem;margin-bottom:.75rem}
.composer-pub-info-icon-wrap{width:36px;height:36px;border-radius:50%;background:#dcfce7;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#16a34a}
.composer-pub-info-title{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;margin-bottom:.2rem;color:#16a34a}
.composer-pub-info-desc{font-size:12.5px;color:#374151;line-height:1.45}
.composer-pub-info--prog{background:#fefce8;border-color:#fde68a}
.composer-pub-info--prog .composer-pub-info-icon-wrap{background:#fef3c7;color:#d97706}
.composer-pub-info--prog .composer-pub-info-title{color:#d97706}

/* Step 3 – Résumé cards */
.composer-summary-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem;margin-bottom:1rem}
@media(max-width:900px){.composer-summary-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.composer-summary-cards{grid-template-columns:repeat(2,1fr)}}
.composer-summary-card{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:.6rem .75rem;display:flex;align-items:flex-start;gap:.5rem}
.composer-summary-card-icon{color:#94a3b8;flex-shrink:0;margin-top:1px}
.composer-summary-card-body{min-width:0}
.composer-summary-card-lbl{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;margin-bottom:2px}
.composer-summary-card-val{font-size:12px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Step 3 – Footer note */
.composer-pub-footer{display:flex;align-items:center;gap:.4rem;font-size:11px;color:#94a3b8;line-height:1.5;margin:.25rem 0 .75rem;font-style:italic}

/* ========================================================================
 * IAM local « Accès & Sécurité » (épic WU7–WU10) – réutilise la charte
 * Configurateur (.cfg-card, .cfg-subtabs, .btn). Palette badges locale.
 * ====================================================================== */
.iam-gate{display:flex;justify-content:center;padding:2rem 0}
/* L'attribut [hidden] doit l'emporter sur les display: des classes IAM
   (même spécificité que [hidden] UA → la dernière règle gagnerait). */
#iam-gate[hidden],#iam-app[hidden],.iam-pane[hidden],.iam-panel[hidden],
.iam-gate[hidden]{display:none}
.iam-gate-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.6rem;width:420px;max-width:100%;box-shadow:var(--shadow-sm)}
.iam-gate-card--wide{width:560px}
.iam-gate-h{display:flex;gap:.7rem;align-items:flex-start;margin-bottom:1.2rem}
.iam-gate-card label{display:block;font-size:12px;font-weight:600;color:var(--text2);margin:.9rem 0 .3rem}
.iam-gate-card input[type=email],.iam-gate-card input[type=text],.iam-gate-card input[type=password]{
  width:100%;border:1px solid var(--border2);border-radius:var(--radius-sm);padding:.55rem .7rem;font:inherit;background:var(--bg2)}
.iam-gate-card .cfg-key-current input{border:none;padding:.55rem .7rem}
.iam-gate-btn{width:100%;justify-content:center;margin-top:1.1rem}
.iam-gate-sub{font-size:12.5px;color:var(--text2);margin:.2rem 0 1rem}
.iam-gate-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.2rem}
/* WU14 – règles CSS Phase 1 retirées (`.iam-otp*`, `.iam-qr*`, `.iam-mustchange`)
   suite au retrait du flow MFA TOTP + bannière mot de passe temporaire. */

.iam-pane[hidden]{display:none}
.iam-grid{display:flex;gap:1.25rem;align-items:flex-start}
.iam-grid>.cfg-card{flex:1;min-width:0}
.iam-filters{display:flex;gap:.6rem;margin:.4rem 0 1rem;flex-wrap:wrap;align-items:center}
/* width:auto pour vaincre la règle globale input/select{width:100%} qui,
   en flex-wrap, empilait chaque champ sur sa propre ligne. */
.iam-filters input,.iam-filters select{width:auto;border:1px solid var(--border2);
  border-radius:var(--radius-sm);padding:.5rem .7rem;font:inherit;font-size:13px;background:var(--bg2)}
.iam-filters input{flex:1 1 220px;min-width:200px}
.iam-filters select{flex:0 0 auto}
.iam-table-wrap{overflow-x:auto}
.iam-table{width:100%;border-collapse:collapse}
.iam-table th{text-align:left;font-size:11px;letter-spacing:.05em;color:var(--text2);font-weight:700;
  padding:.85rem .9rem;border-bottom:1px solid var(--border)}
.iam-table td{padding:1rem .9rem;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle}
.iam-table td small{display:block;color:var(--text3);font-size:11.5px;margin-top:.15rem}
tr.iam-row td{padding-top:1.05rem;padding-bottom:1.05rem}
tr.iam-row{cursor:pointer}tr.iam-row:hover{background:var(--bg3)}
.iam-empty{text-align:center;color:var(--text2);padding:1.5rem 0}
.iam-count{color:var(--text2);font-size:11.5px;margin-top:.9rem}
.iam-u{display:flex;gap:.6rem;align-items:center}
.iam-av{width:32px;height:32px;border-radius:50%;background:var(--brand-soft);color:var(--brand-2);
  display:grid;place-items:center;font-weight:700;font-size:11px;flex-shrink:0}
.iam-av.off{background:var(--bg3);color:var(--text2)}
.iam-st{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:.4rem;background:var(--brand);vertical-align:middle}

/* Bandeau fédéré (@secalys-sas/chrome) : le chrome partagé (marque, switcher
   d'apps, menu profil) est porté par <secalys-topbar> en haut de #app-view.
   L'en-tête par écran perd donc son habillage de barre et son chrome dupliqué,
   et ne conserve que le fil d'Ariane + les contrôles d'écran - qui passent ainsi
   dans la zone de contenu (et non plus dans un second bandeau). */
/* Le bandeau fédéré porte des menus déroulants (grille d'apps 3x3, profil) qui
   doivent surplomber tout le contenu : on lui donne un contexte d'empilement
   élevé depuis le light DOM (le panneau, en position absolue dans son shadow,
   passe alors au-dessus du contenu de la page). */
secalys-topbar { position: relative; z-index: 1000; }
.app-header {
  background: none;
  border: none;
  box-shadow: none;
  min-height: 0;
  height: auto;
  padding: 14px 0 4px;
  /* Ne pas créer de contexte d'empilement qui passerait par-dessus les menus
     du bandeau (le fil d'Ariane traversait le panneau 3x3). */
  position: static;
  z-index: auto;
}
.app-header .orbit-switcher,
.app-header .user-menu,
.app-header .app-brand,
.app-header .app-tagline,
.app-header [data-widget="orbit-switcher"],
.app-header [data-widget="user-menu"] { display: none; }
/* Salles : en-tête vidé de son contenu (chrono + boutons dans le bandeau
   fédéré, fil d'Ariane retiré) -> on le collapse pour ne pas réserver une
   bande vide en haut du contenu de la salle. */
.app-header--bare { display: none; }

/* Contrôles de run projetés dans le bandeau fédéré (slot="actions" de
   <secalys-topbar>) : chrono (3 salles) + cluster start/pause/resume/stop/
   réinit (rédaction). Le contenu slotté vit dans le light DOM → stylé ici.
   Une seule ligne, aligné verticalement avec le widget profil (hauteur 34px,
   comme les contrôles d'écran historiques). */
.tb-actions{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:nowrap}
.tb-actions[hidden]{display:none}
.tb-run-buttons{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:nowrap}
.tb-run-buttons[hidden]{display:none}
.tb-actions .btn,
.tb-actions .wall-timer-card{height:34px;box-sizing:border-box}
.tb-actions .btn{padding-top:0;padding-bottom:0}
/* Séparateur vertical cluster ↔ widget profil (même trait que le .top-sep du
   bandeau fédéré). Suit le cluster, donc masqué hors salle avec lui. */
.tb-sep{width:1px;height:28px;background:var(--border);flex:none}
.iam-st.off{background:var(--text3)}.iam-st.red{background:#dc2626}
.iam-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--brand);flex-shrink:0}
.iam-dot.warn{background:#d97706}.iam-dot.red{background:#dc2626}
.iam-bdg{display:inline-block;padding:.14rem .5rem;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.02em}
.iam-bdg--sys{background:#ede9fe;color:#7c3aed}
.iam-bdg--adm{background:#dbeafe;color:#2563eb}
.iam-bdg--ok{background:var(--brand-soft);color:var(--brand-2)}
.iam-bdg--off{background:var(--bg3);color:var(--text2)}
.iam-bdg--warn{background:#fef3c7;color:#92400e}
.iam-kebab{border:none;background:none;cursor:pointer;color:var(--text2);font-size:17px;padding:.1rem .45rem;border-radius:6px;line-height:1}
.iam-kebab:hover{background:var(--bg3)}

.iam-grid--split .iam-panel{display:block}
.iam-panel{width:360px;flex-shrink:0;background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.3rem}
.iam-panel[hidden]{display:none}
.iam-panel-h{display:flex;gap:.7rem;align-items:center;margin-bottom:1rem}
.iam-panel-h .iam-av{width:40px;height:40px;font-size:13px}
.iam-panel-h small{color:var(--text2)}
.iam-panel-h .iam-x{margin-left:auto;border:none;background:none;font-size:17px;color:var(--text2);cursor:pointer}
.iam-kv{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--bg3);font-size:12.5px}
.iam-kv>span:first-child{color:var(--text2);flex-shrink:0}
.iam-kv select{border:1px solid var(--border2);border-radius:6px;padding:.25rem .4rem;font:inherit;font-size:12px}
.iam-qa{margin-top:1.1rem}
.iam-qa h4{font-size:11px;color:var(--text2);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}
.iam-qa .btn{width:100%;justify-content:flex-start;margin-bottom:.45rem}

.iam-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1rem}
.iam-kpi{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.05rem 1.15rem;display:flex;align-items:center;gap:.85rem}
.iam-kpi .n{font-size:24px;font-weight:800;line-height:1.1;display:block}
.iam-kpi .l{color:var(--text2);font-size:12px;margin-top:.15rem;display:block}
.iam-kpi-tx{min-width:0}
.iam-kpi-ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.iam-kpi-ico svg{width:22px;height:22px}
.iam-kpi-ico--green{background:#dcfce7;color:#16a34a}
.iam-kpi-ico--blue{background:#dbeafe;color:#2563eb}
.iam-kpi-ico--orange{background:#ffedd5;color:#ea580c}
.iam-kpi-ico--purple{background:#ede9fe;color:#7c3aed}

/* ── Vue d'ensemble — 2 colonnes (carte état + colonne latérale) ──────────── */
.iam-overview{display:grid;grid-template-columns:1fr 322px;gap:1rem;align-items:start}
.iam-ov-side{display:flex;flex-direction:column;gap:1rem}
.iam-ov-head{display:flex;align-items:center;gap:.7rem;margin-bottom:.7rem;flex-wrap:wrap}
.iam-ov-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;
  background:#dcfce7;color:#16a34a}
.iam-ov-ico svg{width:20px;height:20px}
.iam-ov-ico--brand{background:var(--brand-soft);color:var(--brand-2)}
.iam-ov-ico--blue{background:#dbeafe;color:#2563eb}
.iam-ov-head-tx{flex:1;min-width:150px}

/* Badge de conformité (calculé : pire statut des contrôles). */
.iam-conf{display:inline-flex;align-items:center;gap:.35rem;margin-left:auto;
  padding:.34rem .7rem;border-radius:999px;font-size:12px;font-weight:700;flex-shrink:0}
.iam-conf svg{width:14px;height:14px}
.iam-conf--ok{background:#dcfce7;color:#15803d}
.iam-conf--warn{background:#ffedd5;color:#c2410c}
.iam-conf--bad{background:#fee2e2;color:#b91c1c}

/* Lignes « état de sécurité » — boutons cliquables (drill-in vers Comptes). */
.iam-state-list{display:flex;flex-direction:column}
.iam-srow{display:flex;align-items:center;gap:.8rem;width:100%;padding:.8rem .4rem;font:inherit;
  text-align:left;background:none;border:none;border-bottom:1px solid var(--bg3);cursor:pointer;
  border-radius:8px}
.iam-srow:last-child{border-bottom:none}
.iam-srow:hover{background:var(--bg3)}
.iam-srow:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.iam-srow-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.iam-srow-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.iam-srow-ico svg{width:19px;height:19px}
.iam-srow-tx{flex:1;min-width:0}
.iam-srow-tx b{display:block;font-size:13.5px;font-weight:700;color:var(--text)}
.iam-srow-tx small{display:block;font-size:12px;color:var(--text2);margin-top:.12rem;line-height:1.4}
.iam-srow-val{font-size:13px;font-weight:700;white-space:nowrap}
.iam-srow-chev{display:inline-flex;color:var(--text3);flex-shrink:0}
.iam-srow-chev svg{width:16px;height:16px}
.iam-srow--ok .iam-srow-dot{background:#16a34a}
.iam-srow--ok .iam-srow-ico{background:#dcfce7;color:#16a34a}
.iam-srow--ok .iam-srow-val{color:#15803d}
.iam-srow--warn .iam-srow-dot{background:#ea580c}
.iam-srow--warn .iam-srow-ico{background:#ffedd5;color:#ea580c}
.iam-srow--warn .iam-srow-val{color:var(--text)}
.iam-srow--bad .iam-srow-dot{background:#dc2626}
.iam-srow--bad .iam-srow-ico{background:#fee2e2;color:#dc2626}
.iam-srow--bad .iam-srow-val{color:#b91c1c}

/* Actions rapides — lignes-boutons. */
.iam-qa-list{display:flex;flex-direction:column;gap:.55rem}
.iam-qa-row{display:flex;align-items:center;gap:.7rem;width:100%;padding:.7rem .8rem;font:inherit;
  text-align:left;background:var(--bg2);border:1px solid var(--border);border-radius:12px;cursor:pointer}
.iam-qa-row:hover{background:var(--bg3);border-color:var(--border2)}
.iam-qa-row:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.iam-qa-row-ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex-shrink:0;
  background:var(--brand-soft);color:var(--brand-2)}
.iam-qa-row-ico svg{width:17px;height:17px}
.iam-qa-row-tx{flex:1;min-width:0}
.iam-qa-row-tx b{display:block;font-size:13px;font-weight:700;color:var(--text)}
.iam-qa-row-tx small{display:block;font-size:11.5px;color:var(--text2);margin-top:.05rem}
.iam-qa-row-chev{display:inline-flex;color:var(--text3);flex-shrink:0}
.iam-qa-row-chev svg{width:15px;height:15px}

/* Informations clés — paires clé/valeur. */
.iam-info-list>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.58rem 0;border-bottom:1px solid var(--bg3);font-size:12.5px}
.iam-info-list>div:last-child{border-bottom:none}
.iam-info-list .k{color:var(--text2)}
.iam-link-btn{margin-top:.85rem;padding:.15rem 0;background:none;border:none;cursor:pointer;
  font:inherit;font-size:12.5px;font-weight:700;color:var(--brand-2)}
.iam-link-btn:hover{text-decoration:underline}

@media (max-width:920px){
  .iam-overview{grid-template-columns:1fr}
}

.btn-danger{color:#dc2626;border-color:#fecaca;background:var(--bg2)}
.btn-danger:hover{background:#fee2e2;border-color:#fca5a5}
.btn-danger[disabled]{opacity:.5;cursor:not-allowed}

.iam-menu{position:fixed;background:var(--bg2);border:1px solid var(--border);border-radius:10px;
  box-shadow:var(--shadow-lg);padding:.35rem;display:none;z-index:1200;min-width:210px}
.iam-menu button{display:block;width:100%;text-align:left;border:none;background:none;padding:.5rem .7rem;
  border-radius:7px;font:inherit;font-size:12.5px;cursor:pointer;color:var(--text)}
.iam-menu button:hover{background:var(--bg3)}
.iam-menu button.d{color:#dc2626}
.iam-menu button[disabled]{opacity:.45;cursor:not-allowed}
.iam-menu hr{border:none;border-top:1px solid var(--border);margin:.3rem 0}

.iam-ovl{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;
  justify-content:center;z-index:1300;padding:1rem}
.iam-ovl.on{display:flex}
.iam-modal{background:var(--bg2);border-radius:var(--radius);padding:1.5rem;width:460px;max-width:100%;
  box-shadow:var(--shadow-lg)}
.iam-modal h3{font-size:16px;font-weight:700;margin-bottom:.4rem}
.iam-modal>p{color:var(--text2);font-size:12.5px;margin-bottom:1rem}
.iam-modal label{display:block;font-size:12px;font-weight:600;color:var(--text2);margin:.8rem 0 .3rem}
.iam-modal input[type=text],.iam-modal input[type=email],.iam-modal select{
  width:100%;border:1px solid var(--border2);border-radius:var(--radius-sm);padding:.55rem .7rem;font:inherit}
.iam-chk{display:flex;gap:.5rem;align-items:flex-start;font-size:12.5px;color:var(--text);font-weight:500;margin:.7rem 0}
.iam-chk input{margin-top:.15rem}
.iam-modal-f{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.4rem}
.iam-temp{background:var(--bg3);border:1px dashed var(--border2);border-radius:var(--radius-sm);
  padding:.7rem;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:13.5px;
  display:flex;justify-content:space-between;align-items:center;gap:.6rem;word-break:break-all}

/* ── Modale compte (création / édition) – design 2 colonnes (maquette) ──────
   Une seule modale, mode piloté par JS (create | edit). Sélecteurs préfixés
   .iam-modal--account pour ne PAS toucher les modales confirm/reveal. */
.iam-modal--account{width:920px;max-width:100%;padding:0;max-height:92vh;overflow:auto}
.iam-modal--account .iam-am-head{display:flex;align-items:flex-start;gap:1rem;
  padding:1.5rem 1.75rem 1.25rem;border-bottom:1px solid var(--border)}
.iam-am-ico{width:46px;height:46px;border-radius:50%;background:var(--brand-soft);color:var(--brand-2);
  display:grid;place-items:center;flex-shrink:0}
.iam-am-ico svg{width:22px;height:22px}
.iam-am-head-tx{flex:1;min-width:0}
.iam-modal--account .iam-am-head-tx h3{font-size:22px;font-weight:800;color:var(--text);
  margin:0 0 .25rem;letter-spacing:-.01em}
.iam-modal--account .iam-am-head-tx p{font-size:13.5px;color:var(--text2);margin:0;line-height:1.5}
.iam-am-x{border:none;background:none;color:var(--text2);cursor:pointer;padding:.35rem;
  border-radius:8px;line-height:0;flex-shrink:0}
.iam-am-x:hover{background:var(--bg3);color:var(--text)}
.iam-am-x svg{width:20px;height:20px}

.iam-am-body{display:grid;grid-template-columns:1fr 340px}
.iam-am-main{padding:1.5rem 1.75rem}
.iam-am-side-wrap{padding:1.5rem 1.75rem;border-left:1px solid var(--border);background:#fbfdfc}

.iam-am-field{margin-bottom:1.15rem}
.iam-modal--account .iam-am-field>label{display:flex;align-items:center;gap:.35rem;
  font-size:13.5px;font-weight:700;color:var(--text);margin:0 0 .45rem;
  text-transform:none;letter-spacing:normal}
.iam-am-i{color:var(--text3);display:inline-flex}
.iam-am-i svg{width:14px;height:14px}
.iam-am-ictl{position:relative;display:flex;align-items:center}
.iam-am-ictl>svg{position:absolute;left:.85rem;width:17px;height:17px;color:var(--text3);pointer-events:none}
.iam-modal--account .iam-am-ictl input,
.iam-modal--account .iam-am-ictl select{width:100%;border:1px solid var(--border2);border-radius:10px;
  padding:.7rem .9rem .7rem 2.5rem;font:inherit;font-size:14px;background:var(--bg2);color:var(--text);appearance:none}
.iam-modal--account .iam-am-ictl input:focus,
.iam-modal--account .iam-am-ictl select:focus{outline:none;border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-soft)}
.iam-modal--account .iam-am-ictl input[readonly]{background:var(--bg3);color:var(--text2);cursor:not-allowed}
.iam-am-ictl .iam-am-chev{left:auto;right:.85rem}

.iam-am-sech{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:700;
  color:var(--text);margin:1.6rem 0 .8rem}
.iam-am-sech svg{width:18px;height:18px;color:var(--brand)}
/* Cartes d'options : fond vert très léger, PAS de changement au survol (maquette). */
.iam-modal--account .iam-am-chk{display:flex;align-items:center;gap:.7rem;
  border:1px solid #cdeede;border-radius:12px;padding:.9rem .95rem;margin:0 0 .6rem;
  background:#f0fdf4;cursor:pointer;font-weight:500;
  text-transform:none;letter-spacing:normal}
.iam-am-chk input{position:absolute;opacity:0;width:0;height:0}
.iam-am-chk .box{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--border2);flex-shrink:0;
  display:grid;place-items:center;transition:background .12s,border-color .12s}
.iam-am-chk .box svg{width:13px;height:13px;color:#fff;opacity:0;transition:opacity .12s}
.iam-am-chk input:checked~.box{background:var(--brand);border-color:var(--brand)}
.iam-am-chk input:checked~.box svg{opacity:1}
.iam-am-chk input:focus-visible~.box{box-shadow:0 0 0 3px var(--brand-soft)}
.iam-am-chk-tx{flex:1;min-width:0}
.iam-am-chk-tx b{display:block;font-size:13px;font-weight:600;color:var(--text)}
.iam-am-chk-tx small{display:block;font-size:12px;color:var(--text2);margin-top:.1rem}

.iam-am-card{background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:1.25rem}
.iam-am-card-ico{width:42px;height:42px;border-radius:50%;background:var(--brand-soft);color:var(--brand-2);
  display:grid;place-items:center;margin-bottom:1rem}
.iam-am-card-ico svg{width:20px;height:20px}
.iam-am-card h4{font-size:14px;font-weight:800;color:var(--text);margin:0 0 1rem}
.iam-am-li{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.9rem}
.iam-am-li:last-child{margin-bottom:0}
.iam-am-li>svg{width:17px;height:17px;color:var(--brand-2);flex-shrink:0;margin-top:.1rem}
.iam-am-li b{display:block;font-size:13px;font-weight:700;color:var(--text)}
.iam-am-li small{display:block;font-size:12px;color:var(--text2);margin-top:.1rem}
.iam-am-note{display:flex;gap:.6rem;background:#eff6ff;border:1px solid #dbeafe;border-radius:12px;
  padding:.9rem 1rem;margin-top:1.1rem}
.iam-am-note>svg{width:17px;height:17px;color:#2563eb;flex-shrink:0;margin-top:.1rem}
.iam-am-note-tx b{display:block;font-size:13px;font-weight:700;color:#1e40af;margin-bottom:.2rem}
.iam-am-note-tx span{display:block;font-size:12.5px;color:#1d4ed8;line-height:1.5}

.iam-am-msg{font-size:12.5px;color:#dc2626;margin:.5rem 0 0;min-height:1em}
.iam-am-foot{display:flex;justify-content:space-between;align-items:center;gap:.8rem;
  padding:1.1rem 1.75rem;border-top:1px solid var(--border)}
.iam-am-foot .btn{padding:.6rem 1.15rem;border-radius:10px;font-size:13.5px}
.iam-am-foot .btn svg{width:16px;height:16px}

@media (max-width:820px){
  .iam-modal--account{width:100%}
  .iam-am-body{grid-template-columns:1fr}
  .iam-am-side-wrap{border-left:none;border-top:1px solid var(--border)}
}

.iam-toast{position:fixed;bottom:1.4rem;left:50%;transform:translateX(-50%) translateY(20px);
  background:#0f172a;color:#fff;padding:.6rem 1.1rem;border-radius:999px;font-size:12.5px;font-weight:600;
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:1400}
.iam-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
.iam-toast.err{background:#b91c1c}
.iam-toast.ok{background:var(--brand-2)}

@media (max-width:880px){
  .iam-grid{flex-direction:column}.iam-panel{width:100%}
  .iam-kpis{grid-template-columns:repeat(2,1fr)}
}

/* ========================================================================
 * Widget utilisateur d'en-tête (identité nominative + menu) – WU11/IAM.
 * Remplace le bouton de déconnexion nu. Charte PULSE.
 * ====================================================================== */
.user-menu{position:relative;display:flex;align-items:center}
.user-menu-btn{display:flex;align-items:center;gap:.55rem;background:var(--bg2);
  border:1px solid var(--border);border-radius:10px;padding:.3rem .6rem .3rem .35rem;
  cursor:pointer;font:inherit;color:var(--text);transition:background .12s,border-color .12s}
.user-menu-btn:hover{background:var(--bg3);border-color:var(--border2)}
.user-menu-av{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:grid;
  place-items:center;font-weight:700;font-size:10px;background:var(--brand-soft);
  color:var(--brand-2);text-transform:uppercase}
.user-menu-av--lg{width:40px;height:40px;font-size:14px}
.user-menu-id{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.user-menu-name{font-size:13px;font-weight:700;color:var(--text);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:160px}
.user-menu-role{font-size:11px;color:var(--text2);font-weight:500}
.user-menu-chevron{width:14px;height:14px;color:var(--text2);flex-shrink:0}
.user-menu-dropdown{position:absolute;top:calc(100% + .5rem);right:0;min-width:230px;
  background:var(--bg2);border:1px solid var(--border);border-radius:12px;
  box-shadow:var(--shadow-lg);padding:.5rem;z-index:1200}
.user-menu-dropdown[hidden]{display:none}
.user-menu-head{display:flex;align-items:center;gap:.7rem;padding:.6rem .55rem .65rem}
.user-menu-head .user-menu-name{font-size:14px}
.user-menu-sep{height:1px;background:var(--border);margin:.25rem 0}
.user-menu-item{display:flex;align-items:center;gap:.6rem;width:100%;text-align:left;
  border:none;background:none;padding:.55rem .6rem;border-radius:8px;font:inherit;
  font-size:13px;font-weight:600;color:var(--text);cursor:pointer}
.user-menu-item:hover{background:var(--bg3)}
.user-menu-item--danger{color:#dc2626}
.user-menu-item--danger:hover{background:#fee2e2}
.user-menu-item svg{flex-shrink:0}

/* Erreur terminale SSO (code non réessayable) : message seul, centré, sans
   bouton. Couvre l'écran d'amorçage ; on n'invite PAS à réessayer (l'action
   échouerait à l'identique). Aligné SHIELD/PULSE/PILOT/ALIVE.
   `[hidden]` (spécificité 0,2,0) l'emporte sur la règle d'affichage. */
.sso-terminal-error[hidden]{display:none}
.sso-terminal-error{position:fixed;inset:0;z-index:9999;margin:0;display:flex;
  align-items:center;justify-content:center;padding:24px;text-align:center;
  background:#f1f5f9;color:#991b1b;
  font:500 0.95rem/1.5 'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}
