/* SCOS-eye : visuel propre a eye, AU-DESSUS du cadre workbench partagé
 * (scos-ui : tokens.css + components.css). Ne redéfinit JAMAIS .wb-*, .seg,
 * .wb-legend, .wb-float* : ces classes viennent de components.css.
 *
 * Ici uniquement le rendu eye : plan (#floor), heatmap overlay, grand compteur,
 * barre de replay, timeline, vue caméra simulée, tuiles capteurs, sparklines,
 * comparaison entre jours, composition. Teinte de donnée unique --data. */

:root {
  --data: #b0392b; /* teinte de donnée unique (présence), héritée de ds */
}

/* Le shell (topbar injecté) reste en flux, hauteur naturelle : c'est lui le
   premier enfant flex de body.wb-app, le cadre prend le reste. */
body.wb-app > #scos-shell { flex: 0 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ====================================================================
   DISPLAY structuré en colonne : barre d'outils / plan / barre de replay.
   Aucun contrôle ne chevauche le plan (contrairement a une carte).
   ==================================================================== */
.eye-disp { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.eye-bar { flex: 0 0 auto; background: var(--paper); }
.eye-bar-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--rule-soft);
}
.eye-bar-bottom { padding: 12px 16px 14px; border-top: 1px solid var(--rule-soft); }

/* Coeur du display : vue caméra (héros) qui remplit l'espace central, heatmap
   en surcouche transparente par-dessus. Minimal, riche au premier coup d'oeil. */
.eye-stage { position: relative; flex: 1 1 auto; min-height: 0; background: var(--paper-soft); }
.cam-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cam-banner {
  position: absolute; left: 12px; top: 10px; z-index: 3;
  background: var(--ink); color: var(--paper); padding: 4px 9px;
  font-size: 11px; font-weight: 700;
}
.cam-banner .be { color: var(--paper); opacity: 0.7; margin-left: 6px; }

/* Plan en vue secondaire (panneau, accordéon 평면도) : flux normal, PAS absolu
   (l'absolu de .floor-svg vaut pour la version plein écran, pas ici). */
.floor-panel {
  position: static; width: 100%; height: auto; aspect-ratio: 8 / 5;
  border: 1px solid var(--rule-soft); background: var(--paper);
}

/* Le plan remplit le display en conservant son ratio (viewBox meet). */
.floor-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Zones allégées : remplissage doux (teinte de donnée a faible opacité, plafond
   bas géré dans floor.js), cadre fin et discret, chiffre lisible mais pas géant.
   On lit un plan, pas des pavés pleins. */
.fl-zone-fill { fill: var(--data); transition: fill 0.5s ease, fill-opacity 0.5s ease; }
.fl-zone-frame { fill: none; stroke: var(--ink-mid); stroke-width: 1.25px; }
.fl-entrance { fill: none; stroke: var(--ink-mid); stroke-width: 1.5px; stroke-dasharray: 6 5; }
.fl-label { font-family: var(--sans-kr), var(--sans-en); font-size: 13px; font-weight: 700; fill: var(--ink); }
.fl-label-en { font-family: var(--sans-en); font-size: 10px; font-weight: 600; fill: var(--ink-mid); }
.fl-count {
  font-family: var(--sans-en); font-variant-numeric: tabular-nums;
  font-size: 26px; font-weight: 800; fill: var(--ink-soft); text-anchor: middle;
}
.fl-queue { font-family: var(--sans-kr), var(--sans-en); font-size: 16px; font-weight: 800; fill: var(--ink); text-anchor: end; }

/* L'occupation courante (현재 체류) est lue dans le KPI du panneau : pas de
   compteur géant redondant sur le plan. #floor-occupancy reste caché pour le JS. */

/* Sélecteur de site dans la float : le .seg vient de components.css, on ne
   stylise QUE l'intérieur des boutons générés (libellé KO + EN + badge démo). */
#site-list button { padding: 9px 14px; min-height: 44px; }
#site-list button .site-en { font-size: 9.5px; font-weight: 500; color: var(--ink-mid); }
#site-list button.active .site-en { color: var(--paper); opacity: 0.7; }
#site-list button .badge.demo {
  margin-top: 3px; padding: 0 5px; font-size: 9px; border-width: 1px;
}
#site-list button.active .badge.demo { color: var(--paper); border-color: var(--paper); }

/* Légende heatmap (échelle) : .wb-legend vient de components.css. */
.heat-grad {
  height: 10px; margin: 8px 0 4px;
  background: linear-gradient(90deg, hsl(135, 88%, 44%), hsl(32, 88%, 44%), hsl(5, 88%, 44%));
  border: 1px solid var(--rule-soft);
}
.heat-scale {
  display: flex; justify-content: space-between;
  font-family: var(--sans-en); font-size: 10.5px; color: var(--ink-mid);
}
.heat-scale .be { color: var(--ink-dim); }
.heat-legend .form-hint { margin: 6px 0 0; }

/* Message display (serveur injoignable) centré dans la zone. */
.eye-stage-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.eye-stage-msg[hidden] { display: none; }
.eye-stage-msg p { font-size: 17px; color: var(--ink-soft); max-width: 420px; }

/* ====================================================================
   BARRE DE REPLAY : barre basse structurée (.eye-bar-bottom)
   ==================================================================== */
.replay-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.clock {
  font-family: var(--sans-en); font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1; color: var(--ink);
  flex: 0 0 auto;
}
.play-btn {
  min-width: 124px; height: 48px; font-size: 16px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font-family: var(--sans-kr), var(--sans-en); font-weight: 800; cursor: pointer; flex: 0 0 auto;
}
.play-btn:hover { background: var(--ink-mid); }
.play-btn .be { font-weight: 600; margin-left: 6px; }
.speed-group { display: flex; align-items: center; gap: 6px; border: 1px solid var(--rule-soft); margin: 0; padding: 5px 12px; background: var(--paper); }
.speed-group legend { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-mid); padding: 0 6px; }
.speed-opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.speed-opt input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }

/* Sélecteur de jour : 7 boutons 요일 + date, poussés a droite dans la barre. */
.day-list {
  display: flex; gap: 6px; margin: 0 0 0 auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
}
.day-btn {
  min-height: 44px; min-width: 52px; padding: 6px 9px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; flex: 0 0 auto; transition: background 0.15s ease, color 0.15s ease;
}
.day-btn .day-dow { font-family: var(--sans-kr), var(--sans-en); font-size: 13px; font-weight: 800; }
.day-btn .day-date { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600; color: var(--ink-mid); }
.day-btn:hover { background: var(--paper-soft); }
.day-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.day-btn[aria-pressed="true"] .day-date { color: var(--rule-soft); }
.day-btn[aria-pressed="true"]:hover { background: var(--ink); }

/* Scrubber pleine largeur, poignée large (cible tactile). */
.scrub { width: 100%; height: 44px; margin: 6px 0 0; appearance: none; background: transparent; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 6px; background: var(--rule-soft); }
.scrub::-webkit-slider-thumb {
  appearance: none; width: 26px; height: 26px; margin-top: -10px;
  background: var(--ink); border: 2px solid var(--paper); border-radius: 0;
}
.scrub::-moz-range-track { height: 6px; background: var(--rule-soft); }
.scrub::-moz-range-thumb { width: 26px; height: 26px; background: var(--ink); border: 2px solid var(--paper); border-radius: 0; }
.scrub:focus-visible { outline: var(--focus-w) solid var(--ink); outline-offset: 2px; }

/* Timeline sous le scrubber (compacte). */
.timeline { display: block; width: 100%; height: 56px; border: 1px solid var(--rule-soft); background: var(--paper); }
/* Contraste accru entre les deux séries : barres (visites/heure) en aplat clair
   bien lisible, aire (occupation) plus dense et bordée d'un trait de donnée. */
.tl-bar { fill: var(--data); fill-opacity: 0.18; }
.tl-area { fill: var(--data); fill-opacity: 0.5; stroke: var(--data); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.tl-cursor { stroke: var(--ink); stroke-width: 2px; }
.tl-overlay { fill: none; stroke: var(--data); stroke-width: 2px; stroke-dasharray: 7 4; }
/* Tête de lecture : point encre sur la courbe + triangle repère en haut du trait. */
.tl-dot { stroke: var(--ink); stroke-width: 9px; stroke-linecap: round; }
.tl-head { fill: var(--ink); stroke: none; }
.timeline-axis {
  display: flex; justify-content: space-between; margin-top: 3px;
  font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-mid);
}

/* ====================================================================
   PANNEAU : contenu visuel eye (le cadre vient de components.css)
   ==================================================================== */
/* Flash bref d'une carte KPI quand sa valeur change (fond papier doux ~250ms,
   retour au repos). Sobre : un seul cycle, jamais clignotant. */
.wb-card.kpi-flash { animation: kpi-flash 0.25s ease-out; }
@keyframes kpi-flash {
  0% { background: var(--paper-soft); }
  100% { background: transparent; }
}

.wb-sub .badge.demo { margin-right: 8px; }
.side-priv { margin: 0 0 16px; }
.eye-error { padding: 8px 0 12px; }
.eye-error h2 { font-size: 19px; }
.eye-error p { margin: 10px 0 16px; font-size: 15px; }
.eye-error .btn-secondary { width: auto; }

.cmp-head { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.cmp-head .be { font-weight: 600; color: var(--ink-mid); }

/* ----- comparaison entre jours ----- */
#compare-body { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.cmp-block h3 { font-size: 15px; margin-bottom: 8px; }
.cmp-bars { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); background: var(--paper-soft); }
.cmp-bar { fill: var(--data); fill-opacity: 0.25; transition: fill-opacity 0.15s ease; }
.cmp-bar.selected { fill-opacity: 1; }
/* Zone cliquable plein-créneau : invisible, survol éclaircit la barre, focus visible. */
.cmp-bar-hit { fill: var(--ink); fill-opacity: 0; cursor: pointer; }
.cmp-bar-hit:hover { fill-opacity: 0.05; }
.cmp-bar-hit:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cmp-bar-value { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; fill: var(--ink-mid); text-anchor: middle; }
.cmp-bar-value.selected { fill: var(--ink); font-weight: 800; }
.cmp-bar-label { font-family: var(--sans-kr), var(--sans-en); font-size: 12.5px; font-weight: 600; fill: var(--ink-mid); text-anchor: middle; }
.cmp-bar-label.selected { fill: var(--ink); font-weight: 800; }
.cmp-hourly { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); background: var(--paper-soft); }
.cmp-line-selected { fill: none; stroke: var(--data); stroke-width: 2.5px; }
.cmp-line-others { fill: none; stroke: var(--data); stroke-width: 2px; stroke-opacity: 0.55; stroke-dasharray: 6 5; }
.cmp-axis { stroke: var(--rule-soft); stroke-width: 1px; }
.cmp-axis-label { font-family: var(--sans-en); font-size: 10.5px; fill: var(--ink-mid); text-anchor: middle; }
.cmp-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cmp-legend .be { font-weight: 600; }
.cmp-key { display: inline-flex; align-items: center; gap: 8px; }
.cmp-key-solid { display: inline-block; width: 28px; height: 0; border-top: 3px solid var(--data); }
.cmp-key-dashed { display: inline-block; width: 28px; height: 0; border-top: 3px dashed var(--data); opacity: 0.55; }
.cmp-chips { display: flex; flex-direction: column; gap: 10px; }
.cmp-chip { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border: 2px solid var(--ink); background: var(--paper); }
.cmp-chip-label { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cmp-chip-label .be { display: block; font-size: 11px; font-weight: 600; color: var(--ink-mid); }
.cmp-chip-value { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.cmp-chip-sub { font-size: 12.5px; color: var(--ink-mid); }

/* ----- composition (démographie) ----- */
.demog-note { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.demog-wrap { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
.demog-col h3 { font-size: 15px; margin-bottom: 10px; }
.demog-row { display: grid; grid-template-columns: 84px 1fr 58px; align-items: center; gap: 10px; margin-bottom: 8px; }
.demog-row-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.demog-track { height: 18px; background: var(--paper); border: 1px solid var(--rule-soft); }
.demog-fill { height: 100%; background: var(--data); width: 0; }
.demog-row-value { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; text-align: right; color: var(--ink); }

/* ----- surcouche capteur de la timeline ----- */
.overlay-tools { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.overlay-title { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.overlay-title .be { font-weight: 600; color: var(--ink-mid); }
.overlay-list { display: flex; gap: 8px; flex-wrap: wrap; }
.overlay-btn {
  min-height: 44px; padding: 6px 12px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  font-family: var(--sans-kr), var(--sans-en); font-size: 13.5px; font-weight: 800; cursor: pointer;
}
.overlay-btn .be { font-size: 10.5px; font-weight: 600; color: var(--ink-mid); }
.overlay-btn:hover { background: var(--paper-soft); }
.overlay-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.overlay-btn[aria-pressed="true"] .be { color: var(--rule-soft); }
.overlay-btn[aria-pressed="true"]:hover { background: var(--ink); }

/* ----- graphismes de la vue caméra (rendus par createSimView dans #cam-main) :
   silhouettes sombres sur fond clair, cohérent avec le langage éditorial ----- */
.cam-floor { fill: var(--ink); fill-opacity: 0.05; stroke: var(--ink-mid); stroke-width: 1px; }
/* Plancher de zone : remplissage coloré par densité (posé en inline par
   camera.js : vert calme -> orange -> rouge saturé), cadre pointillé discret.
   Transition douce pour que la couleur suive le replay sans a-coups. */
.cam-zone {
  fill: none; stroke: var(--ink-mid); stroke-width: 1px; stroke-dasharray: 5 4;
  transition: fill 0.6s ease, fill-opacity 0.6s ease;
}
.cam-zone-label { font-family: var(--sans-kr), var(--sans-en); font-size: 11px; font-weight: 700; fill: var(--ink-mid); }
.cam-corners { fill: none; stroke: var(--ink); stroke-width: 2.5px; }
/* Pastille REC : clignotement déterministe, sobre (1.4s, palier net). */
.cam-rec { fill: var(--data); animation: cam-rec-blink 1.4s step-start infinite; }
@keyframes cam-rec-blink { 0% { opacity: 1; } 50% { opacity: 0.25; } }
.cam-ts { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; fill: var(--ink); }
.cam-person { transition: transform 0.9s ease-in-out, opacity 0.45s ease; will-change: transform, opacity; }
.cam-shadow { fill: var(--ink); fill-opacity: 0.12; }
.cam-body { fill: var(--ink); fill-opacity: 0.82; }
/* Détection (crochets d'angle + label) : verrouille 0.15s APRÈS l'apparition
   de la silhouette (la boîte se cale juste après que la silhouette a glissé). */
.cam-det { opacity: 0; transition: opacity 0.25s ease 0.15s; }
.cam-person.on .cam-det { opacity: 1; }
.cam-bbox { fill: none; stroke: var(--data); stroke-width: 1px; }
.cam-det.queued .cam-bbox { stroke-width: 1.5px; }
.cam-track { font-family: var(--sans-en); font-size: 8.5px; font-weight: 600; fill: var(--data); }

/* ----- tuiles capteurs ----- */
.sensor-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.sensor-tile { border: 2px solid var(--ink); background: var(--paper); padding: 14px 16px; }
.sensor-tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sensor-tile-head h3 { font-size: 15px; }
.sensor-tile-head h3 .be { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-mid); }
.badge.sensor-kind { white-space: nowrap; }
.badge.fusion { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sensor-big-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.sensor-big { display: inline-flex; align-items: baseline; gap: 6px; }
.sensor-big-num { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.sensor-big-unit { font-size: 14px; font-weight: 700; color: var(--ink-mid); }
.sensor-sub { font-size: 14px; color: var(--ink); margin: 2px 0 6px; }
.sensor-sub strong { font-family: var(--sans-en); font-variant-numeric: tabular-nums; }
.sensor-hint { font-size: 12.5px; color: var(--ink-mid); margin: 6px 0 8px; }
.sensor-spark { display: block; width: 100%; height: 36px; border: 1px solid var(--rule-soft); background: var(--paper-soft); }
.sensor-spark-line { fill: none; stroke: var(--data); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.sensor-gauge { margin-bottom: 14px; }
.gauge-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.gauge-label { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.gauge-label .be { font-weight: 600; color: var(--ink-mid); }
.gauge-value { display: inline-flex; align-items: baseline; gap: 4px; }
.gauge-num { font-family: var(--sans-en); font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 800; color: var(--ink); }
.gauge-unit { font-size: 12.5px; font-weight: 700; color: var(--ink-mid); }
.gauge-track { position: relative; height: 16px; background: var(--paper-soft); border: 1px solid var(--rule-soft); margin-bottom: 18px; }
.gauge-fill { height: 100%; width: 0; background: var(--data); opacity: 0.45; transition: width 0.3s ease; }
.gauge-fill.gauge-watch { opacity: 0.7; }
.gauge-fill.gauge-high { opacity: 1; }
.gauge-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.gauge-mark-label { position: absolute; top: 100%; left: -6px; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink-mid); white-space: nowrap; }
.sensor-gauge .sensor-spark { margin-top: 2px; }

/* ----- appareils ----- */
.devices-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }

/* ====================================================================
   MOBILE : la float basse ne doit pas masquer le panneau-feuille ; le cadre
   (components.css) gère déja le passage en feuille coulissante < 820px.
   Ici on resserre seulement le visuel eye. ==================================================================== */
@media (max-width: 820px) {
  .floor-occ { top: 56px; padding: 8px 11px; }
  .floor-occ-value { font-size: clamp(40px, 11vw, 64px); }

  /* --- Barre haut : sélecteur de site qui ne déborde jamais ---
     #site-list est un .seg (components.css). En mode <820px components.css
     impose flex:1 / flex:1 1 0 / .be masqué, ce qui vaut pour les bascules de
     la float carte, PAS pour une vraie liste de sites. Ici on rend le segment
     défilable horizontalement (tactile) et on garde des boutons a largeur
     naturelle, cibles >=44px. La barre ne déborde donc jamais la page. */
  .eye-bar-top { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; overflow: hidden; }
  #site-list {
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #site-list::-webkit-scrollbar { display: none; }
  #site-list button { flex: 0 0 auto; min-width: 0; min-height: 44px; padding: 8px 12px; }
  #site-list button .site-en { display: block; }
  .seg-toggle { flex: 0 0 auto; }

  /* --- Barre de replay : controles denses sous le scrubber ---
     display:contents fait remonter clock/play/speed/day comme enfants directs
     de la grille .eye-bar-bottom ; on les ordonne pour que vitesses et jour
     descendent SOUS le scrubber + timeline, en pleine largeur tactile. */
  .eye-bar-bottom {
    display: grid; grid-template-columns: auto 1fr; align-items: center;
    column-gap: 10px; row-gap: 8px; padding: 12px 12px 14px;
  }
  .replay-top { display: contents; }
  .clock { order: 1; font-size: clamp(28px, 8vw, 40px); grid-column: 1; }
  .play-btn { order: 2; grid-column: 2; flex: none; width: 100%; min-width: 0; }
  .scrub { order: 3; grid-column: 1 / -1; margin: 2px 0 0; }
  #timeline { order: 4; grid-column: 1 / -1; }
  .timeline-axis { order: 5; grid-column: 1 / -1; margin-top: 0; }
  .speed-group {
    order: 6; grid-column: 1 / -1; width: 100%; box-sizing: border-box;
    justify-content: space-between;
  }
  .day-list {
    order: 7; grid-column: 1 / -1; width: 100%; max-width: 100%; margin: 0;
  }
  .speed-opt { flex: 1; justify-content: center; padding: 0 4px; }
  #minute-note { order: 8; grid-column: 1 / -1; }
  #series-empty { order: 9; grid-column: 1 / -1; }

  /* Inputs >= 16px (pas de zoom auto iOS) */
  input, select, textarea { font-size: 16px; }
  .speed-opt { font-size: 16px; }
}

@media (max-width: 640px) {
  /* Place serrée : libellé EN du site secondaire, on garde le KO seul lisible. */
  #site-list button .site-en { display: none; }
  #site-list button { padding: 9px 12px; }
}

@media (max-width: 480px) {
  .speed-group { padding: 5px 6px; gap: 4px; }
  .speed-opt { padding: 0 2px; }
  .speed-opt input { width: 18px; height: 18px; }
  .eye-bar-top { padding: 9px 10px; }
  .eye-bar-bottom { padding: 10px 10px 12px; column-gap: 8px; }
}

/* Paysage (téléphone couché) : barres compactes pour laisser respirer la
   caméra et la feuille coulissante ; rien ne déborde. */
@media (max-width: 820px) and (max-height: 640px) {
  .eye-bar-top { padding: 7px 10px; }
  .eye-bar-bottom { row-gap: 6px; padding: 8px 10px 10px; }
  .clock { font-size: clamp(24px, 6vw, 34px); }
  .play-btn { height: 44px; }
  #timeline { height: 44px; }
}

/* Mouvement réduit : on coupe toute animation infinie (pastille REC) et on
   neutralise les transitions douces. La pastille reste visible, fixe. */
@media (prefers-reduced-motion: reduce) {
  .cam-rec { animation: none; opacity: 1; }
  .cam-person, .cam-det, .cam-zone, .fl-zone-fill { transition: none; }
}
