body.cot-page {
  font-family: 'Inter', sans-serif;
  background: #0F1F3D;
  color: #CBD5E1;
  --cot-text-muted: #94A3B8;
  min-height: 100vh;
  margin: 0;
  color-scheme: dark;
}
html:has(body.cot-page) {
  background: #0F1F3D;
  color-scheme: dark;
}

.cot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #1e3a5f;
  position: sticky;
  top: 0;
  background: #0F1F3D;
  z-index: 50;
}

.cot-nav a.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.cot-nav a.brand span { color: #D4AF37; }

.cot-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cot-nav-links a {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
}

.cot-nav-links a:hover,
.cot-nav-links a:focus-visible {
  color: #D4AF37;
  outline: none;
}

.cot-main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
body.cot-page .cot-main.cot-entry {
  max-width: none;
  width: auto;
  margin-left: var(--onelix-nav-w);
  margin-right: 0;
  box-sizing: border-box;
  padding: 8px 32px 64px;
}
@media (max-width: 1024px) {
  body.cot-page .cot-main.cot-entry {
    margin-left: 0;
  }
}

.cot-panel {
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cot-tabs { display: flex; gap: 8px; margin-bottom: 16px; }

.cot-tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.cot-tab:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

.cot-tab.active {
  background: #1E6FD9;
  color: #fff;
  border-color: #1E6FD9;
}

.cot-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.cot-stat label {
  font-size: 11px;
  color: var(--cot-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
}

.cot-stat strong { font-size: 1.1rem; color: #fff; }

.cot-chart-box { height: 220px; position: relative; }
.cot-chart-box--main { height: 200px; }
.cot-chart-stack { display: flex; flex-direction: column; gap: 8px; }

.cot-visitor-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #1e3a5f, #0F1F3D);
  border: 1px solid #D4AF37;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.cot-visitor-banner a {
  background: #D4AF37;
  color: #0F1F3D;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}

.cot-table-wrap { overflow-x: auto; }

table.cot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.cot-table th,
table.cot-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1e3a5f;
  text-align: right;
  white-space: nowrap;
}

table.cot-table thead th {
  position: sticky;
  top: 0;
  background: #111c32;
  z-index: 1;
}

table.cot-table th:first-child,
table.cot-table td:first-child { text-align: left; }

table.cot-table th {
  color: var(--cot-text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.cot-delta-pos { color: #86efac; }
.cot-delta-neg { color: #fca5a5; }

.cot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cot-card {
  display: flex;
  align-items: stretch;
  gap: 2px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-left: 3px solid var(--cat-color, #1e3a5f);
  border-radius: 10px;
  color: inherit;
  width: 100%;
  user-select: none;
}

.cot-card-main {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 12px 8px 12px 14px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.cot-card-swatch {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-self: center;
  margin: 0 10px 0 4px;
  padding: 0;
  border: 1.5px solid var(--cat-color, #D4AF37);
  border-radius: 4px;
  background: transparent;
  color: var(--cat-color, #D4AF37);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cot-card-swatch.is-on {
  background: var(--cat-color, #D4AF37);
  color: transparent;
}

.cot-card-swatch.is-locked {
  cursor: default;
  opacity: 0.75;
}

.cot-card:hover { border-color: #2d5a8e; }
.cot-card-main:focus-visible,
.cot-card-swatch:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

.cot-card.active {
  border-color: var(--cat-color, #D4AF37);
  box-shadow: 0 0 0 1px var(--cat-color, #D4AF37);
}

.cot-card-focus {
  border-left-width: 4px;
}

.cot-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #94a3b8;
}

.cot-card .cot-card-net {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.cot-card .cot-card-meta {
  font-size: 11px;
  color: var(--cot-text-muted);
  margin-top: 4px;
}

.cot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.cot-chip {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cot-chip.active { background: #1E6FD9; color: #fff; border-color: #1E6FD9; }
.cot-chip:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

.cot-caption {
  font-size: 11px;
  color: var(--cot-text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.cot-skeleton {
  height: 16px;
  background: linear-gradient(90deg, #1e3a5f 0%, #2d5a8e 50%, #1e3a5f 100%);
  background-size: 200% 100%;
  animation: cotPulse 1.2s ease-in-out infinite;
  border-radius: 4px;
  margin: 8px 0;
}

@keyframes cotPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.cot-loading[hidden],
#cot-error[hidden],
#cot-empty[hidden],
.cot-seg[hidden],
#cot-price-scale[hidden],
.cot-price-status[hidden],
.cot-chip[hidden],
.cot-combo-menu[hidden],
.cot-btn-export[hidden],
#compare-app[hidden],
#compare-price-wrap[hidden],
#compare-mouvements[hidden],
#compare-notice[hidden] { display: none !important; }

.cot-btn-export {
  background: transparent;
  border: 1px solid #1e3a5f;
  color: #CBD5E1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cot-btn-export:focus-visible { outline: 2px solid #D4AF37; }

select.cot-select {
  background: #0a1628;
  border: 1px solid #1e3a5f;
  color: #CBD5E1;
  padding: 8px 12px;
  border-radius: 6px;
}

button.cot-btn-gold {
  background: #D4AF37;
  color: #0F1F3D;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

#cot-app[hidden],
#cot-loading[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Dashboard document shell (aligné LIX : scroll page si la fenêtre est trop basse) —— */
html:has(body.cot-dash) {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
}

/*
 * Premier écran = header + .cot-fold (toolbar + grille).
 * Le disclaimer est un frère sous .cot-fold : il faut scroller pour le lire.
 */
body.cot-dash {
  --cot-toolbar-h: 68px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.cot-dash > #onelix-shell-header {
  flex: 0 0 auto;
}

/* Bandeau conversion : masqué sur le dashboard analyste (conservé hub / landing). */
body.cot-dash .cot-shell > .onelix-ws-banner {
  display: none !important;
}

body.cot-dash h1,
body.cot-dash h2,
body.cot-dash h3 {
  line-height: 1.25;
}

body.cot-dash h1.cot-toolbar-title {
  font-size: 15px;
  color: #fff;
}

.cot-shell {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-left: var(--onelix-nav-w);
}

/*
 * Premier écran sous le header ONELIX : hauteur viewport, pas le footer.
 * Indépendant de --cot-toolbar-h (qui dérivait trop court en 16:9 ~1020px).
 */
.cot-fold {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - var(--onelix-header-h, 56px));
  height: calc(100dvh - var(--onelix-header-h, 56px));
  overflow: hidden;
}

.cot-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
  border-bottom: 1px solid #1e3a5f;
  background: #0F1F3D;
  z-index: 40;
}

/* —— Pages COT défilantes (hub, comparer, FAQ) sous le rail ——
   .onelix-doc-main : la FAQ COT vit dans le workspace, donc elle décale ;
   le glossaire unifié est public et ne porte pas l'attribut de workspace. */
body[data-onelix-workspace="cot"] .cot-main,
body[data-onelix-workspace="cot"] .onelix-doc-main,
body[data-onelix-workspace="cot"] .cot-landing-main {
  margin-left: var(--onelix-nav-w);
}
@media (max-width: 1024px) {
  body[data-onelix-workspace="cot"] .cot-main,
  body[data-onelix-workspace="cot"] .onelix-doc-main,
  body[data-onelix-workspace="cot"] .cot-landing-main {
    margin-left: 0;
    padding-bottom: 64px;
  }
}

/* ══════════════════════════════════════════════════════════════
   LANDING COT (/cot/) — rôle conversion, pas navigation.
   Anciennement dupliqué en <style> inline dans cot/index.html.
   ══════════════════════════════════════════════════════════════ */
.cot-landing-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(15, 31, 61, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e3a5f;
}
.cot-landing-nav .brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
}
.cot-landing-nav .brand span { color: #D4AF37; }
.cot-landing-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cot-landing-nav-links a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
}
.cot-landing-nav-links a:hover { color: #fff; }
.cot-landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 860px) {
  .cot-landing-nav-links { display: none; }
}

.cot-landing-main { display: block; }
.cot-hero {
  padding: 56px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.cot-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  line-height: 1.2;
}
.cot-hero-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  color: #94a3b8;
}
.cot-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #D4AF37;
}
.cot-gold { color: #D4AF37; }
.cot-section {
  padding: 0 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.cot-section h2 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cot-section-lead {
  font-size: 14px;
  color: var(--cot-text-muted);
  margin-bottom: 20px;
}
.cot-panel {
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 24px;
}
.cot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cot-btn:hover { opacity: 0.9; }
.cot-btn-primary { background: #D4AF37; color: #0F1F3D; }
.cot-btn-secondary { background: #1E6FD9; color: #fff; }
.cot-btn-outline { border: 1px solid #1e3a5f; color: #CBD5E1; }
.cot-btn-sm { padding: 8px 14px; font-size: 13px; }
.cot-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.cot-cta-tertiary {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cot-cta-tertiary:hover { color: #D4AF37; }
.cot-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cot-schema {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.cot-schema span {
  background: #0a1628;
  border: 1px solid #1e3a5f;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.cot-disclaimer {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  border-left: 3px solid #D4AF37;
  padding-left: 12px;
  margin-top: 24px;
}

.cot-entry {
  padding-top: 0;
  padding-bottom: 64px;
}
.cot-entry-intro {
  position: relative;
  overflow: visible;
  margin: 0 -32px 0;
  padding: 8px 32px 44px;
}
.cot-entry-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: none;
  background: radial-gradient(ellipse 75% 85% at 30% 48%, rgba(30, 111, 217, 0.28) 0%, rgba(30, 111, 217, 0.12) 42%, transparent 70%);
  pointer-events: none;
}
.cot-entry-intro > * { position: relative; }
.cot-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy dates";
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 0;
}
.cot-entry-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #F4CC52;
}
.cot-entry-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  flex-shrink: 0;
}
.cot-entry-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}
.cot-entry-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 58ch;
  color: #94a3b8;
}
.cot-entry-hero__copy { grid-area: copy; }
.cot-date-stage {
  grid-area: dates;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  perspective: 720px;
  margin: 0;
  padding: 6px 0;
  width: max-content;
  max-width: 100%;
  min-width: 22.5rem;
  min-height: 4.75rem;
}
.cot-date-card {
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  text-align: center;
  min-width: 0;
}
.cot-date-card--side {
  flex: 0 0 auto;
  width: max-content;
  min-width: 7.25rem;
  padding: 10px 12px;
  opacity: 0.82;
}
.cot-date-card--asof {
  transform: scale(0.94) rotateY(10deg);
  transform-origin: right center;
  z-index: 0;
}
.cot-date-card--next {
  transform: scale(0.94) rotateY(-10deg);
  transform-origin: left center;
  z-index: 0;
}
.cot-date-card--center {
  flex: 0 0 auto;
  width: max-content;
  min-width: 7.5rem;
  padding: 12px 14px;
  z-index: 1;
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.16) 0%, #111c32 58%);
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.cot-date-card__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.cot-date-card--center .cot-date-card__label {
  color: #D4AF37;
}
.cot-date-card__value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.cot-date-card--center .cot-date-card__value {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}
.cot-entry-caption {
  font-size: 13px;
  color: var(--cot-text-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}
.cot-entry-universe {
  margin: 0;
  padding-top: 0;
}
.cot-entry-report {
  position: relative;
  z-index: 1;
  margin: 0 -32px 40px;
  padding: 36px 32px 40px;
  background: #0a1528;
  border-top: 1px solid #1e3a5f;
  border-bottom: 1px solid #1e3a5f;
  box-shadow: inset 0 18px 28px -24px rgba(0, 0, 0, 0.55);
  --cot-hub-sticky-top: calc(var(--onelix-header-h, 56px) + var(--onelix-banner-h, 0px));
}
.cot-entry-report::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 88px;
  height: 2px;
  background: #D4AF37;
}
.cot-entry-universe h2,
.cot-entry-report h2 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid #D4AF37;
}
.cot-hub-featured {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  min-height: 148px;
}
.cot-hub-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 14px 14px 12px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms, transform 160ms;
}
.cot-hub-tile:hover {
  border-color: rgba(212, 175, 55, .5);
  transform: translateY(-2px);
}
.cot-hub-tile:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-hub-tile__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.cot-hub-tile__mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.cot-hub-tile--equity .cot-hub-tile__mark { background: rgba(96, 165, 250, .16); color: #60a5fa; }
.cot-hub-tile--fx .cot-hub-tile__mark { background: rgba(52, 211, 153, .16); color: #34d399; }
.cot-hub-tile--rates .cot-hub-tile__mark { background: rgba(167, 139, 250, .16); color: #a78bfa; }
.cot-hub-tile--crypto .cot-hub-tile__mark { background: rgba(245, 158, 11, .16); color: #f59e0b; }
.cot-hub-tile--metal .cot-hub-tile__mark { background: rgba(212, 175, 55, .18); color: #D4AF37; }
.cot-hub-tile--ag .cot-hub-tile__mark { background: rgba(196, 165, 116, .18); color: #c4a574; }
.cot-hub-tile--energy .cot-hub-tile__mark { background: rgba(251, 146, 60, .16); color: #fb923c; }
.cot-hub-tile--other .cot-hub-tile__mark { background: rgba(148, 163, 184, .16); color: #94a3b8; }
.cot-hub-tile--cta {
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.18) 0%, #111c32 52%);
  border-color: rgba(212, 175, 55, 0.42);
}
.cot-hub-tile--cta:hover {
  border-color: #D4AF37;
}
.cot-hub-tile--cta .cot-hub-tile__mark {
  background: rgba(212, 175, 55, 0.22);
  color: #D4AF37;
}
.cot-hub-tile__cta-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.cot-hub-tile__cta-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
}
.cot-hub-tile__cta-bar--long {
  width: 88%;
  background: #D4AF37;
}
.cot-hub-tile__cta-bar--short {
  width: 56%;
  background: #1E6FD9;
}
.cot-hub-tile__cta-action {
  margin-top: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #D4AF37;
}
.cot-hub-tile--guide {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(165deg, rgba(30, 111, 217, 0.16) 0%, #111c32 55%);
  border-color: rgba(96, 165, 250, 0.32);
}
.cot-hub-tile--guide:hover {
  border-color: #60a5fa;
}
.cot-hub-tile__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.16);
  pointer-events: none;
}
.cot-hub-tile__watermark svg {
  width: 86%;
  height: 86%;
  display: block;
}
.cot-hub-tile--guide .cot-hub-tile__name {
  position: relative;
  z-index: 1;
  font-size: 16px;
  padding: 0 12px;
}
.cot-hub-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cot-hub-tile__name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.cot-hub-tile__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #0a1628;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  padding: 2px 6px;
}
.cot-hub-tile__cat {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}
.cot-hub-tile__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.cot-hub-tile__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cot-hub-tile__metric-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cot-hub-tile__net {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  color: #e2e8f0;
}
.cot-hub-tile__delta {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
}

.cot-entry-next {
  margin: 48px 0 56px;
  padding-top: 0;
}
.cot-entry-next__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4AF37;
}
.cot-entry-next__title {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.cot-entry-next__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cot-entry-card {
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
  padding: 18px 18px 20px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  transition: border-color 160ms, transform 160ms;
}
.cot-entry-card:hover {
  border-color: rgba(212, 175, 55, .45);
  transform: translateY(-1px);
}
.cot-entry-card:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-entry-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, .10);
}
.cot-entry-card__icon i {
  color: #D4AF37;
  font-size: 14px;
  line-height: 1;
}
.cot-entry-card h3 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cot-entry-card__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: auto;
}
.cot-entry-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}
.cot-entry-card__kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 0 0 10px;
}
.cot-entry-card.cot-entry-card--stats {
  border: 1.5px solid rgba(212, 175, 55, .55);
  background: linear-gradient(165deg, rgba(212, 175, 55, .14) 0%, #111c32 42%);
}
.cot-entry-card.cot-entry-card--stats:hover {
  border-color: #D4AF37;
  transform: none;
}
.cot-entry-card--stats .cot-entry-card__icon {
  background: rgba(212, 175, 55, .18);
}
.cot-entry-copy { margin: 8px 0 56px; }
.cot-entry-copy#faq { scroll-margin-top: 88px; }
.cot-entry-copy h2 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid #D4AF37;
}
.cot-entry-copy h3 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1rem;
  margin: 0 0 8px;
}
.cot-entry-copy p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}
.cot-entry-why {
  padding: 8px 0 8px;
  margin-bottom: 0;
}
.cot-entry-why__lead {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 8px !important;
}
.cot-entry-why__more {
  margin: 0 0 24px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.cot-entry-why__sep {
  color: #64748b;
  font-size: 14px;
}
.cot-entry-why__more a {
  font-size: 14px;
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cot-entry-why__more a:hover { color: #fff; }
.cot-entry-why__more a:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-entry-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.cot-entry-key {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border-radius: 12px;
  border: 1px solid #1e3a5f;
}
.cot-entry-key::before {
  content: "";
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #D4AF37;
  margin-bottom: 10px;
}
.cot-entry-key--situate { background: #111c32; box-shadow: inset 0 2px 0 #D4AF37; }
.cot-entry-key--situate::before { content: "01"; }
.cot-entry-key--flow { background: transparent; }
.cot-entry-key--flow::before { content: "02"; }
.cot-entry-key--not {
  background: #120f18;
  border-color: rgba(248, 113, 113, .28);
}
.cot-entry-key--not::before { content: "03"; }
.cot-entry-key--not h3 { color: #f0b4b4; }
.cot-entry-access {
  margin-top: 0;
  margin-bottom: 0;
  padding: 64px 0 0;
  border-top: 1px solid #1e3a5f;
}
.cot-entry-access__lead {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px !important;
}
.cot-entry-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cot-entry-access .cot-panel--gold { padding: 28px; }
.cot-panel--gold { border-color: rgba(212, 175, 55, .4); }
.cot-panel--gold .cot-btn { margin-top: 16px; }
.cot-grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.cot-entry-faq {
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  margin: 0 0 10px;
  padding: 0;
}
.cot-entry-faq summary {
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1rem;
  padding: 14px 18px;
  list-style: none;
}
.cot-entry-faq summary::-webkit-details-marker { display: none; }
.cot-entry-faq summary::after {
  content: "▸";
  float: right;
  color: #94a3b8;
  font-size: 12px;
  transition: transform 160ms;
}
.cot-entry-faq[open] summary::after { transform: rotate(90deg); }
.cot-entry-faq summary:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: -2px;
  border-radius: 12px;
}
.cot-entry-faq p {
  padding: 0 18px 14px;
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}
.cot-entry-faq-more { margin-top: 16px; }

@media (max-width: 1023px) {
  .cot-entry-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "dates";
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 4px;
  }
  .cot-date-card--asof,
  .cot-date-card--next {
    transform: scale(0.96);
  }
  .cot-date-card--center {
    transform: none;
  }
  .cot-date-stage { justify-content: center; width: 100%; gap: 8px; min-width: 0; }
  .cot-hub-featured { grid-template-columns: repeat(2, 1fr); min-height: 136px; }
  .cot-hub-tile { min-height: 136px; }
}
@media (max-width: 640px) {
  .cot-hub-featured { grid-template-columns: 1fr; }
  .cot-date-stage { gap: 6px; }
  .cot-date-card--center { padding: 10px 12px; }
  .cot-date-card--side { padding: 8px 10px; min-width: 6.75rem; }
}
@media (max-width: 899px) {
  .cot-entry-why { padding-top: 24px; }
  .cot-entry-why-grid,
  .cot-entry-next__grid,
  .cot-entry-access-grid,
  .cot-lix-metrics,
  .cot-lix-visuals,
  .cot-lix-ctas { grid-template-columns: 1fr; }
  .cot-entry-access-grid { gap: 24px; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .cot-entry-card,
  .cot-entry-card:hover { transform: none; }
}

.cot-report-status { font-size: 14px; color: #94a3b8; }
.cot-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
}
.cot-hub-filter { flex: 1 1 260px; max-width: 420px; }
.cot-hub-count { margin: 0; font-size: 13px; color: #94a3b8; }
.cot-compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cot-compare-filter { flex: 1 1 220px; max-width: 280px; }
.cot-report-block { margin-bottom: 24px; }
.cot-report-block h3 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.cot-report-scroll { overflow-x: auto; border: 1px solid #1e3a5f; border-radius: 10px; background: #111c32; }
/* Hub /cot/ — un en-tête collant par tableau (TFF, puis Disagg), hors du scroll horizontal */
.cot-entry-report .cot-report-scroll {
  overflow: visible !important;
  border-radius: 10px;
}
.cot-entry-report .cot-report-head {
  position: sticky;
  top: var(--cot-hub-sticky-top);
  z-index: 8;
  overflow-x: clip;
  overflow-y: visible;
  background: #0a1628;
  border-bottom: 1px solid #1e3a5f;
  box-shadow: 0 1px 0 #1e3a5f;
}
.cot-entry-report .cot-report-head:has(.cot-report-scroll__rail:not([hidden])) {
  border-bottom: none;
  box-shadow: none;
}
.cot-entry-report .cot-report-head::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--cot-sticky-col-1, 8rem);
  background: #0a1628;
  z-index: 10;
  pointer-events: none;
  box-shadow: 2px 0 6px rgba(10, 22, 40, .92);
}
.cot-entry-report .cot-report-head__inner {
  overflow: hidden;
}
.cot-entry-report .cot-report-scroll__hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--cot-text-muted);
}
.cot-entry-report .cot-report-scroll__hint[hidden] {
  display: none;
}
.cot-entry-report .cot-report-scroll__rail {
  overflow-x: auto;
  overflow-y: hidden;
  height: 12px;
  background: #0d1a30;
  border-bottom: 1px solid #1e3a5f;
  box-shadow: 0 1px 0 #1e3a5f;
  scrollbar-width: thin;
  scrollbar-color: #2a4a72 #0d1a30;
}
.cot-entry-report .cot-report-scroll__rail[hidden] {
  display: none;
}
.cot-entry-report .cot-report-scroll__rail-track {
  height: 1px;
}
.cot-entry-report .cot-report-scroll__rail::-webkit-scrollbar {
  height: 10px;
}
.cot-entry-report .cot-report-scroll__rail::-webkit-scrollbar-track {
  background: #0d1a30;
}
.cot-entry-report .cot-report-scroll__rail::-webkit-scrollbar-thumb {
  background: #2a4a72;
  border-radius: 5px;
}
.cot-entry-report .cot-report-scroll__inner {
  overflow-x: auto;
  border-radius: 0 0 10px 10px;
}
.cot-entry-report .cot-report-table--body > thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cot-entry-report .cot-report-table--head {
  table-layout: fixed;
}
.cot-entry-report .cot-report-table--head thead th:first-child {
  z-index: 12;
}
.cot-entry-report .cot-report-table--head thead tr:nth-child(2) th {
  position: relative;
  z-index: 1;
}
.cot-report-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.cot-report-table--wide { min-width: 1480px; }
.cot-report-table th,
.cot-report-table td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid #1e3a5f;
  white-space: nowrap;
}
.cot-report-table thead th {
  background: #0a1628;
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cot-report-table thead tr:first-child th[colspan] {
  text-align: center;
  color: #e2e8f0;
  border-bottom: 1px solid #1e3a5f;
}
.cot-report-table thead th:first-child,
.cot-report-table tbody tr:not(.cot-report-group) th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
}
.cot-report-table td:first-child {
  text-align: left;
}
.cot-report-table tbody tr:not(.cot-report-group) th:first-child {
  background: #111c32;
  box-shadow: 2px 0 6px rgba(10, 22, 40, .92);
}
.cot-report-table thead th:first-child {
  background: #0a1628;
  z-index: 4;
  box-shadow: 2px 0 6px rgba(10, 22, 40, .92);
}
.cot-report-group th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cot-text-muted);
  background: #0d1a30;
  padding-top: 10px;
}
.cot-entry-report .cot-report-group__label {
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 2px 0 6px rgba(10, 22, 40, .92);
}
.cot-entry-report .cot-report-group__pad {
  padding-left: 0;
  padding-right: 0;
  background: #0d1a30;
  border-bottom: 1px solid #1e3a5f;
}
.cot-report-table tbody tr[data-href] { cursor: pointer; }
.cot-report-table tbody tr[data-href]:hover td { background: rgba(212, 175, 55, .07); }
.cot-report-table tbody tr[data-href]:hover > th:first-child {
  background: #141f38;
  box-shadow: 2px 0 6px rgba(10, 22, 40, .95);
}
.cot-report-table tbody th a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cot-report-table tbody th a:hover { color: #D4AF37; }
.cot-report-num { font-variant-numeric: tabular-nums; color: #e2e8f0; }
.cot-report-delta.is-up { color: #34d399; }
.cot-report-delta.is-down { color: #f87171; }

.cot-hub-card { opacity: 1; }
.cot-hub-card.disabled { opacity: 0.55; pointer-events: none; }
.cot-hub-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #1e3a5f;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
}
.cot-hub-badge.live { background: #14532d; color: #86efac; }
.cot-landing-footer {
  border-top: 1px solid #1e3a5f;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--cot-text-muted);
}
.cot-landing-footer a { color: #94a3b8; text-decoration: none; }
.cot-landing-footer a:hover { color: #fff; }

/* Scène LIX — puits full-bleed après la FAQ */
.cot-lix-stage {
  position: relative;
  z-index: 1;
  margin: 0 -32px 40px;
  padding: 36px 32px 48px;
  background: #0a1628;
  overflow: hidden;
}
.cot-lix-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 88px;
  height: 2px;
  background: #D4AF37;
}
.cot-lix-stage::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 420px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, .08) 0%, transparent 70%);
  pointer-events: none;
}
.cot-lix-stage__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}
.cot-lix-stage__kickrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.cot-lix-stage__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 0;
}
.cot-lix-vintage {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 999px;
  padding: 2px 9px;
  cursor: help;
}
.cot-lix-vintage[hidden],
.cot-lix-metric__badge[hidden],
.cot-lix-crash__legend [hidden] {
  display: none !important;
}
.cot-lix-stage h2 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.cot-lix-stage__lead {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 28px;
}
.cot-lix-metrics-vintage {
  margin: 0 0 16px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #FDE68A;
  text-align: center;
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 8px;
}
.cot-lix-metrics-vintage[hidden] {
  display: none !important;
}
.cot-lix-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.cot-lix-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 14px 14px 16px;
  min-height: 118px;
  transition: border-color 160ms;
}
.cot-lix-metric:hover { border-color: rgba(212, 175, 55, .45); }
.cot-lix-metric:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-lix-metric__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cot-lix-metric__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.cot-lix-metric__icon i { font-size: 13px; line-height: 1; }
.cot-lix-metric__icon img { width: 18px; height: 18px; object-fit: contain; }
.cot-lix-metric__icon--lix { background: rgba(212, 175, 55, .16); }
.cot-lix-metric__icon--buffett { background: rgba(96, 165, 250, .16); }
.cot-lix-metric__icon--buffett i { color: #60A5FA; }
.cot-lix-metric__icon--junk { background: rgba(94, 234, 212, .16); }
.cot-lix-metric__icon--junk i { color: #5EEAD4; }
.cot-lix-metric__icon--gold { background: rgba(249, 168, 212, .16); }
.cot-lix-metric__icon--gold i { color: #F9A8D4; }
.cot-lix-metric__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cot-lix-metric__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.cot-lix-metric__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.cot-lix-metric__value {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.cot-lix-metric--hero .cot-lix-metric__value {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}
.cot-lix-metric__badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 7px;
}
.cot-lix-metric__bar {
  display: block;
  height: 4px;
  margin-top: auto;
  border-radius: 99px;
  background: rgba(30, 58, 95, .9);
  overflow: hidden;
}
.cot-lix-metric__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #D4AF37;
}
.cot-lix-visuals {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}
.cot-lix-crash,
.cot-lix-ret {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 18px 18px 20px;
  transition: border-color 160ms;
}
.cot-lix-crash:hover,
.cot-lix-ret:hover { border-color: rgba(212, 175, 55, .45); }
.cot-lix-crash:focus-visible,
.cot-lix-ret:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-lix-crash__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cot-lix-crash__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cot-lix-crash__compare {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D4AF37;
}
.cot-lix-crash__title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.cot-lix-crash__dd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.cot-lix-crash__dd-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cot-lix-crash__dd-value {
  font-size: 13px;
  font-weight: 700;
  color: #F87171;
  font-variant-numeric: tabular-nums;
}
.cot-lix-crash__scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.cot-lix-crash__score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #1e3a5f;
  background: rgba(10, 22, 40, .65);
}
.cot-lix-crash__score--crash {
  border-color: rgba(37, 99, 235, .45);
  background: linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(10, 22, 40, .42));
}
.cot-lix-crash__score--now {
  border-color: rgba(212, 175, 55, .45);
  background: linear-gradient(180deg, rgba(212, 175, 55, .14), rgba(10, 22, 40, .42));
}
.cot-lix-crash__score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cot-lix-crash__score-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #D4AF37;
}
.cot-lix-crash__score--crash .cot-lix-crash__score-kicker {
  color: #93C5FD;
}
.cot-lix-crash__score-value {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  color: #60A5FA;
  font-variant-numeric: tabular-nums;
}
.cot-lix-crash__score-value--gold {
  color: #FDE68A;
}
.cot-lix-crash__score-arrow {
  align-self: center;
  color: #64748b;
  font-size: 1.1rem;
  padding-top: 10px;
}
.cot-lix-crash__legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cot-lix-crash__swatch {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 99px;
  vertical-align: middle;
}
.cot-lix-crash__swatch--high { background: #2563eb; }
.cot-lix-crash__swatch--now { background: #D4AF37; }
.cot-lix-radar-wrap {
  display: block;
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 4px;
}
.cot-lix-radar {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.cot-lix-ret__heading {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 8px;
}
.cot-lix-ret__lead {
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 16px;
}
.cot-lix-ret__section {
  display: block;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #1e3a5f;
  background: rgba(10, 22, 40, .45);
}
.cot-lix-ret__section--return {
  margin-bottom: 12px;
  border-top: 2px solid #34D399;
}
.cot-lix-ret__section--dd {
  border-top: 2px solid #F87171;
}
.cot-lix-ret__section:last-child {
  margin-bottom: 0;
}
.cot-lix-ret__title {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.cot-lix-ret__bars {
  display: grid;
  gap: 8px;
}
.cot-lix-ret__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3.6rem;
  align-items: center;
  gap: 8px;
}
.cot-lix-ret__zone {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}
.cot-lix-ret__track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(30, 58, 95, .9);
  overflow: hidden;
}
.cot-lix-ret__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
}
.cot-lix-ret__fill.is-danger {
  box-shadow: inset 0 0 0 1px #F59E0B;
}
.cot-lix-ret__pct {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #e2e8f0;
}
.cot-lix-ret__pct.is-up { color: #34D399; }
.cot-lix-ret__pct.is-down { color: #F87171; }
.cot-lix-ret__row.is-here .cot-lix-ret__zone {
  color: #D4AF37;
  font-weight: 700;
}
.cot-lix-ret__marker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-left: 4px;
}
.cot-lix-ret__empty {
  font-size: 13px;
  color: #94a3b8;
}
.cot-lix-ctas {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cot-lix-cta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 14px 14px 16px;
  min-height: 88px;
  transition: border-color 160ms;
}
.cot-lix-cta:hover { border-color: rgba(212, 175, 55, .45); }
.cot-lix-cta:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
.cot-lix-cta--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #152238 45%, #2a2418 100%);
  border-color: rgba(212, 175, 55, .55);
  color: #fff;
  align-items: flex-start;
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, .18);
}
.cot-lix-cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(212, 175, 55, .24), transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(15, 31, 61, .5), transparent 60%);
  pointer-events: none;
}
.cot-lix-cta--primary > * {
  position: relative;
  z-index: 1;
}
.cot-lix-cta--primary:hover {
  border-color: #e4c45a;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, .28), 0 0 0 1px rgba(212, 175, 55, .12);
}
.cot-lix-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 175, 55, .10);
}
.cot-lix-cta__icon i {
  color: #D4AF37;
  font-size: 14px;
  line-height: 1;
}
.cot-lix-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cot-lix-cta__title {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.cot-lix-cta--primary .cot-lix-cta__title { color: #FDE68A; }
.cot-lix-cta__body {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}
.cot-lix-cta--primary .cot-lix-cta__body { color: #cbd5e1; }
.cot-lix-cta__note {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(15, 31, 61, .78);
  font-weight: 600;
}
.cot-lix-cta__note[hidden] { display: none !important; }

/* Le bandeau imbriqué hérite déjà du décalage de .cot-shell */
.cot-shell > .onelix-ws-banner {
  flex: 0 0 auto;
  margin-left: 0;
}

/* Pied du dashboard : sous la pliure, hauteur naturelle, pas collé au 1er écran. */
.cot-foot-legal {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  background: #0F1F3D;
  text-align: center;
}

/* Hub, FAQ, Stats: footer is a direct child of body, not of the dashboard shell. */
body.cot-page > .cot-foot-legal,
body.cot-stats-page > .cot-foot-legal {
  margin-top: 24px;
}

.cot-foot-legal__inner {
  padding: 8px 16px 10px;
  max-width: 56rem;
  margin: 0 auto;
}

.cot-foot-legal__visitor {
  display: inline-block;
  margin-bottom: 8px;
}

.cot-visitor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: #F4CC52;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: min(100%, 34rem);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cot-visitor-cta:hover,
.cot-visitor-cta:focus-visible {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
  outline: none;
}

.cot-visitor-cta[hidden] { display: none !important; }

.cot-foot-legal__text {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #94A3B8;
}

.cot-foot-legal__text i {
  margin-right: 4px;
  color: #D4AF37;
  font-size: 10px;
}

.cot-foot-legal__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--cot-text-muted);
}

.cot-foot-legal__links a {
  color: #94A3B8;
  text-decoration: none;
}

.cot-foot-legal__links a:hover {
  color: #E2E8F0;
}

.cot-foot-legal__sep {
  color: var(--cot-text-muted);
}

.cot-rail {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cot-rail-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 6px 8px 8px;
  overflow: auto;
}

.cot-rail-panel__title {
  flex: 0 0 auto;
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cot-rail-premium {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 4px;
  padding: 10px 10px 9px;
  border-radius: 8px;
  border: 2px solid rgba(212, 175, 55, 0.75);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 55%, rgba(15, 31, 61, 0.2) 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cot-rail-premium:hover {
  border-color: #D4AF37;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.32) 0%, rgba(212, 175, 55, 0.14) 55%, rgba(15, 31, 61, 0.25) 100%);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
}

.cot-rail-premium__badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0F1F3D;
  background: #D4AF37;
  padding: 2px 7px;
  border-radius: 10px;
}

.cot-rail-premium__title {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.cot-rail-premium__cta {
  font-size: 10px;
  font-weight: 600;
  color: #D4AF37;
  line-height: 1.3;
}

/* Legacy — hub / compare */
.cot-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px 8px;
}
.cot-foot-row .cot-legal { margin: 0; }
.cot-stats-teaser {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.cot-stats-teaser:hover { background: rgba(212, 175, 55, 0.16); }
.cot-stats-teaser__badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0F1F3D;
  background: #D4AF37;
  padding: 1px 6px;
  border-radius: 10px;
}

.cot-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 6px;
  min-height: 36px;
}

.cot-config-bar {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  margin: 6px 0 6px 10px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07) 0%, rgba(15, 31, 61, 0.4) 100%);
}

.cot-jump {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 6px;
  margin: 6px 10px 6px 0;
}

.cot-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: auto;
  min-height: 44px;
  min-width: 44px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: #111c32;
  color: #E2E8F0;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cot-jump-btn i {
  font-size: 1.55rem;
  line-height: 1;
}

.cot-jump-btn:hover,
.cot-jump-btn:focus-visible {
  border-color: #D4AF37;
  color: #fff;
  background: rgba(212, 175, 55, 0.16);
  outline: none;
}

.cot-jump-btn--stats {
  border-color: #D4AF37;
  background: linear-gradient(165deg, #F4CC52 0%, #D4AF37 55%, #B8962E 100%);
  color: #0F1F3D;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
}

.cot-jump-btn--stats:hover,
.cot-jump-btn--stats:focus-visible {
  background: linear-gradient(165deg, #F8D86A 0%, #D4AF37 55%, #C4A338 100%);
  color: #0F1F3D;
  border-color: #F4CC52;
}

.cot-config-label {
  flex: 0 0 auto;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D4AF37;
  white-space: nowrap;
}

.cot-config-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cot-config-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.cot-config-cluster--main {
  flex: 0 1 auto;
}

.cot-config-cluster--view {
  margin-left: auto;
  flex: 0 1 auto;
  justify-content: flex-end;
  padding-left: 14px;
  border-left: 1px solid rgba(212, 175, 55, 0.22);
}

.cot-config-field,
.cot-config-market {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.cot-config-field-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

.cot-config-bar .cot-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 2px;
  background: #111c32;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.cot-config-bar .cot-seg:hover,
.cot-config-bar .cot-seg:focus-within {
  border-color: #D4AF37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.cot-config-bar .cot-chip {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  min-height: 28px;
  border-radius: 6px;
}

.cot-config-bar .cot-chip.active {
  background: #1E6FD9;
  color: #fff;
  border-color: transparent;
}

.cot-config-bar .cot-help-btn {
  width: 22px;
  height: 22px;
  margin: 0 2px 0 1px;
}

.cot-config-field:has(> .cot-seg[hidden]) {
  display: none;
}

@media (max-width: 1100px) {
  .cot-toolbar {
    flex-wrap: wrap;
  }
  .cot-config-cluster--view {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  .cot-jump {
    margin-left: auto;
  }
}

.cot-combo-kbd {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #334155;
  background: #0a1628;
  color: var(--cot-text-muted);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
}

body.cot-dash .cot-combobox {
  flex: 0 1 auto;
  min-width: 160px;
  max-width: min(280px, 32vw);
}

body.cot-dash .cot-combo-btn {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 14px;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
}

body.cot-dash .cot-combo-btn:hover,
body.cot-dash .cot-combo-btn[aria-expanded="true"] {
  border-color: #D4AF37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

body.cot-dash .cot-toolbar-groups {
  margin-left: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
}

.cot-toolbar-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}

.cot-toolbar-groups {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.cot-seg { display: flex; gap: 4px; }

.cot-combobox {
  position: relative;
  min-width: 180px;
  max-width: 240px;
  flex: 0 1 240px;
  z-index: 40;
}
.cot-combo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #111c32;
  border: 1px solid #1e3a5f;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.cot-combo-btn:hover,
.cot-combo-btn[aria-expanded="true"] { border-color: #D4AF37; }
.cot-combo-pill,
.cot-combo-opt-pill {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #1e3a5f;
  color: #D4AF37;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.cot-combo-caret { margin-left: auto; color: #94a3b8; font-size: 11px; }

/* Sélecteur marché plein écran (desktop : grille 9 colonnes ; mobile : sections empilées) */
body.cot-market-open {
  overflow: hidden;
}

.cot-market-picker {
  position: fixed;
  inset: var(--onelix-header-h, 56px) 0 0 var(--onelix-nav-w, 64px);
  z-index: 120;
  display: flex;
  flex-direction: column;
}

.cot-market-picker[hidden] {
  display: none !important;
}

.cot-market-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(2px);
}

.cot-market-picker__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  background: #0a1628;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.cot-market-picker__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1e3a5f;
  background: #0F1F3D;
}

.cot-market-picker__head-main {
  flex: 1 1 auto;
  min-width: 0;
}

.cot-market-picker__head h2 {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cot-market-picker__search {
  width: 100%;
  max-width: 420px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  color: #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.cot-market-picker__search:focus {
  outline: none;
  border-color: #D4AF37;
}

.cot-market-picker__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #111c32;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cot-market-picker__close:hover,
.cot-market-picker__close:focus-visible {
  color: #fff;
  border-color: #D4AF37;
}

.cot-market-picker__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 20px;
}

.cot-market-table-wrap {
  min-height: 100%;
}

.cot-market-recents {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e3a5f;
}

.cot-market-recents__label {
  margin: 0 0 6px;
}

.cot-market-recents__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cot-market-favs {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e3a5f;
}

.cot-market-favs__label,
.cot-market-recents__label {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cot-text-muted);
}

.cot-market-favs__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cot-market-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.cot-market-row .cot-market-option {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.cot-market-row--chip {
  flex: 0 0 auto;
  width: auto;
  border: 1px solid #1e3a5f;
  background: #111c32;
  border-radius: 6px;
}

.cot-market-row--chip .cot-market-option {
  padding-right: 4px;
  flex: 0 1 auto;
  width: auto;
}

.cot-market-row--chip .cot-market-option[aria-current="true"] {
  box-shadow: none;
  background: transparent;
}

.cot-market-row--pinned-last {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1e3a5f;
}

.cot-fav-star {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0 2px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cot-fav-star__icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.cot-fav-star--on {
  color: #D4AF37;
}

.cot-fav-star--on .cot-fav-star__icon {
  fill: #D4AF37;
  stroke: #D4AF37;
}

.cot-fav-star--guest {
  opacity: 0.35;
}

.cot-fav-star:hover,
.cot-fav-star:focus-visible {
  outline: none;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
}

.cot-fav-star--guest:hover,
.cot-fav-star--guest:focus-visible {
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .cot-fav-star:not(.cot-fav-star--on):not(.cot-fav-star--guest) {
    opacity: 0;
  }
  .cot-market-row:hover .cot-fav-star,
  .cot-market-row:focus-within .cot-fav-star {
    opacity: 1;
  }
}

.cot-toast {
  position: fixed;
  z-index: 140;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #111c32;
  color: #E2E8F0;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.cot-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cot-market-table__head {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0a1628;
  border-bottom: 1px solid #1e3a5f;
}

.cot-market-table__headcell {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #D4AF37;
  border-right: 1px solid #1e3a5f;
  line-height: 1.3;
}

.cot-market-table__headcell:last-child {
  border-right: 0;
}

.cot-market-table__body {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.cot-market-table__col {
  min-width: 0;
  border-right: 1px solid #1e3a5f;
  padding: 8px 6px 12px;
}

.cot-market-table__col:last-child {
  border-right: 0;
}

.cot-market-table__collabel {
  display: none;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #D4AF37;
}

.cot-market-table__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cot-market-option {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: #CBD5E1;
  text-align: left;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
}

.cot-market-option:hover,
.cot-market-option:focus-visible {
  background: #111c32;
  color: #fff;
  outline: none;
}

.cot-market-option[aria-current="true"] {
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.cot-market-option--recent {
  width: auto;
  flex: 0 0 auto;
  border: 1px solid #1e3a5f;
  background: #111c32;
}

.cot-market-empty {
  display: block;
  padding: 8px;
  font-size: 12px;
  color: var(--cot-text-muted);
  text-align: center;
}

.cot-combo-filter {
  width: 100%;
  background: #111c32;
  border: 1px solid #1e3a5f;
  color: #CBD5E1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

.cot-combo-empty {
  color: var(--cot-text-muted);
  font-size: 13px;
  padding: 24px 8px;
  text-align: center;
}

@media (max-width: 1200px) {
  .cot-market-table__headcell,
  .cot-market-table__collabel {
    font-size: 9px;
  }

  .cot-market-option {
    font-size: 11px;
    padding: 6px 6px;
  }
}

@media (max-width: 1023px) {
  .cot-market-picker {
    inset: 0 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0;
    z-index: 130;
  }

  .cot-market-picker__panel {
    border-top: 0;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    max-height: min(88vh, 720px);
  }

  .cot-market-picker__head h2 {
    font-size: 14px;
  }

  .cot-market-table__head {
    display: none;
  }

  .cot-market-table__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cot-market-table__col {
    border: 1px solid #1e3a5f;
    border-radius: 10px;
    padding: 10px;
    background: #0F1F3D;
  }

  .cot-market-table__col:has(.cot-market-empty:only-child) {
    display: none;
  }

  .cot-market-table__collabel {
    display: block;
  }

  .cot-market-table__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
  }

  .cot-fav-star:not(.cot-fav-star--guest) {
    opacity: 1;
  }

  .cot-market-empty {
    display: none;
  }
}
.cot-price-status {
  margin: 0 12px 8px;
  padding: 8px 12px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
}
@media (max-width: 1023px) {
  .cot-combobox {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}

.cot-slug-switch .cot-chip {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
}

.cot-slug-switch .cot-chip.active {
  background: #111c32;
  color: #fff;
  border-color: #D4AF37;
}

.cot-toolbar .cot-chip {
  padding: 4px 8px;
  font-size: 11px;
}

.cot-toolbar .cot-config-bar .cot-chip {
  padding: 4px 10px;
  font-size: 12px;
  border: none;
}

.cot-toolbar-link {
  color: #94a3b8;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}

.cot-toolbar-link:hover,
.cot-toolbar-link:focus-visible { color: #D4AF37; }

.cot-kpi-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 12px 6px;
  font-size: 12px;
  min-height: 28px;
  flex-wrap: wrap;
}

.cot-kpi label {
  color: var(--cot-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cot-kpi strong { color: #fff; font-weight: 600; }

.cot-insight {
  flex: 1;
  min-width: 160px;
  margin: 0;
  color: #CBD5E1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cot-text-muted {
  color: var(--cot-text-muted);
}

/* Lecture CFTC — cartes compactes dans la colonne chart (dashboard) */
body.cot-dash .cot-hero .cot-pos-band {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: transparent;
  max-height: none;
  overflow: visible;
}

.cot-pos-band {
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
  border-bottom: 1px solid #1e3a5f;
  background: #0c1830;
  padding: 4px 12px 5px;
  max-height: 72px;
  overflow: visible;
}

.cot-pos-band[hidden] { display: none !important; }

.cot-pos-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.cot-pos-kicker {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #D4AF37;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.cot-pos-kicker:hover {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.12);
}

.cot-pos-kicker:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

body.cot-dash.cot-dash--pos-collapsed .cot-pos-badges,
body.cot-dash.cot-dash--pos-collapsed .cot-pos-foot {
  display: none;
}

body.cot-dash.cot-dash--pos-collapsed .cot-hero-chart-wrap,
body.cot-dash.cot-dash--pos-expanded .cot-hero-chart-wrap {
  flex: 1 1 0%;
  min-height: 0;
}

body.cot-dash.cot-dash--pos-collapsed .cot-pos-kicker {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.55);
}

body.cot-dash.cot-dash--pos-expanded .cot-pos-kicker {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.28);
}

body.cot-dash.cot-dash--pos-collapsed .cot-pos-kicker::after,
body.cot-dash.cot-dash--pos-expanded .cot-pos-kicker::after {
  color: #D4AF37;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.cot-dash.cot-dash--pos-collapsed .cot-pos-kicker::after {
  content: '▾';
}

body.cot-dash.cot-dash--pos-expanded .cot-pos-kicker::after {
  content: '▴';
}

.cot-pos-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

body.cot-dash .cot-pos-item {
  flex: none;
  width: auto;
  min-width: 0;
  display: flex;
}

.cot-pos-item {
  position: relative;
  z-index: 0;
  min-width: 0;
  display: flex;
}

.cot-pos-item:hover,
.cot-pos-item:focus-within {
  z-index: 90;
}

.cot-pos-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 108px;
  padding: 8px 10px;
  background: #152038;
  border: 1px solid #2a4568;
  border-radius: 8px;
  color: #CBD5E1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.cot-pos-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
}

.cot-pos-card-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cot-pos-metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 10px;
  width: 100%;
  flex: 1 1 auto;
  align-content: start;
}

.cot-pos-card-action:hover,
.cot-pos-card-action:focus-visible {
  outline: none;
}

.cot-pos-card:has(.cot-pos-card-action:hover),
.cot-pos-card:has(.cot-pos-card-action:focus-visible) {
  border-color: var(--cot-text-muted);
}

.cot-pos-card:has(.cot-pos-card-action:focus-visible) {
  box-shadow: 0 0 0 2px #0F1F3D, 0 0 0 4px #D4AF37;
}

.cot-pos-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  min-height: 2.75rem;
}

.cot-pos-metric-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cot-text-muted);
  line-height: 1.25;
  min-height: 2.5em;
  white-space: normal;
}

.cot-pos-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cot-pos-main {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}

.cot-pos-sec {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  line-height: 1.2;
}

.cot-pos-flowlines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.cot-pos-flowlines strong { color: #fff; font-weight: 700; }

.cot-pos-pill {
  flex: 0 0 auto;
  margin-top: auto;
  font-size: 10px;
  line-height: 1.3;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #0a1628;
  color: #94a3b8;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cot-pos-card[data-state="mid"],
.cot-pos-card[data-state="flat"] {
  background: #1a2d4a;
  border-color: #3d5f84;
  box-shadow:
    inset 0 1px 0 rgba(148, 163, 184, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.cot-pos-card[data-state="mid"] .cot-pos-pill,
.cot-pos-card[data-state="flat"] .cot-pos-pill {
  border-color: #475569;
  background: #111c32;
  color: #b0bdd0;
}

/* AM low/high : même famille bleu (écart à l’habitude), pas vert/rouge */
.cot-pos-card[data-state="low"],
.cot-pos-card[data-state="high"] {
  background: #132a4a;
  border-color: #3b6ea8;
}

.cot-pos-card[data-state="low"] .cot-pos-pill,
.cot-pos-card[data-state="high"] .cot-pos-pill {
  border-color: #3b6ea8;
  color: #93c5fd;
}

/* Lev crowding : contour or + hatch — distinct du bleu AM */
.cot-pos-card[data-state="crowded-long"],
.cot-pos-card[data-state="crowded-short"] {
  border-color: #D4AF37;
  background: repeating-linear-gradient(
    -45deg,
    #111c32,
    #111c32 5px,
    #1a2744 5px,
    #1a2744 10px
  );
}

.cot-pos-card[data-state="crowded-long"] .cot-pos-pill,
.cot-pos-card[data-state="crowded-short"] .cot-pos-pill {
  border-color: #D4AF37;
  color: #D4AF37;
}

.cot-pos-card[data-state="load"],
.cot-pos-card[data-state="load-both"],
.cot-pos-card[data-state="unload"],
.cot-pos-card[data-state="unload-both"] {
  border-color: #475569;
}

.cot-pos-card[data-state="split"] {
  border-color: #94a3b8;
}

.cot-pos-card[data-state="na"] {
  opacity: 0.55;
}

.cot-pos-card .cot-pos-help {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.cot-pos-foot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
  min-width: 0;
}

.cot-pos-copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cot-pos-disc {
  margin: 0;
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--cot-text-muted);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .cot-pos-band {
    max-height: none;
    overflow: visible;
  }

  .cot-pos-row,
  .cot-pos-badges,
  .cot-pos-foot {
    flex-wrap: wrap;
  }

  .cot-pos-copy,
  .cot-pos-disc {
    white-space: normal;
  }
}

.cot-error-bar {
  color: #f87171;
  font-size: 13px;
  padding: 6px 12px;
}

.cot-loading-bar { padding: 16px 12px; }

.cot-legal {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 12px 4px;
  font-size: 10px;
  color: var(--cot-text-muted);
  line-height: 1.3;
}

.cot-dash .cot-nav-links a[aria-current="page"] { color: #D4AF37; }

.cot-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) minmax(400px, 22vw);
  grid-template-rows: minmax(0, 1fr) var(--cot-bottom-h, 220px);
  gap: 6px;
  padding: 6px 8px 0;
}

body.cot-dash[data-bottom="collapsed"] {
  --cot-bottom-h: 40px;
}

body.cot-dash[data-bottom="mid"] {
  --cot-bottom-h: 220px;
}

body.cot-dash[data-bottom="expanded"] {
  --cot-bottom-h: 380px;
}

.cot-dash .cot-cards {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  margin: 0;
}

.cot-dash .cot-card {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 2px;
  row-gap: 2px;
  background: #0c1830;
}
.cot-dash .cot-card-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 8px 4px 8px 10px;
}
.cot-dash .cot-card h3 {
  font-size: 11px;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cot-dash .cot-card .cot-card-net { font-size: 1rem; }
.cot-dash .cot-card .cot-card-meta { font-size: 10px; margin-top: 2px; }
.cot-dash .cot-card .cot-help-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  margin: 4px 8px 0 0;
}
.cot-dash .cot-card-swatch {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  margin: 0 8px 4px 0;
}

.cot-dash .cot-body .cot-hero {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 6px 8px 4px;
}

.cot-hero {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 8px 10px 4px;
}

.cot-hero .cot-caption { margin: 2px 0 0; }

.cot-caption-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cot-side {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.cot-side-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 6px 8px 4px;
}

.cot-side-block h2 {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cot-side-block__title {
  justify-content: space-between;
}

.cot-side-block__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.cot-chart-expand-btn {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.cot-chart-expand-btn:hover,
.cot-chart-expand-btn:focus-visible {
  color: #D4AF37;
  border-color: #D4AF37;
  outline: none;
}

.cot-chart-expand-btn__shrink { display: none; }

body.cot-index-expanded .cot-chart-expand-btn {
  color: #D4AF37;
  border-color: #D4AF37;
}

body.cot-index-expanded .cot-chart-expand-btn__grow { display: none; }
body.cot-index-expanded .cot-chart-expand-btn__shrink { display: block; }

body.cot-index-expanded .cot-body {
  grid-template-columns: 168px minmax(0, 1fr) minmax(520px, 48vw);
}

body.cot-index-expanded .cot-side-block--stack {
  display: none;
}

body.cot-index-expanded .cot-side-block--index {
  border-color: rgba(212, 175, 55, 0.45);
}

.cot-bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.cot-bottom-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 8px 4px;
  min-height: 36px;
}

.cot-bottom-head .cot-pane-tabs {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.cot-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cot-bottom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0a1628;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cot-bottom-toggle:hover,
.cot-bottom-toggle:focus-visible {
  color: #D4AF37;
  border-color: #D4AF37;
  outline: none;
}

.cot-bottom-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 10px;
  line-height: 1;
}

body.cot-dash[data-bottom="collapsed"] .cot-bottom-toggle-icon {
  transform: rotate(-90deg);
}

.cot-bottom-resize {
  flex: 0 0 6px;
  margin: 0 8px;
  border-radius: 3px;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
}

.cot-bottom-resize:hover,
.cot-bottom-resize:focus-visible {
  background: rgba(212, 175, 55, 0.25);
  outline: none;
}

body.cot-dash[data-bottom="collapsed"] .cot-bottom-resize {
  display: none;
}

.cot-bottom-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 8px 6px;
}

body.cot-dash[data-bottom="collapsed"] .cot-bottom-body {
  display: none;
}

.cot-pane-tabs {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.cot-pane-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.cot-pane {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.cot-pane[hidden] { display: none !important; }

.cot-chart-box--hero,
.cot-chart-box--side,
.cot-chart-box--pane {
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  position: relative;
}

.cot-hero .cot-chart-box--hero { flex: 1 1 0%; }
body.cot-dash .cot-hero .cot-chart-box--hero {
  flex: 1 1 0%;
  width: 100%;
  min-height: 0;
  position: relative;
}

/*
 * Canvas hors flux : Chart.js écrit une hauteur en px sur le canvas.
 * S'il reste in-flow, cette hauteur devient min-content du parent (height:auto),
 * le parent grandit, resize() relit cette taille, et chaque dépli/repli Lecture CFTC
 * allonge la page. position:absolute casse la boucle.
 */
body.cot-dash .cot-chart-box > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

.cot-hero-chart-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.cot-cftc-banner {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.88);
  border: 1px solid rgba(220, 38, 38, 0.9);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cot-cftc-banner strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}

.cot-cftc-banner[hidden] { display: none !important; }

.cot-side-block .cot-chart-box--side { flex: 1; }
.cot-pane .cot-chart-box--pane { height: 100%; }

.cot-table-wrap--hist { max-height: 100%; overflow: auto; }

.cot-dash .cot-table { font-size: 12px; }
.cot-dash .cot-table th,
.cot-dash .cot-table td { padding: 4px 8px; }
.cot-table tr.cot-row-active td { background: rgba(212, 175, 55, 0.08); }

.cot-help-btn {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #334155;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
}

.cot-help-btn--bar {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.cot-help-btn:hover,
.cot-help-btn:focus-visible {
  color: #D4AF37;
  border-color: #D4AF37;
  outline: none;
}

.cot-table th .cot-help-btn {
  vertical-align: middle;
  margin-left: 4px;
}

.cot-config-bar .cot-chip.cot-chip--gated {
  opacity: 0.55;
}

.cot-period-gate[hidden] { display: none !important; }

.cot-period-gate {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cot-period-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(2px);
}

.cot-period-gate__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 16px 18px 18px;
  background: #0a1628;
  border: 1px solid #D4AF37;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: #CBD5E1;
}

.cot-period-gate__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.cot-period-gate__head h2 {
  margin: 0;
  flex: 1;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cot-period-gate__body {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #CBD5E1;
}

.cot-period-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cot-period-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: #D4AF37;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cot-period-gate__cta:hover,
.cot-period-gate__cta:focus-visible {
  border-color: #D4AF37;
  outline: none;
}

.cot-period-gate__cta--primary {
  background: #1E6FD9;
  border-color: #1E6FD9;
  color: #fff;
}

.cot-period-gate__cta--primary:hover,
.cot-period-gate__cta--primary:focus-visible {
  border-color: #3b82f6;
  background: #3b82f6;
}

.cot-help-panel[hidden] { display: none !important; }

.cot-help-panel {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: auto;
  padding: 12px 14px 10px;
  background: #0a1628;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #CBD5E1;
}

.cot-help-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.cot-help-panel h2 {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cot-help-close {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cot-help-close:hover,
.cot-help-close:focus-visible { color: #D4AF37; }

.cot-help-kicker {
  margin: 10px 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #D4AF37;
}

.cot-help-plain,
.cot-help-def {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.cot-help-def { color: #94a3b8; font-size: 12px; }

.cot-help-src {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
}

.cot-help-src:hover { color: #D4AF37; }

.cot-help-more {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.cot-help-more a {
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
}

.cot-help-more a:hover,
.cot-help-more a:focus-visible {
  text-decoration: underline;
}

.cot-help-disc {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--cot-text-muted);
}

@media (max-height: 749px), (max-width: 1024px) {
  body.cot-dash:not([data-bottom]) {
    --cot-bottom-h: 40px;
  }
}

@media (max-height: 750px) {
  body.cot-dash .cot-hero {
    overflow: hidden;
  }

  body.cot-dash.cot-dash--pos-expanded .cot-hero .cot-pos-band {
    flex: 0 1 auto;
    max-height: 42%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-height: 750px) and (min-width: 1025px) {
  body.cot-dash:not([data-bottom]) {
    --cot-bottom-h: 220px;
  }
}

@media (max-width: 1100px) {
  .cot-pos-badges {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 1024px) {
  body.cot-dash {
    /* Sous 1024px le rail partagé devient une barre basse de 64px. */
    padding-bottom: 64px;
  }
  .cot-shell {
    min-height: 0;
    margin-left: 0;
  }
  .cot-fold {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .cot-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    overflow: visible;
  }
  .cot-rail,
  .cot-hero,
  .cot-side,
  .cot-bottom { grid-column: auto; grid-row: auto; }
  .cot-rail-panel {
    flex: 0 0 auto;
    overflow: visible;
  }
  .cot-jump-btn {
    min-height: 38px;
    min-width: 38px;
  }
  .cot-jump-btn i { font-size: 1.2rem; }
  .cot-dash .cot-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cot-dash .cot-card { flex: 1 1 140px; }
  .cot-hero { min-height: 280px; }
  .cot-side { min-height: 320px; }
  .cot-bottom { min-height: 320px; }
  body.cot-dash[data-bottom="collapsed"] .cot-bottom {
    min-height: 0;
  }
  .cot-chart-box--hero { height: 240px; }
  .cot-chart-box--side { height: 140px; }
  .cot-chart-box--pane { height: 280px; }
  body.cot-index-expanded .cot-side { min-height: 360px; }
  body.cot-index-expanded .cot-side-block--index .cot-chart-box--side { height: 320px; }
}

/* ── Compare terminal fold ── */
body.cot-compare-page .onelix-ws-banner {
  display: none !important;
}

body.cot-compare-page {
  overflow-x: clip;
}

body.cot-compare-page .cot-compare-main {
  max-width: none;
  width: auto;
  padding: 0 0 48px;
  display: flex;
  flex-direction: column;
}

.cot-compare-fold {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - var(--onelix-header-h, 56px));
  height: calc(100dvh - var(--onelix-header-h, 56px));
  overflow: hidden;
}

.cot-compare-toolbar {
  flex-wrap: wrap;
}

.cot-compare-page .cot-config-bar {
  margin: 6px 12px;
  flex: 1 1 auto;
}

.cot-compare-page .cot-config-market .cot-compare-combo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(200px, 26vw);
}

.cot-compare-page .cot-config-market .cot-combo-btn {
  width: 100%;
}

.cot-compare-combo {
  min-width: 0;
  max-width: none;
  flex: 1 1 140px;
}

.cot-compare-combo .cot-combo-btn {
  max-width: none;
  min-height: 32px;
  padding: 4px 8px;
}

.cot-compare-pill {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cot-compare-pill--a { background: #1E6FD9; }
.cot-compare-pill--b { background: #8B6BB5; }

.cot-compare-combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 220px;
  z-index: 60;
  background: #0a1628;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.cot-compare-combo-list {
  max-height: 240px;
  overflow: auto;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cot-compare-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #CBD5E1;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.cot-compare-opt:hover,
.cot-compare-opt[aria-current="true"] {
  background: rgba(30, 111, 217, 0.18);
  color: #fff;
}
.cot-compare-opt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cot-compare-board {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "charts rail"
    "price  rail";
  gap: 10px;
  padding: 8px 16px 10px;
}

.cot-compare-instrument {
  grid-area: charts;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 10px 14px 8px;
}

.cot-compare-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.cot-compare-price {
  grid-area: price;
  margin: 0;
  padding: 8px 14px 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cot-compare-lectures {
  margin: 0;
  padding: 10px 12px;
  flex: 0 0 auto;
}

.cot-compare-lectures__head {
  margin-bottom: 8px;
}

.cot-compare-lectures__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #CBD5E1;
}

.cot-compare-lectures__lead {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--cot-text-muted);
}

.cot-compare-lectures__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cot-compare-lecture-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 8px 9px;
  text-align: left;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  background: rgba(15, 31, 61, 0.55);
  color: #E2E8F0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cot-compare-lecture-card:hover,
.cot-compare-lecture-card:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(30, 58, 95, 0.35);
}

.cot-compare-lecture-card.active {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.cot-compare-lecture-card__pair {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.cot-compare-lecture-card__tag {
  font-size: 10px;
  line-height: 1.3;
  color: var(--cot-text-muted);
}

.cot-compare-kicker {
  margin: 0;
  font-size: 12px;
  color: var(--cot-text-muted);
}

.cot-compare-notice {
  margin: 0 16px 8px;
  font-size: 13px;
  color: #F4CC52;
}

.cot-compare-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.cot-compare-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: #111c32;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
}

.cot-compare-kpi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.cot-compare-kpi .cot-stat {
  min-width: 0;
}

.cot-compare-kpi .cot-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cot-compare-kpi .cot-stat label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 2px;
}

.cot-compare-kpi__spread {
  box-shadow: inset 0 2px 0 #D4AF37;
  padding: 2px 0 0;
}

.cot-compare-kpi__read {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.cot-compare-kpi__read--spread {
  font-size: 11px;
  color: #94a3b8;
}

.cot-compare-kpi__read--corr {
  margin-top: 5px;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #E9D5FF;
  background: rgba(139, 107, 181, 0.14);
  border-left: 2px solid #8B6BB5;
  border-radius: 0 6px 6px 0;
}

.cot-compare-kpi__meta {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(30, 58, 95, 0.65);
  font-size: 11px;
  font-weight: 500;
  color: var(--cot-text-muted);
  line-height: 1.4;
}

.cot-compare-c1 {
  margin: 0;
  padding: 10px 12px 8px;
  flex: 0 0 auto;
}

.cot-compare-c1__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cot-compare-c1__head .cot-compare-panel-title {
  margin-bottom: 0;
}

.cot-compare-c1__foot {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 58, 95, 0.5);
  font-size: 11px;
  line-height: 1.45;
  color: var(--cot-text-muted);
}

.cot-compare-instrument__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex: 0 0 auto;
}

.cot-compare-instrument__head .cot-compare-panel-title {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cot-compare-panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 10px;
}

#comment-lire.cot-entry-why {
  padding: 28px 24px 8px;
}

#comment-lire.cot-entry-why h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cot-compare-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #CBD5E1;
  margin: 0;
}
.cot-compare-legend__a i,
.cot-compare-legend__b i {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid #1E6FD9;
  vertical-align: middle;
  margin-right: 6px;
}
.cot-compare-legend__b i {
  border-top-style: dashed;
  border-top-color: #8B6BB5;
}
.cot-compare-legend__a { color: #60A5FA; }
.cot-compare-legend__b { color: #C4B5FD; }

.cot-compare-table-wrap { overflow-x: auto; }

.cot-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cot-compare-table th,
.cot-compare-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #1e3a5f;
  vertical-align: middle;
}
.cot-compare-table thead th {
  font-size: 12px;
  font-weight: 600;
}
.cot-compare-table thead th:nth-child(2),
.cot-compare-table thead th:nth-child(3) {
  white-space: nowrap;
}
.cot-compare-table thead th:nth-child(2) a { color: #60A5FA; }
.cot-compare-table thead th:nth-child(3) a { color: #C4B5FD; }
.cot-compare-table thead .cot-compare-pill {
  margin-right: 6px;
  vertical-align: middle;
}
.cot-compare-table tbody th {
  font-weight: 500;
  color: #CBD5E1;
  text-align: left;
  white-space: nowrap;
}
.cot-compare-table td:nth-child(2),
.cot-compare-table td:nth-child(3) {
  min-width: 0;
}
.cot-compare-table th .cot-help-btn {
  margin-left: 4px;
}
.cot-compare-muted { color: var(--cot-text-muted); font-size: 12px; }

.cot-compare-bar {
  display: inline-block;
  width: 56px;
  height: 8px;
  background: #1e3a5f;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 8px;
  overflow: hidden;
}
.cot-compare-bar--a,
.cot-compare-bar--b {
  display: block;
  height: 100%;
  border-radius: 4px;
  opacity: 0.55;
}
.cot-compare-bar--a { background: #1E6FD9; }
.cot-compare-bar--b { background: #8B6BB5; }
.cot-compare-bar-n { color: #fff; font-weight: 600; }

.cot-compare-mouvements {
  margin: 16px 16px 0;
}

.cot-compare-mov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cot-compare-mov-grid:has(#compare-intra-wrap[hidden]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cot-compare-chart--index {
  flex: 1 1 56%;
  min-height: 140px;
  height: auto;
}
.cot-compare-chart--spread {
  flex: 0 0 28%;
  min-height: 88px;
  height: auto;
  margin-top: 0;
}
.cot-compare-chart--price {
  height: 112px;
}
.cot-compare-instrument .cot-caption {
  flex: 0 0 auto;
  margin-top: 4px;
}
.cot-compare-price .cot-caption {
  margin-top: 2px;
}
.cot-compare-chart--d4,
.cot-compare-chart--intra,
.cot-compare-chart--net { height: 220px; }

.cot-compare-chart-label {
  font-size: 12px;
  color: var(--cot-text-muted);
  margin: 0 0 8px;
}

body.cot-compare-page .cot-foot-legal {
  margin: 24px 16px 0;
}

.cot-compare-scroll-cue {
  position: fixed;
  z-index: 35;
  left: calc(50% + var(--onelix-nav-w, 64px) / 2);
  bottom: 20px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.92);
  color: #D4AF37;
  text-decoration: none;
  font-size: 13px;
}
.cot-compare-scroll-cue[hidden] { display: none !important; }
.cot-compare-scroll-cue:hover,
.cot-compare-scroll-cue:focus-visible {
  border-color: #D4AF37;
  color: #F4CC52;
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .cot-compare-scroll-cue { animation: none; }
}

@media (max-width: 1100px) {
  .cot-compare-fold {
    height: auto;
    overflow: visible;
  }
  .cot-compare-toolbar {
    flex-wrap: wrap;
  }
  .cot-compare-page .cot-config-market .cot-compare-combo {
    max-width: none;
  }
  .cot-compare-board {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 8px 12px 12px;
  }
  .cot-compare-rail {
    display: contents;
  }
  .cot-compare-kpi { order: 1; }
  .cot-compare-lectures { order: 2; margin-top: 0; }
  .cot-compare-instrument { order: 3; }
  .cot-compare-c1 { order: 4; }
  .cot-compare-price { order: 5; }
  .cot-compare-instrument,
  .cot-compare-price,
  .cot-compare-c1 {
    flex: none;
  }
  .cot-compare-chart--index { height: 200px; flex: none; }
  .cot-compare-chart--spread { height: 120px; flex: none; }
  .cot-compare-chart--price { height: 140px; }
  .cot-compare-lectures { margin-top: 0; }
  .cot-compare-lectures__grid {
    grid-template-columns: 1fr;
  }
  .cot-compare-mov-grid,
  .cot-compare-mov-grid:has(#compare-intra-wrap[hidden]) {
    grid-template-columns: 1fr;
  }
  .cot-compare-scroll-cue {
    left: 50%;
  }
}

@media (max-width: 1024px) {
  body.cot-compare-page .cot-compare-main {
    padding-bottom: 64px;
  }
  .cot-compare-combo,
  .cot-compare-combo .cot-combo-btn { max-width: none; width: 100%; min-width: 0; }
  .cot-compare-chart--d4,
  .cot-compare-chart--intra,
  .cot-compare-chart--net { height: 180px; }
  #comment-lire.cot-entry-why {
    padding: 24px 16px 8px;
  }
  body.cot-compare-page .cot-foot-legal,
  .cot-compare-mouvements {
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 640px) {
  .cot-compare-lectures__grid {
    grid-template-columns: 1fr;
  }
}

/* COT Stats — chrome sticky (page défilante, pas le shell 100vh du dashboard) */
body.cot-stats-page {
  --cot-hub-sticky-top: calc(var(--onelix-header-h, 56px) + var(--onelix-banner-h, 0px));
}
body.cot-stats-page .cot-stats-main {
  max-width: none;
  width: auto;
  margin-left: var(--onelix-nav-w);
  margin-right: 0;
  box-sizing: border-box;
}
body.cot-stats-page .cot-stats-toolbar {
  position: sticky;
  top: var(--cot-hub-sticky-top);
  z-index: 40;
  flex-wrap: wrap;
  margin: 0 -24px 16px;
  padding: 0 12px;
  background: #0F1F3D;
  overflow: visible;
}
body.cot-stats-page .cot-stats-toolbar .cot-config-bar,
body.cot-stats-page .cot-stats-toolbar .cot-config-inner,
body.cot-stats-page .cot-stats-toolbar .cot-config-cluster {
  overflow: visible;
}
body.cot-stats-page .cot-stats-combo {
  position: relative;
  min-width: 160px;
  max-width: 220px;
  z-index: 50;
}
body.cot-stats-page .cot-stats-combo .cot-compare-combo-menu {
  min-width: 260px;
  right: auto;
}
body.cot-stats-page .cot-stats-combo .cot-combo-btn {
  width: 100%;
  min-height: 32px;
}
body.cot-stats-page .cot-stats-param-field {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
body.cot-stats-page .cot-stats-param {
  position: relative;
  min-width: 180px;
  max-width: 240px;
  z-index: 50;
}
body.cot-stats-page .cot-stats-combo:has([aria-expanded="true"]),
body.cot-stats-page .cot-stats-param:has([aria-expanded="true"]) {
  z-index: 80;
}
body.cot-stats-page .cot-stats-param .cot-combo-btn {
  width: 100%;
  min-height: 32px;
}
.cot-stats-param-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 280px;
  max-width: min(420px, 90vw);
  padding: 8px;
  background: #0a1628;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.cot-stats-param-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.cot-stats-param-item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 8px;
  cursor: pointer;
}
.cot-stats-param-item:hover {
  color: #fff;
  border-color: #2c4d7a;
}
.cot-stats-param-item.is-active {
  background: #1E6FD9;
  border-color: #1E6FD9;
  color: #fff;
}
.cot-stats-param-hint {
  margin: 8px 0 0;
  padding: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #94A3B8;
  background: #0d1a30;
  border-radius: 6px;
}
body.cot-stats-page .cot-stats-toolbar .cot-stats-select {
  min-width: 132px;
  max-width: 220px;
  min-height: 32px;
  font-size: 12px;
  padding: 4px 8px;
}
body.cot-stats-page .cot-stats-toolbar .cot-config-bar {
  margin-left: 10px;
  margin-right: 10px;
}
@media (max-width: 1024px) {
  body.cot-stats-page .cot-stats-main {
    margin-left: 0;
  }
  body.cot-stats-page .cot-stats-toolbar {
    margin-left: -12px;
    margin-right: -12px;
  }
}
