/* NEXOR : fichier généré. Modifier styles/*.css puis relancer scripts/build_css.py. */

/* SOURCE : styles/mode-v7.css */
/* NEXOR V7 — cohérence de modes, lisibilité, précision du pointeur. */
/* Pointeur système par défaut (tactile, accessibilité) ; le curseur Mac ciblé est activé plus bas. */
body,body.custom-cursor {
  cursor: default!important;
}
a[href],button:not(:disabled),summary,label[for],[role="button"] {
  cursor: pointer!important;
}
input,textarea,[contenteditable="true"] {
  cursor: text!important;
}
.cursor-ring,.cursor-dot,body.custom-cursor .cursor-ring,body.custom-cursor .cursor-dot {
  display: none!important;
}
html[data-nexor-mode="trading"] [data-prop-only],
html[data-nexor-mode="backtest"] [data-prop-only] {
  display: none!important;
}
html[data-nexor-mode="prop"] [data-prop-only]:not([hidden]) {
  visibility: visible;
}
html:not(.prop-lab-enabled) [data-isolated-lab] {
  display: none!important;
}
/* On peut visiter PROP indépendamment des paramètres. Les menus ne se mélangent jamais. */
html[data-nexor-mode="prop"] .app-rail .rail-label:first-of-type {
  display: none!important;
}
html[data-nexor-mode="prop"] .app-rail nav[aria-label="Surcouche de trading"] a[data-route="workspace"],
html[data-nexor-mode="prop"] .app-rail nav[aria-label="Surcouche de trading"] a[data-route="connections"] {
  display: none!important;
}
html[data-nexor-mode="prop"] .app-rail .mobile-module-launch {
  display: none!important;
}
html[data-nexor-mode="prop"] .app-rail .rail-separator[data-prop-only] {
  display: none!important;
}
html[data-nexor-mode="prop"] .app-rail nav[aria-label="Surcouche de trading"] {
  margin-bottom: 8px;
}
html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] {
  margin-top: 3px;
}
html[data-nexor-mode="trading"] .app-rail nav[aria-label="Surcouche de trading"] a[data-route="profile"] {
  display: flex;
}
/* Pas d'effet de profondeur sous la souris : défilement et ciblage restent fiables. */
.challenge-card:hover:not(:disabled),.challenge-card:focus-visible {
  filter: brightness(1.10);
}
.challenge-card:focus-visible {
  outline: 2px solid #d2e5ed;
  outline-offset: -5px;
}
.challenge-card,.mode-choice {
  will-change: auto;
}
.challenge-card:disabled {
  cursor: progress!important;
}
.app-rail nav a,.app-header-actions a,.app-header-actions button {
  transition: background-color .18s ease,border-color .18s ease,color .18s ease;
}
/* Espace graphique sobre, conçu pour une véritable connexion future. */
.live-chart-panel {
  margin-bottom: 24px;
  background: #26282b;
  border-color: #4e565e;
  overflow: hidden;
}
.live-chart-top {
  padding: 21px 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.live-chart-top .panel-eyebrow {
  display: block;
  color: #9ea8af;
  font: 9px/1.6 monospace;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.live-chart-top h2 {
  font: 400 22px/1.25 'Helvetica Neue',Arial;
  letter-spacing: -.5px;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e1c49d;
  font: 9px/1.5 monospace;
  letter-spacing: .6px;
}
.live-status i {
  width: 7px;
  height: 7px;
  background: #d4af7c;
  border-radius: 50%;
  box-shadow: none;
  flex-shrink: 0;
}
.live-chart-toolbar,.live-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  background: #2d3033;
  flex-wrap: wrap;
  color: #aeb9c1;
  font: 9px/1.65 monospace;
  border-bottom: 1px solid #3e454b;
}
.live-chart-toolbar>div {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.chart-market-label {
  color: #99a3aa;
  letter-spacing: .35px;
}
.chart-market-label b {
  margin-left: 9px;
  font-weight: 400;
  color: #e6f2f3;
}
.chart-source-note {
  color: #99a3aa;
}
.live-chart-area {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 58%,#1d35404a,transparent 70%),#242729;
}
.live-chart-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.live-chart-empty {
  position: relative;
  z-index: 1;
  width: min(600px,calc(100% - 44px));
  margin: auto;
  min-height: 410px;
  padding: 44px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
}
.chart-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #67717c;
  border-radius: 8px;
  color: #d2e5ed;
  font: 27px monospace;
  background: #24403dcb;
}
.chart-empty-kicker {
  font: 9px/1.5 monospace;
  letter-spacing: 1.2px;
  color: #bed6e1;
  margin-top: 6px;
}
.live-chart-empty h3 {
  font: 400 clamp(24px,2.8vw,37px)/1.19 'Helvetica Neue',Arial;
  letter-spacing: -.8px;
  color: #dceaf4;
  margin: 6px 0 0;
}
.live-chart-empty p {
  font: 12px/1.8 Arial;
  color: #b2bec6;
  max-width: 470px;
  margin: 1px 0 0;
}
.live-chart-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.live-chart-actions .button,.live-chart-actions .quiet-button {
  min-height: 43px;
  font: 11px Arial;
  padding: 12px 16px;
  border-radius: 3px;
  text-decoration: none;
}
.live-chart-actions .quiet-button {
  border: 1px solid #67717c;
  color: #d8e6f0;
  background: #323639;
}
.live-watermark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: #81a1ac79;
  font: 9px monospace;
  letter-spacing: 1.8px;
  pointer-events: none;
}
.live-chart-footer {
  background: #282b2e;
  border-top: 1px solid #3e454b;
  border-bottom: 0;
  color: #97a1a8;
}
.live-chart-footer span:first-child {
  color: #e1bf99;
}
/* Tous les tableaux financiers : chiffres alignés, indicateurs clairs. */
.ops-metrics strong,.hub-active-main strong,.hub-active-stats strong,.ops-panel td,.ops-limits dd {
  font-variant-numeric: tabular-nums;
}
.ops-panel,.dashboard-context,.hub-active-panel,.hub-command {
  border-radius: 6px;
}
.ops-panel-head {
  flex-wrap: wrap;
}
.ops-heading {
  flex-wrap: wrap;
}
.challenge-gate[hidden],.ops-no-positions[hidden],[data-challenge-content][hidden] {
  display: none!important;
}
/* Transitions plus sobres, ne pas déplacer une cible interactive pendant son survol. */
.hub-hero-button {
  transition: background-color .22s ease!important;
}
.mode-choice {
  transition: background-color .22s ease,border-color .22s ease!important;
}
.mode-choice:hover,.mode-choice:focus-visible {
  transform: none!important;
}
@media(max-width:900px) {
  .live-chart-area,.live-chart-empty {
    min-height: 375px;
  }
}
@media(max-width:650px) {
  .live-chart-top {
    padding: 17px;
  }
  .live-chart-toolbar,.live-chart-footer {
    padding: 12px 16px;
  }
  .live-chart-area,.live-chart-empty {
    min-height: 395px;
  }
  .live-chart-empty {
    padding: 33px 8px;
    width: calc(100% - 24px);
  }
  .live-chart-empty h3 {
    font-size: 26px;
  }
  .chart-source-note {
    display: none;
  }
  .app-rail nav[data-prop-only] {
    display: none;
  }
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] {
    display: grid!important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 3px;
    margin: 0;
    order: 0;
  }
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] a {
    display: flex!important;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    text-align: center;
    font-size: 9px;
    min-height: 56px;
    padding: 5px 2px;
  }
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] a>span {
    width: auto;
    font-size: 18px;
  }
  html.prop-lab-enabled[data-nexor-mode="prop"] .app-rail nav[data-prop-only] {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
  html[data-nexor-mode="prop"] .app-rail nav[aria-label="Surcouche de trading"] {
    display: none!important;
  }
  html[data-nexor-mode="prop"] .app-rail .rail-label[data-prop-only] {
    display: none!important;
  }
  html[data-nexor-mode="prop"] .app-rail .rail-separator[data-prop-only] {
    display: none!important;
  }
  html[data-nexor-mode="prop"] .app-rail .rail-footer {
    display: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .challenge-card,.mode-choice,.app-rail nav a,.hub-hero-button {
    animation: none!important;
    transition: none!important;
  }
}
/* Lien commun aux réglages : une seule entrée visible sur mobile PROP. */
.app-rail nav[data-prop-only] .prop-mobile-settings {
  display: none!important;
}
.hub-optional-caption {
  color: #bed6e1;
  font: 10px/1.8 monospace;
  letter-spacing: .25px;
}
@media(max-width:650px) {
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] {
    grid-template-columns: repeat(auto-fit,minmax(56px,1fr));
  }
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] .prop-mobile-settings {
    display: flex!important;
  }
  html[data-nexor-mode="prop"] .app-rail nav[data-prop-only] a {
    font-size: 9px;
  }
}
/* Priorité explicite sur les liens optionnels, y compris le dock mobile. */
html:not(.challenge-nav-enabled) .app-rail nav[data-prop-only] a[data-challenge-nav],
html:not(.prop-lab-enabled) .app-rail nav[data-prop-only] a[data-isolated-lab] {
  display: none!important;
}

/* iOS 14 : <dialog> n'est pas un élément natif. Même gabarit que les modals
   actuelles, avec une vraie couche de fond et des cibles tactiles cliquables. */
dialog:not([open]) { display: none!important; }
.nx-legacy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.73);
  z-index: 10019;
}
.nx-legacy-modal-backdrop.nx-tour-backdrop {
  background: transparent;
  pointer-events: none;
}
dialog.nx-legacy-modal[open] {
  display: block;
  position: fixed!important;
  z-index: 10020!important;
}
/* Dialogues placés dans une section : Safari 14 garde parfois une position
   calculée hors écran après ouverture. Centrer uniquement ces petits modaux. */
dialog.nx-legacy-modal[open]:not(#mode-selector):not(.tour-dialog):not(#challenge-dialog) {
  top: 50%!important;
  left: 50%!important;
  right: auto!important;
  bottom: auto!important;
  transform: translate(-50%,-50%)!important;
  margin: 0!important;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
body.nx-legacy-dialog-lock { overflow: hidden; }
#mode-selector.nx-legacy-modal[open],.tour-dialog.nx-legacy-modal[open] {
  height: 100vh!important;
  height: 100dvh!important;
}
/* L'unité dvh n'existe pas sur iOS 14. Utiliser vh comme solution native. */
#mode-selector { height: 100vh; height: 100dvh; }
.tour-dialog { height: 100vh!important; height: 100dvh!important; }
.tour-dialog .tour-panel { max-height: 75vh; max-height: min(75dvh,650px); }
@media (max-width: 650px) {
  .tour-dialog .tour-panel { max-height: 54vh; max-height: 54dvh; }
}

/* Curseur : aucune différence visuelle sur iPad tactile. Sur Mac avec souris,
   reprendre la bague NEXOR déjà présente et fondre vers une barre d’insertion. */
@media (hover: hover) and (pointer: fine) {
  html body.nx-custom-cursor,html body.nx-custom-cursor * { cursor: none!important; }
  body.nx-custom-cursor .cursor-ring,
  body.nx-custom-cursor .cursor-dot,
  body.nx-custom-cursor .cursor-text {
    display: block!important;
    position: fixed;
    pointer-events: none!important;
    z-index: 10040;
    margin: 0!important;
    transform: translate(-50%,-50%) scale(1);
    transition: opacity .19s ease,transform .22s cubic-bezier(.2,.8,.2,1),width .22s ease,height .22s ease,background-color .22s ease,border-color .22s ease;
    will-change: opacity,transform;
  }
  body.nx-custom-cursor .cursor-ring { opacity: 1; }
  body.nx-custom-cursor .cursor-dot { opacity: 1; }
  body.nx-custom-cursor .cursor-text {
    width: 14px;
    height: 24px;
    border-radius: 0;
    opacity: 0;
    transform: translate(-50%,-50%) scale(.65);
  }
  body.nx-custom-cursor .cursor-text::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 2px;
    height: 20px;
    border-radius: 2px;
    background: #d2e5ed;
    box-shadow: 0 0 6px #17232a;
  }
  body.nx-custom-cursor .cursor-text::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 16px;
    border-top: 2px solid #d2e5ed;
    border-bottom: 2px solid #d2e5ed;
  }
  body.nx-custom-cursor.nx-cursor-text-mode .cursor-ring,
  body.nx-custom-cursor.nx-cursor-text-mode .cursor-dot {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.5);
  }
  body.nx-custom-cursor.nx-cursor-text-mode .cursor-text {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.nx-custom-cursor .cursor-ring,body.nx-custom-cursor .cursor-dot,body.nx-custom-cursor .cursor-text { transition: none!important; }
}
html.motion-reduced body.nx-custom-cursor .cursor-ring,
html.motion-reduced body.nx-custom-cursor .cursor-dot,
html.motion-reduced body.nx-custom-cursor .cursor-text { transition: none!important; }

