/* Thème Mobile Dark Haute Précision - iOS Glassmorphism */
:root {
  --bg-color: #030712;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-local: #10b981;
  --accent-server: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-match: #10b981;
  --safe-top: env(safe-area-inset-top, 14px);
  --safe-bottom: env(safe-area-inset-bottom, 14px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
}

#app-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Caméra et Overlay Canvas */
video#webcam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(1);
}

canvas#overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Barre Supérieure Header */
.top-header {
  position: absolute;
  top: max(var(--safe-top), 12px);
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.mode-badge {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.mode-badge.local {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.mode-badge.server {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.pill-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icon-btn.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Guide de Cadrage & Rideaux de Flou Réel (90% blur + noir) Mode Classeur */
.binder-guide-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.binder-blur-curtain {
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: rgba(0, 0, 0, 0.65);
}

.binder-blur-curtain.top {
  flex: 1;
  width: 100%;
}

.binder-blur-curtain.bottom {
  flex: 1;
  width: 100%;
}

.binder-blur-middle {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.binder-blur-curtain.left {
  flex: 1;
}

.binder-blur-curtain.right {
  flex: 1;
}

.binder-guide-card {
  position: relative;
  /* Proportions exactes d'une carte Pokémon 63 x 88 (~0.716) */
  width: min(70vw, calc(65vh * 0.716));
  aspect-ratio: 63 / 88;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1.5px dashed rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 28px 8px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
}

.binder-guide-tag {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 9999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.binder-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #38bdf8;
  border-style: solid;
  border-width: 0;
}

.binder-corner.tl {
  top: -2px;
  left: -2px;
  border-top-width: 3.5px;
  border-left-width: 3.5px;
  border-top-left-radius: 14px;
}

.binder-corner.tr {
  top: -2px;
  right: -2px;
  border-top-width: 3.5px;
  border-right-width: 3.5px;
  border-top-right-radius: 14px;
}

.binder-corner.bl {
  bottom: -2px;
  left: -2px;
  border-bottom-width: 3.5px;
  border-left-width: 3.5px;
  border-bottom-left-radius: 14px;
}

.binder-corner.br {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 3.5px;
  border-right-width: 3.5px;
  border-bottom-right-radius: 14px;
}

/* Panneau de Télémétrie Transparente (HUD) */
.telemetry-hud {
  position: absolute;
  top: calc(max(var(--safe-top), 12px) + 50px);
  left: 12px;
  z-index: 25;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 11px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  min-width: 220px;
}

.hud-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.hud-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #38bdf8;
}

.hud-total-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 5px;
  margin-top: 5px;
  font-weight: 800;
}

/* Bannière de Match Carte */
.match-banner {
  position: absolute;
  bottom: calc(max(var(--safe-bottom), 16px) + 20px);
  left: 14px;
  right: 14px;
  z-index: 28;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid var(--accent-match);
  border-radius: 18px;
  padding: 12px 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.match-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.match-card-layout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-thumb-box {
  width: 58px;
  height: 81px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #090d16;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.match-thumb-box:active {
  transform: scale(0.96);
  border-color: #10b981;
}

.match-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.thumb-zoom-hint {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  padding: 1px 3px;
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
}

.match-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.btn-close-match {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.btn-close-match:active {
  background: rgba(255, 255, 255, 0.35);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-set-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-score {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-match);
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.match-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  gap: 6px;
}

.match-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.match-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.match-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.25s ease-out;
}

/* Multi-Index Match Strip (dans la bannière de match) */
.match-multi-strip {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-multi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.multi-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.multi-consensus-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.multi-consensus-tag.divergent {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

.multi-best-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.2));
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.45);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.2);
}

.multi-inspect-link {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.multi-inspect-link:hover, .multi-inspect-link:active {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

.match-multi-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.multi-chip-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.multi-chip-item:hover {
  background: rgba(51, 65, 85, 0.9);
}

.multi-chip-item.match {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

.multi-chip-item.no-match {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  opacity: 0.7;
}

.multi-chip-item.best {
  border-color: #eab308 !important;
  background: rgba(234, 179, 8, 0.18) !important;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.35);
  opacity: 1 !important;
}

.multi-chip-label {
  font-weight: 700;
  color: #cbd5e1;
}

.multi-chip-item.best .multi-chip-label {
  color: #fef08a;
}

.multi-chip-dist {
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
}

.multi-chip-dist.match {
  background: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.multi-chip-dist.no-match {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.multi-chip-item.best .multi-chip-dist {
  background: rgba(234, 179, 8, 0.3);
  color: #fef08a;
}

.multi-chip-star {
  font-size: 9px;
  color: #facc15;
}

/* Modal Zoom Grande Carte HD */
.card-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.card-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.card-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modal-backdrop.active .card-modal-dialog {
  transform: scale(1);
}

.card-modal-close {
  position: absolute;
  top: -46px;
  right: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-modal-close:active {
  background: rgba(255, 255, 255, 0.4);
}

.card-modal-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 14px;
  border: 2px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.3);
  object-fit: contain;
}

.card-modal-caption {
  margin-top: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
/* Tiroir Réglages (Bottom Sheet iOS) */
.settings-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 998;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.settings-drawer.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.drawer-content {
  background: #0f172a;
  border-top: 1px solid var(--panel-border);
  border-radius: 24px 24px 0 0;
  padding: 0 20px calc(env(safe-area-inset-bottom, 16px) + 24px) 20px;
  width: 100%;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.settings-drawer.open .drawer-content {
  transform: translateY(0);
}

.drawer-handle-bar {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0f172a;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

#btn-close-settings {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#btn-close-settings:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.22);
}

.settings-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

/* Commutateur de Mode Cloisonné */
.segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.segment-btn.active#mode-btn-local {
  background: var(--accent-local);
  color: #000;
}

.segment-btn.active#mode-btn-server {
  background: var(--accent-server);
  color: #fff;
}

/* Onglets Principaux : Mode Local vs Mode Serveur */
.mode-tabs-container {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.mode-tab-btn .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.mode-tab-btn .tab-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-tab-btn .tab-main-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.mode-tab-btn .tab-sub-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mode-tab-btn.active#tab-mode-local {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.mode-tab-btn.active#tab-mode-local .tab-main-title {
  color: #10b981;
}

.mode-tab-btn.active#tab-mode-local .tab-sub-title {
  color: #a7f3d0;
}

.mode-tab-btn.active#tab-mode-server {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

.mode-tab-btn.active#tab-mode-server .tab-main-title {
  color: #c084fc;
}

.mode-tab-btn.active#tab-mode-server .tab-sub-title {
  color: #e9d5ff;
}

/* Bannières informatives pour chaque mode */
.panel-banner {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.local-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.server-banner {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.banner-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #10b981;
  text-transform: uppercase;
}

.banner-badge.server {
  color: #c084fc;
}

.banner-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Badges de Valeur */
.val-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.val-badge.green {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.val-badge.purple {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Rangée de Pilules Rapides (FPS) */
.quick-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-pills-row .pill-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-pills-row .pill-btn:active {
  transform: scale(0.95);
}

#local-fps-pills .pill-btn.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

#server-fps-pills .pill-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.settings-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.45;
}

/* Sélecteurs N / M Stabilité Temporelle */
.temporal-selectors-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.temporal-select-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.temporal-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.temporal-select {
  margin-top: 2px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

.temporal-summary-badge {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.temporal-summary-badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.temporal-summary-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Radios et Sliders */
.radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
}

.radio-label {
  font-size: 14px;
  font-weight: 600;
}

.slider-container {
  margin-top: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

select.settings-select {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  margin-top: 6px;
}

/* Switch iOS */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:checked + .switch-slider {
  background-color: var(--accent-local);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* =========================================================
   CONSOLE DE DÉBOGAGE TEMPS RÉEL (MOBILE DEBUG CONSOLE)
   ========================================================= */
.debug-console {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 72vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(56, 189, 248, 0.4);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpDebug 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Mono", Menlo, monospace;
}

@keyframes slideUpDebug {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.debug-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.debug-icon {
  font-size: 16px;
}

.debug-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.debug-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dbg-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.dbg-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.96);
}

.dbg-btn-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dbg-btn-close:active {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Grille de télémétrie dense */
.debug-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 40vh;
}

.dbg-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dbg-item-full {
  grid-column: span 2;
}

.dbg-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
  font-weight: 700;
}

.dbg-val {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: "SF Mono", Menlo, monospace;
  word-break: break-all;
}

.dbg-val.highlight {
  color: #38bdf8;
}

.dbg-toggle-group {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.dbg-toggle-btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  cursor: pointer;
}

.dbg-toggle-btn.active {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border-color: #38bdf8;
}

.dbg-kpts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 3px;
}

.kpt-pill {
  font-size: 10px;
  font-family: "SF Mono", Menlo, monospace;
  font-weight: 700;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-align: center;
}

.kpt-pill.highlight {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Journal des événements / log stream */
.debug-logs-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 30, 0.7);
  display: flex;
  flex-direction: column;
  height: 120px;
  overflow: hidden;
}

.dbg-logs-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.debug-logs-stream {
  flex: 1;
  padding: 6px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 10px;
  line-height: 1.45;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dbg-log-row {
  display: flex;
  gap: 6px;
}

.dbg-log-time {
  color: #64748b;
  flex-shrink: 0;
}

.dbg-log-msg {
  color: #cbd5e1;
  word-break: break-word;
}

.dbg-log-msg.info { color: #38bdf8; }
.dbg-log-msg.success { color: #10b981; font-weight: 700; }
.dbg-log-msg.warn { color: #f59e0b; }
.dbg-log-msg.error { color: #ef4444; font-weight: 700; }

/* =========================================================
   PANNEAU INSPECTEUR VISUEL (CARTE REDRESSÉE + ROI + MATCH)
   ========================================================= */
#btn-toggle-inspector.active {
  background: rgba(6, 182, 212, 0.25);
  border-color: #06b6d4;
  color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

#btn-toggle-debug.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.visual-inspector {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 84vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 2px solid rgba(6, 182, 212, 0.6);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.2);
  z-index: 994;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpInspector 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
}

@keyframes slideUpInspector {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-icon {
  font-size: 16px;
}

.inspector-main-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.4px;
}

.inspector-mode-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.inspector-crop-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  padding: 2px 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crop-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.crop-pill:hover {
  color: #f1f5f9;
}

.crop-pill.active {
  background: #06b6d4;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55);
}

.inspector-body {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.inspector-card-col {
  flex: 1;
  max-width: 220px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.inspector-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.label-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.label-dot.purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.label-dot.cyan { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.label-dot.amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.inspector-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 63 / 88;
  background: #090d16;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

#inspector-warped-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#inspector-ref-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

#inspector-ref-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.inspector-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  text-align: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.inspector-placeholder .placeholder-icon {
  font-size: 24px;
}

.inspector-card-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
}

/* --- Section Multi-Index : 1 Carte de résultat par index consulté --- */
.inspector-multi-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px 8px 14px;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.inspector-multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.inspector-multi-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inspector-multi-title {
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
  font-size: 11px;
}

.inspector-consensus-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.inspector-consensus-pill.divergent {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

.inspector-multi-summary {
  font-size: 10px;
  padding: 5px 8px;
  margin-bottom: 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.inspector-multi-hint {
  font-size: 10px;
  color: #94a3b8;
}

.inspector-multi-cards {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
}

.multi-card-item {
  position: relative;
  flex: 0 0 80px;
  max-width: 84px;
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.multi-card-item:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

.multi-card-item.active {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.14);
}

.multi-card-item.match {
  border-color: #10b981;
}

.multi-card-item.active.match {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
}

.multi-card-item.best-match {
  border-color: #eab308 !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.12);
}

.multi-card-best-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000;
  font-size: 7.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  letter-spacing: 0.3px;
  z-index: 2;
}

.multi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  font-weight: 700;
}

.multi-card-badge {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48px;
}

.multi-dist-badge {
  padding: 1px 4px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 8.5px;
}

.multi-dist-badge.match {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.multi-dist-badge.no-match {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.multi-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 63 / 88;
  border-radius: 5px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.multi-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.multi-card-empty {
  font-size: 16px;
  color: #64748b;
  font-weight: 800;
}

.multi-card-name {
  font-size: 8px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.inspector-footer {
  padding: 10px 16px 14px 16px;
  background: rgba(30, 41, 59, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inspector-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inspector-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-distance-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  white-space: nowrap;
}

.inspector-distance-badge.match {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.inspector-distance-badge.no-match {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.inspector-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.inspector-status-tag {
  font-weight: 700;
  color: #10b981;
}

.inspector-roi-tag {
  font-size: 10px;
  font-family: "SF Mono", Menlo, monospace;
  color: var(--text-dim);
}

@media (max-height: 600px) {
  .visual-inspector {
    max-height: 90vh;
  }
  .inspector-card-col {
    max-width: 140px;
  }
  .inspector-body {
    padding: 6px 10px;
    gap: 8px;
  }
}

/* =========================================================
   CHECKBOX ROWS & MULTI-MATCHING OPTIONS
   ========================================================= */
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.checkbox-row:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(6, 182, 212, 0.35);
}

.checkbox-row:has(input:checked) {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.35);
}

.checkbox-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #06b6d4;
  cursor: pointer;
}

.checkbox-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.multi-match-summary-badge {
  padding: 6px 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.mini-btn {
  padding: 3px 8px !important;
  font-size: 10px !important;
  height: auto !important;
  line-height: normal !important;
}

.crop-pill.parallel-active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
  margin-left: 4px;
  vertical-align: middle;
}


