/* Vanalyser — thème inspiré de l'interface Valorant : bleu nuit, blanc cassé, rouge réservé à l'essentiel.
   Règles : coins nets, typographie condensée pour les titres et les chiffres, pas de dégradés ni d'effets. */
:root {
  color-scheme: dark;
  --bg: #0f1923;
  --surface: #141f2a;
  --surface-2: #1a2834;
  --surface-3: #22323f;
  --line: #2a3a47;
  --line-2: #3a4d5c;
  --ink: #ece8e1;
  --ink-2: #b7bcc0;
  --muted: #7d8a94;
  --accent: #ff4655;
  --accent-ink: #ffffff;
  --team-a: #3fd0c4;   /* équipe Blue : turquoise, comme les alliés en jeu */
  --team-b: #ff4655;   /* équipe Red */
  --critical: #ff4655;
  --serious: #f2a65a;
  --warning: #e6c34f;
  --info: #6fa8dc;
  --good: #3fd0c4;
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --cut: 8px;          /* angle coupé des boutons */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* un bloc masqué le reste, même s'il a son propre display */
html { scrollbar-color: var(--line-2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
code, .mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .92em; }
code { background: var(--surface-2); padding: 1px 5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h2, h3 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; margin: 0; font-weight: 700; }
h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 4px; height: 16px; background: var(--accent); flex: none; }
h3 { font-size: 14px; color: var(--ink); margin-bottom: 6px; }
svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* --- barre du haut ------------------------------------------------------- */
.topbar { display: flex; align-items: stretch; gap: 28px; padding: 0 24px; height: 56px; border-bottom: 1px solid var(--line); background: #0b131b; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.brand::before { content: ""; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.brand span { color: var(--accent); }
nav { display: flex; gap: 2px; align-items: stretch; }
nav button { position: relative; background: none; border: 0; color: var(--muted); padding: 0 14px; cursor: pointer; font: 600 14px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; transition: color .15s; }
nav button:hover { color: var(--ink); }
nav button.active { color: var(--ink); }
nav button.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--accent); }
#selection-info { margin-left: auto; align-self: center; font-size: 12px; letter-spacing: .04em; }
main { padding: 22px 24px 40px; max-width: 1560px; margin: 0 auto; }

/* --- panneaux et contrôles ----------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 0; padding: 8px 16px 8px 14px; cursor: pointer;
  font: 700 13px var(--font-cond); letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); transition: background .15s; }
.btn:hover { background: #ff5c69; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: none; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-2); background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: wait; }
/* boutons de ligne de tableau : discrets ; « à faire » souligné d'un liseré rouge, pas d'aplat */
.btn.row-btn { padding: 5px 12px; font-size: 12px; }
.btn.row-btn.todo { box-shadow: inset 0 0 0 1px var(--line-2), inset 3px 0 0 var(--accent); }
.btn.row-btn.todo:hover { box-shadow: inset 0 0 0 1px var(--ink-2), inset 3px 0 0 var(--accent); }
select, textarea, input:not([type=checkbox]):not([type=range]):not([type=color]):not([type=file]) {
  background: #0d161f; color: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 7px 9px; font: 400 13px/1.4 var(--font); letter-spacing: 0; text-transform: none; outline: none; transition: border-color .15s; }
#teamsrc-q, #prof-teamsrc-q { min-width: 280px; }
select:hover, textarea:hover, input:hover { border-color: var(--line-2); }
select:focus, textarea:focus, input:focus { border-color: var(--ink-2); }
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }
label { color: var(--ink-2); }
.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }
summary { cursor: pointer; color: var(--ink-2); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
summary:hover { color: var(--ink); }
.note { background: #1c1a12; border-left: 3px solid var(--warning); color: #e9dcb0; padding: 9px 14px; margin-bottom: 14px; font-size: 13px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font: 600 11px var(--font-cond); letter-spacing: .12em; text-transform: uppercase; border-bottom-color: var(--line-2); }
tbody tr:hover td, table tr:hover td { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font: 600 11px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag.ok { color: var(--good); border-color: rgba(63,208,196,.35); }
.tag.live { color: #fff; background: var(--accent); border-color: var(--accent); margin-left: 6px; }

/* --- match : tableau des scores, rounds ------------------------------------ */
.match-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); padding: 14px 20px; margin-bottom: 16px; }
.match-score:empty { display: none; }
.ms-team { display: flex; align-items: center; gap: 12px; font: 700 26px var(--font-cond); letter-spacing: .03em; text-transform: uppercase; min-width: 0; }
.ms-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-team.right { flex-direction: row-reverse; text-align: right; }
.ms-team img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.ms-num { display: flex; gap: 14px; align-items: baseline; font: 700 44px var(--font-cond); font-variant-numeric: tabular-nums; line-height: 1; }
@media (max-width: 700px) { .ms-team { font-size: 18px; } .ms-team img { width: 32px; height: 32px; } .ms-num { font-size: 32px; } }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.team-box { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-top: 3px solid var(--team-a); }
.team-box.Red { border-top-color: var(--team-b); }
.team-box h3 { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.pl { display: flex; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(42,58,71,.5); }
.pl:last-child { border-bottom: 0; }
.pl img { width: 26px; height: 26px; background: var(--surface-2); }
.pl .kda { margin-left: auto; color: var(--ink-2); font: 600 14px var(--font-cond); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rounds-strip { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 16px; align-items: stretch; }
.rounds-strip button { width: 36px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: 700 14px var(--font-cond); position: relative; padding: 0; transition: border-color .12s, color .12s; }
.rounds-strip button:hover { border-color: var(--line-2); color: var(--ink); }
.rounds-strip button.Blue { box-shadow: inset 0 -3px 0 var(--team-a); }
.rounds-strip button.Red { box-shadow: inset 0 -3px 0 var(--team-b); }
.rounds-strip button.active { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.rounds-strip button .dot { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; background: var(--warning); font-size: 0; }
.rounds-strip button .site { position: absolute; top: 2px; left: 4px; font: 700 9px var(--font-cond); color: var(--muted); }
.rounds-strip button .res { position: absolute; bottom: 5px; right: 3px; line-height: 0; color: var(--ink-2); }
.rounds-strip button .res svg { width: 10px; height: 10px; }
.rounds-strip .round-sep { width: 1px; margin: 0 7px; background: var(--line-2); }
.rounds-strip .round-sep.ot { width: auto; background: none; border-left: 1px dashed var(--line-2); padding-left: 6px; margin-left: 7px; display: flex; align-items: center; }
.rounds-strip .round-sep.ot span { font: 700 10px var(--font-cond); letter-spacing: .1em; color: var(--muted); }
.match-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .match-grid, .scoreboard { grid-template-columns: 1fr; } }
/* carré limité aussi par la hauteur de la fenêtre : outils + frise restent visibles sur un écran 1080p */
.map-stage { position: relative; width: 100%; max-width: max(420px, calc(100vh - 230px)); margin: 0 auto; aspect-ratio: 1; background: #0a1118; border: 1px solid var(--line); overflow: hidden; }
.map-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-canvas { cursor: grab; touch-action: none; }
#map-canvas.panning { cursor: grabbing; }
#draw-canvas { pointer-events: none; }
#draw-canvas.drawing { pointer-events: auto; cursor: crosshair; }
.toolbar { display: flex; gap: 2px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.toolbar button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--ink-2); width: 32px; height: 30px; cursor: pointer; transition: color .12s, border-color .12s; }
.toolbar button:hover { color: var(--ink); border-color: var(--line-2); }
.toolbar button.active { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.toolbar input[type=color] { width: 30px; height: 30px; border: 1px solid var(--line); background: none; padding: 2px; margin: 0 6px 0 4px; }
.toolbar .check { margin-left: 10px; font-size: 12px; }
.timeline { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.timeline .btn { width: 40px; padding: 8px 0; }
.timeline input[type=range] { flex: 1; accent-color: var(--accent); }
#time-label { font: 700 15px var(--font-cond); letter-spacing: .06em; min-width: 42px; }
.phase-bar { display: flex; height: 18px; margin-top: 8px; overflow: hidden; font: 600 10px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.phase-bar div { display: flex; align-items: center; justify-content: center; color: var(--ink); border-right: 2px solid var(--surface); overflow: hidden; white-space: nowrap; }
.warn-list { max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.warn { border: 1px solid var(--line); border-left: 3px solid var(--warning); padding: 9px 12px; background: var(--surface-2); cursor: pointer; transition: border-color .12s, background .12s; }
.warn.s3 { border-left-color: var(--critical); }
.warn.s2 { border-left-color: var(--serious); }
.warn.s0 { border-left-color: var(--info); }
.warn:hover { background: var(--surface-3); }
.warn.active { border-color: var(--ink-2); border-left-color: inherit; background: var(--surface-3); }
.warn .w-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.warn .w-detail { color: var(--ink-2); font-size: 12px; margin-top: 3px; }
.sev { font: 700 11px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sev.s3 { color: var(--critical); } .sev.s2 { color: var(--serious); } .sev.s1 { color: var(--warning); } .sev.s0 { color: var(--info); }
.action-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; }
.act { display: grid; grid-template-columns: 46px 20px 1fr; gap: 6px; align-items: center; padding: 5px 8px; cursor: pointer; color: var(--muted); border-left: 2px solid transparent; }
.act:hover { background: var(--surface-2); }
.act.past { color: var(--ink-2); }
.act.now { background: var(--surface-2); color: var(--ink); border-left-color: var(--accent); }
.act .t { font: 600 13px var(--font-cond); letter-spacing: .04em; }
.act > span:nth-child(2) { display: inline-flex; justify-content: center; }
.act .who { font-weight: 600; }
.act .Blue { color: var(--team-a); } .act .Red { color: var(--team-b); }
.act .badge { font: 600 10px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; padding: 0 5px; border: 1px solid var(--line-2); margin-left: 5px; color: var(--ink-2); }
#casts-list { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; color: var(--ink-2); }
#casts-list b { color: var(--ink); font-weight: 600; }
#casts-list .Blue { color: var(--team-a); } #casts-list .Red { color: var(--team-b); }
.action-list .Blue { color: var(--team-a); } .action-list .Red { color: var(--team-b); }
.vod-wrap { position: relative; margin-top: 10px; }
video { width: 100%; background: #000; max-height: 360px; border: 1px solid var(--line); }
.freeze { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; padding: 4px 10px; font: 700 12px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; }

/* --- joueur / coach -------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.tile .v { font: 700 30px var(--font-cond); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .l { color: var(--muted); font: 600 11px var(--font-cond); letter-spacing: .12em; text-transform: uppercase; }
.axis { border-left: 3px solid var(--accent); }
.axis ol { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12px; }
.bar { position: relative; height: 6px; background: var(--surface-3); min-width: 80px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); }
.settings { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.settings label { display: flex; flex-direction: column; gap: 5px; font: 600 12px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; }
.settings label input, .settings label select { font: 13px var(--font); letter-spacing: 0; text-transform: none; }
.settings .btn { align-self: flex-start; }
.settings .field-note { margin: -6px 0 4px; }
.settings label.check { flex-direction: row; font: 13px var(--font); letter-spacing: 0; text-transform: none; }

/* --- langue ------------------------------------------------------------------------ */
.lang-switch { display: flex; align-self: center; margin-left: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.lang-switch button { background: none; border: 0; color: var(--muted); padding: 4px 9px; cursor: pointer; font: 700 12px var(--font-cond); letter-spacing: .1em; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--surface-3); color: var(--ink); }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-top .brand { margin: 0; }

/* --- admin : rapports d'erreur ---------------------------------------------------------- */
.badge-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: var(--accent); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.err-detail { white-space: pre-wrap; word-break: break-word; font: 11px/1.45 "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--ink-2); margin-top: 6px; max-height: 260px; overflow: auto; }
#access-errors summary { text-transform: none; letter-spacing: 0; font: 12px var(--font); color: var(--ink); }

/* --- comptes (version en ligne) ------------------------------------------------ */
.user-box { display: flex; align-items: center; gap: 12px; margin-left: 16px; font-size: 13px; color: var(--ink-2); }
#view-access td.wrap { white-space: normal; max-width: 320px; }
#view-access td input:not([type=checkbox]) { width: 140px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-card .panel { padding: 22px 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card label { display: flex; flex-direction: column; gap: 5px; font: 600 12px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; }
.auth-card label input, .auth-card label select, .auth-card label textarea { font: 13px var(--font); letter-spacing: 0; text-transform: none; }
.auth-card .btn { align-self: stretch; padding: 10px 16px; }
.auth-card .switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-card .switch button { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.auth-card .switch button:hover { text-decoration-color: var(--accent); }
.auth-msg { padding: 9px 12px; font-size: 13px; border-left: 3px solid var(--critical); background: var(--surface-2); }
.auth-msg.ok { border-left-color: var(--good); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--good); padding: 11px 16px; max-width: 440px; z-index: 10; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.toast.err { border-left-color: var(--critical); }
.toast a, #match-note a { color: inherit; text-decoration: underline; word-break: break-all; }

/* --- copilote --------------------------------------------------------------- */
.subtabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.subtabs button { position: relative; background: none; color: var(--muted); border: 0; padding: 10px 18px; cursor: pointer; font: 600 13px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; }
.subtabs button:hover { color: var(--ink); }
.subtabs button.active { color: var(--ink); }
.subtabs button.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--accent); }
.subtabs button:disabled { opacity: .4; cursor: default; }
.teamsrc-results { display: flex; flex-wrap: wrap; gap: 6px; }
.teamsrc-team { display: flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); padding: 6px 12px 6px 8px; cursor: pointer; font: inherit; transition: border-color .12s; }
.teamsrc-team:hover { border-color: var(--ink-2); }
.teamsrc-team img { width: 24px; height: 24px; object-fit: contain; }
.team-logo { width: 36px; height: 36px; object-fit: contain; }
.preload { margin-top: 12px; }
.preload textarea { width: 100%; max-width: 420px; display: block; margin: 8px 0; }
.veto-reco { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.veto-reco .panel { margin-bottom: 0; }
ul.reco { margin: 6px 0 0; padding-left: 0; list-style: none; }
ul.reco li { padding: 6px 0 6px 12px; border-left: 2px solid var(--line-2); margin-bottom: 4px; }
ul.reco li b { font-family: var(--font-cond); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.tag.conf-faible { color: var(--critical); border-color: rgba(255,70,85,.45); }
.tag.conf-moyenne { color: var(--serious); border-color: rgba(242,166,90,.45); }
.tag.conf-bonne { color: var(--good); border-color: rgba(63,208,196,.45); }
.tag.temper.ctrl { color: var(--info); border-color: rgba(111,168,220,.4); }
.tag.temper.duel { color: var(--serious); border-color: rgba(242,166,90,.4); }
.roster-warn { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--serious); background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
tr.off-pool td { opacity: .45; }
.vt { display: inline-block; font: 700 10px var(--font-cond); letter-spacing: .08em; padding: 0 4px; margin-right: 3px; border: 1px solid var(--line-2); }
.vt.ban { color: var(--critical); border-color: rgba(255,70,85,.4); }
.vt.pick { color: var(--good); border-color: rgba(63,208,196,.4); }
.profile-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 8px; }
.profile-forms textarea { width: 100%; margin-bottom: 8px; }
.profile-forms > div { display: flex; flex-direction: column; gap: 8px; }
.tac-drop { border: 1px dashed var(--line-2); padding: 26px; text-align: center; color: var(--ink-2); cursor: pointer; margin-bottom: 12px; background: #0d161f; transition: border-color .12s, color .12s; }
.tac-drop.over, .tac-drop:hover { border-color: var(--ink); color: var(--ink); }
.tac-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tac-thumb { position: relative; } .tac-thumb img { height: 110px; border: 1px solid var(--line); display: block; }
.tac-thumb button { position: absolute; top: 4px; right: 4px; display: inline-flex; padding: 3px; background: rgba(11,19,27,.85); color: var(--ink); border: 1px solid var(--line-2); cursor: pointer; }
.tac-ctx { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; margin-bottom: 14px; }
.tac-ctx label { display: flex; flex-direction: column; gap: 4px; font: 600 11px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tac-ctx label.wide { grid-column: 1 / -1; }
.tac-ctx input, .tac-ctx select, .tac-ctx textarea { font: 13px var(--font); letter-spacing: 0; text-transform: none; }
.small-btn { align-self: flex-start; padding: 4px 10px !important; font-size: 11px !important; margin-top: 4px; }
.tac-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tac-options .panel { margin-bottom: 0; border-top: 2px solid var(--accent); }
.tac-options ol { padding-left: 18px; margin: 8px 0; } .tac-options li { margin-bottom: 3px; }
.tac-hist { padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink-2); } .tac-hist:hover { color: var(--ink); }
table.core-ids { margin: 6px 0; width: auto; } table.core-ids td { padding: 4px 10px 4px 0; border: 0; }
table.core-ids input.rid { width: 200px; }
.manual-ids { margin: 4px 0; }
p.sig { font: 700 24px var(--font-cond); letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 6px; }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 5px 0; }
.kv b { font: 700 15px var(--font-cond); letter-spacing: .04em; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 6px; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hist-bar { width: 100%; background: var(--ink-2); min-height: 2px; }
.hist-col:hover .hist-bar { background: var(--accent); }
.hist-col span { font: 600 10px var(--font-cond); color: var(--muted); margin-top: 4px; white-space: nowrap; }
.hist-col em { font: 700 11px var(--font-cond); font-style: normal; color: var(--ink-2); margin-bottom: 3px; }
.hist-col.early .hist-bar { background: var(--accent); }
.hist { height: 130px; }
/* sélecteur de map du profil */
.map-switch { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 16px; border: 1px solid var(--line); background: var(--surface); width: fit-content; max-width: 100%; }
.map-switch button { background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); padding: 9px 16px; cursor: pointer; font: 700 13px var(--font-cond); letter-spacing: .1em; text-transform: uppercase; }
.map-switch button:last-child { border-right: 0; }
.map-switch button span { font-weight: 600; color: var(--muted); margin-left: 4px; opacity: .8; }
.map-switch button:hover { color: var(--ink); }
.map-switch button.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
tr.clickable { cursor: pointer; }
.panel.pistol { border-top: 2px solid var(--warning); }
.panel.pistol p { margin: 6px 0 0; }
table.peek td { vertical-align: middle; }
tr.peek-detail > td { background: #0d161f; padding: 6px 12px 12px 28px; border-left: 2px solid var(--accent); }
table.peek-maps th, table.peek-maps td { padding: 6px 10px; font-size: 12px; vertical-align: top; }
.peek-toggle.open { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
td.ok { color: var(--good); font-weight: 600; }
.act img.abil { width: 16px; height: 16px; }

/* --- annuaire des joueurs ------------------------------------------------------- */
.player-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.player-hit { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; cursor: pointer; font: inherit; }
.player-hit:hover { border-color: var(--line-2); background: var(--surface-3); }
.player-hit img, .player-hit .ph { width: 36px; height: 36px; object-fit: cover; flex: none; background: var(--surface-3); }
.player-hit .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.player-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.player-photo { width: 96px; height: 96px; object-fit: cover; background: var(--surface-2); }
.player-head .player-id { flex: 1; min-width: 220px; }
.player-ids { min-width: 260px; }
.team-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.team-head .player-id { flex: 1; min-width: 220px; }
.team-logo { width: 72px; height: 72px; object-fit: contain; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.roster-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: 10px; cursor: pointer; font: inherit; }
.roster-card:hover { border-color: var(--line-2); background: var(--surface-3); }
.roster-card img, .roster-card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-3); margin-bottom: 4px; }
.roster-card b { font: 700 18px var(--font-cond); letter-spacing: .03em; }
.team-members { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.team-mini { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.chip-x { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0 0 0 4px; }
.chip-x:hover { color: var(--accent); }
.how-to { margin-top: 10px; color: var(--ink-2); }
.how-to summary { cursor: pointer; color: var(--muted); }
.how-to p { margin: 6px 0 0; line-height: 1.5; max-width: 900px; }
tr.weak td, .duel-zone.weak { opacity: .45; }
.eco-panel { margin-top: 14px; }
.eco-panel .panel-head { margin-bottom: 8px; }
.eco { display: grid; grid-template-columns: 1fr; gap: 8px; }
.eco-row.no-live { grid-template-columns: 30px minmax(70px, 1fr) 70px 150px 100px; }
.eco-kda { white-space: nowrap; }
.eco-kda i { color: var(--muted); font-style: normal; margin: 0 2px; }
.ult-dots { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 92px; }
.ult-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dotted var(--ink-2); box-sizing: border-box; }
.ult-dots i.on { background: var(--ink); border: 1.5px solid var(--ink); }
.eco-ult.ready { color: var(--warning); letter-spacing: .06em; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0; }
.stepper .btn { min-width: 52px; font-size: 16px; }
.stepper .btn:disabled { opacity: .35; cursor: default; }
.lib-filters { margin: 4px 0 12px; gap: 12px; }
.lib-filters input[type=search] { min-width: 300px; }
.eco-team { border-top: 3px solid var(--team-a); background: var(--surface-2); }
.eco-team.Red { border-top-color: var(--team-b); }
.eco-head { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.eco-head .small:last-child { margin-left: auto; }
.eco-row { display: grid; grid-template-columns: 30px minmax(70px, 1fr) 96px 64px 150px 92px 124px; gap: 8px; align-items: center;
  padding: 5px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.eco-row:last-child { border-bottom: 0; }
.eco-agent { width: 28px; height: 28px; background: var(--surface-3); display: block; }
.eco-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-ult { color: var(--warning); font-family: var(--font-cond); font-weight: 700; white-space: nowrap; }
.eco-ult svg { width: 12px; height: 12px; vertical-align: -1px; }
.eco-money { white-space: nowrap; }
.eco-gun { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.eco-spells { display: flex; gap: 4px; }
.spell { position: relative; width: 28px; height: 28px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; }
.spell img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.spell.empty img, .spell.empty .spell-txt { opacity: .25; }
.spell b { position: absolute; right: 1px; bottom: -1px; font-size: 11px; line-height: 1; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.spell i { position: absolute; left: 2px; top: 2px; width: 5px; height: 5px; background: var(--good); }
.spell-txt { font-size: 9px; }
@media (max-width: 700px) { .eco-row, .eco-row.no-live { grid-template-columns: 26px 1fr 80px 60px; } .eco-gun, .eco-money, .eco-spells { display: none; } }
.history-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.hist-person { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); padding: 8px 12px; cursor: pointer; font: inherit; }
.hist-person:hover { border-color: var(--line-2); background: var(--surface-3); }
#view-history .bad { color: var(--critical); }
#view-history .ok { color: var(--good); }
#history-table tr.hist-bad td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
.player-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 6px; }
.player-agents { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.agent-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 12px 4px 4px; }
.agent-chip img { width: 34px; height: 34px; background: var(--surface-3); }
.agent-chip > span { display: flex; flex-direction: column; line-height: 1.25; }
.duel-filters { margin: 10px 0 14px; gap: 14px; }
.duel-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.duel-map { position: relative; flex: 1 1 420px; max-width: min(760px, max(420px, calc(100vh - 140px))); }
.duel-map canvas { width: 100%; aspect-ratio: 1; display: block; cursor: crosshair; background: var(--surface-2); }
.duel-tip { position: absolute; background: var(--surface); border: 1px solid var(--line-2); padding: 6px 10px; font-size: 12px;
  pointer-events: none; white-space: nowrap; z-index: 2; }
.duel-tip.flip { transform: translateX(calc(-100% - 28px)); }
.duel-stats { flex: 0 1 240px; min-width: 200px; }
.duel-big { font-family: var(--font-cond); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.duel-big .ok, .duel-zone .ok { color: var(--good); }
.duel-big .bad, .duel-zone .bad { color: var(--critical); }
.duel-zone { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 3px 0; font-size: 13px; }

/* --- onglets par compte / maintenance --------------------------------------------- */
nav button.maint::before, .subtabs button.maint::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--warning); vertical-align: 2px; }
.maint-tag { color: var(--warning); border-color: rgba(230,195,79,.4); }
.feat-pick summary { text-transform: none; letter-spacing: 0; font: 12px var(--font); color: var(--ink); }
.feat-list { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; }

/* --- envoi de replays ----------------------------------------------------------------- */
.vrf-drop { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
#vrf-status:not(:empty) { margin-bottom: 10px; }
