/* Azimut : système de design (thème tactique sombre, charbon et olive, accent ambre).
   Échelles : espacement 4 px, typographie 11 à 34 px, rayons 4 à 20 px, trois élévations. */

:root {
  /* surfaces */
  --bg-0: #0a0c09;
  --bg: #0f120e;
  --bg-1: #141812;
  --bg-2: #191e16;
  --bg-3: #20261c;
  --bg-4: #283022;
  --line: #252b21;
  --line-2: #333b2d;
  --line-3: #4a5440;
  --hi: rgba(255, 255, 255, .035);
  /* texte */
  --text: #eef0e6;
  --text-2: #c0c6b2;
  --text-3: #8e957f;
  --text-4: #6b7260;
  /* couleurs d'accent et d'état */
  --amber: #ffb000;
  --amber-2: #ffc845;
  --amber-3: #ffdc8a;
  --amber-dim: rgba(255, 176, 0, .13);
  --amber-line: #6b4e00;
  --olive: #6f7d3c;
  --olive-2: #9aab58;
  --olive-dim: rgba(154, 171, 88, .14);
  --ok: #7fc35a;
  --ok-2: #b9ec9b;
  --ok-dim: rgba(127, 195, 90, .14);
  --ok-line: #3e6a28;
  --bad: #ff5a4f;
  --bad-2: #ffb0aa;
  --bad-dim: rgba(255, 90, 79, .14);
  --bad-line: #6d2a25;
  --info: #6cb6ff;
  --info-2: #a9d4ff;
  --info-dim: rgba(108, 182, 255, .13);
  --info-line: #2a4d72;
  --violet: #b48cff;
  --loot: #d19bff;
  --scav: #6cb6ff;
  --shared: #e7d36b;
  --pro-a: #ffe1a1;
  --pro-b: #f0b23a;
  --pro-c: #c9821a;
  --pro-grad: linear-gradient(135deg, var(--pro-a), var(--pro-b) 55%, var(--pro-c));
  /* typographie */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-num: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, Roboto, sans-serif;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;
  /* espacement */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  /* formes et ombres */
  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --e1: inset 0 1px 0 var(--hi), 0 1px 2px rgba(0, 0, 0, .3);
  --e2: inset 0 1px 0 var(--hi), 0 8px 24px rgba(0, 0, 0, .38);
  --e3: 0 22px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t1: .12s;
  --t2: .2s;
  --t3: .32s;
  /* gabarit */
  --topbar-h: 56px;
  --rail-w: 84px;
  --left-w: 300px;
  --side-w: 384px;
  --peek: 136px;
  color-scheme: dark;
}

/* Couleurs adaptées (Paramètres, Général) : pour qui distingue mal le rouge du vert. Le vert « bon » passe au
   bleu, le rouge « mauvais » à l'orange foncé, le bleu d'information au gris clair (voir PALETTES dans poi.js). */
html[data-cv="rg"] {
  --ok: #56b4e9;
  --ok-2: #b5e0f8;
  --ok-dim: rgba(86, 180, 233, .16);
  --ok-line: #1f5a7d;
  --bad: #d55e00;
  --bad-2: #ffb38a;
  --bad-dim: rgba(213, 94, 0, .2);
  --bad-line: #7a3600;
  --info: #dfe6ee;
  --info-2: #f2f5f8;
  --info-dim: rgba(223, 230, 238, .12);
  --info-line: #5b6570;
  --scav: #dfe6ee;
  --violet: #f4f4f4;
  --loot: #f0e442;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--fs-base)/1.45 var(--font);
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--amber-2); text-underline-offset: 2px; }
p { margin: 0; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  font: 600 11px/1 var(--font-num); letter-spacing: .02em;
  border: 1px solid var(--line-3); border-bottom-width: 2px; border-radius: 5px;
  background: linear-gradient(180deg, var(--bg-4), var(--bg-3)); color: var(--text-2);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 6000; background: var(--amber); color: #111; padding: 8px 12px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 2px; border-radius: 4px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.h2 { font: 700 15px/1.2 var(--font-display); margin: 0; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.h3 { display: flex; align-items: center; gap: 6px; font: 700 var(--fs-xs)/1.2 var(--font); margin: var(--s5) 0 var(--s2); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.h3 .ico { width: 15px; height: 15px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ démarrage */

.boot { display: none; }
body.booting > :not(.boot):not(.sprite) { visibility: hidden; }
body.booting .boot {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(60% 50% at 50% 45%, #171c13, var(--bg-0));
}
.boot__mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-2); box-shadow: var(--e2); color: var(--amber); }
.boot__mark .ico { width: 34px; height: 34px; }
.boot__bar { width: 120px; height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; position: relative; }
.boot__bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--amber); border-radius: 3px; animation: bootbar 1.1s var(--ease) infinite; }

/* ------------------------------------------------------------------ boutons, champs */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: linear-gradient(180deg, var(--bg-4), var(--bg-3)); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--fs-md); white-space: nowrap; letter-spacing: .01em;
  box-shadow: var(--e1);
  transition: background var(--t1), border-color var(--t1), transform var(--t1), box-shadow var(--t1);
}
.btn:hover:not(:disabled) { border-color: var(--line-3); background: linear-gradient(180deg, #2f3828, var(--bg-4)); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; }
.btn .ico { width: 17px; height: 17px; }
.btn--accent { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #1a1200; border-color: #e09a00; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 14px rgba(255, 176, 0, .18); }
.btn--accent:hover:not(:disabled) { background: linear-gradient(180deg, var(--amber-3), var(--amber-2)); border-color: var(--amber-2); }
.btn--pro { background: var(--pro-grad); color: #2a1a00; border-color: #d8961f; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(240, 178, 58, .22); }
.btn--pro:hover:not(:disabled) { filter: brightness(1.06); border-color: var(--pro-a); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-3); border-color: var(--line-2); color: var(--text); }
.btn--danger { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad-line); box-shadow: none; }
.btn--danger:hover:not(:disabled) { background: rgba(255, 90, 79, .22); border-color: var(--bad); }
.btn--sm { height: 30px; padding: 0 11px; font-size: var(--fs-sm); }
.btn--lg { height: 44px; padding: 0 20px; font-size: var(--fs-base); border-radius: var(--r-md); }
.btn--block { width: 100%; margin-top: var(--s3); }
.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none;
  background: transparent; color: var(--text-2); border: 1px solid transparent; border-radius: var(--r-sm);
  transition: background var(--t1), color var(--t1), border-color var(--t1);
}
.iconbtn:hover { background: var(--bg-3); color: var(--text); }
.iconbtn[aria-pressed="true"] { color: var(--amber-2); }
.iconbtn--sm { width: 28px; height: 28px; }
.iconbtn--spark { color: var(--amber-2); }
.input {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--bg-0); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--text); transition: border-color var(--t1), box-shadow var(--t1);
}
.input::placeholder { color: var(--text-4); }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px var(--amber-dim); }
.input--sm { height: 32px; font-size: var(--fs-md); }
.input--mono { font-family: var(--font-num); letter-spacing: .08em; text-transform: uppercase; }
select.input { padding-right: 8px; }
.field { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.field > .input, .field > select { font-size: var(--fs-base); color: var(--text); font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-md); color: var(--text-2); cursor: pointer; line-height: 1.35; }
.check input { margin: 1px 0 0; accent-color: var(--amber); width: 16px; height: 16px; flex: none; }

/* interrupteur */
.switch { position: relative; display: flex; align-items: center; gap: var(--s4); padding: 10px 0; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.switch__label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: var(--fs-base); }
.switch__hint { font-size: var(--fs-sm); color: var(--text-3); }
.switch__input { position: absolute; opacity: 0; width: 44px; height: 26px; right: 0; margin: 0; cursor: pointer; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--bg-4); border: 1px solid var(--line-3); transition: background var(--t2), border-color var(--t2); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform var(--t2) var(--ease), background var(--t2); }
.switch__input:checked + .switch__track { background: var(--amber); border-color: var(--amber); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(18px); background: #1a1200; }
.switch__input:focus-visible + .switch__track { outline: 2px solid var(--amber-2); outline-offset: 2px; }
.switch.is-disabled { cursor: default; }
.switch.is-disabled .switch__track { opacity: .45; }
.switch.is-disabled .switch__label { color: var(--text-3); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; background: var(--bg-4); color: var(--text-2);
  white-space: nowrap; border: 1px solid transparent;
}
.chip .ico { width: 13px; height: 13px; }
.chip--floor { background: var(--info-dim); color: var(--info-2); }
.chip--need { background: var(--amber-dim); color: var(--amber-2); }
.chip--fir { background: var(--ok-dim); color: var(--ok-2); }
.chip--ok { background: var(--ok-dim); color: var(--ok-2); }
.chip--warn { background: var(--amber-dim); color: var(--amber-2); }
.chip--bad { background: var(--bad-dim); color: var(--bad-2); }
.chip--info { background: var(--info-dim); color: var(--info-2); }
.chip--line { background: transparent; border-color: var(--line-3); color: var(--text-2); }
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2);
}
.seg { display: inline-flex; background: var(--bg-0); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg--wrap { flex-wrap: wrap; }
.seg--full { display: flex; }
.seg--full > button { flex: 1; justify-content: center; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--text-2); height: 30px; padding: 0 12px; border-radius: 5px;
  font-size: var(--fs-md); font-weight: 600; white-space: nowrap; transition: background var(--t1), color var(--t1);
}
.seg button:hover { color: var(--text); background: var(--bg-3); }
.seg button .ico { width: 15px; height: 15px; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--olive); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.seg button .n { opacity: .72; font-weight: 500; margin-left: 2px; font-family: var(--font-num); }

/* ------------------------------------------------------------------ barre du haut */

.topbar {
  grid-row: 1; position: relative; z-index: 1300;
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 0 12px 0 14px;
  background: linear-gradient(180deg, #161a13, #11140f);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--amber);
  background: radial-gradient(120% 120% at 30% 20%, #262d1f, #141812); border: 1px solid var(--line-2); box-shadow: var(--e1);
}
.brand__mark .ico { width: 17px; height: 17px; }
.brand__name { font: 700 16px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.topbar__sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.ed-btn { padding: 0; border: 0; background: none; flex: none; border-radius: 999px; }
.ed-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 700 10.5px/1 var(--font-num); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line-3); color: var(--text-2); background: var(--bg-2);
}
.ed-badge__ico { width: 12px; height: 12px; }
.ed-badge--pro, .ed-badge--trial { background: var(--pro-grad); color: #2a1a00; border-color: rgba(255, 225, 161, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 2px 10px rgba(240, 178, 58, .25); }
.ed-badge--trial { background: linear-gradient(135deg, #2a2210, #3a2c0c); color: var(--pro-a); border-color: #8a6420; box-shadow: none; }
.ed-badge--free { color: var(--text-2); }
.ed-badge--dev { color: var(--olive-2); border-color: #4d5a2a; background: var(--olive-dim); }
.ed-btn:hover .ed-badge { filter: brightness(1.12); }
.pill--mode { background: var(--olive-dim); color: #cfe08d; border-color: #4d5a2a; }
.pill--mode[data-mode="pvp-season"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber-line); }
.pill--mode[data-mode="regular"] { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad-line); }
.pill--mode:empty { display: none; }
.mapsel {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 10px; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-3);
  transition: border-color var(--t1);
}
.mapsel:hover { border-color: var(--line-3); }
.mapsel select {
  height: 34px; min-width: 0; max-width: 200px; border: 0; background: transparent; color: var(--text);
  font-weight: 700; font-size: var(--fs-base); padding: 0 4px; outline: none; cursor: pointer;
}
.mapsel select option, .mapsel select optgroup { background: var(--bg-2); color: var(--text); }
.mapsel:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.raid { display: flex; align-items: center; gap: 10px; flex: none; }
.pill--status[data-s="in_raid"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }
.pill--status[data-s="in_raid"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; box-shadow: 0 0 0 3px rgba(127, 195, 90, .2); animation: pulse 1.8s ease-in-out infinite; }
.pill--status[data-s="matching"], .pill--status[data-s="loading"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber-line); }
.pill--status[data-s="ended"] { background: var(--info-dim); color: var(--info-2); border-color: var(--info-line); }
.pill--status:empty { display: none; }
.timer { display: inline-flex; align-items: baseline; gap: 6px; }
.timer__val { font: 700 25px/1 var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--text); }
.timer__src { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.timer[data-level="low"] .timer__val { color: var(--amber); }
.timer[data-level="critical"] .timer__val { color: var(--bad); animation: blink 1s steps(2, start) infinite; }
.poschip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; min-width: 0;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden;
}
.poschip .ico { width: 15px; height: 15px; }
.poschip span { overflow: hidden; text-overflow: ellipsis; }
.poschip[data-src="screenshot"], .poschip[data-src="log"] { color: var(--ok-2); border-color: var(--ok-line); }
.poschip[data-src="vision"] { color: var(--info-2); border-color: var(--info-line); }
.poschip[data-src="manual"], .poschip[data-src="spawn"] { color: var(--amber-2); border-color: #5c4710; }
.poschip[data-age="stale"] { color: var(--amber); border-color: var(--amber-line); }
.poschip[data-age="old"] { color: var(--bad-2); border-color: var(--bad-line); }
.poschip--btn { cursor: pointer; font-family: inherit; }
#scav-chip[data-state="ready"] { color: var(--ok-2); border-color: var(--ok-line); }
.poschip--btn[data-state="off"] { color: var(--amber-2); border-color: #5c4710; border-style: dashed; }
.poschip--btn[data-state="on"] { color: var(--ok-2); border-color: var(--ok-line); }
.poschip--btn[data-state="blocked"] { color: var(--bad-2); border-color: var(--bad-line); }
.topbar__spacer { flex: 1 1 0; min-width: 0; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); flex: none; padding-left: 4px; }
.conn__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.conn[data-s="open"] .conn__dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.conn[data-s="connecting"] .conn__dot, .conn[data-s="reconnecting"] .conn__dot { background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
.conn[data-s="closed"] .conn__dot { background: var(--bad); }
body:not([data-view="map"]) .map-only { display: none !important; }

/* recherche d'objets */
.search { position: relative; flex: 0 1 300px; min-width: 150px; }
.search__box {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px;
  background: var(--bg-0); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-3);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.search__box:hover { border-color: var(--line-3); }
.search__box:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.search__box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 34px; color: var(--text); }
.search__box input::placeholder { color: var(--text-4); }
.search__box input::-webkit-search-cancel-button { filter: invert(.7); }
.search__kbd { flex: none; }
.search__results {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(460px, 92vw); max-height: min(70vh, 580px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e3); padding: 6px;
  animation: pop-in var(--t2) var(--ease);
}
.sres { display: grid; grid-template-columns: 44px 1fr auto; gap: 3px 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; }
.sres[aria-selected="true"], .sres:hover { background: var(--bg-4); }
.sres__icon { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-0); object-fit: contain; grid-row: span 2; border: 1px solid var(--line); }
.sres__name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sres__val { font: 700 var(--fs-base)/1 var(--font-num); color: var(--amber-2); text-align: right; white-space: nowrap; }
.sres__sub { font-size: var(--fs-sm); color: var(--text-3); min-width: 0; grid-column: 2 / 4; }
.sres__need { color: var(--amber-2); }
.sres__where { color: var(--ok-2); }
.sres__go { grid-column: 3; grid-row: 2; }
.search__msg { padding: 12px; color: var(--text-3); font-size: var(--fs-md); }
.search__foot { padding: 8px 10px 4px; font-size: var(--fs-xs); color: var(--text-4); border-top: 1px solid var(--line); margin-top: 4px; }

/* ------------------------------------------------------------------ coque : rail et contenu */

.shell { grid-row: 2; min-height: 0; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.rail {
  min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 6px;
  background: linear-gradient(180deg, #121510, #0e110d); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 9px 0 8px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent; color: var(--text-3); text-decoration: none;
  font-size: 10px; font-weight: 700; letter-spacing: 0; text-align: center; line-height: 1.1;
  transition: background var(--t1), color var(--t1), border-color var(--t1);
}
.rail__item .ico { width: 22px; height: 22px; }
.rail__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__item:hover { color: var(--text); background: var(--bg-2); }
.rail__item[aria-current="page"], .rail__item[aria-expanded="true"] { color: var(--amber-2); background: linear-gradient(180deg, rgba(255, 176, 0, .12), rgba(255, 176, 0, .05)); border-color: rgba(255, 176, 0, .22); }
.rail__item[aria-current="page"]::before { content: ""; position: absolute; left: -7px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.rail__item--spark .ico { color: var(--amber-2); }
.rail__item--sm { padding: 7px 2px; }
.rail__item--sm .ico { width: 19px; height: 19px; }
.rail__spacer { flex: 1; min-height: 12px; }
.rail__lock { position: absolute; top: 5px; right: 9px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-0); color: var(--pro-b); border: 1px solid #6b4e15; }
.rail__lock .ico { width: 9px; height: 9px; stroke-width: 2.6; }
.rail__update {
  display: grid; justify-items: center; gap: 3px; padding: 7px 2px; margin-top: 4px; border-radius: var(--r-md);
  color: var(--ok-2); background: var(--ok-dim); border: 1px solid var(--ok-line); text-decoration: none; font-size: 10px; font-weight: 700; text-align: center;
}
.rail__update .ico { width: 18px; height: 18px; }
.content { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
body:not([data-view="map"]) #view-map { visibility: hidden; }
body:not([data-view="map"]) .ec-route, body:not([data-view="map"]) .ec-zone, body:not([data-view="map"]) .ec-tgt--first { animation-play-state: paused; }

/* ------------------------------------------------------------------ vue carte */

.layout {
  position: absolute; inset: 0; min-height: 0;
  display: grid; grid-template-columns: var(--left-w) minmax(0, 1fr) var(--side-w);
}
body.no-left .layout { grid-template-columns: 0 minmax(0, 1fr) var(--side-w); }
body.no-side .layout { grid-template-columns: var(--left-w) minmax(0, 1fr) 0; }
body.no-left.no-side .layout { grid-template-columns: 0 minmax(0, 1fr) 0; }
body.no-left .left, body.no-side .side { visibility: hidden; }

.left, .side { min-width: 0; min-height: 0; background: var(--bg-1); display: flex; flex-direction: column; overflow: hidden; }
.left { border-right: 1px solid var(--line); }
.side { border-left: 1px solid var(--line); }
.left__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 10px 16px; }
.left__body { flex: 1; overflow: auto; padding: 0 12px 16px; overscroll-behavior: contain; }

/* quêtes de la carte */
.qcounts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 11px 9px; box-shadow: var(--e1); }
.qcard--focus { border-color: var(--amber-line); box-shadow: inset 3px 0 0 var(--amber), var(--e1); }
.qcard__head { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.qcard__title { flex: 1 1 150px; min-width: 0; }
.qcard__name { font-weight: 700; font-size: var(--fs-base); line-height: 1.25; }
.qcard__trader { font-size: var(--fs-sm); color: var(--text-3); }
.qcard__acts { display: flex; gap: 4px; flex: none; margin-left: auto; }
.focusbtn, .guidebtn, .ignorebtn {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-3); border-radius: 999px; font-size: var(--fs-xs); font-weight: 700;
}
.focusbtn:hover, .guidebtn:hover, .ignorebtn:hover { color: var(--text); border-color: var(--line-3); }
.focusbtn .ico, .guidebtn .ico, .ignorebtn .ico { width: 14px; height: 14px; }
.qcard--ignored { opacity: .55; }
.qcard__keys { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 2px; padding: 6px 8px; border-radius: var(--r-sm, 8px); border: 1px solid var(--amber-line); background: var(--amber-dim); color: var(--amber-2); font-size: var(--fs-sm); font-weight: 600; }
.qcard__keys .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.qcard__keys--owned { border-color: var(--ok-line); background: var(--ok-dim); color: var(--ok); }
.qkey { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qkey + .qkey { margin-top: 4px; }
.qkey__btn { flex: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; padding: 2px 9px; cursor: pointer; opacity: .85; }
.qkey__btn:hover { opacity: 1; }
.bosshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bosslist { display: grid; gap: 6px; margin-top: 8px; }
.bossrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); }
.bossrow__pct { flex: none; min-width: 58px; font-size: var(--fs-lg, 20px); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bossrow__pct[data-level="high"] { color: var(--bad-2); }
.bossrow__pct[data-level="mid"] { color: var(--amber-2); }
.bossrow__body { flex: 1; min-width: 0; }
.bossrow__name { font-weight: 700; }
.bossrow__kind { margin-left: 8px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); }
.bossrow__zone { padding: 0; border: 0; background: none; color: var(--amber-2); font: inherit; cursor: pointer; text-align: left; }
.bossrow__zone:hover { text-decoration: underline; }
.bossrow__note { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.bossrow__mine { font-size: var(--fs-sm); color: var(--amber-2); margin-top: 3px; font-weight: 600; }
.raidprompt__boss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.raidprompt__bosslabel { font-size: var(--fs-sm); color: var(--text-3); margin-right: 2px; }
.bosschip { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; padding: 3px 10px; cursor: pointer; }
.bosschip[aria-pressed="true"] { background: var(--amber-dim); border-color: var(--amber-line); color: var(--amber-2); }
.returnbtn { width: 100%; justify-content: center; margin-bottom: 8px; }
.returnbtn[aria-pressed="true"] { background: var(--ok-dim); border-color: var(--ok-line); color: var(--ok); }
.bossrow__zones { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-sm); }
.bossrow__zones li { display: flex; justify-content: space-between; gap: 10px; }
.qcard--ignored .qcard__name { text-decoration: line-through; text-decoration-color: var(--text-3); }
.qcard--ignored:hover, .qcard--ignored:focus-within { opacity: 1; }
.guidebtn { padding: 0 7px; }
.focusbtn[aria-pressed="true"] { background: var(--amber-dim); border-color: var(--amber-line); color: var(--amber-2); }
.focusbtn[aria-pressed="true"] .ico { fill: currentColor; }
.olist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.obj { display: flex; gap: 8px; align-items: flex-start; padding: 5px 5px; border-radius: 6px; font-size: var(--fs-md); line-height: 1.35; color: var(--text); cursor: pointer; }
.obj:hover { background: var(--bg-3); }
.obj input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ok); flex: none; }
.obj--done { color: var(--text-3); text-decoration: line-through; }
.obj--off { color: var(--text-3); }
.objrow { display: flex; align-items: flex-start; gap: 4px; }
.objrow > .obj { flex: 1; min-width: 0; }
.obj__place {
  display: inline-flex; align-items: center; gap: 4px; flex: none; margin-top: 3px; padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent; color: var(--amber-2); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer;
}
.obj__place:hover { background: var(--amber-dim); }
.obj__place .ico { width: 13px; height: 13px; }
.map--placing { cursor: crosshair; }
.map--placing .leaflet-interactive { cursor: crosshair; }
.ec-placing {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px;
  max-width: min(560px, 90%); padding: 8px 10px 8px 14px; border-radius: 10px; background: rgba(16, 19, 13, .94);
  border: 1px solid var(--amber); color: var(--text); font: 600 var(--fs-md)/1.3 var(--font); box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
}
.obj__tag { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; text-decoration: none; display: inline-block; margin-left: 4px; }

/* carte */
.mapwrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg-0); }
.map { position: absolute; inset: 0; }
.map > .ec-leaflet { position: absolute; inset: 0; }
.map.no-imagery { background-color: #0c0f0b; background-image: linear-gradient(rgba(154, 171, 88, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 171, 88, .05) 1px, transparent 1px); background-size: 48px 48px; }
.leaflet-container { background: transparent; font: var(--fs-md)/1.4 var(--font); outline: none; }
.leaflet-container a { color: var(--amber-2); }
.ec-svgmap { pointer-events: none; }
/* tuiles : mêmes tons que les cartes SVG habillées (olive, sable, charbon) */
.ec-tiles { filter: saturate(.55) sepia(.3) hue-rotate(12deg) brightness(.9) contrast(1.06); }
.ec-svgmap g { transition: opacity .2s ease; }
.leaflet-control-scale-line {
  background: rgba(15, 18, 14, .8); color: var(--text-2); border: 2px solid var(--text-3); border-top: 0;
  font: 600 11px/1.2 var(--font-num); padding: 1px 6px;
}
.leaflet-control-container .leaflet-bottom.leaflet-left { margin-bottom: 22px; }

.maptools { position: absolute; z-index: 1000; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tool {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  background: rgba(20, 24, 18, .9); color: var(--text); border: 1px solid var(--line-2); border-radius: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4); backdrop-filter: blur(6px); transition: background var(--t1), border-color var(--t1);
}
.tool:hover { background: var(--bg-4); border-color: var(--line-3); }
.tool .ico { width: 20px; height: 20px; }
.tool[aria-pressed="true"], .tool[aria-expanded="true"] { background: var(--amber); color: #1a1200; border-color: var(--amber); }

.layerspop {
  position: absolute; z-index: 1001; right: 62px; top: 12px; width: 310px; max-height: calc(100% - 24px); overflow: auto;
  background: rgba(20, 24, 18, .97); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e3);
  padding: 12px 14px 14px; animation: pop-in var(--t2) var(--ease);
}
.layerspop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.layerspop__list { display: grid; gap: 1px; }
.lyr { display: flex; align-items: center; gap: 10px; padding: 7px 7px; border-radius: 7px; cursor: pointer; font-size: var(--fs-md); }
.lyr:hover { background: var(--bg-3); }
.lyr input { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; flex: none; }
.lyr__sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid rgba(0, 0, 0, .6); }
.lyr__name { flex: 1; }
.lyr__n { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.layerspop__loot, .layerspop__opts { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; display: grid; gap: 10px; }
.layerspop__note { font-size: var(--fs-sm); color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; }
.layerspop__note .ico { width: 15px; height: 15px; margin-top: 1px; color: var(--olive-2); }
.range { display: grid; gap: 6px; font-size: var(--fs-md); color: var(--text-2); }
.range strong { color: var(--amber-2); font-family: var(--font-num); }
.range input { width: 100%; accent-color: var(--amber); }

.floors {
  position: absolute; z-index: 1000; left: 12px; bottom: 44px;
  display: flex; flex-direction: column; gap: 4px; padding: 5px;
  background: rgba(20, 24, 18, .92); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.floor-btn {
  position: relative; min-width: 96px; height: 34px; padding: 0 10px 0 22px; text-align: left;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2);
  font-size: var(--fs-md); font-weight: 600; white-space: nowrap;
}
.floor-btn:hover { background: var(--bg-3); color: var(--text); }
.floor-btn[aria-pressed="true"] { background: var(--olive); color: #fff; }
.floor-btn[aria-pressed="mixed"] { box-shadow: inset 0 0 0 1px var(--olive-2); }
.floor-btn--auto { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; padding-left: 10px; color: var(--text-3); }
.floor-btn--auto[aria-pressed="true"] { background: var(--amber); color: #1a1200; }
.floor-btn__me { position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: transparent; }
.floor-btn--me .floor-btn__me { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.floor-sum {
  display: none; position: relative; align-items: center; height: 36px; padding: 0 12px 0 24px; border: 0; border-radius: 8px;
  background: var(--olive); color: #fff; font-size: var(--fs-md); font-weight: 700; white-space: nowrap;
}

.compass {
  position: absolute; z-index: 999; left: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20, 24, 18, .86); border: 1px solid var(--line-2); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: none;
}
.compass__n { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font: 800 10px/1 var(--font-num); color: var(--bad); }
.compass__arrow { width: 22px; height: 22px; transition: transform .3s; }
.compass__arrow path { fill: var(--bad); }
.compass--rot .compass__n { display: none; }

.mapnotice { position: absolute; z-index: 1002; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 20px; }
.mapnotice__card {
  pointer-events: auto; max-width: 440px; text-align: center; padding: 20px 24px; border-radius: var(--r-lg);
  background: rgba(15, 18, 14, .93); border: 1px solid var(--line-2); box-shadow: var(--e3); backdrop-filter: blur(6px);
}
.mapnotice__title { font: 700 18px/1.25 var(--font-display); letter-spacing: .02em; }
.mapnotice__text { color: var(--text-2); margin-top: 6px; font-size: var(--fs-base); }
.mapnotice[data-kind="loading"] .mapnotice__title::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -1px;
  border: 2px solid var(--amber); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite;
}
.mapnotice[data-kind="soft"] { place-items: end center; padding-bottom: 46px; }
.mapnotice[data-kind="soft"] .mapnotice__card { padding: 10px 16px; }
.mapnotice[data-kind="soft"] .mapnotice__title { font-size: var(--fs-base); }
.mapnotice[data-kind="soft"] .mapnotice__text { font-size: var(--fs-sm); }
.mapbanner {
  position: absolute; z-index: 1001; left: 50%; top: 12px; transform: translateX(-50%); max-width: calc(100% - 150px);
  padding: 7px 15px; border-radius: 999px; background: rgba(15, 18, 14, .92); border: 1px solid var(--line-2);
  font-size: var(--fs-md); font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.mapbanner[data-kind="warn"] { color: var(--amber-2); border-color: var(--amber-line); }
.maneuver + .mapbanner { top: 82px; }

/* consigne de virage (chemin praticable) */
.maneuver {
  position: absolute; z-index: 1001; left: 50%; top: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100% - 150px));
  padding: 9px 20px 9px 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 36, 26, .97), rgba(18, 22, 16, .97)); border: 1px solid var(--line-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: blur(8px);
  animation: drop-in var(--t3) var(--ease);
}
.maneuver__ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: #1a1200; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.maneuver__ico .ico { width: 32px; height: 32px; stroke-width: 2.6; }
.maneuver[data-turn="arrive"] .maneuver__ico { background: var(--ok); }
.maneuver[data-turn="uturn"] .maneuver__ico { background: var(--bad); color: #fff; }
.maneuver__body { display: grid; min-width: 0; }
.maneuver__dist { font: 700 26px/1 var(--font-num); color: var(--text); font-variant-numeric: tabular-nums; }
.maneuver__text { font-size: var(--fs-base); font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }

.miniguide {
  display: none; position: absolute; z-index: 1000; right: 66px; top: 12px; max-width: 360px; gap: 10px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 13px; background: rgba(15, 18, 14, .94); border: 1px solid var(--line-2); box-shadow: var(--e3);
}
body.no-side .miniguide.is-on { display: flex; }
.miniguide__arrow { width: 40px; height: 40px; color: var(--amber); transition: transform .35s ease-out; flex: none; }
.miniguide__arrow use { fill: currentColor; }
.miniguide__dist { font: 700 20px/1 var(--font-num); }
.miniguide__line { font-size: var(--fs-sm); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.attrib {
  position: absolute; z-index: 999; right: 0; bottom: 0; max-width: 100%;
  padding: 3px 9px; font-size: var(--fs-xs); color: var(--text-3); background: rgba(10, 12, 9, .8); border-top-left-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.attrib a { color: var(--text-2); text-decoration: none; }
.attrib a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ marqueurs Leaflet */

.leaflet-marker-icon.ec-icon { background: none; border: 0; }
.ec-me { position: relative; width: 46px; height: 46px; transition: opacity .4s; }
.ec-me__arrow { position: absolute; inset: 0; transition: transform .35s ease-out; filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px rgba(0, 0, 0, .7)); }
.ec-me__arrow path { fill: var(--amber); stroke: #241900; stroke-width: 2.2; stroke-linejoin: round; }
.ec-me__dot { display: none; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--amber); border: 3px solid #241900; }
.ec-me__pulse { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: ring 2.2s ease-out infinite; }
.ec-me__age {
  display: none; position: absolute; top: calc(100% - 2px); left: 50%; transform: translateX(-50%);
  font: 700 11px/1 var(--font-num); background: rgba(0, 0, 0, .82); color: var(--amber); padding: 2px 5px; border-radius: 4px; white-space: nowrap;
}
.ec-me--noyaw .ec-me__arrow { display: none; }
.ec-me--noyaw .ec-me__dot { display: block; }
.ec-me--stale { opacity: .6; }
.ec-me--stale .ec-me__age, .ec-me--old .ec-me__age { display: block; }
.ec-me--old { opacity: .38; filter: grayscale(.85); }
.ec-me--stale .ec-me__pulse, .ec-me--old .ec-me__pulse { animation: none; }
.ec-me--approx .ec-me__arrow path { fill: #9dcfff; stroke: #06223d; }
.ec-me--approx .ec-me__pulse { border-color: #9dcfff; }
.ec-accuracy { stroke: #9dcfff; stroke-width: 2; stroke-dasharray: 6 5; fill: #6cb6ff; fill-opacity: .12; }
.ec-cover { stroke: none; fill: #6cb6ff; fill-opacity: .22; }
.ec-cover-miss { stroke: #ffb454; stroke-width: 2; stroke-dasharray: 4 4; fill: #ffb454; fill-opacity: .1; }
/* position estimée : cercle doux, clairement une estimation */
.ec-estimate { stroke: #f3ecd0; stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 4 5; fill: #f3ecd0; fill-opacity: .08; }
.ec-est { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.ec-est__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed rgba(243, 236, 208, .85); background: rgba(243, 236, 208, .16); }
.ec-est__label {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 700 10px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: #f3ecd0; background: rgba(0, 0, 0, .7); padding: 3px 5px; border-radius: 4px;
}
.ec-trail { stroke: #f3ecd0; stroke-opacity: .5; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.5 6; }
.ec-route-casing { stroke: #000; stroke-opacity: .5; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ec-route { stroke: var(--amber); stroke-opacity: .9; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 9; animation: dash 1.1s linear infinite; }
/* chemin praticable : trait plein (navigation) ou tirets (lignes droites) */
.ec-path-casing { stroke: #000; stroke-opacity: .6; stroke-width: 9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ec-path { stroke: var(--amber); stroke-width: 4.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ec-path--straight { stroke-dasharray: 11 9; stroke-width: 4; animation: dash 1.1s linear infinite; }
.ec-path-next { stroke: var(--amber-3); stroke-width: 4.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .9; }
.ec-turn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1a1200; color: var(--amber-2); border: 2px solid var(--amber); box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.ec-turn .ico { width: 14px; height: 14px; stroke-width: 2.8; }
.ec-detour {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 3px; border-radius: 11px; white-space: nowrap;
  background: rgba(26, 14, 38, .92); border: 1.5px solid var(--loot); color: #ecd9ff; font: 700 11px/1 var(--font-num); box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%); position: absolute; left: 50%; top: 50%;
}
.ec-detour .ico { width: 15px; height: 15px; color: var(--loot); }
.ec-zone { stroke: var(--amber); stroke-width: 3; fill: var(--amber); fill-opacity: .16; animation: zone 1.8s ease-in-out infinite; }
.ec-zone--first { stroke-width: 4; fill-opacity: .28; }
.ec-zone--extract { stroke: var(--ok); fill: var(--ok); fill-opacity: .2; }
.ec-zone--ring { fill-opacity: .1; }
.ec-area { stroke-width: 2; stroke-dasharray: 7 5; fill-opacity: .1; }
.ec-area--hazard { stroke: var(--bad); fill: var(--bad); }
.ec-area--artillery { stroke: #ff8a3d; fill: #ff8a3d; }
.ec-area--extract { stroke: var(--ok); fill: var(--ok); fill-opacity: .07; stroke-dasharray: none; stroke-opacity: .55; stroke-width: 1.5; }
.ec-area--extract-scav { stroke: var(--scav); fill: var(--scav); }
.ec-area--transit { stroke: #b48cff; fill: #b48cff; fill-opacity: .08; stroke-dasharray: none; stroke-width: 1.5; }
.ec-offfloor { opacity: .28; }
path.ec-offfloor { stroke-opacity: .25; fill-opacity: .03; }

.ec-tgt {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: #171100;
  font: 800 15px/1 var(--font-num); border: 2px solid #171100;
  box-shadow: 0 0 0 3px rgba(255, 176, 0, .35), 0 3px 8px rgba(0, 0, 0, .65);
}
.ec-tgt--quest_item { background: #ffd34d; }
.ec-tgt--loot { background: var(--loot); box-shadow: 0 0 0 3px rgba(209, 155, 255, .35), 0 3px 8px rgba(0, 0, 0, .65); }
.ec-tgt--transit { background: #b48cff; }
.ec-tgt--extract { background: var(--ok); box-shadow: 0 0 0 3px rgba(127, 195, 90, .35), 0 3px 8px rgba(0, 0, 0, .65); }
.ec-tgt--first { width: 36px; height: 36px; margin: -3px; font-size: 18px; animation: halo 1.6s ease-in-out infinite; }
.ec-tgt--more { width: 18px; height: 18px; margin: 6px; border-width: 2px; border-style: dashed; opacity: .9; }
/* noms des lieux : texte posé sur le plan, jamais cliquable */
.ec-place-icon { overflow: visible; }
.ec-place { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.ec-place__text {
  display: inline-block; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #f4f1e4;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .9);
}
.ec-place--minor .ec-place__text { font-size: 10.5px; font-weight: 600; color: #d9d6c8; }
.ec-place--other { opacity: .4; }
.ec-place--minor.ec-place--other, .ec-far .ec-place--minor { display: none; }
/* nom masqué parce qu'un autre, plus important, occupe la même place à cette échelle (mesurable : pas display none) */
.ec-place--crowded { visibility: hidden; }
.ec-tgt__floor {
  position: absolute; right: -12px; top: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #0f1a26; color: var(--info-2); border: 1px solid var(--info); font: 800 11px/16px var(--font-num); text-align: center;
}
.ec-pulse { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--amber); animation: ring 1.1s ease-out 3; opacity: 0; }
.ec-hl { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--amber), 0 0 14px var(--amber); animation: halo 1.2s ease-in-out infinite; }

.ec-ex { position: relative; width: 24px; height: 24px; --ex-c: var(--ok); }
.ec-ex--scav { --ex-c: var(--scav); }
.ec-ex--shared { --ex-c: var(--shared); }
.ec-ex--marker { --ex-c: #ffd166; }
.ec-en { --ex-c: #ff5a5a; }
.ec-en--goons { --ex-c: #ff9a3d; }
.ec-en--cultist { --ex-c: #d77bff; }
.ec-en--raider { --ex-c: #6cb6ff; }
.ec-en--rogue { --ex-c: #58d0c4; }
.ec-en--blackdiv { --ex-c: #e6e6e6; }
.ec-en--army { --ex-c: #b5c46a; }
.ec-en--special { --ex-c: #ff8fb8; }
.ec-en .ec-ex__pin { border-radius: 50% 50% 50% 8%; }
.ec-en .ec-ex__label { border-left: 3px solid var(--ex-c); }
.ec-en__pct { margin-left: 5px; color: var(--ex-c); font-weight: 800; }
.ec-en__badge {
  display: none; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); white-space: nowrap;
  font: 800 10px/1 var(--font); color: var(--ex-c); padding: 1px 3px; border-radius: 3px; background: rgba(8, 10, 7, .78);
}
.ec-far .ec-en__badge { display: block; }
.pop__enemy { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.pop__enemyhead { display: flex; justify-content: space-between; gap: 12px; }
.pop__enemypct { font-weight: 800; color: var(--amber-2); }
.ec-ex--marker .ec-ex__pin { border-radius: 50%; }
.ec-ex--marker-quest { --ex-c: var(--amber); }
.pop--form { display: grid; gap: 6px; min-width: 230px; }
.pop--form .input { width: 100%; height: 32px; }
.ec-ex__pin {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ex-c); color: #0b0d0a; border: 2px solid rgba(0, 0, 0, .8); box-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}
.ec-ex__pin .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.ec-ex__label {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 700 12px/1.1 var(--font); color: #fff; padding: 2px 5px; border-radius: 4px; background: rgba(8, 10, 7, .66);
  text-shadow: 0 1px 2px #000;
}
.ec-ex__state { margin-left: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ec-ex--open .ec-ex__state { color: var(--ok-2); }
.ec-ex--closed .ec-ex__pin { background: #4a4f46; }
.ec-ex--closed .ec-ex__label { color: var(--bad-2); text-decoration: line-through; }
.ec-ex--closed .ec-ex__state { color: #ff8a80; }
.ec-ex--other { opacity: .5; }
.ec-ex--other .ec-ex__label { display: none; }
.ec-ex--chosen .ec-ex__pin { outline: 3px solid var(--ok); outline-offset: 2px; animation: halo-ok 1.5s ease-in-out infinite; }
.ec-ex--chosen .ec-ex__label { background: rgba(21, 44, 12, .92); color: #d6ffc2; font-size: 13px; }
.ec-ex--transit { --ex-c: #b48cff; }
.ec-far .ec-ex__label, .ec-far .ec-detour span { display: none; }
.ec-far .ec-ex--chosen .ec-ex__label { display: block; }

/* bulles et fenêtres */
.ec-tip.leaflet-tooltip {
  background: rgba(14, 16, 13, .96); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5); font-weight: 600; font-size: var(--fs-sm); padding: 4px 9px; white-space: nowrap;
}
.ec-tip.leaflet-tooltip-top::before { border-top-color: rgba(14, 16, 13, .96); }
.ec-tip.leaflet-tooltip-bottom::before { border-bottom-color: rgba(14, 16, 13, .96); }
.ec-popup .leaflet-popup-content-wrapper {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e3);
}
.ec-popup .leaflet-popup-tip { background: var(--bg-2); border: 1px solid var(--line-2); }
.ec-popup .leaflet-popup-content { margin: 13px 15px; min-width: 210px; font-size: var(--fs-md); line-height: 1.4; }
.ec-popup a.leaflet-popup-close-button { color: var(--text-3); width: 26px; height: 26px; font: 20px/26px var(--font); }
.ec-popup a.leaflet-popup-close-button:hover { color: var(--text); }
.pop__kind { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.pop__title { font-weight: 700; font-size: 15px; margin: 2px 0 7px; padding-right: 14px; }
.pop__row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.pop__row span:first-child { color: var(--text-3); }
.pop__row strong { font-family: var(--font-num); text-align: right; }
.pop__note { color: var(--amber-2); margin-top: 4px; }
.pop__items { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 3px; }
.pop__items li { display: flex; justify-content: space-between; gap: 12px; }
.pop__items strong { font-family: var(--font-num); color: var(--amber-2); white-space: nowrap; }
.pop__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pop__actions .btn { height: 30px; }

/* ------------------------------------------------------------------ panneau de guidage */

.sheet-handle { display: none; }
.guide {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, #1f2519, var(--bg-1) 70%);
}
.guide__dial { position: relative; width: 112px; height: 112px; }
.guide__arrow { width: 112px; height: 112px; display: block; }
.guide__ring { fill: rgba(0, 0, 0, .28); stroke: var(--line-2); stroke-width: 2; }
.guide__ring2 { fill: none; stroke: rgba(255, 255, 255, .04); stroke-width: 1; }
.guide__tick { stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; }
#guide-arrow-rot { transition: transform .35s ease-out; }
.guide__shape { fill: var(--amber); stroke: #2a1d00; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .6)); }
.guide[data-kind="extract"] .guide__shape { fill: var(--ok); stroke: #10240a; }
.guide[data-kind="loot"] .guide__shape { fill: var(--loot); stroke: #2a0f3d; }
.guide__cardinal {
  position: absolute; inset: 14px; display: grid; place-items: center; text-align: center; border-radius: 50%;
  font: 700 15px/1.1 var(--font-num); color: var(--amber-2); text-transform: uppercase; letter-spacing: .02em;
}
.guide:not([data-mode="target"]) .guide__shape, .guide[data-arrow="off"] .guide__shape { display: none; }
.guide__body { min-width: 0; }
.guide__kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.guide__maneuver {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-bottom: 6px; padding: 4px 10px 4px 6px; border-radius: 8px;
  background: var(--amber-dim); color: var(--amber-2); border: 1px solid var(--amber-line); font-weight: 700; font-size: var(--fs-md);
}
.guide__maneuver span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide__maneuver .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.guide__maneuver[data-turn="arrive"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }
.guide__line { font-size: 17px; font-weight: 600; line-height: 1.28; color: var(--text); overflow-wrap: anywhere; }
.guide[data-mode="target"] .guide__line { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide__how { font-size: 20px; font-weight: 750; line-height: 1.2; color: var(--amber-2); margin-top: 5px; }
.guide[data-kind="extract"] .guide__how { color: var(--ok-2); }
.guide[data-mode="idle"] .guide__line, .guide[data-mode="nopos"] .guide__line, .guide[data-mode="loading"] .guide__line { font-size: 16px; color: var(--text-2); font-weight: 600; }
.guide__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.guide__dist { font: 700 31px/1 var(--font-num); color: var(--amber); font-variant-numeric: tabular-nums; }
.guide[data-kind="extract"] .guide__dist { color: var(--ok); }
.guide__eta { font: 600 16px/1 var(--font-num); color: var(--text-2); }
.guide__eta:not(:empty)::before { content: attr(data-label); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .06em; margin-right: 4px; }

.scanflash { margin: 10px 12px 0; }
.side[data-tab="loot"] .scanflash { display: none !important; }
.tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; border: 0; background: transparent; color: var(--text-3); padding: 9px 11px 11px; font-weight: 700; font-size: var(--fs-md); white-space: nowrap;
  border-radius: 6px 6px 0 0; transition: color var(--t1);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--amber); }
.tab__n { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; margin-left: 2px; font-family: var(--font-num); }
/* onglet réservé à Pro : son contenu laisse la place à la carte « Pro » (voir panels.js, renderLocks) */
.tab__lock .ico { width: 11px; height: 11px; margin-left: 4px; color: var(--pro-b); stroke-width: 2.4; vertical-align: -1px; }
.pane.is-locked > :not(.pane__lock) { display: none !important; }
.pane__lock:empty { display: none; }
.pane__lock { padding-top: 8px; }
.lyr--locked { width: 100%; border: 0; background: none; color: var(--text-2); text-align: left; font-family: inherit; }
.lyr--locked .ico { width: 16px; height: 16px; color: var(--pro-b); flex: none; }
.lyr--locked .pro-chip { margin-left: auto; }
.search__msg--lock { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; font-family: inherit; cursor: pointer; }
.search__msg--lock .pro-chip { margin-left: auto; }
.side__body { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 18px; overscroll-behavior: contain; }

.pathinfo { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-3); }
.pathinfo .ico { width: 15px; height: 15px; }
.pathinfo[data-src="nav"] { color: var(--ok-2); }
.pathinfo__sw { width: 22px; height: 0; border-top: 3px solid var(--amber); border-radius: 2px; flex: none; }
.pathinfo[data-src="straight"] .pathinfo__sw { border-top-style: dashed; }
.pathinfo .pro-chip { margin-left: auto; }

.tlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tgt { display: flex; align-items: stretch; gap: 4px; }
.tgt__btn {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 9px 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text);
  transition: background var(--t1), border-color var(--t1);
}
.tgt__btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.tgt--first .tgt__btn { border-color: var(--amber-line); background: linear-gradient(90deg, rgba(255, 176, 0, .11), var(--bg-2) 60%); }
.tgt__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #171100; font: 800 14px/1 var(--font-num); }
.tgt[data-kind="quest_item"] .tgt__num { background: #ffd34d; }
.tgt[data-kind="loot"] .tgt__num { background: var(--loot); }
.tgt[data-kind="transit"] .tgt__num { background: #b48cff; }
.tgt__body { min-width: 0; }
.tgt__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: var(--fs-md); line-height: 1.3; }
.tgt__sub { display: block; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tgt__meta { text-align: right; display: grid; gap: 3px; justify-items: end; }
.tgt__dist { font: 700 17px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.tgt__walk { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--ok-2); white-space: nowrap; font-weight: 600; }
.tgt__walk .ico { width: 12px; height: 12px; }
.tgt__eta { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.tgt__floor { font-size: var(--fs-xs); color: var(--info-2); white-space: nowrap; }
.tgt__done {
  flex: none; width: 38px; display: grid; place-items: center; padding: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text-3);
}
.tgt__done:hover { color: var(--ok); border-color: var(--ok-line); background: var(--ok-dim); }

.xcard {
  margin-top: 10px; padding: 11px 13px; border-radius: var(--r-md); background: linear-gradient(90deg, rgba(127, 195, 90, .12), var(--bg-2) 70%);
  border: 1px solid var(--ok-line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; cursor: pointer; text-align: left; width: 100%; color: var(--text);
}
.xcard:hover { background: linear-gradient(90deg, rgba(127, 195, 90, .18), var(--bg-3) 70%); }
.xcard__kicker { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fd47f; }
.xcard__name { font-weight: 700; font-size: 15px; }
.xcard__dist { font: 700 20px/1 var(--font-num); color: var(--ok); text-align: right; align-self: center; grid-row: span 2; }
.xcard__sub { font-size: var(--fs-sm); color: var(--text-3); }

.detours { margin-top: 4px; }
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.drow {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; text-align: left;
  background: linear-gradient(90deg, rgba(209, 155, 255, .08), var(--bg-2) 65%); border: 1px solid #3c2b52; border-radius: var(--r-md); color: var(--text);
}
.drow:hover { border-color: #5a3f7c; }
.drow__ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(209, 155, 255, .16); color: var(--loot); grid-row: span 2; }
.drow__ico .ico { width: 16px; height: 16px; }
.drow__val { font: 700 15px/1 var(--font-num); color: #ecd9ff; }
.drow__extra { font: 600 var(--fs-sm)/1 var(--font-num); color: var(--text-2); text-align: right; white-space: nowrap; }
.drow__items { grid-column: 2 / 4; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.advice { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.advice li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--fs-md); color: var(--text-2); padding: 9px 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.advice li .ico { color: var(--info); margin-top: 1px; width: 16px; height: 16px; }
.advice li.is-warn { border-color: var(--amber-line); color: var(--amber-2); background: var(--amber-dim); }
.advice li.is-warn .ico { color: var(--amber); }

.xlist { display: grid; gap: 4px; margin-top: 8px; }
.xgroup { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 10px 2px 2px; }
.xrow {
  display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 11px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px;
}
.xrow--other { opacity: .6; }
.xrow--chosen { border-color: var(--ok-line); box-shadow: inset 3px 0 0 var(--ok); }
.xrow__fac { width: 10px; height: 10px; border-radius: 3px; background: var(--ok); }
.xrow__fac[data-f="scav"] { background: var(--scav); }
.xrow__fac[data-f="shared"] { background: var(--shared); }
.xrow__main { min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--text); }
.xrow__name { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xrow__note { font-size: var(--fs-sm); color: var(--text-3); display: block; }
.xrow__dist { font: 700 15px/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--text-2); }
.xstatus {
  appearance: none; -webkit-appearance: none; border-radius: 999px; height: 26px; padding: 0 10px; font-size: var(--fs-sm); font-weight: 700;
  border: 1px solid var(--line-2); background: var(--bg-4); color: var(--text-2); text-align: center; cursor: pointer;
}
.xstatus option { background: var(--bg-2); color: var(--text); }
.xstatus[data-s="open"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }
.xstatus[data-s="closed"] { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad-line); }
.xstatus[data-s="requires"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber-line); }
.xsrc { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; display: block; text-align: center; margin-top: 2px; }

.llist, .nlist, .jlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lrow {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 11px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; color: var(--text);
}
.lrow:hover { background: var(--bg-3); }
.lrow--need { border-color: var(--amber-line); }
.lrow__val { font: 700 16px/1 var(--font-num); color: var(--amber-2); }
.lrow__dist { font: 700 14px/1 var(--font-num); color: var(--text-2); text-align: right; }
.lrow__items { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.lrow__items .is-need { color: var(--amber-2); font-weight: 700; }
.nrow {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; align-items: center; padding: 6px 9px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--line); width: 100%; text-align: left; color: var(--text);
}
button.nrow:hover { background: var(--bg-3); border-color: var(--line-2); }
.nrow__icon { width: 34px; height: 34px; border-radius: 6px; background: var(--bg-0); object-fit: contain; border: 1px solid var(--line); grid-row: span 2; }
.nrow__name { font-weight: 600; font-size: var(--fs-md); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow__count { font: 700 14px/1 var(--font-num); color: var(--text-2); text-align: right; white-space: nowrap; }
.nrow__why { grid-column: 2 / 4; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#needed-filter { margin-bottom: 6px; }
.jrow { display: grid; grid-template-columns: 66px 1fr; gap: 8px; font-size: var(--fs-md); padding: 7px 4px; border-bottom: 1px solid var(--line); }
.jrow time { font: 600 var(--fs-sm)/1.4 var(--font-num); color: var(--text-3); font-variant-numeric: tabular-nums; }
.jrow[data-kind="raid"] span { color: var(--ok-2); }
.jrow[data-kind="scan"] span { color: var(--amber-2); }
.jrow[data-kind="extract"] span { color: var(--info-2); }

/* carte du dernier scan */
.scan {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 11px 13px;
  border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); width: 100%; text-align: left; color: var(--text);
}
button.scan:hover { border-color: var(--line-3); }
.scan--fresh { border-color: var(--amber-line); box-shadow: 0 0 0 1px rgba(255, 176, 0, .25), 0 6px 18px rgba(0, 0, 0, .35); }
.scan__icon { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-0); object-fit: contain; border: 1px solid var(--line); grid-row: span 2; }
.scan__name { font-weight: 700; font-size: 15px; min-width: 0; line-height: 1.2; }
.scan__line2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.scan__verdict { font: 800 var(--fs-md)/1 var(--font-num); text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; background: var(--bg-4); color: var(--text); white-space: nowrap; }
.scan__verdict[data-v="keep"] { background: var(--ok); color: #0f2108; }
.scan__verdict[data-v="sell"] { background: var(--amber); color: #171100; }
.scan__verdict[data-v="drop"] { background: #5a5f55; color: #eee; }
.scan__sub { font-size: var(--fs-sm); color: var(--text-3); }
.scan__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.scan__cell { background: var(--bg-0); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.scan__cell span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.scan__cell strong { font: 700 14px/1.2 var(--font-num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.scan__need { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.scan__head { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.scan__more { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--amber-2); font-weight: 600; margin-top: 2px; }
.scan__more .ico { width: 14px; height: 14px; }
.scan__wrong {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-3); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer;
}
.scan__wrong:hover { color: var(--amber-2); background: var(--amber-dim); }
.scan__wrong--done { color: var(--ok-2); cursor: default; }
.scan__wrong .ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ verrous Pro */

.pro-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px; border-radius: 999px; flex: none;
  font: 700 10px/1 var(--font-num); letter-spacing: .1em; text-transform: uppercase;
  color: var(--pro-a); background: rgba(240, 178, 58, .1); border: 1px solid rgba(240, 178, 58, .35);
}
.pro-chip .ico { width: 11px; height: 11px; stroke-width: 2.4; }
.lock-line {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 11px; margin-top: 10px; border-radius: var(--r-md); text-align: left;
  background: linear-gradient(90deg, rgba(240, 178, 58, .07), transparent 80%); border: 1px dashed rgba(240, 178, 58, .3); color: var(--text-2); font-size: var(--fs-md);
}
.lock-line:hover { border-style: solid; border-color: rgba(240, 178, 58, .5); }
.lock-line .ico { width: 16px; height: 16px; color: var(--pro-b); }
.lock-line__text { flex: 1; min-width: 0; }
.lock-line__cta { color: var(--pro-a); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.lock-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid rgba(240, 178, 58, .28);
  background: radial-gradient(120% 120% at 100% 0%, rgba(240, 178, 58, .1), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--e2);
}
.lock-card__preview { position: absolute; inset: 0; padding: 18px; filter: blur(3px) saturate(.7); opacity: .55; pointer-events: none; overflow: hidden; }
.page .lock-card { min-height: 380px; display: grid; align-items: center; }
.skel-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skel-cards--grid .skel-card { min-height: 150px; }
.lock-card__preview + .lock-card__body { background: linear-gradient(180deg, rgba(15, 18, 14, .55), rgba(15, 18, 14, .9) 60%); }
.lock-card__body { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 26px 26px; }
.lock-card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--pro-grad); color: #2a1a00; box-shadow: 0 8px 24px rgba(240, 178, 58, .25); margin-bottom: 4px; }
.lock-card__ico .ico { width: 28px; height: 28px; }
.lock-card__kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .16em; text-transform: uppercase; color: var(--pro-a); }
.lock-card__kicker .ico { width: 13px; height: 13px; }
.lock-card__title { font: 700 var(--fs-xl)/1.2 var(--font-display); letter-spacing: .02em; }
.lock-card__text { max-width: 440px; color: var(--text-2); font-size: var(--fs-base); }
.lock-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ------------------------------------------------------------------ états vides, squelettes */

.empty-state { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 18px; color: var(--text-3); }
.empty-state__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-3); margin-bottom: 4px; }
.empty-state__ico .ico { width: 22px; height: 22px; }
.empty-state__title { font-weight: 700; color: var(--text-2); font-size: var(--fs-base); }
.empty-state__text { font-size: var(--fs-md); max-width: 340px; }
.empty-state .btn { margin-top: 8px; }
.empty-state--compact { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 2px 12px; padding: 12px 6px; align-items: center; }
.empty-state--compact .empty-state__ico { width: 34px; height: 34px; margin: 0; grid-row: span 2; }
.empty-state--compact .empty-state__ico .ico { width: 17px; height: 17px; }
.empty-state--compact .empty-state__title, .empty-state--compact .empty-state__text { font-size: var(--fs-md); }
.skel { display: grid; gap: 10px; padding: 6px 0; }
.skel__row, .skel-card { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.skel__row { height: 12px; }
.skel__row--title { height: 18px; width: 55%; }
.skel__row--short { width: 35%; }
.skel-cards { display: grid; gap: 10px; }
.skel-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-1); }
.skel-card .skel__row { background: var(--bg-3); }
.skel__row::after, .skel-card::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent); animation: shimmer 1.4s ease-in-out infinite;
}

/* ------------------------------------------------------------------ toasts */

.toasts {
  position: fixed; z-index: 4000; right: calc(var(--side-w) + 16px); bottom: 34px;
  display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; align-content: end;
}
body.no-side .toasts, body:not([data-view="map"]) .toasts { right: 18px; }
body.drawer-open .toasts { right: calc(min(440px, 100vw) + 18px); }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 12px;
  background: rgba(27, 32, 24, .98); border: 1px solid var(--line-2); box-shadow: var(--e3); font-size: var(--fs-md); font-weight: 600;
  animation: toast-in var(--t2) var(--ease);
}
.toast__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--info-dim); color: var(--info); flex: none; }
.toast__ico .ico { width: 15px; height: 15px; }
.toast__text { flex: 1; min-width: 0; }
.toast--warn { border-color: var(--amber-line); }
.toast--warn .toast__ico { background: var(--amber-dim); color: var(--amber); }
.toast--error { border-color: var(--bad-line); }
.toast--error .toast__ico { background: var(--bad-dim); color: var(--bad); }
.toast--ok .toast__ico { background: var(--ok-dim); color: var(--ok); }
.toast.is-out { opacity: 0; transform: translateY(-6px); transition: all .25s ease; }
.toast__act { background: none; border: 0; color: var(--amber-2); font-weight: 700; font-size: var(--fs-sm); padding: 4px 6px; border-radius: 6px; }
.toast__act:hover { background: var(--bg-4); }
.toast__x { background: none; border: 0; color: var(--text-3); padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.toast__x:hover { color: var(--text); background: var(--bg-4); }
.toast__x .ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ fenêtres modales */

.dlg {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden;
  background: var(--bg-1); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--e3);
}
.dlg[open] { display: flex; flex-direction: column; animation: dlg-in var(--t3) var(--ease); }
.dlg::backdrop { background: rgba(5, 6, 4, .72); backdrop-filter: blur(3px); }
.dlg--wide { width: min(1000px, calc(100vw - 24px)); height: calc(100dvh - 40px); }
.dlg__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--line); flex: none; }
.dlg__head .h2 { flex: none; }
.dlg__head > .iconbtn:last-child { margin-left: auto; }
/* `flex: 1 1 auto`, pas `flex: 1` : avec une base à 0, Safari donne une hauteur nulle au corps des fenêtres sans hauteur
   fixe (licence, objet, raccourcis) et n'en montre que le titre. Vu sur le site le 24/11/2026. */
.dlg__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px 20px 22px; overscroll-behavior: contain; }
.dlg__foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); flex: none; background: var(--bg-1); }
.dlg__foot .grow { flex: 1; }

/* gestionnaire de quêtes */
.qm__filters { padding: 12px 20px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); flex: none; }
.qm__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.qm__row .field { min-width: 180px; }
.qm__list { flex: 1; min-height: 0; overflow: auto; padding: 10px 20px 20px; overscroll-behavior: contain; }
/* remise à zéro de la progression : l'ambre est déjà la couleur des avis, et le texte dit tout (pas la couleur) */
.qm-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--bg-2); }
.qm-note[hidden] { display: none; }
.qm-note p { margin: 0; flex: 1 1 260px; }
.qm-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); margin-bottom: 6px; content-visibility: auto; contain-intrinsic-size: auto 62px; }
.qm-item__head { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 11px; }
.qm-item__toggle { background: none; border: 0; padding: 0; text-align: left; color: var(--text); min-width: 0; display: grid; gap: 2px; }
.qm-item__name { font-weight: 700; }
.qm-item__meta { font-size: var(--fs-sm); color: var(--text-3); display: flex; gap: 4px 10px; flex-wrap: wrap; }
.qm-item__meta .kappa { color: var(--amber-2); font-weight: 700; }
.qm-item__ctrl { display: flex; align-items: center; gap: 6px; }
.qstatus { height: 30px; border-radius: 999px; padding: 0 10px; font-size: var(--fs-sm); font-weight: 700; background: var(--bg-4); border: 1px solid var(--line-2); color: var(--text-2); }
.qstatus[data-s="active"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber-line); }
.qstatus[data-s="completed"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }
.qstatus[data-s="failed"] { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad-line); }
.qstatus[data-s="locked"] { color: var(--text-3); }
.qstatus option { background: var(--bg-2); color: var(--text); }
.qm-item__body { padding: 0 11px 11px; border-top: 1px solid var(--line); }
.qm-item__body .olist { margin-top: 8px; }
.qm-item__links { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); margin-top: 8px; color: var(--text-3); flex-wrap: wrap; }
.qm-item__links a { display: inline-flex; align-items: center; gap: 4px; }
.qm-item__links .ico { width: 14px; height: 14px; }
.qm-more { display: flex; margin: 10px auto; }

/* paramètres : navigation à gauche, contenu à droite */
.dlg--settings { width: min(920px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 40px)); }
.st { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.st__nav { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 2px; overflow: auto; background: var(--bg); }
.st__navbtn {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 0;
  background: transparent; color: var(--text-2); font-weight: 600; font-size: var(--fs-md); text-align: left;
}
.st__navbtn:hover { background: var(--bg-2); color: var(--text); }
.st__navbtn[aria-current="true"] { background: var(--bg-3); color: var(--text); box-shadow: inset 3px 0 0 var(--amber); }
.st__navbtn .ico { width: 17px; height: 17px; color: var(--text-3); }
.st__navbtn[aria-current="true"] .ico { color: var(--amber-2); }
.st__navbtn .pro-chip { margin-left: auto; }
.st__body { min-height: 0; overflow: auto; padding: 22px 26px 30px; overscroll-behavior: contain; }
.st__section { display: grid; gap: 4px; }
.st__title { display: flex; align-items: center; gap: 10px; font: 700 var(--fs-xl)/1.2 var(--font-display); letter-spacing: .02em; margin: 0 0 2px; }
.st__desc { color: var(--text-3); font-size: var(--fs-md); margin-bottom: 14px; }
.st__group { margin-top: 14px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.st__group > .field { padding: 12px 0; }
.st__group > .field + .field { border-top: 1px solid var(--line); }
.st__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.st__grid2 > .field { padding: 12px 0; border-bottom: 1px solid var(--line); }
.st__grid2 > .field:nth-last-child(-n+2) { border-bottom: 0; }
.st__saved { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 600 var(--fs-sm)/1 var(--font); color: var(--ok-2); opacity: 0; transition: opacity var(--t2); }
.st__saved.is-on { opacity: 1; }
.st__saved .ico { width: 15px; height: 15px; }
.st__hint { font-size: var(--fs-sm); color: var(--text-3); margin-top: 8px; }
.st__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.st__row + .st__row { border-top: 1px solid var(--line); }
.st__row .grow { flex: 1; min-width: 160px; }
.st__row-title { font-weight: 600; }
.st__row-sub { font-size: var(--fs-sm); color: var(--text-3); }
.st__row-sub.is-bad { color: var(--bad-2); }
.st__fix { font-size: var(--fs-sm); color: var(--amber-2); margin-top: 3px; }
.st__stack { display: grid; gap: 14px; padding: 14px 0; }
.st__stack .field .input { width: 100%; }
.st__hint.is-warn { color: var(--amber-2); font-weight: 600; }
.vol { display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.vol input { flex: 1; accent-color: var(--amber); }
.field input[type="range"] { accent-color: var(--amber); width: 100%; }
.vol .ico { width: 17px; height: 17px; color: var(--text-3); }
.sources { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 0; }
.sources li { display: grid; grid-template-columns: 10px 160px 1fr; gap: 10px; align-items: center; font-size: var(--fs-md); padding: 9px 0; }
.sources li + li { border-top: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot[data-s="ok"] { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.dot[data-s="warn"] { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.dot[data-s="error"] { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-dim); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: var(--fs-md); align-items: center; }
.keys dt { white-space: nowrap; display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--text-2); }
.about { display: grid; gap: 8px; font-size: var(--fs-md); color: var(--text-2); }
.about__credits { font-size: var(--fs-sm); color: var(--text-3); }
.about__credits a { color: var(--text-2); }
.update-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--ok-line); background: var(--ok-dim); color: var(--ok-2); margin-top: 12px; }
.update-box .ico { width: 20px; height: 20px; }
.update-box .grow { flex: 1; }

/* appairage du téléphone */
.pair { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; margin-top: 14px; }
.pair__qr { width: 200px; aspect-ratio: 1; border-radius: var(--r-lg); background: #fff; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); display: grid; place-items: center; }
.pair__qr svg { width: 100%; height: 100%; display: block; }
.pair__qr--empty { background: var(--bg-2); color: var(--text-3); }
.pair__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: st; }
.pair__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: var(--fs-base); color: var(--text-2); counter-increment: st; }
.pair__steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--fs-md)/1 var(--font-num); background: var(--bg-3); color: var(--amber-2); border: 1px solid var(--line-2); }
.pair__url { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 6px 6px 12px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line-2); font: 600 var(--fs-md)/1 var(--font-num); color: var(--text-2); }
.pair__url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* licence */
.dlg--license { width: min(760px, calc(100vw - 24px)); }
.lic__hero {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 22px 22px 20px; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(240, 178, 58, .14), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line-2);
}
.lic__mark { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--pro-grad); color: #2a1a00; grid-row: span 2; box-shadow: 0 10px 26px rgba(240, 178, 58, .25); }
.lic__mark .ico { width: 30px; height: 30px; }
.lic__mark--free { background: var(--bg-3); color: var(--text-2); box-shadow: var(--e1); }
.lic__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 var(--fs-2xl)/1.15 var(--font-display); letter-spacing: .01em; }
.lic__status { color: var(--text-2); font-size: var(--fs-base); }
.lic__meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lic__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; }
.fcmp { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.fcmp th { text-align: left; font: 700 var(--fs-xs)/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 0 8px; }
.fcmp th:not(:first-child), .fcmp td:not(:first-child) { text-align: center; width: 64px; }
.fcmp td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.fcmp__name { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.fcmp__name .ico { width: 16px; height: 16px; color: var(--text-3); }
.fcmp tr.is-focus td { background: rgba(240, 178, 58, .06); }
.fcmp tr.is-focus .fcmp__name .ico { color: var(--pro-b); }
.fcmp .yes { color: var(--ok); }
.fcmp .no { color: var(--text-4); }
.fcmp .yes .ico, .fcmp .no .ico { width: 16px; height: 16px; }
.lic__side { display: grid; gap: 12px; align-content: start; }
.lic__box { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 10px; }
.lic__box h3 { margin: 0; font: 700 var(--fs-base)/1.2 var(--font); }
.lic__box p { font-size: var(--fs-sm); color: var(--text-3); }
.lic__form { display: flex; gap: 8px; }
.lic__form .input { flex: 1; }
.lic__msg { font-size: var(--fs-md); padding: 9px 12px; border-radius: var(--r-sm); }
.lic__msg[data-kind="ok"] { background: var(--ok-dim); color: var(--ok-2); }
.lic__msg[data-kind="error"] { background: var(--bad-dim); color: var(--bad-2); }
.lic__msg:empty { display: none; }
.lic__buy { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.lic__price { font: 700 var(--fs-xl)/1 var(--font-num); color: var(--text); }
.lic__fine { font-size: var(--fs-xs); color: var(--text-4); }

/* fiche d'objet */
.dlg--item { width: min(640px, calc(100vw - 24px)); }
.ic__head { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 16px 16px 20px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, #1e2418, var(--bg-1) 70%); }
.ic__icon { width: 72px; height: 72px; border-radius: 12px; background: var(--bg-0); object-fit: contain; border: 1px solid var(--line-2); grid-row: span 2; }
.ic__name { font: 700 var(--fs-xl)/1.2 var(--font-display); letter-spacing: .01em; min-width: 0; }
.ic__sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-3); font-size: var(--fs-md); }
.ic__head > .iconbtn { grid-row: 1; grid-column: 3; align-self: start; }
.ic__cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ic__cell { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; min-width: 0; }
.ic__cell span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.ic__cell strong { display: block; font: 700 17px/1.25 var(--font-num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ic__cell small { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic__best {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(255, 176, 0, .12), transparent 85%); border: 1px solid var(--amber-line);
}
.ic__best .ico { width: 22px; height: 22px; color: var(--amber); }
.ic__best-text { flex: 1; min-width: 0; }
.ic__best-title { font-weight: 700; }
.ic__best-sub { font-size: var(--fs-sm); color: var(--text-3); }
.ic__best-val { font: 700 var(--fs-xl)/1 var(--font-num); color: var(--amber-2); white-space: nowrap; }
.ic__needs { display: flex; flex-wrap: wrap; gap: 6px; }
.trade { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.trade + .trade { margin-top: 6px; }
.trade__who { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.trade__who .ico { width: 15px; height: 15px; }
.trade__side { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.trade__arrow { color: var(--text-3); display: grid; place-items: center; }
.trade__arrow .ico { width: 18px; height: 18px; }
.itemchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 9px 0 3px; border-radius: 8px; background: var(--bg-0); border: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text); }
button.itemchip:hover { border-color: var(--line-3); }
.itemchip img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; background: var(--bg-3); flex: none; }
.itemchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itemchip b { font: 700 var(--fs-sm)/1 var(--font-num); color: var(--amber-2); }
.itemchip.is-self { border-color: var(--amber-line); }

/* raccourcis */
.dlg--keys { width: min(720px, calc(100vw - 24px)); }
.keys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.keys-group h3:first-child { margin-top: 0; }

/* première ouverture */
.dlg--onboard { width: min(820px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 40px)); }
.ob { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.ob__aside {
  padding: 26px 20px; display: grid; align-content: start; gap: 22px; border-right: 1px solid var(--line);
  background: radial-gradient(120% 70% at 0% 0%, #20271a, transparent 70%), var(--bg);
}
.ob__brand { display: flex; align-items: center; gap: 10px; }
.ob__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ob__steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-3); font-weight: 600; font-size: var(--fs-md); }
.ob__steps li .ob__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--fs-sm)/1 var(--font-num); border: 1px solid var(--line-3); color: var(--text-3); flex: none; }
.ob__steps li[aria-current="step"] { color: var(--text); background: var(--bg-2); }
.ob__steps li[aria-current="step"] .ob__n { background: var(--amber); color: #1a1200; border-color: var(--amber); }
.ob__steps li.is-done .ob__n { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }
.ob__main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ob__body { flex: 1; min-height: 0; overflow: auto; padding: 32px 34px 24px; }
.ob__kicker { font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 10px; }
.ob__title { font: 700 var(--fs-3xl)/1.1 var(--font-display); letter-spacing: .01em; margin: 0 0 10px; }
.ob__text { color: var(--text-2); font-size: var(--fs-lg); max-width: 520px; line-height: 1.5; }
.ob__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.choice {
  position: relative; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); text-align: left;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color var(--t1), background var(--t1), transform var(--t1);
}
.choice:hover { border-color: var(--line-3); transform: translateY(-1px); }
.choice[aria-checked="true"] { border-color: var(--amber); background: linear-gradient(180deg, rgba(255, 176, 0, .1), var(--bg-2)); box-shadow: 0 0 0 3px var(--amber-dim); }
.choice__big { font: 700 var(--fs-xl)/1.1 var(--font-display); }
.choice__sub { font-size: var(--fs-sm); color: var(--text-3); }
.choice__tick { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; color: #1a1200; }
.choice[aria-checked="true"] .choice__tick { background: var(--amber); border-color: var(--amber); }
.choice__tick .ico { width: 13px; height: 13px; stroke-width: 3; opacity: 0; }
.choice[aria-checked="true"] .choice__tick .ico { opacity: 1; }
.ob__checks { display: grid; gap: 0; margin-top: 22px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.ob__check { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.ob__check + .ob__check { border-top: 1px solid var(--line); }
.ob__check-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--text-3); }
.ob__check-ico .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.ob__check[data-s="ok"] .ob__check-ico { background: var(--ok-dim); color: var(--ok); }
.ob__check[data-s="warn"] .ob__check-ico { background: var(--amber-dim); color: var(--amber); }
.ob__check[data-s="error"] .ob__check-ico { background: var(--bad-dim); color: var(--bad); }
.ob__check-title { font-weight: 600; }
.ob__check-sub { font-size: var(--fs-sm); color: var(--text-3); overflow-wrap: anywhere; }
.ob__tip { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-top: 16px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--amber-line); background: linear-gradient(90deg, rgba(255, 176, 0, .08), transparent 80%); }
.ob__tip-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-dim); color: var(--amber); }
.ob__tip-title { font-weight: 700; margin-bottom: 4px; }
.ob__tip-text { color: var(--text-2); font-size: var(--fs-md); }
.ob__keys { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.ob__keys kbd { height: 26px; min-width: 30px; font-size: 12px; }
.ob__summary { display: grid; gap: 8px; margin-top: 22px; }
.ob__summary li { list-style: none; display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.ob__summary .ico { width: 17px; height: 17px; color: var(--ok); }
.ob__summary { padding: 0; }
.ob__foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); }
.ob__foot .grow { flex: 1; }
.ob__dots { display: none; gap: 6px; }
.ob__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.ob__dots span.is-on { background: var(--amber); width: 18px; border-radius: 4px; }

/* ------------------------------------------------------------------ pages (Préparer, Journal, Progression) */

.page { position: absolute; inset: 0; overflow: auto; background: radial-gradient(90% 60% at 100% 0%, rgba(154, 171, 88, .06), transparent 60%), var(--bg); overscroll-behavior: contain; animation: fade-in var(--t2) ease; }
.page__inner { max-width: 1240px; margin: 0 auto; padding: 26px 28px 48px; }
.page__head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page__titles { flex: 1; min-width: 240px; }
.page__kicker { display: inline-flex; align-items: center; gap: 7px; font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 8px; }
.page__kicker .ico { width: 14px; height: 14px; }
.page__title { margin: 0; font: 700 var(--fs-3xl)/1.05 var(--font-display); letter-spacing: .01em; }
.page__sub { margin-top: 6px; color: var(--text-3); font-size: var(--fs-base); }
.page__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page.is-refreshing .page__body { opacity: .6; transition: opacity var(--t2); }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: var(--e1); }
.card__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.card__title { margin: 0; font: 700 var(--fs-xs)/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.card__title .ico { width: 15px; height: 15px; }
.card__head .grow { flex: 1; }
.card__body { padding: 12px 16px 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: var(--e1); min-width: 0; }
.kpi__label { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.kpi__label .ico { width: 15px; height: 15px; }
.kpi__value { font: 600 var(--fs-3xl)/1.05 var(--font-display); color: var(--text); margin-top: 8px; letter-spacing: .01em; white-space: nowrap; }
.kpi__value small { font-size: var(--fs-lg); color: var(--text-3); margin-left: 4px; font-weight: 600; }
.kpi__sub { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 176, 0, .14); overflow: hidden; margin-top: 12px; }
.meter__fill { height: 100%; border-radius: 4px; background: var(--amber); transition: width var(--t3) var(--ease); }
.meter--ok { background: rgba(127, 195, 90, .15); }
.meter--ok .meter__fill { background: var(--ok); }
.meter--info { background: rgba(108, 182, 255, .15); }
.meter--info .meter__fill { background: var(--info); }

/* Préparer */
.plan { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.plan__list { display: grid; gap: 10px; }
.mapcard {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 14px 14px 12px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); color: var(--text); text-align: left;
  box-shadow: var(--e1); transition: border-color var(--t1), transform var(--t1), background var(--t1);
}
.mapcard:hover { border-color: var(--line-3); transform: translateY(-1px); }
.mapcard[aria-pressed="true"] { border-color: var(--amber); background: linear-gradient(180deg, rgba(255, 176, 0, .1), var(--bg-1)); box-shadow: 0 0 0 3px var(--amber-dim), var(--e2); }
.mapcard__rank { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 var(--fs-xl)/1 var(--font-num); background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); grid-row: span 3; align-self: start; }
.mapcard--top .mapcard__rank { background: var(--pro-grad); color: #2a1a00; border-color: rgba(255, 225, 161, .6); }
.mapcard__name { font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: .02em; min-width: 0; }
.mapcard__score { font: 700 var(--fs-lg)/1 var(--font-num); color: var(--amber-2); text-align: right; }
.mapcard__score small { display: block; font: 600 10px/1.2 var(--font); color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.mapcard__stats { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.mapcard__reason { grid-column: 2 / -1; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapcard .meter { grid-column: 2 / -1; margin-top: 6px; height: 5px; }
.mapcard--off { opacity: .55; }
.mapcard--off .mapcard__rank { background: transparent; }
.pd { display: grid; gap: 14px; position: sticky; top: 0; }
.pd__hero {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); background: radial-gradient(120% 160% at 100% 0%, rgba(255, 176, 0, .1), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.pd__kicker { font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); }
.pd__name { font: 700 30px/1.05 var(--font-display); letter-spacing: .01em; margin: 6px 0 0; }
.pd__acts { grid-row: span 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pd__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pd__stat { padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.pd__stat span { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.pd__stat strong { display: block; font: 600 var(--fs-2xl)/1.1 var(--font-display); margin-top: 4px; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.reasons li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--fs-md); color: var(--text-2); }
.reasons li .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 1px; }
.warnbox { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); border: 1px solid var(--amber-line); background: var(--amber-dim); color: var(--amber-2); font-size: var(--fs-md); }
.warnbox + .warnbox { margin-top: 6px; }
.warnbox .ico { width: 17px; height: 17px; margin-top: 1px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist__item { display: grid; grid-template-columns: 20px 30px 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.checklist__item:hover { background: var(--bg-3); }
.checklist__item input { width: 17px; height: 17px; margin: 0; accent-color: var(--ok); }
.checklist__item img { width: 30px; height: 30px; border-radius: 6px; background: var(--bg-0); border: 1px solid var(--line); object-fit: contain; }
.checklist__name { font-weight: 600; font-size: var(--fs-md); min-width: 0; }
.checklist__why { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; margin-top: 1px; }
.checklist__count { font: 700 var(--fs-base)/1 var(--font-num); color: var(--text-2); }
.checklist__item.is-done .checklist__name { color: var(--text-3); text-decoration: line-through; }
.checklist__item.is-done img { opacity: .5; }
.checklist__info { width: 30px; height: 30px; }
.plan-progress { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-3); margin-left: auto; }
.plan-progress .meter { width: 90px; margin: 0; height: 6px; }
.rowlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rowlist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: var(--fs-md); }
.rowlist li + li { border-top: 1px solid var(--line); }
.rowlist .ico { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.rowlist__main { flex: 1; min-width: 0; }
.rowlist__title { font-weight: 600; }
.rowlist__sub { font-size: var(--fs-xs); color: var(--text-3); }
.rowlist__end { font: 700 var(--fs-md)/1 var(--font-num); color: var(--text-2); white-space: nowrap; }
.pickup { display: flex; flex-wrap: wrap; gap: 8px; }
.pickup__item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: var(--fs-md); }
.pickup__item small { color: var(--text-3); }
.pickup__item .iconbtn { width: 26px; height: 26px; }
.pickup__item .iconbtn .ico { width: 15px; height: 15px; }
.pd__back { display: none; }

/* Journal et statistiques */
.jr-top { display: grid; gap: 14px; }
.jr-charts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.chart-card { margin: 0; position: relative; }
.chart-card figcaption { font-size: var(--fs-sm); color: var(--text-3); padding: 0 16px 14px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--amber); transition: opacity var(--t1); }
.chart .bar:hover, .chart .bar.is-hot { opacity: .82; }
.chart .hit { fill: transparent; cursor: default; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { fill: var(--text-3); font: 500 11px var(--font-num); font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--text-2); font: 600 12px var(--font); }
.chart .val { fill: var(--text); font: 700 12px var(--font-num); }
.chart .sub { fill: var(--text-3); font: 500 11px var(--font); }
.chart__tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: 8px; white-space: nowrap;
  background: rgba(14, 16, 13, .97); border: 1px solid var(--line-3); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); font-size: var(--fs-sm); transform: translate(-50%, calc(-100% - 10px));
}
.chart__tip strong { display: block; font: 700 var(--fs-base)/1.2 var(--font-num); color: var(--text); }
.chart__tip span { color: var(--text-3); }
.chart-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.chart-table th { text-align: left; font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding: 6px 0; }
.chart-table td { padding: 7px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chart-table td:not(:first-child), .chart-table th:not(:first-child) { text-align: right; }
.tabletoggle { font-size: var(--fs-sm); }
.raids { display: grid; gap: 8px; margin-top: 4px; }
.raid-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); content-visibility: auto; contain-intrinsic-size: auto 78px;
}
.raid-row__badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-3); grid-row: span 2; }
.raid-row__badge .ico { width: 22px; height: 22px; }
.raid-row[data-o="survived"] .raid-row__badge { background: var(--ok-dim); color: var(--ok); border-color: var(--ok-line); }
.raid-row[data-o="killed"] .raid-row__badge { background: var(--bad-dim); color: var(--bad); border-color: var(--bad-line); }
.raid-row[data-o="mia"] .raid-row__badge { background: var(--amber-dim); color: var(--amber); border-color: var(--amber-line); }
.raid-row[data-o="runthrough"] .raid-row__badge { background: var(--info-dim); color: var(--info); border-color: var(--info-line); }
.raid-row__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.raid-row__map { font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: .02em; }
.raid-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--text-3); }
.raid-row__meta span { display: inline-flex; align-items: center; gap: 5px; }
.raid-row__meta .ico { width: 13px; height: 13px; }
.raid-row__quests { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.raid-row__ask { font-size: var(--fs-xs); color: var(--amber-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.oc-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; grid-row: span 2; }
.oc {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-0); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; transition: background var(--t1), border-color var(--t1), color var(--t1);
}
.oc .ico { width: 15px; height: 15px; }
.oc:hover { border-color: var(--line-3); color: var(--text); }
.oc[aria-pressed="true"][data-o="survived"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok); }
.oc[aria-pressed="true"][data-o="killed"] { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad); }
.oc[aria-pressed="true"][data-o="mia"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber); }
.oc[aria-pressed="true"][data-o="runthrough"] { background: var(--info-dim); color: var(--info-2); border-color: var(--info); }
.jr-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Progression et planque */
.prog-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-top: 14px; }
.traders { display: grid; gap: 0; }
.trader { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; }
.trader + .trader { border-top: 1px solid var(--line); }
.trader__av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); font: 700 var(--fs-md)/1 var(--font-display); grid-row: span 2; border: 1px solid var(--line-2); }
.trader__name { font-weight: 600; }
.trader__nums { font: 600 var(--fs-sm)/1 var(--font-num); color: var(--text-3); text-align: right; white-space: nowrap; }
.trader .meter { grid-column: 2 / -1; margin-top: 4px; height: 5px; }
.stations-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.stations-head .grow { flex: 1; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.station { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: var(--e1); content-visibility: auto; contain-intrinsic-size: auto 220px; }
.station__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.station__name { font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: .02em; }
.pips { display: flex; gap: 4px; }
.pip { width: 18px; height: 5px; border-radius: 3px; background: var(--bg-4); }
.pip.is-on { background: var(--amber); }
.station--max .pip.is-on { background: var(--ok); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bg-0); border: 1px solid var(--line-2); grid-row: span 2; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: var(--bg-3); color: var(--text); }
.stepper button:disabled { opacity: .3; }
.stepper button .ico { width: 15px; height: 15px; }
.stepper__val { min-width: 54px; text-align: center; font: 700 var(--fs-md)/1 var(--font-num); }
.station__next-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.station__done { display: flex; align-items: center; gap: 8px; color: var(--ok-2); font-weight: 600; font-size: var(--fs-md); }
.station__done .ico { width: 17px; height: 17px; }
.station .btn--sm { justify-self: start; }

/* ------------------------------------------------------------------ assistant (tiroir) */

.drawer {
  position: fixed; z-index: 1500; top: var(--topbar-h); right: 0; bottom: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--line-2);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .5); animation: slide-in var(--t3) var(--ease);
}
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.drawer__mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-dim); color: var(--amber-2); border: 1px solid var(--amber-line); }
.drawer__mark .ico { width: 18px; height: 18px; }
.drawer__titles { flex: 1; min-width: 0; display: grid; }
.drawer__title { margin: 0; font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: .02em; }
.drawer__status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__status .dot { width: 7px; height: 7px; }
.drawer__tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); flex: none; }
.drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__note { font-size: var(--fs-xs); color: var(--text-4); text-align: center; padding: 0 16px 10px; }
.chat { flex: 1; min-height: 0; overflow: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 92%; display: grid; gap: 4px; animation: fade-up var(--t2) var(--ease); }
.msg--user { align-self: flex-end; }
.msg--user .msg__body { background: linear-gradient(180deg, #33401f, #2a3519); border: 1px solid #47582a; color: var(--text); border-radius: 14px 14px 4px 14px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; }
.msg--bot .msg__body { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.msg--error .msg__body { border-color: var(--bad-line); background: var(--bad-dim); color: var(--bad-2); }
.msg__meta { font-size: var(--fs-xs); color: var(--text-4); padding: 0 4px; }
.msg--user .msg__meta { text-align: right; }
.msg__retry { justify-self: start; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.chat-hello { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 10px 8px; margin: auto 0; }
.chat-hello__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #3a2e0d, #1d1a0e); color: var(--amber-2); border: 1px solid var(--amber-line); box-shadow: 0 10px 30px rgba(255, 176, 0, .12); }
.chat-hello__ico .ico { width: 28px; height: 28px; }
.chat-hello__title { font: 700 var(--fs-xl)/1.2 var(--font-display); }
.chat-hello__text { color: var(--text-3); font-size: var(--fs-md); max-width: 320px; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.suggest button { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); border-radius: 999px; padding: 7px 12px; font-size: var(--fs-sm); text-align: left; }
.suggest button:hover { border-color: var(--amber-line); color: var(--text); }
.composer { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-0); transition: border-color var(--t1), box-shadow var(--t1); }
.composer:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.composer__input { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: var(--text); max-height: 140px; min-height: 24px; padding: 6px 0; line-height: 1.4; }
.composer__input::placeholder { color: var(--text-4); }
.composer__send { width: 36px; height: 36px; border-radius: 10px; border: 0; display: grid; place-items: center; background: var(--amber); color: #1a1200; flex: none; }
.composer__send:disabled { background: var(--bg-4); color: var(--text-4); }
.composer__send .ico { width: 18px; height: 18px; }
.composer__send.is-stop { background: var(--bg-4); color: var(--text); }
.gpick { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; flex: none; }
.gpick__list { max-height: 220px; overflow: auto; display: grid; gap: 2px; }
.gpick__item { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; color: var(--text); }
.gpick__item:hover, .gpick__item[aria-selected="true"] { background: var(--bg-3); }
.gpick__item small { color: var(--text-3); font-size: var(--fs-xs); }
.gpick__item .chip { grid-row: span 2; align-self: center; }
.guidebook { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px 20px; }
.guidebook__kicker { font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); }
.guidebook__title { margin: 6px 0 4px; font: 700 var(--fs-2xl)/1.15 var(--font-display); }
.guidebook__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.guidebook__steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: gs; display: grid; gap: 10px; }
.guidebook__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; counter-increment: gs; font-size: var(--fs-base); color: var(--text-2); }
.guidebook__steps li::before { content: counter(gs); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 var(--fs-md)/1 var(--font-num); background: var(--bg-3); color: var(--amber-2); border: 1px solid var(--line-2); }
.guidebook__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-3); align-items: center; }
.guidebook__foot a { display: inline-flex; align-items: center; gap: 5px; }
.guidebook__foot .ico { width: 14px; height: 14px; }
.vphase { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.vphase .ico { width: 13px; height: 13px; }
.vphase[data-phase="listening"] { background: var(--bad-dim); color: var(--bad-2); border-color: var(--bad-line); }
.vphase[data-phase="transcribing"], .vphase[data-phase="thinking"] { background: var(--amber-dim); color: var(--amber-2); border-color: var(--amber-line); }
.vphase[data-phase="answer"] { background: var(--ok-dim); color: var(--ok-2); border-color: var(--ok-line); }

/* Markdown sûr */
.md { font-size: var(--fs-base); line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md h1, .md h2, .md h3, .md h4 { margin: 14px 0 6px; font: 700 var(--fs-lg)/1.25 var(--font-display); letter-spacing: .01em; }
.md h1 { font-size: var(--fs-xl); }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 3px; }
.md li::marker { color: var(--amber-2); }
.md code { font: 600 .92em/1 ui-monospace, "Cascadia Code", Consolas, monospace; padding: 2px 5px; border-radius: 5px; background: var(--bg-0); border: 1px solid var(--line); }
.md pre { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--bg-0); border: 1px solid var(--line); overflow: auto; }
.md pre code { border: 0; padding: 0; background: none; font-weight: 400; line-height: 1.45; }
.md blockquote { margin: 0 0 8px; padding: 6px 12px; border-left: 3px solid var(--olive-2); color: var(--text-2); background: var(--olive-dim); border-radius: 0 6px 6px 0; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 12px 0; }
.md strong { color: #fff; }
.md a { color: var(--amber-2); }

/* indicateur vocal sur la carte */
.voicepill {
  position: fixed; z-index: 1450; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(20, 24, 18, .97); border: 1px solid var(--line-3); box-shadow: var(--e3); backdrop-filter: blur(8px); animation: rise-in var(--t3) var(--ease);
}
.voicepill__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--text); flex: none; position: relative; }
.voicepill__ico .ico { width: 19px; height: 19px; }
.voicepill[data-phase="listening"] .voicepill__ico { background: var(--bad); color: #fff; }
.voicepill[data-phase="listening"] .voicepill__ico::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--bad); animation: ring 1.4s ease-out infinite; }
.voicepill[data-phase="transcribing"] .voicepill__ico, .voicepill[data-phase="thinking"] .voicepill__ico { background: var(--amber); color: #1a1200; }
.voicepill[data-phase="answer"] .voicepill__ico { background: var(--ok); color: #0f2108; }
.voicepill[data-phase="error"] .voicepill__ico { background: var(--bad-dim); color: var(--bad); }
.voicepill__body { display: grid; min-width: 0; }
.voicepill__phase { font: 700 var(--fs-xs)/1.2 var(--font-num); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.voicepill__text { font-size: var(--fs-base); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; margin-left: 4px; }
.wave span { width: 3px; height: 6px; border-radius: 2px; background: var(--bad-2); animation: wave 1s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: .12s; }
.wave span:nth-child(3) { animation-delay: .24s; }
.wave span:nth-child(4) { animation-delay: .36s; }

/* fin de raid : demande de l'issue */
.raidprompt {
  position: fixed; z-index: 1460; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 14px 14px 14px 18px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 36, 26, .98), rgba(20, 24, 18, .98)); border: 1px solid var(--line-3); box-shadow: var(--e3); animation: rise-in var(--t3) var(--ease);
}
.raidprompt__kicker { font: 700 var(--fs-xs)/1 var(--font-num); letter-spacing: .14em; text-transform: uppercase; color: var(--info-2); }
.raidprompt__title { font: 700 var(--fs-lg)/1.25 var(--font-display); margin-top: 4px; }
.raidprompt__sum { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }
.raidprompt__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.raidprompt__x { align-self: start; }
.voicepill:not([hidden]) ~ .raidprompt { bottom: 96px; }

/* menu du téléphone */
.navdrawer { position: fixed; inset: 0; z-index: 4500; }
.navdrawer__scrim { position: absolute; inset: 0; background: rgba(5, 6, 4, .66); animation: fade-in var(--t2) ease; }
.navdrawer__panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); background: var(--bg-1); border-right: 1px solid var(--line-2); box-shadow: var(--e3);
  animation: slide-left var(--t3) var(--ease); overflow: auto;
}
.navdrawer__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px 6px; }
.navdrawer__head > .iconbtn { margin-left: auto; }
.navitem { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-lg); text-align: left; }
.navitem:hover { background: var(--bg-2); color: var(--text); }
.navitem .ico { width: 21px; height: 21px; color: var(--text-3); }
.navitem[aria-current="page"] { background: var(--bg-3); color: var(--amber-2); }
.navitem[aria-current="page"] .ico { color: var(--amber-2); }
.navitem__state { margin-left: auto; font-size: var(--fs-sm); color: var(--text-3); }
.navdrawer__sep { height: 1px; background: var(--line); margin: 8px 6px; }
.navdrawer__foot { margin-top: auto; padding: 14px 8px 0; font-size: var(--fs-xs); color: var(--text-4); }

/* ------------------------------------------------------------------ animations */

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes zone { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 176, 0, .55), 0 3px 8px rgba(0, 0, 0, .65); } 50% { box-shadow: 0 0 0 9px rgba(255, 176, 0, .12), 0 3px 8px rgba(0, 0, 0, .65); } }
@keyframes halo-ok { 0%, 100% { outline-color: rgba(127, 195, 90, 1); } 50% { outline-color: rgba(127, 195, 90, .25); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes slide-left { from { transform: translateX(-100%); } }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes rise-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes bootbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 17px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ec-route, .ec-path--straight { animation: none !important; }
}

/* ------------------------------------------------------------------ responsive */

.only-phone, .only-tablet { display: none !important; }
body.no-left #tool-left { display: grid !important; }

@media (max-width: 1440px) {
  .search { flex-basis: 240px; }
  .conn__text { display: none; }
}

@media (max-width: 1280px) {
  :root { --left-w: 280px; --side-w: 360px; }
  .kpis, .prog-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-grid { grid-template-columns: 1fr; }
  .jr-charts { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  :root { --side-w: 340px; }
  .layout, body.no-left .layout { grid-template-columns: minmax(0, 1fr) var(--side-w); }
  body.no-side .layout, body.no-left.no-side .layout { grid-template-columns: minmax(0, 1fr) 0; }
  .left {
    position: absolute; z-index: 1150; left: 0; top: 0; bottom: 0; width: min(330px, 86vw);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--e3); visibility: visible !important;
  }
  body.left-open .left { transform: none; }
  .mapwrap { grid-column: 1; }
  .side { grid-column: 2; }
  .only-tablet { display: grid !important; }
  .poschip { max-width: 160px; }
  .topbar .brand__name { display: none; }
  .guide { grid-template-columns: 88px 1fr; gap: 12px; }
  .guide__dial, .guide__arrow { width: 88px; height: 88px; }
  .guide__line { font-size: 16px; }
  .guide__how { font-size: 18px; }
  .pill--status[data-s="in_raid"] { display: none; }
  .plan { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); }
  .pd__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd__grid { grid-template-columns: 1fr; }
  .lic__cols { grid-template-columns: 1fr; }
  .maneuver { max-width: calc(100% - 130px); }
}

@media (max-width: 900px) {
  .search:not(.is-open) { display: none; }
  #btn-search-mobile { display: inline-grid !important; }
  .search.is-open { position: absolute; left: 6px; right: 6px; top: 9px; z-index: 10; flex: none; }
  .search.is-open .search__results { left: 0; right: 0; width: auto; }
  .timer__src { display: none; }
  .search__kbd { display: none; }
  .poschip span { display: none; }
  .poschip { padding: 0 8px; }
  .st { grid-template-columns: 180px minmax(0, 1fr); }
  .ob { grid-template-columns: minmax(0, 1fr); }
  .ob__aside { display: none; }
  .ob__dots { display: flex; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 52px; --peek: 140px; }
  body { font-size: 15px; }
  .topbar { gap: 6px; padding: 0 6px 0 4px; }
  .topbar .brand, .search, #btn-side, .hide-phone, .conn__text, .topbar__sep { display: none !important; }
  .only-phone { display: inline-grid !important; }
  .only-tablet, body.no-left #tool-left { display: none !important; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .mapsel { padding-left: 6px; max-width: 38vw; }
  .mapsel .ico { display: none; }
  .mapsel select { font-size: var(--fs-md); max-width: 100%; }
  .pill--mode { padding: 0 7px; }
  .timer__val { font-size: 21px; }
  .timer__src { display: none; }
  .pill--status { display: none; }
  .layout, body.no-left .layout, body.no-side .layout, body.no-left.no-side .layout { grid-template-columns: minmax(0, 1fr); }
  body.no-side .side { visibility: visible; }
  .left { display: none !important; }
  body:not([data-view="map"]) .side { visibility: hidden; }

  .side {
    position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0;
    height: calc(88dvh - var(--topbar-h)); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% - var(--sheet-y, var(--peek)))); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); padding-bottom: env(safe-area-inset-bottom);
  }
  .side.is-dragging { transition: none; }
  .side[data-sheet="peek"] { --sheet-y: var(--peek); }
  .side[data-sheet="half"] { --sheet-y: 52dvh; }
  .side[data-sheet="full"] { --sheet-y: 100%; }
  .sheet-handle { display: grid; place-items: center; width: 100%; height: 22px; flex: none; border: 0; background: transparent; touch-action: none; cursor: grab; }
  .sheet-handle__bar { width: 44px; height: 5px; border-radius: 3px; background: var(--line-3); }
  .guide { grid-template-columns: 72px 1fr; gap: 12px; padding: 0 14px 10px; background: none; touch-action: pan-y; }
  .guide__dial, .guide__arrow { width: 72px; height: 72px; }
  .guide__cardinal { inset: 8px; font-size: 12px; }
  .guide__kicker { display: none; }
  .guide__maneuver { display: none !important; }
  .guide__line { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .guide[data-mode="target"] .guide__line { -webkit-line-clamp: 1; }
  .guide__how { font-size: 17px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .guide__meta { margin-top: 4px; }
  .guide__dist { font-size: 24px; }
  .side[data-sheet="peek"] .scanflash { display: none; }
  .maptools { top: 10px; right: 10px; }
  .tool { width: 44px; height: 44px; }
  .floors { left: 10px; bottom: calc(var(--sheet-vis, var(--peek)) + 14px); padding: 4px; transition: bottom .26s; }
  .floor-sum { display: flex; }
  .floors:not(.is-open) .floor-btn { display: none; }
  .floor-btn { min-width: 78px; height: 38px; }
  .tabs .only-phone { display: block !important; }
  .compass { left: 10px; top: 10px; }
  .attrib { bottom: var(--sheet-vis, var(--peek)); font-size: 10px; max-width: 100%; transition: bottom .26s; }
  .leaflet-control-container .leaflet-bottom.leaflet-left { display: none; }
  .layerspop { right: 10px; top: 62px; width: calc(100vw - 20px); max-height: calc(100% - var(--sheet-vis, var(--peek)) - 80px); }
  .mapbanner { top: auto; bottom: calc(var(--sheet-vis, var(--peek)) + 22px); left: auto; right: 10px; transform: none; max-width: calc(100% - 120px); transition: bottom .26s; }
  .maneuver + .mapbanner { top: auto; }
  .maneuver { top: 62px; left: 10px; right: 64px; transform: none; max-width: none; padding: 7px 14px 7px 7px; gap: 10px; animation: none; }
  .maneuver__ico { width: 42px; height: 42px; }
  .maneuver__ico .ico { width: 26px; height: 26px; }
  .maneuver__dist { font-size: 21px; }
  .maneuver__text { font-size: var(--fs-md); }
  .mapnotice { padding-bottom: calc(var(--sheet-vis, var(--peek)) + 20px); }
  .toasts { top: calc(var(--topbar-h) + 8px); bottom: auto; left: 12px; right: 12px; width: auto; align-content: start; }
  body.no-side .toasts, body:not([data-view="map"]) .toasts { right: 12px; }
  .tab { padding: 10px 10px 11px; }
  .search.is-open { display: block !important; position: absolute; left: 6px; right: 6px; top: 7px; z-index: 10; flex: none; }
  .search.is-open .search__results { left: 0; right: 0; width: auto; }
  .dlg, .dlg--wide, .dlg--settings, .dlg--license, .dlg--item, .dlg--onboard, .dlg--keys { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .dlg__head { padding: 10px 8px 10px 16px; }
  .dlg__body { padding: 16px 16px 24px; }
  .qm__row .field { min-width: 0; flex: 1 1 140px; }
  .st { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .st__nav { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; scrollbar-width: none; }
  .st__nav::-webkit-scrollbar { display: none; }
  .st__navbtn { flex: none; height: 34px; padding: 0 12px; }
  .st__navbtn[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--amber); }
  .st__navbtn .pro-chip { display: none; }
  .st__body { padding: 18px 16px 30px; }
  .st__grid2 { grid-template-columns: 1fr; }
  .st__grid2 > .field:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pair { grid-template-columns: 1fr; justify-items: center; }
  .sources li { grid-template-columns: 10px 1fr; }
  .sources li > :last-child { grid-column: 2; }
  .keys-grid { grid-template-columns: 1fr; }
  .ob__body { padding: calc(28px + env(safe-area-inset-top)) 18px 18px; }
  .ob__title { font-size: var(--fs-2xl); }
  .ob__text { font-size: var(--fs-base); }
  .ob__choices { grid-template-columns: 1fr; }
  .ob__foot { gap: 6px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .page__inner { padding: 18px 14px calc(36px + env(safe-area-inset-bottom)); }
  .page__title { font-size: var(--fs-2xl); }
  .page__head { margin-bottom: 16px; }
  .kpis, .prog-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi__value { font-size: var(--fs-2xl); }
  .plan { grid-template-columns: 1fr; }
  .plan.has-detail .plan__list, .page__body.is-detail .plan-pickups { display: none; }
  .plan:not(.has-detail) .plan__detail { display: none; }
  .pd { position: static; }
  .pd__back { display: inline-flex; justify-self: start; }
  .pd__hero { grid-template-columns: 1fr; padding: 16px; }
  .pd__name { font-size: var(--fs-2xl); }
  .pd__acts { grid-row: auto; justify-content: flex-start; }
  .raid-row { grid-template-columns: 40px minmax(0, 1fr); }
  .raid-row__badge { width: 40px; height: 40px; }
  .oc-seg { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .oc { flex: 1 1 auto; justify-content: center; }
  .stations { grid-template-columns: 1fr; }
  .drawer { top: 0; width: 100vw; border-left: 0; z-index: 2600; padding-bottom: env(safe-area-inset-bottom); }
  .voicepill { bottom: calc(var(--sheet-vis, var(--peek)) + 12px); }
  .raidprompt { bottom: calc(var(--sheet-vis, var(--peek)) + 12px); }
  body:not([data-view="map"]) .voicepill, body:not([data-view="map"]) .raidprompt { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ic__head { grid-template-columns: 56px 1fr auto; padding: 14px 8px 14px 16px; }
  .ic__icon { width: 56px; height: 56px; }
  .ic__name { font-size: var(--fs-lg); }
  .lic__hero { grid-template-columns: 1fr; padding: 18px; }
  .lic__mark { grid-row: auto; width: 52px; height: 52px; }
  .lic__form { flex-direction: column; }
}

@media (max-width: 380px) {
  .pill--mode { display: none; }
}

@media (max-width: 340px) {
  .kpis, .prog-top { grid-template-columns: 1fr; }
}
.session .card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.session .card__head .card__title { flex: 1; }
.session__list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.session__name { border: 0; background: none; color: var(--text); font-weight: 700; font-size: var(--fs-base); cursor: pointer; padding: 0; margin-right: 8px; }
.session__name:hover { color: var(--amber-2); }
.session__warn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--amber-2); font-size: var(--fs-sm); font-weight: 600; }
.session__warn .ico { width: 13px; height: 13px; }
.session__why { font-size: var(--fs-sm); color: var(--text-3); margin-top: 3px; }
.qkey__acts { display: inline-flex; gap: 4px; flex: none; }
.pop__photos { margin-top: 8px; }
.pop__photorow { display: flex; gap: 6px; overflow-x: auto; margin-top: 4px; }
.pop__photorow img { display: block; width: 132px; height: 74px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.pop__photohint { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.keylist { display: grid; gap: 4px; margin-top: 8px; }
.keyrow { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.keyrow--owned { border-color: var(--ok-line); color: var(--ok); }
.keyrow--needed { border-color: var(--amber-line); color: var(--amber-2); }
.keyrow__main { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.keyrow__name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keyrow--owned .keyrow__name { color: var(--ok); }
.keyrow__sub { font-size: var(--fs-xs); color: var(--text-3); }
.pop__photo { position: relative; flex: none; }
.pop__photodel { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; }
.pop__photo:hover .pop__photodel, .pop__photodel:focus-visible { opacity: 1; }

/* ------------------------------------------------------------------ Azimut sur le site (html[data-surface="web"]) */
.webbar {
  position: absolute; z-index: 1001; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 230px); padding: 6px 8px; border-radius: 14px;
  background: rgba(15, 18, 14, .92); border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.webbar .btn { white-space: nowrap; }
.webbar__state, .webbar__note { display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.webbar__state { color: var(--ok); }
.webbar .ico { width: 16px; height: 16px; }
/* ce qui n'existe que dans l'appli installée : journal des raids, assistant */
html[data-surface="web"] :is(.rail__item, .navitem)[data-view="journal"],
html[data-surface="web"] #rail-assistant { display: none !important; }
@media (max-width: 760px) {
  .webbar { left: 10px; right: 10px; transform: none; max-width: none; bottom: calc(var(--sheet-vis, var(--peek)) + 62px); overflow-x: auto; }
}

/* ennemis annoncés sur la carte sans lieu précis : panneau opaque sous la colonne d'outils (rien de la carte
   ne se lit au travers, et il ne croise ni le bandeau, ni la consigne, ni les étages) */
.maptools { align-items: flex-end; }
.maproam {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 4px; padding: 6px; width: max-content; max-width: 230px;
  border-radius: 12px; background: rgba(15, 18, 14, .96); border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.maproam[hidden] { display: none; }
.maproam__lead { font: 700 10px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 1px 3px 2px; }
.maproam__item {
  --ex-c: #ff5a5a; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px 4px 7px; border-radius: 999px; cursor: pointer;
  background: rgba(30, 36, 26, .9); border: 1px solid var(--line-2); border-left: 3px solid var(--ex-c); color: var(--text); font: 600 var(--fs-sm)/1.2 var(--font);
}
.maproam__item:hover { border-color: var(--ex-c); }
.maproam__item .ico { width: 14px; height: 14px; color: var(--ex-c); flex: none; }
.maproam__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maproam__pct { color: var(--ex-c); font-weight: 800; }
.maproam__item.ec-en--goons { --ex-c: #ff9a3d; } .maproam__item.ec-en--cultist { --ex-c: #d77bff; } .maproam__item.ec-en--raider { --ex-c: #6cb6ff; }
.maproam__item.ec-en--rogue { --ex-c: #58d0c4; } .maproam__item.ec-en--blackdiv { --ex-c: #e6e6e6; } .maproam__item.ec-en--army { --ex-c: #b5c46a; }
.maproam__item.ec-en--special { --ex-c: #ff8fb8; }
.ec-en-dot { width: 10px; height: 10px; margin: 1px; border-radius: 50%; background: var(--ex-c); opacity: .45; border: 1px solid rgba(8, 10, 7, .8); }
.ec-en-icon--minor:hover .ec-en-dot { opacity: .9; }

/* accueil du site (première visite) */
.dlg--welcome { width: min(620px, calc(100vw - 24px)); }
.welcome__lead { margin: 0 0 16px; color: var(--text-2); }
.welcome__steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.welcome__step { display: flex; gap: 12px; align-items: flex-start; }
.welcome__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #1a1200; font-weight: 800; }
.welcome__title { font-weight: 700; }
.welcome__text { color: var(--text-2); font-size: var(--fs-md); margin-top: 2px; }
.welcome__fine { color: var(--text-3); font-size: var(--fs-sm); margin: 0 0 16px; }
.welcome__actions { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  /* téléphone : la barre du site sur une ligne, le bandeau au-dessus d'elle (plus de chevauchement avec les étages) */
  .webbar { justify-content: center; overflow: hidden; }
  .webbar__chrono .webbar__label { display: none; }      /* le chrono en icône seule : la barre tient sur une ligne */
  .webbar__note { display: none; }                       /* le bandeau juste au-dessus dit déjà comment se placer */
  html[data-surface="web"] .mapbanner { left: 10px; right: 10px; max-width: none; bottom: calc(var(--sheet-vis, var(--peek)) + 116px); text-align: center; }
}

/* ---------- Économie : tables des munitions, des fabrications et des trocs ---------- */
.eco__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.eco__search { flex: 1 1 220px; max-width: 320px; }
.eco__controls select.input { width: auto; max-width: 240px; }
.eco__seglabel { margin-left: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); }
.eco__count { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--text-3); }
.eco__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); box-shadow: var(--e1); }
.eco__scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.eco-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.eco-table thead th { padding: 0; background: var(--bg-2); border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.eco-table th.is-num, .eco-table td.is-num { text-align: right; }
.eco__sort {
  display: inline-flex; align-items: center; gap: 4px; width: 100%; padding: 10px; background: none; border: 0; cursor: pointer;
  color: var(--text-3); font: 700 var(--fs-xs)/1.2 var(--font-num); letter-spacing: .06em; text-transform: uppercase;
}
.eco-table th.is-num .eco__sort { justify-content: flex-end; }
.eco__sort:hover, .eco-table th[aria-sort="ascending"] .eco__sort, .eco-table th[aria-sort="descending"] .eco__sort { color: var(--text); }
.eco__sort .ico { width: 12px; height: 12px; }
.eco-table tbody th, .eco-table tbody td { padding: 7px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eco-table tbody th { text-align: left; font-weight: 600; }
.eco-table tbody tr:not(.eco-table__cal):hover { background: var(--bg-2); }
.eco-table__cal th { padding-top: 12px; background: var(--bg-0); color: var(--amber-2); font: 700 var(--fs-md)/1.2 var(--font-display); letter-spacing: .02em; }
.eco-table__n { margin-left: 10px; color: var(--text-4); font: 500 var(--fs-xs)/1 var(--font-num); letter-spacing: .04em; }
.eco__name { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.eco__name:hover { color: var(--amber-2); text-decoration: underline; }
.eco__tag { font-size: var(--fs-xs); }
.eco__pen { display: inline-block; min-width: 2.4em; font-weight: 700; }
.eco__bar { display: inline-block; width: 44px; height: 5px; margin-left: 8px; border-radius: 3px; background: var(--bg-3); vertical-align: middle; overflow: hidden; }
.eco__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.eco__trader { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.eco__task .ico { width: 12px; height: 12px; color: var(--amber-2); }
.eco__price { display: inline-block; min-width: 4.6em; margin-left: 8px; font-weight: 600; }
.eco__none { color: var(--text-4); }
.eco__rule { display: flex; align-items: flex-start; gap: 8px; max-width: 80ch; margin-top: 14px; font-size: var(--fs-sm); color: var(--text-3); }
.eco__rule .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }
@media (max-width: 760px) {
  .eco__search { max-width: none; flex-basis: 100%; }
  .eco__seglabel { margin-left: 0; flex-basis: 100%; }
  /* colonnes serrées : cartouche, pénétration, classe et dégâts tiennent sur l'écran ; le nom reste visible
     quand la table défile sur le côté */
  .eco-table { width: max-content; min-width: 100%; }
  .eco-table tbody th, .eco-table tbody td { padding: 7px 8px; }
  .eco__sort { padding: 9px 8px; letter-spacing: .02em; }
  .eco-table tbody th { position: sticky; left: 0; background: var(--bg-1); }
  .eco-table tbody .eco-table__cal th { background: var(--bg-0); }
  .eco__name { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
  .eco__bar { display: none; }
}
.st__risk { display: flex; align-items: flex-start; gap: 8px; }
.st__risk .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }

/* Économie : onglets, lignes des fabrications et des trocs */
.eco__tab.is-refreshing { opacity: .6; transition: opacity var(--t2); }
.eco__hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); font-size: var(--fs-md); color: var(--text-2); }
.eco__hint .ico { flex: none; width: 16px; height: 16px; color: var(--amber-2); }
.eco__hint span { flex: 1 1 260px; }
.eco__toggle { margin-left: 6px; }
.eco-table--trades tbody th, .eco-table--trades tbody td { white-space: normal; vertical-align: top; }
.eco-table--trades tbody td.is-num { white-space: nowrap; }
.eco__what { min-width: 220px; max-width: 420px; }
.eco__sub { margin-top: 3px; font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); }
.eco__given { display: inline; }
.eco__tool { color: var(--text-4); }
.eco__owner { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.eco__strong { font-weight: 700; }
.eco-table tbody tr.is-off .eco__strong, .eco-table tbody tr.is-off .eco__name { color: var(--text-3); }
.eco__phone { display: none; }
@media (max-width: 760px) {
  .eco__what { min-width: 170px; max-width: 230px; }
  .eco__toggle { margin-left: 0; flex-basis: 100%; }
  .eco__phone { display: block; color: var(--text); font-weight: 600; }
}

/* ---------- Escouade : fenêtre du salon et coéquipiers sur la carte ---------- */
.tool { position: relative; }
.tool__n {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--amber); color: #1a1200; font: 700 11px/18px var(--font-num); text-align: center; box-shadow: 0 0 0 2px var(--bg-1);
}
.tool[aria-pressed="true"] .tool__n { background: #1a1200; color: var(--amber-2); }
.tool[data-stale="1"] .tool__n { background: var(--bg-4); color: var(--text-2); }

.dlg--squad { width: min(580px, calc(100vw - 24px)); }
.squad { display: grid; gap: 14px; align-content: start; }
.squad p { margin: 0; }
.squad__lead { color: var(--text-2); }
.squad__hint { font-weight: 400; color: var(--text-3); }
.squad__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.squad__choice { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.squad__choice .h3 { margin: 0; }
.squad__join { display: flex; gap: 8px; }
.squad__codein { min-width: 0; flex: 1; text-align: center; }
.squad__error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--bad-dim); border: 1px solid var(--bad-line); color: var(--bad-2); }
.squad__error .ico { flex: none; width: 18px; height: 18px; }
.squad__room { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); }
.squad__kicker { font: 700 var(--fs-xs)/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.squad__code { font: 700 30px/1.25 var(--font-num); letter-spacing: .12em; color: var(--amber-2); user-select: all; }
.squad__status { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.squad__status .ico { width: 16px; height: 16px; }
.squad__status.is-stale { color: var(--amber-2); }
.squad__list { display: grid; gap: 6px; }
.squad__member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-1); }
.squad__badge {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-num);
  border: 2px solid #0b0d09; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7);
}
.squad__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.squad__name { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.squad__rallyline { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.squad__rallyline .ico, .squad__rally .ico { width: 14px; height: 14px; }
.squad__rally { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm); }
.squad__rally span { display: inline-flex; align-items: center; gap: 6px; }
.squad__privacy { padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.squad__privacy-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.squad__privacy-title .ico { width: 15px; height: 15px; }
.squad__privacy ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.squad__foot { display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .squad__choices { grid-template-columns: 1fr; }
  .squad__code { font-size: 26px; }
}

/* coéquipier : pastille numérotée à sa couleur, flèche de cap, nom (jamais la couleur seule) */
.ec-mate { position: relative; width: 30px; height: 30px; --mate: #4fc3f7; --mate-ink: #10140c; transition: opacity .4s; }
.ec-mate--rally { width: 26px; height: 26px; }
.ec-mate__dot {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mate); color: var(--mate-ink); font: 700 12px/1 var(--font-num); border: 2px solid #0b0d09;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 2px 8px rgba(0, 0, 0, .7);
}
.ec-mate--rally .ec-mate__dot { width: 22px; height: 22px; margin: -11px; border-radius: 6px; }
.ec-mate__dot .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.ec-mate__arrow { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 2px #000); }
.ec-mate__arrow path { fill: var(--mate); stroke: #0b0d09; stroke-width: 1.6; stroke-linejoin: round; }
.ec-mate__label {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px 6px; border-radius: 8px; background: rgba(10, 12, 9, .88); color: #f2f5ee; font: 600 11px/1.5 var(--font); border: 1px solid var(--mate); pointer-events: none;
}
.ec-mate--stale { opacity: .74; }
.ec-mate--old { opacity: .46; filter: grayscale(.8); }
.ec-mate--off { opacity: .55; }
.ec-mate--off .ec-mate__dot { border-style: dashed; }

/* coéquipier hors de la vue : pastille au bord de la carte, dans sa direction */
.ec-edges { position: absolute; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.ec-edge {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px 0 5px; border-radius: 14px; border: 1px solid var(--mate); background: rgba(10, 12, 9, .92); color: #f2f5ee;
  font: 600 11px/1 var(--font); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); white-space: nowrap; max-width: 150px;
}
.ec-edge:hover { background: var(--bg-3); }
.ec-edge__arrow { width: 14px; height: 14px; flex: none; }
.ec-edge__arrow path { fill: var(--mate); stroke: #0b0d09; stroke-width: 1; stroke-linejoin: round; }
.ec-edge__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mate); color: var(--mate-ink); font: 700 11px/1 var(--font-num); }
.ec-edge__text { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Paramètres : lien TarkovTracker (aperçu de l'import) ---------- */
.st__tracker { padding-top: 12px; padding-bottom: 6px; }
.st__list { margin: 8px 0 6px; padding-left: 18px; display: grid; gap: 3px; font-size: var(--fs-md); color: var(--text-2); }

/* ---------- Économie : compte rendu de la réserve lue à l'écran ---------- */
.eco-table--stash thead th { padding: 7px 10px; font-size: var(--fs-sm); color: var(--text-3); }
.eco-table--stash tbody th, .eco-table--stash tbody td { white-space: normal; vertical-align: top; }
.eco-table--stash tbody th { min-width: 240px; }
.eco-table--stash tbody td.is-num { white-space: nowrap; }
.eco__qty { margin-left: 8px; color: var(--text-3); font-weight: 400; white-space: nowrap; }
.eco-table--stash .eco__name { flex-wrap: wrap; row-gap: 2px; }
.eco__unknown { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-3); }
.eco__unknown summary { cursor: pointer; }
.eco__box > .h3 { margin-top: var(--s4); }

