/* ============================================================
   PULSE // TIGER EYE FLEET
   Design signature : fond charbon plus sombre que le reste du
   War Room, accents ambre/or "tiger", chiffres en monospace,
   badges d'etat nets, micro-animations sobres sur les deltas.
   Prefixe te- partout, aucun style global modifie.
   ============================================================ */

.te-scope {
  --te-bg:        #07090d;
  --te-card:      #0c0f16;
  --te-card-edge: #161b26;
  --te-amber:     #f5b942;
  --te-gold:      #d4a017;
  --te-gold-dim:  rgba(212, 160, 23, 0.14);
  --te-ink:       #e6e2d6;
  --te-ink-dim:   #8b90a0;
  --te-ink-faint: #4b5162;
}

/* .te-root vit desormais DANS le fp-body d'un floating panel standard :
   pas de min-height viewport (le panel scrolle), padding reduit.
   Le zoom du popover ⚙ (body.style.zoom) scale tous les px proportionnellement. */
.te-scope .te-root {
  min-height: 100%;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(212, 160, 23, 0.06), transparent),
    var(--te-bg);
  padding: 10px 12px 24px;
  font-family: var(--font-sans);
  color: var(--te-ink);
}

/* ───────────────────────── Bandeau ───────────────────────── */

.te-scope .te-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.07), rgba(212, 160, 23, 0.02));
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 10px;
}

.te-scope .te-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Oeil de tigre : iris degrade or, pupille fendue */
.te-scope .te-eye {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe9a8 0%, var(--te-amber) 35%, #7a5a0e 80%, #241a04 100%);
  position: relative;
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.45);
}
.te-scope .te-eye::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 14px;
  transform: translate(-50%, -50%);
  background: #0a0603;
  border-radius: 2px;
}

.te-scope .te-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--te-amber);
  text-shadow: 0 0 18px rgba(245, 185, 66, 0.35);
}

.te-scope .te-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
}
.te-scope .te-status-live { color: #22c55e; border: 1px solid rgba(34,197,94,0.4); animation: te-breathe 3s ease-in-out infinite; }
.te-scope .te-status-idle { color: var(--te-ink-dim); border: 1px solid var(--te-card-edge); }
.te-scope .te-status-down { color: #ef4444; border: 1px solid rgba(239,68,68,0.5); animation: te-blink 1.2s step-end infinite; }

@keyframes te-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes te-blink { 50% { opacity: 0.25; } }

/* ───────────────────────── Switches admin ───────────────────────── */

.te-scope .te-switches {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.te-scope .te-switch-block { max-width: 320px; }

.te-scope .te-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--te-ink);
  font-family: var(--font-mono);
  font-size: 11px;
}
.te-scope .te-switch:disabled { opacity: 0.5; cursor: wait; }

.te-scope .te-sw-track {
  width: 34px; height: 18px;
  border-radius: 9px;
  background: #1a1f2b;
  border: 1px solid var(--te-card-edge);
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex: none;
}
.te-scope .te-sw-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--te-ink-faint);
  transition: left 160ms ease, background 160ms ease;
}
.te-scope .te-sw-on .te-sw-track { background: rgba(212, 160, 23, 0.3); border-color: var(--te-gold); }
.te-scope .te-sw-on .te-sw-knob { left: 18px; background: var(--te-amber); box-shadow: 0 0 8px rgba(245, 185, 66, 0.7); }
.te-scope .te-sw-off .te-sw-knob { background: #5a6072; }

.te-scope .te-sw-label { font-weight: 600; letter-spacing: 0.5px; }

.te-scope .te-sw-state {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--te-card-edge);
  color: var(--te-ink-dim);
}
.te-scope .te-sw-on .te-sw-state { color: var(--te-amber); border-color: rgba(212,160,23,0.5); }
.te-scope .te-sw-off .te-sw-state { color: #ef4444; border-color: rgba(239,68,68,0.35); }

.te-scope .te-sw-hint {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--te-ink-faint);
}

/* ───────────────────────── Meta ───────────────────────── */

.te-scope .te-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 2px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--te-ink-dim);
}
.te-scope .te-meta-sep { color: var(--te-ink-faint); }
.te-scope .te-meta-conflict { color: var(--te-amber); font-weight: 700; }

/* ───────────────────────── Grille de slots ───────────────────────── */

.te-scope .te-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 10px;
}

.te-scope .te-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--te-ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
}

.te-scope .te-card {
  background: var(--te-card);
  border: 1px solid var(--te-card-edge);
  border-left: 3px solid var(--te-ink-faint);
  border-radius: 8px;
  padding: 9px 10px 8px;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.te-scope .te-card:hover {
  border-color: rgba(212, 160, 23, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Liseret gauche par etat */
.te-scope .te-card.te-st-notrade    { border-left-color: #3a4152; }
.te-scope .te-card.te-st-watch      { border-left-color: #3b82f6; }
.te-scope .te-card.te-st-entryzone  { border-left-color: #38bdf8; }
.te-scope .te-card.te-st-armed      { border-left-color: var(--te-amber); }
.te-scope .te-card.te-st-paperready { border-left-color: #ffd868; box-shadow: 0 0 14px rgba(245, 185, 66, 0.12); }
.te-scope .te-card.te-st-protect    { border-left-color: #8b5cf6; }
.te-scope .te-card.te-st-tp         { border-left-color: #22c55e; }
.te-scope .te-card.te-st-exit       { border-left-color: #16a34a; }
.te-scope .te-card.te-st-cooldown   { border-left-color: #64748b; }
.te-scope .te-card.te-st-invalid    { border-left-color: #ef4444; }
.te-scope .te-card.te-st-rotation   { border-left-color: #475569; opacity: 0.75; }

.te-scope .te-card-conflict { outline: 1px dashed rgba(245, 185, 66, 0.35); outline-offset: -1px; }

.te-scope .te-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.te-scope .te-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--te-ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badges d'etat */
.te-scope .te-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex: none;
}
.te-scope .te-badge.te-st-notrade    { color: #8b90a0; background: rgba(75, 81, 98, 0.2); }
.te-scope .te-badge.te-st-watch      { color: #60a5fa; background: rgba(59, 130, 246, 0.14); }
.te-scope .te-badge.te-st-entryzone  { color: #38bdf8; background: rgba(56, 189, 248, 0.14); }
.te-scope .te-badge.te-st-armed      { color: var(--te-amber); background: var(--te-gold-dim); }
.te-scope .te-badge.te-st-paperready { color: #100b02; background: var(--te-amber); animation: te-breathe 2s ease-in-out infinite; }
.te-scope .te-badge.te-st-protect    { color: #a78bfa; background: rgba(139, 92, 246, 0.15); }
.te-scope .te-badge.te-st-tp         { color: #22c55e; background: rgba(34, 197, 94, 0.14); }
.te-scope .te-badge.te-st-exit       { color: #86efac; background: rgba(22, 163, 74, 0.18); }
.te-scope .te-badge.te-st-cooldown   { color: #94a3b8; background: rgba(100, 116, 139, 0.16); }
.te-scope .te-badge.te-st-invalid    { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.te-scope .te-badge.te-st-rotation   { color: #64748b; background: rgba(71, 85, 105, 0.16); }

/* Fraicheur source (age serveur, jamais l'heure du fetch navigateur) */
.te-scope .te-fresh {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  flex: none;
}
.te-scope .te-fresh-ok      { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.te-scope .te-fresh-warn    { color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
.te-scope .te-fresh-stale   { color: #ef4444; background: rgba(239, 68, 68, 0.16); animation: te-blink 1.6s step-end infinite; }
.te-scope .te-fresh-unknown { color: var(--te-ink-faint); background: rgba(75, 81, 98, 0.15); }

.te-scope .te-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 5px;
}

.te-scope .te-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--te-ink);
  border-radius: 3px;
  padding: 0 3px;
}

/* Micro-animation delta prix : flash fondu sobre */
.te-scope .te-flash-up   { animation: te-flash-up 900ms ease-out; }
.te-scope .te-flash-down { animation: te-flash-down 900ms ease-out; }
@keyframes te-flash-up   { 0% { background: rgba(34, 197, 94, 0.35); }  100% { background: transparent; } }
@keyframes te-flash-down { 0% { background: rgba(239, 68, 68, 0.35); } 100% { background: transparent; } }

.te-scope .te-score {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--te-gold);
}

/* Sparkline */
.te-scope .te-spark {
  display: block;
  width: 100%;
  height: 26px;
  margin: 4px 0;
}
.te-scope .te-spark polyline { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.te-scope .te-spark-up   { stroke: #22c55e; }
.te-scope .te-spark-down { stroke: #ef4444; }
.te-scope .te-spark-flat { stroke: var(--te-ink-faint); stroke-width: 1; stroke-dasharray: 2 3; }

.te-scope .te-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--te-ink);
}
.te-scope .te-card-stats i {
  font-style: normal;
  color: var(--te-ink-faint);
  margin-right: 5px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.te-scope .te-buys  { color: #22c55e; font-weight: 700; }
.te-scope .te-sells { color: #ef4444; font-weight: 700; }

/* Consensus — badge DISTINCT de l'etat moteur */
.te-scope .te-card-consensus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.te-cs {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.te-cs-veto       { color: #f87171; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }
.te-cs-disagree   { color: #100b02; background: #f5b942; animation: te-breathe 1.6s ease-in-out infinite; }
.te-cs-convergent { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.08); }
.te-cs-ready      { color: #100b02; background: #22c55e; }
.te-cs-missing    { color: #94a3b8; border-color: rgba(148, 163, 184, 0.4); background: rgba(100, 116, 139, 0.1); }

.te-scope .te-op-missing { color: #94a3b8; border-style: dashed; }

/* Statut du consumer bridge (bandeau admin, lecture seule) */
.te-scope .te-bridge-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
}
.te-scope .te-bs-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--te-ink-dim);
}
.te-scope .te-bs-item i {
  font-style: normal;
  color: var(--te-ink-faint);
  letter-spacing: 1px;
  font-size: 8px;
}
.te-scope .te-bs-on   { color: #22c55e; }
.te-scope .te-bs-warn { color: #f59e0b; }
.te-scope .te-bs-off  { color: #ef4444; }
.te-scope .te-bridge-status .te-code {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #8b90a0;
  background: #10141d;
  border: 1px solid #161b26;
  padding: 1px 4px;
  border-radius: 3px;
}
.te-scope .te-card .te-code {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #8b90a0;
  background: #10141d;
  border: 1px solid #161b26;
  padding: 1px 4px;
  border-radius: 3px;
}

.te-scope .te-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(22, 27, 38, 0.9);
}

/* Avis GPT / Claude — toujours visibles, jamais masques */
.te-scope .te-opinions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }

.te-scope .te-op {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid var(--te-card-edge);
  color: var(--te-ink-dim);
}
.te-scope .te-op i { font-style: normal; opacity: 0.7; font-weight: 500; }
.te-scope .te-op-go   { color: #22c55e; border-color: rgba(34, 197, 94, 0.35); }
.te-scope .te-op-no   { color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.te-scope .te-op-wait { color: #94a3b8; border-color: rgba(100, 116, 139, 0.3); }

.te-scope .te-conflict {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #100b02;
  background: var(--te-amber);
  padding: 2px 6px;
  border-radius: 3px;
  animation: te-breathe 1.6s ease-in-out infinite;
}

.te-scope .te-regime {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--te-ink-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex: none;
}

/* ───────────────────────── Etat dormant ───────────────────────── */

.te-scope .te-dormant {
  text-align: center;
  padding: 90px 20px;
}
.te-scope .te-dormant-eye {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #4a4234 0%, #33290f 45%, #171106 85%);
  position: relative;
  opacity: 0.8;
}
.te-scope .te-dormant-eye::before {
  content: '';
  position: absolute;
  left: 6%; right: 6%; top: 46%;
  height: 4px;
  background: #07090d;
  border-radius: 2px;
  box-shadow: 0 -2px 0 rgba(212, 160, 23, 0.2);
}
.te-scope .te-dormant-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--te-gold);
  margin-bottom: 12px;
}
.te-scope .te-dormant-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--te-ink-dim);
}

/* ───────────────────────── Panneau detail ───────────────────────── */

.te-detail { font-family: var(--font-sans); color: #e2e8f0; }

.te-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.te-detail-symbol {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #f5b942;
}
.te-detail-ca {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #4b5162;
  margin-left: auto;
}

/* Bloc provenance OHLCV : source, age, couverture, decision moteur.
   Volontairement sobre — c'est de l'information de tracabilite, pas une alerte. */
.te-prov-box {
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(75, 81, 98, 0.35);
  border-radius: 3px;
  background: rgba(24, 27, 36, 0.4);
}
.te-prov-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4b5162;
  margin-bottom: 4px;
}
.te-prov-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.te-prov-item {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #c8ccd8;
  white-space: nowrap;
}
.te-prov-item i {
  font-style: normal;
  color: #4b5162;
  margin-right: 4px;
}
/* Donnee incomplete ou source inconnue : signale sans dramatiser. */
.te-prov-item.te-prov-warn { color: #f5b942; }
/* Fournisseur degrade : donnees ENCORE valides, acquisition en echec. Distinct du
   jaune d'alerte (donnees perimees) — un signal reste exploitable dans cet etat. */
.te-prov-item.te-prov-degraded { color: #7cc4ff; }

/* Liens vers les terminaux de trading externes. Places apres .te-detail-ca
   (qui porte margin-left:auto) pour rester colles a droite de l'en-tete. */
.te-detail-links {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.te-ext-link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
  color: #8b90a0;
  background: rgba(75, 81, 98, 0.2);
  border: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.te-ext-link:hover,
.te-ext-link:focus-visible {
  color: #f5b942;
  border-color: rgba(245, 185, 66, 0.5);
}

/* Reutilise les classes te-badge / te-fresh dans le panneau (hors #view-tiger-eye-fleet) */
.te-detail .te-badge, .te-detail .te-fresh, .te-detail .te-conflict, .te-detail .te-regime {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
}
.te-detail .te-badge.te-st-notrade    { color: #8b90a0; background: rgba(75,81,98,0.2); }
.te-detail .te-badge.te-st-watch      { color: #60a5fa; background: rgba(59,130,246,0.14); }
.te-detail .te-badge.te-st-entryzone  { color: #38bdf8; background: rgba(56,189,248,0.14); }
.te-detail .te-badge.te-st-armed      { color: #f5b942; background: rgba(212,160,23,0.14); }
.te-detail .te-badge.te-st-paperready { color: #100b02; background: #f5b942; }
.te-detail .te-badge.te-st-protect    { color: #a78bfa; background: rgba(139,92,246,0.15); }
.te-detail .te-badge.te-st-tp         { color: #22c55e; background: rgba(34,197,94,0.14); }
.te-detail .te-badge.te-st-exit       { color: #86efac; background: rgba(22,163,74,0.18); }
.te-detail .te-badge.te-st-cooldown   { color: #94a3b8; background: rgba(100,116,139,0.16); }
.te-detail .te-badge.te-st-invalid    { color: #f87171; background: rgba(239,68,68,0.15); }
.te-detail .te-badge.te-st-rotation   { color: #64748b; background: rgba(71,85,105,0.16); }
.te-detail .te-fresh-ok      { color: #22c55e; background: rgba(34,197,94,0.12); }
.te-detail .te-fresh-warn    { color: #f59e0b; background: rgba(245,158,11,0.14); }
.te-detail .te-fresh-stale   { color: #ef4444; background: rgba(239,68,68,0.16); }
.te-detail .te-fresh-unknown { color: #4b5162; background: rgba(75,81,98,0.15); }
.te-detail .te-conflict { color: #100b02; background: #f5b942; }
.te-detail .te-regime { color: #4b5162; text-transform: uppercase; }

.te-detail-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 8px;
}
.te-detail-stats i {
  font-style: normal;
  color: #4b5162;
  font-size: 9px;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.te-detail-opinions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid #161b26;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.te-detail-opinions b { color: #f5b942; font-size: 10px; margin-right: 4px; }
.te-detail-conflict { border-color: rgba(245, 185, 66, 0.5); }
.te-detail-op { display: flex; align-items: center; gap: 6px; }

.te-detail-codes { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.te-code {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8b90a0;
  background: #10141d;
  border: 1px solid #161b26;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.te-detail-baseline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8b90a0;
  margin-bottom: 8px;
}
.te-detail-baseline i { font-style: normal; color: #4b5162; letter-spacing: 1px; }
.te-detail-baseline b { color: #e2e8f0; font-weight: 600; }

.te-detail-chart-wrap { margin-bottom: 8px; }
.te-detail-chart {
  height: 260px;
  border: 1px solid #161b26;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.te-detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 40px;
  color: #4b5162;
  font-family: var(--font-mono);
  font-size: 11px;
}

.te-detail-levels { margin-bottom: 8px; }
.te-levels-title, .te-detail-journal-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4a017;
  margin-bottom: 5px;
}
.te-levels-rows { display: flex; flex-direction: column; gap: 2px; }
.te-lv {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #0c0f16;
  border-left: 2px solid #3a4152;
}
.te-lv-entry { border-left-color: #38bdf8; }
.te-lv-sl    { border-left-color: #ef4444; }
.te-lv-tp    { border-left-color: #22c55e; }
.te-lv-label { width: 100px; color: #8b90a0; font-size: 9px; letter-spacing: 1px; }
.te-lv-val   { flex: 1; color: #e2e8f0; }
.te-lv-pct   { color: #4b5162; font-size: 10px; }

.te-detail-journal {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.te-ev {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #0c0f16;
}
.te-ev-time { color: #4b5162; flex: none; }
.te-ev-type { color: #f5b942; font-weight: 700; letter-spacing: 0.5px; flex: none; }
.te-ev-detail { color: #8b90a0; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Ajouts v2 — fusion contrat durci (message 22)
   ============================================================ */

/* Badge PAPER ONLY permanent */
.te-scope .te-paper-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Etat control en lecture seule (non admin ou non confirme) */
.te-scope .te-ctrl-ro-wrap { display: flex; gap: 14px; align-items: center; }
.te-scope .te-ctrl-ro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.te-scope .te-ctrl-ro i { font-style: normal; color: var(--te-ink-faint); letter-spacing: 1px; font-size: 9px; }
.te-scope .te-ro-on  { color: var(--te-amber); }
.te-scope .te-ro-off { color: #8b90a0; }

.te-scope .te-unconfirmed, .te-detail .te-unconfirmed {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ef4444;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  padding: 2px 5px;
  border-radius: 3px;
  animation: te-blink 1.6s step-end infinite;
}

/* entryTransitionsEnabled : verrouille, lecture seule */
.te-scope .te-ctrl-locked {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--te-ink-dim);
  opacity: 0.85;
}
.te-scope .te-ctrl-locked i { font-style: normal; color: var(--te-ink-faint); letter-spacing: 1px; }
.te-scope .te-ctrl-locked b { color: #8b90a0; }
.te-scope .te-lock {
  width: 9px; height: 11px;
  border: 1px solid var(--te-ink-faint);
  border-radius: 2px;
  position: relative;
  flex: none;
}
.te-scope .te-lock::before {
  content: '';
  position: absolute;
  left: 1px; top: -5px;
  width: 5px; height: 5px;
  border: 1px solid var(--te-ink-faint);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.te-scope .te-locked-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--te-ink-faint);
  border: 1px solid var(--te-card-edge);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Bandeau erreur API */
.te-scope .te-apierror {
  margin: 0 2px 12px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.07);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #f87171;
}

/* Badge d'entree — vert UNIQUEMENT si les 6 conditions contrat sont vraies */
.te-scope .te-entry-ready, .te-detail .te-entry-ready {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #05130a;
  background: #22c55e;
  padding: 2px 7px;
  border-radius: 3px;
  animation: te-breathe 1.8s ease-in-out infinite;
}
.te-scope .te-entry-blocked, .te-detail .te-entry-blocked {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f87171;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Variation m5 sur la carte */
.te-scope .te-change {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.te-scope .te-chg-up   { color: #22c55e; }
.te-scope .te-chg-down { color: #ef4444; }

.te-scope .te-meta-ready { color: #22c55e; font-weight: 700; }

/* Fraicheur double (prix / liquidite) */
.te-scope .te-fresh2, .te-detail .te-fresh2 { letter-spacing: 0.3px; white-space: nowrap; }

/* Barre timeframe + meta OHLCV du detail */
.te-detail-tf {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.te-tf-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #8b90a0;
  background: #0c0f16;
  border: 1px solid #161b26;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
}
.te-tf-btn.active { color: #f5b942; border-color: rgba(212, 160, 23, 0.5); }
.te-ohlcv-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4b5162;
}
.te-ohlcv-meta .te-ro-on  { color: #22c55e; }
.te-ohlcv-meta .te-ro-off { color: #ef4444; }

/* Niveau no-chase */
.te-lv-nochase { border-left-color: #94a3b8; }

/* Boite entree bloquee + note avis */
.te-blocked-box {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #f87171;
  line-height: 1.5;
}
.te-note-muted {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4b5162;
}
.te-detail-evidence .te-detail-codes { display: flex; gap: 5px; flex-wrap: wrap; }

/* ============================================================
   Separation stricte : opportunites verifiees / dossiers analyses
   ============================================================ */
.te-lane {
  margin-top: 10px;
  border-top: 1px solid #161b26;
  padding-top: 10px;
}
.te-lane:first-of-type {
  margin-top: 4px;
  border-top: 0;
  padding-top: 0;
}
.te-lane-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 4px 8px;
  font-family: var(--font-mono);
}
.te-lane-head b {
  color: #d4a017;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.te-lane-head span {
  color: #596172;
  font-size: 9px;
}
.te-lane-dossiers {
  border-top-color: rgba(94, 106, 128, 0.35);
}
.te-dossiers-status {
  margin: 0 4px 8px;
  color: #7d8799;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.7px;
}
.te-dossiers-error { color: #f87171; }
.te-dossiers-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.te-dossier-card {
  border-color: rgba(94, 106, 128, 0.34);
  background: linear-gradient(145deg, rgba(18, 23, 33, 0.96), rgba(10, 13, 19, 0.98));
  opacity: 0.92;
  cursor: default;
}
.te-dossier-card:hover {
  transform: none;
  border-color: rgba(94, 106, 128, 0.5);
  box-shadow: none;
}
.te-dossier-warning {
  margin: 7px 0;
  border: 1px solid rgba(245, 185, 66, 0.2);
  border-radius: 4px;
  padding: 5px 7px;
  color: #d5aa55;
  background: rgba(212, 160, 23, 0.05);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.te-dossier-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.te-dossier-facts span {
  min-width: 0;
  color: #929bad;
  font-family: var(--font-mono);
  font-size: 9px;
}
.te-dossier-facts i {
  display: block;
  margin-bottom: 2px;
  color: #4f5869;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.6px;
}
.te-dossier-facts b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c4cad4;
  font-weight: 600;
}
.te-dossier-fresh {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
}
.te-dossier-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.te-dossier-reasons span {
  border: 1px solid #202737;
  border-radius: 3px;
  padding: 2px 4px;
  color: #778196;
  background: #0c1018;
  font-family: var(--font-mono);
  font-size: 7px;
}
.te-dossier-source {
  margin-top: 7px;
  color: #495264;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.5px;
}

/* ============================================================
   Ajouts — hebergement en floating panel standard (⚙ complet)
   ============================================================ */

/* Fond de la vue quand la fenetre fleet est le panel flottant */
#view-tiger-eye-fleet .te-viewhost {
  min-height: calc(100vh - var(--topbar-height, 72px));
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(212, 160, 23, 0.05), transparent),
    #07090d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
}
#view-tiger-eye-fleet .te-viewhost-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #d4a017;
}
#view-tiger-eye-fleet .te-viewhost-note {
  font-size: 10px;
  color: #4b5162;
  text-align: center;
  line-height: 1.7;
}
#view-tiger-eye-fleet .te-reopen {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5b942;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
}
#view-tiger-eye-fleet .te-reopen:hover { background: rgba(212, 160, 23, 0.2); }

/* Fallback A-/A+ : echelle additionnelle --te-scale (zoom), persistee
   localStorage, multiplicative avec le fontSize du popover ⚙ du panel */
#view-tiger-eye-fleet .te-scale-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4b5162;
}
#view-tiger-eye-fleet .te-scale-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #8b90a0;
  background: #0c0f16;
  border: 1px solid #161b26;
  border-radius: 4px;
  width: 30px;
  height: 24px;
  cursor: pointer;
}
#view-tiger-eye-fleet .te-scale-btn:hover { color: #f5b942; border-color: rgba(212, 160, 23, 0.4); }

/* ============================================================
   Ajouts — detail : chart redimensionnable + mode Market Cap
   ============================================================ */

/* Layout flex : le chart prend toute la hauteur disponible du panel,
   les cases d'infos suivent en dessous ; le fp-body scrolle si besoin.
   Sous zoom ⚙ (body.style.zoom), toutes les dimensions px zooment ensemble. */
.te-detail {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.te-detail-info,
.te-detail-tf,
.te-detail-levels,
.te-detail-evidence { flex: none; }

.te-detail-chart-wrap {
  flex: 1 1 auto;
  display: flex;
  min-height: 220px;
  margin-bottom: 8px;
}
.te-detail-chart {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
  border: 1px solid #161b26;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

/* Toggle PRIX / MC + hint honnetete */
.te-mode-sep {
  width: 1px;
  height: 16px;
  background: #161b26;
  margin: 0 4px;
}
.te-tf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.te-mode-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #4b5162;
  white-space: nowrap;
}

/* ============================================
   Journal analyste — fenetre flottante dediee
   ============================================ */
.te-jrn { display: flex; flex-direction: column; height: 100%; gap: 8px; padding: 8px; }
.te-jrn-stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline;
  padding: 8px 10px; border: 1px solid rgba(75,81,98,0.35); border-radius: 4px;
  background: rgba(24,27,36,0.4); }
.te-jrn-kpi { font-family: var(--font-mono); font-size: 11px; }
.te-jrn-kpi i { font-style: normal; color: #4b5162; margin-right: 5px; letter-spacing: 1px; }
.te-jrn-kpi b { font-size: 14px; }
.te-jrn-note { font-family: var(--font-mono); font-size: 9px; color: #4b5162; margin-left: auto; }
.te-jrn-tabs { display: flex; gap: 4px; }
.te-jrn-tab { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 3px; cursor: pointer; color: #8b90a0;
  background: rgba(75,81,98,0.15); border: 1px solid transparent; }
.te-jrn-tab:hover { color: #c8ccd8; }
.te-jrn-tab.te-jrn-on { color: #f5b942; border-color: rgba(245,185,66,0.5); background: rgba(245,185,66,0.08); }
.te-jrn-body { flex: 1; overflow: auto; }
.te-jrn-sec { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: #4b5162; margin: 10px 0 4px; }
.te-jrn-t { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.te-jrn-t th { text-align: left; font-weight: 400; color: #4b5162; padding: 5px 7px;
  border-bottom: 1px solid rgba(75,81,98,0.35); white-space: nowrap; position: sticky; top: 0;
  background: #12151d; }
.te-jrn-t td { padding: 5px 7px; border-bottom: 1px solid rgba(75,81,98,0.18); white-space: nowrap;
  color: #c8ccd8; }
.te-jrn-t tr:hover td { background: rgba(75,81,98,0.08); }
.te-jrn-warn { color: #f5b942; }
.te-jrn-mut { color: #8b90a0; }
.te-jrn-pos { border-color: rgba(34,197,94,0.4) !important; color: #5ee6a8 !important; }

/* --- Quatre etats vides distincts (politique GPT du 28/07) ---------------- */
/* Une indisponibilite d'analyste n'est PAS un verdict de marche : elle doit se
   voir differemment d'un « aucun setup chaud », sinon Gontran lit un ecran vide
   comme « rien a trader » alors que la cause est « le binome n'est pas cable ». */
.te-scope .te-empty-title {
  font-size: 15px; font-weight: 900; letter-spacing: .08em; margin-bottom: 10px;
}
.te-scope .te-empty-detail {
  font-size: 11px; line-height: 1.6; max-width: 460px; margin: 0 auto;
  color: var(--te-ink-faint);
}
.te-scope .te-empty-code {
  margin-top: 14px; font-size: 9px; letter-spacing: .1em; opacity: .55;
}
/* Analystes absents ou statut inconnu : bleu — un manque d'information. */
.te-scope .te-empty-analystes-indisponibles .te-empty-title { color: #7cc4ff; }
/* Analyse en cours : neutre. */
.te-scope .te-empty-analyse-en-attente .te-empty-title { color: #cbd5e1; }
/* Verdict reel du marche : vert — le systeme a fait son travail. */
.te-scope .te-empty-aucun-setup-chaud .te-empty-title { color: #5ee6a8; }
/* Donnees manquantes : jaune d'alerte, comme le badge PERIME. */
.te-scope .te-empty-donnees-insuffisantes .te-empty-title { color: #f5b942; }

/* Opportunity First — aucune métrique Fleet brute dans la carte. */
.te-opportunity-card {
  cursor: default;
  min-height: 170px;
}
.te-opportunity-reason {
  margin: 12px 0 8px;
  color: #d8dde8;
  font-size: 11px;
  line-height: 1.45;
}
.te-opportunity-analyst,
.te-opportunity-bridge {
  margin-top: 5px;
  color: #8b90a0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.6px;
}
.te-analysis-mode,
.te-consensus,
.te-no-consensus {
  display: inline-block;
  margin: 6px 5px 0 0;
  padding: 3px 6px;
  border: 1px solid rgba(75,81,98,0.55);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
}
.te-consensus { color: #5ee6a8; border-color: rgba(94,230,168,0.45); }
.te-no-consensus { color: #f5b942; border-color: rgba(245,185,66,0.5); }

/* ============================================================
   BARRE D'OUVERTURE FIXE — demande Gontran, 29/07/2026.

   Les boutons d'ouverture etaient au centre du fond de vue : toute fenetre
   flottante les recouvrait, alors qu'ils sont le SEUL chemin vers Journee /
   Journal / Breaches.

   z-index 630 : au-dessus des fenetres flottantes Tiger Eye (610 a 620), pour
   rester cliquable quoi qu'il y ait au premier plan. Reste sous les modales
   globales du War Room, qui montent plus haut.
   ============================================================ */
#view-tiger-eye-fleet .te-launchbar {
  position: fixed;
  top: var(--topbar-height, 72px);
  left: 0;
  right: 0;
  z-index: 630;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(7, 9, 13, 0.97);
  border-bottom: 1px solid rgba(212, 160, 23, 0.35);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
}
#view-tiger-eye-fleet .te-launchbar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #d4a017;
  margin-right: 6px;
}
#view-tiger-eye-fleet .te-launch {
  padding: 6px 14px;
  font-size: 10px;
}

/* Tiger Eye / Dips — observatoire read-only, jamais une surface d'ordre. */
.te-launch-dips {
  border-color: rgba(56, 189, 248, .45) !important;
  color: #7dd3fc !important;
}

.ted-root { height: 100%; display: flex; flex-direction: column; color: #d8e2f2; background: #090d14; }
.ted-warning { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #273044; background: rgba(14, 116, 144, .10); font: 11px/1.35 monospace; }
.ted-warning b { color: #7dd3fc; letter-spacing: .06em; }
.ted-warning span { color: #94a3b8; }
.ted-warning .ted-updated { margin-left: auto; white-space: nowrap; }
.ted-main-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.ted-now { border: 1px solid #334155; border-left-width: 5px; border-radius: 8px; background: linear-gradient(135deg, #101722 0%, #0c121c 100%); overflow: hidden; }
.ted-now-watch, .ted-now-none { border-left-color: #f59e0b; }
.ted-now-quote { border-left-color: #38bdf8; }
.ted-now-call { border-left-color: #a855f7; box-shadow: 0 0 22px rgba(168, 85, 247, .12); }
.ted-now-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px 16px; border-bottom: 1px solid #273044; }
.ted-eyebrow { color: #8493a8; font: 700 10px/1 monospace; letter-spacing: .16em; }
.ted-now-head h2 { margin: 6px 0 5px; color: #fbbf24; font: 800 23px/1.1 monospace; letter-spacing: .02em; }
.ted-now-quote .ted-now-head h2 { color: #7dd3fc; }
.ted-now-call .ted-now-head h2 { color: #c084fc; }
.ted-now-head p { max-width: 780px; margin: 0; color: #aab7c9; font: 12px/1.45 monospace; }
.ted-now-count { min-width: 155px; text-align: right; }
.ted-now-count b { display: block; color: #e5edf8; font: 800 30px/1 monospace; }
.ted-now-count span, .ted-now-count small { display: block; margin-top: 4px; color: #8190a5; font: 10px/1.25 monospace; text-transform: uppercase; }
.ted-now-count small { color: #64748b; text-transform: none; }
.ted-candidate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 13px 20px 7px; }
.ted-candidate-head div { display: flex; align-items: baseline; gap: 10px; }
.ted-candidate-head span { color: #6f7e93; font: 9px/1 monospace; letter-spacing: .08em; }
.ted-candidate-head b { color: #dbeafe; font: 800 17px/1 monospace; }
.ted-candidate-head small { color: #8291a7; font: 10px/1.2 monospace; }
.ted-lights { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px; padding: 8px 20px 14px; }
.ted-light { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 10px; border: 1px solid #2a3547; border-radius: 6px; background: rgba(8, 13, 21, .72); }
.ted-light i { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 4px rgba(100, 116, 139, .10); }
.ted-light b, .ted-light span { display: block; font-family: monospace; }
.ted-light b { color: #cbd5e1; font-size: 10px; }
.ted-light span { margin-top: 3px; color: #7f8da2; font-size: 9px; }
.ted-light-ok { border-color: rgba(34, 197, 94, .32); }
.ted-light-ok i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }
.ted-light-ok span { color: #86efac; }
.ted-light-wait { border-color: rgba(245, 158, 11, .35); }
.ted-light-wait i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.ted-light-wait span { color: #fbbf24; }
.ted-light-ko { border-color: rgba(244, 63, 94, .30); }
.ted-light-ko i { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .10); }
.ted-light-ko span { color: #fda4af; }
.ted-blockers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 20px 13px; border-top: 1px solid #273044; color: #8d9bb0; font: 10px/1.3 monospace; }
.ted-blockers b { color: #cbd5e1; }
.ted-blockers span { padding: 3px 6px; border: 1px solid #47303a; border-radius: 999px; color: #fda4af; background: rgba(244, 63, 94, .055); }
.ted-method { margin-top: 12px; padding: 14px; border: 1px solid #273044; border-radius: 8px; background: #0c121c; }
.ted-section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; font-family: monospace; }
.ted-section-title span { color: #7dd3fc; font-size: 10px; letter-spacing: .1em; }
.ted-section-title b { color: #dbe5f3; font-size: 11px; }
.ted-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ted-steps > div { position: relative; min-height: 82px; padding: 11px 10px 10px 43px; border: 1px solid #263144; border-radius: 6px; background: #0e1520; font-family: monospace; }
.ted-steps i { position: absolute; top: 11px; left: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #7dd3fc; background: rgba(14, 165, 233, .12); font-style: normal; font-weight: 800; }
.ted-steps b, .ted-steps span { display: block; }
.ted-steps b { color: #dce6f4; font-size: 10px; }
.ted-steps span { margin-top: 6px; color: #7f8da2; font-size: 9px; line-height: 1.4; }
.ted-research { margin-top: 12px; border: 1px solid #2c374a; border-radius: 8px; background: #0b111a; overflow: hidden; }
.ted-research > summary { display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; list-style: none; font-family: monospace; }
.ted-research > summary::-webkit-details-marker { display: none; }
.ted-research > summary::before { content: '+'; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #3b4a61; border-radius: 4px; color: #7dd3fc; }
.ted-research[open] > summary::before { content: '−'; }
.ted-research > summary span { color: #7dd3fc; font-size: 10px; letter-spacing: .08em; }
.ted-research > summary b { color: #aebbd0; font-size: 10px; }
.ted-research-body { border-top: 1px solid #273044; padding-top: 10px; }
.ted-tests { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 8px; padding: 2px 12px 10px; }
.ted-tests > div { padding: 10px 11px; border: 1px solid #273044; border-radius: 5px; background: #0e1420; font-family: monospace; }
.ted-tests b, .ted-tests span { display: block; }
.ted-tests b { color: #6ee7b7; font-size: 9px; letter-spacing: .05em; }
.ted-tests span { margin-top: 6px; color: #8190a5; font-size: 9px; line-height: 1.4; }
.ted-research-note { margin: 0 12px 10px; padding: 9px 11px; border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, .07); color: #9aa8bb; font: 10px/1.4 monospace; }
.ted-research-note b { color: #fbbf24; }
.ted-no-candidate { padding: 20px; color: #8190a5; font: 11px monospace; }
.ted-strategy { display: grid; grid-template-columns: auto minmax(300px, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #273044; background: rgba(16, 185, 129, .055); font: 10px/1.4 monospace; }
.ted-strategy b { color: #6ee7b7; letter-spacing: .06em; white-space: nowrap; }
.ted-strategy span { color: #cbd5e1; }
.ted-strategy small { color: #7f8ea3; max-width: 320px; }
.ted-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; padding: 10px 12px; }
.ted-kpi { padding: 10px 12px; border: 1px solid #273044; border-radius: 5px; background: #0e1420; }
.ted-kpi b { display: block; color: #e5edf8; font: 700 20px/1 monospace; }
.ted-kpi span { display: block; margin-top: 5px; color: #7f8da3; font: 10px/1.2 monospace; text-transform: uppercase; }
.ted-kpi-missing { border-color: rgba(245, 158, 11, .45); }
.ted-kpi-missing b { color: #fbbf24; }
.ted-holdouts { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 8px; padding: 0 12px 10px; }
.ted-holdout { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #3b3152; border-radius: 5px; background: rgba(94, 63, 140, .10); font: 9px/1.25 monospace; color: #8795aa; }
.ted-holdout b { color: #c4a7ff; font-size: 10px; }
.ted-holdout span:last-child { text-align: right; color: #fbbf24; }
.ted-toolbar { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px; }
.ted-filter { border: 1px solid #2a354b; background: #0d1320; color: #8795aa; padding: 6px 9px; border-radius: 4px; font: 10px monospace; cursor: pointer; }
.ted-filter:hover, .ted-filter.active { color: #7dd3fc; border-color: #0ea5e9; background: rgba(14, 165, 233, .12); }
.ted-updated { margin-left: auto; color: #69788f; font: 10px monospace; }
.ted-table-wrap { min-height: 180px; max-height: 480px; overflow: auto; border-top: 1px solid #20293a; border-bottom: 1px solid #20293a; }
.ted-table { width: 100%; border-collapse: collapse; font: 10px/1.25 monospace; }
.ted-table th { position: sticky; top: 0; z-index: 1; padding: 8px 7px; text-align: left; color: #718198; background: #0c111b; border-bottom: 1px solid #303b50; text-transform: uppercase; }
.ted-table td { padding: 8px 7px; vertical-align: top; border-bottom: 1px solid rgba(42, 53, 75, .55); white-space: nowrap; }
.ted-table tbody tr:hover { background: rgba(56, 189, 248, .04); }
.ted-table small { display: block; margin-top: 4px; color: #68778e; font-size: 9px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.ted-token { padding: 0; border: 0; background: transparent; color: #dbeafe; font: 700 11px monospace; cursor: copy; }
.ted-token:hover { color: #38bdf8; }
.ted-pill { display: inline-block; padding: 3px 5px; border: 1px solid #334155; border-radius: 3px; font-size: 9px; }
.ted-good { color: #4ade80; border-color: rgba(74, 222, 128, .38); }
.ted-watch { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.ted-bad { color: #fb7185; border-color: rgba(251, 113, 133, .4); }
.ted-paper { color: #c084fc; border-color: rgba(192, 132, 252, .4); }
.ted-neutral { color: #94a3b8; }
.ted-missing { color: #fbbf24; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); }
.ted-blocked { color: #fda4af; border-color: rgba(244, 63, 94, .38); }
.ted-legend { padding: 9px 12px; color: #718198; font: 10px/1.35 monospace; }
.ted-legend b { color: #9fb0c7; }
.ted-empty, .ted-loading, .ted-error { padding: 28px; color: #8291a8; text-align: center; font: 12px monospace; }
.ted-error { color: #fb7185; }

@media (max-width: 900px) {
  .ted-now-head { align-items: flex-start; }
  .ted-lights { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .ted-steps { grid-template-columns: repeat(2, 1fr); }
  .ted-summary { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .ted-holdouts { grid-template-columns: 1fr; }
  .ted-holdout { grid-template-columns: 1fr 1fr; }
  .ted-holdout span:last-child { text-align: left; }
  .ted-warning { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ted-warning .ted-updated { margin-left: 0; }
  .ted-strategy { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 620px) {
  .ted-main-scroll { padding: 9px; }
  .ted-now-head { flex-direction: column; }
  .ted-now-count { text-align: left; }
  .ted-candidate-head { align-items: flex-start; flex-direction: column; }
  .ted-lights, .ted-steps, .ted-tests { grid-template-columns: 1fr; }
}
/* La barre etant fixed, elle sort du flux : on rend sa hauteur au contenu. */
#view-tiger-eye-fleet .te-viewhost {
  padding-top: 52px;
}
/* Sur ecran etroit la barre passe sur deux lignes : on garde la marge juste. */
@media (max-width: 720px) {
  #view-tiger-eye-fleet .te-viewhost { padding-top: 92px; }
}


/* 30/07 soir (Gontran) : ARMED et SIGNAL CONFIRME ressortent en VERT,
   distincts du WATCH bleu. */
.te-scope .te-card.te-st-armed      { border-left-color: #22c55e !important; }
.te-scope .te-badge.te-st-armed     { color: #22c55e !important; background: rgba(34, 197, 94, 0.16) !important; }
.te-scope .te-card.te-st-paperready { border-left-color: #16a34a !important; box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
.te-scope .te-badge.te-st-paperready { color: #4ade80 !important; background: rgba(22, 163, 74, 0.22) !important; }
.te-detail .te-badge.te-st-armed     { color: #22c55e !important; background: rgba(34, 197, 94, 0.16) !important; }
.te-detail .te-badge.te-st-paperready { color: #4ade80 !important; background: rgba(22, 163, 74, 0.22) !important; }

/* Ligne calls/age des cartes */
.te-scope .te-card-calls { margin-top: 4px; opacity: 0.95; }
.te-scope .te-card-calls i { color: #8b90a0; }


/* 31/07 : lignes calls/avis des cartes — UNE ligne chacune, jamais de wrap */
.te-scope .te-card-calls,
.te-scope .te-card-avis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  margin-top: 4px;
  color: #aab0c0;
}
.te-scope .te-card-avis.te-avis-neg    { color: #f87171; }
.te-scope .te-card-avis.te-avis-pos    { color: #4ade80; }
.te-scope .te-card-avis.te-avis-neutre { color: #94a3b8; }


/* 31/07 : toggle SIGNAUX SEULS */
.te-scope .te-signaux-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 10px; font-size: 10.5px; letter-spacing: 0.06em;
  color: #4ade80; cursor: pointer; user-select: none;
}
.te-scope .te-signaux-toggle input { accent-color: #22c55e; cursor: pointer; }


/* 31/07 soir : etats de position en vert (suivre le trade d'un coup d'oeil) */
.te-scope .te-card.te-st-tp      { border-left-color: #16a34a !important; box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
.te-scope .te-badge.te-st-tp     { color: #4ade80 !important; background: rgba(22, 163, 74, 0.22) !important; }


/* 31/07 soir : avis expires — visibles mais neutralises visuellement */
.te-scope .te-card-avis.te-avis-expire { color: #565c6b; opacity: 0.75; }


/* 31/07 soir : onglet TRADES du journal */
.te-scope .te-jrn-jour { margin: 10px 0 4px; color: #cdd3e0; letter-spacing: 0.04em; }
.te-scope .te-jrn-trade { padding: 5px 8px; margin: 2px 0; border-left: 3px solid #3a4152; font-size: 11.5px; }
.te-scope .te-jrn-trade.te-trade-gain  { border-left-color: #22c55e; }
.te-scope .te-jrn-trade.te-trade-perte { border-left-color: #ef4444; }
.te-scope .te-jrn-manque { padding: 3px 8px; margin: 1px 0; color: #6b7280; font-size: 10.5px; border-left: 3px dotted #3a4152; }

/* nuit 31/07 : manques 'signal juste' dans l'onglet TRADES */
.te-scope .te-jrn-manque.te-jrn-manque-juste { color: #fbbf24; border-left-color: #f59e0b; }

/* Barre tris/filtres de la grille DOSSIERS (patch 08/08 sparkfiltres2) */
.te-scope .te-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--te-line, #182432); font-size: 10px; color: #64748b; letter-spacing: .05em; }
.te-scope .te-filtres label { display: flex; align-items: center; gap: 5px; }
.te-scope .te-filtres select, .te-scope .te-filtres input { background: #0c1620; border: 1px solid #24384a; color: #cbd5e1; border-radius: 4px; font-size: 10px; padding: 3px 6px; font-family: inherit; }
.te-scope .te-filtres input { width: 64px; }
.te-scope .te-filtres select:focus, .te-scope .te-filtres input:focus { outline: none; border-color: #36536a; }
.te-scope .te-tri-dir { border: 1px solid #24445b; background: #0c1c28; color: #7ddcff; border-radius: 4px; padding: 3px 8px; font-size: 10px; cursor: pointer; }
.te-scope .te-filtre-compte { color: #7ddcff; margin-left: auto; }
.te-scope .te-dossier-card .te-spark { display: block; width: 100%; height: 26px; margin: 4px 0 2px; }

/* (08/08) Jauge bougies X/12 + age du coin — demande Gontran (lecture pre-signal) */
.te-jauge { display: flex; align-items: center; gap: 2px; margin: 3px 0 1px; }
.te-jauge .te-jnum { font: 700 11px/1 monospace; margin-right: 4px; min-width: 34px; }
.te-jauge .te-jseg { display: inline-block; width: 9px; height: 7px; border-radius: 1px; background: #2a2f3a; }
.te-jauge .te-jseg.on { background: currentColor; }
.te-jauge .te-jseg.seuil { box-shadow: inset 0 0 0 1px #ffd76a; }
.te-jauge .te-jseuil { font: 9px/1 monospace; opacity: .65; margin-left: 4px; }
.te-jauge-ok   { color: #35d07f; }
.te-jauge-warn { color: #ffb020; }
.te-jauge-off  { color: #5a6372; }
.te-age { font: 10px/1 monospace; opacity: .8; margin-left: 6px; white-space: nowrap; }

/* (09/08) CALLS PAPIER (shadow) — cartes des journaux d observation */
.te-scope .te-lane-shadow .te-lane-head b { color: #b98aff; }
.te-shadow-toggle { cursor: pointer; user-select: none; }
.te-shadow-toggle input { accent-color: #b98aff; }
.te-shadow-card { border: 1px dashed #6d5a9e; cursor: copy; }
.te-shadow-card .te-shadow-journal { font: 9px/1 monospace; color: #b98aff; border: 1px solid #6d5a9e; border-radius: 3px; padding: 2px 5px; margin-left: auto; margin-right: 6px; }
.te-shadow-card .te-shadow-etat { font-weight: 700; }
.te-shadow-ouvert .te-shadow-etat { background: #3b2d63; color: #cbb2ff; }
.te-shadow-gagnant .te-shadow-etat { background: #123a26; color: #35d07f; }
.te-shadow-perdant .te-shadow-etat { background: #3a1215; color: #ff6b6b; }
.te-shadow-censure .te-shadow-etat { background: #2a2f3a; color: #94a3b8; }
.te-shadow-lignes { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; margin: 6px 0 2px; }
.te-shadow-pnl { font-weight: 700; }
.te-shadow-gagnant .te-shadow-pnl { color: #35d07f; }
.te-shadow-perdant .te-shadow-pnl { color: #ff6b6b; }
.te-shadow-pnl i { font-style: normal; opacity: .6; font-weight: 400; font-size: 10px; }
.te-shadow-meta { font-size: 10px; color: #7c8aa0; margin: 2px 0; }
.te-shadow-contrat { font-size: 8px; letter-spacing: .08em; color: #6d5a9e; margin-top: 5px; }
.te-shadow-corrige { opacity: .75; }
.te-shadow-vide { grid-column: 1 / -1; font-size: 11px; color: #7c8aa0; padding: 14px; }
.te-shadow-chart { width: 100%; height: 54px; display: block; margin: 4px 0 2px; color: #8ea2c0; }
.te-shadow-gagnant .te-shadow-chart { color: #35d07f; }
.te-shadow-perdant .te-shadow-chart { color: #ff6b6b; }
.te-shadow-select { background: #0c1620; border: 1px solid #6d5a9e; color: #cbb2ff; border-radius: 4px; font-size: 9px; padding: 2px 4px; margin-left: 8px; }

/* (V6) Badge FILTRE OK — porteurs sains. Taux de POPULATION (1097 coins),
   pas une probabilite par coin : le libelle dit "historique". */
.te-filtre-ok{display:flex;align-items:center;gap:6px;margin:4px 0 2px}
.te-filtre-pastille{padding:1px 6px;border-radius:3px;background:#0d2a1a;
  border:1px solid #1f7a4d;color:#4ade80;font-size:9px;font-weight:900;
  letter-spacing:.4px;white-space:nowrap}
.te-filtre-note{font-size:8px;color:#6b8199;line-height:1.2}
.te-filtre-ko{margin:4px 0 2px;font-size:8px;color:#c2766f;line-height:1.2}
.te-filtre-ml{font-size:8px;color:#4a5b6d;margin-bottom:2px}
/* 2026-08-12 (Gontran) : badge convergence KOL x Tiger, distinct et visible ("gros signal") */
.te-convergence-kol{font-size:9px;font-weight:700;color:#1a1200;background:#f7c948;
  border:1px solid #d4a017;border-radius:3px;padding:2px 6px;margin:3px 0 2px;
  display:inline-block;letter-spacing:.2px}
