/* ============================================================
   OHM WORKS - Visualiseur d'Images Drone
   Palette: Marine #1B1F3B | Orange #F08C00 | Blanc #FFFFFF
   ============================================================ */

/* Polices vendorisées (P1 — RGPD) — TTF dans lib/fonts/, plus de fetch vers Google Fonts. */
@import url('lib/fonts/fonts.css');

/* Éléments cachés par défaut */
#marker-count { display: none; }
#central-point-info { display: none; }
#hidden-file-input { display: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0E1122;
    color: #1B1F3B;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, #1B1F3B 0%, #12162A 100%);
    color: white;
    padding: 0 28px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #F08C00;
    position: relative;
    z-index: 10000;
    overflow: visible;
}

/* Logo + Export groupés à gauche */
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
/* Boutons du header décalés vers le bas */
.header-left > button,
.header-right > button,
.header-right > .export-btn-wrapper,
.header-right > .header-badge {
    margin-top: 19px;
}

/* Logo cliquable */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 14px;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.85;
}

.header-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(240, 140, 0, 0.4));
}

/* Badge + Export + Reset groupés à droite */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Titre centre */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.header-title {
    font-family: 'Rajdhani', 'Arial Black', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1;
}

.header-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #F08C00;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 3px;
}

/* Badge compteur dans le header */
.header-badge {
    background: rgba(240, 140, 0, 0.15);
    border: 1px solid rgba(240, 140, 0, 0.4);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #F08C00;
    letter-spacing: 1px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ── Panneau Dossiers ─────────────────────────────────────── */
.folders-panel {
    width: 220px;
    min-width: 220px;
    background: #131629;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.22s, min-width 0.22s;
    z-index: 100;
    flex-shrink: 0;
}
.folders-panel.collapsed { width: 38px; min-width: 38px; }
.folders-panel.collapsed .folders-list,
.folders-panel.collapsed .folders-panel-footer,
.folders-panel.collapsed .folders-panel-title,
.folders-panel.collapsed .site-add-panel-btn { display: none; }

/* Bouton expand bien centré quand réduit */
.folders-panel.collapsed .folders-panel-header {
    justify-content: center;
    padding: 12px 0;
    border-bottom: none;
}
.folders-panel.collapsed .folders-collapse-btn {
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    width: 32px;
    text-align: center;
}

.folders-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.folders-panel-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.folders-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.folders-collapse-btn:hover { color: #F08C00; }

.folders-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.folders-list::-webkit-scrollbar { width: 4px; }
.folders-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s;
    position: relative;
    border-left: 3px solid transparent;
}
.folder-item:hover { background: rgba(255,255,255,0.05); }
.folder-item.active {
    background: rgba(240,140,0,0.12);
    border-left-color: #F08C00;
}
.folder-item-icon { font-size: 14px; flex-shrink: 0; }
.folder-item-name {
    flex: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.folder-item.active .folder-item-name { color: #fff; font-weight: 600; }
.folder-item-count {
    font-size: 10px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 1px 6px;
    flex-shrink: 0;
}
.folder-item.active .folder-item-count { background: rgba(240,140,0,0.3); color: #F08C00; }
.folder-item-edit {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
    flex-shrink: 0;
}
.folder-item:hover .folder-item-edit { display: block; }
.folder-item-edit:hover { color: #F08C00; }

.folder-item-dl {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
    flex-shrink: 0;
}
.folder-item:hover .folder-item-dl { display: block; }
.folder-item-dl:hover { color: #22c55e; }

/* Bouton + dans le header du panneau Sites */
.site-add-panel-btn {
    background: rgba(240,140,0,0.15);
    border: 1px solid rgba(240,140,0,0.4);
    color: #F08C00;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 2px;
}
.site-add-panel-btn:hover { background: rgba(240,140,0,0.3); }

/* Chevron accordéon */
.folder-item-chevron {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.2s;
    flex-shrink: 0;
    display: inline-block;
}
.folder-item-chevron.expanded { transform: rotate(90deg); }

/* Site header row dans la liste */
.site-folder-header {
    margin-top: 6px;
    background: rgba(255,255,255,0.04);
    border-left-color: #4ade80 !important;
    cursor: pointer;
}
.site-folder-header .folder-item-name {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.03em;
}
.site-folder-header.active {
    background: rgba(74,222,128,0.12);
}
.site-folder-header.active .folder-item-name { color: #4ade80; }
.site-folder-header.active .folder-item-count { background: rgba(74,222,128,0.25); color: #4ade80; }

/* Bouton renommer site */
.folder-item-rename {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
    flex-shrink: 0;
}
.site-folder-header:hover .folder-item-rename { display: block; }
.folder-item-rename:hover { color: #F08C00; }

/* Bouton Vue 360° par site */
/* styles .folder-item-tour360 gérés dans .tour360-row */

/* Sous-dossier indenté */
.site-subfolder-item {
    padding-left: 28px;
}
.site-subfolder-item .folder-item-name { font-size: 11px; }

/* Boutons action sous-dossier (renommer / supprimer) */
.subfolder-action-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 11px;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
}
.site-subfolder-item:hover .subfolder-action-btn { display: block; }
.subfolder-rename-btn:hover { color: #F08C00; }
.subfolder-delete-btn:hover { color: #f87171; }

/* Ligne Potree 3D (dans l'accordéon site) */
.potree-row {
    padding-left: 28px;
    border-top: 1px solid rgba(139,92,246,0.2);
    margin-top: 2px;
    cursor: pointer;
}
.potree-row-label {
    font-size: 11px;
    color: rgba(200,185,255,0.75);
}
.potree-row:hover .potree-row-label { color: #c4b5fd; }
.potree-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,0.2);
    border: 1px solid rgba(139,92,246,0.5);
    color: #a78bfa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    height: 26px;
    min-width: 72px;
    flex-shrink: 0;
    white-space: nowrap;
}
.potree-launch-btn:hover { background: rgba(139,92,246,0.4); color: #c4b5fd; }

/* Ligne Vue 360° (dans l'accordéon site) */
.tour360-row {
    padding-left: 28px;
    cursor: pointer;
}
.tour360-row-label {
    font-size: 11px;
    color: rgba(180,255,200,0.75);
}
.tour360-row:hover .tour360-row-label { color: #86efac; }
.tour360-row .folder-item-tour360 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74,222,128,0.15);
    border: 1px solid rgba(74,222,128,0.45);
    color: #4ade80;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    height: 26px;
    min-width: 72px;
    flex-shrink: 0;
    white-space: nowrap;
}
.tour360-row .folder-item-tour360:hover { background: rgba(74,222,128,0.3); color: #86efac; }

.folders-panel-footer {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.folder-add-btn {
    width: 100%;
    background: rgba(240,140,0,0.1);
    border: 1px dashed rgba(240,140,0,0.3);
    color: #F08C00;
    border-radius: 6px;
    padding: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s;
}
.folder-add-btn:hover { background: rgba(240,140,0,0.2); }

/* ── Modal Déplacer vers dossier ──────────────────────────── */
.folder-move-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 95000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.folder-move-overlay.hidden { display: none; }
.folder-move-box {
    background: #1B1F3B;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    width: 320px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.folder-move-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.folder-move-header h3 { font-size: 14px; color: #fff; margin: 0; }
.folder-move-close-btn {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 20px; cursor: pointer;
}
.folder-move-list { overflow-y: auto; padding: 8px; }
.fmove-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: background 0.12s;
}
.fmove-item:hover { background: rgba(255,255,255,0.06); }
.fmove-item.active { background: rgba(240,140,0,0.12); border-left-color: var(--fcolor, #F08C00); }

/* ── Modal Créer/Modifier dossier ─────────────────────────── */
.folder-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 95000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.folder-edit-overlay.hidden { display: none; }
.folder-edit-box {
    background: #1B1F3B;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}
.folder-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.folder-edit-header h3 { font-size: 14px; color: #fff; margin: 0; }
.folder-edit-close-btn { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; }
.folder-edit-form { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.folder-edit-form input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    padding: 8px 10px;
    outline: none;
    width: 100%;
}
.folder-edit-form input:focus { border-color: #F08C00; }
.folder-edit-colors { display: flex; gap: 7px; flex-wrap: wrap; }
.fe-color {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}
.fe-color.selected { border-color: #fff; transform: scale(1.2); }
.folder-edit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.folder-edit-save-btn {
    background: #F08C00; color: #fff; border: none; border-radius: 7px;
    padding: 7px 18px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.folder-edit-save-btn:hover { background: #d97706; }
.folder-edit-delete-btn {
    background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3);
    border-radius: 7px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.folder-edit-delete-btn:hover { background: rgba(239,68,68,0.25); }
.folder-edit-delete-btn.hidden { display: none; }

/* Bouton Dossier dans panel image */
.move-folder-btn {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.move-folder-btn:hover { background: rgba(59,130,246,0.3); }

.move-image-btn {
    background: rgba(234,179,8,0.15);
    border: 1px solid rgba(234,179,8,0.35);
    color: #fde047;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.move-image-btn:hover { background: rgba(234,179,8,0.3); }

/* ── Carte ──────────────────────────────────────────────── */
#map {
    flex: 1;
    height: 100%;
    z-index: 1;
}

/* ── Panneau d'images ───────────────────────────────────── */
#image-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 60vw;
    min-width: 500px;
    max-width: 1200px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#image-panel.hidden {
    transform: translateX(100%);
}

/* ── Mode split : annotation gauche + Potree droite ──────── */
#image-panel.split-mode {
    width: 100%;
    left: 0;
    right: 0;
    max-width: none;
    min-width: 0;
    flex-direction: row;
    transition: none;
}

.split-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;       /* mode normal : prend toute la hauteur */
    min-width: 0;
    background: #FFFFFF;
}

#image-panel.split-mode .split-left {
    flex: 0 0 50%; /* mode split : largeur (JS ajuste via style.flex) */
    height: 100%;
    min-width: 320px;
}

/* Poignée de redimensionnement */
.split-handle {
    width: 0;
    flex-shrink: 0;
    cursor: col-resize;
    background: rgba(240, 140, 0, 0.12);
    position: relative;
    transition: background 0.15s;
    display: none;
    z-index: 10;
}
.split-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 48px;
    border-radius: 3px;
    background: rgba(240, 140, 0, 0.45);
    transition: background 0.15s, height 0.15s;
}
.split-handle:hover { background: rgba(240, 140, 0, 0.25); }
.split-handle:hover::after { background: #F08C00; height: 64px; }

#image-panel.split-mode .split-handle {
    display: block;
    width: 6px;
}

/* Côté droit : Potree */
.split-right {
    flex: 1;
    min-width: 320px;
    overflow: hidden;
    background: #0a0e1a;
    display: flex;
    flex-direction: column;
}
.split-right.hidden { display: none; }
#potree-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Bouton split */
.split-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 0 10px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.split-btn:hover {
    background: rgba(240, 140, 0, 0.2);
    color: #F08C00;
    border-color: rgba(240, 140, 0, 0.45);
}
.split-btn.active {
    background: rgba(240, 140, 0, 0.22);
    color: #F08C00;
    border-color: #F08C00;
}

/* Header du panneau */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1B1F3B 0%, #242947 100%);
    color: white;
    border-bottom: 2px solid #F08C00;
    flex-shrink: 0;
    gap: 10px;
}

/* Navigation prev/next */
.panel-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-arrow-btn {
    background: rgba(240,140,0,0.12);
    border: 1px solid rgba(240,140,0,0.35);
    color: #F08C00;
    font-size: 16px;
    width: 32px; height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.nav-arrow-btn:hover { background: rgba(240,140,0,0.25); transform: scale(1.1); }
.nav-arrow-btn:active { transform: scale(0.95); }
.nav-counter {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

/* Flèches visibles en plein écran (côtés gauche/droit de l'écran) */
#image-panel.fullscreen-mode .panel-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 60;
    pointer-events: none;
    justify-content: space-between;
    padding: 0 12px;
    width: 100vw;
    box-sizing: border-box;
}
#image-panel.fullscreen-mode .nav-arrow-btn {
    pointer-events: auto;
    width: 48px; height: 48px;
    font-size: 22px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
#image-panel.fullscreen-mode .nav-arrow-btn:hover {
    background: rgba(240,140,0,0.6);
    transform: scale(1.1);
}
#image-panel.fullscreen-mode .nav-counter {
    display: none;
}

.panel-header h2 {
    font-family: 'Rajdhani', 'Arial Black', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Bouton Supprimer */
.delete-btn {
    background: rgba(220, 53, 69, 0.85);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.delete-btn:active {
    transform: translateY(0);
}

/* Bouton 360° */
.pano-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 0 10px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.pano-btn:hover { background: rgba(56,189,248,0.2); color: #38bdf8; border-color: rgba(56,189,248,0.4); }
.pano-btn.active { background: rgba(56,189,248,0.25); color: #38bdf8; border-color: #38bdf8; }

/* Visionneuse 360° */
#pano-viewer {
    display: none;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}
#image-panel.panorama-mode #pano-viewer {
    display: block;
}
#image-panel.panorama-mode #fs-zoom-wrapper {
    display: none;
}
/* En mode 360° + annotation active : le canvas de dessin s'overlay au-dessus du pano */
#image-panel.panorama-mode #annotation-canvas.drawing {
    pointer-events: auto;
    cursor: crosshair;
    z-index: 25;
}
#image-panel.panorama-mode #annotation-canvas {
    z-index: 15;
    pointer-events: none;
}
#image-panel.panorama-mode #annotation-list {
    display: none !important;
}
/* Hotspots d'annotation dans la vue 360° */
.pano-hotspot {
    --hs-color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--hs-color);
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 20px;
    padding: 3px 8px 3px 3px;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,0.55);
    white-space: nowrap;
    font-family: inherit;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: auto;
    transition: transform 0.15s;
}
.pano-hotspot:hover { transform: translateX(-50%) translateY(-50%) scale(1.12); }
.pano-hs-num {
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.pano-hs-label {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fullscreen + panorama : le viewer remplit l'écran */
#image-panel.fullscreen-mode.panorama-mode #pano-viewer {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}
#image-panel.fullscreen-mode.panorama-mode .image-annotation-container {
    cursor: default;
}

/* Bouton Plein Ecran */
.fullscreen-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.fullscreen-btn:hover { background: rgba(240,140,0,0.2); color: #F08C00; border-color: rgba(240,140,0,0.4); }

/* Mode Plein Ecran du panneau image */
#image-panel.fullscreen-mode {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    z-index: 50000 !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
    background: #000 !important;
    overflow: hidden !important;
}
/* Barre flottante en haut (header + toolbar) */
#image-panel.fullscreen-mode .panel-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
    border: none;
    padding: 10px 16px;
}
#image-panel.fullscreen-mode .annotation-toolbar {
    position: absolute;
    top: 56px; left: 16px;
    z-index: 10;
    margin: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 4px 8px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
/* L'image remplit tout l'écran */
#image-panel.fullscreen-mode .panel-content {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}
#image-panel.fullscreen-mode .image-annotation-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}
#image-panel.fullscreen-mode #drone-image {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}
#image-panel.fullscreen-mode #annotation-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}
/* Liste et infos masquées en plein écran */
#image-panel.fullscreen-mode .annotation-list,
#image-panel.fullscreen-mode .image-info,
#image-panel.fullscreen-mode .central-point-info {
    display: none !important;
}

/* Wrapper zoom/pan fullscreen */
#image-panel.fullscreen-mode #fs-zoom-wrapper {
    display: inline-block;
    width: auto;
    will-change: transform;
}
#image-panel.fullscreen-mode .image-annotation-container {
    cursor: grab;
    overflow: hidden !important;
}
#image-panel.fullscreen-mode .image-annotation-container.fs-dragging {
    cursor: grabbing;
}
/* Annotation mode overrides grab cursor */
#image-panel.fullscreen-mode #annotation-canvas.drawing,
#image-panel.fullscreen-mode #annotation-canvas.hoverable {
    cursor: crosshair;
}

/* Bouton Fermer */
.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 22px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: rgba(240, 140, 0, 0.3);
    border-color: rgba(240, 140, 0, 0.5);
}

/* Contenu du panneau */
.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F7F8FC;
}

/* Image drone */
#drone-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(27, 31, 59, 0.15);
    margin-bottom: 18px;
    cursor: zoom-in;
    display: block;
    background: #1B1F3B;
}

#drone-image.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    object-fit: contain;
    z-index: 10000;
    background: rgba(14, 17, 34, 0.97);
    padding: 20px;
    border-radius: 0;
    cursor: zoom-out;
}

/* Infos image */
.image-info {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #E8EAF0;
    box-shadow: 0 2px 8px rgba(27, 31, 59, 0.06);
}

.image-info p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
    color: #444;
}

.image-info p:last-child {
    margin-bottom: 0;
}

.image-info p strong {
    color: #1B1F3B;
    font-weight: 600;
}

/* ── Compteur sur la carte ───────────────────────────────── */
.marker-count {
    position: absolute;
    top: 10px;
    left: 60px;
    background: rgba(27, 31, 59, 0.92);
    color: #F08C00;
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(240, 140, 0, 0.3);
    pointer-events: none;
}

/* ── Chargement ─────────────────────────────────────────── */
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(27, 31, 59, 0.95);
    color: white;
    padding: 28px 36px;
    border-radius: 10px;
    z-index: 2000;
    text-align: center;
    border: 1px solid rgba(240, 140, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#loading p {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #F08C00;
}

/* ── Popups Leaflet ─────────────────────────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(27, 31, 59, 0.25);
    border: 1px solid #E8EAF0;
}

.leaflet-popup-content {
    margin: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #1B1F3B;
}

.leaflet-popup-content strong {
    color: #F08C00;
    font-weight: 700;
}

.leaflet-popup-tip {
    background: white;
}

/* Cluster markers */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-clip: padding-box;
}

.marker-cluster-small div {
    background-color: rgba(240, 140, 0, 0.85);
}

.marker-cluster-medium div {
    background-color: rgba(220, 110, 0, 0.9);
}

.marker-cluster-large div {
    background-color: rgba(27, 31, 59, 0.9);
}

.marker-cluster div {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* ── Overlay Drag & Drop ───────────────────────────────── */
.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 17, 34, 0.85);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.drop-overlay.hidden {
    display: none;
}

.drop-overlay-content {
    text-align: center;
    color: white;
    padding: 60px 80px;
    border: 3px dashed #F08C00;
    border-radius: 20px;
    background: rgba(240, 140, 0, 0.08);
}

.drop-icon {
    font-size: 64px;
    color: #F08C00;
    margin-bottom: 16px;
    line-height: 1;
    font-weight: 300;
}

.drop-overlay-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.drop-overlay-content small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Barre d'annulation (Undo) ─────────────────────────── */
.undo-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1B1F3B;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 60000;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(240, 140, 0, 0.3);
    font-size: 14px;
    animation: slideUp 0.3s ease;
}

.undo-bar.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.undo-btn {
    background: #F08C00;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.undo-btn:hover {
    background: #d97a00;
}

.undo-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.undo-close-btn:hover {
    color: white;
}

/* ── Bandeau de placement ──────────────────────────────── */
.placement-info {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1B1F3B 0%, #242947 100%);
    color: #F08C00;
    padding: 12px 24px;
    border-radius: 10px;
    z-index: 5000;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(240, 140, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideDown 0.3s ease;
}

.placement-info.hidden {
    display: none;
}

/* Boutons popup cluster - déplacement de groupe */
.move-group-popup-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 12px;
    background: #F08C00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.move-group-popup-btn:hover { background: #d97b00; }
.move-group-popup-btn.secondary {
    background: #3a4069;
}
.move-group-popup-btn.secondary:hover { background: #4a5080; }

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cancel-placement-btn {
    background: rgba(220, 53, 69, 0.85);
    border: none;
    color: white;
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-placement-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* ── Annotation toolbar ────────────────────────────────── */
.annotation-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.annotation-toolbar .annotate-btn {
    background: rgba(220, 53, 69, 0.85);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 5px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.annotation-toolbar .annotate-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.annotation-toolbar .annotate-btn.active {
    background: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

.annotation-toolbar .annotation-hint {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* ── Image annotation container ───────────────────────── */
.image-annotation-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 18px;
}

.image-annotation-container #drone-image {
    margin-bottom: 0;
}

#fs-zoom-wrapper {
    position: relative;
    display: block;
    width: 100%;
    transform-origin: 0 0;
}

#annotation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

#annotation-canvas.drawing {
    pointer-events: auto;
    cursor: crosshair;
}

#annotation-canvas.hoverable {
    pointer-events: auto;
    cursor: default;
}

/* ── Annotation tooltip ───────────────────────────────── */
#annotation-tooltip {
    position: fixed;
    background: rgba(27, 31, 59, 0.95);
    color: #F08C00;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    z-index: 100000;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(240, 140, 0, 0.3);
    display: none;
}

/* ── Annotation list ─────────────────────────────────── */
.annotation-list {
    margin-bottom: 12px;
}

.annotation-list-header {
    font-size: 13px;
    font-weight: 700;
    color: #F08C00;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(240, 140, 0, 0.2);
}

.annotation-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    margin-bottom: 3px;
    background: rgba(27, 31, 59, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(240, 140, 0, 0.15);
    transition: background 0.15s, border-color 0.15s;
}

.annotation-list-item:hover {
    background: rgba(240, 140, 0, 0.1);
    border-color: rgba(240, 140, 0, 0.4);
}

.annotation-list-label {
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 8px;
}

.annotation-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}

.annotation-edit-btn {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.annotation-edit-btn:hover {
    background: rgba(96, 165, 250, 0.35);
    color: #fff;
}

.annotation-delete-btn {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.annotation-delete-btn:hover {
    background: rgba(220, 53, 69, 0.4);
    color: #fff;
}

/* ── Grille latérale scrollable ───────────────────────── */
.images-grid-panel {
    order: 1;
    width: calc(40vw - 220px);
    min-width: 300px;
    max-width: 600px;
    flex-shrink: 0;
    height: 100%;
    background: #111827;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}
.images-grid-panel.hidden {
    display: none;
}
#map { order: 2; }

.images-grid-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #1B1F3B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.images-grid-title {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.images-grid-count {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}
.images-grid-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.images-grid-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.images-grid-body {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
}
.images-grid-body::-webkit-scrollbar { width: 4px; }
.images-grid-body::-webkit-scrollbar-track { background: transparent; }
.images-grid-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.igp-cell {
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.15s, transform 0.1s;
    opacity: 0.85;
}
.igp-cell:hover {
    opacity: 1;
    transform: scale(1.04);
}

.igp-thumb-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0f172a;
}
.igp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Compteur — badge en bas à droite, visible uniquement si annoté */
.igp-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(240,140,0,0.95);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Pagination */
.igp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #131629;
    flex-shrink: 0;
}
.igp-page-btn {
    background: rgba(255,255,255,0.07);
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.igp-page-btn:hover:not(:disabled) { background: rgba(240,140,0,0.3); color: #F08C00; }
.igp-page-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.igp-page-info {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    min-width: 80px;
    text-align: center;
}

/* ── Point name editable ──────────────────────────────── */
.point-name-display {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.point-name-display:hover {
    border-bottom-color: #F08C00;
}

.point-name-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #F08C00;
    color: white;
    font-family: 'Rajdhani', 'Arial Black', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}

/* ── Info point central (dans le panneau image) ──────── */
.central-point-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #1a1e36 0%, #20243d 100%);
    border-bottom: 1px solid rgba(240, 140, 0, 0.15);
    flex-shrink: 0;
}

.central-point-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.central-point-name {
    font-size: 13px;
    font-weight: 700;
    color: #F08C00;
    letter-spacing: 0.5px;
}

/* ── Points centraux sur la carte ────────────────────── */
.central-point-icon {
    background: none;
    border: none;
}

.central-marker-inner {
    width: 20px;
    height: 20px;
    background: #F08C00;
    border: 3px solid #1B1F3B;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(240, 140, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ── Popup des points centraux ───────────────────────── */
.central-popup {
    font-family: 'Inter', sans-serif;
}

.central-popup-name {
    display: block;
    font-size: 15px;
    color: #F08C00;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.central-popup-row {
    margin-bottom: 8px;
}

.central-popup-row label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
    font-weight: 600;
}

.radius-slider {
    width: 100%;
    accent-color: #F08C00;
    cursor: pointer;
}

.central-popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.cp-btn {
    flex: 1;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cp-rename-btn {
    background: #3498db;
    color: white;
}

.cp-rename-btn:hover {
    background: #2980b9;
}

.cp-delete-btn {
    background: #e74c3c;
    color: white;
}

.cp-delete-btn:hover {
    background: #c0392b;
}

/* ── Label Picker Modal ─────────────────────────────────── */
.label-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 17, 34, 0.82);
    z-index: 300000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-picker-overlay.hidden { display: none; }

.label-picker-box {
    background: #1B1F3B;
    border: 1px solid rgba(240, 140, 0, 0.4);
    border-radius: 12px;
    width: 640px;
    max-width: 97vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.label-picker-head {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(240, 140, 0, 0.2);
    flex-shrink: 0;
}

.label-picker-head h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #F08C00;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}

.label-picker-search {
    padding: 10px 16px 8px;
    flex-shrink: 0;
}

.label-picker-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 7px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.label-picker-search input:focus {
    border-color: rgba(240, 140, 0, 0.5);
}

.label-picker-search input::placeholder { color: rgba(255, 255, 255, 0.3); }

.label-picker-tabs {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    flex-shrink: 0;
}

.label-cat-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    letter-spacing: 0.3px;
}

.label-cat-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.label-cat-icon {
    font-size: 22px;
    line-height: 1;
}

.label-cat-name {
    font-size: 14px;
    font-weight: 700;
}

.label-cat-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

.label-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-content: start;
    border-top: 1px solid rgba(240, 140, 0, 0.12);
}

.label-picker-list::-webkit-scrollbar { width: 5px; }
.label-picker-list::-webkit-scrollbar-track { background: transparent; }
.label-picker-list::-webkit-scrollbar-thumb { background: rgba(240,140,0,0.3); border-radius: 3px; }

.label-subgroup-header {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 700;
    color: rgba(240, 140, 0, 0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 0 3px;
    border-bottom: 1px solid rgba(240, 140, 0, 0.12);
    margin-top: 2px;
}

.label-subgroup-header:first-child { margin-top: 0; padding-top: 2px; }

.label-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.12s;
}

.label-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.label-item.selected {
    background: rgba(240, 140, 0, 0.12);
    border-color: rgba(240, 140, 0, 0.45);
}

.label-color-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.label-item-name {
    font-size: 11.5px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.label-item.selected .label-item-name { color: #F08C00; font-weight: 600; }

.label-picker-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}

.label-picker-footer-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Champs inventaire DAF */
.daf-fields {
    background: rgba(180, 83, 9, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.daf-fields.hidden { display: none; }
.daf-fields-title {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.daf-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.daf-field-full { grid-column: 1 / -1; }
.daf-fields-grid label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}
.daf-fields-grid input,
.daf-fields-grid select {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    outline: none;
}
.daf-fields-grid select option { background: #1B1F3B; }
.daf-fields-grid input:focus,
.daf-fields-grid select:focus {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.1);
}
.annotation-daf-data {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 2px;
    padding: 2px 6px;
    background: rgba(245,158,11,0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Champs techniques aériens DT */
.aerial-fields {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aerial-fields.hidden { display: none; }
.aerial-fields-title {
    font-size: 11px;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.aerial-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.aerial-fields-grid label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}
.aerial-fields-grid input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    outline: none;
}
.aerial-fields-grid input:focus {
    border-color: #0ea5e9;
    background: rgba(14,165,233,0.1);
}

/* Badge données aériennes dans la liste d'annotations */
.annotation-aerial-data {
    font-size: 11px;
    color: #0ea5e9;
    margin-top: 2px;
    padding: 2px 6px;
    background: rgba(14,165,233,0.1);
    border-radius: 4px;
    display: inline-block;
}

.label-picker-footer input,
.label-picker-footer textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 7px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.label-picker-footer textarea {
    resize: vertical;
    min-height: 54px;
    line-height: 1.4;
}

.label-picker-footer input:focus,
.label-picker-footer textarea:focus { border-color: rgba(240, 140, 0, 0.4); }

.label-picker-footer input::placeholder,
.label-picker-footer textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

.label-picker-footer-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.label-confirm-btn {
    background: #F08C00;
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.label-confirm-btn:hover:not(:disabled) { background: #d97a00; }
.label-confirm-btn:disabled { background: rgba(240, 140, 0, 0.25); cursor: not-allowed; }

.label-cancel-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.label-cancel-btn:hover { background: rgba(255, 255, 255, 0.14); color: white; }

/* ── Label verrouillé (données pré-remplies) ─────────────────── */
.label-locked-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 6px;
    padding: 7px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6ee7b7;
}
.label-locked-notice.hidden { display: none; }

.label-unlock-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.label-unlock-btn:hover { background: rgba(16, 185, 129, 0.35); }

/* Champs désactivés (verrouillés) */
.label-picker-footer input:disabled,
.label-picker-footer textarea:disabled,
.daf-fields-grid input:disabled,
.daf-fields-grid select:disabled,
.aerial-fields-grid input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.sev-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Icône cadenas dans la liste des labels */
.label-item-lock {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.6;
    flex-shrink: 0;
}

.label-picker-no-result {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}

/* ── Annotation badge dans la liste ──────────────────────── */
.annotation-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 5px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    color: #eee;
    max-width: 100%;
    overflow: hidden;
    vertical-align: middle;
}

.annotation-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Actions correctives dans la liste d'annotations */
.annotation-actions-text {
    font-size: 11px;
    color: rgba(255, 200, 80, 0.85);
    margin-top: 3px;
    padding: 3px 6px;
    background: rgba(240, 140, 0, 0.08);
    border-left: 2px solid rgba(240, 140, 0, 0.4);
    border-radius: 0 3px 3px 0;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Identifiant unique de composant */
.annotation-cid {
    display: inline-block;
    font-family: monospace;
    font-size: 10px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 3px;
    letter-spacing: 0.5px;
    user-select: all;
    cursor: default;
}

/* Variante dans les cartes ticket/inventaire */
.ticket-cid {
    font-size: 10px;
    margin-top: 0;
    margin-left: 6px;
    vertical-align: middle;
}

.annotation-list-content {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.annotation-badge-comment {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
    vertical-align: middle;
}

/* ── Bouton Gérer dans le label picker ────────────────── */
.label-picker-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 8px;
}
.label-picker-head h3 { margin: 0; font-size: 15px; color: #fff; }
.label-manage-btn {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 6px;
    font-size: 11px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.label-manage-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Label Manager Modal ───────────────────────────────── */
.label-manager-overlay {
    position: fixed; inset: 0;
    background: rgba(8,10,24,0.85);
    z-index: 80000;
    display: flex; align-items: center; justify-content: center;
}
.label-manager-overlay.hidden { display: none; }
.label-manager-box {
    background: #1B1F3B; border-radius: 14px;
    border: 1px solid rgba(240,140,0,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    width: min(680px, 96vw);
    max-height: 85vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.label-manager-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #12162A;
}
.label-manager-head h3 { margin: 0; font-size: 15px; color: #F08C00; }
.label-manager-close {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 22px; cursor: pointer; line-height: 1;
}
.label-manager-close:hover { color: #fff; }
.label-manager-tabs {
    display: flex; gap: 4px; padding: 10px 16px 0;
    background: #12162A; border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}
.lm-tab {
    padding: 6px 14px; border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255,255,255,0.1); border-bottom: none;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.55);
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.lm-tab.active { background: #1B1F3B; color: #F08C00; border-color: rgba(240,140,0,0.35); }
.label-manager-list {
    flex: 1; overflow-y: auto; padding: 8px 16px;
    display: flex; flex-direction: column; gap: 2px;
}
.lm-subgroup-title {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35);
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 8px 4px 3px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px;
}
.lm-subgroup-title:first-child { border-top: none; margin-top: 0; }
.lm-label-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: 6px;
    transition: background 0.12s;
}
.lm-label-row:hover { background: rgba(255,255,255,0.05); }
.lm-color-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}
.lm-label-name { flex: 1; font-size: 13px; color: rgba(255,255,255,0.85); }
.lm-delete-btn {
    background: none; border: none; color: rgba(239,68,68,0.5);
    font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 4px;
    transition: all 0.12s; opacity: 0;
}
.lm-label-row:hover .lm-delete-btn,
.lm-label-row:hover .lm-rename-btn { opacity: 1; }
.lm-delete-btn:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
.lm-rename-btn {
    background: none; border: none; color: rgba(96,165,250,0.5);
    font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 4px;
    transition: all 0.12s; opacity: 0;
}
.lm-rename-btn:hover { background: rgba(96,165,250,0.15); color: #60a5fa; }
.lm-rename-input {
    flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(96,165,250,0.5);
    border-radius: 4px; color: white; padding: 2px 6px; font-size: 13px;
    outline: none; width: 100%;
}
.lm-empty {
    padding: 24px; text-align: center;
    color: rgba(255,255,255,0.3); font-size: 13px; font-style: italic;
}
.label-manager-add {
    padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.08);
    background: #12162A;
}
.lm-add-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.lm-add-row input[type="text"] {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; border-radius: 6px; padding: 7px 10px; font-size: 12px;
    outline: none; flex: 1; min-width: 120px;
}
.lm-add-row input[type="text"]:focus { border-color: rgba(240,140,0,0.5); }
.lm-add-row input[type="color"] {
    width: 34px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
    background: none; cursor: pointer; padding: 2px; flex-shrink: 0;
}
.lm-add-btn {
    background: rgba(240,140,0,0.15); border: 1px solid rgba(240,140,0,0.4);
    color: #F08C00; padding: 7px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background 0.2s; flex-shrink: 0;
}
.lm-add-btn:hover { background: rgba(240,140,0,0.28); }

/* ── Boutons Inventaire & Intervention dans le header ───── */
.inventaire-header-btn,
.intervention-header-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Inventaire — vert-teal (composantes/inventaire) */
.inventaire-header-btn {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.inventaire-header-btn:hover {
    background: rgba(16, 185, 129, 0.28);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
/* Intervention — orange-ambre (anomalies/tickets) */
.intervention-header-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}
.intervention-header-btn:hover {
    background: rgba(245, 158, 11, 0.28);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.header-btn-count {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 16px;
}

/* ── Bouton Reset ──────────────────────────────────────── */
.reset-app-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.reset-app-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* ── Modal Reset ───────────────────────────────────────── */
.reset-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reset-modal-overlay.hidden { display: none; }
.reset-modal-box {
    background: #1B1F3B;
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 14px;
    padding: 36px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.reset-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #f87171;
}
.reset-modal-title {
    color: #f87171;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}
.reset-modal-body {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.reset-modal-body strong { color: #fff; }
.reset-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.reset-cancel-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.reset-cancel-btn:hover { background: rgba(255,255,255,0.15); }
.reset-confirm-btn {
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.5);
    color: #f87171;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.reset-confirm-btn:hover { background: rgba(239,68,68,0.4); }
.reset-confirm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Sévérité dans le label picker ────────────────────── */
.label-severity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px;
    flex-wrap: wrap;
}
.label-severity-row.hidden { display: none; }
.severity-label-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.sev-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sev-btn[data-sev="1"] { background: rgba(34,197,94,0.15);  color: #22c55e; border-color: rgba(34,197,94,0.4); }
.sev-btn[data-sev="2"] { background: rgba(132,204,22,0.15); color: #84cc16; border-color: rgba(132,204,22,0.4); }
.sev-btn[data-sev="3"] { background: rgba(245,158,11,0.15); color: #f59e0b; border-color: rgba(245,158,11,0.4); }
.sev-btn[data-sev="4"] { background: rgba(249,115,22,0.15); color: #f97316; border-color: rgba(249,115,22,0.4); }
.sev-btn[data-sev="5"] { background: rgba(239,68,68,0.15);  color: #ef4444; border-color: rgba(239,68,68,0.4); }
.sev-btn[data-sev="1"].active { background: #22c55e; color: #fff; }
.sev-btn[data-sev="2"].active { background: #84cc16; color: #fff; }
.sev-btn[data-sev="3"].active { background: #f59e0b; color: #fff; }
.sev-btn[data-sev="4"].active { background: #f97316; color: #fff; }
.sev-btn[data-sev="5"].active { background: #ef4444; color: #fff; }
.sev-btn:hover { transform: scale(1.12); }
.sev-current-text {
    font-size: 12px; font-weight: 600; margin-left: 4px;
    transition: color 0.15s;
}
.annotation-sev-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 10px; font-weight: 700; color: #fff;
    flex-shrink: 0; margin-right: 4px;
}

/* ── Ticketing Overlay ─────────────────────────────────── */
.ticketing-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 10, 24, 0.92);
    z-index: 90000;
    display: flex; align-items: stretch; justify-content: flex-end;
}
.ticketing-overlay.hidden { display: none; }
.ticketing-panel {
    width: min(1100px, 100vw);
    height: 100vh;
    background: #0E1122;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 40px rgba(0,0,0,0.7);
    border-left: 2px solid rgba(127,90,240,0.3);
    overflow: hidden;
}
.ticketing-header-actions {
    display: flex; align-items: center; gap: 10px;
}
.ticket-export-wrapper { position: relative; }
.ticket-export-btn {
    background: rgba(240,140,0,0.12); border: 1px solid rgba(240,140,0,0.4);
    color: #F08C00; padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background 0.2s;
}
.ticket-export-btn:hover { background: rgba(240,140,0,0.25); }
.ticket-export-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #1B1F3B; border: 1px solid rgba(240,140,0,0.35);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6); z-index: 99999; min-width: 190px;
}
.ticket-export-dropdown.hidden { display: none; }
.ticket-export-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 16px; background: none; border: none;
    color: rgba(255,255,255,0.85); font-size: 13px; cursor: pointer; text-align: left;
    transition: background 0.15s;
}
.ticket-export-item:hover { background: rgba(240,140,0,0.12); color: #F08C00; }
#ticket-label-select {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 6px; padding: 5px 8px; font-size: 12px;
    outline: none; max-width: 220px; cursor: pointer;
}
#ticket-label-select:focus { border-color: rgba(127,90,240,0.5); }
#ticket-label-select option { background: #1B1F3B; color: #eee; }
.ticketing-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1B1F3B, #12162A);
    border-bottom: 2px solid rgba(127,90,240,0.35);
    flex-shrink: 0;
}
.ticketing-title {
    font-size: 16px; font-weight: 700; color: #c4b5fd;
    letter-spacing: 1px;
}
.ticketing-close-btn {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 24px; cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.ticketing-close-btn:hover { color: #fff; }
.ticketing-filters {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 12px; padding: 12px 20px;
    background: #151829; border-bottom: 1px solid rgba(127,90,240,0.15);
    flex-shrink: 0;
}
#ticket-label-select, #ticket-sort { display: none; }
.filter-group {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-label {
    font-size: 11px; color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.sev-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sev-filter-btn {
    padding: 4px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
    font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.sev-filter-btn.active, .sev-filter-btn:hover { background: rgba(127,90,240,0.25); border-color: #c4b5fd; color: #c4b5fd; }
#ticket-label-filter {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px;
    outline: none; width: 160px;
}
#ticket-label-filter:focus { border-color: rgba(127,90,240,0.5); }
#ticket-sort {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 6px; padding: 5px 8px; font-size: 12px; outline: none;
}
.ticket-stats {
    margin-left: auto; font-size: 12px; font-weight: 600;
    color: #c4b5fd; background: rgba(127,90,240,0.15);
    border: 1px solid rgba(127,90,240,0.3); border-radius: 10px;
    padding: 3px 12px; white-space: nowrap;
}
.ticketing-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 40px; color: rgba(255,255,255,0.5); font-size: 14px;
}
.ticketing-loading.hidden { display: none; }
.ticketing-spinner {
    width: 24px; height: 24px; border: 3px solid rgba(127,90,240,0.3);
    border-top-color: #c4b5fd; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ticketing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; padding: 16px 20px;
    overflow-y: auto; flex: 1;
}
.ticket-empty {
    grid-column: 1/-1; text-align: center;
    color: rgba(255,255,255,0.3); padding: 60px 20px; font-size: 14px;
}
.ticket-card {
    background: #1B1F3B; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex; flex-direction: column;
}
.ticket-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ticket-card.sev-5 { border-color: rgba(239,68,68,0.35); }
.ticket-card.sev-4 { border-color: rgba(249,115,22,0.35); }
.ticket-card.sev-3 { border-color: rgba(245,158,11,0.35); }
.ticket-card.sev-2 { border-color: rgba(132,204,22,0.35); }
.ticket-card.sev-1 { border-color: rgba(34,197,94,0.35); }
.ticket-card-img-wrap {
    position: relative; background: #0a0d1a;
}
.ticket-canvas, .inv-canvas { width: 100%; display: block; height: auto; }
.ticket-img-loading {
    position: absolute; color: rgba(255,255,255,0.3); font-size: 12px;
}
.ticket-sev-badge {
    position: absolute; top: 8px; right: 8px;
    padding: 3px 10px; border-radius: 12px;
    font-size: 10px; font-weight: 700; color: #fff;
    letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ticket-card-body {
    padding: 10px 14px; display: flex; flex-direction: column; gap: 5px;
}
.ticket-label-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-label-badge {
    display: inline-flex; align-items: center; padding: 3px 9px;
    border-radius: 12px; font-size: 11px; font-weight: 600;
}
.ticket-filename {
    font-family: monospace; font-size: 10px; color: rgba(255,255,255,0.35);
    word-break: break-all;
}
.ticket-meta { font-size: 10px; color: rgba(255,255,255,0.3); }
.ticket-obs { font-size: 11px; color: rgba(255,255,255,0.65); }
.ticket-actions { font-size: 11px; color: #ffc84a; }

/* ── Pagination grille ─────────────────────────────────── */
.grid-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 10px 20px; flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
}
.grid-pagination button {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
    padding: 6px 16px; font-size: 13px; cursor: pointer;
    transition: background 0.15s;
}
.grid-pagination button:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.grid-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.grid-pagination-info { font-size: 12px; color: rgba(255,255,255,0.45); min-width: 90px; text-align: center; }

/* ── Onglets Identification ────────────────────────────── */
.ident-tabs {
    display: flex; gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.ident-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 600;
    padding: 10px 18px; cursor: pointer; margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}
.ident-tab:hover { color: rgba(255,255,255,0.75); }
.ident-tab.active { color: #c4b5fd; border-bottom-color: #c4b5fd; }
.ident-tab-content { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.ident-tab-content.active { display: flex; }

/* ── Composantes GSM ────────────────────────────────────── */
.composantes-toolbar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.composantes-folder-row {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7);
}
#composantes-folder-select {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    color: #eee; border-radius: 6px; padding: 5px 10px; font-size: 13px;
    min-width: 220px;
}
#composantes-folder-select:focus { border-color: rgba(127,90,240,0.5); outline: none; }
#composantes-folder-select option { background: #1B1F3B; }
.composantes-save-btn {
    background: rgba(127,90,240,0.2); border: 1px solid rgba(127,90,240,0.45);
    color: #c4b5fd; font-size: 12px; font-weight: 700; padding: 6px 16px;
    border-radius: 7px; cursor: pointer; transition: background 0.2s;
    margin-left: auto;
}
.composantes-save-btn:hover:not(:disabled) { background: rgba(127,90,240,0.35); }
.composantes-save-btn:disabled { opacity: 0.4; cursor: default; }
.composantes-form {
    flex: 1; overflow-y: auto; padding: 16px 20px; display: flex;
    flex-direction: column; gap: 18px;
}
.composantes-placeholder {
    color: rgba(255,255,255,0.35); font-size: 13px; text-align: center; margin-top: 40px;
}
.comp-category { background: rgba(255,255,255,0.03); border-radius: 10px; overflow: hidden; }
.comp-cat-header {
    font-size: 13px; font-weight: 700; color: #c4b5fd;
    padding: 9px 14px; background: rgba(127,90,240,0.1);
    border-bottom: 1px solid rgba(127,90,240,0.2);
}
.comp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.comp-table th {
    padding: 6px 10px; text-align: left; font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.15);
}
.comp-table .th-label { width: 30%; }
.comp-table .th-present { width: 14%; }
.comp-table .th-etat { width: 22%; }
.comp-table .th-obs { width: 34%; }
.comp-row td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.comp-row:last-child td { border-bottom: none; }
.comp-row:hover td { background: rgba(255,255,255,0.02); }
.comp-label { color: rgba(255,255,255,0.8); font-size: 12px; }
.comp-present, .comp-etat { display: flex; gap: 8px; flex-wrap: wrap; }
.comp-radio { display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55);
    transition: background 0.15s; -webkit-user-select: none; user-select: none; white-space: nowrap; }
.comp-radio input[type="radio"] { display: none; }
.comp-radio.radio-oui:has(input:checked) { background: rgba(34,197,94,0.2); border-color: #22c55e; color: #4ade80; }
.comp-radio.radio-non:has(input:checked) { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #f87171; }
.comp-radio.radio-bon:has(input:checked) { background: rgba(34,197,94,0.18); border-color: #22c55e; color: #4ade80; }
.comp-radio.radio-degrade:has(input:checked) { background: rgba(245,158,11,0.2); border-color: #f59e0b; color: #fbbf24; }
.comp-radio.radio-hs:has(input:checked) { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #f87171; }
.comp-radio:hover { background: rgba(255,255,255,0.07); }
.comp-obs-input {
    width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px; color: #eee; font-size: 11px; padding: 4px 8px;
    box-sizing: border-box;
}
.comp-obs-input:focus { border-color: rgba(127,90,240,0.5); outline: none; }

/* ── Bouton Export dans le header ─────────────────────── */
.export-btn-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-right: 8px;
}

.export-main-btn {
    background: rgba(240, 140, 0, 0.15);
    border: 1px solid rgba(240, 140, 0, 0.45);
    color: #F08C00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.export-main-btn:hover {
    background: rgba(240, 140, 0, 0.28);
    box-shadow: 0 0 10px rgba(240, 140, 0, 0.2);
}

.export-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #1B1F3B;
    border: 1px solid rgba(240, 140, 0, 0.35);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 50000;
    min-width: 160px;
}

.export-dropdown.hidden { display: none; }

.export-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.5px;
}

.export-dropdown-item:hover {
    background: rgba(240, 140, 0, 0.12);
    color: #F08C00;
}

.export-dropdown-item + .export-dropdown-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.export-dropdown-item .export-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.export-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.export-3d-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(56, 189, 248, 0.07);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    font-size: 12px;
    color: rgba(56, 189, 248, 0.85);
    min-width: 0;
}
.export-3d-status .e3d-icon { font-size: 14px; flex-shrink: 0; }
.export-3d-status #e3d-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.export-3d-status #e3d-sync-btn {
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s;
}
.export-3d-status #e3d-sync-btn:hover { background: rgba(56, 189, 248, 0.28); }
.export-3d-status.synced { color: rgba(34, 197, 94, 0.9); background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.18); }
.export-3d-status.synced #e3d-sync-btn { color: #22c55e; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }
.export-3d-status.none { color: rgba(255, 255, 255, 0.35); background: transparent; }

#import-annot-input {
    display: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    #image-panel {
        width: 100%;
        min-width: unset;
    }

    .header-title {
        font-size: 16px;
    }

    .header-center {
        display: none;
    }

    .drop-overlay-content {
        padding: 40px 30px;
    }

    .placement-info {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ── Bouton Tour 360° dans le header ─────────────────────── */
.tour360-btn {
    background: rgba(99, 179, 237, 0.15);
    border: 1px solid rgba(99, 179, 237, 0.45);
    color: #90cdf4;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.tour360-btn:hover {
    background: rgba(99, 179, 237, 0.28);
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.25);
}

/* ── Modal Tour 360° ────────────────────────────────────── */
.tour360-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour360-overlay.hidden {
    display: none;
}
.tour360-modal {
    width: 90vw;
    height: 85vh;
    background: #1B1F3B;
    border-radius: 12px;
    border: 1px solid rgba(99, 179, 237, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tour360-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(99, 179, 237, 0.08);
    border-bottom: 1px solid rgba(99, 179, 237, 0.2);
    font-size: 14px;
    font-weight: 600;
    color: #90cdf4;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.tour360-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tour360-close-btn:hover {
    background: rgba(99, 179, 237, 0.3);
    border-color: rgba(99, 179, 237, 0.5);
}
.tour360-fs-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
.tour360-fs-btn:hover {
    background: rgba(99, 179, 237, 0.3);
    border-color: rgba(99, 179, 237, 0.5);
}
.tour360-fs-btn.hidden {
    display: none;
}
.tour360-folder-input {
    display: none;
}
.tour360-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tour360-back-btn {
    background: rgba(99, 179, 237, 0.12);
    border: 1px solid rgba(99, 179, 237, 0.35);
    color: #90cdf4;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tour360-back-btn:hover {
    background: rgba(99, 179, 237, 0.28);
}
.tour360-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
    align-content: start;
}
.tour360-gallery.hidden {
    display: none;
}
.tour360-viewer-wrap {
    flex: 1;
    position: relative;
    display: flex;
    overflow: hidden;
}
.tour360-viewer-wrap.hidden {
    display: none;
}
.tour360-viewer-wrap iframe {
    flex: 1;
    width: 100%;
    border: none;
}
.tour360-fs-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
    transition: opacity 0.3s, background 0.2s;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}
.tour360-fs-hint:hover {
    background: rgba(99, 179, 237, 0.5);
    border-color: rgba(99, 179, 237, 0.7);
}
.tour360-viewer-wrap:hover .tour360-fs-hint {
    opacity: 1;
}
.tour360-viewer-wrap .tour360-fs-hint {
    opacity: 0.5;
}
.tour360-link-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(99,179,237,0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}
.tour360-link-title {
    font-size: 12px;
    font-weight: 600;
    color: #90cdf4;
    letter-spacing: 0.5px;
}
.tour360-link-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
    width: 100%;
}
.tour360-link-input:focus {
    border-color: rgba(99,179,237,0.6);
}
.tour360-link-btn {
    background: rgba(99,179,237,0.2);
    border: 1px solid rgba(99,179,237,0.4);
    border-radius: 6px;
    color: #90cdf4;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.tour360-link-btn:hover {
    background: rgba(99,179,237,0.35);
}
.tour360-link-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}
.tour360-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 24px 0 12px;
    line-height: 1.6;
}
.tour360-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}
.tour360-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 179, 237, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.tour360-card:hover {
    border-color: rgba(99, 179, 237, 0.6);
    background: rgba(99, 179, 237, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 179, 237, 0.2);
}
.tour360-card-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}
.tour360-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tour360-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(99, 179, 237, 0.08);
    color: #90cdf4;
}
.tour360-card-name {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    letter-spacing: 0.3px;
}
/* iframe styles now handled by .tour360-viewer-wrap iframe */
.tour360-modal.tour-fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    max-width: 100vw;
    max-height: 100vh;
}
/* Fullscreen overlay styles */
.tour360-overlay:fullscreen,
.tour360-overlay:-webkit-full-screen {
    background: #000;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/* ── Drop zone ──────────────────────────────────────────── */
.tour360-drop-zone {
    border: 2px dashed rgba(99, 179, 237, 0.35);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(99, 179, 237, 0.04);
    min-height: 140px;
}
.tour360-drop-zone.drag-over {
    border-color: #90cdf4;
    background: rgba(99, 179, 237, 0.14);
    transform: scale(1.02);
}
.tour360-drop-icon {
    font-size: 32px;
}
.tour360-drop-text {
    font-size: 13px;
    font-weight: 600;
    color: #90cdf4;
}
.tour360-drop-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ── Card footer (nom + supprimer) ─────────────────────── */
.tour360-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 6px;
}
.tour360-card-delete {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.6);
    font-size: 15px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.tour360-card-delete:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
}

/* ── Progress bar upload ────────────────────────────────── */
.tour360-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 179, 237, 0.06);
    border-bottom: 1px solid rgba(99, 179, 237, 0.15);
    flex-shrink: 0;
}
.tour360-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.tour360-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #63b3ed, #90cdf4);
    border-radius: 3px;
    transition: width 0.2s;
}
.tour360-progress-text {
    font-size: 11px;
    color: #90cdf4;
    white-space: nowrap;
    min-width: 110px;
    text-align: right;
}

/* ── Dialog nom du tour ─────────────────────────────────── */
.tour360-name-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200002;
    display: none;
    align-items: center;
    justify-content: center;
}
.tour360-name-dialog.visible {
    display: flex;
}
.tour360-name-box {
    background: #1e2340;
    border: 1px solid rgba(99, 179, 237, 0.4);
    border-radius: 12px;
    padding: 24px 28px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.tour360-name-title {
    font-size: 15px;
    font-weight: 700;
    color: #90cdf4;
}
.tour360-name-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(99, 179, 237, 0.35);
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s;
}
.tour360-name-input:focus {
    border-color: #90cdf4;
}
.tour360-name-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: -6px;
}
.tour360-name-hint-count {
    font-size: 12px;
    color: #90cdf4;
    font-weight: 500;
    margin-top: -4px;
}
.tour360-name-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.tour360-name-cancel-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.tour360-name-cancel-btn:hover {
    background: rgba(255,255,255,0.12);
}
.tour360-name-confirm-btn {
    background: rgba(99, 179, 237, 0.2);
    border: 1px solid rgba(99, 179, 237, 0.5);
    color: #90cdf4;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tour360-name-confirm-btn:hover {
    background: rgba(99, 179, 237, 0.35);
}

/* ============================================================
   SITES — bouton header
============================================================ */
.sites-header-btn {
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.4);
    color: #9ae6b4;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.sites-header-btn:hover {
    background: rgba(72, 187, 120, 0.3);
}

/* ============================================================
   SITES — icône marqueur carte
============================================================ */
.site-point-icon {
    background: none;
    border: none;
}
.site-marker-inner {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    cursor: pointer;
}

/* popup site */
.site-popup { font-size: 13px; min-width: 160px; }
.site-popup strong { font-size: 14px; display: block; margin-bottom: 4px; }
.site-popup-desc { color: #aaa; margin-bottom: 4px; }
.site-popup-coords { font-family: monospace; font-size: 11px; color: #9ae6b4; margin-bottom: 8px; }
.site-popup-actions { display: flex; gap: 6px; }
.site-popup-edit-btn, .site-popup-delete-btn {
    border: none; border-radius: 5px; padding: 4px 10px;
    font-size: 12px; cursor: pointer;
}
.site-popup-edit-btn { background: rgba(99,179,237,0.2); color: #90cdf4; }
.site-popup-delete-btn { background: rgba(252,129,74,0.2); color: #fc814a; }

/* ============================================================
   SITES — modal gestion
============================================================ */
.sites-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3100;
    display: flex; align-items: center; justify-content: center;
}
.sites-overlay.hidden { display: none; }
.sites-box {
    background: #1a2035;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    width: min(900px, 96vw);
    max-height: 85vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.sites-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sites-header h3 { margin: 0; font-size: 17px; color: #e2e8f0; }
.sites-close-btn {
    background: none; border: none; color: #a0aec0;
    font-size: 22px; cursor: pointer; line-height: 1;
}
.sites-body {
    display: flex; flex: 1; overflow: hidden;
}
.sites-list-section {
    flex: 1; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
}
.sites-form-section {
    width: 320px; flex-shrink: 0; padding: 16px; overflow-y: auto;
}
.sites-form-section h4 { margin: 0 0 14px; font-size: 15px; color: #9ae6b4; }
.site-form { display: flex; flex-direction: column; gap: 10px; }
.site-form-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #a0aec0; }
.site-form-label input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    color: #e2e8f0;
    padding: 7px 10px;
    font-size: 13px;
}
.site-form-label input:focus { outline: none; border-color: rgba(72,187,120,0.5); }
.site-form-coords-hint { font-size: 12px; color: #718096; margin-top: 2px; }
.site-pick-map-btn {
    background: none; border: none; color: #9ae6b4;
    text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0;
}
.site-form-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.site-form-cancel-btn {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    color: #a0aec0; padding: 8px 14px; border-radius: 8px;
    font-size: 13px; cursor: pointer;
}
.site-form-cancel-btn.hidden { display: none; }
.site-form-save-btn {
    background: rgba(72,187,120,0.2); border: 1px solid rgba(72,187,120,0.5);
    color: #9ae6b4; padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.site-form-save-btn:hover { background: rgba(72,187,120,0.35); }

/* liste sites */
.sites-empty { color: #718096; font-size: 13px; padding: 20px; text-align: center; }
.site-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}
.site-list-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.site-list-item-name { font-size: 13px; color: #e2e8f0; font-weight: 600; }
.site-list-item-coords { font-size: 11px; color: #9ae6b4; font-family: monospace; }
.site-list-item-desc { font-size: 11px; color: #718096; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-list-item-actions { display: flex; gap: 4px; margin-left: 8px; flex-shrink: 0; }
.site-list-edit-btn, .site-list-zoom-btn, .site-list-delete-btn {
    background: none; border: none; cursor: pointer;
    font-size: 15px; padding: 4px 6px; border-radius: 6px;
    transition: background 0.2s;
}
.site-list-edit-btn { color: #90cdf4; }
.site-list-edit-btn:hover { background: rgba(99,179,237,0.15); }
.site-list-zoom-btn { color: #a0aec0; }
.site-list-zoom-btn:hover { background: rgba(255,255,255,0.08); }
.site-list-delete-btn { color: #fc814a; }
.site-list-delete-btn:hover { background: rgba(252,129,74,0.15); }

/* ============================================================
   SITES — modal sélection site lors de l'upload
============================================================ */
.site-pick-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 3200;
    display: flex; align-items: center; justify-content: center;
}
.site-pick-overlay.hidden { display: none; }
.site-pick-box {
    background: #1a2035;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    width: min(460px, 94vw);
    max-height: 70vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}
.site-pick-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-pick-header h3 { margin: 0; font-size: 16px; color: #e2e8f0; }
.site-pick-close-btn {
    background: none; border: none; color: #a0aec0;
    font-size: 22px; cursor: pointer; line-height: 1;
}
.site-pick-hint { margin: 10px 18px 4px; font-size: 13px; color: #a0aec0; }
.site-pick-list {
    flex: 1; overflow-y: auto; padding: 6px 12px;
}
.site-pick-empty { color: #718096; font-size: 13px; padding: 16px; text-align: center; }
.site-pick-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer;
    transition: background 0.2s;
}
.site-pick-item:hover { background: rgba(72,187,120,0.12); border-color: rgba(72,187,120,0.3); }
.site-pick-item-icon { font-size: 20px; }
.site-pick-item-name { font-size: 14px; color: #e2e8f0; font-weight: 600; flex: 1; }
.site-pick-item-coords { font-size: 11px; color: #9ae6b4; font-family: monospace; }
.site-pick-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: center;
}
.site-pick-no-site-btn {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    color: #718096; padding: 8px 18px; border-radius: 8px;
    font-size: 13px; cursor: pointer;
    transition: background 0.2s;
}
.site-pick-no-site-btn:hover { background: rgba(255,255,255,0.12); }

/* ── LAS Placeholder ────────────────────────────────────── */
#las-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a12;
}
#las-viewer.hidden { display: none; }
.las-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
    max-width: 360px;
    width: 90%;
}
.las-placeholder-icon { font-size: 36px; color: #63b3ed; }
.las-placeholder-name { font-size: 14px; font-weight: 600; color: #e2e8f0; word-break: break-all; }
.las-placeholder-info { font-size: 12px; color: rgba(160,174,192,0.6); }

/* ── Modal édition annotation (sync composant) ─────────────── */
.annot-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.annot-edit-overlay.hidden { display: none; }
.annot-edit-box {
    background: #1B1F3B;
    border: 1px solid rgba(240,140,0,0.35);
    border-radius: 10px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.annot-edit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.annot-edit-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.annot-edit-label-badge {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.annot-edit-cid-badge {
    font-family: monospace;
    font-size: 11px;
    background: rgba(240,140,0,0.15);
    border: 1px solid rgba(240,140,0,0.4);
    color: #F08C00;
    border-radius: 4px;
    padding: 2px 7px;
}
.annot-edit-occurrences {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}
.annot-edit-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.annot-edit-close:hover { color: #fff; }
.annot-edit-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.annot-edit-field-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.annot-edit-field-label input,
.annot-edit-field-label select,
.annot-edit-field-label textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    padding: 6px 9px;
    outline: none;
}
.annot-edit-field-label input:focus,
.annot-edit-field-label select:focus {
    border-color: rgba(240,140,0,0.5);
}
.annot-edit-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #F08C00;
    padding-top: 4px;
    border-top: 1px solid rgba(240,140,0,0.15);
}
.annot-edit-daf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.annot-edit-daf-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.annot-edit-daf-grid input,
.annot-edit-daf-grid select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    padding: 6px 9px;
    outline: none;
}
.annot-edit-daf-grid input:focus,
.annot-edit-daf-grid select:focus {
    border-color: rgba(240,140,0,0.5);
}
.annot-edit-field-full { grid-column: 1 / -1; }
.annot-edit-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    justify-content: flex-end;
}
.annot-edit-btn-single {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.annot-edit-btn-single:hover { background: rgba(255,255,255,0.15); }
.annot-edit-btn-sync {
    background: rgba(240,140,0,0.2);
    color: #F08C00;
    border: 1px solid rgba(240,140,0,0.45);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.annot-edit-btn-sync:hover { background: rgba(240,140,0,0.35); }

/* ── Panneau miniatures site ────────────────────────────────── */
.site-thumbs-panel {
    width: 280px;
    min-width: 280px;
    background: #131629;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 100;
    transition: width 0.2s, min-width 0.2s;
}
.site-thumbs-panel.hidden {
    width: 0;
    min-width: 0;
}
.site-thumbs-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.site-thumbs-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-thumbs-count {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.site-thumbs-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
}
.site-thumbs-close:hover { color: #fff; }
.site-thumbs-grid {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-content: start;
}
.site-thumb-item {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s, opacity 0.15s;
    background: rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
}
.site-thumb-item:hover {
    border-color: rgba(240,140,0,0.7);
    opacity: 0.95;
}
.site-thumb-item.active {
    border-color: #F08C00;
}
.site-thumb-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.05);
}
.site-thumb-img.thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255,255,255,0.2);
    aspect-ratio: 4/3;
}
.site-thumb-label {
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    padding: 3px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.site-thumb-annot-badge {
    font-size: 9px;
    background: rgba(240,140,0,0.2);
    color: #F08C00;
    border-radius: 3px;
    padding: 1px 4px;
    margin: 0 4px 3px;
    display: inline-block;
    width: fit-content;
}
/* Marqueur de site sur la carte */
.site-map-marker {
    background: #F08C00;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    cursor: pointer;
}
.site-map-marker.active-site {
    background: #fff;
    color: #F08C00;
    border-color: #F08C00;
}

/* ── Tour 360° — Annotation overlay ─────────────────────── */
.tour360-annot-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-right: 6px;
}
.tour360-annot-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}
.tour360-annot-btn.active {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
    color: #fbbf24;
}
.tour360-annot-btn.hidden { display: none; }
.tour360-annot-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    cursor: crosshair;
}
.tour360-annot-canvas.drawing {
    pointer-events: all;
}
.tour360-annot-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fbbf24;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 11;
    white-space: nowrap;
    display: none;
}
.tour360-annot-canvas.drawing ~ .tour360-annot-hint {
    display: block;
}
