/* ============================================================
   T-life / OT-View — Thème partagé
   Source unique des tokens de design + composants transverses.
   Chargé par base.html et par les pages autonomes
   (lame_detail_annotation.html, slide.html).
   ============================================================ */

:root {
  /* Palette unique */
  --primary-color: #2c3e50;
  --secondary-color: #2980b9;
  --secondary-color-dark: #2379a7;
  --accent-color: #e74c3c;
  --success-color: #1e8e5a;
  --warning-color: #b45309;

  /* Neutres (contrastes AA sur fond blanc) */
  --text-color: #2c3e50;
  --text-muted: #5b6573;
  --border-color: #d8dee6;
  --bg-color: #ffffff;
  --bg-soft: #f4f7fb;
  --navbar-bg: #ffffff;

  /* Typo / formes */
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', 'Open Sans', sans-serif;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .08);
  --shadow-float: 0 12px 32px rgba(15, 30, 60, .22);
  --transition-speed: 0.3s;
  /* Largeurs de contenu partagées (homogénéité des pages) */
  --container: 1200px;
  --container-narrow: 900px;
}

/* ===== Focus clavier visible partout ===== */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Texte secondaire (contraste relevé) ===== */
.text-muted-theme { color: var(--text-muted); }

/* ============================================================
   Toasts (notifications non bloquantes)
   Utilisés via window.showToast(message, type) — ui-toast.js
   ============================================================ */
#toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 48px));
  pointer-events: none;
}
.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.45;
  box-shadow: var(--shadow-float);
  border-left: 4px solid var(--secondary-color);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}
.toast-item.toast-visible { opacity: 1; transform: translateY(0); }
.toast-item.toast-success { border-left-color: #34d399; }
.toast-item.toast-error   { border-left-color: var(--accent-color); }
.toast-item.toast-info    { border-left-color: var(--secondary-color); }
.toast-item .toast-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.45; }
.toast-item .toast-close {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  padding: 0 0 0 6px;
}
.toast-item .toast-close:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .toast-item { transition: opacity .25s ease; transform: none; }
}

/* ============================================================
   Spinner discret (chargements inline)
   ============================================================ */
.spinner-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spinner-dot-rotate .7s linear infinite;
  vertical-align: middle;
}
@keyframes spinner-dot-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner-dot { animation-duration: 1.4s; }
}

/* ============================================================
   Badges de statut
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.status-badge.reviewed   { background: #d1fae5; color: #065f46; }
.status-badge.unreviewed { background: #fef3c7; color: #92400e; }
.status-badge.pending    { background: #e5e7eb; color: var(--text-muted); }

/* ============================================================
   Carte de surface partagée + badge sémantique
   --------------------------------------------------------------
   Noms PRÉFIXÉS `ot-` volontairement : theme.css est aussi chargé par les
   pages autonomes sous Bootstrap (après Bootstrap). Un `.card`/`.badge`
   générique écraserait les composants Bootstrap. À utiliser sur les pages
   basées sur base.html pour homogénéiser cartes & badges (tokens partagés).
   ============================================================ */
.ot-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-card);
}
.ot-card--flat { box-shadow: none; }
/* Carte « stat » : libellé discret + grande valeur */
.ot-card .ot-card-label { font-size: .85rem; color: var(--text-muted); }
.ot-card .ot-card-value { display: block; font-size: 2rem; margin-top: .35rem; font-weight: 700; }

.ot-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--text-color);
}
.ot-badge--ok   { background: rgba(30, 142, 90, .15);  color: var(--success-color); }
.ot-badge--warn { background: rgba(180, 83, 9, .15);   color: var(--warning-color); }
.ot-badge--err  { background: rgba(231, 76, 60, .15);  color: var(--accent-color); }

/* ============================================================
   Barre flottante de sélection (page annotation)
   ============================================================ */
.selection-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  font-family: var(--font-body);
  font-size: .92rem;
  z-index: 1500;
  transition: transform .25s ease;
}
.selection-bar.visible { transform: translate(-50%, 0); }
.selection-bar .selection-count { font-weight: 700; white-space: nowrap; }
.selection-bar button {
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.selection-bar .selection-affect {
  background: var(--secondary-color);
  color: #fff;
}
.selection-bar .selection-affect:hover { background: var(--secondary-color-dark); }
.selection-bar .selection-clear {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.selection-bar .selection-clear:hover { background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) {
  .selection-bar { transition: none; }
}

/* ============================================================
   Aide raccourcis clavier (page annotation)
   ============================================================ */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1rem;
}
.shortcuts-overlay.open { display: flex; }
.shortcuts-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 1.5rem 1.75rem;
  max-width: 420px;
  width: 100%;
  font-family: var(--font-body);
  color: var(--text-color);
}
.shortcuts-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}
.shortcuts-card table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.shortcuts-card td { padding: 6px 4px; border-bottom: 1px solid #eef1f5; }
.shortcuts-card tr:last-child td { border-bottom: none; }
.shortcuts-card kbd {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  background: var(--bg-soft);
  font-size: .82rem;
  font-family: inherit;
  font-weight: 600;
}
.shortcuts-card .shortcuts-close {
  margin-top: 1rem;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.shortcuts-card .shortcuts-close:hover { background: var(--secondary-color-dark); }

/* ============================================================
   Tables : système responsive partagé
   --------------------------------------------------------------
   Markup attendu :
     <div class="table-scroll">
       <table class="data-table [table--center] [table--divided]"
              style="--table-min-width: 760px;">…</table>
     </div>

   - .table-scroll : défile horizontalement + porte la bordure et les coins
     arrondis. C'est le conteneur (overflow) qui rogne les coins de façon
     cohérente sur TOUS les navigateurs ; overflow:hidden posé sur une
     <table> en border-collapse est ignoré par Firefox/Safari.
   - .data-table   : cellules unifiées + min-width (--table-min-width). Sous
     ce seuil, le conteneur défile au lieu d'écraser les colonnes.
   - th/td.col-actions : colonne épinglée à droite → les boutons d'action
     restent visibles même quand le tableau défile (cause des boutons coupés).
   ============================================================ */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: var(--table-min-width, 640px);
}
.data-table thead th {
  background: var(--bg-soft);
  color: var(--primary-color);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
.data-table tbody th,
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #dfe5ee;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }

/* Lignes alternées (zebra) + survol : séparation nette des lignes.
   Chaque ligne porte un fond opaque pour que la colonne épinglée
   (background: inherit) reste lisible pendant le défilement. */
.data-table tbody tr { background: #fff; }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table tbody tr.row-clickable:hover { background: #e7f1fb; }

/* Modificateurs optionnels */
.data-table.table--center th,
.data-table.table--center td { text-align: center; }
.data-table.table--divided thead th + th,
.data-table.table--divided tbody th + th,
.data-table.table--divided tbody td + td { border-left: 1px solid #dfe5ee; }

/* Colonne d'actions épinglée à droite (boutons toujours accessibles).
   background: inherit => suit la couleur de la ligne (zebra / survol). */
.data-table th.col-actions,
.data-table td.col-actions {
  position: sticky;
  right: 0;
  z-index: 1;
  background: inherit;
  box-shadow: -6px 0 6px -6px rgba(0, 0, 0, .15);
}
.data-table thead th.col-actions { background: var(--bg-soft); z-index: 2; }
.data-table td[colspan] { position: static; box-shadow: none; }

@media (max-width: 768px) {
  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td { padding: 8px; }
}

/* ============================================================
   Groupe d'actions en ligne (icônes d'un tableau)
   ============================================================ */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.row-actions a,
.row-actions span.action-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}
.row-actions a:hover { background: #e8f1f9; }
.row-actions span.action-disabled { opacity: .38; cursor: not-allowed; }

/* Ligne de tableau cliquable */
tr.row-clickable { cursor: pointer; transition: background .12s ease; }
tr.row-clickable:hover { background: #f4f9ff; }

/* ============================================================
   Navbar « T-life » des pages autonomes (slide, annotation,
   comparaison, embeddings). Source unique — auparavant dupliquée
   (et désynchronisée) dans chacune des 4 pages.
   ============================================================ */
.navbar-tlife {
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none !important;
  border-radius: 0 !important;
}
.navbar, .navbar .container, .navbar .container-fluid { border-radius: 0 !important; }
.navbar-tlife .navbar-brand,
.navbar-tlife .nav-link,
.navbar-tlife .navbar-text { color: var(--primary-color) !important; }
.navbar-tlife .nav-link:hover,
.navbar-tlife .nav-link:focus { color: var(--secondary-color) !important; }
.navbar-tlife .nav-link.active,
.navbar-tlife .dropdown-toggle.show { color: var(--secondary-color) !important; position: relative; }
/* Underline accent only on plain nav-links — NOT on .dropdown-toggle, whose
   ::after is Bootstrap's caret triangle (overriding it would hide the caret). */
.navbar-tlife .nav-link.active:not(.dropdown-toggle)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; background: var(--accent-color); border-radius: 2px;
}
.navbar-tlife .navbar-toggler { border-color: rgba(44, 62, 80, .25); }
.navbar-tlife .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,62,80,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Rangée d'actions de la navbar lame : passe proprement à la ligne au lieu
   de comprimer les boutons (qui sinon affichent leur texte sur 2 lignes et
   prennent des hauteurs inégales). Espacement horizontal via les marges
   Bootstrap (me-*) des boutons, vertical via row-gap quand ça enroule. */
.navbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: .5rem;
  min-width: 0;
}
.navbar-actions .btn { white-space: nowrap; }

/* ============================================================
   Navbar — barre d'outils GROUPÉE + icônes (slide / annotation)
   --------------------------------------------------------------
   Source unique pour les pages autonomes : au lieu d'une rangée
   plate de boutons identiques, les contrôles sont regroupés en
   clusters (View · Edit), les actions rares passent dans un menu
   « More ▾ », et les actions primaires (Save / Affect) ressortent.
   ============================================================ */

/* Marque + fil d'Ariane à gauche */
.nav-brand-wrap { display: flex; align-items: center; gap: .85rem; min-width: 0; flex-wrap: wrap; }
.nav-brand-wrap .navbar-brand { display: inline-flex; align-items: center; padding: 0; }

/* Fil d'Ariane dans la navbar (slide / annotation) */
.navbar-breadcrumb { --bs-breadcrumb-divider: '›'; font-size: .95rem; margin-bottom: 0; }
.navbar-breadcrumb a { color: var(--secondary-color); text-decoration: none; }
.navbar-breadcrumb a:hover { text-decoration: underline; }
.navbar-breadcrumb .breadcrumb-item.active { color: var(--primary-color); font-weight: 600; }

/* Conteneur des actions (droite) : enroule au lieu de déborder */
.nav-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }

/* Cluster segmenté : regroupe des toggles liés (fond doux + bord) */
.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
/* Boutons internes du cluster : pas de bord (segmenté) + teinte plus foncée
   pour le contraste sur le fond doux du groupe. On cible aussi le toggle d'un
   dropdown imbriqué directement, SANS toucher les boutons du menu déroulant
   (Select all / Deselect all) qui restent normaux. */
.nav-group > .btn,
.nav-group > .dropdown > .btn {
  --bs-btn-border-width: 0;
  --bs-btn-color: var(--secondary-color-dark);
}
.nav-group-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 .15rem 0 .4rem;
  user-select: none;
}

/* Séparateur vertical entre clusters */
.nav-divider {
  align-self: stretch;
  width: 1px;
  min-height: 26px;
  background: var(--border-color);
  margin: 0 .2rem;
}

/* Bouton « icône + libellé » */
.btn-ico { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }

/* État actif / enfoncé des toggles dans la navbar (vue, grille, labels…) */
.navbar-tlife .btn.active,
.navbar-tlife .btn[aria-pressed="true"] {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

/* Action primaire mise en avant : ombre légère => hiérarchie visible */
.navbar-tlife .btn-primary { box-shadow: 0 1px 2px rgba(15, 30, 60, .16); }

/* Menu « More ▾ » : items confortables, icônes alignées, état on/off */
.nav-more-menu {
  min-width: 15rem;
  padding: .35rem;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.nav-more-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
}
.nav-more-menu .dropdown-item.active,
.nav-more-menu .dropdown-item:hover,
.nav-more-menu .dropdown-item:focus { background: var(--secondary-color); color: #fff; }
.nav-more-menu .dropdown-item.is-on { color: var(--secondary-color); font-weight: 600; }
.nav-more-menu .dropdown-item.is-on:hover,
.nav-more-menu .dropdown-item.is-on:focus { color: #fff; }
.nav-more-menu .dropdown-item .ico { color: var(--text-muted); }
.nav-more-menu .dropdown-item:hover .ico,
.nav-more-menu .dropdown-item:focus .ico,
.nav-more-menu .dropdown-item.active .ico { color: #fff; }
.nav-more-menu .dropdown-item.is-on .ico { color: var(--secondary-color); }
.nav-more-divider { margin: .35rem .2rem; border-top: 1px solid var(--border-color); }
.nav-more-status { padding: .3rem .6rem .15rem; font-size: .76rem; color: var(--text-muted); }

/* ============================================================
   Jeu d'icônes partagé (mask + currentColor)
   Usage : <span class="ico ico-grid"></span>  (hérite la couleur
   du bouton : bleu au repos, blanc au survol/actif).
   ============================================================ */
.ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: var(--ico) no-repeat center / contain;
          mask: var(--ico) no-repeat center / contain;
}
.ico-lg { width: 18px; height: 18px; }
.ico-grid    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M3 9h18M3 15h18M9 3v18M15 3v18'/></svg>"); }
.ico-eye     { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.ico-pencil  { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/></svg>"); }
.ico-plus    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>"); }
.ico-trash   { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/><path d='M10 11v6M14 11v6'/></svg>"); }
.ico-save    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/><path d='M17 21v-8H7v8M7 3v5h8'/></svg>"); }
.ico-check   { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.ico-list    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/></svg>"); }
.ico-filter  { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 3H2l8 9.46V19l4 2v-8.54L22 3Z'/></svg>"); }
.ico-more    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='12' cy='5' r='1.7'/><circle cx='12' cy='12' r='1.7'/><circle cx='12' cy='19' r='1.7'/></svg>"); }
.ico-prev    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m15 18-6-6 6-6'/></svg>"); }
.ico-next    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m9 18 6-6-6-6'/></svg>"); }
.ico-refresh { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 1 1-3-6.71L21 8'/><path d='M21 3v5h-5'/></svg>"); }
.ico-sort    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 4v16M3 8l4-4 4 4M17 20V4M21 16l-4 4-4-4'/></svg>"); }
.ico-user    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='m16 11 2 2 4-4'/></svg>"); }
.ico-scatter { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><circle cx='8' cy='15' r='1.6' fill='black'/><circle cx='13' cy='9' r='1.6' fill='black'/><circle cx='17.5' cy='13' r='1.6' fill='black'/></svg>"); }
.ico-scan    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'/><circle cx='12' cy='12' r='3'/></svg>"); }
.ico-help    { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/><path d='M12 17h.01'/></svg>"); }
.ico-download{ --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/></svg>"); }
