@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
/* Pages privilégiées : masquées jusqu'à validation du rôle par guard.js (anti-flash). */
body.pre-guard { visibility: hidden; }

/* Disposition des pages d'event en colonnes : grille 12, chaque bloc span layout.col.
   Vertical = marges des blocs (rythme inchangé) ; horizontal = column-gap. Responsive. */
.block-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 18px; row-gap: 16px; align-items: start; }
.block-cell { min-width: 0; }
/* Blocs event : à 1024 les blocs étroits (<6 col) passent au moins mi-largeur ; à 768 pleine largeur. */
@media (max-width: 1024px) { .block-cell { grid-column: span 6 !important; } }
@media (max-width: 768px) { .block-cell { grid-column: span 12 !important; } }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Signature éditoriale : filet d'accent en haut de CHAQUE page → le thème (couleur)
     se voit immédiatement et partout. Les pages d'event le surchargent avec leur accent. */
  border-top: 3px solid var(--accent);
}
/* Éditorial : fond uni, pas de halos ambiants. */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Titres en serif éditoriale (le caractère vient de la typo + du rythme, pas des effets). */
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; line-height: 1.14; color: var(--text); }
h3, h4 { letter-spacing: -0.005em; }

/* Liens éditoriaux : soulignement fin à l'apparition, jamais criard. */
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t); }
a:hover { color: var(--accent-strong); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 16px;
  /* Primaire = ENCRE : toujours net, quel que soit l'accent du thème. */
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-sm);
  font-weight: 550;
  font-size: 14px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { background: var(--ink-hover); }
.btn:active { background: var(--ink-hover); }
/* CTA coloré optionnel (utilise l'accent là où on VEUT la couleur). */
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn.ghost:hover { border-color: var(--text); background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 82%, #000); }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.textarea { min-height: 100px; font-family: var(--font-mono); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.container { max-width: 1280px; margin: 0 auto; padding: var(--space-4); }

.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  height: 56px;
  gap: var(--space-3);
}
.nav .brand {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav .brand:hover { color: var(--text); }
.nav .brand .logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav .nav-links { display: flex; gap: 4px; flex: 1; margin-left: var(--space-3); }
.nav .nav-links a {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color var(--t), border-color var(--t);
}
.nav .nav-links a:hover { color: var(--text); }
.nav .nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav .nav-user { display: flex; align-items: center; gap: var(--space-2); position: relative; }
.nav .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.nav .menu {
  position: absolute; right: 0; top: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: none;
}
.nav .menu.open { display: block; }
.nav .menu a, .nav .menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
}
.nav .menu a:hover, .nav .menu button:hover { background: var(--surface-2); }
.nav .burger { display: none; }

/* Nav mobile : burger dès la tablette portrait (768). Voir la couche RESPONSIVE plus bas
   pour la largeur du menu déroulant / la taille de la marque. */
@media (max-width: 768px) {
  .nav .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-2); margin-left: 0; }
  .nav .nav-links.open { display: flex; }
  .nav .burger { display: block; }
}

/* Lot B — fix débordement à ~1024 (17px) : dans la bande 769–1024 (tablette paysage / petit
   laptop), tous les liens de nav restent EN LIGNE. Si leur largeur cumulée + marque + avatar
   dépasse le viewport, le scrollWidth de la nav poussait la PAGE de quelques px (mesuré :
   chalboard sw=1041 @1024). On borne .nav-links (min-width:0) et on lui autorise un défilement
   horizontal interne → la nav ne dépasse plus jamais la fenêtre. Desktop ≥1025 : intact. */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav .nav-links { min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav .nav-links::-webkit-scrollbar { display: none; }
}

.global-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
}

.impersonation-banner {
  position: sticky; top: 0; z-index: 50;
  background: #f59e0b; color: #111;
  padding: 6px 12px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.toast-wrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  font-size: 14px;
  pointer-events: auto;
  animation: slideIn 0.2s ease;
}
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast.ok { border-left-color: var(--ok); }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.grid { display: grid; gap: var(--space-3); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Grilles utilities → responsive. Palier tablette 768 ajouté (2 col) + 600 → 1 col.
   Le palier 1024 garde 3-4 col → 2 col (large tablette). Voir breakpoints unifiés plus bas. */
@media (max-width: 1024px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi .label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.08em; font-weight: 600; }
.kpi .value { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}
.chip.solved { background: var(--ok); color: white; border-color: var(--ok); }
.chip.danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.chip.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chip.muted { color: var(--text-muted); }

.diff-easy { color: #059669; }
.diff-medium { color: #d97706; }
.diff-hard { color: #dc2626; }
.diff-insane { color: #9333ea; font-weight: 700; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.table th, .table td { padding: 10px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--text-muted); background: var(--surface-2); }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: none; }
.table .rank { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-muted); }
.table .pts { text-align: right; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

.hero {
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.hero h1 { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 var(--space-3); color: var(--text); }
/* Filet d'accent sous le titre du hero : la couleur du thème devient un repère de marque. */
.hero h1::after { content: ''; display: block; width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: var(--space-3) auto 0; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 600px; margin: var(--space-3) auto var(--space-4); }

.section { padding: var(--space-5) var(--space-4); }
/* Titre de section : petit tiret d'accent en tête → signature cohérente sur toutes les pages. */
.section h2 { font-size: 26px; margin-bottom: var(--space-4); display: flex; align-items: center; gap: 12px; }
.section h2::before { content: ''; width: 22px; height: 2px; background: var(--accent); flex: none; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 760px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-pop);
}
.modal-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--surface);
}
.modal-body { padding: var(--space-4); }
.modal-footer { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: var(--space-2); }

.flag-input {
  display: flex; align-items: center;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.flag-input .prefix, .flag-input .brace {
  padding: 8px;
  color: var(--text-muted);
  user-select: none;
  background: var(--bg-2);
}
.flag-input input {
  flex: 1; border: none; background: transparent;
  padding: 8px 4px;
  color: var(--text);
  font-family: inherit; font-size: 14px;
  outline: none;
}

.markdown-body {
  line-height: 1.65;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 { font-weight: 700; margin: var(--space-3) 0 var(--space-2); }
.markdown-body p { margin: var(--space-2) 0; }
.markdown-body pre { background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--border); }
.markdown-body code { background: var(--surface-2); padding: 1px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 13px; }
.markdown-body ul { padding-left: 24px; }
.markdown-body a { color: var(--accent); }

.block-tab { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-sm); width: fit-content; }
.block-tab button { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.block-tab button.active { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

footer {
  text-align: center; padding: var(--space-4);
  color: var(--text-muted); font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
}

/* --- Accessibilité (classes posées par a11y.js sur <html>) --- */
html.a11y-large { font-size: 19px; }
html.a11y-contrast { filter: contrast(1.35) saturate(1.12); }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-dys, html.a11y-dys * { font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important; letter-spacing: .02em; line-height: 1.7; }
html.a11y-cb { --accent: #0072B2 !important; --accent-2: #E69F00 !important; --ok: #009E73 !important; --danger: #D55E00 !important; --warn: #E69F00 !important; }

/* Wizard de création de challenge : étape active du stepper */
#wz-stepper [data-go].active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   COUCHE DE POLISH — micro-interactions & finitions (éditorial : sobre, sans surcharge).
   100% additive ; a11y-motion neutralise déjà toutes les animations/transitions.
   ════════════════════════════════════════════════════════════════════════════ */

/* — Scrollbars fines & discrètes (cohérence cross-pages) — */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* — Boutons : retour tactile (léger enfoncement) + ombre fine sur les pleins + focus net — */
.btn { transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t); box-shadow: 0 1px 1.5px rgba(20, 22, 28, 0.05); }
.btn:active { transform: translateY(1px); }
.btn.ghost { box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.accent { box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent); }

/* — Champs : bordure réactive au survol — */
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.select { cursor: pointer; }

/* — Cartes/KPI cliquables : légère élévation au survol — */
a.card, .card.interactive, a.kpi, .kpi.interactive {
  transition: border-color var(--t), box-shadow var(--t-slow), transform var(--t-slow);
  cursor: pointer; text-decoration: none; color: inherit;
}
a.card:hover, .card.interactive:hover, a.kpi:hover, .kpi.interactive:hover {
  border-color: var(--border-strong); box-shadow: var(--shadow-hover); transform: translateY(-2px);
}
a.card:hover { text-decoration: none; }

/* — Liens de nav : soulignement animé depuis le centre — */
.nav .nav-links a { position: relative; }
.nav .nav-links a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px;
  background: var(--accent); transition: left var(--t), right var(--t);
}
.nav .nav-links a:hover::after { left: 8px; right: 8px; }
.nav .nav-links a.active { border-bottom-color: transparent; }
.nav .nav-links a.active::after { left: 8px; right: 8px; }

/* — Modale : voile flouté + entrée qui décélère — */
.modal-backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.16s ease; }
.modal { animation: modalIn 0.22s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

/* — Menu déroulant (nav) : même entrée fluide — */
.nav .menu.open { animation: modalIn 0.16s var(--ease-out); }

/* — Tables : option zébrée + en-tête collant dans un conteneur scrollable — */
.table.zebra tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table.sticky th { position: sticky; top: 0; z-index: 1; }

/* — Chips : netteté (anti-crénelage des bords arrondis) — */
.chip { line-height: 1.5; white-space: nowrap; }

/* — KPI : valeur qui « monte » à l'arrivée — */
.kpi .value { transition: color var(--t); }

/* — Utilities de mise en page (souvent posées inline dans les pages → on les centralise) — */
.row { display: flex; align-items: center; gap: var(--space-2); }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--space-2); }
.stack > * + * { margin-top: var(--space-3); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--border); border: none; margin: var(--space-3) 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* — État vide standardisé (les pages affichent souvent « Aucun… ») — */
.empty {
  text-align: center; color: var(--text-muted); font-size: 14px;
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
}

/* — Skeleton de chargement (shimmer doux) — */
.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; border-radius: var(--radius-sm); animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* — Pastille de statut (point coloré) — */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--text-faint); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.danger { background: var(--danger); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* — Entrée douce du contenu principal (une seule fois, discret) — */
main.container { animation: pageIn 0.28s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* — Barre de progression réutilisable (Raid HP, KotH, budgets…) — */
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width var(--t-slow); }
.bar.ok > span { background: var(--ok); } .bar.danger > span { background: var(--danger); }

/* — Sélection cohérente dans les zones de code — */
.markdown-body pre::selection, .mono::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — FONDATION PARTAGÉE (touche toutes les pages via le CSS partagé).
   100% ADDITIF, media-query-only (desktop-first) → le desktop reste 100% inchangé.

   BREAKPOINTS UNIFIÉS (à utiliser partout, du plus large au plus étroit) :
     1280  — cap conteneur (déjà = max-width .container)
     1024  — large tablette : grilles 3-4 col → 2 col
      768  — tablette portrait : nav → burger, grilles → 1-2 col, toolbars empilent, tables scroll
      680  — petit paysage / grand mobile : typo resserrée, tables scroll, modale ~plein écran
      480  — mobile : 1 colonne partout, padding minimal
      (375 — très petit mobile : garde-fou anti-débordement des grilles auto-fill)

   Cibles : débordements (médias, tables, code), titres, padding, toolbars, modales, nav.
   ════════════════════════════════════════════════════════════════════════════ */

/* Anti-débordement latéral SANS overflow-x:hidden (qui casserait position:sticky de la nav /
   des en-têtes collants) : on borne les coupables habituels (médias, code, tables, toasts). */
img, video, canvas, svg { max-width: 100%; }
.markdown-body pre, .markdown-body table { max-width: 100%; overflow-x: auto; }
.toast { max-width: calc(100vw - 24px); }
/* Le conteneur ne dépasse jamais la fenêtre (max-width + padding déjà posés ; ceinture-bretelles). */
.container { width: 100%; }

/* — Conteneur de défilement horizontal pour tables larges (stratégie SÛRE universelle).
     Enrober une <table> dans .table-scroll (ou utiliser directement au ≤768) évite le
     débordement de PAGE : le scroll reste interne au bloc, avec une ombre d'affordance à droite.
     N.B. la carte-collapse par data-label (par table) est DIFFÉRÉE au lot par-page. */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  /* Ombre d'affordance : indique qu'il reste du contenu à droite (masque au bord). */
  background:
    linear-gradient(90deg, var(--surface) 30%, transparent) left / 24px 100% no-repeat,
    linear-gradient(-90deg, var(--surface) 30%, transparent) right / 24px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(20,22,28,.14), transparent) left / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(20,22,28,.14), transparent) right / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* — Tablette portrait (768) : on resserre l'échelle typo/marges, nav en burger,
     menu déroulant borné, toolbars qui empilent, tables scrollables — */
@media (max-width: 768px) {
  .container { padding: var(--space-3); }
  .hero { padding: var(--space-5) var(--space-3); }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .section { padding: var(--space-4) var(--space-3); }
  .section h2 { font-size: 22px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .modal { max-width: calc(100vw - 24px); }

  /* Nav : le menu déroulant ne doit jamais déborder l'écran. */
  .nav .menu { width: min(300px, calc(100vw - 32px)); right: 16px; min-width: 0; }
  .nav .brand { font-size: 18px; }

  /* Barre d'outils du board : empile vertical (progression sur sa ligne, recherche pleine largeur). */
  .chal-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .chal-progress { min-width: auto; flex: 1 1 auto; }
  .chal-search { flex: 1 1 100%; }

  /* Tables : bloc à défilement horizontal interne (aucun débordement de page). L'en-tête
     collant fonctionne DANS ce conteneur (le scroll est local à la table). */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; max-width: 100%; }
}

/* — Petit paysage / grand mobile (680) : densité table réduite, marque plus compacte — */
@media (max-width: 680px) {
  .table th, .table td { padding: 8px 10px; font-size: 13px; }
  .kpi { padding: 14px 16px; }
  .kpi .value { font-size: 28px; }
  .nav .brand { font-size: 17px; }
  /* Barres d'outils en ligne (input + select + bouton…) : retour à la ligne plutôt que débordement. */
  .row { flex-wrap: wrap; }
  /* Champs côte à côte qui rétrécissent : on garde une largeur mini utilisable. */
  .input, .select, .textarea { min-width: 0; }
}

/* — Modales : hauteur bornée (respecte les barres système), voile avec safe-area (notch),
     et en drawer bas plein-largeur sur petit écran. Partagé (.modal + .ds-modal). — */
.modal, .ds-modal { max-height: min(90vh, calc(100vh - 96px)); }
.modal-backdrop, .ds-modal-backdrop { padding: max(env(safe-area-inset-top), 16px) 16px; }
@media (max-width: 600px) {
  .modal, .ds-modal {
    max-width: 100vw; width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: min(92vh, calc(100vh - 48px));
  }
  .modal-backdrop, .ds-modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-header, .modal-body, .modal-footer { padding-left: var(--space-3); padding-right: var(--space-3); }
}

/* ── ROBUSTESSE À LA POLICE (familles & tailles utilisateur, a11y) : ça grandit/casse, ça ne clippe pas ── */
.nav { height: auto; min-height: 56px; }                       /* la nav s'adapte si la police grandit */
.row > *, .col > *, .grid > * { min-width: 0; }                /* enfants flex/grid peuvent rétrécir → pas de débordement */
.btn { white-space: nowrap; }                                  /* libellé de bouton sur une ligne */
.kpi .value, .hero h1 { overflow-wrap: anywhere; }             /* gros chiffres/titres cassent au lieu de déborder */
.chip { max-width: 100%; }
/* Chaînes très longues (URLs, tokens, codes) : coupure au lieu de déborder. */
.markdown-body, .card, .table td, code { overflow-wrap: anywhere; word-break: break-word; }
.flag-input input { min-width: 0; }

/* — Petit mobile : on réduit encore un cran — */
@media (max-width: 520px) {
  body { font-size: 14px; }
  .container { padding: 12px; }
  .nav { padding: 0 var(--space-3); gap: var(--space-2); }
  .hero h1 { font-size: 28px; }
  .hero { padding: var(--space-4) var(--space-2); }
  .btn { padding: 8px 13px; }
  .btn.small { padding: 5px 9px; }
  /* Les grilles d'utilities en colonnes fixes → 1 colonne (sécurité si une page force des cols). */
  .grid { gap: var(--space-2); }
}

/* ── Icônes SVG inline (assets/js/icons.js) — style trait pro, héritent de currentColor.
   .svgic s'aligne sur le texte ; les variantes de couleur passent par une classe parente. */
.svgic { display: inline-block; vertical-align: -0.14em; flex: none; }
.svgic + span, span + .svgic, .svgic + .svgic { margin-inline-start: .1em; }
/* Pastilles d'état : réutilisent l'icône 'dot' en lui donnant une couleur sémantique. */
.dot-ok { color: var(--success, #10b981); }
.dot-warn { color: var(--warning, #f59e0b); }
.dot-bad { color: var(--danger, #ef4444); }
.dot-idle { color: var(--text-muted, #64748b); }
/* Icône dans un rond (tuiles, en-têtes) : conteneur neutre, l'icône reste en trait. */
.ic-badge { display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 8px; background: var(--surface-2, rgba(127,127,127,.08)); }

/* ═══ Langage visuel « moderne / tech » (direction sentrio) — titres GROTESK + graisses fortes,
   forte hiérarchie, lignes nettes. Couche ADDITIVE : ne touche PAS aux couleurs (le thème d'un
   event reste respecté), juste la typo et le rythme. ═══ */
h1, h2, .hero h1, .section h2, .kpi .value { font-family: var(--font-display); font-weight: 700; }
h1, h2 { letter-spacing: -0.021em; }
.hero h1 { letter-spacing: -0.03em; line-height: 1.05; }
.section h2 { letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.008em; }
.btn { font-weight: 600; }
/* nav : pas de retour à la ligne sur les libellés longs (ex. « Hall of Fame »). */
.nav .nav-links a { white-space: nowrap; }

/* ═══ Tableau de challenges (challenge board) — dense, éditorial, orienté progression.
   Inspiration : la clarté de Hack The Box (solvé/non-solvé net, stats par catégorie) et la
   sobriété de rCTF, retravaillées en style maison (grotesk + filets fins, pas de pilules criardes,
   points comme ancre typographique). Couche additive : n'utilise que les tokens du thème. ═══ */
.chal-toolbar {
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  padding: 13px 16px; margin: 4px 0 26px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.chal-progress { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 200px; }
.chal-progress .pnum { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chal-progress .pnum b { color: var(--accent); font-size: 16px; }
.chal-progress .pbar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.chal-progress .pbar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.chal-search { position: relative; flex: 0 1 230px; }
.chal-search input { width: 100%; box-sizing: border-box; padding: 8px 12px 8px 34px; font-size: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text); transition: border-color var(--t), background var(--t); }
.chal-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.chal-search .svgic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.chal-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; user-select: none; white-space: nowrap; }
.chal-toggle input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* Catégorie : en-tête filet + compteur + progression locale. */
.cat { margin-bottom: 30px; scroll-margin-top: 90px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 9px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.cat-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.cat-head h2::before { content: none; }
.cat-head .cnt { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cat-head .csolved { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cat-head .csolved b { color: var(--ok); }

.chal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }

/* Carte challenge. */
.chal {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.chal:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(0,0,0,.35); }
.chal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chal .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.chal .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.28; letter-spacing: -0.005em; margin: 0; }
.chal .pts { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chal .pts small { font-size: 9.5px; font-weight: 600; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; margin-left: 2px; }
.chal-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.chal .meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.chal .diff { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-transform: capitalize; }
.chal .diff::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.chal .solves { display: inline-flex; align-items: center; gap: 5px; }
.chal .solves .svgic { opacity: .65; }
.chal .fb { display: inline-flex; align-items: center; gap: 4px; color: #b45309; font-weight: 600; }
.chal .fb .svgic { color: #dc2626; }
.chal .done-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.chal .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.chal .tags span { font-size: 10.5px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 6px; }

/* État résolu : liseré vert + teinte discrète — séparation nette solvé/non-solvé (façon HTB). */
.chal.done { border-color: color-mix(in srgb, var(--ok) 42%, var(--border)); background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.chal.done::after { content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ok); }
.chal.done .name { color: color-mix(in srgb, var(--text) 82%, var(--ok)); }

/* Filtrage client (recherche / masquer résolus). */
.chal.hidden, .cat.hidden { display: none; }
.chal-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Grille de challenges — paliers explicites pour tuer le débordement à 375px (le minmax
   228px + gap dépassait un viewport étroit). auto-fill au ≥1024, puis 3/2/1 col. */
@media (max-width: 1024px) { .chal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .chal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .chal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .chal-toolbar { gap: 12px; } }
@media (max-width: 400px)  { .chal-grid { grid-template-columns: 1fr; } }

/* ── Détail d'un challenge — en-tête éditorial + sous-blocs à en-tête icône. ── */
.cd-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cd-head h1 { margin: 0; font-size: 29px; line-height: 1.12; }
.cd-solved { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--border)); }
.cd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 13px; font-size: 14px; color: var(--text-muted); }
.cd-meta .cat { font-weight: 600; color: var(--text); }
.cd-meta .diff { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-transform: capitalize; }
.cd-meta .diff::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.cd-meta .pts { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cd-meta .pts small { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: .05em; margin-left: 3px; }
.cd-credit { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; }
.cd-credit strong { color: var(--text); font-weight: 600; }
.cd-sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.cd-block-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.005em; }
/* Fichiers joints. */
.cd-files { display: flex; flex-direction: column; gap: 8px; }
.cd-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.cd-file .fname { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cd-file .fname .svgic { color: var(--text-muted); flex: none; }
.cd-file .fsize { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cd-file .fact { margin-left: auto; display: flex; gap: 6px; }
/* ═══ Lot B — Cartes de tableau ≤600px (card-collapse). Additif, media-query-only : au desktop
   les tableaux restent des <table> classiques. Sous 600px, chaque LIGNE devient une carte bordée
   et chaque cellule une ligne « Libellé : valeur » (libellé = data-label posé par tableLabels.js
   depuis le <thead>). L'en-tête <thead> est masqué. Couvre .table (scoreboard/publiques) ET
   .ds-table (dashboards admin/superadmin/manage/moderator). ═══ */
@media (max-width: 600px) {
  /* On neutralise le mode « scroll horizontal » posé par le lot A au ≤768 pour ces tableaux :
     ici on passe en cartes empilées (plus lisible que scroller une table dense au doigt). */
  .table, .ds-table {
    display: block; white-space: normal; overflow-x: visible;
    border: 0; background: transparent; border-radius: 0;
  }
  .table thead, .ds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table tbody, .ds-table tbody { display: block; }
  .table tbody tr, .ds-table tbody tr {
    display: block; margin: 0 0 12px; padding: 4px 2px;
    border: 1px solid var(--border); border-radius: var(--radius, 10px);
    background: var(--surface); overflow: hidden;
  }
  .table tbody tr:hover, .ds-table tbody tr:hover td { background: var(--surface); }
  .table tbody td, .ds-table tbody td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    width: auto; padding: 8px 13px; text-align: right !important;
    border: 0; border-bottom: 1px solid var(--border); white-space: normal;
    font-size: 13.5px;
  }
  .table tbody tr td:last-child, .ds-table tbody tr td:last-child { border-bottom: 0; }
  /* Libellé de colonne devant la valeur (rien si data-label absent/vide → cellule pleine largeur). */
  .table tbody td[data-label]::before, .ds-table tbody td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto; margin-right: auto; text-align: left;
    font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #64748b);
    white-space: nowrap;
  }
  /* Cellule sans libellé (colonnes d'action, avatars) : centre le contenu sur toute la largeur. */
  .table tbody td:not([data-label]), .ds-table tbody td:not([data-label]),
  .table tbody td[data-label=""], .ds-table tbody td[data-label=""] { justify-content: center; text-align: center !important; }
  /* Les cellules alignées à droite / .pts / .r restent nettes ; le contenu peut retourner à la ligne. */
  .table tbody td .medal, .ds-table tbody td .medal { display: inline-flex; }
}
/* Zone de soumission. */
.cd-submit { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.cd-submit > label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--text-muted); margin-bottom: 9px; }
/* Barre d'actions de l'accueil d'event : CTAs alignés, séparateur fin. */
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* En-tête de section réutilisable (accueil d'event, sous-cartes). */
.sec-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 14px; }
.sec-title .svgic { color: var(--accent); }
/* Icône d'accent en tête de titre (h2/h3 avec data-ic injecté). */
.svgic.h-ic { color: var(--accent); vertical-align: -0.12em; margin-right: 8px; }
/* Émojis convertis en SVG par la passe globale deemoji.js : épousent la taille du texte. */
.svgic.i-emoji { width: 1.05em; height: 1.05em; vertical-align: -0.14em; }
.deemoji { display: contents; }

/* Tag annuaire (établissement·promo) devant un pseudo — import IdP (userTag.js). Décoratif. */
.dir-tag {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  margin-right: 4px;
  border-radius: 5px;
  color: var(--accent, #10b981);
  background: color-mix(in srgb, var(--accent, #10b981) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #10b981) 30%, transparent);
  vertical-align: middle;
  white-space: nowrap;
}

/* ═══ Lot C — Accessibilité tactile (WCAG 2.5.5) & finitions responsive. Couche 100% ADDITIVE,
   gated par pointeur grossier OU petit écran → le desktop souris reste STRICTEMENT intact.
   On augmente uniquement la ZONE DE FRAPPE (padding/min-height), jamais la taille de police. ═══ */

/* Cible tactile ≥44px : sur écran tactile (pointer:coarse) OU ≤768px, on garantit ~44px de haut
   sur les liens/boutons de nav et les petits boutons. On agit par min-height + padding vertical,
   sans toucher font-size, pour ne pas perturber la mise en page desktop. */
@media (pointer: coarse), (max-width: 768px) {
  /* Liens de nav mobile (menu burger déroulant + menu avatar). */
  .nav .nav-links a,
  .nav .menu a, .nav .menu button {
    min-height: 44px;
    display: flex; align-items: center;
    padding-top: 10px; padding-bottom: 10px;
  }
  /* Petits boutons partout (dashboards, landing, tables). On borne la hauteur de frappe sans
     grossir le texte : padding vertical + min-height + alignement centré. */
  .btn.small, .btn.sm, .ds-btn.sm, .lb {
    min-height: 44px;
    padding-top: 9px; padding-bottom: 9px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .ds-btn.icon { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
  /* Cellules d'action des tableaux repliés en cartes (≤600px, cf. lot B) : boutons d'action
     confortables au doigt et espacés. */
  .table tbody td .btn, .table tbody td .ds-btn, .table tbody td .lb,
  .ds-table tbody td .btn, .ds-table tbody td .ds-btn, .ds-table tbody td .lb {
    min-height: 40px; padding-top: 8px; padding-bottom: 8px;
  }
}

/* Lot C — Affordance de défilement des barres d'onglets de dashboard (≤820px) : dégradé de
   fondu sur le bord droit quand la barre déborde → signale des onglets hors écran. CSS pur via
   mask-image (le masque suit la barre, pas le contenu qui scrolle → toujours pinné au bord). Le
   fondu disparaît naturellement quand on atteint la fin (mask-position ne « colle » pas mais le
   dégradé linéaire sur 100% donne un fondu discret constant, acceptable comme repère visuel). */
@media (max-width: 820px) {
  .ad-nav, .sa-nav, .mng-nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
  }
}

/* Lot C — Finition des cartes de tableau très denses (≤600px) : les cellules d'action
   multi-lignes et les valeurs longues retournent proprement à la ligne (label en haut, valeur
   dessous quand ça ne tient pas côte à côte) → aucun débordement, alignement lisible. */
@media (max-width: 600px) {
  /* Cellule d'action (plusieurs boutons) : le label passe au-dessus, les boutons s'enroulent. */
  .ds-table tbody td, .table tbody td { flex-wrap: wrap; row-gap: 6px; }
  .ds-table tbody td[data-label]::before, .table tbody td[data-label]::before { align-self: center; }
  /* Groupe de boutons d'action dans une cellule repliée : reste à droite, s'enroule si besoin. */
  .ds-table tbody td .row, .table tbody td .row,
  .ds-table tbody td .actions, .table tbody td .actions {
    flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0;
  }
  /* Valeurs longues (tokens, chemins, emails) dans une cellule-carte : coupent au lieu de pousser. */
  .ds-table tbody td, .table tbody td { overflow-wrap: anywhere; word-break: break-word; }
}
