/* VYX Staff — interface d'administration sobre. Fond clair, barre latérale marine,
   jaune réservé aux états actifs. Aucun effet décoratif. */
:root {
	--bg: #f4f6fa; --card: #ffffff; --line: #e3e8f0; --line-2: #cfd7e3;
	--navy: #0f1f3d; --navy-2: #172b52; --blue: #1f5eff; --blue-soft: #e8efff;
	--yellow: #f5c518; --yellow-soft: #fff5cc; --red: #d6455d; --red-soft: #fdeaee; --green: #1f9d6a; --green-soft: #e4f6ee;
	--text: #1b2434; --muted: #6b778c; --radius: 10px;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
b, strong { color: var(--text); font-weight: 600; }
small { color: var(--muted); }
.st-mono { font-family: var(--mono); font-size: 0.86em; }
.st-inline { display: inline; margin: 0; }
.st-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Barre du haut ─────────────────────────────────────────────────────── */
.st-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; height: 56px; padding: 0 1.25rem; background: var(--card); border-bottom: 1px solid var(--line); }
.st-top__brand { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; color: var(--navy); }
.st-top__mark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.st-top__sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.st-top__status { display: flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.st-dot.is-up { background: var(--green); }
.st-dot.is-down { background: var(--red); }
.st-top__user { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.st-top__name { color: var(--text); text-decoration: none; font-weight: 600; }
.st-top__burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 36px; height: 36px; font-size: 1rem; }

/* ── Coque ─────────────────────────────────────────────────────────────── */
.st-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.st-nav { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow-y: auto; padding: 1rem 0.75rem; background: var(--navy); display: flex; flex-direction: column; gap: 0.15rem; }
.st-nav__link { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 500; position: relative; }
.st-nav__link i { font-style: normal; width: 1.1rem; text-align: center; color: rgba(255, 255, 255, 0.45); font-size: 0.9rem; }
.st-nav__link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.st-nav__link.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.st-nav__link.is-active::before { content: ''; position: absolute; left: -0.75rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--yellow); border-radius: 0 3px 3px 0; }
.st-nav__link.is-active i { color: var(--yellow); }
.st-nav__group, .st-nav__foot { margin-top: auto; padding: 0.8rem 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
.st-nav__foot { margin-top: 0.6rem; font-size: 0.8rem; }
.st-nav__label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.4rem; }
.st-nav__viewas { display: flex; flex-direction: column; gap: 0.4rem; }
.st-nav__viewas .st-input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.st-nav__viewas .st-btn { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.st-main { padding: 1.5rem 1.75rem 3rem; min-width: 0; }

/* ── Titres, bannières, tuiles ─────────────────────────────────────────── */
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.st-kicker { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.st-h1 { margin: 0.15rem 0 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
.st-h2 { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0 0 0.85rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.st-h2__meta { font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.st-h3 { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.st-lead { color: var(--muted); max-width: 60ch; }
.st-banner { padding: 0.65rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--card); }
.st-banner--ok { border-color: #bfe6d2; background: var(--green-soft); }
.st-banner--bad { border-color: #f2c2cb; background: var(--red-soft); }
.st-banner--warn { border-color: #efdc9a; background: var(--yellow-soft); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-bottom: 1.25rem; }
.st-tile { padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.st-tile--accent { border-color: var(--yellow); }
.st-tile--warn { border-color: #efb2bd; }
.st-tile__label { display: block; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.st-tile__value { display: block; margin-top: 0.25rem; font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.st-tile__value small { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 0.25rem; }
.st-tile__hint { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted); }

/* ── Panneaux, listes, tableaux ────────────────────────────────────────── */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.st-grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.st-panel { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.st-panel--wide { grid-column: 1 / -1; }
.st-panel--narrow { max-width: 480px; margin: 2rem auto; }
.st-panel--tight { padding: 0.85rem 0.95rem; }
.st-panel--danger { border-color: #f2c2cb; }
.st-panel--console { grid-column: 1 / -1; }
.st-empty { color: var(--muted); font-size: 0.88rem; margin: 0; padding: 0.3rem 0; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.st-list li:first-child { border-top: 0; }
.st-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.st-list__name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.st-list__meta { color: var(--muted); white-space: nowrap; }
.st-list--pick li { cursor: pointer; border-radius: 6px; padding-inline: 0.4rem; }
.st-list--pick li:hover { background: var(--blue-soft); }
.st-list--pick li.is-active { background: var(--yellow-soft); }
.st-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--line); }
.st-rank { list-style: none; margin: 0; padding: 0; }
.st-rank li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) 90px auto; align-items: center; gap: 0.6rem; padding: 0.38rem 0; border-top: 1px solid var(--line); }
.st-rank li:first-child { border-top: 0; }
.st-rank__pos { font-weight: 600; color: var(--muted); }
.st-rank__bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.st-rank__bar i { display: block; height: 100%; background: var(--blue); }
.st-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.st-table th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line-2); }
.st-table td { padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table .num { text-align: right; }
.st-cell--wrap { white-space: normal; word-break: break-word; max-width: 420px; }
.st-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0; }
.st-dl dt { color: var(--muted); }
.st-dl dd { margin: 0; }
.st-static { padding: 0.5rem 0; }
.st-pill { display: inline-block; padding: 0.15em 0.55em; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.st-pill--live, .st-pill--closed { background: var(--green-soft); color: var(--green); border-color: transparent; }
.st-pill--refused, .st-pill--lost { background: var(--red-soft); color: var(--red); border-color: transparent; }
.st-pill--open { background: var(--yellow-soft); color: #8a6d00; border-color: transparent; }
.st-chip { display: inline-flex; align-items: center; padding: 0.2em 0.65em; border-radius: 999px; font-size: 0.74rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: var(--card); cursor: default; }
.st-chip--developpeur { border-color: transparent; background: var(--yellow-soft); color: #7a5f00; }
.st-chip--superadmin { border-color: transparent; background: var(--blue-soft); color: var(--blue); }
.st-chip--warn { border-color: transparent; background: var(--yellow); color: var(--navy); cursor: pointer; }
.st-chip--slot { cursor: pointer; }
.st-chip--slot.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.st-rarity--divin { --tint: #b8860b; } .st-rarity--exclusif { --tint: #b0329a; } .st-rarity--legendaire { --tint: #d2691e; } .st-rarity--epique { --tint: #6f42c1; } .st-rarity--rare { --tint: #1f5eff; } .st-rarity--commun { --tint: #6b778c; } .st-rarity--inconnu { --tint: #98a2b3; }
.st-pill.st-rarity--divin, .st-pill.st-rarity--exclusif, .st-pill.st-rarity--legendaire, .st-pill.st-rarity--epique, .st-pill.st-rarity--rare, .st-pill.st-rarity--commun, .st-pill.st-rarity--inconnu { color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, white); border-color: transparent; }
.st-bars { list-style: none; margin: 0; padding: 0; }
.st-bars__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; align-items: center; gap: 0.7rem; padding: 0.4rem 0; }
.st-bars__label { font-weight: 600; color: var(--tint, var(--text)); }
.st-bars__track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-bars__track i { display: block; height: 100%; background: var(--tint, var(--blue)); }
.st-bars__value { text-align: right; }

/* ── Formulaires, boutons ──────────────────────────────────────────────── */
.st-form { display: flex; flex-direction: column; gap: 0.85rem; }
.st-field { display: flex; flex-direction: column; gap: 0.3rem; }
.st-field > span { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.st-help { font-size: 0.78rem; color: var(--muted); }
.st-input { width: 100%; padding: 0.55rem 0.75rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; }
.st-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.15); }
.st-input--mono { font-family: var(--mono); }
.st-input--sm { padding: 0.35rem 0.6rem; font-size: 0.84rem; }
.st-input--num { max-width: 130px; }
.st-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.st-check input { width: 16px; height: 16px; accent-color: var(--navy); }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 600 0.88rem var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.st-btn:hover { background: var(--bg); border-color: var(--muted); }
.st-btn:disabled { opacity: 0.55; cursor: wait; }
.st-btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.st-btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.st-btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.st-btn--ghost:hover { background: var(--bg); color: var(--text); }
.st-btn--danger { background: var(--card); color: var(--red); border-color: #f2c2cb; }
.st-btn--danger:hover { background: var(--red-soft); border-color: var(--red); }
.st-btn--sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.st-btn--block { width: 100%; padding: 0.7rem; font-size: 0.95rem; }

/* ── Console ───────────────────────────────────────────────────────────── */
.st-console__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.st-console__prompt { color: var(--muted); font-weight: 600; }
.st-console__out { margin: 0.8rem 0 0; padding: 0.8rem 0.9rem; min-height: 120px; max-height: 320px; overflow: auto; border-radius: 8px; background: var(--navy); border: 1px solid var(--navy); color: #d7e0f0; white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; }

/* ── Menu Gestion ──────────────────────────────────────────────────────── */
.st-gestion { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1rem; align-items: start; }
.st-gside { display: flex; flex-direction: column; gap: 0.8rem; position: sticky; top: 72px; }
.st-gside__target { margin: 0 0 0.6rem; font-weight: 600; }
.st-gslots { display: flex; gap: 0.4rem; }
.st-gtabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.st-gtab { padding: 0.45rem 0.85rem; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 0.84rem var(--sans); cursor: pointer; }
.st-gtab:hover { background: var(--bg); color: var(--text); }
.st-gtab.is-active { background: var(--navy); color: #fff; }
.st-gtab--flat { margin-left: auto; border-color: var(--line-2); }
.st-gpage { display: none; }
.st-gpage.is-active { display: block; }
.st-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.st-gcards--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.st-gcard { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.85rem; border-radius: 8px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.st-gcard:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.st-gcard--gold { border-top-color: var(--yellow); }
.st-gcard--red { border-top-color: var(--red); }
.st-gcard__num { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }
.st-gcard__name { font-weight: 600; }
.st-gcard__sub { font-size: 0.76rem; color: var(--muted); }
.st-gform { padding: 0.85rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); margin-bottom: 0.9rem; }
.st-gform__row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.st-gform__row .st-input { width: auto; flex: 1 1 160px; }

/* ── Connexion ─────────────────────────────────────────────────────────── */
.st-guest { display: grid; place-items: center; padding: 2rem 1rem; }
.st-guest__grid { display: none; }
.st-login { width: min(100%, 400px); }
.st-login__card { padding: 1.5rem 1.5rem 1.25rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(16, 24, 40, 0.25); }
.st-login__head { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.st-login__mark { display: inline-block; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.st-login__sub { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.st-login__foot { margin: 1rem 0 0; font-size: 0.76rem; color: var(--muted); }
.st-captcha { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.st-captcha img { border-radius: 6px; border: 1px solid var(--line); }
.st-error { text-align: center; }
.st-error__code { display: block; font-size: 2.4rem; font-weight: 700; color: var(--muted); }

@media (max-width: 991.98px) {
	.st-shell { display: block; }
	.st-nav { position: fixed; z-index: 30; top: 56px; left: 0; bottom: 0; width: min(80vw, 280px); transform: translateX(-102%); transition: transform 0.25s; }
	.st-shell.is-open .st-nav { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 31, 61, 0.35); }
	.st-top__burger { display: inline-flex; align-items: center; justify-content: center; }
	.st-main { padding: 1rem 1rem 2.5rem; }
	.st-gestion { grid-template-columns: 1fr; }
	.st-gside { position: static; }
	.st-top__status { display: none; }
}

/* Tableaux : pas de retour à la ligne dans les cellules, défilement horizontal si besoin */
.st-panel { overflow-x: auto; }
.st-table th, .st-table td { white-space: nowrap; }
.st-table td:first-child { white-space: normal; }
.st-table .st-cell--wrap { white-space: normal; }
.st-tile__value { white-space: nowrap; }

/* Petits écrans : la barre du haut garde la marque, la déconnexion et le menu */
@media (max-width: 639.98px) {
	.st-top { padding: 0 0.85rem; gap: 0.6rem; }
	.st-top__user { gap: 0.45rem; }
	.st-top__user > span.st-chip { display: none; }
	.st-top__name { display: none; }
}

/* ── Icônes (sprite Lucide) ────────────────────────────────────────────── */
.st-ic { width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -0.18em; }
.st-btn .st-ic { width: 1em; height: 1em; }
.st-nav__link .st-ic { width: 1.1rem; height: 1.1rem; color: rgba(255, 255, 255, 0.5); }
.st-nav__link.is-active .st-ic { color: var(--yellow); }
.st-nav__label--section { margin: 0.9rem 0.75rem 0.25rem; }
.st-nav__label--section:first-of-type { margin-top: 0.6rem; }
.st-nav__badge { margin-left: auto; min-width: 1.4em; padding: 0.05em 0.45em; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 0.72rem; font-weight: 700; text-align: center; }
.st-top__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.st-top__icon:hover { color: var(--text); background: var(--bg); }
.st-top__icon .st-ic { width: 1.1rem; height: 1.1rem; }
.st-top__icon--float { position: fixed; top: 1rem; right: 1rem; background: var(--card); }
.st-ic--moon { display: none; }
html[data-theme='dark'] .st-ic--moon { display: inline; }
html[data-theme='dark'] .st-ic--sun { display: none; }
.st-top__burger .st-ic { width: 1.2rem; height: 1.2rem; }
.st-head__meta { display: flex; align-items: center; gap: 0.5rem; }

/* ── Casier, bans, liste à faire ───────────────────────────────────────── */
.st-search { display: flex; gap: 0.5rem; }
.st-search .st-input { width: min(60vw, 320px); }
.st-dot--on { display: inline-block; background: var(--green); vertical-align: middle; }
.st-bad { color: var(--red); }
.st-profile .st-dl { grid-template-columns: max-content 1fr max-content 1fr; }
.st-profile .st-dl > div { display: contents; }
.st-grid--casier { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.st-motifs { display: flex; flex-direction: column; gap: 0.7rem; }
.st-motifs__section .st-nav__label { color: var(--muted); margin: 0.2rem 0 0.35rem; }
.st-motif { display: inline-block; margin: 0 0.35rem 0.35rem 0; padding: 0.35rem 0.65rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 0.84rem; font-weight: 500; text-decoration: none; }
.st-motif small { color: var(--muted); font-weight: 400; }
.st-motif:hover { border-color: var(--navy); }
.st-motif--grave { border-left: 3px solid #e2a03f; }
.st-motif--perm { border-left: 3px solid var(--red); }
.st-motif.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.st-motif.is-active small { color: rgba(255, 255, 255, 0.7); }
.st-panel--proposal { border-color: var(--yellow); }
.st-decision { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 0.9rem; border: 1px solid var(--line); background: var(--bg); }
.st-decision__kind { font-weight: 700; font-size: 1.05rem; }
.st-decision__detail { color: var(--muted); }
.st-decision__prev { font-size: 0.78rem; color: var(--muted); }
.st-decision--warn { border-color: #efdc9a; background: var(--yellow-soft); }
.st-decision--ban { border-color: #efb2bd; background: var(--red-soft); }
.st-decision--perm { border-color: var(--red); background: var(--red-soft); }
.st-decision--ban .st-decision__kind, .st-decision--perm .st-decision__kind { color: var(--red); }
tr.is-removed td, .st-request.is-removed { opacity: 0.6; }
.st-grid--bans { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
.st-field--row .st-row { display: flex; gap: 0.5rem; align-items: center; }
.st-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.st-field--row.is-off { opacity: 0.45; pointer-events: none; }
.st-form--decision { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.st-request .st-dl { grid-template-columns: max-content 1fr; }
.st-grid--todo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.st-todo { list-style: none; margin: 0; padding: 0; }
.st-todo__item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.st-todo__item:first-child { border-top: 0; }
.st-todo__item.is-p2 { border-left: 3px solid var(--red); padding-left: 0.6rem; }
.st-todo__item.is-p1 { border-left: 3px solid var(--yellow); padding-left: 0.6rem; }
.st-todo__check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 0.1rem; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); color: transparent; cursor: pointer; padding: 0; }
.st-todo__check:hover { border-color: var(--green); color: var(--green); }
.st-todo__check.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.st-todo__check--static { cursor: default; }
.st-todo__check .st-ic { width: 14px; height: 14px; }
.st-todo__body { flex: 1; min-width: 0; }
.st-todo__title { display: block; font-weight: 600; }
.st-todo--done .st-todo__title { font-weight: 500; color: var(--muted); text-decoration: line-through; }
.st-todo__details { margin: 0.2rem 0 0.3rem; color: var(--muted); font-size: 0.86rem; white-space: pre-line; }
.st-tile--link { text-decoration: none; color: inherit; display: block; }
.st-tile--link:hover { border-color: var(--navy); }
.st-tile--genis .st-tile__value { color: #8a6d00; }
@media (max-width: 991.98px) {
	.st-grid--casier, .st-grid--bans, .st-grid--todo { grid-template-columns: 1fr; }
	.st-profile .st-dl { grid-template-columns: max-content 1fr; }
	.st-search .st-input { width: 100%; }
	.st-search { width: 100%; }
}

/* ── Thème sombre (bouton en haut à droite, mémorisé dans le navigateur) ── */
html[data-theme='dark'] { color-scheme: dark; }
html[data-theme='dark'] {
	--bg: #0f1420; --card: #171d2b; --line: #263043; --line-2: #33405a;
	--navy: #0a1020; --navy-2: #131c33; --blue: #6b9bff; --blue-soft: #1c2a4a;
	--yellow: #f5c518; --yellow-soft: #3a3010; --red: #ff7d92; --red-soft: #3d1f27; --green: #4fd39a; --green-soft: #15342a;
	--text: #e6ebf4; --muted: #94a1b8; --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
html[data-theme='dark'] .st-nav { border-right: 1px solid var(--line); }
html[data-theme='dark'] .st-top__brand { color: var(--text); }
html[data-theme='dark'] .st-btn--primary { background: var(--yellow); border-color: var(--yellow); color: #1a1500; }
html[data-theme='dark'] .st-btn--primary:hover { background: #ffd43a; border-color: #ffd43a; }
html[data-theme='dark'] .st-gtab.is-active, html[data-theme='dark'] .st-chip--slot.is-active, html[data-theme='dark'] .st-motif.is-active { background: var(--yellow); border-color: var(--yellow); color: #1a1500; }
html[data-theme='dark'] .st-motif.is-active small { color: rgba(0, 0, 0, 0.6); }
html[data-theme='dark'] .st-chip--warn { color: #1a1500; }
html[data-theme='dark'] .st-nav__badge { color: #1a1500; }
html[data-theme='dark'] .st-login__mark { background: var(--yellow); color: #1a1500; }
html[data-theme='dark'] .st-console__out { background: #090d16; border-color: var(--line); }
html[data-theme='dark'] .st-banner--ok { border-color: #245a45; }
html[data-theme='dark'] .st-banner--bad, html[data-theme='dark'] .st-panel--danger, html[data-theme='dark'] .st-tile--warn, html[data-theme='dark'] .st-btn--danger { border-color: #6b2f3c; }
html[data-theme='dark'] .st-banner--warn, html[data-theme='dark'] .st-decision--warn { border-color: #6b5a14; }
html[data-theme='dark'] .st-decision--ban { border-color: #6b2f3c; }
html[data-theme='dark'] .st-pill--open { color: var(--yellow); }
html[data-theme='dark'] .st-chip--developpeur { color: var(--yellow); }
html[data-theme='dark'] .st-tile--genis .st-tile__value { color: var(--yellow); }
html[data-theme='dark'] .st-pill.st-rarity--divin, html[data-theme='dark'] .st-pill.st-rarity--exclusif, html[data-theme='dark'] .st-pill.st-rarity--legendaire, html[data-theme='dark'] .st-pill.st-rarity--epique, html[data-theme='dark'] .st-pill.st-rarity--rare, html[data-theme='dark'] .st-pill.st-rarity--commun, html[data-theme='dark'] .st-pill.st-rarity--inconnu { background: color-mix(in srgb, var(--tint) 22%, var(--card)); }
html[data-theme='dark'] .st-input:focus { box-shadow: 0 0 0 3px rgba(107, 155, 255, 0.25); }
html[data-theme='dark'] .st-captcha img { filter: invert(0.92) hue-rotate(180deg); }
html[data-theme='dark'] .st-login__card { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }

.st-secret { display: inline-block; margin-right: 0.4rem; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--yellow-soft); color: var(--text); font-family: var(--mono); font-size: 0.86rem; user-select: all; }

/* ════════════════════════════════════════════════════════════════════════
   IDENTITÉ VYX (12 nov.) : noir et blanc, monogramme V, Michroma pour les
   titres, Chakra Petch pour l'interface, arrondis francs. Sombre par défaut ;
   le bouton soleil / lune garde un thème clair, lui aussi en noir et blanc.
   ════════════════════════════════════════════════════════════════════════ */
:root {
	--sans: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--display: 'Michroma', 'Chakra Petch', sans-serif;
	--radius: 16px;
}
html[data-theme='dark'] {
	--bg: #08090b; --card: #111216; --line: #23252b; --line-2: #33363e;
	--navy: #050607; --navy-2: #17191e; --blue: #eef0f2; --blue-soft: #1b1d22;
	--yellow: #f1f2f4; --yellow-soft: #23252b; --red: #ff7d8f; --red-soft: #2b1418; --green: #5fd6a0; --green-soft: #12251c;
	--text: #eef0f2; --muted: #8b8f97; --shadow: none;
}
html[data-theme='light'] {
	--bg: #f3f4f6; --card: #ffffff; --line: #e4e6ea; --line-2: #d3d6dc;
	--navy: #0a0b0d; --navy-2: #1b1d22; --blue: #0a0b0d; --blue-soft: #eceef1;
	--yellow: #ffffff; --yellow-soft: #ebedf0; --red: #c8323f; --red-soft: #fbe9eb; --green: #1f8a5c; --green-soft: #e3f3eb;
	--text: #0a0b0d; --muted: #6b6f77; --shadow: none;
}
body { font-size: 15px; }
.st-top { background: var(--card); }
.st-top__brand { align-items: center; gap: 0.7rem; }
.st-top__logo { height: 26px; width: auto; display: block; }
html[data-theme='light'] .st-top__logo, html[data-theme='light'] .st-login__logo { filter: invert(1); }
.st-top__sub { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.st-nav { border-right: 1px solid var(--line); }
.st-nav__link { border-radius: 12px; }
.st-nav__link.is-active { background: rgba(255, 255, 255, 0.08); }
.st-nav__label--section { font-family: var(--display); font-size: 0.56rem; letter-spacing: 0.3em; }
.st-kicker { font-family: var(--display); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.32em; }
.st-h1 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem; }
.st-h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.st-h3 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.st-tile, .st-panel, .st-gform, .st-gcard, .st-decision, .st-banner { border-radius: var(--radius); }
.st-tile__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }
.st-tile__value { font-weight: 600; }
.st-tile__value--sm { font-size: 1.05rem; }
.st-btn { border-radius: 999px; font-family: var(--sans); letter-spacing: 0.04em; padding-inline: 1.1rem; }
.st-btn--sm { padding-inline: 0.8rem; }
.st-input { border-radius: 12px; }
.st-gtab, .st-motif, .st-todo__check { border-radius: 999px; }
.st-console__out { border-radius: 12px; }
.st-console__out.is-bad { color: var(--red); }
html[data-theme='light'] .st-tile--accent { border-color: var(--text); }
html[data-theme='light'] .st-nav__link.is-active::before { background: #fff; }
.st-chip--developpeur, html[data-theme='dark'] .st-chip--developpeur { background: var(--text); color: var(--bg); }
.st-chip--superadmin { background: var(--blue-soft); color: var(--text); }
.st-tile--genis .st-tile__value, html[data-theme='dark'] .st-tile--genis .st-tile__value { color: var(--text); }
.st-rank__bar i { background: var(--text); }
.st-login__logo { display: block; height: 54px; width: auto; margin-bottom: 0.4rem; }
.st-login__card { border-radius: 20px; }
.st-mt { margin-top: 0.9rem; }

/* ── En direct ─────────────────────────────────────────────────────────── */
.st-live { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.st-direct { display: grid; gap: 1rem; }
.st-direct__annonce { margin-bottom: 0.6rem; }
.st-direct__annonce .st-input { flex: 1 1 320px; }
.st-players { display: flex; flex-direction: column; gap: 0.6rem; }
.st-player { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 1fr); gap: 0.4rem 1.2rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.st-player__name { font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none; }
.st-player__name:hover { text-decoration: underline; }
.st-player__sub { display: block; color: var(--muted); font-size: 0.8rem; }
.st-player__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.st-player__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; align-items: center; font-variant-numeric: tabular-nums; }
.st-player__nums small { display: block; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.st-player__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.st-tag { display: inline-block; padding: 0.15em 0.65em; border-radius: 999px; font-size: 0.74rem; font-weight: 600; background: var(--text); color: var(--bg); }
.st-tag--dim { background: var(--blue-soft); color: var(--text); font-weight: 500; }
.st-tag--bad { background: var(--red-soft); color: var(--red); }

/* ── Fiche joueur ──────────────────────────────────────────────────────── */
.st-fiche__id { display: flex; align-items: center; gap: 1rem; }
.st-fiche__avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.st-fiche__avatar--vide { display: inline-flex; align-items: center; justify-content: center; background: var(--card); color: var(--muted); }
.st-fiche__ids { color: var(--muted); margin-top: 0.3rem; }
.st-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; }
.st-slot { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.st-slot.is-active { border-color: var(--text); }
.st-slot header { display: flex; justify-content: space-between; align-items: center; }
.st-slot__num { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.st-slot__name { margin: 0.35rem 0 0.6rem; font-size: 1.05rem; }
.st-flags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.st-flag { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 0.82rem; }
.st-flag.is-on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.st-fiche__actions { display: flex; flex-direction: column; gap: 0.9rem; }
.st-fiche__mod { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.st-fiche__slot { display: flex; align-items: center; gap: 0.7rem; }
.st-fiche__slot .st-input { width: auto; }
.st-gforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.7rem; }
.st-gforms .st-gform { margin: 0; background: var(--bg); }
@media (max-width: 991.98px) {
	.st-player { grid-template-columns: 1fr; }
	.st-player__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-gforms { grid-template-columns: 1fr; }
}
